/* ==========================================================================
   VINAYAKA LAW COLLEGE — public site styles
   Theme: "Contemporary Institution with Legal Heritage"
   Palette   : deep navy + warm ivory, muted gold/copper accent
   Typography: Playfair Display (serif, headings) + Inter (sans, body/UI)
   ========================================================================== */

:root {
    --navy: #10203c;
    --navy-deep: #0b1626;
    --ivory: #faf6ee;
    --ivory-soft: #f3ede0;
    --gold: #a8813c;
    --gold-soft: #c9a26e;
    --text: #1c2430;
    --text-muted: #5a6472;
    --text-on-navy: #f3ede0;
    --text-on-navy-muted: #b9c2d1;
    --border: #e4ddcc;
    --shadow: 0 12px 32px rgba(16, 32, 60, 0.08);
    --shadow-lg: 0 20px 48px rgba(16, 32, 60, 0.14);
    --radius: 4px;
    --container: 1180px;

    /* admin.css (the inline-editing chrome) reads this shared palette
       under these generic names — keep both sets in sync if the palette
       above changes. */
    --background: var(--ivory);
    --surface: #ffffff;
    --primary: var(--navy);
    --primary-dark: var(--navy-deep);
    --secondary: var(--gold);
    --muted: var(--text-muted);
    --transition: 0.2s ease;

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--ivory);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    color: var(--navy);
    line-height: 1.2;
    margin: 0 0 0.5em;
    font-weight: 600;
}

p {
    margin: 0 0 1em;
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

.eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}

.section {
    padding: 88px 0;
}

.section--tight {
    padding: 56px 0;
}

.section-head {
    max-width: 720px;
    margin: 0 0 44px;
}

.section-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* --------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------- */

.college-header {
    background: var(--ivory);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 40;
}

.college-header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.college-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.college-logo {
    height: 78px;
    width: auto;
}

.college-title h1 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
    letter-spacing: 0.01em;
}

.college-title p {
    margin: 6px 0 0;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------
   MEGA NAVIGATION
   -------------------------------------------------------------------- */

.mega-nav {
    background: var(--navy);
}

.mega-nav-list {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.mega-nav-item {
    position: relative;
}

.mega-nav-link {
    display: block;
    padding: 15px 18px;
    color: var(--text-on-navy);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.mega-nav-item:hover > .mega-nav-link,
.mega-nav-link.active {
    color: #fff;
    border-bottom-color: var(--gold);
}

.mega-nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    border-top: 3px solid var(--gold);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 50;
}

.mega-nav-item:hover .mega-nav-dropdown,
.mega-nav-item:focus-within .mega-nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-nav-dropdown a {
    display: block;
    padding: 10px 20px;
    font-size: 0.86rem;
    color: var(--text);
}

.mega-nav-dropdown a:hover {
    background: var(--ivory-soft);
    color: var(--navy);
}

.mega-nav-toggle {
    display: none;
}

/* --------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------- */

.hero {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: var(--text-on-navy);
    padding: 64px 0 56px;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 82% 20%, rgba(168, 129, 60, 0.18), transparent 55%);
    pointer-events: none;
}

.hero-inner {
    max-width: 900px;
    position: relative;
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 4.1rem);
    line-height: 1.08;
    margin-bottom: 20px;
}

.hero p.hero-lede {
    font-size: 1.15rem;
    color: var(--text-on-navy-muted);
    max-width: 640px;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.page-hero {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: var(--text-on-navy);
    padding: 104px 0 88px;
}

.page-hero h1 {
    color: #fff;
    font-size: clamp(2.3rem, 4.2vw, 3.2rem);
    line-height: 1.12;
}

.page-hero .eyebrow {
    color: var(--gold-soft);
}

.page-hero p {
    max-width: 640px;
    color: var(--text-on-navy-muted);
    margin-bottom: 0;
}

/* --------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--gold);
    color: #1c1408;
}

.btn-primary:hover {
    background: var(--gold-soft);
}

.btn-outline {
    border-color: rgba(250, 246, 238, 0.4);
    color: #fff;
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(250, 246, 238, 0.08);
}

.btn-outline-navy {
    border-color: var(--navy);
    color: var(--navy);
}

.btn-outline-navy:hover {
    background: var(--navy);
    color: #fff;
}

/* --------------------------------------------------------------------
   PILLARS (Learn / Lead / Serve)
   -------------------------------------------------------------------- */

.pillars {
    background: var(--ivory);
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.pillar {
    text-align: center;
    padding: 8px;
}

.pillar-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.pillar h3 {
    font-size: 1.2rem;
}

/* --------------------------------------------------------------------
   STATS STRIP
   -------------------------------------------------------------------- */

.stats-strip {
    background: var(--navy-deep);
    color: var(--text-on-navy);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-card .stat-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--gold-soft);
    margin-bottom: 6px;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-on-navy-muted);
}

/* --------------------------------------------------------------------
   CARDS
   -------------------------------------------------------------------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-media {
    aspect-ratio: 4 / 3;
    background: var(--ivory-soft) center / cover no-repeat;
}

.card-body {
    padding: 26px;
}

.card-body h3 {
    font-size: 1.08rem;
    margin-bottom: 10px;
}

.card-body p {
    color: var(--text-muted);
    font-size: 0.94rem;
    margin-bottom: 0;
}

.card-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--gold);
    border-bottom: 1px solid var(--gold);
}

/* --------------------------------------------------------------------
   CTA BANNER
   -------------------------------------------------------------------- */

