/* VGMF — Premium Light Ayurvedic Academic Conference */
:root {
    --ink: #1c2e28;
    --ink-soft: #3d534c;
    --muted: #6b7f76;
    --line: #e8e2d6;
    --ivory: #fffdf8;
    --surface: #ffffff;
    --surface-2: #f4faf7;
    --brand: #1b6b52;
    --brand-dark: #145a47;
    --brand-light: #2d9b72;
    --gold: #c9a227;
    --gold-soft: #fbf4e3;
    --accent: #c9a227;
    --accent-soft: #fbf4e3;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow: 0 10px 40px rgba(27, 107, 82, 0.08);
    --shadow-lg: 0 28px 70px rgba(27, 107, 82, 0.12);
    --font: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-display: 'Libre Baskerville', Georgia, serif;
    --max: 1200px;
    --section-pad: clamp(56px, 8vw, 96px);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
    font-family: var(--font);
    background: linear-gradient(180deg, var(--ivory) 0%, #f7fbf9 42%, #fffef9 100%);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.has-logo-theme {
    background-color: #f8fafc;
    background-image: var(--site-logo-watermark);
    background-repeat: no-repeat;
    background-position: center 8%;
    background-size: min(420px, 72vw);
    background-attachment: fixed;
}

body.has-logo-theme::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.97) 45%, rgba(255, 255, 255, 0.98) 100%);
    pointer-events: none;
    z-index: -1;
}

.site-header,
.top-bar,
.main-content,
.hero,
.page-panel {
    position: relative;
    z-index: 1;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-light); }

img { max-width: 100%; height: auto; display: block; }

/* —— Top strip —— */
.top-bar {
    background: #ffffff;
    color: var(--muted);
    font-size: 0.8rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.top-bar-container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-left { display: flex; flex-wrap: wrap; gap: 20px; }
.top-bar-left span { display: flex; align-items: center; gap: 8px; }
.top-bar-left i { color: var(--brand); font-size: 0.75rem; }

.top-bar-right { display: flex; gap: 16px; flex-wrap: wrap; }
.top-bar-right a {
    color: var(--brand);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.8rem;
}
.top-bar-right a:hover { color: var(--brand-light); }

/* —— Header (white) —— */
.site-header {
    background: rgba(255, 255, 255, 0.96);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 24px rgba(30, 58, 138, 0.06);
    backdrop-filter: blur(10px);
    isolation: isolate;
}

.nav-container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 16px;
    position: relative;
}

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

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    font-size: 1.1rem;
    box-shadow: 0 4px 16px rgba(27, 107, 82, 0.1);
    padding: 6px;
    overflow: hidden;
}

.logo-icon.has-site-logo {
    background: #ffffff;
}

.logo-icon .site-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text h1 {
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.68rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    color: var(--ink);
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a {
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
    background: var(--surface-2);
    color: var(--brand);
}

.nav-links .btn-portal {
    background: var(--brand);
    color: #fff !important;
    margin-left: 8px;
    box-shadow: 0 4px 14px rgba(13, 92, 99, 0.3);
}

.nav-links .btn-portal:hover {
    background: var(--brand-dark);
    color: #fff !important;
}

/* —— Ticker —— */
.announcement-ticker {
    background: var(--accent-soft);
    border-bottom: 1px solid #e8d9a8;
    padding: 10px 0;
}

.ticker-container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.ticker-label {
    background: var(--accent);
    color: var(--ink);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.ticker-content { flex: 1; overflow: hidden; }
.ticker-text {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 28s linear infinite;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--ink-soft);
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* —— Hero —— */
.hero {
    position: relative;
    padding: clamp(64px, 10vw, 100px) 24px clamp(72px, 11vw, 110px);
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(20, 90, 71, 0.94) 0%, rgba(27, 107, 82, 0.88) 45%, rgba(45, 155, 114, 0.82) 100%),
        radial-gradient(ellipse 70% 50% at 100% 0%, rgba(201, 162, 39, 0.22), transparent 55%);
    color: #fff;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 90% 20%, rgba(20, 163, 176, 0.35), transparent),
        radial-gradient(ellipse 50% 40% at 10% 80%, rgba(201, 162, 39, 0.15), transparent);
    pointer-events: none;
}

.hero-container {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #a7f3d0;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.08;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.hero-content .hero-lead {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 42ch;
    margin-bottom: 28px;
    line-height: 1.65;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent);
    color: var(--ink);
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(201, 162, 39, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(201, 162, 39, 0.45);
    color: var(--ink);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.35);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.15);
    flex-wrap: wrap;
}

