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

/* Add sticky to the header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #00457c;
    color: white;
    position: sticky; /* This makes the header sticky */
    top: 0; /* Stick it to the top of the viewport */
    z-index: 1000; /* Ensure the header stays above other content */
    width: 100%; /* Make sure the header takes the full width */
}

/* Enhanced sticky header */
header.sticky {
    background-color: rgba(0, 69, 124, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 5px 20px;
}

header.sticky .logo {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

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

header .logo {
    max-width: 100%;
    height: auto;
    width: 200px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
}

.nav-links ul li {
    margin: 0 10px;
}

.nav-links li {
    display: inline;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 10px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s ease;
    animation: navLinkFadeIn 0.6s ease forwards;
}
.nav-links li:nth-child(1) a { animation-delay: 0.1s; }
.nav-links li:nth-child(2) a { animation-delay: 0.2s; }
.nav-links li:nth-child(3) a { animation-delay: 0.3s; }
.nav-links li:nth-child(4) a { animation-delay: 0.4s; }
.nav-links li:nth-child(5) a { animation-delay: 0.5s; }
.nav-links li:nth-child(6) a { animation-delay: 0.6s; }
.nav-links li:nth-child(7) a { animation-delay: 0.7s; }

@keyframes navLinkFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-links a:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.nav-links a:hover {
    background-color: #0073e6;
        transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Active state for current page */
.nav-links a.active {
    background-color: #0056b3;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Underline animation on hover */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 80%;
}

/* Dropdown arrow animation */
.slide_menu > a::after {
    font-size: 0.7em;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.email-icon {
    margin-left: auto; /* Pushes the icon to the rightmost side */
    align-items: center; /* Vertically aligns the icon*/
}

/* The dropdown container */
.slide_menu {
    position: relative; /* Important for absolute positioning of the dropdown content */
}

.slide_menu-content {
    display: none; /* Initially hidden */
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    top: 100%; /* Position it just below the Menu link */
    left: 0;
    border-radius: 5px;
    opacity: 0; /* Initially hidden */
    transform: translateY(-20px); /* Start slightly above the normal position */
    transition: transform 2s ease, opacity 2s ease; /* Smooth transition with a 0.5s duration */
}

/* Show the dropdown menu on hover */
.slide_menu:hover .slide_menu-content {
    display: block; /* Ensure the menu is visible */
    opacity: 1; /* Make it fully visible */
    transform: translateY(0); /* Move the menu into place */
}

/* Links inside the dropdown */
.slide_menu-content a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

/* Add a grey background color to dropdown links on hover */
.slide_menu-content a:hover {
    background-color: #0073e6;
    color: white;
}

/* Show the dropdown menu on hover */
.slide_menu:hover .slide_menu-content {
    display: block; /* Show the dropdown content when the Menu is hovered */
}

main {
    
    margin: 20px;
    padding: 30px 20px;
}

/* The containers will start with opacity 0 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.container_fadable {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    opacity: 0; /* Initially set to 0 */
    transition: opacity 1s ease-out; /* Transition effect for opacity */
}
/* When the container enters the viewport and is 'loaded', opacity will become 1 */
.container_fadable.loaded {
    opacity: 1;
}

section {
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h2 {
    margin-bottom: 20px;
    font-size: 2.5rem;
    color: #00457c;
}

h3 {
    margin-top: 20px;
    font-size: 1.8rem;
    color: #0073e6;
}

h4 {
    margin-top: 20px;
    font-size: 1rem;
    color: #2a955a;

}

p {
    margin: 10px 0;
    font-size: 1.2rem;
    line-height: 1.6;
}

.center-text {
    text-align: center;
}

.left-text{
    text-align: left;
    font-size: 1rem;
}

footer {
    text-align: center; /* Center-aligns the text inside the footer */
    padding: 10px 20px;
    background-color: #00457c;
    color: white;
    position: relative; /* Allows for absolute positioning of the icon */
}

footer p {
    margin: 0;
    display: inline-block; /* Ensures the text remains centered */
}

footer a {
    position: absolute; /* Positions the icon relative to the footer */
    right: 20px; /* Adjust the distance from the right edge */
    top: 50%; /* Centers vertically */
    transform: translateY(-50%); /* Aligns the icon perfectly vertically */
    display: flex; /* Ensure alignment within the anchor if needed */
    align-items: center; /* Centers the icon within the link */
}

footer a img {
    width: 50px; /* Adjust icon size */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Prevent extra vertical spacing */
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
    list-style-position: inside;

}

.table th,
.table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.table th {
    background-color: #00457c;
    color: white;
}


section ul {
    list-style-position: inside;
    display: flex;
    margin: 12px 0;
    font-size: 1rem;
    line-height: 1.6;
    padding-left: 50pt; /* Removes default left padding */
    flex-direction: column;
    width: 100%;
}

section ol {
    list-style-position: inside;
    display: flex;
    margin: 12px 0;
    font-size: 1rem;
    line-height: 1.6;
    padding-left: 50pt; /* Removes default left padding */
    flex-direction: column;
    width: 100%;
}

section li {
    float: left;
    min-width:200px;
    text-align: left;
    list-style-position: inside;

} 

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    .menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

    .nav-links {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }
        .nav-links.mobile-open {
        display: flex;
    }
        .menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    h2 {
        font-size: 2rem;
    }

    p {
        font-size: 1rem;
    }
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
    }

    /* Add styling to handle dropdown on small screens */
    .slide_menu-content {
        position: static; /* Dropdown should flow within the content on mobile */
        display: none;
        width: 100%;
    }

    .slide_menu:hover .slide_menu-content {
        display: block;
    }
}

/* Enhanced Member Cards */
.members {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    padding: 20px 0;
}

.member-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e1e5e9;
    border-radius: 15px;
    width: 48%;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
}

.member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 114, 188, 0.15);
    border-color: #0072bc;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0072bc, #00457c);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.member-card:hover::before {
    transform: scaleX(1);
}

