/* ============================================================
   MPC MADURAI - Main Stylesheet
   Madurai Productivity Council | Est. 1959
   Colors: Red #CC0000 | Navy #1A1A2E | Gold #D4A017 | Green #2E7D32
   ============================================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #F5F5F5; color: #1A1A2E; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- CSS VARIABLES ---- */
:root {
    --red:    #CC0000;
    --navy:   #1A1A2E;
    --gold:   #D4A017;
    --green:  #2E7D32;
    --white:  #FFFFFF;
    --light:  #F5F5F5;
    --border: #E0E0E0;
    --text:   #1A1A2E;
    --muted:  #666666;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --radius: 8px;
    --radius-lg: 12px;
}

/* ---- ANNOUNCEMENT BAR ---- */
.announce-bar {
    background: var(--gold);
    color: #3a2500;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    padding: 7px 40px;
    position: relative;
    overflow: hidden;
}
.announce-bar a { color: #3a2500; border-bottom: 1px solid rgba(58,37,0,0.4); margin-left: 8px; }
.announce-bar a:hover { border-bottom-color: #3a2500; }
.announce-ticker { display: inline-block; white-space: nowrap; }

/* ---- NAVBAR ---- */
.navbar {
    background: var(--navy);
    border-bottom: 3px solid var(--red);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 52px; width: auto; }
.nav-brand-text h1 { color: var(--white); font-size: 16px; font-weight: 700; line-height: 1.2; }
.nav-brand-text h1 span { color: var(--gold); }
.nav-brand-text small { color: rgba(255,255,255,0.55); font-size: 11px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); background: rgba(204,0,0,0.2); }
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 20px; height: 2px;
    background: var(--red);
    border-radius: 2px;
}

/* Dropdown nav */
.nav-dropdown { position: relative; }
.nav-dropdown > a::before { content: ' ▾'; font-size: 10px; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    background: var(--navy);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    min-width: 180px;
    padding: 6px 0;
    z-index: 999;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; color: rgba(255,255,255,0.75); padding: 8px 16px; font-size: 13px; }
.dropdown-menu a:hover { background: rgba(204,0,0,0.2); color: var(--white); }

.nav-cta {
    background: var(--red);
    color: var(--white) !important;
    padding: 8px 18px !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
}
.nav-cta:hover { background: #aa0000 !important; }

/* Mobile nav toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: 0.3s; }

/* ---- HERO SLIDER ---- */
.hero-slider { position: relative; overflow: hidden; }
.slider-track { display: flex; transition: transform 0.6s cubic-bezier(0.4,0,0.2,1); }
.slide {
    min-width: 100%;
    min-height: 480px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 60px 0;
}
.slide-bg { position: absolute; inset: 0; z-index: 0; }
.slide-overlay { position: absolute; inset: 0; z-index: 1; }
.slide-deco { position: absolute; right: 0; top: 0; bottom: 0; width: 42%; z-index: 1; display: flex; align-items: center; justify-content: center; }
.deco-circle { border-radius: 50%; opacity: 0.09; position: absolute; }

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    max-width: 600px;
}
.slide-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
    border: 1px solid;
}
.slide-num { font-size: 12px; color: rgba(255,255,255,0.35); margin-bottom: 6px; font-weight: 500; }
.slide-title { font-size: 36px; font-weight: 700; color: var(--white); line-height: 1.2; margin-bottom: 12px; }
.slide-desc { font-size: 15px; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 18px; max-width: 480px; }
.slide-meta { display: flex; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.meta-item { display: flex; align-items: center; gap: 7px; }
.meta-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.meta-text { font-size: 13px; color: rgba(255,255,255,0.6); }
.slide-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.sbtn-pri, .sbtn-sec {
    padding: 11px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-block;
}
.sbtn-pri { color: var(--white); }
.sbtn-pri:hover { opacity: 0.88; transform: translateY(-1px); }
.sbtn-sec { border: 1.5px solid rgba(255,255,255,0.4); color: rgba(255,255,255,0.85); }
.sbtn-sec:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }

/* Slider controls */
.slider-prev, .slider-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10; width: 42px; height: 42px;
    border-radius: 50%; background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.25);
    color: var(--white); font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s;
}
.slider-prev { left: 16px; }
.slider-next { right: 16px; }
.slider-prev:hover, .slider-next:hover { background: rgba(204,0,0,0.7); border-color: var(--red); }

.slider-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.35); cursor: pointer; transition: all 0.3s; }
.slider-dot.active { background: var(--red); width: 24px; border-radius: 4px; }

