:root {
--color-primary: #d67301;
--color-dark: #2c2d30;
--color-dark-2: #081220;
--color-text: #141010;
--color-muted: #0f1c36;
--color-bg-alt: #f6f5f3;
--color-border: #d67301;
--radius: 10px;
--max-width: 1160px;
--font: 'Poppins', sans-serif;
}

.hero-actions
.programs-preview
.program-grid
.program-card
.program-card-content
.programs-more

.gallery-preview
.gallery-grid
.gallery-item
.gallery-more

.newsletter-band
.newsletter-inner
.newsletter-copy
.newsletter-form
.form-row
.newsletter-note

.testimonials-more



* {
  box-sizing: border-box;
  }

html {
scroll-behavior: smooth;
}



/* FOR DYNAMIC SCREEN SIZES */
@media (max-width: 1024px) {
  .ksk-programs .container {
    padding: 0 22px;
  }
  .ksk-programs .program-grid {
    gap: 18px;
  }
}

@media (max-width: 400px) {
  .ksk-programs .page-header {
    padding: 76px 0 48px;
  }
  .ksk-programs .hero-actions .btn,
  .ksk-programs .jumpmenu-inner a {
    padding: 10px 14px;
    font-size: 13px;
  }
  .ksk-programs .checklist li,
  .ksk-programs .checklist2 li {
    font-size: 14px;
  }
}

body {
margin: 0;
font-family: var(--font);
color: var(--color-text);
line-height: 1.6;
background: #fff;
}

img {
max-width: 100%;
}

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

.narrow {
max-width: 760px;
}

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

h1,
h2,
h3 {
font-weight: 600;
line-height: 1.2;
margin: 0 0 16px;
color: rgb(24, 24, 24);
}

h1 {
font-size: 2.6rem;
}

h2 {
font-size: 2rem;
}

h3 {
font-size: 1.2rem;
color: rgb(24, 24, 24);
}

p {
margin: 0 0 16px;
color: var(--color-muted);
}

.center {
text-align: center;
color: #1e1f1f;
}

.max-w {
max-width: 640px;
margin-left: auto;
margin-right: auto;
}

.program-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:2rem;
    margin-top:3rem;
}

.program-card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:.3s ease;
}

.program-card:hover{
    transform:translateY(-6px);
}

.program-card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.program-card-content{
    padding:1.5rem;
}

.program-card h3{
    margin:.5rem 0 1rem;
}

.programs-more{
    margin-top:2rem;
}


.hero-actions{
    display:flex;
    flex-wrap:wrap;
    gap:1rem;
    margin-top:2rem;
}

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:1rem;
    margin-top:3rem;
}

.gallery-item{
    display:block;
    overflow:hidden;
    border-radius:16px;
}

.gallery-item img{
    width:100%;
    height:220px;
    object-fit:cover;
    transition:.4s ease;
}

.gallery-item:hover img{
    transform:scale(1.05);
}

.gallery-more{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:220px;
    background:#f5f5f5;
    font-weight:700;
    text-decoration:none;
}




@media (max-width:768px){

    .newsletter-inner{
        grid-template-columns:1fr;
    }

    .hero-actions{
        flex-direction:column;
        align-items:flex-start;
    }

    .program-grid{
        grid-template-columns:1fr;
    }

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

.newsletter-band{
    background:var(--color-dark);
    color:#fff;
}

.newsletter-inner{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:3rem;
    align-items:center;
}

.newsletter-form{
    display:flex;
    flex-direction:column;
    gap:1rem;
}

.form-row{
    display:flex;
    flex-direction:column;
    gap:.4rem;
}

.form-row input,
.form-row select{
    padding:1rem;
    border:none;
    border-radius:10px;
    font-size:1rem;
}

.newsletter-note{
    opacity:.8;
    display:block;
    margin-top:.5rem;
}


.eyebrow {
text-transform: uppercase;
letter-spacing: 1.5px;
font-size: 0.8rem;
font-weight: 800;
color: var(--color-primary);
margin-bottom: 8px;
}

.eyebrow.center {
text-align: center;
}

/* ==========================================
BUTTONS
========================================== */

.btn {
display: inline-block;
padding: 13px 28px;
border-radius: 999px;
font-weight: 600;
font-size: 0.95rem;
cursor: pointer;
border: 2px solid transparent;
transition: all 0.2s ease;
}

.btn-primary {
background: var(--color-primary);
color: #fff;
background-color: #6e0257;
/* height: 18px; */
padding: 11px 20px
}

.primary {
    background-color: #6e0257;
    color: #fff;

    height: 40px;
    padding: 0 28px;
    

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 0;

    /* Parallelogram shape */
    clip-path: polygon(
        12% 0,
        100% 0,
        88% 100%,
        0 100%
    );

    cursor: pointer;
    transition: all 0.3s ease;
}


.btn-outline {
background: var(--color-primary);
color: #fff;
background-color: #fc8804;
    /* background-color: #6e0257; */
    /* color: #fff; */

    /* height: 40px; */
    padding: 0 28px;
    padding: 11px 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 0;

    /* Parallelogram shape */
    clip-path: polygon(
        12% 0,
        100% 0,
        88% 100%,
        0 100%
    );

    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
background: #31023a85;
}

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

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

.btn-lg {
padding: 16px 34px;
font-size: 1rem;
}

/* ==========================================
HEADER
========================================== */

.site-header {
position: sticky;
top: 0;
background: #fff;
border-bottom: 1px solid var(--color-border);
z-index: 100;
}

.site-header .logo img {
    width: 110px;
    height: 65px;
    object-fit: contain;
    display: block;
}

.header-inner {
display: flex;
align-items: center;
justify-content: space-between;
padding-top: 16px;
padding-bottom: 16px;
gap: 24px;
}

/* Logo */

.logo {
font-size: 1.5rem;
font-weight: 800;
color: var(--color-dark);
display: flex;
align-items: center;
flex-shrink: 0;
}

.logo img {
width: 90px;
height: 55px;
max-width: 90px;
object-fit: contain;
display: block;
}

.logo span {
color: var(--color-primary);
}

.logo-light {
color: #fff;
}

/* Navigation */

.main-nav {
flex: 1;
}

.main-nav ul {
list-style: none;
display: flex;
gap: 28px;
margin: 0;
padding: 0;
justify-content: center;
}

.main-nav a {
font-weight: 500;
font-size: 0.95rem;
color: var(--color-dark);
padding: 8px 0;
}

.main-nav a.active,
.main-nav a:hover {
color: var(--color-primary);
}

/* Dropdown */
/* ==========================================
   ABOUT KSK - LARGE MEGA DROPDOWN
   ========================================== */

.has-dropdown {
    position: relative;
}


/* ==========================================
   MEGA DROPDOWN CONTAINER
   ========================================== */

.mega-dropdown {
    display: none;

    position: absolute;

    /*
     * Keep the dropdown inside the screen.
     * It is wide, but will shrink on smaller screens.
     */
    width: 900px;
    max-width: calc(100vw - 40px);

    /*
     * Position it below the navigation.
     */
    top: calc(100% + 12px);

    /*
     * Instead of centering it directly on the
     * small About KSK button, shift it slightly
     * to the right.
     */
    left: 50%;
    transform: translateX(-42%);

    /*
     * Space inside the dropdown.
     */
    padding: 30px;

    /*
     * Space between cards.
     */
    gap: 25px;

    /*
     * Three equal cards.
     */
    grid-template-columns: repeat(3, minmax(0, 1fr));

    /*
     * Prevent content from escaping the dropdown.
     */
    box-sizing: border-box;

    background: #ffffff;

    border-radius: 16px;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.15);

    z-index: 9999;
}