.member-header {
    padding: 20px 15px;
    text-align: center;
    background: linear-gradient(135deg, #0072bc 0%, #00457c 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.member-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.member-card:hover .member-header::after {
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.member-header h5 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.member-image {
    text-align: center;
    padding: 25px 15px 15px;
    position: relative;
}

.member-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    z-index: 0;
}

.member-image img {
    width: 120px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.member-card:hover .member-image img {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 114, 188, 0.3);
}

.member-info {
    display: none;
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.member-info p {
    margin: 10px 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.member-info p:first-of-type {
    font-weight: 600;
    color: #0072bc;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.member-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.member-social a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 114, 188, 0.3);
}

.member-social a img {
    width: 24px;
    height: 24px;
    border: none;
    box-shadow: none;
    transform: none;
}

.show-info {
    background: linear-gradient(135deg, #0072bc 0%, #00457c 100%);
    color: #fff;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.show-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.show-info:hover::before {
    left: 100%;
}

.show-info:hover {
    background: linear-gradient(135deg, #005da1 0%, #003d66 100%);
    letter-spacing: 1px;
}

/* Status badges for special members */
.member-status {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff6b6b;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
}

.member-status.retired {
    background: #6c757d;
}

.member-status.coordinator {
    background: #28a745;
}

/* Enhanced responsive design */
@media (max-width: 1024px) {
    .member-card {
        width: 48%;
    }
}

@media (max-width: 768px) {
    .member-card {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .members {
        gap: 20px;
    }
    
    .member-header h5 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .member-card {
        margin: 0 10px 20px;
        width: calc(100% - 20px);
    }
    
    .member-image img {
        width: 100px;
        height: 125px;
    }
}

/* Loading animation for cards */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.member-card {
    animation: cardFadeIn 0.6s ease-out;
}

.member-card:nth-child(odd) {
    animation-delay: 0.1s;
}

.member-card:nth-child(even) {
    animation-delay: 0.2s;
}

/* Ensure member info displays properly */
.member-info.active,
.member-info[style*="display: block"] {
    display: block !important;
}

/* Fix for any potential conflicts */
.member-card .member-info {
    transition: all 0.3s ease;
}
