/* ==========================================================
   ISFAROCON — Gold Gradient Theme
   ========================================================== */

:root {
    --gold-1: #B8860B;
    --gold-2: #D4A017;
    --gold-3: #E8B93F;
    --gold-4: #F5D77E;
    --gold-dark: #7A5C0E;
    --charcoal: #1C1C1C;
    --ink: #2b2620;
    --cream: #FFFBF0;
    --gold-gradient: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 45%, var(--gold-3) 75%, var(--gold-4) 100%);
    --gold-gradient-soft: linear-gradient(135deg, #fff8e6 0%, #fbe8b0 100%);
    --shadow-gold: 0 8px 24px rgba(184, 134, 11, 0.25);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { padding-left: 1.2em; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Top bar ---------- */
.topbar {
    background: var(--charcoal);
    color: #eee;
    font-size: 14px;
    padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.topbar a { color: var(--gold-4); }
.topbar i { margin-right: 6px; color: var(--gold-3); }

/* ---------- Header ---------- */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 500;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 20px;
}
.logo img { height: 58px; }

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
    display: block;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--ink);
    border-radius: 6px;
    transition: 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a {
    background: var(--gold-gradient);
    color: #fff;
}
.main-nav .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 240px;
    box-shadow: var(--shadow-gold);
    border-top: 3px solid var(--gold-2);
    border-radius: 0 0 8px 8px;
    padding: 8px 0;
}
.main-nav li:hover > .submenu { display: block; }
.main-nav .submenu li a {
    display: block;
    padding: 10px 18px;
    font-size: 14px;
    color: var(--ink);
    text-transform: none;
    font-weight: 500;
}
.main-nav .submenu li a:hover { background: var(--gold-gradient-soft); color: var(--gold-dark); }

.mobile-nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--gold-1); cursor: pointer; }

@media (max-width: 960px) {
    .main-nav { display: none; width: 100%; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; }
    .main-nav .submenu { position: static; box-shadow: none; border-top: none; padding-left: 14px; }
    .mobile-nav-toggle { display: block; }
    .header-inner { flex-wrap: wrap; }
}

/* ---------- Hero / Slider ---------- */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: var(--charcoal);
}
.hero-slide {
    position: relative;
    height: 85vh;
    min-height: 560px;
    max-height: 820px;
    background-size: cover;
    background-position: center;
    display: none;
}
.hero-slide.active { display: block; }
.hero-content {
    position: absolute; z-index: 2; left: 0; right: 0; bottom: 12%;
    text-align: center; color: #fff; padding: 0 20px;
}
.hero-content h1 {
    font-size: clamp(28px, 5vw, 54px);
    margin: 0 0 8px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    letter-spacing: 1px;
}
.hero-content p { font-size: clamp(16px, 2.4vw, 22px); margin: 0 0 20px; color: var(--gold-4); font-weight: 600; }

.btn-gold {
    display: inline-block;
    background: var(--gold-gradient);
    color: #fff !important;
    padding: 13px 34px;
    border-radius: 40px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-gold);
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 15px;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(184,134,11,0.4); }
.btn-outline-gold {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--gold-2);
    color: var(--gold-dark) !important;
    padding: 11px 30px;
    border-radius: 40px;
    font-weight: 700;
}

.hero-dots { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; z-index: 3; }
.hero-dots span {
    display: inline-block; width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.5); margin: 0 4px; cursor: pointer;
}
.hero-dots span.active { background: var(--gold-3); }

@media (max-width: 600px) {
    .hero-slide { height: 62vh; min-height: 420px; max-height: 600px; }
}