/* ==========================================
   SHOW DROPDOWN ON HOVER
   ========================================== */

.has-dropdown:hover .mega-dropdown {
    display: grid;
}


/* ==========================================
   SHOW DROPDOWN AFTER CLICK
   ========================================== */

.has-dropdown.active .mega-dropdown {
    display: grid;
}


/* ==========================================
   DROPDOWN CARDS
   ========================================== */

.mega-item {
    display: block;

    width: 100%;

    padding: 20px;

    box-sizing: border-box;

    background: #ffffff;

    border-radius: 12px;

    text-decoration: none;

    color: inherit;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* Card hover effect */
.mega-item:hover {
    transform: translateY(-6px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.12);
}


/* ==========================================
   CARD IMAGES
   ========================================== */

.mega-item img {
    display: block;

    width: 100%;

    /*
     * Keep all images the same size.
     */
    height: 180px;

    object-fit: cover;

    border-radius: 10px;
}


/* ==========================================
   CARD TITLE
   ========================================== */

.mega-item h4 {
    margin: 18px 0 10px;

    font-size: 20px;

    line-height: 1.3;

    font-weight: 700;

    /*
     * Prevent title from being squeezed.
     */
    word-wrap: break-word;
}


/* ==========================================
   CARD DESCRIPTION
   ========================================== */

.mega-item p {
    margin: 0;

    font-size: 15px;

    line-height: 1.6;

    color: #666;

    /*
     * Allow text to wrap naturally.
     */
    overflow-wrap: break-word;
}


/* ==========================================
   DESKTOP - LARGE SCREENS
   ========================================== */

@media (min-width: 1200px) {

    .mega-dropdown {
        width: 900px;

        /*
         * This gives the menu a little more
         * room on the right side.
         */
        transform: translateX(-42%);
    }

}


/* ==========================================
   MEDIUM SCREENS
   ========================================== */

@media (min-width: 901px) and (max-width: 1199px) {

    .mega-dropdown {
        width: 850px;

        max-width: calc(100vw - 30px);

        transform: translateX(-45%);
    }

}


/* ==========================================
   MOBILE / TABLET
   ========================================== */

@media (max-width: 900px) {

    .mega-dropdown {
        width: calc(100vw - 30px);

        max-width: calc(100vw - 30px);

        left: 50%;

        transform: translateX(-50%);

        grid-template-columns: 1fr;

        padding: 20px;

        gap: 20px;

        max-height: 80vh;

        overflow-y: auto;
    }


    .mega-item img {
        height: 200px;
    }

}

/* Mobile toggle */

.nav-toggle {
display: none;
flex-direction: column;
gap: 5px;
background: none;
border: none;
cursor: pointer;
}

.nav-toggle span {
width: 24px;
height: 2px;
background: var(--color-dark);
}

/* ==========================================
HERO SECTION
========================================== */

.hero {
position: relative;
width: 100%;
min-height: 540px;
overflow: hidden;
display: flex;
align-items: center;
}

/* Background slideshow */

.hero-slides {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
z-index: 0;
}

.hero-slide {
position: absolute;
inset: 0;


width: 100%;
height: 100%;

background-size: cover;
background-position: center center;
background-repeat: no-repeat;

opacity: 0;

transition: opacity 2s ease-in-out;

transform: scale(1.03);


}

.hero-slide.active {
opacity: 50;
animation: heroZoom 20s ease-in-out;
}

/* Dark overlay */

.hero-overlay {
position: absolute;
inset: 0;
z-index: 1;


background:
    linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.938) 0%,
        rgba(0, 0, 0, 0.575) 45%,
        rgba(0, 0, 0, 0.007) 100%
    );


}

/* Hero content */

.hero-inner {
position: relative;
z-index: 2;


width: 100%;
min-height: 650px;

display: flex;
align-items: center;


}

.hero-text {
max-width: 700px;
}

/* Hero text colours */

.hero-text .eyebrow {
color: #fff;
opacity: 0;
transform: translateY(40px);
}

.hero-text h1 {
color: #fff;
font-size: clamp(2.5rem, 5vw, 4.5rem);
line-height: 1.05;
margin-bottom: 24px;


opacity: 0;
transform: translateY(50px);


}

.hero-text .lead {
color: rgba(255, 255, 255, 0.9);
font-size: 1.08rem;
max-width: 650px;


opacity: 0;
transform: translateY(50px);


}

.hero-text .btn {
opacity: 0;
transform: translateY(50px);
}

/* Text animation */