.cta-banner {
    background: var(--navy);
    color: var(--text-on-navy);
    padding: 72px 0;
    text-align: center;
}

.cta-banner h2 {
    color: #fff;
}

.cta-banner p {
    max-width: 560px;
    margin: 0 auto 30px;
    color: var(--text-on-navy-muted);
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------
   STANDARD PAGE CONTENT SECTIONS
   -------------------------------------------------------------------- */

.content-block {
    max-width: 760px;
}

.content-block--wide {
    max-width: none;
}

.content-block .body-copy {
    white-space: pre-wrap;
    color: var(--text-muted);
    font-size: 1.02rem;
}

.section--alt {
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* --------------------------------------------------------------------
   LISTING PAGES (faculty / news & events / notices & downloads)
   -------------------------------------------------------------------- */

.faculty-roster {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.faculty-designation {
    color: var(--gold);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.faculty-bio {
    color: var(--text-muted);
    font-size: 0.96rem;
    margin: 14px 0 0;
}

.list-rows {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.list-row {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
}

.list-row-meta {
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

.list-row h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.list-row p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.empty-state {
    color: var(--text-muted);
    font-style: italic;
    padding: 24px 0;
}

/* --------------------------------------------------------------------
   FACULTY PROFILE CARD (faculty roster — one per member)
   -------------------------------------------------------------------- */

.faculty-profile {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 36px;
    align-items: start;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}

.faculty-profile-photo {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius);
    background: var(--ivory-soft) center / cover no-repeat;
    box-shadow: var(--shadow);
}

.faculty-profile-info h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.faculty-profile-fact {
    display: flex;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}

.faculty-profile-fact-label {
    min-width: 140px;
    color: var(--text-muted);
    font-weight: 600;
}

/* --------------------------------------------------------------------
   CONTACT
   -------------------------------------------------------------------- */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}

.contact-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
}

.contact-card .eyebrow {
    display: block;
    margin-bottom: 10px;
}

/* --------------------------------------------------------------------
   PHOTO ALBUMS (campus / student-life child pages)
   -------------------------------------------------------------------- */

.gallery-albums {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.gallery-album {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.gallery-album-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
    cursor: pointer;
}

.gallery-album-cover {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: var(--radius);
    background: var(--ivory-soft) center / cover no-repeat;
}

.gallery-album-info {
    flex: 1;
    min-width: 0;
}

.gallery-album-info h3 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.gallery-album-count {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin: 0;
}

.gallery-album-photos {
    padding: 0 20px 20px;
    border-top: 1px solid var(--border);
}

.gallery-album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
    padding-top: 18px;
}

.photo-card {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--ivory-soft);
    cursor: pointer;
}

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

.gallery-loading {
    padding: 0;
}

/* --------------------------------------------------------------------
   IMAGE LIGHTBOX (photo albums — public, every visitor)
   -------------------------------------------------------------------- */

.wp-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(11, 22, 38, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 32px;
}

.wp-lightbox[hidden] {
    display: none;
}

.wp-lightbox img {
    max-width: 100%;
    max-height: 100%;
    box-shadow: var(--shadow-lg);
}

.wp-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(250, 246, 238, 0.4);
    background: transparent;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}

.wp-lightbox-close:hover {
    background: rgba(250, 246, 238, 0.12);
}

/* --------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------- */

.site-footer {
    background: var(--navy-deep);
    color: var(--text-on-navy-muted);
    padding: 64px 0 0;
    font-size: 0.92rem;
}

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

.footer-column h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 18px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a:hover {
    color: var(--gold-soft);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(243, 237, 224, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover {
    border-color: var(--gold);
    color: var(--gold-soft);
}

.footer-bottom {
    margin-top: 48px;
    border-top: 1px solid rgba(243, 237, 224, 0.12);
    padding: 24px;
    text-align: center;
    font-size: 0.82rem;
}

.footer-divider {
    height: 1px;
    background: rgba(243, 237, 224, 0.12);
    margin: 14px auto;
    max-width: 320px;
}

.footer-product,
.footer-developer {
    margin: 4px 0;
    color: var(--text-on-navy-muted);
}

/* --------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------- */

@media (max-width: 900px) {

    .pillar-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .faculty-profile {
        grid-template-columns: 1fr;
    }

    .faculty-profile-photo {
        max-width: 220px;
    }
}

@media (max-width: 640px) {

    .mega-nav-list {
        flex-direction: column;
    }

    .mega-nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        border-top: none;
    }

    .mega-nav-item:hover .mega-nav-dropdown,
    .mega-nav-item:focus-within .mega-nav-dropdown {
        display: block;
    }

    .pillar-grid,
    .stats-grid,
    .footer-container {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 65px 0 47px;
        min-height: 0;
    }

    .college-header-inner {
        padding: 16px 24px;
    }

    .college-logo {
        height: 56px;
    }

    .college-title h1 {
        font-size: 1.85rem;
    }

    .section {
        padding: 56px 0;
    }
}