/* ---------- Section styling ---------- */
.section { padding: 70px 0; }
.section.alt { background: linear-gradient(180deg, #fffdf6 0%, #fbf3dc 100%); }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title .eyebrow {
    display: inline-block; color: var(--gold-1); font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; font-size: 13px; margin-bottom: 8px;
}
.section-title h2 { font-size: clamp(26px, 4vw, 38px); margin: 0; font-weight: 800; color: var(--ink); }
.section-title .underline {
    width: 70px; height: 4px; margin: 14px auto 0; border-radius: 2px;
    background: var(--gold-gradient);
}

/* ---------- Welcome / About block ---------- */
.welcome-block { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.welcome-block img { border-radius: 12px; box-shadow: var(--shadow-gold); }
@media (max-width: 860px) { .welcome-block { grid-template-columns: 1fr; } }

.signature-row { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 24px; }
.signature-row .sig h4 { margin: 0; color: var(--gold-dark); }
.signature-row .sig p { margin: 2px 0 0; font-size: 14px; color: #666; }

/* ---------- Faculty / Doctor cards ---------- */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 26px;
}
.faculty-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid #f1e4bb;
}
.faculty-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-gold); }
.faculty-card .photo-wrap {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--gold-gradient-soft);
}
.faculty-card .photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.faculty-card .info { padding: 14px 10px 18px; }
.faculty-card h4 { margin: 0 0 4px; font-size: 15px; color: var(--ink); }
.faculty-card p { margin: 0; font-size: 12.5px; color: var(--gold-dark); font-weight: 600; }