.hero-text.animate .eyebrow {
animation: heroTextIn 0.8s ease forwards;
animation-delay: 0.2s;
}

.hero-text.animate h1 {
animation: heroTextIn 0.9s ease forwards;
animation-delay: 0.4s;
}

.hero-text.animate .lead {
animation: heroTextIn 0.9s ease forwards;
animation-delay: 0.6s;
}

.hero-text.animate .btn {
animation: heroTextIn 0.9s ease forwards;
animation-delay: 0.8s;
}

/* Hero animations */

@keyframes heroTextIn {
from {
opacity: 0;
transform: translateY(50px);
}


to {
    opacity: 1;
    transform: translateY(0);
}


}

@keyframes heroZoom {
0% {
transform: scale(1.03);
}


50% {
    transform: scale(1.08);
}

100% {
    transform: scale(1.03);
}


}

/* ==========================================
SECTIONS
========================================== */

.section {
padding: 72px 0;
}

.section.alt-bg {
background: var(--color-bg-alt);
}

.two-col {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 48px;
align-items: center;
}

.rounded-img {
border-radius: var(--radius);
}

.rounded-img.tall {
width: 100%;
height: 520px;
object-fit: cover;
}

/* Checklist */

.checklist {
list-style: none;
padding: 0;
margin: 0 0 24px;
}

.checklist li {
padding-left: 28px;
position: relative;
margin-bottom: 8px;
color: var(--color-text);
}

.checklist li::before {
content: '.';
position: absolute;
left: 0;
color: var(--color-primary);
font-weight: 700;
}

/* ==========================================
STATS
========================================== */

.stats-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 24px;
margin-top: 40px;
}

.stat-card {
background: var(--color-bg-alt);
border-radius: var(--radius);
padding: 28px;
text-align: center;
}

.stat-number {
font-size: 2.4rem;
font-weight: 800;
color: var(--color-primary);
}

.stat-label {
font-weight: 600;
margin-bottom: 8px;
}

.stat-card p {
font-size: 0.9rem;
margin: 0;
}

/* ==========================================
TESTIMONIALS
========================================== */

/* =========================================================
   ALUMNI VOICES / TESTIMONIALS
========================================================= */

.testimonials {
    overflow: hidden;
}

.testimonials .max-w {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 35px;
}


/* Three cards in one row */

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


/* Individual card */

.testimonial-card {
    display: grid;
    grid-template-columns: 46% 54%;

    min-height: 250px;

    margin: 0;
    padding: 0;

    overflow: hidden;

    background: #fff;

    border-radius: 0 16px 16px 0;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}


/* Person image */

.testimonial-image {
    width: 100%;
    height: 100%;
    min-height: 250px;
    overflow: hidden;
}

.testimonial-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center top;

    transition: transform 0.4s ease;
}

.testimonial-card:hover .testimonial-image img {
    transform: scale(1.04);
}


/* Right-hand colored section */

.testimonial-content {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 22px 18px;

    background: #5f1756;

    color: #fff;
}


/* Small circular logo/badge */

.testimonial-badge {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 12px;

    border-radius: 50%;

    background: #fff;
    color: #056b83;

    font-size: 0.38rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.04em;
}


/* Alumni Voices */

