/* ========================================
   NAVAKERALA - Malayali Association of South Florida
   CSS Styles - Kerala-inspired Design
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&family=Noto+Sans+Malayalam:wght@400;500;600;700&display=swap');

:root {
    /* Kerala-inspired color palette */
    /* UPDATED: Softer red colors */
    /* --kerala-green: #a94442;
    --kerala-green-dark: #7a3234; */
    --kerala-green: #c41e3a;
    --kerala-green-dark: #8b0000;
    --kerala-gold: #d4a012;
    --kerala-gold-light: #f5d76e;
    --cream: #fdf8e8;
    --cream-dark: #f5edd6;
    --text-dark: #2c2c2c;
    --text-light: #ffffff;
    --accent-red: #a94442;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-width: 1200px;
    
    /* Transitions */
    --transition-smooth: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--cream);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

header {
    background: linear-gradient(135deg, var(--kerala-green-dark) 0%, var(--kerala-green) 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* UPDATED: Light yellow top bar */
.top-bar {
    background: var(--cream-dark);
    padding: 8px 0;
    border-bottom: 1px solid #e0d5b8;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-info {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

/* UPDATED: Dark text for light background */
.contact-info a {
    color: #5a5a5a;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.contact-info a:hover {
    color: var(--kerala-green);
}

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

/* UPDATED: Dark icons for light background */
.social-links a {
    color: var(--kerala-green);
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    color: var(--kerala-green-dark);
    transform: translateY(-2px);
}

.main-nav {
    padding: 15px 0;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-img {
    width: 60px;
    height: 60px;
    background: var(--kerala-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--kerala-green-dark);
}

.logo-text {
    color: var(--text-light);
}

.logo-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-text span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    padding: 12px 18px;
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    border-radius: 4px;
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
    background: rgba(255, 255, 255, 0.15);
    color: var(--kerala-gold-light);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--text-light);
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    list-style: none;
    overflow: hidden;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    color: var(--text-dark);
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-menu a:hover {
    background: var(--cream);
    color: var(--kerala-green);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-light);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* ========================================
   HERO SECTION
   ======================================== */

/* UPDATED: Kerala background image with soft red overlay */
.hero {
    background: linear-gradient(rgba(169, 68, 66, 0.85), rgba(122, 50, 52, 0.9)),
                url('../images/kerala-bg-4.jpg') center/cover no-repeat;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.hero::before {
    display: none;
    /* content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: url('../images/navakerala-logo.png') center center no-repeat;
    background-size: contain;
    opacity: 0.15;
    z-index: 0; */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}

.hero .tagline {
    font-size: 1.3rem;
    margin-bottom: 15px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero .malayalam-text {
    font-family: 'Noto Sans Malayalam', sans-serif;
    font-size: 1.5rem;
    color: var(--kerala-gold-light);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero .tax-exempt {
    background: var(--kerala-gold);
    color: var(--kerala-green-dark);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.btn {
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--kerala-gold);
    color: var(--kerala-green-dark);
}

.btn-primary:hover {
    background: var(--kerala-gold-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 160, 18, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--kerala-green);
    transform: translateY(-3px);
}

/* ========================================
   SECTIONS - GENERAL
   ======================================== */

section {
    padding: var(--section-padding);
}

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

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--kerala-green-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--kerala-gold), var(--kerala-green));
    border-radius: 2px;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto 0;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about {
    background: var(--text-light);
}

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

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--kerala-gold);
    border-radius: 15px;
    z-index: -1;
}

.about-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--kerala-green-dark);
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 20px;
    color: #555;
}

.mission-pillars {
    margin-top: 30px;
}