.hero-stats .stat-item h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stats .stat-item p {
    font-size: 0.82rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero-visual {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: blur(14px);
    text-align: center;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

.hero-visual .hero-fallback-icon {
    font-size: 4rem;
    color: var(--brand-light);
    margin-bottom: 16px;
    opacity: 0.9;
}

.hero-visual h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.hero-visual .hero-venue-line {
    margin-top: 14px;
    font-size: 0.9rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hero-photo {
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
    max-height: 320px;
}

/* —— Trust strip —— */
.trust-strip {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 40px rgba(15, 118, 110, 0.06);
}

.trust-strip-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.trust-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fff 0%, var(--surface-2) 100%);
    border: 1px solid var(--line);
}

.trust-item i {
    color: var(--brand);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.trust-item strong {
    font-size: 0.92rem;
    color: var(--ink);
}

.trust-item span {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.4;
}

/* —— Layout —— */
.main-content {
    max-width: var(--max);
    margin: 0 auto;
    padding: var(--section-pad) 24px;
}

.vgmf-section {
    margin-bottom: var(--section-pad);
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 36px;
}

.section-head.left {
    text-align: left;
    margin-left: 0;
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.section-head p {
    color: var(--muted);
    font-size: 1.02rem;
}

/* —— Cards —— */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card .card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ink);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.55;
}

/* —— Home split: highlights + notices —— */
.home-split {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 28px;
    align-items: start;
}

.notices-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 96px;
}

.notices-panel h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notices-panel h3 i { color: var(--brand); }

#notices-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
}

.notice-card {
    padding: 14px 16px;
    background: var(--surface-2);
    border-radius: var(--radius);
    border-left: 3px solid var(--brand-light);
}

.notice-card h4 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--ink);
}

.notice-card .notice-date {
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.notice-card p {
    font-size: 0.86rem;
    color: var(--ink-soft);
    line-height: 1.5;
}

/* —— Seminars strip —— */
.open-seminars-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.seminar-pill {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.seminar-pill:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: #99f6e4;
}

.seminar-pill h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
}

.seminar-pill > p {
    font-size: 0.88rem;
    color: var(--muted);
    flex: 1;
    line-height: 1.55;
}

.seminar-meta {
    font-size: 0.82rem;
    color: var(--brand);
    font-weight: 600;
    margin: 12px 0;
}

.seminar-pill .btn-primary {
    align-self: flex-start;
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* —— FAQ —— */
.faq-section { max-width: 720px; margin: 0 auto; }

.faq-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-item summary {
    padding: 18px 20px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--brand);
    font-weight: 400;
}

.faq-item[open] summary::after { content: '−'; }

