* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: white;
}

.navbar {
    background-color: white;
    padding: 1rem 2rem;
    width: 100%;
    border-bottom: 1px solid #000000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    transform: scale(1.0);
}

/* Navigation Items */
.nav-items {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333333;
    font-size: 1rem;
    font-weight: 500; /* Default weight */
    transition: color 0.2s ease, text-shadow 0.2s ease;
    background-color: transparent !important;
}


/* Prevent movement by setting a minimum width */
.nav-link span {
    display: inline-block;
    min-width: max-content; /* Ensures text width remains constant */
}


/* Only apply bold visually without affecting spacing */
.nav-link:hover span,
.nav-link:hover .dropdown-icon {
    color: #00008B;
    font-weight: 500; /* Keep same font-weight */
    text-shadow: 0.5px 0 0 #000, -0.5px 0 0 #000;
}


.dropdown-item {
    text-decoration: none;
    color: #333333;
    font-size: 1rem;
    font-weight: 500; /* Prevents shifting */
    transition: color 0.2s ease, text-shadow 0.2s ease;
}


.dropdown-item:hover {
    color: #00008B;
    font-weight: 500; /* No bolding to prevent shift */
    text-shadow: 0.5px 0 0 #000, -0.5px 0 0 #000;
}


.bold:hover {
color: #00008B;
    font-weight: 500; /* No bolding to prevent shift */
    text-shadow: 0.5px 0 0 #000, -0.5px 0 0 #000;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}


/* Dropdown styling */
.resources-dropdown {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.dropdown-icon {
    width: 25px;
    height: 25px;
    margin-left: -5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white !important;
    border: 1px solid #97b8e8;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    flex-direction: column;
    min-width: 150px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, visibility 0.3s;
}

.dropdown-item {
    padding: 10px 15px;
    color: black;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    background-color: transparent !important;
}

.dropdown-item:hover {
    background-color: #97b8e8 !important;
}

.resources-dropdown:hover .dropdown-menu,
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.donate-btn {
    background-color: #232694 !important;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.donate-btn:hover {
    background-color: #151b60 !important;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 9999;
    position: relative;
}

/* Specifically target and force the hamburger bars to show */
.navbar .nav-container .hamburger-menu .bar1,
.navbar .nav-container .hamburger-menu .bar2,
.navbar .nav-container .hamburger-menu .bar3 {
    width: 30px;
    height: 3px;
    background-color: #333 !important;
    margin: 0;
    transition: 0.4s;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex !important; /* Force display with !important */
    }

    .nav-items {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important; /* Start off-screen */
    height: 100vh !important;
    width: 250px !important;
    background-color: white !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 80px 30px 30px !important;
    transition: right 0.3s ease-in-out !important;
    z-index: 999 !important; /* High z-index to appear above other content */
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1) !important;
}

    .nav-items.active {
        right: 0 !important; /* Force with !important */
display: flex !important;
    }

    .resources-dropdown {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        box-shadow: none;
        border: none;
        background-color: transparent !important;
        transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s;
        transform: none;
        margin-top: 0.5rem;
    }

    .resources-dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
    }

    .dropdown-icon {
        position: absolute;
        right: 0;
        transition: transform 0.3s ease;
    }

    .resources-dropdown.active .dropdown-icon {
        transform: rotate(180deg);
    }

    /* Transform hamburger to X when menu is open */
    .hamburger-menu.active .bar1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger-menu.active .bar2 {
        opacity: 0;
    }

    .hamburger-menu.active .bar3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}
.footer {
    background-color: white;
    padding: 60px 0 20px;
    width: 100%;
    }
    
    .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    padding: 0 20px;
    }
    
    .footer-logo {
    max-width: 150px;
    }
    
    
    .footer-logo-img {
    width: 100px;
    height: auto;
    }
    
    .footer-section h3 {
    color: #000;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
    }
    
    .footer-section ul {
    list-style: none;
    padding: 0;
    }
    
    .footer-section ul li {
    margin-bottom: 12px;
    }
    
    .footer-section ul li a {
    color: #333;
    text-decoration: none;
    font-size: 12px;
    }
    
    .footer-section ul li a:hover {
    text-decoration: underline;
    }
    
    .subscribe-section {
    grid-column: 5;
    }
    
    .subscribe-section p {
    margin-bottom: 15px;
    font-size: 14px;
    }
    
    .subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    }
    
    .subscribe-input {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    }
    
    .subscribe-button {
    background-color: #232694;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    }
    
    .subscribe-button:hover {
    background-color: #151b60;
    }
    
    .privacy-notice {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    }
    
    .footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #ccc;
    }
    
    .footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    }
    
    .footer-bottom p {
    font-size: 14px;
    color: #666;
    }
    
    .footer-links {
    display: flex;
    gap: 20px;
    }
    
    .footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    }
    
    .footer-links a:hover {
    text-decoration: underline;
    }
    
    .social-icons {
    display: flex;
    gap: 15px;
    }
    
    .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    }
    
    .social-icons img {
    width: 24px;
    height: 24px;
    }
    
    @media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .subscribe-section {
        grid-column: auto;
    }
    }
    
    @media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    }
    
    @media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    }
.sub-teams {
background-color: white !important;
padding: 60px 20px;
}

.sub-teams-title {
text-align: center;
font-size: 32px;
margin-bottom: 50px;
max-width: 800px;
margin-left: auto;
margin-right: auto;
}

.teams-container {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 40px;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}

.team-card {
background-color: white;
padding: 30px;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
gap: 15px;
}

.team-icon {
width: 70px;
height: 50px;
margin-bottom: 15px;
}

.team-card h3 {
font-size: 24px;
margin-bottom: 10px;
}

.team-card p {
font-size: 16px;
line-height: 1.5;
color: #333;
margin-bottom: 20px;
}

@media (max-width: 768px) {
.teams-container {
    grid-template-columns: 1fr;
}

.sub-teams-title {
    font-size: 24px;
}

.team-card {
    padding: 20px;
}
}
.subimage, .ssubimage, .esubimage {
width: 319px;
height: 340px;
object-fit: cover; /* Ensures the image fills the area while cropping excess */
overflow: hidden; /* Hides parts that exceed the container */
display: block; /* Removes extra spacing issues from inline images */
}
.vertical-image { /* Add this class to the vertical image */
object-position: top; /* Moves the image to show more of the top */
width: 319px;
height: 340px;
object-fit: cover; /* Ensures the image fills the area while cropping excess */
overflow: hidden; /* Hides parts that exceed the container */
display: block; /* Removes extra spacing issues from inline images */
}


.btn {
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-learn {
    background-color: #97b8e8;
    color: #000;
    padding: 12px 24px;
}
.btn-learn:hover {
    background-color: #7a9fd9;
}
@media (max-width: 768px) {
    .teams-container {
        grid-template-columns: 1fr;
        justify-content: center; /* Ensures the grid is centered */
        align-items: center; /* Aligns items properly */
        display: flex; /* Use flexbox to make centering easier */
        flex-direction: column; /* Stack items vertically */
    }

    .team-card {
        padding: 20px;
        margin: 0 auto; /* Ensures the card itself is centered */
        max-width: 90%; /* Prevents the card from stretching too much */
        width: 100%; /* Ensures responsiveness */
    }
}
