/* --- Global Styles & Variables --- */
:root {
    --primary-color: #003366; /* Deep Blue */
    --secondary-color: #E60000; /* Bright Red */
    --accent-color: #F3F4F6; /* Light Gray */
    --text-color: #333;
    --light-text-color: #fff;
    --font-family: 'Poppins', sans-serif;
    --header-height: 70px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #FFFFFF;
}
p{margin:5px 0;padding:5px 0;}
.m-1{margin:1rem;}
.m-2{margin:2rem;}
.mt-1{margin-top:1rem;}
.mt-2{margin-top:2rem;}
.mb-1{margin-bottom:1rem;}
.mb-2{margin-bottom:2rem;}
.mr-1{margin-right:1rem;}
.mr-2{margin-right:2rem;}
.ml-1{margin-left:1rem;}
.ml-2{margin-left:2rem;}

.p-1{padding:1rem;}
.p-2{padding:2rem;}
.pt-1{padding-top:1rem;}
.pt-2{padding-top:2rem;}
.pb-1{padding-bottom:1rem;}
.pb-2{padding-bottom:2rem;}
.pr-1{padding-right:1rem;}
.pr-2{padding-right:2rem;}
.pl-1{padding-left:1rem;}
.pl-2{padding-left:2rem;}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
}

section {
    padding: 80px 0;
}

/* --- Header & Navigation --- */
.sticky-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: 60px; /* Set a default height */
    transition: height 0.3s ease, padding 0.3s ease; /* Smooth transition */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 30px; /* Default logo height */
    transition: height 0.3s ease; /* Smooth transition */
}
/* Header class added on scroll */
.sticky-header.scrolled {
    height: 50px; /* The new, smaller height */
    box-shadow: 0 4px 12px rgba(0,0,0,0.12); /* Slightly stronger shadow */
	position:fixed;
}

.sticky-header.scrolled .logo img {
    height: 25px; /* The new, smaller logo height */
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

/* --- About Us Section --- */
.about-content {
    display: flex;
	flex-direction:column;
    align-items: center;
    gap: 40px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* --- History Section (Timeline) --- */
.history-section {
    background-color: var(--accent-color);
}
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: #fff;
    border: 3px solid var(--secondary-color);
    border-radius: 50%;
    top: 25px;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-date {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--secondary-color);
}
.timeline-item:nth-child(odd) .timeline-date { text-align: right; margin-right: 20px;}
.timeline-item:nth-child(even) .timeline-date { text-align: left; margin-left: 20px;}

.timeline-content {
    padding: 20px 30px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.timeline-item:nth-child(odd) { text-align: right; }
.timeline-item h3 { color: var(--primary-color); }

/* Homepage Slider*/
/* --- About Us Slider --- */
.about-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.about-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.about-slide img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 10; /* Ensures a consistent shape */
}

.about-slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.about-slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.about-slider-dots .dot.active {
    background-color: var(--secondary-color);
}

/* --- Events Section --- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.event-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #c40000;
}

/* --- Event & Milestone Archive Page --- */
.milestone-archive {
    max-width: 800px;
    margin: 0 auto;
}

.milestone-year-group {
    margin-bottom: 50px;
}

.milestone-year {
    font-size: 2rem;
    color: var(--primary-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
    margin-bottom: 30px;
}

.milestone-list {
    list-style: none;
    padding-left: 0;
}

.milestone-list li {
    margin-bottom: 16px; /* Moved margin from link to li */
}

.milestone-list li a {
    display: block; /* Makes the whole card clickable */
    text-decoration: none; /* Removes link underline */
    color: var(--text-color); /* Keeps the theme's text color */
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 20px 25px;
    padding-left: 55px; /* Space for the icon */
    position: relative;
    font-size: 1.05rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.milestone-list li a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    color: var(--primary-color); /* Optional: make text color change on hover */
}

.milestone-list li a::before {
    content: '\f274'; /* Font Awesome icon: fa-calendar-check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--secondary-color);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
}

/* --- Team Section --- */
.team-section {
    background-color: var(--accent-color);
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.team-member h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.team-member p {
    font-size: 0.9rem;
    color: #666;
}

/* --- Contact Section / Footer --- */
.contact-section {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 60px 0 20px;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.social-media a {
    color: #fff;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-media a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    font-size: 0.9rem;
}


/* --- Event Detail Page --- */
.event-detail-section {
    padding: 40px 0;
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

.event-title {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.event-description {
    max-width: 800px;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.slider-container {
    position: relative;
    max-width: 900px;
    margin: auto;
    overflow: hidden;
    border-radius: 8px;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    display: block;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    z-index: 10;
}

.slider-nav.prev { left: 10px; }
.slider-nav.next { right: 10px; }

/* --- Responsive Design --- */

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 1.5rem 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd) .timeline-dot, .timeline-item:nth-child(even) .timeline-dot {
        left: 23px;
    }

    .timeline-item:nth-child(odd) .timeline-date, .timeline-item:nth-child(even) .timeline-date {
        text-align: left;
        margin-left: 0;
        margin-bottom: 5px;
    }
}

/* --- Team Page Department Styles --- */
.department-group {
    margin-bottom: 50px; /* Adds space between department sections */
}

.department-title {
    font-size: 1.75rem; /* Reduced font size from 2rem */
    color: var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 30px; 
    text-align: left; 
    position: relative; /* Required for the new underline */
    border-bottom: none; /* Remove the old full-width underline */
}

.department-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0; /* Aligns the underline to the left */
    width: 50px; /* The new, shorter underline length */
    height: 3px;
    background-color: var(--secondary-color); /* Uses your theme's red */
}

/* Reduce the main "Meet Our Team" title size ONLY on this page */
.team-section .section-title {
    font-size: 2.2rem; /* Reduced font size from 2.5rem */
}