.faq-item p {
    padding: 0 20px 18px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* —— Reviews marquee —— */
.reviews-wrap {
    overflow: hidden;
    padding: 8px 0;
}

.reviews-track {
    display: flex;
    gap: 20px;
    animation: marquee 40s linear infinite;
    width: max-content;
}

.reviews-track:hover { animation-play-state: paused; }

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.review-card {
    flex: 0 0 300px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.review-card .stars { color: var(--accent); margin-bottom: 12px; letter-spacing: 2px; }

/* —— Scrolling announcements —— */
.scrolling-announce-wrap {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
    position: relative;
    z-index: 2;
    min-height: 88px;
}

.scrolling-announce-wrap:not(.hidden) {
    display: block !important;
}

.scrolling-announce-bar {
    max-width: var(--max);
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.scrolling-announce-label {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 200px;
}

.scrolling-announce-label .sa-heading {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--brand);
    line-height: 1.35;
}

.scrolling-announce-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.scrolling-announce-track {
    display: flex;
    gap: 16px;
    width: max-content;
}

.scrolling-announce-track.sa-loop-set {
    animation: scrollCardsRtl 40s linear infinite;
    will-change: transform;
}

.scrolling-announce-track.sa-loop-set:hover {
    animation-play-state: paused;
}

@keyframes scrollCardsRtl {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.sa-card-link a {
    color: var(--brand);
    font-weight: 700;
    font-size: 0.82rem;
}

.sa-card {
    flex: 0 0 280px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
}

.sa-card h5 {
    color: var(--brand);
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.35;
}

.sa-card p {
    font-size: 0.88rem;
    color: var(--ink-soft);
    line-height: 1.45;
}

.sa-card .sa-meta {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 8px;
}

/* —— Slider —— */
.home-slider {
    margin-bottom: 48px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.home-slider img { width: 100%; height: 360px; object-fit: cover; }

/* —— Inner pages —— */
.page-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

#about-content {
    line-height: 1.75;
    color: var(--ink-soft);
}

#about-content h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--ink);
    margin: 24px 0 12px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.schedule-table th {
    background: linear-gradient(90deg, var(--brand), #0d9488);
    color: #f8fafc;
    padding: 14px 18px;
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.schedule-table td {
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
}

.schedule-picker {
    max-width: 800px;
    margin: 0 auto 28px;
    background: var(--surface);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.schedule-picker label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--ink);
}

.schedule-picker select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
}

#event-schedule-detail {
    margin-top: 16px;
    padding: 20px;
    background: var(--accent-soft);
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
    display: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info h3 { margin-bottom: 20px; font-size: 1.1rem; }
.contact-info > div {
    margin: 16px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--ink-soft);
}

.contact-info i { color: var(--brand); width: 20px; margin-top: 3px; }

.contact-form {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-light);
    box-shadow: 0 0 0 3px rgba(20, 163, 176, 0.15);
}

/* —— Footer —— */
.footer {
    background: linear-gradient(180deg, #134e4a 0%, #115e59 100%);
    color: #cbd5e1;
    padding: 56px 24px 0;
    margin-top: 0;
}

.footer-container {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    padding-bottom: 40px;
}

.footer h4 {
    color: #f1f5f9;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a { color: #94a3b8; cursor: pointer; }
.footer a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 24px;
    text-align: center;
    font-size: 0.85rem;
    max-width: var(--max);
    margin: 0 auto;
}

/* —— Modal —— */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(12, 18, 34, 0.55);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    max-width: 440px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

/* —— Countdown —— */
#countdown-region {
    max-width: var(--max);
    margin: 0 auto;
    padding: 24px;
    display: grid;
    gap: 16px;
}

.countdown-strip {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
    border: 1px solid #99f6e4;
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: 0 8px 28px rgba(13, 148, 136, 0.12);
}

.countdown-strip h4 {
    color: var(--brand);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.countdown-grid {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.countdown-grid .box {
    flex: 1;
    text-align: center;
    background: #fff;
    border: 1px solid #ccfbf1;
    border-radius: 12px;
    padding: 12px 8px;
}

.countdown-grid h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--brand);
}

/* —— Gallery —— */
#gallery-grid .card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
}

#gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.social-follow a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 600;
    color: var(--brand);
    margin: 4px;
}

/* Verify section */
.verify-inactive {
    max-width: 560px;
    margin: 0 auto;
    padding: 32px 28px;
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
    color: var(--ink-soft);
}
.verify-inactive i { font-size: 2rem; color: var(--accent); margin-bottom: 12px; }
.verify-inactive h3 { color: var(--ink); margin-bottom: 8px; font-size: 1.15rem; }
.verify-panel label { display: block; font-weight: 700; margin: 12px 0 6px; font-size: 0.88rem; }
.verify-panel select,
.verify-panel input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    font-family: var(--font);
}
.verify-search-btn { width: 100%; margin-top: 16px; border: none; cursor: pointer; }
.verify-table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 0.9rem; }
.verify-table th,
.verify-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.verify-table th { background: var(--surface-2); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.verify-count { font-weight: 600; color: var(--brand); margin-bottom: 8px; }
.verify-msg-error { color: #b91c1c; font-weight: 600; }
.verify-msg-muted { color: var(--muted); }
.nav-links a.nav-disabled { opacity: 0.45; pointer-events: none; }

.hidden { display: none !important; }
.muted { color: var(--muted); text-align: center; padding: 24px; }

.site-banner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 16px 24px 0;
}

.site-banner img {
    width: 100%;
    border-radius: var(--radius);
    max-height: 200px;
    object-fit: cover;
}

/* —— Static announcements (no sliding ticker) —— */
.static-announce-wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 16px 24px 0;
}