.pillar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--cream);
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.pillar:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.pillar-icon {
    width: 50px;
    height: 50px;
    background: var(--kerala-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.pillar h4 {
    color: var(--kerala-green-dark);
    margin-bottom: 5px;
}

.pillar p {
    font-size: 0.9rem;
    margin: 0;
}

/* ========================================
   HISTORY SECTION
   ======================================== */

.history {
    background: linear-gradient(135deg, var(--kerala-green-dark) 0%, var(--kerala-green) 100%);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.history::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0C22.4 0 0 22.4 0 50s22.4 50 50 50 50-22.4 50-50S77.6 0 50 0zm0 90c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}

.history .section-header h2 {
    color: var(--text-light);
}

.history .section-header h2::after {
    background: var(--kerala-gold);
}

.history-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.history-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 25px;
    opacity: 0.95;
}

.history-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.stat {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.stat:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--kerala-gold);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* ========================================
   COMMITTEE SECTION
   ======================================== */

.committee {
    background: var(--cream);
}

.committee-year {
    text-align: center;
    margin-bottom: 40px;
}

.committee-year h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--kerala-green);
    background: var(--text-light);
    display: inline-block;
    padding: 10px 40px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.committee-card {
    background: var(--text-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    text-align: center;
}

.committee-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.committee-card.president {
    grid-column: span 2;
}

.committee-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: white;
}

.committee-card.president img {
    height: 350px;
}

.card-content {
    padding: 25px;
}

.card-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--kerala-green-dark);
    margin-bottom: 5px;
}

.card-content .position {
    color: var(--kerala-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

/* Executive Committee */
.executive-committee {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Other Members */
.other-members {
    margin-top: 50px;
}

.other-members h3 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--kerala-green-dark);
    margin-bottom: 30px;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.member-card {
    background: var(--text-light);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
}

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

.member-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--kerala-gold);
    background: linear-gradient(135deg, var(--kerala-green) 0%, var(--kerala-green-dark) 100%);
}

.member-card h4 {
    font-size: 1rem;
    color: var(--kerala-green-dark);
    margin-bottom: 5px;
}

.member-card .position {
    font-size: 0.8rem;
    color: #888;
}

/* ========================================
   ACTIVITIES SECTION
   ======================================== */

.activities {
    background: var(--text-light);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.activity-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    background: var(--cream);
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.activity-image {
    height: 220px;
    background: linear-gradient(135deg, var(--kerala-green) 0%, var(--kerala-green-dark) 100%);
    position: relative;
    overflow: hidden;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--kerala-gold);
    color: var(--kerala-green-dark);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.activity-content {
    padding: 25px;
}

.activity-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--kerala-green-dark);
    margin-bottom: 10px;
}

.activity-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.activity-link {
    color: var(--kerala-green);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition-smooth);
}

.activity-link:hover {
    color: var(--kerala-gold);
    gap: 10px;
}

/* ========================================
   MEMBERSHIP SECTION
   ======================================== */

.membership {
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
}

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

.membership-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--kerala-green-dark);
    margin-bottom: 20px;
}

.membership-info p {
    color: #555;
    margin-bottom: 20px;
}

.benefits-list {
    list-style: none;
    margin: 30px 0;
}

.benefits-list li {
    padding: 12px 0;
    padding-left: 35px;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--kerala-green);
    font-weight: 700;
    font-size: 1.1rem;
}

.membership-form-card {
    background: var(--text-light);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.membership-form-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--kerala-green-dark);
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--kerala-green);
    box-shadow: 0 0 0 4px rgba(169, 68, 66, 0.1);
}

.form-btn {
    width: 100%;
    padding: 16px;
    background: var(--kerala-green);
    color: var(--text-light);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.form-btn:hover {
    background: var(--kerala-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(169, 68, 66, 0.3);
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact {
    background: var(--text-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--kerala-green-dark);
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--cream);
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--kerala-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--kerala-green-dark);
    margin-bottom: 5px;
}

.contact-item p,
.contact-item a {
    color: #666;
    text-decoration: none;
}

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

.contact-form {
    background: var(--cream);
    padding: 40px;
    border-radius: 20px;
}

.contact-form h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--kerala-green-dark);
    margin-bottom: 25px;
}

