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

:root {
    --primary-green: #1a5c1a;
    --accent-green: #7FCC39;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
    --white: #ffffff;
    --text-color: #2c2c2c;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

p { text-align: justify; }

/* Top Bar */
        .top-bar {
            background-color: var(--primary-green);
            color: var(--white);
            padding: 12px 0;
            font-size: 14px;
        }

        .top-bar-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
            flex-wrap: wrap;
            gap: 30px;
        }

        .top-bar-contact {
            display: flex;
            gap: 30px;
            align-items: center;
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .contact-item a {
            color: var(--white);
            text-decoration: none;
            transition: color 0.3s;
        }

        .contact-item a:hover {
            color: var(--accent-green);
        }

        .social-icons {
            display: flex;
            gap: 15px;
        }

        .social-icons a {
            color: var(--white);
            font-size: 16px;
            text-decoration: none;
            transition: all 0.3s;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.1);
        }

        .social-icons a:hover {
            background-color: var(--accent-green);
            color: var(--primary-green);
            transform: translateY(-3px);
        }
/* Header */
.header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    overflow: visible;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.college-title h1 {
    font-size: 20px;
    color: var(--primary-green);
    margin: 0;
    line-height: 1.2;
}

.college-title p {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent-green);
    margin: 0;
    font-style: italic;
}

.esto-vir-text {
    font-size: 20px;
    color: #1A5C1A;
    font-weight: 800;
    text-align: center;
    flex: 1;
    margin: 0 20px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

nav a:hover {
    color: var(--accent-green);
    border-bottom-color: var(--accent-green);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    margin-left: auto;
    z-index: 101;
    position: relative;
}

.mobile-menu-toggle span {
    width: 26px;
    height: 3px;
    background-color: var(--primary-green);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; width: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* Full Screen Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.slide.active { opacity: 1; }

.slide-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: var(--white);
    z-index: 2;
}

.slide-content h2 {
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: slideInDown 0.8s ease;
}

.slide-content p {
    font-size: 24px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    animation: slideInUp 0.8s ease;
    max-width: 800px;
}

.slide-content .cta-button {
    display: inline-block;
    background-color: var(--accent-green);
    color: var(--primary-green);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    animation: slideInUp 0.8s ease 0.2s both;
}

.slide-content .cta-button:hover {
    background-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.slider-dot.active {
    background-color: var(--accent-green);
    width: 30px;
    border-radius: 6px;
}

.slider-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 10;
    transform: translateY(-50%);
    pointer-events: none;
}

.slider-arrow {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background-color: var(--accent-green);
    color: var(--primary-green);
    transform: scale(1.1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-green), #2d7a2d);
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
}

.hero-section h1 {
    font-size: 56px;
    margin-bottom: 20px;
    font-weight: 700;
}

/* Smaller hero for inside pages */
.hero-section.inner-hero { padding: 55px 20px; }
.hero-section.inner-hero h1 { font-size: 36px; margin-bottom: 0; letter-spacing: 1px; }


/* About Section */
.about-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 48px;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.section-header .divider {
    width: 60px;
    height: 4px;
    background-color: var(--accent-green);
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h3 {
    font-size: 28px;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.about-content p {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-content ul {
    list-style: none;
    padding: 0;
}

.about-content ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.about-content ul li::before {
    content: '✓';
    color: var(--accent-green);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
}

/* Membership */
.membership-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.membership-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.membership-card {
    background: var(--white);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
}

.membership-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.membership-card h3 {
    font-size: 22px;
    color: var(--primary-green);
    margin: 15px 0 10px;
}

.membership-card .fee {
    font-size: 32px;
    font-weight: bold;
    color: var(--accent-green);
    margin-bottom: 15px;
}

.membership-card ul {
    list-style: none;
    text-align: left;
    padding: 0;
    margin: 20px 0;
}

.membership-card ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 14px;
}

.membership-card ul li::before {
    content: '✓';
    color: var(--accent-green);
    position: absolute;
    left: 0;
}

.join-btn {
    background-color: var(--accent-green);
    color: var(--primary-green);
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.join-btn:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

/* Mission Vision */
.mission-vision {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.mission-card, .vision-card {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
}

.mission-card i, .vision-card i {
    font-size: 40px;
    color: var(--accent-green);
    margin-bottom: 15px;
}

.mission-card h3, .vision-card h3 {
    font-size: 22px;
    color: var(--primary-green);
    margin-bottom: 15px;
}

/* Members */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--primary-green);
    margin-bottom: 40px;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 70px 25px;
    padding-top: 60px;
}

.member-card {
    background: var(--primary-green);
    border-radius: 14px;
    padding: 70px 22px 22px;
    position: relative;
    box-shadow: 0 6px 22px rgba(26, 92, 26, 0.18);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    color: var(--white);
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(26, 92, 26, 0.28);
}

.member-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--accent-green);
    background: #fff;
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.member-info { padding: 0; }

.member-name {
    font-size: 19px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
    line-height: 1.3;
}

.member-role {
    font-size: 14px;
    color: var(--accent-green);
    font-style: italic;
    font-weight: 500;
    margin-bottom: 16px;
}

.member-details {
    background: var(--accent-green);
    border-radius: 8px;
    padding: 16px 18px;
    font-size: 13.5px;
    text-align: left;
    color: #0d3d0d;
}

.detail-item {
    margin-bottom: 8px;
    color: #0d3d0d;
    line-height: 1.5;
}

.detail-item:last-child { margin-bottom: 0; }

.detail-item strong { color: #0d3d0d; font-weight: 700; }

.detail-item a {
    color: #0d3d0d;
    text-decoration: none;
    word-break: break-all;
}

.detail-item a:hover { text-decoration: underline; }

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.news-card {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.news-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }

.news-card .news-card-img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0f3f5;
}

.news-card img {
    width: 100%;
    height: 100%;
    min-width: 300px;
    object-fit: cover;
    display: block;
    image-rendering: auto;
    transition: transform 0.4s ease;
}

.news-card:hover img { transform: scale(1.04); }

.news-card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-body h3 {
    font-size: 20px;
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-body h3 a {
    color: var(--primary-green);
    text-decoration: none;
}
.news-card-body h3 a:hover { color: var(--accent-green); }

.news-card-body .date {
    font-size: 15px;
    color: #888;
    margin-bottom: 10px;
}
.news-card-body .date i { margin-right: 6px; }

.news-card-body p {
    font-size: 16px;
    color: #555;
    line-height: 1.55;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
}

.read-more {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-green);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.25s, transform 0.25s;
}
.read-more:hover { background: var(--accent-green); color: var(--primary-green); transform: translateX(3px); }
.read-more i { font-size: 11px; }

/* News Detail */
.news-detail-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}
.news-detail-cover {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    background: #f5f5f5;
    cursor: zoom-in;
}
.news-detail-body { padding: 35px 40px 40px; }
.news-detail-body h2 {
    color: var(--primary-green);
    font-size: 32px;
    margin-bottom: 10px;
    line-height: 1.3;
}
.news-detail-date { color: #999; font-size: 16px; margin-bottom: 22px; }
.news-detail-date i { margin-right: 6px; }
.news-detail-body p { margin-bottom: 18px; line-height: 1.8; color: #333; font-size: 17px; }

.gallery-title {
    color: var(--primary-green);
    margin: 32px 0 16px;
    font-size: 20px;
    border-top: 1px solid #eee;
    padding-top: 24px;
}
.news-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.gallery-item {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: transform 0.25s;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
    max-width: 95vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border-radius: 6px;
}
.lightbox-close {
    position: absolute; top: 20px; right: 28px;
    color: #fff; font-size: 38px; font-weight: 300;
    cursor: pointer; line-height: 1; user-select: none;
    background: none; border: 0;
}
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    color: #fff; font-size: 42px; cursor: pointer;
    background: rgba(255,255,255,0.08); border: 0;
    width: 54px; height: 54px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    user-select: none;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.18); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.gallery-item, .news-detail-cover { cursor: zoom-in; }
.gallery-item:hover { transform: scale(1.03); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 600px) {
    .news-detail-body { padding: 22px; }
    .news-detail-body h2 { font-size: 22px; }
}

/* Footer */
.footer {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 50px 20px 20px;
    margin-top: 100px;
    font-size: 15px;
    line-height: 1.65;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 35px;
    margin-bottom: 30px;
}

.footer-section p { font-size: 15px; opacity: 0.9; }

.footer-section h3 {
    font-size: 17px;
    margin-bottom: 14px;
    color: var(--accent-green);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 8px; font-size: 15px; }

.footer-section a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 15px;
}

.footer-section a:hover { color: var(--accent-green); }

.footer-divider {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.7;
    text-align: center;
    margin: 2px 0;
}

.footer-social { display: flex; gap: 8px; margin-top: 12px; }
.footer-social a {
    color: var(--white);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s;
    font-size: 13px;
}
.footer-social a:hover {
    background: var(--accent-green);
    color: var(--primary-green);
}

.contact-info-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: flex-start;
    font-size: 15px;
}
.contact-info-item i {
    color: var(--accent-green);
    margin-top: 3px;
    font-size: 12px;
}
.contact-info-item a { color: var(--accent-green); font-size: 15px; }
.contact-info-item strong { font-size: 15px; font-weight: 600; }


