/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: white;
    margin: 0;
}

/* Remove list item markers (dots) */
ul {
    list-style-type: none; /* Removes the dots */
    padding: 0; /* Removes default padding */
    margin: 0; /* Removes default margin */
}

/* Remove underline from links */
li a {
    text-decoration: none; /* Removes the underline */
}

/* Ensure menu items align straight down */
li {
    margin: 0; /* Removes default margin between list items */
    padding: 8px 0; /* Removes default padding */
}

/* Navigation Bar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 10px;
    z-index: 1000;
    /*background-color: black;*/
}

.navbar {
    position: relative;
}

.navbar-toggler:focus, .navbar-toggler:hover {
    outline: none;
    box-shadow: none;
}

.navbar-toggler {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1100;
    border: none;
    outline: none;
    padding: 0;
    cursor: pointer;
    background-color: transparent;
}

.navbar-toggler-icon {
    background-color: #2a9ae5;
    width: 30px;
    height: 2px;
    display: block;
    position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    background-color: #2a9ae5;
    width: 30px;
    height: 2px;
    position: absolute;
    left: 0;
    transition: none;
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    top: 8px;
}

/* Updated styles */
.navbar-collapse {
    display: none;
    position: absolute;
    top: 10px;
    left: 0;
    width: 140px;
    padding: 10px;
    border-radius: 5px;
    /*background-color: black;*/
}

/* Show the menu on hover and keep it visible when hovering over the menu itself */
.navbar-toggler:hover + .navbar-collapse,
.navbar-toggler:focus + .navbar-collapse,
.navbar-collapse:hover {
    display: block;
}

.navbar .navbar-nav {
    flex-direction: column;
}

.navbar .navbar-nav .nav-item {
    margin: 0;
    color: #2a9ae5;
}

.navbar-dark .navbar-nav .nav-link {
    color: #2a9ae5;
}

.nav-link:hover {
    color: rgba(157, 0, 255, 0.5);
}

/* Hero Section */
.hero {
    width: 100%;
    height: auto !important;
    overflow: hidden;
    align-items: center;
}

.hero-img-container {
    perspective: 1000px; /* Container needed for 3D flip */
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    
}

/* Content Section */
.content {
    background-color: white;
    padding: 20px;
    text-align: center;
}

.content-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.content-nav a {
    text-decoration: none;
    color: rgb(79, 123, 149);
    font-weight: bold;
    margin: 0 10px;
    transition: color 0.3s;
}

.highlighted {
    color: rgb(79, 123, 149);
    border-bottom: 2px solid rgb(79, 123, 149);
}

.content-description h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.content-description p {
    font-size: 1rem;
    color: #555;
    max-width: 900px;
    margin: 0 auto;
}

/* Container and Card Styles */
.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 1200px;
    margin: auto;
}

.card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.card-image {
    perspective: 1000px; /* Container needed to perform 3D flip */
}

.card-image img {
    width: 100%;
    height: auto;
}

.card-content {
    padding: 20px;
}

.date {
    color: #999;
    font-size: 0.9em;
    margin-bottom: 10px;
}

h2 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 10px;
}

p {
    color:black;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

.read-more {
    display: inline-block;
    color: #fff;
    background-color: #007BFF;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.read-more:hover {
    background-color: #0056b3;
}

.final-content-footer {
    background-color: #d4c9c9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    padding: 0px;
    text-align: center;
}

.final-content-footer h2 {
    margin: 0;
    font-size: 2.5rem;
    color: darkblue;
    margin-bottom: 5px;
    font-weight: bold;
}

.social-icons {
    margin-bottom: 10px;
}

.footer-link {
    font-size: 2rem;
    margin: 0 5px;
    text-decoration: none;
    transition: transform 0.3s;
}

.footer-link:hover {
    transform: scale(1.1);
}

/* Specific colors for each icon */
.footer-link i.fa-facebook-f {
    color: #3b5998;
}

.footer-link i.fa-twitter {
    color: #00acee;
}

.footer-link i.fa-instagram {
    color: #C13584;
}

.footer-link i.fa-youtube {
    color: #FF0000;
}
#d{
    margin-top: 30px;
}

/* Responsive Design */
@media (min-width: 768px) {
    .card {
        flex-direction: row;
    }
    .hero{
        height: 20px;
    }

    .card-image {
        flex: 1;
    }

    .card-content {
        flex: 2;
        padding: 40px;
    }
    #a{
        margin-top: 50px;
    }
    #c{
        margin-top: 35px;
    }
}

/* Mobile View Adjustments */
@media (max-width: 767px) {
    .navbar-collapse {
        width: 100px; /* Reduce width for mobile */
        padding: 5px; /* Reduce padding for mobile */
    }
    .hero{
        height: 250px;
    }
    .hero-img{
        height: 250px;
    }

    .navbar .navbar-nav .nav-item {
        padding: 2px 0; /* Reduce padding for each item */
        font-size: 14px; /* Reduce font size for mobile */
    }
    .container{
        display: block;
    }
    .read-more{
        margin-left: 30%;
    }
    .card-image img{
        height: 190px;
        width: 90%;
        margin-left: 15px;
    }
}