.static-announce-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.sa-card-static {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.sa-card-static h5 {
    color: var(--brand);
    margin-bottom: 8px;
    font-size: 1rem;
}

.sa-card-static .sa-meta {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 8px;
}

.sa-card-static .sa-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: 700;
}

.reviews-grid-static {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    animation: none !important;
}

.reviews-grid-static .review-card {
    flex: none;
    width: auto;
}

.schedule-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -4px;
    padding: 4px;
}

.schedule-container .schedule-table {
    min-width: 560px;
}

.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.speaker-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
}

.speaker-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #d4c4a8;
}

.speaker-photo-wrap {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold-soft);
    box-shadow: 0 8px 24px rgba(27, 107, 82, 0.15);
    background: #fff;
}

.speaker-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speaker-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    border: 2px solid var(--line);
}

.speaker-seminar {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 4px;
}

.speaker-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--ink);
}

.speaker-role {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 4px;
}

.speaker-org {
    font-size: 0.82rem;
    color: var(--muted);
}

.nav-links a.nav-verify-live {
    color: var(--brand) !important;
    background: var(--gold-soft);
    border: 1px solid #e8d4a8;
}

.feature-card {
    border-radius: var(--radius-lg);
    padding: 32px 28px;
}

/* —— Responsive —— */
@media (max-width: 1200px) {
    .top-bar-container,
    .nav-container,
    .main-content,
    .scrolling-announce-wrap,
    .static-announce-wrap,
    #countdown-region,
    .site-banner,
    .trust-strip-inner,
    .footer-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 900px) {
    .hero-container { grid-template-columns: 1fr; }
    .hero-visual { max-width: 420px; margin: 0 auto; width: 100%; }
    .home-split { grid-template-columns: 1fr; }
    .notices-panel { position: static; }
    .contact-grid { grid-template-columns: 1fr; }
    .trust-strip-inner { grid-template-columns: repeat(2, 1fr); }
    .cards-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    .open-seminars-strip { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .page-panel { padding: 24px 20px; }
    .footer-container { grid-template-columns: repeat(2, 1fr); }
}

.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 1;
    pointer-events: none;
}
.site-header.nav-open .nav-backdrop {
    display: block;
    pointer-events: auto;
}
.site-header.nav-open .nav-container {
    position: relative;
    z-index: 3;
}