/* ---------- Workshop / feature cards ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 26px;
}
.feature-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border-bottom: 4px solid var(--gold-2);
}
.feature-card img { width: 100%; height: 170px; object-fit: cover; }
.feature-card .body { padding: 18px; }
.feature-card h4 { margin: 0 0 6px; font-size: 16px; }

/* ---------- Stats strip ---------- */
.stats-strip {
    background: var(--gold-gradient);
    color: #fff;
    padding: 44px 0;
}
.stats-strip .container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 24px; text-align: center; }
.stats-strip .stat h3 { font-size: 40px; margin: 0; font-weight: 800; }
.stats-strip .stat p { margin: 4px 0 0; text-transform: uppercase; letter-spacing: 1px; font-size: 13px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gallery-grid img { border-radius: 10px; height: 180px; width: 100%; object-fit: cover; box-shadow: 0 3px 10px rgba(0,0,0,0.08); }

/* ---------- Forms ---------- */
.form-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-gold);
    border-top: 5px solid var(--gold-2);
    max-width: 720px;
    margin: 0 auto;
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.form-row input, .form-row select, .form-row textarea {
    width: 100%; padding: 12px 14px; border: 1.5px solid #e6d9a8; border-radius: 8px;
    font-family: inherit; font-size: 14.5px; background: #fffef9;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(212,160,23,0.15);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid-2 { grid-template-columns: 1fr; } }

.payment-options { display: flex; gap: 16px; flex-wrap: wrap; margin: 20px 0; }
.payment-option {
    flex: 1; min-width: 200px; border: 2px solid #e6d9a8; border-radius: 12px; padding: 16px;
    cursor: pointer; text-align: center; transition: 0.2s;
}
.payment-option.selected, .payment-option:hover { border-color: var(--gold-2); background: var(--gold-gradient-soft); }
.payment-option h5 { margin: 6px 0 2px; }
.payment-option small { color: #777; }

.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 14.5px; }
.alert-success { background: #e8f7ec; color: #1b6e35; border: 1px solid #b6e3c4; }
.alert-error { background: #fdeaea; color: #a12626; border: 1px solid #f3bcbc; }

/* ---------- Sponsors strip ---------- */
.sponsor-strip { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: center; }
.sponsor-strip img { max-height: 70px; filter: grayscale(30%); opacity: 0.85; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #cfc7ae; padding: 60px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--gold-3); margin: 0 0 16px; font-size: 16px; letter-spacing: 0.5px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; font-size: 14px; }
.site-footer a:hover { color: var(--gold-4); }
.footer-logo img { height: 50px; margin-bottom: 14px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 0;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    font-size: 13px; color: #8f8770;
}
.footer-bottom a.admin-link {
    color: #6f6852;
    font-size: 12px;
    letter-spacing: 0.5px;
}
.footer-bottom a.admin-link:hover { color: var(--gold-3); }

/* ---------- Page header (interior pages) ---------- */
.page-banner {
    background: var(--gold-gradient);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}
.page-banner h1 { margin: 0 0 6px; font-size: 32px; font-weight: 800; }
.page-banner .breadcrumb { font-size: 14px; opacity: 0.9; }
.page-banner .breadcrumb a { color: #fff; text-decoration: underline; }

.content-block { max-width: 900px; margin: 0 auto; }
.content-block h2, .content-block h3 { color: var(--gold-dark); }

table.info-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
table.info-table th, table.info-table td { border: 1px solid #e6d9a8; padding: 12px 14px; text-align: left; font-size: 14.5px; }
table.info-table th { background: var(--gold-gradient-soft); color: var(--gold-dark); }

/* ==========================================================
   ANIMATIONS & CREATIVE FLOURISHES
   ========================================================== */

/* ---------- Scroll-reveal system ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(.21,.68,.36,1), transform 0.7s cubic-bezier(.21,.68,.36,1);
}
.reveal.reveal-visible { opacity: 1; transform: translateY(0); }
.reveal-left { transform: translateX(-40px); }
.reveal-left.reveal-visible { transform: translateX(0); }
.reveal-right { transform: translateX(40px); }
.reveal-right.reveal-visible { transform: translateX(0); }
.reveal-scale { transform: scale(0.92); }
.reveal-scale.reveal-visible { transform: scale(1); }
/* stagger children of a revealed group */
.reveal-group.reveal-visible > * { animation: staggerFade 0.6s both; }
.reveal-group.reveal-visible > *:nth-child(1) { animation-delay: 0.05s; }
.reveal-group.reveal-visible > *:nth-child(2) { animation-delay: 0.12s; }
.reveal-group.reveal-visible > *:nth-child(3) { animation-delay: 0.19s; }
.reveal-group.reveal-visible > *:nth-child(4) { animation-delay: 0.26s; }
.reveal-group.reveal-visible > *:nth-child(5) { animation-delay: 0.33s; }
.reveal-group.reveal-visible > *:nth-child(6) { animation-delay: 0.40s; }
.reveal-group.reveal-visible > *:nth-child(n+7) { animation-delay: 0.46s; }
@keyframes staggerFade {
    from { opacity: 0; transform: translateY(22px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Animated gradient backgrounds ---------- */
@keyframes goldShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.animated-gradient {
    background: linear-gradient(120deg, var(--gold-1), var(--gold-2), var(--gold-3), var(--gold-2), var(--gold-1));
    background-size: 300% 300%;
    animation: goldShift 8s ease infinite;
}
.stats-strip { background: linear-gradient(120deg, var(--gold-1), var(--gold-2), var(--gold-3), var(--gold-2), var(--gold-1)); background-size: 300% 300%; animation: goldShift 10s ease infinite; }

/* ---------- Floating decorative shapes ---------- */
.floaty-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.floaty-shapes span {
    position: absolute; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), rgba(232,185,63,0.05));
    animation: floatDrift 14s ease-in-out infinite;
}
.floaty-shapes span:nth-child(1) { width: 140px; height: 140px; top: 8%; left: 6%; animation-duration: 16s; }
.floaty-shapes span:nth-child(2) { width: 90px; height: 90px; top: 60%; left: 14%; animation-duration: 12s; animation-delay: 1s; }
.floaty-shapes span:nth-child(3) { width: 180px; height: 180px; top: 20%; right: 8%; animation-duration: 18s; animation-delay: 2s; }
.floaty-shapes span:nth-child(4) { width: 70px; height: 70px; bottom: 12%; right: 20%; animation-duration: 10s; animation-delay: 0.5s; }
@keyframes floatDrift {
    0%, 100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(18px,-24px) scale(1.08); }
}

/* ---------- Section title animated underline draw-in ---------- */
.section-title .underline {
    width: 0;
    transition: width 0.8s cubic-bezier(.21,.68,.36,1) 0.15s;
}
.section-title.reveal-visible .underline { width: 70px; }

/* ---------- Sticky header shrink-on-scroll ---------- */
.site-header { transition: box-shadow 0.3s, padding 0.3s; }
.site-header.scrolled .header-inner { padding: 7px 0; }
.site-header.scrolled .logo img { height: 44px; transition: height 0.3s; }
.logo img { transition: height 0.3s; }

/* ---------- Animated hero text ---------- */
.hero-content h1 { animation: heroRise 0.9s cubic-bezier(.21,.68,.36,1) both; }
.hero-content p { animation: heroRise 0.9s cubic-bezier(.21,.68,.36,1) 0.15s both; }
.hero-content .btn-gold { animation: heroRise 0.9s cubic-bezier(.21,.68,.36,1) 0.3s both; }
@keyframes heroRise {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Button shine sweep ---------- */
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::after {
    content: ''; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}
.btn-gold:hover::after { left: 130%; }

/* ---------- Faculty / feature card creative hover ---------- */
.faculty-card { position: relative; }
.faculty-card .photo-wrap img { transition: transform 0.5s ease; }
.faculty-card:hover .photo-wrap img { transform: scale(1.09) rotate(-1deg); }
.faculty-card::before {
    content: ''; position: absolute; inset: 0; border-radius: 14px;
    background: linear-gradient(135deg, rgba(212,160,23,0.0), rgba(212,160,23,0.0));
    transition: background 0.35s; pointer-events: none;
}
.faculty-card:hover::before { background: linear-gradient(135deg, rgba(212,160,23,0.06), rgba(212,160,23,0)); }

.feature-card img { transition: transform 0.5s ease, filter 0.5s ease; }
.feature-card:hover img { transform: scale(1.06); }
.feature-card { transition: transform 0.3s, box-shadow 0.3s; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-gold); }

.gallery-grid img { transition: transform 0.4s ease, box-shadow 0.4s ease; cursor: pointer; }
.gallery-grid img:hover { transform: scale(1.04); box-shadow: var(--shadow-gold); }

/* ---------- Animated stat counters ---------- */
.stats-strip .stat h3 { font-variant-numeric: tabular-nums; }

/* ---------- Page banner decorative accent ---------- */
.page-banner { position: relative; overflow: hidden; }
.page-banner h1 { animation: heroRise 0.7s cubic-bezier(.21,.68,.36,1) both; position: relative; z-index: 2; }
.page-banner .breadcrumb { position: relative; z-index: 2; animation: heroRise 0.7s cubic-bezier(.21,.68,.36,1) 0.1s both; }

/* ---------- Loading shimmer for lazy images (progressive feel) ---------- */
img.lazy-fade { opacity: 0; transition: opacity 0.6s ease; }
img.lazy-fade.loaded { opacity: 1; }

/* ---------- Nav underline hover ---------- */
.main-nav > ul > li > a { position: relative; }
.main-nav > ul > li > a::after {
    content: ''; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px;
    background: var(--gold-gradient); transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s ease;
}
.main-nav > ul > li > a:hover::after { transform: scaleX(1); }
.main-nav > ul > li.active > a::after { display: none; }

/* ---------- Reduced motion respect ---------- */
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-group > *, .hero-content h1, .hero-content p, .hero-content .btn-gold,
    .page-banner h1, .page-banner .breadcrumb, .floaty-shapes span, .animated-gradient, .stats-strip {
        animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important;
    }
}

/* ---------- Scientific Programme: day tabs & schedule rows ---------- */
.day-tab-btn {
    padding: 11px 26px; border-radius: 40px; border: 2px solid #e6d9a8; background: #fff;
    font-weight: 700; cursor: pointer; font-size: 14px; color: var(--gold-dark); transition: 0.25s;
}
.day-tab-btn:hover { border-color: var(--gold-2); }
.day-tab-btn.active { background: var(--gold-gradient); color: #fff; border-color: transparent; box-shadow: var(--shadow-gold); }

.schedule-row {
    display: flex; gap: 22px; padding: 18px 0; border-bottom: 1px solid #f1e4bb; align-items: flex-start;
}
.schedule-row:last-child { border-bottom: none; }
.schedule-time {
    flex: 0 0 150px; font-weight: 700; color: var(--gold-1); font-size: 14.5px; padding-top: 2px;
}
.schedule-detail h4 { margin: 0 0 4px; font-size: 16.5px; color: var(--ink); }
.schedule-speaker { margin: 0 0 6px; font-size: 13.5px; color: #777; }
.schedule-track {
    display: inline-block; background: var(--gold-gradient-soft); color: var(--gold-dark);
    font-size: 11.5px; font-weight: 700; padding: 3px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.4px;
}
@media (max-width: 600px) {
    .schedule-row { flex-direction: column; gap: 6px; }
    .schedule-time { flex: none; }
}