.testimonial-label {
    display: block;

    margin-bottom: 5px;

    color: rgba(255,255,255,0.75);

    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


/* Name */

.testimonial-content h3 {
    margin: 0 0 10px;

    color: #fff;

    font-size: 0.95rem;
    line-height: 1.25;
    text-transform: uppercase;
}

.testimonial-content h3 strong {
    display: block;

    margin-top: 2px;

    font-size: 1.05rem;
}


/* Quote */

.testimonial-quote {
    margin: 0 0 10px;

    color: rgba(255,255,255,0.9);

    font-size: 0.72rem;
    line-height: 1.5;

    font-style: italic;
}


/* Role */

.testimonial-role {
    color: rgba(255,255,255,0.65);

    font-size: 0.62rem;
    line-height: 1.3;
}


/* Button */

.testimonials-more {
    margin-top: 30px;
}

@media (max-width: 1100px) {

    .testimonial-grid {
        grid-template-columns: 1fr;
        max-width: 700px;
        margin: 0 auto;
    }

    .testimonial-card {
        min-height: 260px;
    }

    .testimonial-image {
        min-height: 260px;
    }
}


@media (max-width: 600px) {

    .testimonial-card {
        grid-template-columns: 42% 58%;
        min-height: 220px;
    }

    .testimonial-image {
        min-height: 220px;
    }

    .testimonial-content {
        padding: 16px 13px;
    }

    .testimonial-badge {
        width: 32px;
        height: 32px;

        margin-bottom: 8px;
    }

    .testimonial-label {
        font-size: 0.55rem;
    }

    .testimonial-content h3 {
        font-size: 0.78rem;
    }

    .testimonial-content h3 strong {
        font-size: 0.88rem;
    }

    .testimonial-quote {
        font-size: 0.65rem;
        line-height: 1.4;
    }
}

/* ==========================================
CTA BANNER
========================================== */

.cta-banner {
    background: #ffffff;
    color: #1a0129;
    padding: 28px 0;
}

.cta-banner h2 {
    color: #240505;
    margin: 0 0 8px;
}

.cta-banner p {
    color: #26012e;
    margin: 0;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
/* ==========================================
PAGE HEADER
========================================== */

.page-header {
background: var(--color-bg-alt);
padding: 56px 0 40px;
}

/* ==========================================
TEAM
========================================== */

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

.team-card img {
width: 100%;
margin-bottom: 16px;
}

.team-card h3 {
margin-bottom: 4px;
}

.team-card .role {
color: var(--color-primary);
font-weight: 600;
font-size: 0.9rem;
}

/* ==========================================
COHORTS
========================================== */

.cohort-list {
display: flex;
flex-direction: column;
gap: 16px;
}

.cohort-row {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px 24px;
border: 1px solid var(--color-border);
border-radius: var(--radius);
}

.badge {
padding: 6px 16px;
border-radius: 999px;
font-weight: 600;
font-size: 0.85rem;
}

.badge-open {
background: #e6f6ea;
color: #1e8a3d;
}

.badge-closed {
background: #f1f1f1;
color: #666;
}

.cta-inline {
margin-top: 32px;
}

/* ==========================================
PUBLICATIONS
========================================== */

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

.publication-card {
border: 1px solid var(--color-border);
border-radius: var(--radius);
padding: 16px;
display: block;
}

.publication-card img {
width: 100%;
height: 280px;
object-fit: cover;
border-radius: 8px;
}

.publication-card h3 {
margin: 12px 0 4px;
}

.publication-card p {
margin: 0;
font-size: 0.9rem;
}

/* ==========================================
NEWS & EVENTS
========================================== */

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

.news-card {
border: 1px solid var(--color-border);
border-radius: var(--radius);
overflow: hidden;
}

.news-card img {
width: 100%;
height: 200px;
object-fit: cover;
display: block;
}

.news-card-body {
padding: 18px;
}

.news-date {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--color-primary);
font-weight: 600;
}

.news-card h3 {
margin: 8px 0;
font-size: 1.05rem;
}

.news-card p {
font-size: 0.9rem;
margin: 0;
}

/* ==========================================
ACCORDION
========================================== */

.accordion-item {
border-bottom: 1px solid var(--color-border);
}

.accordion-toggle {
width: 100%;
text-align: left;
background: none;
border: none;
padding: 20px 0;
font-size: 1.05rem;
font-weight: 600;
cursor: pointer;
color: var(--color-text);
}

.accordion-content {
display: none;
padding-bottom: 20px;
}

.accordion-content.open {
display: block;
}

/* ==========================================
FORMS
========================================== */

.site-form {
display: flex;
flex-direction: column;
gap: 16px;
}

.site-form label {
font-weight: 600;
font-size: 0.9rem;
display: flex;
flex-direction: column;
gap: 6px;
}

.site-form input,
.site-form textarea {
font-family: var(--font);
padding: 12px 14px;
border-radius: 8px;
border: 1px solid var(--color-border);
font-size: 0.95rem;
}

.alert {
padding: 14px 18px;
border-radius: 8px;
margin-bottom: 20px;
}

.alert-success {
background: #e6f6ea;
color: #1e8a3d;
}

/* ==========================================
VALUES
========================================== */

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

.value-card {
background: #fff;
border: 1px solid var(--color-border);
border-radius: var(--radius);
padding: 24px;
text-align: center;
}

/* ==========================================
FOOTER
========================================== */

.site-footer {
    background: var(--color-dark-2);
    color: #cfcfcf;
    padding: 25px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 20px;
    padding-bottom: 20px;
}

.footer-brand p {
    color: #a5a5a5;
    margin: 2px 0;
}

.social-links {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.social-links a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.footer-links h4,
.footer-contact h4 {
    color: #fff;
    margin-bottom: 8px;
}

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

.footer-links li {
    margin-bottom: 5px;
}

.footer-links a,
.footer-contact p {
    color: #a5a5a5;
    line-height: 1.4;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 10px 0;
    text-align: center;
    font-size: 0.8rem;
}

/* ==========================================
CENTER PAGE
========================================== */

.center-page {
text-align: center;
padding: 120px 0;
}

/* ==========================================
TABLET
========================================== */

@media (max-width: 960px) {


.two-col {
    grid-template-columns: 1fr;
}

.stats-grid,
.testimonial-grid,
.team-grid,
.publications-grid,
.values-grid,
.news-grid {
    grid-template-columns: repeat(2, 1fr);
}

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

.mega-dropdown {
    width: 480px;
}


}

/* ==========================================
MOBILE
========================================== */

@media (max-width: 720px) {


.main-nav {
    display: none;
}

.main-nav.open {
    display: block;
}

.main-nav.open ul {
    flex-direction: column;
    gap: 4px;
}

/* About KSK dropdown */
.has-dropdown {
    position: relative;
}

/* Hidden by default */
.mega-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}

/* Show when hovering */
.has-dropdown:hover .mega-dropdown {
    display: grid;
}

/* Also show when clicked */
.has-dropdown.dropdown-open .mega-dropdown {
    display: grid;
}

.nav-toggle {
    display: flex;
}

.header-cta {
    display: none;
}

.stats-grid,
.testimonial-grid,
.team-grid,
.publications-grid,
.values-grid,
.news-grid {
    grid-template-columns: 1fr;
}

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

h1 {
    font-size: 2rem;
}

.hero {
    min-height: 600px;
}

.hero-inner {
    min-height: 600px;
    padding: 80px 20px;
}

.hero-text {
    max-width: 100%;
}

.hero-text h1 {
    font-size: 2.5rem;
    line-height: 1.1;
}

.hero-text .lead {
    font-size: 1rem;
}

.rounded-img.tall {
    height: 380px;
}

.cta-inner {
    align-items: flex-start;
}

}


/* Our Programs */
.program-jump-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.program-cta {
    margin-top: 25px;
    padding: 20px;
    border-radius: 8px;
    background: #f5f5f5;
}

.program-note {
    margin-top: 30px;
}

html {
    scroll-behavior: smooth;
}
#mswrp,
#kaizen,
#fsa,
#upcoming {
    scroll-margin-top: 100px;
}


/* =========================================================
   ALUMNI JAVASCRIPT ENHANCEMENTS
========================================================= */


/* Scroll reveal */

.alumni-reveal {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.alumni-visible {
  opacity: 1;
  transform: translateY(0);
}


/* Directory filters */

.alumni-directory-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: -15px auto 35px;
}

.directory-filter {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: var(--color-text, #2b2b2b);
  padding: 10px 18px;
  border-radius: 30px;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.25s ease;
}

.directory-filter:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary, #e0392c);
}