/* ========================================
   FOOTER - UPDATED: Light yellow background
   ======================================== */

footer {
    background: var(--cream-dark);
    color: #333;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0d5b8;
}

/* UPDATED: Dark text for light footer */
.footer-about h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--kerala-green);
}

.footer-about p {
    color: #555;
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--kerala-green);
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    display: block;
    padding: 8px 0;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--kerala-green);
    padding-left: 10px;
}

.footer-contact p {
    color: #555;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--kerala-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition-smooth);
}

.footer-social a:hover {
    background: var(--kerala-gold);
    color: var(--kerala-green-dark);
    transform: translateY(-5px);
}

/* .footer-bottom {
    padding: 25px 0;
    text-align: center;
    /* background: #e8ddc4; 
    background: #a9cce3;
} */
.footer-bottom {
    padding: 25px 0;
    text-align: center;
    background: #a9cce3;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

.footer-bottom p {
    color: #555;
    font-size: 0.9rem;
}

/* ========================================
   PAGE HEADERS - UPDATED: Kerala background image
   ======================================== */

.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                url('https://images.unsplash.com/photo-1602216056096-3b40cc0c9944?w=1920') center/cover no-repeat;
    padding: 80px 0;
    text-align: center;
    color: var(--text-light);
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 15px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    opacity: 0.9;
}

.breadcrumb a {
    color: var(--kerala-gold-light);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ========================================
   GALLERY SECTION
   ======================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--text-light);
    font-weight: 600;
}

/* ========================================
   PAST PRESIDENTS
   ======================================== */

.presidents-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.presidents-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--kerala-green);
    transform: translateX(-50%);
}

.president-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.president-item:nth-child(odd) {
    justify-content: flex-start;
    padding-right: 55%;
}

.president-item:nth-child(even) {
    justify-content: flex-end;
    padding-left: 55%;
}

.president-card {
    background: var(--text-light);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: center;
}

.president-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--kerala-gold);
}

.president-card h4 {
    font-family: 'Playfair Display', serif;
    color: var(--kerala-green-dark);
    margin-bottom: 5px;
}

.president-card .year {
    background: var(--kerala-green);
    color: var(--text-light);
    padding: 5px 20px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

/* ========================================
   YOUTH & KIDS SECTIONS
   ======================================== */

.youth-section,
.kids-section {
    padding: var(--section-padding);
}

.youth-grid,
.kids-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-grid,
    .membership-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .history-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .executive-committee {
        grid-template-columns: 1fr;
    }
    
    .committee-card.president {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--kerala-green);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        display: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        color: var(--text-light);
        padding-left: 30px;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero .malayalam-text {
        font-size: 1.2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .presidents-timeline::before {
        left: 20px;
    }
    
    .president-item:nth-child(odd),
    .president-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 50px;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .history-stats {
        grid-template-columns: 1fr;
    }
    
    .activities-grid {
        grid-template-columns: 1fr;
    }
    
    .top-bar .container {
        justify-content: center;
        text-align: center;
    }
    
    .contact-info {
        justify-content: center;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

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

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.hidden { display: none; }

/* Placeholder image styling */
.placeholder-img {
    background: linear-gradient(135deg, var(--kerala-green) 0%, var(--kerala-green-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
}

/* Slideshow Styles */
.slideshow-container {
    position: relative;
    background: #f5f5f5;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide.active {
    display: block;
}

.fade {
    animation-name: fade;
    animation-duration: 1s;
}

@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* Navigation Dots Container */
.slideshow-dots {
    text-align: center;
    padding: 15px;
    position: absolute;
    bottom: 15px;
    width: 100%;
    z-index: 10;
}

/* Navigation Dots */
.dot {
    height: 14px;
    width: 14px;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active,
.dot:hover {
    background-color: white;
}