.slider-counter { position: absolute; top: 16px; right: 20px; z-index: 10; background: rgba(0,0,0,0.4); color: var(--white); font-size: 12px; padding: 4px 10px; border-radius: 12px; }
.slider-progress { position: absolute; bottom: 0; left: 0; height: 3px; background: var(--red); z-index: 10; transition: width 0.1s linear; }

/* ---- STATS BAR ---- */
.stats-bar { background: var(--red); padding: 16px 20px; }
.stats-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; gap: 16px; }
.stat-item { text-align: center; }
.stat-number { color: var(--white); font-size: 28px; font-weight: 700; line-height: 1; }
.stat-label { color: rgba(255,255,255,0.75); font-size: 12px; margin-top: 3px; }

/* ---- TICKER BAR ---- */
.ticker-bar { background: var(--navy); padding: 7px 20px; display: flex; align-items: center; gap: 12px; overflow: hidden; }
.ticker-label { background: var(--red); color: var(--white); font-size: 10px; padding: 3px 8px; border-radius: 3px; white-space: nowrap; flex-shrink: 0; font-weight: 600; letter-spacing: .5px; }
.ticker-text { color: rgba(255,255,255,0.7); font-size: 13px; white-space: nowrap; animation: ticker-scroll 25s linear infinite; }
@keyframes ticker-scroll { 0%{ transform: translateX(50vw); } 100%{ transform: translateX(-100%); } }

/* ---- SECTION STYLES ---- */
.section { padding: 60px 20px; }
.section-alt { background: var(--white); }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 44px; }
.section-header h2 { font-size: 30px; font-weight: 700; color: var(--navy); margin-bottom: 10px; position: relative; display: inline-block; }
.section-header h2::after { content: ''; display: block; width: 50px; height: 3px; background: var(--red); margin: 10px auto 0; border-radius: 2px; }
.section-header p { color: var(--muted); font-size: 15px; max-width: 560px; margin: 0 auto; }
.section-header-left { text-align: left; margin-bottom: 24px; }
.section-header-left h2 { font-size: 22px; }
.section-header-left h2::after { margin: 8px 0 0; }