.directory-filter.active {
  background: var(--color-primary, #e0392c);
  border-color: var(--color-primary, #e0392c);
  color: #fff;
}


/* Directory hiding animation */

.directory-group {
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.directory-group.directory-hidden {
  opacity: 0;
  transform: scale(0.96);
}


/* No testimonials message */

.no-alumni-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 25px;
  border-radius: 18px;
  background: #fff;
  border: 1px dashed rgba(0, 0, 0, 0.15);
}

.no-alumni-message h3 {
  margin-bottom: 10px;
}

.no-alumni-message p {
  margin: 0;
  color: var(--color-muted, #6b7280);
}


/* Mobile filters */

@media (max-width: 600px) {

  .alumni-directory-filters {
    align-items: stretch;
    flex-direction: column;
  }

  .directory-filter {
    width: 100%;
  }

}




/* =========================================================
   FAQ PAGE
========================================================= */

.faq-page-header {
  text-align: center;
}

.faq-page-header p {
  max-width: 750px;
  margin: 0 auto;
}


/* =========================================================
   FAQ LAYOUT
========================================================= */

.faq-section {
  padding-top: 80px;
  padding-bottom: 90px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 80px;
  align-items: start;
}


/* =========================================================
   FAQ INTRO
========================================================= */

.faq-intro {
  position: sticky;
  top: 100px;
}

.faq-intro h2 {
  margin: 10px 0 18px;

  font-size:
    clamp(2rem, 4vw, 3rem);

  line-height: 1.1;
}

.faq-intro p {
  margin-bottom: 28px;

  color:
    var(--color-muted, #6b7280);

  line-height: 1.8;
}


/* =========================================================
   FAQ ITEMS
========================================================= */

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom:
    1px solid #e5e5e5;
}

.faq-question {
  width: 100%;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 25px;

  padding: 25px 5px;

  border: 0;

  background: transparent;

  color:
    var(--color-text, #2b2b2b);

  text-align: left;

  font-family: inherit;

  font-size: 1.05rem;

  font-weight: 700;

  cursor: pointer;
}

.faq-question:hover {
  color:
    var(--color-primary, #e0392c);
}

.faq-icon {
  width: 32px;
  height: 32px;

  flex: 0 0 32px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background:
    var(--color-bg-alt, #f6f5f3);

  color:
    var(--color-primary, #e0392c);

  font-size: 1.2rem;

  transition:
    transform 0.25s ease,
    background 0.25s ease;
}


/* =========================================================
   FAQ ANSWER
========================================================= */

.faq-answer {

  display: grid;

  grid-template-rows: 0fr;

  transition:
    grid-template-rows 0.3s ease;
}

.faq-answer p {

  overflow: hidden;

  margin: 0;

  color:
    var(--color-muted, #6b7280);

  line-height: 1.8;

  opacity: 0;

  transition:
    opacity 0.25s ease;

}

.faq-answer a {
  color:
    var(--color-primary, #e0392c);

  font-weight: 700;
}


/* =========================================================
   ACTIVE FAQ
========================================================= */

.faq-item.active
.faq-answer {

  grid-template-rows: 1fr;

}

.faq-item.active
.faq-answer p {

  padding:
    0 5px 25px;

  opacity: 1;

}

.faq-item.active
.faq-icon {

  transform:
    rotate(45deg);

  background:
    rgba(224,57,44,0.1);
}


/* =========================================================
   FAQ CTA
========================================================= */

.faq-cta {
  margin-top: 0;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .faq-intro {
    position: static;
  }

}

@media (max-width: 600px) {

  .faq-question {
    padding: 20px 0;
    font-size: 0.95rem;
  }

  .faq-answer p {
    font-size: 0.9rem;
  }

}






/* =========================================================
   CONTACT PAGE
========================================================= */

.contact-page-header {
  text-align: center;
}

.contact-page-header p {
  max-width: 760px;
  margin: 0 auto;
}


/* =========================================================
   CONTACT LAYOUT
========================================================= */

.contact-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}


/* =========================================================
   CONTACT INFORMATION
========================================================= */

.contact-information h2 {
  margin: 10px 0 20px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.contact-intro {
  max-width: 570px;
  margin-bottom: 40px;
  color: var(--color-muted, #6b7280);
  line-height: 1.8;
}


.contact-detail {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background:
    rgba(224, 57, 44, 0.1);

  color:
    var(--color-primary, #e0392c);

  font-size: 1.15rem;
}

.contact-detail h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.contact-detail p {
  margin: 0;
  color: var(--color-muted, #6b7280);
  line-height: 1.7;
}

.contact-detail a {
  color: inherit;
  text-decoration: none;
}

.contact-detail a:hover {
  color: var(--color-primary, #e0392c);
}


/* =========================================================
   RESPONSE NOTE
========================================================= */

.contact-response-note {
  margin-top: 35px;
  padding: 22px;

  border-left: 4px solid
    var(--color-primary, #e0392c);

  background:
    var(--color-bg-alt, #f6f5f3);

  border-radius: 0 10px 10px 0;
}

.contact-response-note strong {
  display: block;
  margin-bottom: 7px;
}

.contact-response-note p {
  margin: 0;
  color: var(--color-muted, #6b7280);
  font-size: 0.88rem;
  line-height: 1.6;
}


/* =========================================================
   CONTACT FORM CARD
========================================================= */

.contact-form-wrapper {
  padding: 40px;

  border-radius: 18px;

  background: #fff;

  box-shadow:
    0 15px 45px rgba(0, 0, 0, 0.08);
}

.contact-form-heading {
  margin-bottom: 30px;
}

.contact-form-heading h2 {
  margin: 8px 0 0;
  font-size: 2rem;
}


/* =========================================================
   FORM
========================================================= */

.contact-form {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 20px;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.contact-form .form-group-full {
  grid-column: 1 / -1;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 700;
}

.contact-form label > span:first-child {
  color: var(--color-primary, #e0392c);
}

.contact-form .optional {
  margin-left: 5px;
  color: var(--color-muted, #6b7280);
  font-size: 0.7rem;
  font-weight: 400;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;

  padding: 13px 15px;

  border: 1px solid #ddd;

  border-radius: 8px;

  background: #fff;

  color: var(--color-text, #2b2b2b);

  font-family: inherit;

  font-size: 0.9rem;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color:
    var(--color-primary, #e0392c);

  box-shadow:
    0 0 0 3px rgba(224, 57, 44, 0.08);
}

.form-error {
  min-height: 14px;
  color: var(--color-primary, #e0392c);
  font-size: 0.72rem;
}


/* =========================================================
   SUBMIT
========================================================= */

.contact-submit {
  justify-self: start;
}

.submit-loading {
  display: none;
}

.contact-form.is-loading .submit-text {
  display: none;
}

.contact-form.is-loading .submit-loading {
  display: inline;
}

.contact-form.is-loading .contact-submit {
  pointer-events: none;
  opacity: 0.65;
}

.form-security-note {
  grid-column: 1 / -1;
  margin: -5px 0 0;
  color: var(--color-muted, #6b7280);
  font-size: 0.72rem;
}


/* =========================================================
   FORM STATUS
========================================================= */

.contact-success,
.contact-error {
  grid-column: 1 / -1;

  padding: 14px 16px;

  border-radius: 8px;

  font-size: 0.85rem;
  line-height: 1.5;
}

.contact-success {
  background: #ecfdf3;
  color: #166534;
}

.contact-error {
  background: #fff1f2;
  color: #be123c;
}


/* =========================================================
   MAP
========================================================= */

.contact-map-section {
  padding: 20px 0 80px;
}

.section-heading.centered {
  text-align: center;
  margin-bottom: 35px;
}

.section-heading.centered p {
  color: var(--color-muted, #6b7280);
}

.contact-map {
  overflow: hidden;

  border-radius: 18px;

  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.08);
}

.contact-map iframe {
  display: block;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

}

@media (max-width: 650px) {

  .contact-form-wrapper {
    padding: 25px 20px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form .form-group-full {
    grid-column: 1;
  }

  .contact-submit {
    width: 100%;
  }

  .contact-map iframe {
    height: 350px;
  }

}


/* =========================================================
   PAGE HEADER — TEXT ENTRANCE ANIMATION
   Applies to every .page-header section site-wide
========================================================= */

.page-header .section-eyebrow,
.page-header h1,
.page-header p {
  opacity: 0;
  animation: pageHeaderFadeUp 0.7s ease forwards;
}

.page-header .section-eyebrow {
  animation-delay: 0.1s;
}

.page-header h1 {
  animation-delay: 0.25s;
}

.page-header p {
  animation-delay: 0.4s;
}

@keyframes pageHeaderFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Respect users who've asked for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .page-header .section-eyebrow,
  .page-header h1,
  .page-header p {
    animation: none;
    opacity: 1;
    transform: none;
  }
}


/* =========================================================
   CONTACT FORM
   Scoped to #contact-form (ID) so it reliably wins over any
   conflicting global form/label/input styles elsewhere on the site.
========================================================= */

#contact-form.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

#contact-form .form-group {
  display: flex;
  flex-direction: column;
}
#contact-form .form-group-full { grid-column: 1 / -1; }

#contact-form .form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: #2b1a45 !important;
}
#contact-form .form-group label span:not(.optional) { color: #e0392c !important; margin-left: 3px; }
#contact-form .form-group label .optional {
  font-weight: 500;
  color: #9a8cae !important;
  font-size: 0.75rem;
  margin-left: 6px;
}

#contact-form .form-group input,
#contact-form .form-group select,
#contact-form .form-group textarea {
  padding: 12px 14px;
  border: 1px solid #600563 !important;
  border-radius: 10px;
  font-size: 0.94rem;
  font-family: inherit;
  background: #fff !important;
  color: #2b1a45 !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#contact-form .form-group input::placeholder,
#contact-form .form-group textarea::placeholder {
  color: #9a8cae !important;
}

#contact-form .form-group input:focus,
#contact-form .form-group select:focus,
#contact-form .form-group textarea:focus {
  outline: none;
  border-color: #561358 !important;
  box-shadow: 0 0 0 3px rgba(178,63,214,0.14);
}

#contact-form .form-group textarea { resize: vertical; min-height: 130px; }

#contact-form .form-error {
  color: #d9483e !important;
  font-size: 0.78rem;
  margin-top: 5px;
  min-height: 1em;
}

#contact-form .contact-submit {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  margin-top: 4px;
}

#contact-form .contact-submit .submit-loading { display: none; }
#contact-form .contact-submit.is-loading .submit-text { display: none; }
#contact-form .contact-submit.is-loading .submit-loading { display: inline; }

#contact-form .form-security-note {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: #9a8cae !important;
  text-align: center;
}

#contact-form .contact-success,
#contact-form .contact-error {
  grid-column: 1 / -1;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-top: 6px;
}
#contact-form .contact-success { background: #e8f8ee !important; color: #1f7a41 !important; }
#contact-form .contact-error { background: #fdecea !important; color: #b23a2c !important; }


.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 17px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    background: #fff;
    color: #1f7a4d;
}

.social-links i {
    line-height: 1;
}

.alumni-preview {
    padding: 80px 0;
    background: #f8f8f6;
}

.alumni-preview .section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.alumni-preview .eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #d97900;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.alumni-preview .section-heading h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    font-weight: 700;
}

.alumni-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.alumni-preview-card {
    overflow: hidden;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.alumni-preview-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.11);
}

.alumni-preview-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.alumni-preview-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.alumni-preview-card:hover .alumni-preview-image img {
    transform: scale(1.04);
}

.alumni-preview-content {
    padding: 28px 24px 30px;
}

.alumni-program {
    display: block;
    margin-bottom: 12px;
    color: #d97900;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.alumni-preview-content h3 {
    margin: 0 0 16px;
    color: #561358;
    font-size: 22px;
    line-height: 1.25;
}

.alumni-quote {
    margin: 0;
    color: #24344d;
    font-size: 16px;
    line-height: 1.7;
}

.alumni-year {
    display: inline-block;
    margin-top: 20px;
    padding: 6px 12px;
    border-radius: 20px;
    background: #f2f3f5;
    color: #555;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 900px) {
    .alumni-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .alumni-preview {
        padding: 60px 0;
    }

    .alumni-preview .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .alumni-preview-grid {
        grid-template-columns: 1fr;
    }

    .alumni-preview-image {
        height: 230px;
    }
}



/* ==========================================
   PUBLICATIONS — anchor offset
   So jumping to #publication-<id> doesn't hide
   the card under the sticky header.
========================================== */

.current-publication-card,
.magazine-archive-card {
    scroll-margin-top: 110px;
}


/* ==========================================
   PDF READER OVERLAY
========================================== */

.pdf-reader-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #561358;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.pdf-reader-overlay.open {
    display: flex;
}

.pdf-reader-container {
    width: 100%;
    max-width: 900px;
    height: 90vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pdf-reader-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #eee;
}

.pdf-reader-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-primary);
    text-transform: uppercase;
}

.pdf-reader-header h2 {
    margin: 4px 0 0;
    font-size: 1.1rem;
}

.pdf-reader-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.pdf-reader-body {
    flex: 1;
    overflow: hidden;
    background: #f5f5f5;
}

.pdf-reader-footer {
    padding: 14px 24px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}


/* ==========================================
   ADMIN — publications table
========================================== */

.admin-page {
    padding: 40px 0;
    max-width: 1100px;
    margin: 0 auto;
}

.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.admin-flash {
    background: #e6f6ea;
    color: #1e8a3d;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.admin-table-thumb {
    width: 50px;
    height: 65px;
    object-fit: cover;
    border-radius: 4px;
}

.admin-table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-danger {
    background: #d9483e;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-danger:hover {
    background: #b23a2c;
}



/* ==========================================
   PUBLICATION READER (flipbook)
========================================== */

.publication-reader {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #561358;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.publication-reader.is-open {
    display: flex;
}

body.publication-reader-open {
    overflow: hidden;
}

.publication-reader-panel {
    width: 100%;
    max-width: 1100px;
    height: 92vh;
    background: #561358;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* Fullscreen: let the panel fill the whole screen */
.publication-reader-panel:fullscreen,
.publication-reader-panel:-webkit-full-screen {
    max-width: none;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}


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

.publication-reader-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #561358;
    color: #fff;
    flex-shrink: 0;
}

.publication-reader-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--color-primary);
}

.publication-reader-header h2 {
    margin: 4px 0 0;
    font-size: 1.05rem;
    color: #fff;
}

.publication-reader-header-actions {
    display: flex;
    gap: 8px;
}

.publication-reader-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.publication-reader-icon-btn:hover,
.publication-reader-icon-btn.is-active {
    background: rgba(255, 255, 255, 0.2);
}


/* ---------- BODY ---------- */

.publication-reader-body {
    position: relative;
    flex: 1;
    overflow: hidden;
    background:
        radial-gradient(circle at center, #2a1e37 0%, #150e1c 100%);
}

/* Flipbook wrap fills the body by default... */
.publication-flip-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.publication-flipbook {
    max-width: 100%;
    max-height: 100%;
}

.publication-flipbook .page {
    background: #fff;
}

.publication-flipbook .page canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* ...and the fallback iframe/link are hidden until .is-fallback is set */
.publication-reader-frame,
.publication-reader-fallback-link {
    display: none;
}

.publication-reader-body.is-fallback .publication-flip-wrap {
    display: none;
}

.publication-reader-body.is-fallback .publication-reader-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.publication-reader-body.is-fallback .publication-reader-fallback-link {
    display: inline-block;
    position: absolute;
    bottom: 16px;
    right: 16px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 999px;
    font-size: 0.8rem;
    text-decoration: none;
}


/* ---------- LOADING ---------- */

.publication-flip-loading {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    background: rgba(21, 14, 28, 0.7);
    z-index: 2;
}

.publication-flip-loading.is-visible {
    display: flex;
}


/* ---------- NAV ---------- */

.publication-flip-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    transition: background 0.2s ease;
}

.publication-flip-nav:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.28);
}

.publication-flip-nav:disabled {
    opacity: 0.25;
    cursor: default;
}

.publication-flip-prev {
    left: 16px;
}

.publication-flip-next {
    right: 16px;
}

.publication-flip-pageindicator {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.8rem;
    z-index: 3;
}


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

.publication-reader-footer {
    padding: 14px 24px;
    background: #241a2e;
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}


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

@media (max-width: 700px) {

    .publication-reader-panel {
        height: 96vh;
        border-radius: 10px;
    }

    .publication-flip-nav {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .publication-reader-header h2 {
        font-size: 0.92rem;
    }

}



/* ==========================================
   PUBLICATIONS PAGE
========================================== */

.publication-hero {
    padding: 60px 0 30px;
    text-align: center;
}

.publication-hero .lead,
.publication-hero p {
    max-width: 650px;
    margin: 0 auto;
    color: var(--color-muted);
}

.section-heading {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
}

.section-heading p {
    color: var(--color-muted);
    margin: 0;
}


/* ---------- CURRENT ISSUE ---------- */

.current-publication-card {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 40px;

    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);

    max-width: 980px;
    margin: 0 auto;
    padding: 0;
}

.publication-cover {
    width: 100%;
    height: 100%;
    min-height: 340px;
}

.publication-cover img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    display: block;
}

.publication-info {
    padding: 40px 40px 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.publication-label {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.publication-info h2 {
    margin: 0 0 12px;
    font-size: 1.8rem;
}

.publication-year {
    display: inline-block;
    margin-bottom: 16px;
    padding: 4px 14px;
    border-radius: 999px;
    background: var(--color-bg-alt);
    color: var(--color-dark);
    font-size: 0.85rem;
    font-weight: 700;
    width: fit-content;
}

.publication-description {
    color: var(--color-muted);
    margin-bottom: 24px;
}

.publication-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.publication-unavailable {
    color: #999;
    font-style: italic;
    font-size: 0.9rem;
}


/* ---------- ARCHIVE GRID ---------- */

.magazine-archive-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.magazine-archive-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.magazine-archive-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.11);
}

.magazine-archive-cover {
    width: 100%;
    height: 280px;
}

.magazine-archive-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.magazine-archive-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.archive-year {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    width: fit-content;
}

.magazine-archive-content h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.archive-description {
    color: var(--color-muted);
    font-size: 0.9rem;

    /* Clamp long descriptions so cards stay a consistent height */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;

    flex: 1;
}

.archive-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.archive-actions .btn {
    font-size: 0.85rem;
    padding-left: 20px;
    padding-right: 20px;
    height: 36px;
}


/* ---------- EMPTY STATES ---------- */

.publication-empty {
    text-align: center;
    padding: 60px 25px;
    border-radius: 18px;
    background: var(--color-bg-alt);
    border: 1px dashed rgba(230, 221, 218, 0.12);
    max-width: 600px;
    margin: 0 auto;
}

.publication-empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary);
}

.publication-empty h3 {
    margin-bottom: 8px;
}

.publication-empty p {
    color: var(--color-muted);
    margin: 0;
}


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

@media (max-width: 900px) {

    .current-publication-card {
        grid-template-columns: 1fr;
    }

    .publication-cover,
    .publication-cover img {
        min-height: 280px;
    }

    .publication-info {
        padding: 30px;
    }

    .magazine-archive-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 600px) {

    .magazine-archive-list {
        grid-template-columns: 1fr;
    }

}


/* ==========================================
   PUBLICATION READER (flipbook)
========================================== */

.publication-reader {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(10, 8, 15, 0.85);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.publication-reader.is-open {
    display: flex;
}

body.publication-reader-open {
    overflow: hidden;
}

.publication-reader-panel {
    width: 100%;
    max-width: 1100px;
    height: 92vh;
    background: #1c1424;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* Fullscreen: let the panel fill the whole screen */
.publication-reader-panel:fullscreen,
.publication-reader-panel:-webkit-full-screen {
    max-width: none;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}


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

.publication-reader-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #241a2e;
    color: #fff;
    flex-shrink: 0;
}

.publication-reader-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--color-primary);
}

