/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: #333; background: #fff; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== VARIABLES ===== */
:root {
    --primary: #FF6600;
    --dark: #1a1a2e;
    --light: #f5f7fa;
    --green: #006400;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== TOP BAR ===== */
.top-bar { background: var(--dark); color: #ccc; font-size: 13px; padding: 7px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar span { margin-right: 20px; }
.top-bar a { color: #FF6600; }
.top-bar a:hover { text-decoration: underline; }
.top-right { margin-left: auto; }

/* ===== MAIN HEADER ===== */
.main-header { background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%); padding: 18px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 15px; }
.logo-icon { font-size: 42px; display: flex; align-items: center; }
.logo-icon img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.4); }
.logo-text h1 { color: white; font-size: 24px; font-weight: 700; }
.logo-text span { color: #FF6600; font-size: 14px; }
.mobile-menu-btn { display: none; background: none; border: 2px solid white; color: white; font-size: 22px; padding: 4px 10px; cursor: pointer; border-radius: 5px; }

/* ===== NAVIGATION ===== */
.main-nav { background: var(--primary); }
.main-nav .container { display: flex; }
.main-nav ul { display: flex; flex-wrap: wrap; }
.main-nav ul li a { display: block; padding: 14px 18px; color: white; font-size: 14px; font-weight: 600; transition: background 0.2s; }
.main-nav ul li a:hover, .main-nav ul li a.active { background: rgba(0,0,0,0.2); }
.main-nav ul li a i { margin-right: 5px; }
.btn-nav-join { background: white !important; color: var(--primary) !important; border-radius: 25px; margin: 8px 10px !important; padding: 6px 18px !important; }
.btn-nav-logout { background: rgba(0,0,0,0.3) !important; border-radius: 5px; }

/* ===== HERO ===== */
.hero { position: relative; background: linear-gradient(125deg, #0a1f3c 0%, #16213e 45%, #3d1f00 78%, #5a2d00 100%); min-height: 580px; display: flex; align-items: center; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -160px; top: 50%; transform: translateY(-50%); width: 620px; height: 620px; background: url('../images/ICON.jpg') center/contain no-repeat; opacity: 0.07; pointer-events: none; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-inner { position: relative; z-index: 2; display: flex; align-items: center; gap: 50px; width: 100%; }
.hero-content { color: white; padding: 60px 0; flex: 1; max-width: 640px; }
.hero-image { flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.hero-image img { width: 330px; height: 330px; border-radius: 50%; object-fit: cover; border: 6px solid rgba(255,255,255,0.18); box-shadow: 0 0 0 12px rgba(255,255,255,0.04), 0 18px 50px rgba(0,0,0,0.5), 0 0 70px rgba(255,153,0,0.35); animation: heroGlow 4s ease-in-out infinite; }

/* IGNITE dismissible video panel */
.ignite-video-panel[hidden],
.ignite-open-btn[hidden] { display: none !important; }
.ignite-video-panel {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9500;
    width: min(360px, calc(100vw - 24px));
}
.ignite-video-card {
    position: relative;
    background: #111827;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}
.ignite-close {
    position: absolute;
    top: 6px;
    right: 10px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.ignite-close:hover { background: rgba(255,255,255,0.28); }
.ignite-video-panel .ignite-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff9900, #ff6600);
    color: #fff;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}
.ignite-video-panel .ignite-video-wrap {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
}
.ignite-video-panel .ignite-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #000;
}
.ignite-video-panel .ignite-caption {
    margin: 8px 2px 2px;
    color: rgba(255,255,255,0.9);
    font-size: 12px;
}
.ignite-open-btn {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9400;
    border: 0;
    border-radius: 999px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #ff9900, #ff6600);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}
@keyframes heroGlow {
    0%, 100% { box-shadow: 0 0 0 12px rgba(255,255,255,0.04), 0 18px 50px rgba(0,0,0,0.5), 0 0 60px rgba(255,153,0,0.30); }
    50% { box-shadow: 0 0 0 14px rgba(255,255,255,0.06), 0 18px 50px rgba(0,0,0,0.5), 0 0 90px rgba(255,153,0,0.55); }
}
.hero-badge { display: inline-block; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); padding: 6px 18px; border-radius: 20px; font-size: 14px; margin-bottom: 20px; }
.hero-content h1 { font-size: 56px; font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.hero-content h1 span { color: #ffd700; }
.hero-content p { font-size: 18px; opacity: 0.9; margin-bottom: 30px; max-width: 500px; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.hero-overlay { position: absolute; right: -50px; top: 50%; transform: translateY(-50%); font-size: 200px; opacity: 0.05; }

/* ===== BUTTONS ===== */
.btn { display: inline-block; padding: 12px 28px; border-radius: 6px; font-size: 15px; font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: all 0.3s; }
.btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover { background: #e65c00; border-color: #e65c00; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255,102,0,0.4); }
.btn-outline { background: transparent; color: white; border-color: white; }
.btn-outline:hover { background: white; color: var(--primary); }
.btn-white { background: white; color: var(--primary); font-weight: 700; }
.btn-white:hover { background: var(--dark); color: white; }
.btn-full { width: 100%; text-align: center; }

/* ===== STATS BAR ===== */
.stats-bar { background: var(--dark); padding: 30px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-item { text-align: center; color: white; padding: 15px; }
.stat-item i { font-size: 28px; color: var(--primary); margin-bottom: 8px; display: block; }
.stat-item h3 { font-size: 32px; font-weight: 800; color: white; }
.stat-item p { font-size: 13px; color: #ccc; }

/* ===== SECTIONS ===== */
.section { padding: 70px 0; }
.bg-light { background: var(--light); }
.section-header { text-align: center; margin-bottom: 45px; }
.section-header h2 { font-size: 34px; color: var(--dark); margin-bottom: 10px; position: relative; display: inline-block; }
.section-header h2::after { content: ''; display: block; width: 60px; height: 4px; background: var(--primary); margin: 10px auto 0; border-radius: 2px; }
.section-header p { color: #777; font-size: 16px; margin-top: 12px; }

/* ===== PAGE BANNER ===== */
.page-banner {
    color: white;
    padding: 55px 0;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, rgba(26,26,46,0.92), rgba(22,33,62,0.88)),
                url('../images/kerala_races.jpg') center/cover no-repeat;
}
.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,102,0,0.15) 0%, rgba(26,26,46,0.35) 100%);
    pointer-events: none;
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { font-size: 38px; margin-bottom: 10px; text-shadow: 0 2px 12px rgba(0,0,0,0.35); }
.page-banner p { color: #f0f0f0; font-size: 16px; text-shadow: 0 1px 6px rgba(0,0,0,0.3); }

/* Kerala-themed subpage banners */
.page-banner-theme-events {
    background: linear-gradient(135deg, rgba(26,26,46,0.88), rgba(15,80,60,0.85)),
                url('../images/kerala_races.jpg') center 30% / cover no-repeat;
}
.event-video-section { padding-bottom: 10px; }
.event-video-player {
    max-width: 920px;
    margin: 0 auto 10px;
}
.event-video-player .section-heading {
    margin-bottom: 8px;
    color: #1a1a2e;
}
.event-video-intro {
    color: #555;
    margin-bottom: 16px;
}
.event-video-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
    aspect-ratio: 16 / 9;
}
.event-highlight-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}
.page-banner-theme-gallery {
    background: transparent;
}

/* Gallery page full background */
.gallery-page-bg {
    position: relative;
    background-image: url('../images/Gallery.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}
.gallery-page-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
    z-index: 0;
    pointer-events: none;
}
.gallery-page-bg > * {
    position: relative;
    z-index: 1;
}
.page-theme-gallery .gallery-page-bg .section {
    background: transparent;
}
.page-theme-gallery .gallery-page-bg .page-banner h1,
.page-theme-gallery .gallery-page-bg .page-banner p {
    text-shadow: 0 2px 12px rgba(255,255,255,0.9), 0 1px 4px rgba(0,0,0,0.2);
}
.page-theme-gallery .gallery-page-bg .album-card,
.page-theme-gallery .gallery-page-bg .media-item {
    background: rgba(255,255,255,0.96);
}
.page-banner-theme-committee {
    background: linear-gradient(135deg, rgba(26,26,46,0.9), rgba(80,40,100,0.8)),
                url('../images/kerala_races.jpg') center 40% / cover no-repeat;
}
.page-banner-theme-activity {
    background: linear-gradient(135deg, rgba(26,26,46,0.88), rgba(180,90,20,0.82)),
                url('../images/kerala_races.jpg') center 60% / cover no-repeat;
}
.page-banner-theme-contact {
    background: linear-gradient(135deg, rgba(26,26,46,0.9), rgba(20,100,120,0.82)),
                url('../images/kerala_races.jpg') center 35% / cover no-repeat;
}
.page-banner-theme-about {
    background: linear-gradient(135deg, rgba(26,26,46,0.88), rgba(40,100,50,0.85)),
                url('../images/kerala_races.jpg') center 45% / cover no-repeat;
}

/* Kerala-tinted content sections on subpages */
.page-theme-events .section,
.page-theme-committee .section,
.page-theme-activity .section,
.page-theme-contact .section,
.page-theme-about .section {
    background: linear-gradient(180deg, #f8faf6 0%, #fff8f2 50%, #f5f9f7 100%);
}
.page-theme-events .card,
.page-theme-gallery .album-card,
.page-theme-committee .wing-card,
.page-theme-activity .card,
.page-theme-contact .form-card {
    border: 1px solid rgba(255,102,0,0.12);
    box-shadow: 0 4px 18px rgba(26,26,46,0.06);
}

/* ===== HOME SECTION BACKGROUNDS ===== */
.home-front-bg {
    position: relative;
    background-image: url('../images/front1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}
.home-front-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    z-index: 0;
    pointer-events: none;
}
.home-front-bg > * {
    position: relative;
    z-index: 1;
}
.events-section,
.news-section {
    background: none;
}
.events-section .container,
.news-section .container {
    position: relative;
}
.events-section .card,
.news-section .card {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(2px);
}
.events-section .section-header h2 {
    color: #FFD700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35), 0 1px 3px rgba(255,255,255,0.5);
}
.news-section .section-header h2 {
    text-shadow: 0 2px 12px rgba(255,255,255,0.95), 0 1px 4px rgba(0,0,0,0.15);
}
.events-section .section-header p,
.news-section .section-header p {
    text-shadow: 0 1px 8px rgba(255,255,255,0.9);
}

/* ===== CARDS ===== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.card { background: white; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s; }
.card:hover { transform: translateY(-5px); }
.card-img { height: 200px; overflow: hidden; background: #f4f4f4; display: flex; align-items: center; justify-content: center; }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.3s; }
.news-card .card-img { height: 220px; }
.news-card .card-img img { object-fit: cover; object-position: center center; background: #f8f8f8; padding: 0; width: 100%; height: 100%; }
.terms-check { background: #f8f9fa; padding: 12px 14px; border-radius: 8px; border: 1px solid #e5e5e5; margin-bottom: 16px; }
.checkbox-label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.checkbox-label input { margin-top: 3px; flex-shrink: 0; }
.card:hover .card-img img { transform: scale(1.05); }
.card-img-placeholder { height: 200px; background: linear-gradient(135deg, #f0f0f0, #e0e0e0); display: flex; align-items: center; justify-content: center; font-size: 48px; color: #ccc; }
.card-body { padding: 20px; }
.card-body h3 { font-size: 18px; color: var(--dark); margin-bottom: 8px; }
.card-body p { color: #666; font-size: 14px; margin-bottom: 6px; }
.card-date { font-size: 12px; color: var(--primary); font-weight: 600; text-transform: uppercase; }

/* ===== EVENT CARDS ===== */
.event-card { display: flex; align-items: flex-start; gap: 20px; padding: 20px; }
.event-date-badge { background: var(--primary); color: white; border-radius: 10px; padding: 10px 15px; text-align: center; min-width: 60px; }
.event-date-badge .day { display: block; font-size: 26px; font-weight: 800; line-height: 1; }
.event-date-badge .month { display: block; font-size: 13px; text-transform: uppercase; }

/* ===== MEMBERS ===== */
.members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }
.member-card { text-align: center; background: white; border-radius: 12px; padding: 20px 15px; box-shadow: var(--shadow); transition: transform 0.3s; }
.member-card:hover { transform: translateY(-5px); }
.member-avatar { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; margin: 0 auto 12px; border: 3px solid var(--primary); }
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-placeholder { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--dark)); display: flex; align-items: center; justify-content: center; color: white; font-size: 30px; font-weight: 700; margin: 0 auto 12px; }
.member-card h4 { font-size: 14px; color: var(--dark); margin-bottom: 4px; }
.member-card p { font-size: 12px; color: #777; }
.member-since { font-size: 11px; color: var(--primary); }

/* ===== MEMBERS PAGE - LARGE GRID ===== */
.members-grid-lg { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.member-card-lg { display: flex; align-items: center; gap: 15px; background: white; border-radius: 12px; padding: 18px; box-shadow: var(--shadow); transition: transform 0.3s; }
.member-card-lg:hover { transform: translateY(-3px); }
.member-avatar-lg { width: 70px; height: 70px; border-radius: 50%; overflow: hidden; border: 3px solid var(--primary); flex-shrink: 0; }
.member-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.member-info h3 { font-size: 16px; color: var(--dark); margin-bottom: 3px; }
.member-info p { font-size: 13px; color: #777; }
.member-about { font-size: 12px; color: #999; }

/* ===== SEARCH BAR ===== */
.search-bar { margin-bottom: 30px; }
.search-form { display: flex; gap: 12px; flex-wrap: wrap; }
.search-form input, .search-form select { padding: 10px 15px; border: 2px solid #ddd; border-radius: 6px; font-size: 14px; flex: 1; min-width: 200px; }
.search-form input:focus, .search-form select:focus { outline: none; border-color: var(--primary); }

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; }
.gallery-item { position: relative; border-radius: 10px; overflow: hidden; cursor: pointer; }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: white; padding: 15px 12px 10px; font-size: 13px; }

/* ===== LIGHTBOX ===== */
#lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 9999; justify-content: center; align-items: center; flex-direction: column; }
#lightbox img { max-width: 90%; max-height: 80vh; border-radius: 8px; }
#lightbox-caption { color: white; margin-top: 15px; font-size: 16px; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: white; font-size: 40px; cursor: pointer; line-height: 1; }

/* ===== FORMS ===== */
.form-wrapper { display: flex; justify-content: center; }
.form-wrapper-sm { max-width: 420px; margin: 0 auto; width: 100%; }
.form-card-wide { max-width: 820px; }
.existing-member-banner { margin-bottom: 22px; }
.btn-existing-member {
    background: linear-gradient(135deg, #1a1a2e, #2d3a5c);
    color: #fff;
    font-weight: 600;
    padding: 14px 20px;
    border: 2px solid #FF6600;
    text-align: center;
    text-decoration: none;
    display: block;
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s;
}
.btn-existing-member:hover {
    background: linear-gradient(135deg, #FF6600, #e65c00);
    color: #fff;
    transform: translateY(-1px);
}
.form-section-title {
    font-size: 17px;
    color: var(--dark);
    margin: 28px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}
.form-section-title:first-of-type { margin-top: 0; }
.form-hint { font-size: 13px; color: #777; margin: -6px 0 14px; }
.family-row { margin-bottom: 8px; }
.family-divider { border: none; border-top: 1px dashed #ddd; margin: 16px 0; }
.form-card { background: white; border-radius: 12px; padding: 35px; box-shadow: var(--shadow); width: 100%; max-width: 700px; }
.form-card h2 { color: var(--dark); margin-bottom: 25px; font-size: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--dark); font-size: 14px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 15px; border: 2px solid #e0e0e0; border-radius: 7px; font-size: 14px; transition: border 0.2s; font-family: inherit; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group input[type="file"] { padding: 8px; }
.form-group small { color: #999; font-size: 12px; }
.form-footer { text-align: center; margin-top: 15px; color: #777; }
.form-footer a { color: var(--primary); font-weight: 600; }
.login-icon { text-align: center; font-size: 50px; margin-bottom: 10px; }

/* ===== PROFILE ===== */
.profile-layout { display: grid; grid-template-columns: 280px 1fr; gap: 30px; align-items: start; }
.profile-card { background: white; border-radius: 12px; padding: 30px; box-shadow: var(--shadow); text-align: center; }
.profile-avatar-lg { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; margin: 0 auto 15px; border: 4px solid var(--primary); }
.profile-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg-placeholder { width: 120px; height: 120px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--dark)); display: flex; align-items: center; justify-content: center; color: white; font-size: 50px; font-weight: 700; margin: 0 auto 15px; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-top: 10px; }
.badge-active { background: #d4edda; color: #155724; }
.membership-type-line { margin-top: 12px; font-size: 14px; color: #333; line-height: 1.4; }
.membership-type-line strong { color: #FF6600; }
.badge-upcoming { background: #cce5ff; color: #004085; }
.badge-past { background: #e2e3e5; color: #383d41; }

/* ===== ALERTS ===== */
.alert { padding: 12px 18px; border-radius: 7px; margin-bottom: 20px; font-size: 14px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-review { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; line-height: 1.5; }
.login-method-tabs { display: flex; gap: 8px; margin: 0 0 20px; }
.login-method-tabs a {
    flex: 1; text-align: center; padding: 9px 10px; border-radius: 8px;
    border: 2px solid #e0e0e0; color: #444; font-weight: 600; font-size: 13px; text-decoration: none;
}
.login-method-tabs a.active { background: #FF6600; color: #fff; border-color: #FF6600; }
.link-button {
    background: none; border: none; color: var(--primary); font-weight: 600;
    cursor: pointer; font-size: 13px; text-decoration: underline; padding: 0;
}
.alert ul { margin-left: 20px; }

/* ===== ABOUT PAGE ===== */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.about-text h2 { font-size: 28px; color: var(--dark); margin: 25px 0 15px; }
.about-text p { color: #555; line-height: 1.8; margin-bottom: 15px; }
.about-tagline { font-size: 17px; color: var(--dark); margin-bottom: 18px; }
.about-list li { padding: 8px 0; color: #555; }
.about-list li i { color: var(--primary); margin-right: 10px; }

/* Clickable news/event cards + detail popup */
.card-clickable { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.card-clickable:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.12); }
.card-read-more { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--primary); font-weight: 600; }
.detail-modal[hidden] { display: none !important; }
.detail-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.detail-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.detail-modal-dialog {
    position: relative; z-index: 1; background: #fff; border-radius: 14px;
    width: min(640px, 100%); max-height: 85vh; overflow: auto;
    padding: 28px 28px 24px; box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.detail-modal-close {
    position: absolute; top: 10px; right: 14px; border: 0; background: transparent;
    font-size: 28px; line-height: 1; cursor: pointer; color: #666;
}
.detail-modal-meta { font-size: 13px; color: #888; margin: 0 0 8px; }
.detail-modal-dialog h2 { font-size: 22px; color: var(--dark); margin: 0 0 14px; padding-right: 24px; }
.detail-modal-body { color: #444; line-height: 1.75; white-space: pre-wrap; font-size: 15px; }
.about-image-placeholder {
    color: white;
    border-radius: 15px;
    padding: 50px 30px;
    text-align: center;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: url('../images/kerala_races.jpg') center/cover no-repeat;
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}
.about-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
}
.about-image-placeholder span,
.about-image-placeholder h3,
.about-image-placeholder p { position: relative; z-index: 1; }
.about-image-placeholder span { font-size: 48px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4)); }
.about-image-placeholder h3 {
    font-size: 22px;
    margin: 15px 0 10px;
    color: #0d7a3a;
    font-weight: 700;
    text-shadow: 0 1px 8px rgba(255,255,255,0.95), 0 2px 6px rgba(255,255,255,0.6);
}
.about-image-placeholder p {
    font-size: 15px;
    max-width: 280px;
    color: #1a8f47;
    font-weight: 600;
    text-shadow: 0 1px 6px rgba(255,255,255,0.9);
}
.kerala-facts { background: white; border-radius: 12px; padding: 25px; box-shadow: var(--shadow); margin-top: 20px; }
.kerala-facts h3 { color: var(--dark); margin-bottom: 15px; font-size: 18px; }
.fact-item { padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; color: #555; }

/* ===== CONTACT PAGE ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: start; }
.contact-info h2 { font-size: 28px; color: var(--dark); margin-bottom: 15px; }
.contact-info p { color: #666; margin-bottom: 25px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
.contact-item i { width: 40px; height: 40px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.contact-item strong { display: block; color: var(--dark); margin-bottom: 3px; }
.contact-item p { margin: 0; color: #666; font-size: 14px; }

/* ===== SOCIAL LINKS ===== */
.social-links { display: flex; gap: 12px; }
.social-links a { width: 38px; height: 38px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: transform 0.2s, background 0.2s; }
.social-links a:hover { transform: translateY(-3px); background: var(--dark); }

/* ===== JOIN BANNER ===== */
.join-banner { background: linear-gradient(135deg, var(--primary), #e65c00); color: white; text-align: center; padding: 70px 20px; }
.join-banner h2 { font-size: 36px; margin-bottom: 15px; }
.join-banner p { font-size: 18px; opacity: 0.9; margin-bottom: 30px; }

/* ===== NO DATA ===== */
.no-data { text-align: center; color: #999; font-size: 16px; padding: 30px; }
.no-data-box { text-align: center; padding: 50px; grid-column: 1/-1; }
.no-data-box i { font-size: 50px; color: #ddd; display: block; margin-bottom: 15px; }

/* ===== FOOTER ===== */
.main-footer { margin-top: 0; }
.footer-top { background: var(--dark); color: #ccc; padding: 50px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 30px; }
.footer-col h3 { color: white; margin-bottom: 18px; font-size: 17px; }
.footer-col p { font-size: 14px; line-height: 1.8; margin-bottom: 8px; }
.footer-col ul li { padding: 5px 0; }
.footer-col ul li a { color: #ccc; font-size: 14px; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-col ul li { color: #ccc; font-size: 14px; }
.footer-bottom { background: #111; color: #999; padding: 15px; text-align: center; font-size: 13px; }
.footer-bottom p { margin: 3px 0; }

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-30 { margin-top: 30px; }
.mt-20 { margin-top: 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .hero-content h1 { font-size: 38px; }
    .hero-inner { flex-direction: column-reverse; text-align: center; gap: 25px; }
    .hero-content { padding: 30px 0 50px; max-width: 100%; }
    .hero-content p { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-image img { width: 220px; height: 220px; }
    .hero::after { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-layout, .contact-layout { grid-template-columns: 1fr; }
    .profile-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .main-nav ul { display: none; flex-direction: column; }
    .main-nav.open ul { display: flex; }
    .form-row { grid-template-columns: 1fr; }
    .cards-grid { grid-template-columns: 1fr; }
    .hero-content { padding: 20px 0 40px; }
    .hero-content h1 { font-size: 30px; }
    .hero-image img { width: 180px; height: 180px; }
    .footer-grid { grid-template-columns: 1fr; }
    .header-inner { flex-wrap: wrap; gap: 10px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .search-form { flex-direction: column; }
    .hero-buttons { flex-direction: column; }
}

/* ===== ENHANCED MOBILE FRIENDLINESS ===== */
img, video { max-width: 100%; height: auto; }
.container { padding: 0 15px; }

@media (max-width: 900px) {
    .top-bar .container { justify-content: center; text-align: center; }
    .top-bar span { margin: 2px 8px; }
    .top-right { margin-left: 0; width: 100%; text-align: center; }
    .page-banner h1 { font-size: 26px; }
    .page-banner p { font-size: 14px; }
    .section { padding: 40px 0; }
}

@media (max-width: 768px) {
    /* Header/Nav */
    .header-inner { flex-wrap: nowrap; }
    .logo-text h1 { font-size: 22px !important; line-height: 1.2 !important; }
    .logo-text span { font-size: 12px !important; }
    .logo-icon img { width: 42px; height: 42px; }
    .mobile-menu-btn { display: inline-block; }
    .main-nav ul { flex-direction: column; padding: 0; width: 100%; }
    .main-nav ul li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .main-nav ul li a { padding: 12px 18px; }
    .btn-nav-join, .btn-nav-logout { margin: 8px 18px !important; text-align: center; display: block !important; }

    /* Hero + Stats */
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-item h3 { font-size: 28px; }
    .stat-item p { font-size: 12px; }

    /* Forms & tables */
    .form-card { padding: 20px; }
    .form-row { grid-template-columns: 1fr !important; }
    table { font-size: 13px; }

    /* Section spacing */
    .section { padding: 30px 0; }
    .section-header h2 { font-size: 24px; }
    .join-banner h2 { font-size: 22px; }
}

@media (max-width: 480px) {
    .top-bar { font-size: 12px; padding: 6px 0; }
    .top-bar span { display: block; margin: 3px 0; }
    .logo-text h1 { font-size: 18px !important; }
    .logo-text span { font-size: 11px !important; }
    .page-banner { padding: 30px 0; }
    .page-banner h1 { font-size: 22px; }
    .hero-content h1 { font-size: 26px; }
    .hero-content p { font-size: 15px; }
    .hero-image img { width: 160px; height: 160px; }
    .btn { padding: 10px 16px; font-size: 14px; }

    /* Any horizontal-scroll fallback for tables */
    .table-scroll, .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Make touch targets bigger */
@media (hover: none) and (pointer: coarse) {
    .btn, .btn-sm, .btn-mini { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
    a, button { -webkit-tap-highlight-color: rgba(255,102,0,0.2); }
}

/* ===== SPONSORS ===== */
.sponsors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.sponsor-card { background: #fff; border-radius: 12px; padding: 20px; text-align: center; box-shadow: var(--shadow); }
.sponsor-photo { width: 120px; height: 120px; margin: 0 auto 14px; border-radius: 50%; overflow: hidden; border: 3px solid var(--primary); background: #f5f5f5; }
.sponsor-photo img { width: 100%; height: 100%; object-fit: cover; }
.sponsor-photo-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 40px; color: #ccc; }
.sponsor-card h3 { font-size: 16px; color: var(--dark); margin-bottom: 6px; }
.sponsor-card p { font-size: 13px; color: #777; }

/* ===== ACCOUNTS ===== */
.account-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.summary-card { background: #fff; border-radius: 12px; padding: 24px; text-align: center; box-shadow: var(--shadow); border-top: 4px solid var(--primary); }
.summary-card i { font-size: 28px; color: var(--primary); margin-bottom: 10px; }
.summary-card h3 { font-size: 24px; color: var(--dark); margin-bottom: 4px; }
.summary-card p { color: #777; font-size: 14px; }
.account-tabs-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.acct-tab-btn { padding: 10px 18px; border: 2px solid #ddd; background: #fff; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 600; color: #555; }
.acct-tab-btn.active, .acct-tab-btn:hover { border-color: var(--primary); color: var(--primary); background: #fff8f0; }
.acct-tab-panel { display: none; }
.acct-tab-panel.active { display: block; }
.account-table-wrap { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.account-table { width: 100%; border-collapse: collapse; }
.account-table th { background: var(--dark); color: #fff; padding: 12px 14px; text-align: left; font-size: 13px; }
.account-table td { padding: 12px 14px; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.badge-income { background: #d4edda; color: #155724; padding: 2px 10px; border-radius: 20px; font-size: 12px; }
.badge-expense { background: #f8d7da; color: #721c24; padding: 2px 10px; border-radius: 20px; font-size: 12px; }