@media (max-width: 768px) {
    .top-bar { font-size: 0.75rem; }
    .top-bar-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 16px;
    }
    .top-bar-left { gap: 10px 14px; }
    .top-bar-right { width: 100%; justify-content: flex-start; }

    .nav-container { min-height: 64px; padding: 0 16px; }
    .logo-text h1 { font-size: 0.88rem; }
    .logo-text p { font-size: 0.62rem; }
    .logo-icon { width: 42px; height: 42px; }

    .countdown-grid { flex-wrap: wrap; }
    .countdown-grid .box { min-width: calc(50% - 8px); }
    .countdown-strip { padding: 16px; }
    .countdown-strip h4 { font-size: 0.95rem; }
    #countdown-region { padding: 16px; }

    .scrolling-announce-wrap { padding: 0; }
    .scrolling-announce-bar { flex-direction: column; align-items: stretch; padding: 12px 16px; gap: 10px; }
    .scrolling-announce-label { max-width: none; }
    .sa-card { flex: 0 0 min(88vw, 300px); }
    .reviews-grid-static { grid-template-columns: 1fr; }

    .nav-toggle { display: block; z-index: 4; position: relative; min-width: 44px; min-height: 44px; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        z-index: 4;
        max-height: min(70vh, 480px);
        overflow-y: auto;
    }
    .nav-links a {
        width: 100%;
        text-align: center;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
    }
    .site-header.nav-open .nav-links { display: flex; }
    body.nav-menu-open { overflow: hidden; }
    .nav-links .btn-portal { margin-left: 0; width: 100%; text-align: center; }

    .hero { padding: 40px 16px 48px; }
    .hero-content h1 { font-size: clamp(1.85rem, 8vw, 2.4rem); }
    .hero-content .hero-lead { font-size: 1rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn-primary,
    .hero-buttons .btn-ghost {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }
    .hero-stats {
        gap: 16px;
        justify-content: space-between;
    }
    .hero-stats .stat-item { flex: 1 1 30%; min-width: 88px; }
    .hero-stats .stat-item h3 { font-size: 1.5rem; }

    .trust-strip-inner { grid-template-columns: 1fr; padding: 16px; }
    .main-content { padding: 40px 16px 64px; }
    .vgmf-section { margin-bottom: 48px; }

    .cards-grid,
    .open-seminars-strip {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .seminar-pill,
    .notice-card { padding: 18px 16px; }

    .section-head { margin-bottom: 28px; padding: 0 4px; }
    .section-head h2 { font-size: 1.55rem; }

    .page-panel,
    .schedule-picker,
    .contact-info,
    .contact-form {
        padding: 20px 16px;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 10px 12px;
        font-size: 0.82rem;
    }

    .footer { padding-top: 40px; }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-bottom: 28px;
    }

    .modal { padding: 12px; align-items: flex-end; }
    .modal-content {
        max-width: 100%;
        width: 100%;
        max-height: 92vh;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .verify-panel .verify-search-btn { min-height: 48px; }
    .verify-panel select,
    .verify-panel input,
    #verify-seminar,
    #event-schedule-dropdown,
    .form-group input,
    .form-group textarea,
    .schedule-picker select {
        font-size: 16px;
        min-height: 48px;
        width: 100%;
        position: relative;
        z-index: 2;
        touch-action: manipulation;
    }
    .seminar-pill,
    .seminar-pill .btn-primary,
    .open-seminars-strip a {
        position: relative;
        z-index: 2;
        pointer-events: auto;
        touch-action: manipulation;
    }
}

@media (max-width: 480px) {
    .top-bar-left span:nth-child(3) { display: none; }
    .top-bar-left { flex-direction: column; align-items: flex-start; gap: 6px; }

    .logo-text h1 { font-size: 0.8rem; max-width: 52vw; }
    .hero-stats { flex-direction: column; align-items: flex-start; }
    .hero-stats .stat-item { flex: none; width: 100%; }

    .countdown-grid .box { min-width: calc(50% - 6px); padding: 10px 6px; }
    .countdown-grid h2 { font-size: 1.35rem; }

    .btn-primary,
    .btn-ghost,
    .seminar-pill .btn-primary {
        font-size: 0.9rem;
        padding: 12px 18px;
    }

    .fab-register,
    .fab-whatsapp {
        right: max(12px, env(safe-area-inset-right, 0px));
    }
    .fab-whatsapp {
        bottom: max(16px, env(safe-area-inset-bottom, 0px));
    }
    .fab-register {
        bottom: max(100px, calc(84px + env(safe-area-inset-bottom, 0px)));
        z-index: 50;
    }
    .fab-whatsapp { z-index: 50; }

    .nav-toggle,
    .nav-links a,
    .btn-primary,
    .btn-ghost,
    .seminar-pill .btn-primary,
    .open-seminars-strip a {
        touch-action: manipulation;
    }

    .main-content {
        padding-bottom: max(64px, calc(48px + env(safe-area-inset-bottom, 0px)));
    }
}

@media (max-width: 360px) {
    .hero-badge { font-size: 0.7rem; padding: 5px 10px; }
    .trust-item { padding: 12px; }
}