.publication-reader-header h2 {
    margin: 4px 0 0;
    font-size: 1.05rem;
    color: #fff;
}

.publication-reader-header-actions {
    display: flex;
    gap: 8px;
}

.publication-reader-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.publication-reader-icon-btn:hover,
.publication-reader-icon-btn.is-active {
    background: rgba(255, 255, 255, 0.2);
}


/* ---------- BODY ---------- */

.publication-reader-body {
    position: relative;
    flex: 1;
    overflow: hidden;
    background:
        radial-gradient(circle at center, #2a1e37 0%, #150e1c 100%);
}

/* Flipbook wrap fills the body by default... */
.publication-flip-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.publication-flipbook {
    max-width: 100%;
    max-height: 100%;
}

.publication-flipbook .page {
    background: #fff;
}

.publication-flipbook .page canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* ...and the fallback iframe/link are hidden until .is-fallback is set */
.publication-reader-frame,
.publication-reader-fallback-link {
    display: none;
}

.publication-reader-body.is-fallback .publication-flip-wrap {
    display: none;
}

.publication-reader-body.is-fallback .publication-reader-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.publication-reader-body.is-fallback .publication-reader-fallback-link {
    display: inline-block;
    position: absolute;
    bottom: 16px;
    right: 16px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 999px;
    font-size: 0.8rem;
    text-decoration: none;
}


/* ---------- LOADING ---------- */

.publication-flip-loading {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    background: rgba(21, 14, 28, 0.7);
    z-index: 2;
}

.publication-flip-loading.is-visible {
    display: flex;
}


/* ---------- NAV ---------- */

.publication-flip-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    transition: background 0.2s ease;
}