/* ---- CARDS ---- */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 20px; }
.card-tag { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; margin-bottom: 10px; }
.card-tag-red { background: #FCEBEB; color: var(--red); }
.card-tag-gold { background: #FAEEDA; color: #633806; }
.card-tag-green { background: #EAF3DE; color: var(--green); }
.card-tag-blue { background: #E6F1FB; color: #0C447C; }
.card-tag-navy { background: rgba(26,26,46,0.08); color: var(--navy); }
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; color: var(--navy); }
.card p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.card-meta { font-size: 12px; color: var(--red); margin-top: 10px; display: flex; gap: 12px; align-items: center; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }

/* Grid layouts */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ---- HOME PAGE: NEWS + EVENTS ROW ---- */
.home-content-row { display: flex; gap: 24px; align-items: flex-start; }
.home-news-col { flex: 1; min-width: 0; }
.home-events-col { width: 300px; flex-shrink: 0; }

/* News list */
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-item { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 16px; display: flex; gap: 14px; transition: box-shadow 0.2s; }
.news-item:hover { box-shadow: var(--shadow); }
.news-icon { width: 54px; height: 54px; border-radius: var(--radius); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.news-content h4 { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.news-content p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.news-date { font-size: 12px; color: var(--red); margin-top: 6px; font-weight: 500; }

/* ---- FLOATING EVENTS WIDGET ---- */
.events-widget { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; position: sticky; top: 88px; }
.widget-header { background: var(--navy); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.widget-title { color: var(--white); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #4CAF50; animation: pulse-dot 1.5s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.3)} }
.widget-badge { background: var(--red); color: var(--white); font-size: 10px; padding: 2px 8px; border-radius: 10px; font-weight: 600; }

.event-entry { padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.15s; }
.event-entry:hover { background: #FFF5F5; }
.event-entry:last-of-type { border-bottom: none; }
.event-date-row { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.event-date-box { background: var(--red); color: var(--white); border-radius: 5px; text-align: center; width: 36px; flex-shrink: 0; padding: 3px 0; }
.event-date-box .day { font-size: 16px; font-weight: 700; line-height: 1; display: block; }
.event-date-box .mon { font-size: 9px; line-height: 1.4; display: block; text-transform: uppercase; }
.event-info h5 { font-size: 13px; font-weight: 600; color: var(--navy); line-height: 1.3; }
.event-venue { font-size: 11px; color: var(--muted); margin-top: 2px; }
.event-type-badge { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: 10px; font-weight: 600; margin-top: 4px; }

.widget-footer { background: var(--red); padding: 10px 16px; text-align: center; }
.widget-footer a { color: var(--white); font-size: 13px; font-weight: 600; }

/* ---- TRAINING CARDS ---- */
.training-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; transition: all 0.2s; }
.training-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.training-card-header { padding: 20px 20px 0; }
.training-card-icon { width: 50px; height: 50px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 12px; }
.training-card h3 { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.training-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.training-card-footer { padding: 14px 20px; border-top: 1px solid var(--border); margin-top: 14px; display: flex; justify-content: space-between; align-items: center; }
.training-meta { font-size: 12px; color: var(--muted); }
.training-meta span { color: var(--red); font-weight: 600; }

/* ---- TESTIMONIALS ---- */
.testimonial-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 24px; position: relative; }
.testimonial-card::before { content: '\201C'; font-size: 60px; color: var(--red); opacity: 0.15; position: absolute; top: 10px; left: 16px; font-family: Georgia,serif; line-height: 1; }
.testimonial-text { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; padding-top: 8px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 16px; flex-shrink: 0; overflow: hidden; }
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name { font-size: 14px; font-weight: 600; color: var(--navy); }
.testimonial-role { font-size: 12px; color: var(--muted); }
.star-rating { color: var(--gold); font-size: 13px; margin-bottom: 4px; }

/* ---- TEAM ---- */
.team-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); text-align: center; padding: 28px 20px; transition: all 0.2s; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-photo { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 3px solid var(--red); }
.team-photo-placeholder { width: 90px; height: 90px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 28px; font-weight: 700; margin: 0 auto 14px; border: 3px solid var(--red); }
.team-name { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.team-post { font-size: 13px; color: var(--red); font-weight: 500; margin-bottom: 4px; }
.team-dept { font-size: 12px; color: var(--muted); }

/* ---- HALL BOOKING ---- */
.booking-calendar { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; }
.cal-header { background: var(--navy); padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; }
.cal-header h3 { color: var(--white); font-size: 16px; font-weight: 600; }
.cal-nav { color: var(--white); font-size: 20px; cursor: pointer; padding: 0 8px; user-select: none; }
.cal-nav:hover { color: var(--gold); }
.cal-grid { padding: 16px; }
.cal-days-head { display: grid; grid-template-columns: repeat(7,1fr); text-align: center; }
.cal-day-name { font-size: 11px; font-weight: 600; color: var(--muted); padding: 6px 0; text-transform: uppercase; }
.cal-dates { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; }
.cal-date {
    aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px; font-size: 13px; font-weight: 500;
    cursor: pointer; transition: all 0.15s;
    border: 1.5px solid transparent;
}
.cal-date:hover:not(.disabled):not(.booked):not(.blocked) { background: #FCEBEB; border-color: var(--red); color: var(--red); }
.cal-date.today { background: #EAF3DE; color: var(--green); font-weight: 700; }
.cal-date.selected { background: var(--red); color: var(--white); border-color: var(--red); }
.cal-date.booked { background: #FFF0E0; color: #cc6600; cursor: not-allowed; }
.cal-date.blocked { background: #FCEBEB; color: var(--red); cursor: not-allowed; text-decoration: line-through; }
.cal-date.disabled { color: #ccc; cursor: default; }
.cal-date.empty { cursor: default; }
.cal-legend { display: flex; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.legend-dot { width: 12px; height: 12px; border-radius: 3px; }

/* ---- FORMS ---- */
.form-section { max-width: 700px; margin: 0 auto; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group label span.req { color: var(--red); }
.form-control {
    width: 100%; padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius); font-size: 14px;
    font-family: inherit; color: var(--text);
    background: var(--white); transition: border-color 0.2s;
}
.form-control:focus { outline: none; border-color: var(--red); }
.form-control.error { border-color: var(--red); background: #FFF8F8; }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 4px; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---- BUTTONS ---- */
.btn {
    display: inline-block; padding: 11px 24px;
    border-radius: var(--radius); font-size: 14px;
    font-weight: 600; transition: all 0.2s;
    cursor: pointer; border: none; font-family: inherit;
    text-align: center;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: #aa0000; transform: translateY(-1px); }
.btn-secondary { background: var(--navy); color: var(--white); }
.btn-secondary:hover { background: #0d0f1c; }
.btn-outline { background: transparent; color: var(--red); border: 2px solid var(--red); }
.btn-outline:hover { background: var(--red); color: var(--white); }
.btn-gold { background: var(--gold); color: #3a2500; }
.btn-gold:hover { background: #b8890f; }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: #1b5e20; }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-full { width: 100%; }

/* ---- GALLERY ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 16px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; position: relative; cursor: pointer; }
.gallery-item img { width: 100%; height: 180px; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(26,26,46,0.7); opacity: 0; transition: opacity 0.3s; display: flex; align-items: center; justify-content: center; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay-icon { color: var(--white); font-size: 28px; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 20px; }
.video-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--white); }
.video-thumb { position: relative; }
.video-thumb img { width: 100%; height: 160px; object-fit: cover; }
.play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.play-circle { width: 50px; height: 50px; border-radius: 50%; background: rgba(204,0,0,0.85); display: flex; align-items: center; justify-content: center; }
.play-circle::after { content: ''; border-left: 16px solid white; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.video-info { padding: 12px; }
.video-info h4 { font-size: 14px; font-weight: 600; color: var(--navy); }

/* ---- FAQ ---- */
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 10px; }
.faq-question { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--navy); user-select: none; }
.faq-question:hover { background: #FFF5F5; color: var(--red); }
.faq-icon { font-size: 18px; color: var(--red); transition: transform 0.3s; font-weight: 300; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 20px 16px; font-size: 14px; color: var(--muted); line-height: 1.7; border-top: 1px solid var(--border); padding-top: 14px; }
.faq-item.open .faq-answer { display: block; }

/* ---- BLOG ---- */
.blog-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; }
.blog-card-img { width: 100%; height: 180px; object-fit: cover; }
.blog-card-body { padding: 18px; }
.blog-card-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; display: flex; gap: 12px; }
.blog-card h3 { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.blog-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.read-more { color: var(--red); font-size: 13px; font-weight: 600; margin-top: 12px; display: inline-block; }
.read-more:hover { text-decoration: underline; }

/* ---- MEMBERSHIP ---- */
.membership-types { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 40px; }
.membership-card { border-radius: var(--radius-lg); border: 2px solid var(--border); padding: 24px; text-align: center; transition: all 0.2s; cursor: pointer; }
.membership-card.featured { border-color: var(--red); position: relative; }
.membership-card.featured::before { content: 'Most Popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--red); color: var(--white); font-size: 11px; padding: 3px 12px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
.membership-card:hover { border-color: var(--red); transform: translateY(-3px); }
.membership-icon { font-size: 36px; margin-bottom: 12px; }
.membership-type-name { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.membership-features { text-align: left; margin: 14px 0; }
.membership-features li { font-size: 13px; color: var(--muted); padding: 4px 0; padding-left: 18px; position: relative; }
.membership-features li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ---- CONTACT PAGE ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; }
.contact-info-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 28px; }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-icon { width: 40px; height: 40px; border-radius: var(--radius); background: #FCEBEB; display: flex; align-items: center; justify-content: center; color: var(--red); font-size: 18px; flex-shrink: 0; }
.contact-detail h4 { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 3px; }
.contact-detail p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.contact-detail a { color: var(--red); }
.social-links-row { display: flex; gap: 10px; margin-top: 10px; }
.social-btn { width: 36px; height: 36px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 16px; font-weight: 700; transition: opacity 0.2s; }
.social-btn:hover { opacity: 0.85; }
.social-facebook { background: #1877F2; }
.social-instagram { background: #E4405F; }
.social-linkedin { background: #0A66C2; }
.social-youtube { background: #FF0000; }
.social-twitter { background: #1DA1F2; }

/* ---- PAGE HEADER ---- */
.page-header { background: var(--navy); padding: 44px 20px; text-align: center; position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.01) 10px, rgba(255,255,255,0.01) 20px); }
.page-header-border { position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: var(--red); }
.page-header h1 { color: var(--white); font-size: 32px; font-weight: 700; margin-bottom: 8px; position: relative; }
.page-header p { color: rgba(255,255,255,0.65); font-size: 15px; position: relative; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; position: relative; }
.breadcrumb a { color: rgba(255,255,255,0.55); font-size: 13px; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.35); font-size: 13px; }
.breadcrumb span.current { color: var(--gold); }

/* ---- FOOTER ---- */
.footer { background: var(--navy); color: rgba(255,255,255,0.75); }
.footer-top { padding: 50px 20px 30px; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-brand img { height: 56px; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.footer-col h4 { color: var(--white); font-size: 14px; font-weight: 600; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--red); display: inline-block; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 13px; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold); padding-left: 4px; }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 12px; font-size: 13px; color: rgba(255,255,255,0.6); }
.footer-contact-icon { color: var(--gold); font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.footer-newsletter input { width: 100%; padding: 9px 12px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.07); color: var(--white); font-size: 13px; margin-bottom: 8px; }
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.4); }
.footer-newsletter input:focus { outline: none; border-color: var(--red); }
.footer-newsletter button { width: 100%; padding: 9px; background: var(--red); color: var(--white); border-radius: var(--radius); font-size: 13px; font-weight: 600; cursor: pointer; border: none; }
.footer-newsletter button:hover { background: #aa0000; }
.footer-social { display: flex; gap: 8px; margin-top: 14px; }
.footer-social a { width: 34px; height: 34px; border-radius: var(--radius); background: rgba(255,255,255,0.07); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); font-size: 15px; transition: all 0.2s; }
.footer-social a:hover { background: var(--red); color: var(--white); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 16px 20px; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.45); }
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { font-size: 12px; color: rgba(255,255,255,0.45); }
.footer-bottom-links a:hover { color: var(--gold); }

/* ---- WHATSAPP FLOAT ---- */
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px;
    width: 52px; height: 52px; border-radius: 50%;
    background: #25D366; display: flex; align-items: center; justify-content: center;
    z-index: 9999; box-shadow: 0 4px 14px rgba(37,211,102,0.4);
    transition: transform 0.2s;
    animation: wa-bounce 2s ease-in-out 3s 3;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; }
@keyframes wa-bounce { 0%,100%{transform:scale(1)} 50%{transform:scale(1.15)} }
.whatsapp-tooltip {
    position: fixed; bottom: 32px; right: 86px;
    background: var(--navy); color: var(--white);
    font-size: 12px; padding: 6px 12px; border-radius: 6px;
    white-space: nowrap; z-index: 9998; opacity: 0;
    transition: opacity 0.2s; pointer-events: none;
}
.whatsapp-float:hover + .whatsapp-tooltip { opacity: 1; }

/* ---- SOCIAL FLOAT ---- */
.social-float {
    position: fixed; left: 0; top: 50%; transform: translateY(-50%);
    z-index: 999; display: flex; flex-direction: column; gap: 0;
}
.social-float a {
    width: 36px; height: 36px; display: flex; align-items: center;
    justify-content: center; color: var(--white); font-size: 15px;
    transition: width 0.2s; overflow: hidden; white-space: nowrap;
}
.social-float a:hover { width: 100px; padding-right: 12px; }
.social-float a span { font-size: 11px; margin-left: 8px; opacity: 0; transition: opacity 0.2s; }
.social-float a:hover span { opacity: 1; }

/* ---- TAMIL TOGGLE ---- */
.lang-toggle { position: fixed; top: 120px; right: 0; z-index: 999; }
.lang-btn {
    background: var(--navy); color: var(--white);
    border: none; padding: 8px 10px; font-size: 12px; font-weight: 600;
    cursor: pointer; display: flex; flex-direction: column; align-items: center;
    border-radius: 8px 0 0 8px; border: 1px solid rgba(255,255,255,0.15);
    border-right: none; gap: 3px; transition: background 0.2s;
}
.lang-btn:hover { background: var(--red); }
.lang-flag { font-size: 18px; }

/* ---- PAGE LOADER ---- */
.page-loader { position: fixed; inset: 0; background: var(--navy); z-index: 99999; display: flex; align-items: center; justify-content: center; transition: opacity 0.4s; }
.loader-logo { text-align: center; }
.loader-logo h2 { color: var(--white); font-size: 22px; margin-bottom: 4px; }
.loader-logo p { color: var(--gold); font-size: 13px; margin-bottom: 20px; }
.loader-bar { width: 200px; height: 3px; background: rgba(255,255,255,0.1); border-radius: 2px; }
.loader-fill { height: 100%; background: var(--red); border-radius: 2px; animation: load 1.2s ease-out forwards; }
@keyframes load { from{width:0} to{width:100%} }
.page-loader.hidden { opacity: 0; pointer-events: none; }

/* ---- BACK TO TOP ---- */
.back-to-top {
    position: fixed; bottom: 24px; left: 24px;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--navy); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; z-index: 999; cursor: pointer;
    opacity: 0; transition: all 0.3s; border: 1px solid rgba(255,255,255,0.2);
}
.back-to-top.visible { opacity: 1; }
.back-to-top:hover { background: var(--red); }

/* ---- ALERT MESSAGES ---- */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; border-left: 4px solid; }
.alert-success { background: #EAF3DE; color: var(--green); border-color: var(--green); }
.alert-error   { background: #FCEBEB; color: var(--red);   border-color: var(--red); }
.alert-warning { background: #FAEEDA; color: #633806;      border-color: var(--gold); }
.alert-info    { background: #E6F1FB; color: #0C447C;      border-color: #1565C0; }

/* ---- BOOKING CONFIRMATION SLIP ---- */
.booking-slip { border: 2px solid var(--navy); border-radius: var(--radius-lg); padding: 28px; max-width: 600px; margin: 0 auto; background: var(--white); }
.slip-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px dashed var(--border); }
.slip-logo h2 { font-size: 16px; font-weight: 700; color: var(--red); }
.slip-logo p { font-size: 11px; color: var(--muted); }
.slip-ref { text-align: right; }
.slip-ref .ref-num { font-size: 20px; font-weight: 700; color: var(--navy); }
.slip-ref small { font-size: 11px; color: var(--muted); }
.slip-body { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.slip-field label { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.slip-field p { font-size: 14px; font-weight: 600; color: var(--navy); margin-top: 2px; }
.slip-status { text-align: center; padding: 10px; border-radius: var(--radius); font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.slip-status.pending { background: #FAEEDA; color: #633806; }
.slip-status.approved { background: #EAF3DE; color: var(--green); }
.slip-footer { text-align: center; font-size: 11px; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 14px; }
@media print {
    .navbar, .footer, .whatsapp-float, .social-float, .lang-toggle, .back-to-top { display: none !important; }
    .booking-slip { border-color: #000; }
}

/* ---- PAGINATION ---- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; }
.page-btn { width: 36px; height: 36px; border-radius: var(--radius); border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; color: var(--navy); transition: all 0.2s; }
.page-btn:hover, .page-btn.active { background: var(--red); color: var(--white); border-color: var(--red); }

/* ---- ADMIN PANEL OVERRIDES (brief) ---- */
.admin-body { background: #F0F2F5; }
.admin-sidebar { position: fixed; top: 0; left: 0; width: 240px; height: 100vh; background: var(--navy); z-index: 100; display: flex; flex-direction: column; overflow-y: auto; }
.admin-content { margin-left: 240px; min-height: 100vh; padding: 0; }
.admin-topbar { background: var(--white); border-bottom: 1px solid var(--border); padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.admin-main { padding: 24px; }
.admin-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 20px; margin-bottom: 20px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { background: var(--light); padding: 10px 14px; text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.admin-table tr:hover td { background: #FFF5F5; }
.status-badge { display: inline-block; padding: 3px 9px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.status-pending  { background: #FAEEDA; color: #633806; }
.status-approved { background: #EAF3DE; color: var(--green); }
.status-rejected { background: #FCEBEB; color: var(--red); }
.status-active   { background: #EAF3DE; color: var(--green); }
.status-inactive { background: #F1EFE8; color: var(--muted); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2,1fr); }
    .grid-4 { grid-template-columns: repeat(2,1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .home-events-col { width: 260px; }
}
@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: flex; }
    .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); padding: 16px; gap: 4px; z-index: 999; border-top: 1px solid rgba(255,255,255,0.1); }
    .nav-links.open .nav-cta { display: block; margin-top: 8px; }
    .slide-title { font-size: 24px; }
    .slide { min-height: 360px; }
    .slide-deco { display: none; }
    .home-content-row { flex-direction: column; }
    .home-events-col { width: 100%; }
    .events-widget { position: static; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2,1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .membership-types { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .stats-inner { grid-template-columns: repeat(2,1fr); }
    .admin-sidebar { width: 200px; }
    .admin-content { margin-left: 200px; }
    .social-float { display: none; }
}
@media (max-width: 480px) {
    .slide-title { font-size: 20px; }
    .slide-btns { flex-direction: column; }
    .grid-4 { grid-template-columns: 1fr; }
    .booking-slip .slip-body { grid-template-columns: 1fr; }
    .admin-content { margin-left: 0; }
    .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s; }
    .admin-sidebar.open { transform: translateX(0); }
}
</style>