/* Pagination */
.pagination {
    text-align: center;
    margin: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.btn {
    padding: 10px 25px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s;
    background: var(--accent-green);
    color: var(--primary-green);
}

.btn:hover {
    background: var(--primary-green);
    color: var(--white);
}

.btn-disabled {
    background: #95a5a6;
    cursor: not-allowed;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle { display: flex; }
    nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
    nav.active { display: block; }
    nav ul { flex-direction: column; gap: 0; padding: 10px 0; }
    nav ul li a { display: block; padding: 12px 20px; }
    .esto-vir-text { display: none; }
    .about-grid, .mission-vision-grid, .contact-content { grid-template-columns: 1fr; }
    .slide-content h2 { font-size: 32px; }
    .slide-content p { font-size: 16px; }
    .section-header h2 { font-size: 32px; }
    .hero-section h1 { font-size: 36px; }

    /* Top bar: stack contact items, phone on first line, email on second */
    .top-bar { font-size: 13px; padding: 10px 0; }
.top-bar-content {
                flex-direction: column;
                gap: 15px;
                text-align: center;
            }

            .top-bar-contact {
                flex-direction: column;
                gap: 10px;
            }
    .contact-item { width: 100%; }

    /* Reduce hero slider height on mobile */
    .hero-slider { height: 75vh; min-height: 460px; max-height: 640px; }

    /* Membership cards: stack full-width and centered */
    .membership-cards { grid-template-columns: 1fr; max-width: 100%; padding: 0 16px; gap: 20px; }
    .membership-card { width: 100%; padding: 30px 22px; }
}

@media (max-width: 480px) {
    .hero-slider { height: 70vh; min-height: 420px; }
}