.publication-flip-nav:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.28);
}

.publication-flip-nav:disabled {
    opacity: 0.25;
    cursor: default;
}

.publication-flip-prev {
    left: 16px;
}

.publication-flip-next {
    right: 16px;
}

.publication-flip-pageindicator {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.8rem;
    z-index: 3;
}


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

.publication-reader-footer {
    padding: 14px 24px;
    background: #241a2e;
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}


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

@media (max-width: 700px) {

    .publication-reader-panel {
        height: 96vh;
        border-radius: 10px;
    }

    .publication-flip-nav {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .publication-reader-header h2 {
        font-size: 0.92rem;
    }

}

/* =========================================================
   PUBLICATION READER — required additions
   Append to /css/publications.css.
   Without these rules, .is-open / aria-hidden toggling from
   publication-reader.js has nothing to visually react to, so
   the reader modal never appears to open.
========================================================= */

.publication-reader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 10, 12, 0.82);
}

.publication-reader.is-open {
    display: flex;
}

body.publication-reader-open {
    overflow: hidden;
}

.publication-reader-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 960px;
    height: 90vh;
    max-height: 900px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.publication-reader-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    flex: 0 0 auto;
}

.publication-reader-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-muted, #6b7280);
}

.publication-reader-header h2 {
    margin: 4px 0 0;
    font-size: 1.15rem;
}

.publication-reader-header-actions {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

.publication-reader-icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: var(--color-bg-alt, #f6f5f3);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.publication-reader-icon-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

.publication-reader-body {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    background: var(--color-bg-alt, #f6f5f3);
}

/* ---------- flip mode ---------- */

.publication-flip-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.publication-flipbook {
    width: 100%;
    height: 100%;
}

.publication-flip-page {
    background: #fff;
}

.publication-flip-page img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.publication-flip-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    color: var(--color-muted, #6b7280);
    z-index: 2;
}

.publication-flip-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    font-size: 1.3rem;
    z-index: 3;
}

.publication-flip-prev {
    left: 16px;
}

.publication-flip-next {
    right: 16px;
}

.publication-flip-pageindicator {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.75rem;
    z-index: 3;
}

/* ---------- fallback (plain iframe) mode ---------- */

.publication-reader-frame {
    display: none;
    width: 100%;
    height: 100%;
    border: none;
}

.publication-reader-fallback-link {
    display: none;
    position: absolute;
    bottom: 16px;
    right: 16px;
    padding: 8px 16px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    color: inherit;
    z-index: 3;
}

.publication-reader-footer {
    flex: 0 0 auto;
    padding: 16px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: right;
}

@media (max-width: 600px) {

    .publication-reader {
        padding: 0;
    }

    .publication-reader-panel {
        max-width: none;
        height: 100vh;
        max-height: none;
        border-radius: 0;
    }

}


