@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
    --brand-blue: #336178;
    --brand-blue-deep: #2a4f62;
    --brand-accent: #ae485e;
    --brand-white: #FFFFFF;
    --surface-page: #f7fafc;
    --surface-card: #ffffff;
    --border-soft: rgba(51, 97, 120, 0.14);
    --layout-max-width: 1400px;
    --layout-gutter: 2rem;
    /* About page (school-description) + aligned career content cards */
    --about-content-card-shadow: 0 4px 20px rgba(51, 97, 120, 0.1);
    --about-content-card-shadow-hover: 0 6px 25px rgba(51, 97, 120, 0.1);
    --about-content-card-padding-y: 3rem;
    --about-content-card-padding-x: 2rem;
    /* Rounded corners for buttons, tabs, small tags, and form fields */
    --radius-button: 10px;
    --radius-control: 10px;
}

/* Links that look like buttons: use the same round corners everywhere */
.btn-register-link,
.btn-ghost-exchange {
    border-radius: var(--radius-button);
}

/* Native buttons: rounded rectangles (same radius as .btn-*). Carousel dots etc. override below. */
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    border-radius: var(--radius-button);
}

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

html {
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--brand-blue);
    background: var(--surface-page);
    min-height: 100vh;
}

img,
video {
    max-width: 100%;
    height: auto;
}

/* Main content width: same box on most pages */
.container {
    width: 100%;
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding-left: var(--layout-gutter);
    padding-right: var(--layout-gutter);
}

@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Top menu bar (logo + links) */
.header {
    background: var(--brand-white);
    border-bottom: 2px solid var(--border-soft);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(51, 97, 120, 0.12);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content:not(.container) {
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding-left: var(--layout-gutter);
    padding-right: var(--layout-gutter);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    height: 60px;
    width: auto;
}

.logo-ada {
    font-size: 2rem;
    font-weight: bold;
    color: #ae485e;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-platform {
    font-size: 0.9rem;
    font-weight: 600;
    color: #336178;
}

.logo-school {
    font-size: 0.75rem;
    color: #336178;
    opacity: 0.7;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: #336178;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-button);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #ae485e;
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 80%;
}

.nav a:hover {
    color: #ae485e;
}

/* "My ADA" link: special color and no underline inside the top menu */
.nav .btn-myada,
.nav .btn-myada:hover,
.nav .btn-myada:focus,
.nav .btn-myada:focus-visible {
    color: #ffffff;
}

.nav .btn-myada::after {
    display: none;
}

.btn-myada {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ae485e;
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-button);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(174, 72, 94, 0.22);
}

.btn-myada:hover {
    background-color: #8d3a4b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(174, 72, 94, 0.3);
}

.btn-myada:focus-visible {
    outline: 2px solid #336178;
    outline-offset: 2px;
}

/* Page body below the menu */
.main-content {
    padding-top: 2rem;
    padding-bottom: 2rem;
    background: transparent;
}

.main-content:not(.container) {
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding-left: var(--layout-gutter);
    padding-right: var(--layout-gutter);
}

.content-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
    min-width: 0;
}

.left-column {
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(51, 97, 120, 0.1);
    min-width: 0;
}

.right-column {
    background: rgba(51, 97, 120, 0.02);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(51, 97, 120, 0.08);
    min-width: 0;
}

/* GPA table: four columns; scroll sideways on very small screens */
.right-column .gpa-table {
    max-width: 100%;
    overflow-x: auto;
}

.right-column .event-details,
.right-column .news-content {
    min-width: 0;
}

.right-column .news-content h3,
.right-column .event-title {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.right-column .schedule-card {
    flex-wrap: wrap;
    min-width: 0;
}

.right-column .schedule-content {
    min-width: 0;
}

/* Keep column height even; less empty space under the last block */
.left-column > .section:last-child,
.right-column > .section:last-child {
    margin-bottom: 0;
}

.clubs-section,
.schedule-section {
    padding-bottom: 1.35rem;
}

.hero-section {
    margin-bottom: 3rem;
}

/* Career page: full-width video hero at the top */
.video-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    height: min(60vh, 500px);
    max-height: 500px;
    overflow: hidden;
    display: block;
    z-index: 0;
}

.video-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.video-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.video-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: #ffffff;
    text-align: center;
    padding: 1rem 2rem;
    width: 100%;
    max-width: var(--layout-max-width);
    pointer-events: none;
}

.video-hero-heading {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.video-hero-subheading {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
}

@media (max-width: 1024px) {
    .video-hero {
        height: min(50vh, 420px);
        max-height: 420px;
    }
    .video-hero-heading {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .video-hero {
        height: min(45vh, 360px);
        max-height: 360px;
    }
    .video-hero-heading {
        font-size: 1.75rem;
    }
    .video-hero-subheading {
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .video-hero {
        height: min(40vh, 320px);
        max-height: 320px;
    }
    .video-hero-heading {
        font-size: 1.5rem;
    }
}


/* About page: school text on the left, photo carousel on the right */
.school-description-section {
    margin-bottom: 3rem;
    padding: var(--about-content-card-padding-y) var(--about-content-card-padding-x);
    background: var(--surface-card);
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--about-content-card-shadow);
    display: flex;
    align-items: stretch;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.school-description-content {
    flex: 1;
    min-width: 280px;
}

.school-description-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #336178;
    margin-bottom: 1.5rem;
    text-align: left;
    position: relative;
    padding-bottom: 1rem;
}

.school-description-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #336178 0%, #ae485e 100%);
    border-radius: 2px;
}

.school-description-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #336178;
    opacity: 0.9;
    text-align: justify;
}

.hero-image {
    background: linear-gradient(135deg, #336178 0%, #2a4f62 50%, #336178 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    height: 450px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(51, 97, 120, 0.3);
}

/* Exact shared hero frame used by About/Research/Career. */
.hero-frame-standard {
    height: 450px;
    border-radius: 16px;
    padding: 3rem;
    display: flex;
    align-items: center;
    overflow: hidden;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(174, 72, 94, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(51, 97, 120, 0.3) 0%, transparent 50%);
    opacity: 0.6;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

/* Big photo with dark overlay so white text is easy to read */
.hero-image-campus {
    background-image: linear-gradient(135deg, rgba(51, 97, 120, 0.85) 0%, rgba(42, 79, 98, 0.75) 40%, rgba(0, 0, 0, 0.6) 100%),
                      url('img/campus.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-image-campus::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(51, 97, 120, 0.5) 50%, rgba(0, 0, 0, 0.45) 100%);
    opacity: 1;
}
.hero-image-campus::after {
    opacity: 0.2;
}

/* Research page: uses the same hero frame as About/Career with page-specific background. */
.hero-image-research {
    background-image: linear-gradient(135deg, rgba(47, 95, 118, 0.9) 0%, rgba(63, 123, 150, 0.78) 55%, rgba(174, 72, 94, 0.72) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-image-research::before {
    background: linear-gradient(180deg, rgba(14, 38, 51, 0.35) 0%, rgba(47, 95, 118, 0.45) 52%, rgba(26, 17, 23, 0.35) 100%);
    opacity: 1;
}

.hero-image-research::after {
    opacity: 0.22;
}

.research-main.container {
    max-width: var(--layout-max-width);
}

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

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

/* Career page: video hero uses same shell as index .hero-image */
.hero-image.hero-image-career-video {
    background: #0f1418;
    animation: none;
}

.hero-image.hero-image-career-video::before {
    background: linear-gradient(135deg, rgba(51, 97, 120, 0.55) 0%, rgba(174, 72, 94, 0.28) 100%);
    opacity: 1;
    z-index: 1;
}

.hero-image.hero-image-career-video::after {
    opacity: 0.18;
    z-index: 1;
}

.hero-career-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    border-radius: 16px;
}

.hero-image.hero-image-career-video .hero-text {
    position: relative;
    z-index: 2;
}

/* Career page: ADA login modal (matches site form colors) */
#careerLoginOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(51, 97, 120, 0.72);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

#careerLoginBox {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 20px 50px rgba(51, 97, 120, 0.22);
    text-align: center;
}

#careerLoginBox .login-logo {
    width: 80px;
    margin-bottom: 1rem;
}

#careerLoginBox h2 {
    margin: 0 0 0.25rem;
    color: var(--brand-blue);
    font-size: 1.4rem;
}

#careerLoginBox p {
    color: var(--brand-blue);
    opacity: 0.78;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

#careerLoginError {
    display: none;
    background: rgba(174, 72, 94, 0.12);
    color: #ae485e;
    border: 1px solid rgba(174, 72, 94, 0.45);
    border-radius: var(--radius-control);
    padding: 0.7rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

#careerLoginBox input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(51, 97, 120, 0.22);
    border-radius: var(--radius-control);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    box-sizing: border-box;
    color: var(--brand-blue);
    background: #ffffff;
}

#careerLoginBox input::placeholder {
    color: var(--brand-blue);
    opacity: 0.45;
}

#careerLoginBox input:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(51, 97, 120, 0.12);
}

#careerLoginSubmit {
    width: 100%;
    padding: 0.85rem;
    background: #336178;
    color: #ffffff;
    border: 2px solid #336178;
    border-radius: var(--radius-button);
    font-size: 1rem;
    cursor: pointer;
    margin-top: 0.25rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

#careerLoginSubmit:hover:not(:disabled) {
    background: #ae485e;
    border-color: #ae485e;
    color: #ffffff;
}

#careerLoginSubmit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

#careerLoginClose {
    position: absolute;
    top: 0.75rem;
    right: 0.9rem;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--brand-blue);
    line-height: 1;
}

#careerLoginClose:hover {
    color: #ae485e;
}

/* School photos: carousel on the right, big image */
.school-gallery-wrap {
    flex: 0 1 55%;
    min-width: 320px;
    max-width: 640px;
    display: flex;
    flex-direction: column;
}
.school-gallery-carousel {
    position: relative;
    width: 100%;
}
.school-gallery-track-wrap {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(51, 97, 120, 0.2), 0 2px 12px rgba(0, 0, 0, 0.08);
}
.school-gallery-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.school-gallery-slide {
    flex: 0 0 100%;
    min-width: 0;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: rgba(51, 97, 120, 0.08);
}
.school-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.school-gallery-wrap:hover .school-gallery-slide img {
    transform: scale(1.02);
}
.school-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}
.school-gallery-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(51, 97, 120, 0.25);
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}
.school-gallery-dots button:hover {
    background: rgba(51, 97, 120, 0.5);
    transform: scale(1.2);
}
.school-gallery-dots button.active {
    background: #336178;
    width: 28px;
    border-radius: 5px;
}

/* Exchange page: blue box for student photos (this style wins over general rules) */
.section.exchange-gallery-section {
    background: var(--brand-blue);
    border-color: rgba(255, 255, 255, 0.2);
}

.section.exchange-gallery-section:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.22);
}

.section.exchange-gallery-section h2 {
    color: var(--brand-white);
}

.section.exchange-gallery-section h2::after {
    background: var(--brand-accent);
}

.section.exchange-gallery-section .exchange-gallery-intro {
    color: rgba(255, 255, 255, 0.92);
}

.section.exchange-gallery-section .school-gallery-dots button {
    background: rgba(255, 255, 255, 0.35);
}

.section.exchange-gallery-section .school-gallery-dots button:hover {
    background: rgba(255, 255, 255, 0.55);
}

.section.exchange-gallery-section .school-gallery-dots button.active {
    background: var(--brand-accent);
}

/* Exchange page: same carousel style as About, full width */
.exchange-gallery-section .exchange-student-gallery.school-gallery-wrap {
    flex: none;
    width: 100%;
    max-width: none;
}

/* Exchange carousel: four photos in one slide */
.exchange-gallery-section .school-gallery-slide--quad {
    display: flex;
    align-items: stretch;
    aspect-ratio: 4 / 1;
    min-height: 0;
}

.exchange-gallery-section .school-gallery-strip {
    display: flex;
    gap: 0.3rem;
    width: 100%;
    height: 100%;
    min-height: 0;
    align-items: stretch;
}

.exchange-gallery-section .school-gallery-strip-item {
    flex: 1;
    min-width: 0;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(51, 97, 120, 0.08);
}

.exchange-gallery-section .school-gallery-strip-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}


@media (max-width: 768px) {
    .school-description-section {
        flex-direction: column;
        gap: 1.5rem;
    }
    .school-description-content h2 {
        text-align: center;
    }
    .school-description-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .school-gallery-wrap {
        flex: 1 1 auto;
        width: 100%;
    }
    .school-gallery-slide {
        aspect-ratio: 4/3;
    }
    .exchange-gallery-section .school-gallery-slide--quad {
        aspect-ratio: 5 / 2;
    }
}

.hero-text {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-text h1 .hero-title-school-line {
    display: inline-block;
    font-weight: inherit;
    letter-spacing: inherit;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.btn-explore {
    background: linear-gradient(135deg, #ae485e 0%, rgba(174, 72, 94, 0.9) 100%);
    color: #ffffff;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-button);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(174, 72, 94, 0.4);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

.btn-explore::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-explore:hover::before {
    width: 300px;
    height: 300px;
}

.btn-explore:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(174, 72, 94, 0.5);
    background: linear-gradient(135deg, #ae485e 0%, #ae485e 100%);
}


/* Generic page sections */
.section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--surface-card);
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.section:hover {
    box-shadow: 0 6px 25px rgba(51, 97, 120, 0.1);
    transform: translateY(-2px);
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--brand-blue);
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--brand-accent);
    border-radius: 2px;
}

.subtitle {
    color: var(--brand-blue);
    opacity: 0.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Statistics block (student counts, etc.) */
.community-numbers {
    background-image: linear-gradient(135deg, rgba(51, 97, 120, 0.85) 0%, rgba(42, 79, 98, 0.75) 40%, rgba(0, 0, 0, 0.6) 100%),
                      url('img/students.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(51, 97, 120, 0.2);
    box-shadow: 0 14px 40px rgba(51, 97, 120, 0.14);
    margin: 0 0 3.25rem;
    position: relative;
    overflow: hidden;
}

.community-numbers h2 {
    color: #ffffff;
}

.community-numbers h2::after {
    background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.55) 100%);
}

.community-numbers .subtitle {
    color: rgba(255, 255, 255, 0.92);
    opacity: 1;
}

.community-numbers-full {
    width: 100%;
}

.community-numbers::after {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

.community-numbers > * {
    position: relative;
    z-index: 1;
}

.stats-layout {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 3fr;
    gap: 1.2rem;
    align-items: stretch;
}

.stats-total-column,
.stats-programs-column {
    display: flex;
    flex-direction: column;
}

.stats-programs-column {
    gap: 1.1rem;
}

.stats-total-column .stats-row-total,
.stats-total-column .stat-card-featured {
    height: 100%;
}

.stats-row {
    display: grid;
    gap: 1.1rem;
}

.stats-row-total {
    grid-template-columns: 1fr;
}

.stats-row-bachelor {
    grid-template-columns: repeat(5, 1fr);
}

.stats-row-graduate {
    grid-template-columns: repeat(4, 1fr);
}

.stat-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(242, 248, 251, 0.88) 100%);
    padding: 2rem 1.25rem;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(26, 58, 84, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.42);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.stat-card-featured {
    padding: 3.1rem 2.25rem;
    background: #eef6fa;
    border: 1px solid rgba(255, 255, 255, 0.64);
    box-shadow: 0 18px 36px rgba(26, 58, 84, 0.28);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.stat-card-featured .stat-number {
    font-size: clamp(3rem, 4vw, 3.9rem);
    margin-bottom: 0.7rem;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #336178 0%, #ae485e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card-featured .stat-label {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.9;
    color: #336178;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #336178 0%, #ae485e 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 34px rgba(24, 54, 78, 0.3);
}

.stat-number {
    font-size: clamp(2rem, 2.4vw, 2.85rem);
    font-weight: 800;
    background: linear-gradient(135deg, #336178 0%, #ae485e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.45rem;
    line-height: 1.05;
}

.stat-label {
    font-size: 0.95rem;
    color: #336178;
    opacity: 0.88;
    letter-spacing: 0.01em;
    font-weight: 600;
}

/* Questions and answers (accordion) */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-category-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-category {
    background: linear-gradient(135deg, #ffffff 0%, rgba(51, 97, 120, 0.03) 100%);
    border: 1px solid rgba(51, 97, 120, 0.12);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(51, 97, 120, 0.08);
    transition: all 0.3s ease;
}

.faq-category:hover {
    box-shadow: 0 4px 15px rgba(51, 97, 120, 0.15);
    border-color: rgba(174, 72, 94, 0.28);
}

.faq-category-question {
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #336178;
    background: linear-gradient(135deg, rgba(51, 97, 120, 0.06) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.faq-category-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
    padding: 0 1rem;
}

.faq-category.active .faq-category-answer {
    max-height: 2400px;
    padding: 1rem;
}

.faq-category.active .faq-category-question .faq-icon {
    transform: rotate(180deg);
}

.faq-list-category {
    gap: 0.75rem;
}

.faq-item {
    background: linear-gradient(135deg, #ffffff 0%, rgba(51, 97, 120, 0.03) 100%);
    border: 1px solid rgba(51, 97, 120, 0.12);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(51, 97, 120, 0.08);
    cursor: pointer;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(51, 97, 120, 0.15);
    transform: translateX(5px);
    border-color: rgba(174, 72, 94, 0.3);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(51, 97, 120, 0.05) 0%, rgba(255, 255, 255, 0.9) 100%);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, rgba(51, 97, 120, 0.08) 0%, rgba(255, 255, 255, 1) 100%);
}

.faq-question:hover {
    background: rgba(51, 97, 120, 0.05);
}

.faq-icon {
    color: #ae485e;
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s;
    color: #336178;
    opacity: 0.9;
    line-height: 1.6;
}
.faq-answer p {
    margin-bottom: 0.6rem;
    text-align: justify;
    text-wrap: pretty;
}
.faq-answer p:last-of-type {
    margin-bottom: 0;
}
.faq-answer ul {
    margin: 0.5rem 0 0.75rem 1.25rem;
    padding: 0;
}
.faq-answer li {
    margin-bottom: 0.35rem;
}
.faq-answer a {
    color: #ae485e;
    text-decoration: underline;
}
.faq-answer a:hover {
    color: #8d3a4b;
}

.faq-item.active .faq-answer {
    padding: 1.2rem;
    max-height: 600px;
}

/* Home page: "How can you join us?" FAQ section */
.join-us-section .join-subtitle {
    margin-bottom: 0.85rem;
}

.join-us-section .program-faq-ai-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin: 0 0 1.2rem;
    padding: 0.95rem 1.05rem;
    border-radius: 10px;
    border: 1px solid rgba(51, 97, 120, 0.18);
    border-top: 4px solid #ae485e;
    background: #ffffff;
    color: #336178;
    font-size: 0.93rem;
    line-height: 1.55;
    box-shadow: 0 2px 14px rgba(51, 97, 120, 0.07);
}

.join-us-section .program-faq-ai-hint span {
    flex: 1;
    min-width: 0;
    text-align: justify;
    text-wrap: pretty;
}

.join-us-section .program-faq-ai-hint i {
    color: #ae485e;
    font-size: 1.2rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.join-us-section .program-faq-ai-hint strong {
    color: #336178;
    font-weight: 700;
}

.join-pathways-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.join-pathway-card {
    background:
        radial-gradient(circle at 100% 0%, rgba(174, 72, 94, 0.12), transparent 52%),
        linear-gradient(140deg, #ffffff 0%, rgba(51, 97, 120, 0.04) 100%);
    border: 1px solid rgba(51, 97, 120, 0.14);
    border-radius: 16px;
    padding: 1.1rem;
    box-shadow: 0 6px 20px rgba(29, 54, 73, 0.11);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.join-pathway-card:hover {
    transform: translateY(-4px);
    border-color: rgba(174, 72, 94, 0.4);
    box-shadow: 0 16px 28px rgba(29, 54, 73, 0.15);
}

.join-pathway-head {
    margin-bottom: 0.7rem;
}

.join-pathway-head h3 {
    margin: 0.55rem 0 0;
    color: #23465b;
    line-height: 1.3;
    font-size: 1.03rem;
}

.join-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-button);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #336178 0%, #ae485e 100%);
}

.join-steps {
    margin: 0.2rem 0 0.95rem;
    padding: 0;
    list-style: none;
    counter-reset: join-step;
}

.join-steps li {
    position: relative;
    color: #2d5066;
    line-height: 1.5;
    font-size: 0.92rem;
    padding: 0 0 0.72rem 2.05rem;
    counter-increment: join-step;
}

.join-steps li::before {
    content: counter(join-step);
    position: absolute;
    left: 0;
    top: -0.02rem;
    width: 1.38rem;
    height: 1.38rem;
    border-radius: 50%;
    background: rgba(51, 97, 120, 0.1);
    color: #23465b;
    font-size: 0.74rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.join-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 0.66rem;
    top: 1.43rem;
    width: 1px;
    height: calc(100% - 0.5rem);
    background: linear-gradient(to bottom, rgba(51, 97, 120, 0.35), rgba(51, 97, 120, 0));
}

.join-card-actions {
    margin-top: auto;
}

.join-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.58rem 0.85rem;
    border-radius: var(--radius-button);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #336178 0%, #ae485e 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.join-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(51, 97, 120, 0.28);
    opacity: 0.95;
}

@media (max-width: 1080px) {
    .join-pathways-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .join-pathways-grid {
        grid-template-columns: 1fr;
    }
}

.phd-faq-section {
    margin-top: 1.3rem;
}

.phd-faq-title {
    margin: 0 0 0.75rem;
    color: #336178;
    font-size: 1.18rem;
}

.phd-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.phd-faq-item {
    background: #ffffff;
    border: 1px solid rgba(51, 97, 120, 0.2);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.phd-faq-item:hover {
    border-color: rgba(174, 72, 94, 0.45);
    box-shadow: 0 4px 10px rgba(51, 97, 120, 0.1);
}

.phd-faq-question {
    width: 100%;
    border: 0;
    background: #ffffff;
    color: #336178;
    padding: 0.95rem 1.05rem;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
}

.phd-faq-question:hover {
    background: #ffffff;
}

.phd-faq-icon {
    color: #ae485e;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
}

.phd-faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.05rem;
    color: #336178;
    line-height: 1.6;
    transition: max-height 0.28s ease, padding 0.22s ease;
}

.phd-faq-answer p {
    margin: 0;
    text-align: justify;
    text-wrap: pretty;
}

.phd-faq-item.active .phd-faq-answer {
    max-height: 420px;
    padding: 0 1.05rem 1rem;
}

/* Home page: internship / job short list */
.internships-section {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 1.75rem 1.5rem 1.5rem;
    margin-bottom: 3rem;
    background-image:
        linear-gradient(135deg, rgba(51, 97, 120, 0.9) 0%, rgba(42, 79, 98, 0.78) 45%, rgba(20, 40, 52, 0.85) 100%),
        url('img/career.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(16, 36, 48, 0.18);
}

.internships-section h2 {
    color: #ffffff;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
    margin-bottom: 1.1rem;
    position: relative;
    z-index: 1;
}

.internships-section .link-view-all {
    color: #ffffff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.internships-section .link-view-all:hover {
    color: #f5d0d8;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .internships-section {
        padding: 1.35rem 1.1rem 1.15rem;
    }
}

.internship-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.internship-item {
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    border-left: 4px solid #ae485e;
    box-shadow: 0 2px 8px rgba(51, 97, 120, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.internship-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(51, 97, 120, 0.15);
    background: #ffffff;
}

.internship-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #336178;
}

.internship-company {
    font-size: 0.9rem;
    color: #336178;
    opacity: 0.8;
}

.link-view-all {
    color: #ae485e;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.link-view-all:hover {
    color: #8d3a4b;
    text-decoration: underline;
    transform: translateX(5px);
}

/* Student clubs: one club per row on small layouts */
.clubs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.club-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: linear-gradient(135deg, #ffffff 0%, rgba(51, 97, 120, 0.03) 100%);
    border: 1px solid rgba(51, 97, 120, 0.12);
    border-radius: 16px;
    padding: 1.35rem 1.75rem;
    text-align: left;
    box-shadow: 0 4px 15px rgba(51, 97, 120, 0.1);
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.club-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(51, 97, 120, 0.2);
    border-color: rgba(174, 72, 94, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, rgba(51, 97, 120, 0.06) 100%);
}

.club-card-row {
    display: grid;
    /* Fixed logo | flexible title/description | fixed-width contact — divider aligns on all cards */
    grid-template-columns: 100px minmax(0, 1fr) minmax(13rem, 15rem);
    gap: 1.5rem;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.club-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.club-logo {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    margin: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(51, 97, 120, 0.12);
    box-shadow: 0 8px 20px rgba(33, 63, 78, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.club-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    display: block;
}

.club-card-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.club-card h3 {
    font-size: 1.2rem;
    margin: 0;
    color: #336178;
    line-height: 1.3;
}

.club-org {
    font-size: 0.85rem;
    color: #336178;
    opacity: 0.85;
    margin: 0;
    font-style: italic;
    line-height: 1.45;
}

.club-card p {
    font-size: 0.9rem;
    color: #336178;
    opacity: 0.8;
    line-height: 1.6;
}

.club-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.65rem;
    padding-left: 1.25rem;
    border-left: 1px solid rgba(51, 97, 120, 0.12);
    min-width: 0;
}

.club-detail-line {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.35rem 0.65rem;
    align-items: baseline;
    justify-items: end;
    font-size: 0.88rem;
    line-height: 1.45;
    text-align: right;
}

.club-detail-label {
    font-weight: 600;
    color: #336178;
    opacity: 0.9;
}

.club-detail-value {
    color: #2a4d5e;
    word-break: break-word;
}

a.club-detail-link {
    color: #ae485e;
    font-weight: 600;
    text-decoration: none;
}

a.club-detail-link:hover {
    text-decoration: underline;
    color: #8d3a4b;
}

@media (max-width: 768px) {
    .club-card-row {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 1rem;
    }

    .club-details {
        grid-column: 1 / -1;
        padding-left: 0;
        padding-top: 1rem;
        margin-top: 0.25rem;
        border-left: none;
        border-top: 1px solid rgba(51, 97, 120, 0.12);
    }

    .club-detail-line {
        grid-template-columns: 5.5rem minmax(0, 1fr);
        justify-items: start;
        text-align: left;
    }

    .club-detail-label {
        font-size: 0.8rem;
    }
}

/* Home page right column: News and Events tabs */
.news-events-section {
    background: linear-gradient(135deg, rgba(51, 97, 120, 0.05) 0%, rgba(255, 255, 255, 0.9) 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(51, 97, 120, 0.15);
    box-shadow: 0 4px 15px rgba(51, 97, 120, 0.1);
}

.news-events-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.1rem;
    padding: 0.4rem;
    border-radius: var(--radius-button);
    background: rgba(51, 97, 120, 0.07);
    border: 1px solid rgba(51, 97, 120, 0.1);
}

.news-events-tab {
    flex: 1 1 auto;
    min-width: 8rem;
    padding: 0.65rem 0.95rem;
    border-radius: var(--radius-button);
    border: 1px solid transparent;
    background: #ffffff;
    color: #336178;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.news-events-tab:hover {
    border-color: rgba(174, 72, 94, 0.35);
    box-shadow: 0 2px 10px rgba(51, 97, 120, 0.08);
}

.news-events-tab[aria-selected="true"] {
    background: #336178;
    border-color: #336178;
    color: #ffffff;
    box-shadow: 0 3px 12px rgba(51, 97, 120, 0.18);
}

.news-events-tab:focus-visible {
    outline: 2px solid #ae485e;
    outline-offset: 2px;
}

.news-events-panels {
    position: relative;
}

.news-events-section > .link-view-all {
    margin-top: 1rem;
}

.news-events-panel {
    display: none;
}

.news-events-panel.is-active {
    display: block;
    animation: news-events-panel-in 0.3s ease;
}

@keyframes news-events-panel-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.event-item:hover {
    background: rgba(51, 97, 120, 0.05);
    transform: translateX(5px);
}

.event-date {
    background: linear-gradient(135deg, #ae485e 0%, #8d3a4b 100%);
    color: white;
    width: 70px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(174, 72, 94, 0.3);
    transition: all 0.3s ease;
}

.event-item:hover .event-date {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(174, 72, 94, 0.4);
}

.event-month {
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1;
    opacity: 0.85;
    white-space: nowrap;
    letter-spacing: 0.04em;
}

.event-day {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
    margin-top: 0.35rem;
}

.event-details {
    flex: 1;
}

.event-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #336178;
}

.event-time {
    font-size: 0.85rem;
    color: #336178;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.event-link {
    color: #ae485e;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.event-link:hover {
    color: #8d3a4b;
    text-decoration: underline;
    transform: translateX(3px);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item {
    position: relative;
    padding: 1rem 1.25rem 1rem 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(51, 97, 120, 0.08);
    box-shadow: 0 2px 10px rgba(51, 97, 120, 0.08);
    transition: all 0.25s ease;
    cursor: pointer;
}

.news-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #336178, #ae485e);
}

.news-item:hover {
    background: rgba(51, 97, 120, 0.04);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(51, 97, 120, 0.16);
}

.news-content h3 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: #336178;
    line-height: 1.4;
}

.news-date {
    font-size: 0.85rem;
    color: #336178;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.news-link {
    color: #ae485e;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.news-link:hover {
    color: #8d3a4b;
    text-decoration: underline;
    transform: translateX(3px);
}

/* GPA calculator widget */
.gpa-section {
    background: linear-gradient(135deg, rgba(51, 97, 120, 0.05) 0%, rgba(255, 255, 255, 0.9) 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(51, 97, 120, 0.15);
    box-shadow: 0 4px 15px rgba(51, 97, 120, 0.1);
}

.gpa-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.gpa-tab {
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(51, 97, 120, 0.15);
    background: #ffffff;
    border-radius: var(--radius-button) var(--radius-button) 0 0;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.gpa-tab.active {
    background: linear-gradient(135deg, #ae485e 0%, rgba(174, 72, 94, 0.9) 100%);
    color: #ffffff;
    border-color: #ae485e;
    box-shadow: 0 2px 8px rgba(174, 72, 94, 0.3);
}

.gpa-calculator {
    background: transparent;
    padding: 0;
    border-radius: 12px;
    border: none;
}

.gpa-table {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-bottom: 0;
    width: 100%;
    min-width: 0;
}

/*
 * Same grid for header and every row: course | grade | credits | remove.
 * Fixed widths for grade/credits so the header lines up with the inputs.
 */
.gpa-header,
.gpa-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 5.75rem 5.5rem 2.75rem;
    gap: 0.75rem;
}

.gpa-row {
    align-items: center;
}

/* One title row: same grid as .gpa-row; no side padding; labels align with inputs below. */
.gpa-header {
    align-items: end;
    padding: 0.5rem 0 0.4rem 0;
    background: rgba(51, 97, 120, 0.03);
    border-radius: var(--radius-control);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.gpa-header .gpa-col {
    min-width: 0;
}

/* Line up with inputs: course left, grade/credits centered in their tracks, remove column. */
.gpa-header .gpa-col:nth-child(1) {
    text-align: left;
    padding-left: 0;
}

.gpa-header .gpa-col:nth-child(2) {
    display: flex;
    justify-content: center;
    text-align: center;
}

.gpa-header .gpa-col:nth-child(3) {
    text-align: center;
}

.gpa-header .gpa-col:nth-child(4) {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.gpa-col-remove {
    width: 100%;
    min-width: 0;
}

.gpa-rows {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Per-row labels hidden: titles appear only in .gpa-header */
.gpa-field {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.gpa-field-label {
    display: none;
}

.gpa-field .course-input {
    width: 100%;
    box-sizing: border-box;
}

.gpa-field:nth-child(2) {
    justify-self: center;
    width: max-content;
    max-width: 100%;
}

.gpa-field:nth-child(2) .grade-select,
.gpa-field:nth-child(3) .credits-input {
    box-sizing: border-box;
}

.gpa-field:nth-child(3) .credits-input {
    width: 100%;
    text-align: center;
}

.course-input {
    padding: 0.6rem;
    border: 1px solid rgba(51, 97, 120, 0.15);
    border-radius: var(--radius-control);
    font-size: 0.9rem;
}

/* Grade + arrow: extra horizontal padding so the control feels wider. */
.gpa-table .grade-select {
    width: auto;
    min-width: 0;
    max-width: 100%;
    height: 2.25rem;
    padding: 0.25rem 1rem 0.25rem 0.8rem;
    border: 1px solid rgba(51, 97, 120, 0.2);
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    color: #2a4d5e;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 10 10'%3E%3Cpath fill='%23336178' d='M2 3.5L5 7l3-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 0.45rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    text-align: left;
    text-align-last: left;
}

.gpa-table .grade-select:hover {
    border-color: rgba(51, 97, 120, 0.35);
    background-color: #fafcfd;
}

.gpa-table .grade-select:focus {
    outline: none;
    border-color: #336178;
    box-shadow: 0 0 0 2px rgba(51, 97, 120, 0.15);
}

.credits-input {
    padding: 0.6rem 0.5rem;
    border: 1px solid rgba(51, 97, 120, 0.15);
    border-radius: var(--radius-control);
    font-size: 0.95rem;
    background: #ffffff;
    min-width: 0;
    box-sizing: border-box;
    -moz-appearance: textfield;
}

.credits-input::-webkit-outer-spin-button,
.credits-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.gpa-row > .gpa-remove-btn {
    justify-self: center;
    align-self: center;
}

.gpa-remove-btn {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid rgba(51, 97, 120, 0.2);
    border-radius: var(--radius-control);
    background: rgba(51, 97, 120, 0.06);
    color: #336178;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.gpa-remove-btn:hover {
    background: rgba(174, 72, 94, 0.15);
    color: #ae485e;
}

.gpa-cumulative-panel {
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.65rem;
    background: rgba(51, 97, 120, 0.05);
    border-radius: var(--radius-control);
    border: 1px solid rgba(51, 97, 120, 0.12);
}

.gpa-cumulative-hint {
    font-size: 0.82rem;
    color: #336178;
    opacity: 0.92;
    margin: 0 0 0.45rem 0;
    line-height: 1.35;
}

.gpa-cumulative-panel.hidden {
    display: none;
}

.gpa-cumulative-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem 0.75rem;
    align-items: end;
}

.gpa-cumulative-fields label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.82rem;
    color: #336178;
    font-weight: 500;
    min-width: 0;
}

.gpa-cumulative-label-line {
    line-height: 1.25;
}

.gpa-field-hint {
    font-size: 0.72rem;
    font-weight: 400;
    color: #5a7a8a;
    opacity: 0.9;
}

.gpa-input-error {
    font-size: 0.75rem;
    color: #ae485e;
    min-height: 0;
    line-height: 1.2;
    display: block;
}

.gpa-cumulative-fields input {
    padding: 0.45rem 0.55rem;
    border: 1px solid rgba(51, 97, 120, 0.25);
    border-radius: var(--radius-control);
    font-size: 0.95rem;
    width: 100%;
    max-width: 100%;
    min-height: 2.25rem;
    box-sizing: border-box;
    -moz-appearance: textfield;
}

.gpa-cumulative-fields input::-webkit-outer-spin-button,
.gpa-cumulative-fields input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.gpa-cumulative-fields input:focus {
    outline: none;
    border-color: #336178;
    box-shadow: 0 0 0 2px rgba(51, 97, 120, 0.2);
}

.course-input:focus,
.credits-input:focus {
    outline: none;
    border-color: #336178;
    box-shadow: 0 0 0 2px rgba(51, 97, 120, 0.15);
}

.gpa-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.35rem 0;
}

.gpa-result-row .gpa-value-sm {
    font-size: 1.25rem;
    background: linear-gradient(135deg, #336178 0%, #ae485e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gpa-cumulative-result.hidden {
    display: none;
}

.btn-add-course {
    margin-top: 0.75rem;
    align-self: flex-start;
    padding: 0.6rem 1.5rem;
    background: rgba(51, 97, 120, 0.03);
    border: 1px solid rgba(51, 97, 120, 0.15);
    border-radius: var(--radius-button);
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.btn-add-course:hover {
    background: rgba(51, 97, 120, 0.05);
}

.gpa-result {
    width: 100%;
    max-width: 100%;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    box-sizing: border-box;
}

.gpa-result-row:first-child {
    margin-bottom: 0.25rem;
}

.gpa-label {
    font-size: 0.9rem;
    color: #336178;
    opacity: 0.9;
}

.gpa-value {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #336178 0%, #ae485e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Graduate success stories */
.success-stories {
    background-image: linear-gradient(135deg, rgba(51, 97, 120, 0.85) 0%, rgba(42, 79, 98, 0.75) 40%, rgba(0, 0, 0, 0.6) 100%),
                      url('img/campus.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 2.6rem 1.75rem 2.25rem;
    border-radius: 24px;
    text-align: center;
    color: var(--brand-blue);
    box-shadow: 0 14px 34px rgba(16, 36, 48, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-soft);
}

.success-stories::before {
    content: none;
}

.success-stories h2,
.success-stories .subtitle {
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.success-stories h2 {
    font-size: clamp(2rem, 3.1vw, 2.7rem);
    letter-spacing: -0.02em;
    margin-bottom: 0.45rem;
}

.success-stories .subtitle {
    max-width: 760px;
    margin: 0 auto;
    font-size: clamp(1rem, 1.45vw, 1.14rem);
    opacity: 0.86;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.story-card {
    background: var(--brand-white);
    padding: 1.25rem 1.35rem;
    border-radius: 20px;
    box-shadow: 0 10px 26px rgba(16, 34, 46, 0.12);
    border: 1px solid var(--border-soft);
    backdrop-filter: blur(12px);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    z-index: 1;
}

/* Success story card: top part with photo and short text, then more text below */
.success-stories .story-card {
    display: flex;
    flex-direction: column;
}

.story-top {
    display: grid;
    grid-template-columns: 118px 1fr;
    column-gap: 0.95rem;
    align-items: start;
}

.story-top-content {
    min-width: 0;
}

.story-header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.35rem;
}

.story-card:hover {
    transform: none;
    box-shadow: 0 14px 30px rgba(16, 34, 46, 0.16);
    border-color: rgba(51, 97, 120, 0.35);
}

.story-image {
    width: 118px;
    height: 118px;
    margin: 0;
    background: rgba(51, 97, 120, 0.06);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(51, 97, 120, 0.22);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
    object-position: 50% 40%;
}

.story-image-placeholder {
    font-size: 2.25rem;
}

.story-quote {
    font-style: normal;
    color: var(--brand-blue);
    opacity: 0.92;
    margin: 0.15rem 0 0.45rem 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.story-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--brand-blue);
    margin: 0;
}

.story-linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-button);
    background: var(--brand-white);
    border: 1px solid rgba(51, 97, 120, 0.24);
    color: var(--brand-blue);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    margin: 0;
}

.story-linkedin i {
    font-size: 16px;
    line-height: 1;
}

.story-linkedin:hover {
    transform: translateY(-2px);
    background: var(--brand-accent);
    color: var(--brand-white);
    box-shadow: 0 10px 22px rgba(44, 15, 24, 0.26);
}

.story-details {
    font-size: 0.85rem;
    color: var(--brand-blue);
    opacity: 0.9;
    text-align: left;
    margin-top: 0.45rem;
    padding-top: 0.55rem;
    border-top: none;
    width: 100%;
    position: relative;
}

.story-details::before {
    content: none;
}

.story-meta-row {
    display: flex;
    gap: 0.65rem;
    align-items: baseline;
    margin: 0.2rem 0;
    flex-wrap: wrap;
}

.story-meta-label {
    font-weight: 700;
    color: var(--brand-blue);
    opacity: 1;
    min-width: 6.25rem;
}

.story-meta-value {
    color: var(--brand-blue);
    opacity: 0.85;
    flex: 1;
    line-height: 1.55;
}

/* Success stories: sliding carousel */
.stories-carousel {
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.stories-carousel-viewport {
    overflow: hidden;
    background: transparent;
}

.stories-carousel-track {
    display: flex;
    transition: transform 1100ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.stories-carousel-track .story-card {
    flex: 0 0 auto;
    width: calc((100% - 24px) / 2);
    max-width: none;
}

.stories-carousel-arrows {
    position: static;
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
    transform: none;
    margin-top: 1rem;
    padding: 0;
    pointer-events: auto;
    z-index: 4;
}

.stories-carousel-prev,
.stories-carousel-next {
    pointer-events: auto;
    z-index: 3;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-button);
    border: 1px solid rgba(51, 97, 120, 0.22);
    background: var(--brand-white);
    box-shadow: 0 6px 16px rgba(16, 34, 46, 0.12);
    color: var(--brand-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, opacity 0.15s ease;
    backdrop-filter: none;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
    text-shadow: none;
}

.stories-carousel-prev:hover,
.stories-carousel-next:hover {
    transform: none;
    background: var(--brand-blue);
    color: var(--brand-white);
    border-color: var(--brand-blue);
}

.stories-carousel-prev:focus-visible,
.stories-carousel-next:focus-visible {
    outline: 3px solid rgba(51, 97, 120, 0.35);
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .success-stories {
        padding: 2.2rem 1.25rem 1.85rem;
    }

    .story-image {
        width: 108px;
        height: 108px;
        margin: 0.15rem auto 0.5rem auto;
    }

    .story-quote {
        text-align: center;
        margin: 0 0 0.85rem 0;
    }

    .story-top {
        grid-template-columns: 1fr;
    }

    .story-header {
        justify-content: center;
    }

    .story-name {
        text-align: center;
    }

    .story-linkedin {
        margin-left: 0.1rem;
    }

    .stories-carousel-track .story-card {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
    }

    .stories-carousel-prev,
    .stories-carousel-next {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
}

/* Smaller screens: adjust layout */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .left-column,
    .right-column {
        padding: 1.5rem 1.25rem;
    }
    
    .stats-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stats-row-bachelor {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .logo {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .logo-image {
        height: 48px;
    }

    .logo-platform {
        font-size: 0.85rem;
    }

    .logo-school {
        font-size: 0.7rem;
    }
    
    .nav {
        flex-wrap: wrap;
        gap: 0.5rem 0.75rem;
        justify-content: center;
    }

    .nav a {
        font-size: 0.88rem;
        padding: 0.45rem 0.65rem;
    }

    .btn-myada {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        border-radius: var(--radius-button);
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .community-numbers {
        padding: 1.75rem 1.15rem;
        margin-bottom: 2.4rem;
        border-radius: 16px;
    }

    .stats-layout {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .stats-row-bachelor,
    .stats-row-graduate {
        grid-template-columns: 1fr;
    }

    .stat-card-featured {
        padding: 2rem 1.25rem;
    }

    .stat-card-featured .stat-number {
        font-size: 2.75rem;
    }
    
    .gpa-section {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }
    
    .gpa-calculator {
        padding: 0;
    }
    
    .gpa-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .gpa-tab {
        flex: 1;
        min-width: 8rem;
        text-align: center;
    }

    /* Same column template as desktop; no horizontal padding so columns match rows. */
    .gpa-header {
        grid-template-columns: minmax(0, 1fr) 5.75rem 5.5rem 2.75rem;
        gap: 0.5rem;
        padding: 0.45rem 0;
        font-size: 0.68rem;
        line-height: 1.25;
    }

    .gpa-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* One course per card; column titles only in .gpa-header */
    .gpa-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        align-items: stretch;
        padding: 1rem;
        background: rgba(51, 97, 120, 0.02);
        border-radius: 10px;
        border: 1px solid rgba(51, 97, 120, 0.08);
    }

    .gpa-row .course-input,
    .gpa-row .credits-input {
        min-height: 2.75rem;
        font-size: 1rem;
        width: 100%;
        max-width: none;
    }

    .gpa-row .gpa-field:nth-child(2) {
        justify-self: stretch;
        width: 100%;
    }

    .gpa-row .grade-select {
        height: auto;
        min-height: 2.4rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: none;
        text-align: center;
        text-align-last: center;
    }

    .gpa-row .gpa-remove-btn {
        align-self: start;
        justify-self: start;
    }
    
    .gpa-cumulative-panel {
        padding: 0.55rem 0.6rem;
    }

    .gpa-cumulative-fields {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }
    
    .gpa-remove-btn {
        width: auto;
        height: auto;
        padding: 0.5rem 1rem;
        justify-self: start;
    }
    
    .gpa-result {
        max-width: 100%;
        margin-top: 0.75rem;
        padding: 0.75rem 0 0;
    }
    
    .btn-add-course {
        width: 100%;
    }
}

/* Study programs listing page */
body.page-programs {
    background-color: #dfe6ea;
    background-image:
        linear-gradient(180deg, rgba(247, 250, 252, 0.72) 0%, rgba(255, 255, 255, 0.5) 45%, rgba(252, 246, 248, 0.68) 100%),
        url('img/programs.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Keep the photo + overlay fixed while the page scrolls */
    background-attachment: fixed;
}

.programs-main {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #f6f8fa 0%, #ffffff 55%, #fff7f9 100%);
    box-shadow: 0 10px 24px rgba(51, 97, 120, 0.08);
}

/* Programs page: photos in the margins; text on white cards */
body.page-programs .programs-main {
    background: transparent;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.page-programs .programs-hero {
    background: linear-gradient(135deg, #ffffff 0%, #e5edf2 55%, #fff4f7 100%);
}

body.page-programs .section {
    background: #ffffff;
}

body.page-programs .comparison-section {
    background: #ffffff;
    background-image: none;
}

body.page-programs .program-card {
    background: #ffffff;
}

body.page-programs .exchange-card {
    background: rgba(255, 255, 255, 0.92);
}

body.page-programs .ai-helper-note {
    background: #fff8f9;
    border: 1px solid rgba(174, 72, 94, 0.18);
}

.page-title-section {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #336178;
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #336178;
    opacity: 0.8;
}

.programs-hero {
    background: linear-gradient(135deg, #ffffff 0%, #e5edf2 55%, #fff4f7 100%);
    border-radius: 16px;
    padding: 2.2rem 2.4rem 2.6rem;
    margin-bottom: 2.4rem;
    color: #336178;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(51, 97, 120, 0.16);
}

.programs-hero::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(174, 72, 94, 0.4), transparent 70%);
    top: -70px;
    right: -20px;
    opacity: 0.7;
    pointer-events: none;
}

.programs-hero .page-title {
    color: #336178;
    margin-bottom: 0.75rem;
}

.programs-hero .page-subtitle {
    color: rgba(51, 97, 120, 0.9);
    max-width: 640px;
}

.programs-hero-columns {
    display: flex;
    align-items: stretch;
    gap: 1.6rem;
}

.programs-hero-left {
    flex: 1;
    min-width: 0;
}

.programs-hero-right {
    flex: 0 0 420px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.comparison-section {
    background: linear-gradient(135deg,
        rgba(51, 97, 120, 0.06) 0%,
        #ffffff 45%,
        rgba(174, 72, 94, 0.06) 100%);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    border: 1px solid rgba(51, 97, 120, 0.12);
    box-shadow: 0 8px 18px rgba(51, 97, 120, 0.09);
}

/* Programs page: call-to-action for exchange */
.exchange-promo-section {
    margin-bottom: 3rem;
}

/* Programs page: exchange CTA (opens modal) */
.programs-hero-right button.exchange-card {
    font: inherit;
    text-align: left;
    background: rgba(255, 255, 255, 0.92);
}

.programs-hero-right .exchange-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: 28rem;
    margin-inline: auto;
    padding: 1.35rem 1.4rem;
    min-height: 0;
    border-radius: 20px;
    border: 2px solid rgba(51, 97, 120, 0.35);
    box-shadow: 0 10px 28px rgba(51, 97, 120, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.programs-hero-right .exchange-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(51, 97, 120, 0.14);
    border-color: rgba(174, 72, 94, 0.55);
}

.programs-hero-right .exchange-card:focus-visible {
    outline: 3px solid rgba(51, 97, 120, 0.45);
    outline-offset: 3px;
}

.programs-hero-right .exchange-card-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    text-align: left;
}

.programs-hero-right .exchange-card-title {
    display: block;
    margin: 0;
    font-size: clamp(1.2rem, 2.2vw, 1.45rem);
    line-height: 1.28;
    font-weight: 700;
    color: #336178;
    letter-spacing: 0.01em;
}

.programs-hero-right .exchange-card-desc {
    display: block;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #336178;
    opacity: 0.9;
}

.programs-hero-right .exchange-card .exchange-card-cta {
    margin-top: 0.35rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.92rem;
    pointer-events: none;
}

.exchange-promo-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #336178;
    margin-bottom: 0.35rem;
    letter-spacing: 0.01em;
}

.exchange-promo-description {
    color: #336178;
    opacity: 0.85;
    line-height: 1.6;
    margin: 0;
    font-size: 0.96rem;
}

.btn-exchange-promo {
    background: linear-gradient(135deg, #ae485e 0%, rgba(174, 72, 94, 0.9) 100%);
    color: white;
    text-decoration: none;
    border: none;
    padding: 0.9rem 1.6rem;
    border-radius: var(--radius-button);
    font-size: 0.96rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 6px 18px rgba(174, 72, 94, 0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-exchange-promo:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow: 0 10px 26px rgba(174, 72, 94, 0.36);
}

@media (max-width: 768px) {
    .programs-hero-right .exchange-card {
        max-width: none;
        margin-inline: 0;
        padding: 1.35rem 1.25rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .programs-hero-right .exchange-card-copy {
        align-items: center;
        text-align: center;
    }

    .programs-hero-right .exchange-card .exchange-card-cta {
        width: 100%;
        max-width: 18rem;
        justify-content: center;
    }

    .btn-exchange-promo {
        width: 100%;
        text-align: center;
    }
}

/* Programs page: exchange modal popup */
body.exchange-modal-open {
    overflow: hidden;
}

.exchange-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    box-sizing: border-box;
}

.exchange-modal[hidden] {
    display: none !important;
}

.exchange-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 48, 58, 0.55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.exchange-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 26rem;
    padding: 2rem 1.75rem 1.75rem;
    border-radius: 20px;
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(51, 97, 120, 0.14);
    box-shadow:
        0 24px 60px rgba(15, 35, 45, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    animation: exchangeModalPop 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes exchangeModalPop {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .exchange-modal-dialog {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.exchange-modal-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    background: rgba(51, 97, 120, 0.08);
    color: #336178;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.exchange-modal-close:hover {
    background: rgba(174, 72, 94, 0.12);
    color: #ae485e;
}

.exchange-modal-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.35rem;
    color: #336178;
    background: linear-gradient(145deg, rgba(51, 97, 120, 0.12), rgba(51, 97, 120, 0.04));
    border: 1px solid rgba(51, 97, 120, 0.1);
}

.exchange-modal-title {
    margin: 0 0 0.75rem;
    font-size: 1.45rem;
    font-weight: 700;
    color: #336178;
    text-align: center;
    line-height: 1.25;
}

.exchange-modal-text {
    margin: 0 0 1.5rem;
    font-size: 0.98rem;
    line-height: 1.65;
    color: #336178;
    opacity: 0.92;
    text-align: center;
}

.exchange-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    align-items: stretch;
}

.exchange-modal .exchange-modal-primary {
    text-align: center;
    justify-content: center;
}

.exchange-modal-secondary {
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: #336178;
    background: transparent;
    border: 1px solid rgba(51, 97, 120, 0.22);
    border-radius: var(--radius-button);
    padding: 0.65rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.exchange-modal-secondary:hover {
    background: rgba(51, 97, 120, 0.06);
    border-color: rgba(51, 97, 120, 0.35);
}

.ai-helper-note {
    margin-top: 1.25rem;
    margin-bottom: 1.35rem;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    color: #336178;
    background: rgba(174, 72, 94, 0.04);
    border-left: 3px solid #ae485e;
    border-radius: 16px;
    line-height: 1.6;
}

.ai-helper-note strong {
    color: #ae485e;
    font-weight: 600;
}

.comparison-tool {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comparison-selects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.comparison-select-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comparison-select-group label {
    font-weight: 600;
    color: #336178;
    font-size: 0.95rem;
}

.program-select {
    padding: 0.8rem;
    border: 1px solid rgba(51, 97, 120, 0.15);
    border-radius: var(--radius-control);
    font-size: 1rem;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.3s;
}

.program-select:hover {
    border-color: #336178;
}

.program-select:focus {
    outline: none;
    border-color: #336178;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.btn-compare {
    background-color: #ae485e;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-button);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    align-self: flex-start;
}

.btn-compare:hover {
    background-color: #8d3a4b;
}

.programs-grid-section {
    margin-bottom: 3rem;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.program-card {
    background: rgba(51, 97, 120, 0.03);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(51, 97, 120, 0.12);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
}

.program-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(174, 72, 94, 0.14), transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Hover lift + accent only on devices with real hover (avoids “stuck” hover tint on touch) */
@media (hover: hover) {
    .program-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 30px rgba(51, 97, 120, 0.18);
        border-color: rgba(174, 72, 94, 0.45);
    }

    .program-card:hover::before {
        opacity: 1;
    }

    /* PhD listing: same calm white/teal card as neighbors (no burgundy border wash) */
    body.page-programs .phd-programs-section .program-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 22px rgba(51, 97, 120, 0.12);
        border-color: rgba(51, 97, 120, 0.22);
    }

    body.page-programs .phd-programs-section .program-card:hover::before {
        opacity: 0;
    }
}

/* Grows so “View Program” sits on the same baseline across cards in a row */
.program-card-spacer {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
}

.program-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #336178;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.program-description {
    color: #336178;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.96rem;
}

/* Program cards: enrolment line; flex keeps the button at the bottom */
.program-enrolment {
    color: #336178;
    opacity: 0.88;
    line-height: 1.55;
    font-size: 0.94rem;
    font-weight: 600;
    margin-top: -0.35rem;
    margin-bottom: 1.35rem;
    flex-shrink: 0;
}

.program-card .program-description + .program-enrolment {
    margin-top: -0.85rem;
}

/* PhD programs listing: three-column grid on wide viewports */
.phd-programs-section .programs-grid.phd-programs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .phd-programs-section .programs-grid.phd-programs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .phd-programs-section .programs-grid.phd-programs-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.btn-view-program {
    background: linear-gradient(135deg, #ae485e 0%, rgba(174, 72, 94, 0.9) 100%);
    color: white;
    border: none;
    padding: 0.85rem 1.7rem;
    border-radius: var(--radius-button);
    font-size: 0.96rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(174, 72, 94, 0.35);
    margin-top: 0;
    flex-shrink: 0;
    width: 100%;
    align-self: stretch;
    text-align: center;
}

.btn-view-program:hover {
    background: linear-gradient(135deg, #ae485e 0%, #ae485e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(174, 72, 94, 0.45);
}

/* Compare programs page */
.comparison-main {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #f6f8fa 0%, #ffffff 55%, #fff7f9 100%);
    box-shadow: 0 10px 24px rgba(51, 97, 120, 0.08);
}

.comparison-hero {
    background: linear-gradient(135deg, #ffffff 0%, #e5edf2 55%, #fff4f7 100%);
    border-radius: 20px;
    padding: 2.2rem 2.4rem 2.6rem;
    margin-bottom: 2.4rem;
    color: #336178;
    box-shadow: 0 10px 26px rgba(51, 97, 120, 0.16);
    position: relative;
    overflow: hidden;
}

.comparison-hero::before {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent 70%);
    top: -80px;
    right: -40px;
    opacity: 0.6;
}

.comparison-hero .page-title {
    color: #336178;
    margin-bottom: 0.75rem;
}

.comparison-hero .page-subtitle {
    color: rgba(51, 97, 120, 0.9);
    max-width: none;
    white-space: nowrap;
}

.comparison-table-section {
    margin-bottom: 3rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.comparison-table thead {
    background: rgba(51, 97, 120, 0.03);
}

.comparison-table th {
    padding: 1.2rem;
    text-align: left;
    font-weight: 600;
    color: #336178;
    border-bottom: 2px solid #e0e0e0;
    font-size: 1.1rem;
}

.comparison-table th.feature-col {
    width: 200px;
    background: rgba(51, 97, 120, 0.03);
}

.comparison-table td {
    padding: 1.5rem;
    vertical-align: top;
    border-bottom: 1px solid #e0e0e0;
    color: #336178;
    opacity: 0.8;
    line-height: 1.6;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background: rgba(51, 97, 120, 0.03);
}

.feature-label {
    font-weight: 600;
    color: #336178;
    background: rgba(51, 97, 120, 0.03);
    width: 200px;
}

.comparison-table ul {
    margin: 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.comparison-table li {
    margin-bottom: 0.5rem;
    color: #336178;
    opacity: 0.8;
}

.comparison-error {
    max-width: 720px;
    margin: 0 auto 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-control);
    background: #fff5f7;
    border: 1px solid rgba(174, 72, 94, 0.35);
    color: #336178;
    line-height: 1.55;
}

.comparison-error a {
    color: #ae485e;
    font-weight: 600;
}

.comparison-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-view-details {
    background-color: #ae485e;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-button);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    flex: 1;
    max-width: 300px;
}

.btn-view-details:hover {
    background-color: #8d3a4b;
}

.back-link-container {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.back-link {
    color: #336178;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: #2a4f62;
    text-decoration: underline;
}

/* One program: detail page */
.program-detail-main {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #f6f8fa 0%, #ffffff 55%, #fff7f9 100%);
    box-shadow: 0 10px 24px rgba(51, 97, 120, 0.08);
}

.program-detail-hero {
    background: linear-gradient(135deg, #ffffff 0%, #e5edf2 55%, #fff4f7 100%);
    border-radius: 20px;
    padding: 2.2rem 2.4rem 2.6rem;
    margin-bottom: 2.4rem;
    color: #336178;
    box-shadow: 0 10px 26px rgba(51, 97, 120, 0.16);
    position: relative;
    overflow: hidden;
}

.program-detail-hero::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(174, 72, 94, 0.4), transparent 70%);
    top: -70px;
    right: -20px;
    opacity: 0.7;
    pointer-events: none;
}

.program-detail-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.program-detail-card {
    background: linear-gradient(135deg,
        rgba(51, 97, 120, 0.04) 0%,
        #ffffff 45%,
        rgba(174, 72, 94, 0.04) 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(51, 97, 120, 0.12);
    box-shadow: 0 8px 18px rgba(51, 97, 120, 0.09);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(51, 97, 120, 0.12);
}

.detail-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #336178;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(174, 72, 94, 0.3);
}

.detail-content {
    color: #336178;
    opacity: 0.9;
    line-height: 1.8;
    font-size: 1rem;
}

/* Program detail: many lines in curriculum blocks */
.detail-content-stack p {
    margin: 0 0 1rem;
    color: #336178;
    opacity: 0.9;
    line-height: 1.8;
    font-size: 1rem;
}

.detail-content-stack p:last-child {
    margin-bottom: 0;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-list li {
    color: #336178;
    opacity: 0.9;
    line-height: 1.8;
    font-size: 1rem;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.detail-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #ae485e;
    font-weight: bold;
}

.program-detail-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.btn-back-programs {
    color: #336178;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.btn-back-programs:hover {
    color: #2a4f62;
    text-decoration: underline;
}

.btn-compare-this {
    background-color: #ae485e;
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-button);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-compare-this:hover {
    background-color: #8d3a4b;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .programs-main {
        padding-top: 1.5rem;
        padding-bottom: 2rem;
        border-radius: 12px;
    }

    .programs-hero {
        padding: 1.5rem 1.25rem 2rem;
    }

    .comparison-main,
    .program-detail-main {
        padding-top: 1.5rem;
        padding-bottom: 2rem;
        border-radius: 12px;
    }

    .comparison-hero,
    .program-detail-hero {
        padding: 1.5rem 1.25rem 2rem;
    }

    .page-title {
        font-size: 2rem;
    }
    
    .comparison-selects {
        grid-template-columns: 1fr;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        display: block;
        overflow-x: auto;
    }
    
    .comparison-table th,
    .comparison-table td {
        min-width: 200px;
    }
    
    .comparison-actions {
        flex-direction: column;
    }
    
    .btn-view-details {
        max-width: 100%;
    }
    
    .program-detail-hero {
        padding: 1.8rem 1.5rem 2rem;
    }
    
    .program-detail-card {
        padding: 1.5rem;
    }
    
    .detail-section-title {
        font-size: 1.3rem;
    }
    
    .program-detail-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-compare-this {
        width: 100%;
    }
}

/* Faculty list page */
.faculty-main {
    padding-top: 2rem;
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding: 2rem;
}

.faculty-layout-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 3vw, 2.75rem);
    align-items: stretch;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.faculty-sidebar {
    min-width: 0;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(51, 97, 120, 0.12);
    border-radius: 20px;
    box-shadow:
        0 4px 6px rgba(51, 97, 120, 0.06),
        0 12px 40px rgba(51, 97, 120, 0.12);
    position: sticky;
    top: 5.75rem;
}

.faculty-sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #ae485e 0%, #336178 100%);
    border-radius: 0 20px 20px 0;
    pointer-events: none;
    z-index: 1;
}

.faculty-sidebar .faculty-search-container {
    margin-bottom: 0;
    padding: 1.45rem 1.55rem 1.35rem;
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    background-color: #336178;
    background-image: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.faculty-sidebar .faculty-search-container::before {
    content: 'Discover';
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.35rem;
    order: 1;
}

.faculty-sidebar .faculty-search-container::after {
    content: 'Search by name, then refine with research area or member type.';
    display: block;
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 0.85rem;
    max-width: 28rem;
    order: 2;
}

.faculty-sidebar .search-box {
    order: 3;
    max-width: none;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-control);
    border: 1px solid rgba(51, 97, 120, 0.15);
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(51, 97, 120, 0.12);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faculty-sidebar .search-box:focus-within {
    border-color: #336178;
    box-shadow:
        0 2px 12px rgba(51, 97, 120, 0.14),
        0 0 0 3px rgba(51, 97, 120, 0.1);
}

.faculty-sidebar .search-box .search-icon circle,
.faculty-sidebar .search-box .search-icon path {
    stroke: #336178;
}

.faculty-sidebar .faculty-filters {
    margin-bottom: 0;
    padding: 1.45rem 1.55rem 1.7rem 1.5rem;
    position: relative;
    z-index: 0;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
    background-color: #eef3f5;
    background-image:
        linear-gradient(160deg, rgba(255, 255, 255, 0.94) 0%, rgba(252, 247, 249, 0.9) 100%),
        url('img/campus.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-top: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.faculty-sidebar .filter-tags {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.faculty-sidebar .tag-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9.25rem, 1fr));
    gap: 0.45rem 0.5rem;
    align-items: start;
}

.faculty-sidebar .filter-tag-label {
    grid-column: 1 / -1;
    margin-right: 0;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ae485e;
}

.faculty-sidebar .filter-tag {
    border-radius: var(--radius-button);
    padding: 0.5rem 0.95rem;
    font-size: 0.84rem;
    line-height: 1.3;
    font-weight: 600;
    border: 2px solid rgba(51, 97, 120, 0.32);
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfc 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.faculty-sidebar .filter-tag:hover {
    transform: translateY(-2px);
    border-color: rgba(51, 97, 120, 0.5);
    box-shadow: 0 6px 16px rgba(51, 97, 120, 0.1);
    background: #ffffff;
}

.faculty-sidebar .filter-tag.active {
    background: linear-gradient(135deg, rgba(51, 97, 120, 0.12) 0%, rgba(174, 72, 94, 0.1) 100%);
    border: 2px solid #ae485e;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(174, 72, 94, 0.18);
}

@media (prefers-reduced-motion: reduce) {
    .faculty-sidebar .filter-tag {
        transition: none;
    }

    .faculty-sidebar .filter-tag:hover {
        transform: none;
    }
}

.faculty-intro-column {
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 2rem 2.25rem 2.35rem;
    background-color: #f0f4f6;
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.93) 0%, rgba(247, 251, 253, 0.9) 42%, rgba(255, 252, 253, 0.92) 100%),
        url('img/graduationprofessors.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-origin: border-box;
    border-radius: 20px;
    border: 1px solid rgba(51, 97, 120, 0.12);
    box-shadow:
        0 4px 6px rgba(51, 97, 120, 0.06),
        0 12px 40px rgba(51, 97, 120, 0.12);
    overflow: hidden;
}

.faculty-intro-column > * {
    position: relative;
    z-index: 2;
}

.faculty-intro-column::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #ae485e 0%, #336178 100%);
    border-radius: 20px 0 0 20px;
    pointer-events: none;
    z-index: 1;
    box-shadow: 1px 0 0 rgba(255, 255, 255, 0.35) inset;
}

.faculty-intro-eyebrow {
    margin: 0 0 0.65rem 0;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #ae485e;
}

.faculty-intro-column .faculty-intro-heading {
    display: block;
    justify-content: flex-start;
    text-align: left;
    margin-bottom: 1.1rem;
    gap: 0;
    font-size: clamp(1.85rem, 2.8vw, 2.65rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #254a5d;
}

.faculty-intro-column .faculty-intro-heading::before {
    display: none;
}

.faculty-intro-column .faculty-intro-heading::after {
    display: block;
    content: '';
    width: 4.5rem;
    height: 4px;
    margin-top: 1rem;
    border-radius: 4px;
    background: linear-gradient(90deg, #336178 0%, #ae485e 100%);
    flex: none;
    max-width: none;
}

.faculty-intro-column .faculty-intro-text {
    text-align: left;
    margin: 0;
    max-width: none;
    font-size: 1.05rem;
    line-height: 1.78;
    color: #2d5568;
    opacity: 0.95;
}

@media (max-width: 900px) {
    .faculty-layout-top {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        margin-bottom: 2rem;
    }

    .faculty-sidebar {
        position: static;
    }

    .faculty-sidebar::after {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 5px;
        border-radius: 0 0 20px 20px;
        background: linear-gradient(90deg, #ae485e 0%, #336178 100%);
    }

    .faculty-intro-column {
        padding: 1.65rem 1.5rem 1.85rem 1.65rem;
        text-align: center;
    }

    .faculty-intro-column::before {
        width: 100%;
        height: 5px;
        top: 0;
        bottom: auto;
        left: 0;
        right: 0;
        border-radius: 20px 20px 0 0;
        background: linear-gradient(90deg, #ae485e 0%, #336178 100%);
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset;
    }

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

    .faculty-intro-column .faculty-intro-heading {
        justify-content: center;
        text-align: center;
    }

    .faculty-intro-column .faculty-intro-heading::after {
        margin-left: auto;
        margin-right: auto;
    }

    .faculty-intro-column .faculty-intro-text {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 36rem;
    }
}

/* Dean profile block */
.dean-section {
    margin-bottom: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(51, 97, 120, 0.05) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 20px;
    border: 1px solid rgba(51, 97, 120, 0.15);
    box-shadow: 0 8px 30px rgba(51, 97, 120, 0.15);
}

/* Site footer */

.site-footer {
    background: #336178;
    color: #ffffff;
    padding: 60px 0 40px; /* increased top/bottom spacing */
    font-family: 'Open Sans', sans-serif;
}
.site-footer .wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.site-footer .wrapper:not(.container) {
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding-left: var(--layout-gutter);
    padding-right: var(--layout-gutter);
}
.footer-column-1,
.footer-column-2,
.footer-column-3,
.footer-column-4 {
    flex: 1;
    min-width: 200px;
}

.footer-logo-wrap {
    margin-bottom: 12px;
}
.footer-logo-wrap img,
.footer-logo-image {
    height: 52px;
    width: auto;
    display: block;
}

/* Center logo, heading and icons in first column */
.footer-column-1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.footer-column-1 .footer-column-title {
    text-align: center;
    margin-top: 15px; /* subtle space between logo and heading */
}

@media (max-width: 768px) {
    .footer-column-1 {
        transform: none; /* remove shift on small screens */
        align-items: center;
    }
}
.footer-column-title {
    color: #ffffff;
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.footer-social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-button);
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    font-size: 14px;
    transition: transform 0.2s ease, background 0.2s ease;
    text-decoration: none;
}
.social-icon:hover {
    transform: scale(1.15);
    background: rgba(255,255,255,0.15);
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #f0f0f0;
    text-decoration: none;
    opacity: 0.9;
    font-size: 0.95rem;
    transition: opacity 0.2s ease, color 0.2s ease;
}
.footer-links a:hover {
    opacity: 1;
    color: #ffffff;
    text-decoration: underline;
}
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-contact-item {
    margin: 0;
    padding: 0;
}
.footer-contact-item a {
    color: #f0f0f0;
    text-decoration: none;
    opacity: 0.9;
    font-size: 0.95rem;
    transition: opacity 0.2s ease, color 0.2s ease;
    display: inline;
}
.footer-contact-item a:hover {
    opacity: 1;
    color: #ffffff;
}
.footer-contact-address {
    margin: 0;
    padding: 0;
    color: #f0f0f0;
    opacity: 0.9;
    font-size: 0.95rem;
    line-height: 1.5;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 32px;
    padding: 1rem 2rem;
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.9;
    background-color: rgba(0,0,0,0.15);
}

@media (max-width: 1024px) {
    .site-footer .wrapper {
        gap: 30px;
    }
    .footer-column-1,
    .footer-column-2,
    .footer-column-3,
    .footer-column-4 {
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    .site-footer .wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .footer-column-1,
    .footer-column-2,
    .footer-column-3,
    .footer-column-4 {
        min-width: 100%;
        flex: 1 1 auto;
    }
    .footer-column-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    .footer-links li {
        margin-bottom: 8px;
    }
}

.dean-card {
    display: flex;
    gap: 3rem;
    align-items: stretch;
    max-width: var(--layout-max-width);
    margin: 0 auto;
}

.dean-photo-container {
    flex-shrink: 0;
    width: 350px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: flex-start;
}

.dean-photo {
    width: 100%;
    height: 280px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(51, 97, 120, 0.05) 0%, rgba(174, 72, 94, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(51, 97, 120, 0.15);
    box-shadow: 0 6px 20px rgba(51, 97, 120, 0.2);
}

.dean-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.dean-quote {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(51, 97, 120, 0.05) 100%);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(51, 97, 120, 0.12);
    border-top: 4px solid #ae485e;
    box-shadow: 0 6px 20px rgba(51, 97, 120, 0.12), 0 2px 8px rgba(174, 72, 94, 0.1);
    position: relative;
    overflow: hidden;
}

.dean-quote::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(174, 72, 94, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.quote-text {
    font-size: 1.15rem;
    line-height: 1.85;
    color: #336178;
    margin: 0;
    font-style: italic;
    text-align: left;
    text-wrap: pretty;
    position: relative;
    z-index: 1;
    quotes: """ """;
}

.quote-text::before {
    content: open-quote;
    font-size: 4rem;
    line-height: 1;
    color: #ae485e;
    opacity: 0.25;
    vertical-align: -0.6em;
    margin-right: 0.15em;
    font-family: Georgia, serif;
}

.quote-text::after {
    content: close-quote;
    font-size: 4rem;
    line-height: 1;
    color: #ae485e;
    opacity: 0.25;
    vertical-align: -0.6em;
    margin-left: 0.15em;
    font-family: Georgia, serif;
}

.quote-author {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: #336178;
    font-style: normal;
    text-align: center;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(51, 97, 120, 0.15);
    position: relative;
    z-index: 1;
}

.dean-photo-container .dean-contact {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid rgba(51, 97, 120, 0.1);
    box-shadow: 0 2px 10px rgba(51, 97, 120, 0.08);
}

.dean-photo-container .dean-contact .contact-item {
    display: grid;
    grid-template-columns: 5.75rem 1fr;
    align-items: start;
    column-gap: 1rem;
    row-gap: 0.15rem;
    font-size: 1rem;
}

.dean-photo-container .dean-contact .contact-label {
    font-weight: 600;
    color: #336178;
    min-width: 0;
    text-align: left;
}

.dean-photo-container .dean-contact .contact-text {
    text-align: left;
    word-break: break-word;
    color: #336178;
    opacity: 0.9;
}

.dean-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dean-info .dean-quote {
    margin: 0.5rem 0 1.5rem 0;
}

.dean-quote .quote-text {
    margin: 0;
}

.dean-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: #336178;
    margin-bottom: 0.5rem;
}

.dean-title {
    font-size: 1.3rem;
    color: #336178;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.dean-department {
    font-size: 1.1rem;
    color: #336178;
    opacity: 0.7;
    margin-bottom: 1rem;
    font-style: italic;
}

.dean-info .dean-contact {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid rgba(51, 97, 120, 0.1);
}

.faculty-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #336178;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.faculty-page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #336178 0%, #ae485e 100%);
    border-radius: 2px;
}

/* Faculty page: section titles */
.section-heading-decorated {
    font-size: 2rem;
    font-weight: 700;
    color: #2F5D73;
    text-align: center;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.section-heading-decorated::before,
.section-heading-decorated::after {
    content: '';
    flex: 1;
    max-width: 150px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(47, 93, 115, 0.5));
}

.section-heading-decorated::after {
    background: linear-gradient(90deg, rgba(47, 93, 115, 0.5), transparent);
}

/* Make only this heading stronger */
.meet-faculty-section .section-heading-decorated,
.faculty-intro-heading.section-heading-decorated {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.faculty-intro-text {
    text-align: center;
    color: #336178;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

.meet-faculty-section {
    margin-bottom: 4rem;
}

.staff-members-section {
    margin-bottom: 3rem;
}

.staff-members-section .faculty-grid-section {
    margin-bottom: 0;
}

.no-results-message {
    text-align: center;
    padding: 3rem 2rem;
    color: #336178;
    opacity: 0.7;
    font-size: 1.1rem;
    background: rgba(51, 97, 120, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(51, 97, 120, 0.1);
    margin-top: 2rem;
}

.faculty-search-container {
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(51, 97, 120, 0.15);
    border-radius: var(--radius-control);
    padding: 0.8rem 1.2rem;
    max-width: 500px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-box:focus-within {
    border-color: #336178;
    box-shadow: 0 0 0 3px rgba(51, 97, 120, 0.1);
}

.search-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.8rem;
    flex-shrink: 0;
}

.search-icon svg {
    width: 100%;
    height: 100%;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #336178;
}

.search-input::placeholder {
    color: #336178;
    opacity: 0.6;
}

.faculty-filters {
    margin-bottom: 3rem;
}

.filter-tags {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tag-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
}

.filter-tag-label {
    font-weight: 600;
    color: #336178;
    font-size: 0.95rem;
    margin-right: 0.5rem;
}

.filter-tag {
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(51, 97, 120, 0.15);
    border-radius: var(--radius-button);
    background: #ffffff;
    color: #336178;
    opacity: 0.8;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-tag:hover {
    border-color: #336178;
    color: #336178;
}

.filter-tag.active {
    background: linear-gradient(135deg, rgba(51, 97, 120, 0.1) 0%, rgba(174, 72, 94, 0.1) 100%);
    border-color: #ae485e;
    color: #336178;
    font-weight: 600;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(174, 72, 94, 0.2);
}

.faculty-grid-section {
    margin-bottom: 3rem;
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.faculty-card {
    background: linear-gradient(135deg, #ffffff 0%, rgba(51, 97, 120, 0.02) 100%);
    border: 1px solid rgba(51, 97, 120, 0.15);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(51, 97, 120, 0.1);
    display: flex;
    flex-direction: column;
    align-self: stretch;
    position: relative;
    overflow: hidden;
}

.faculty-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.faculty-card-top {
    /* Top content stays natural height; the email block will be pushed to the bottom */
}

.faculty-email-block {
    margin-top: auto; /* Keeps email/contact aligned just above the button */
}


.faculty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #336178 0%, #ae485e 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.faculty-card:hover::before {
    transform: scaleX(1);
}

.faculty-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(51, 97, 120, 0.2);
    border-color: rgba(174, 72, 94, 0.3);
}

.faculty-photo {
    width: 180px;
    height: 220px;
    margin: 0 auto 1.5rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(51, 97, 120, 0.05) 0%, rgba(174, 72, 94, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(51, 97, 120, 0.15);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(51, 97, 120, 0.1);
}

.faculty-card:hover .faculty-photo {
    border-color: rgba(174, 72, 94, 0.3);
    transform: scale(1.02);
    box-shadow: 0 6px 18px rgba(51, 97, 120, 0.2);
}

.faculty-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.faculty-photo-placeholder {
    font-size: 4rem;
}

.faculty-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #336178;
    margin-bottom: 0.5rem;
}

.faculty-title {
    font-size: 1rem;
    color: #336178;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.faculty-department {
    font-size: 0.9rem;
    color: #336178;
    opacity: 0.7;
    margin-bottom: 0.3rem;
    font-style: italic;
}

.faculty-university {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 1rem;
    font-style: italic;
}

.faculty-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.keyword-tag {
    padding: 0.4rem 0.8rem;
    background: rgba(174, 72, 94, 0.1);
    color: #ae485e;
    border-radius: var(--radius-button);
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(174, 72, 94, 0.2);
    transition: all 0.3s ease;
}

.keyword-tag:hover {
    background: rgba(174, 72, 94, 0.15);
    border-color: rgba(174, 72, 94, 0.3);
}

.faculty-contact {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(51, 97, 120, 0.03);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border: 1px solid rgba(51, 97, 120, 0.08);
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #336178;
}

.contact-label {
    font-weight: 600;
    color: #336178;
    min-width: 60px;
    font-size: 0.9rem;
}

.contact-text {
    color: #336178;
    opacity: 0.9;
}

.btn-view-profile {
    background: linear-gradient(135deg, #ae485e 0%, rgba(174, 72, 94, 0.9) 100%);
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-button);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 2px 8px rgba(174, 72, 94, 0.3);
}

.btn-view-profile:hover {
    background: linear-gradient(135deg, #ae485e 0%, #ae485e 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(174, 72, 94, 0.4);
}

@media (max-width: 768px) {
    .faculty-main {
        padding: 1.25rem 1rem 2rem;
    }

    .faculty-page-title {
        font-size: 2rem;
    }
    
    .faculty-grid {
        grid-template-columns: 1fr;
    }
    
    .tag-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-tag-label {
        margin-bottom: 0.5rem;
    }
    
    .dean-section {
        padding: 2rem 1.5rem;
    }
    
    .dean-card {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .dean-photo-container {
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .dean-photo {
        width: 100%;
        height: 280px;
    }
    
    .quote-text {
        font-size: 1rem;
    }

    .dean-quote {
        padding: 1rem 1.15rem;
    }
    
    .dean-name {
        font-size: 1.8rem;
    }
    
    .dean-title {
        font-size: 1.1rem;
    }

    .dean-photo-container .dean-contact {
        max-width: 22rem;
        margin-left: auto;
        margin-right: auto;
    }
}

/* One teacher: profile page */
.profile-main {
    padding-top: 2rem;
}

.profile-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Profile: intro area */
.profile-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1rem;
}

.profile-photo-large {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    background: rgba(51, 97, 120, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.profile-photo-placeholder-large {
    font-size: 6rem;
}

.profile-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: #00695c;
    margin-bottom: 0.5rem;
}

.profile-title-main {
    font-size: 1.1rem;
    color: #336178;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.profile-bio {
    font-size: 1rem;
    color: #336178;
    opacity: 0.8;
    line-height: 1.8;
    max-width: 800px;
    text-align: left;
}

/* Profile: main sections */
.profile-section {
    margin-bottom: 2rem;
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00695c;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.section-intro {
    font-size: 1rem;
    color: #336178;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.profile-list {
    list-style-type: disc;
    padding-left: 1.5rem;
    color: #336178;
    opacity: 0.8;
    line-height: 1.8;
}

.profile-list li {
    margin-bottom: 0.8rem;
}

/* Profile: job / industry chart — 2023–2024 Employment Report (career page; light dashboard reference) */
.employment-stats-section.section {
    --report-slate: #2d4b5e;
    --report-blue: #2d4b5e;
    --report-blue-deep: #243a48;
    --report-accent: #a24d5b;
    --report-muted: #5a6570;
    --report-card: #ffffff;
    --report-page-bg: #eef0f3;
    --report-card-edge: #e8e8e8;
    --report-shadow-outer: 0 12px 40px rgba(45, 75, 94, 0.08), 0 2px 12px rgba(45, 75, 94, 0.04);
    --report-shadow-inner: 0 8px 28px rgba(45, 75, 94, 0.06);
    --report-radius: 14px;
    --report-radius-sm: 10px;
    /* Full-bleed: break out of .main-content.container max-width + gutters */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
    background: var(--report-page-bg) !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 1.5rem 0 2.5rem !important;
    margin-bottom: 2.5rem !important;
}

.employment-stats-section.section:hover {
    transform: none !important;
    box-shadow: none !important;
}

.employment-stats-container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding-left: var(--layout-gutter);
    padding-right: var(--layout-gutter);
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .employment-stats-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.employment-report-inner {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 1rem;
    background: var(--report-card);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--report-shadow-outer);
    padding: clamp(1.25rem, 3vw, 1.65rem) clamp(1.1rem, 3vw, 1.75rem) clamp(1.35rem, 3vw, 1.75rem);
    box-sizing: border-box;
}

.employment-report-header {
    text-align: center;
    padding: 0;
    margin: 0 0 0.15rem;
}

/* Centered title + burgundy rule (disables generic .section h2::after) */
.employment-stats-section .stats-section-title {
    font-size: clamp(1.2rem, 2.2vw, 1.45rem);
    font-weight: 700;
    color: var(--report-slate);
    text-align: center;
    margin: 0 auto 0.75rem;
    padding-bottom: 0.55rem;
    letter-spacing: -0.01em;
    text-transform: none;
    line-height: 1.3;
    display: block;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    border-bottom: 2px solid var(--report-accent);
    position: relative;
}

.employment-stats-section .stats-section-title::after {
    content: none !important;
    display: none !important;
}

/* Donut diagram: same percentages as the industry bars (2023–2024 report). */
.employment-stats-section .industry-chart-diagram.employment-report-grid,
.employment-stats-section .industry-chart-diagram {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(360px, 1.45fr) minmax(220px, 1fr);
    align-items: start;
    column-gap: clamp(1rem, 2vw, 1.8rem);
    width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: none;
}

@media (min-width: 1025px) {
    .employment-stats-section .employment-report-grid .employment-report-col {
        padding: 0.35rem 0;
    }
}

.employment-report-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.employment-report-col--donut {
    text-align: center;
}

.employment-stats-section .employment-report-col--donut .industry-diagram-heading {
    align-self: stretch;
    text-align: center;
    width: 100%;
}

.employment-stats-section .employment-report-col--sectors {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
    box-shadow: none;
}

.employment-stats-section .employment-report-col--sectors .industry-diagram-heading {
    text-align: center;
    width: 100%;
}

.employment-stats-section .employment-report-col--rate {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
    box-shadow: none;
}

.employment-report-col--rate .employment-rate-display {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.7rem;
    width: 100%;
}

.employment-report-col--rate .industry-diagram-heading {
    text-align: center;
    width: 100%;
}

.employment-stats-section .industry-donut-figure {
    margin: 0 auto;
    flex: 0 0 auto;
    text-align: center;
    max-width: min(300px, 100%);
    position: relative;
    padding: 0 0 0.35rem;
    align-self: center;
}

/* Shared label row: same vertical slot + refined caps (employment report grid only) */
.employment-stats-section .employment-report-grid .industry-diagram-heading {
    margin: 0 0 0.65rem;
    min-height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.employment-stats-section .industry-diagram-heading {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--report-muted);
    margin: 0 0 0.85rem;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    line-height: 1.25;
    opacity: 1;
}

.industry-diagram-note {
    font-size: 0.82rem;
    color: rgba(51, 97, 120, 0.75);
    margin: 0 0 1rem;
    line-height: 1.35;
}

.employment-stats-section .industry-donut-chart {
    position: relative;
    width: min(218px, 62vw);
    aspect-ratio: 1;
    margin: 0 auto;
    filter: drop-shadow(0 4px 14px rgba(51, 97, 120, 0.12));
}

.employment-stats-section .donut-segment-highlight {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    opacity: 0;
    transform: scale(1);
    transition: opacity 0.18s ease, transform 0.22s ease;
    pointer-events: none;
}

.employment-stats-section .donut-segment-highlight.seg-1 { background: conic-gradient(from -90deg, #336178 0% 20.7%, transparent 20.7% 100%); }
.employment-stats-section .donut-segment-highlight.seg-2 { background: conic-gradient(from -90deg, transparent 0% 20.7%, #ae485e 20.7% 40.6%, transparent 40.6% 100%); }
.employment-stats-section .donut-segment-highlight.seg-3 { background: conic-gradient(from -90deg, transparent 0% 40.6%, #2d5568 40.6% 59.4%, transparent 59.4% 100%); }
.employment-stats-section .donut-segment-highlight.seg-4 { background: conic-gradient(from -90deg, transparent 0% 59.4%, #c05f76 59.4% 69.6%, transparent 69.6% 100%); }
.employment-stats-section .donut-segment-highlight.seg-5 { background: conic-gradient(from -90deg, transparent 0% 69.6%, #417188 69.6% 76.6%, transparent 76.6% 100%); }
.employment-stats-section .donut-segment-highlight.seg-6 { background: conic-gradient(from -90deg, transparent 0% 76.6%, #953d52 76.6% 82.5%, transparent 82.5% 100%); }
.employment-stats-section .donut-segment-highlight.seg-7 { background: conic-gradient(from -90deg, transparent 0% 82.5%, #548fa4 82.5% 88.4%, transparent 88.4% 100%); }
.employment-stats-section .donut-segment-highlight.seg-8 { background: conic-gradient(from -90deg, transparent 0% 88.4%, #d67a8f 88.4% 93.1%, transparent 93.1% 100%); }
.employment-stats-section .donut-segment-highlight.seg-9 { background: conic-gradient(from -90deg, transparent 0% 93.1%, #1e4452 93.1% 96.6%, transparent 96.6% 100%); }
.employment-stats-section .donut-segment-highlight.seg-10 { background: conic-gradient(from -90deg, transparent 0% 96.6%, #8b4a5c 96.6% 100%); }

/* Donut slice glow: only when hovering Sector shares rows (legend) */
.employment-stats-section .industry-chart-diagram:has(.industry-donut-legend li:nth-child(1):hover) .donut-segment-highlight.seg-1,
.employment-stats-section .industry-chart-diagram:has(.industry-donut-legend li:nth-child(2):hover) .donut-segment-highlight.seg-2,
.employment-stats-section .industry-chart-diagram:has(.industry-donut-legend li:nth-child(3):hover) .donut-segment-highlight.seg-3,
.employment-stats-section .industry-chart-diagram:has(.industry-donut-legend li:nth-child(4):hover) .donut-segment-highlight.seg-4,
.employment-stats-section .industry-chart-diagram:has(.industry-donut-legend li:nth-child(5):hover) .donut-segment-highlight.seg-5,
.employment-stats-section .industry-chart-diagram:has(.industry-donut-legend li:nth-child(6):hover) .donut-segment-highlight.seg-6,
.employment-stats-section .industry-chart-diagram:has(.industry-donut-legend li:nth-child(7):hover) .donut-segment-highlight.seg-7,
.employment-stats-section .industry-chart-diagram:has(.industry-donut-legend li:nth-child(8):hover) .donut-segment-highlight.seg-8,
.employment-stats-section .industry-chart-diagram:has(.industry-donut-legend li:nth-child(9):hover) .donut-segment-highlight.seg-9,
.employment-stats-section .industry-chart-diagram:has(.industry-donut-legend li:nth-child(10):hover) .donut-segment-highlight.seg-10 {
    opacity: 1;
    transform: scale(1.04);
    filter: drop-shadow(0 1px 4px rgba(31, 65, 82, 0.28));
}

.employment-stats-section .industry-donut-segments {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
        from -90deg,
        #336178 0% 20.7%,
        #ae485e 20.7% 40.6%,
        #2d5568 40.6% 59.4%,
        #c05f76 59.4% 69.6%,
        #417188 69.6% 76.6%,
        #953d52 76.6% 82.5%,
        #548fa4 82.5% 88.4%,
        #d67a8f 88.4% 93.1%,
        #1e4452 93.1% 96.6%,
        #8b4a5c 96.6% 100%
    );
    transform: scale(0.97);
    opacity: 1;
    transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.employment-stats-section.animate .industry-donut-segments {
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .employment-stats-section .industry-donut-segments {
        transform: scale(1);
        transition: none;
    }
}

.employment-stats-section .industry-donut-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 54%;
    height: 54%;
    border-radius: 50%;
    background: linear-gradient(165deg, #ffffff 0%, #f4f9fb 100%);
    border: 1px solid rgba(51, 97, 120, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 2px 12px rgba(51, 97, 120, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.4rem;
}

.employment-stats-section .industry-donut-hole-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}

.employment-stats-section .industry-donut-hole-label {
    font-size: clamp(0.58rem, 1.5vw, 0.68rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #8a9399;
    line-height: 1.25;
}

.employment-stats-section .industry-donut-hole-value {
    font-size: clamp(0.72rem, 1.8vw, 0.88rem);
    font-weight: 700;
    color: var(--report-slate);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

.employment-stats-section .industry-donut-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 430px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 0.8rem;
    align-content: start;
}

.employment-stats-section .industry-donut-legend li {
    display: flex;
    align-items: stretch;
    gap: 0.45rem;
    font-size: 0.8rem;
    color: var(--report-slate);
    line-height: 1.35;
    min-height: 44px;
    padding: 0.45rem 0.55rem;
    border-radius: var(--report-radius-sm);
    background: #ffffff;
    border: 1px solid var(--report-card-edge);
    box-shadow: 0 1px 2px rgba(45, 75, 94, 0.04);
    position: relative;
    z-index: 0;
    cursor: pointer;
    transition:
        transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.2s ease,
        box-shadow 0.22s ease,
        background 0.2s ease;
}

.employment-stats-section .industry-donut-legend li:hover {
    transform: translateY(-6px) scale(1.02);
    z-index: 2;
    border-color: rgba(162, 77, 91, 0.35);
    background: #ffffff;
    box-shadow:
        0 12px 28px rgba(45, 75, 94, 0.12),
        0 4px 12px rgba(162, 77, 91, 0.12);
}

@media (prefers-reduced-motion: reduce) {
    .employment-stats-section .industry-donut-legend li {
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .employment-stats-section .industry-donut-legend li:hover {
        transform: none;
    }
}

.employment-stats-section .industry-donut-legend .legend-swatch {
    width: 8px;
    height: 8px;
    min-width: 8px;
    align-self: center;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04) inset;
}

.employment-stats-section .industry-donut-legend .legend-text-stack {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    flex: 1;
    min-width: 0;
}

.employment-stats-section .industry-donut-legend .legend-name {
    min-width: 0;
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
}

.employment-stats-section .industry-donut-legend .legend-pct {
    font-weight: 700;
    color: var(--report-accent);
    font-variant-numeric: tabular-nums;
    font-size: 0.82rem;
    flex-shrink: 0;
}

/* Inner analytics card (three columns) */
.stats-content.employment-report-card,
.employment-stats-section .stats-content {
    display: block;
    width: 100%;
    padding: clamp(1.35rem, 2.2vw, 1.75rem) clamp(1.1rem, 2vw, 1.5rem);
    border-radius: var(--report-radius);
    background: #fafbfc;
    border: 1px solid var(--report-card-edge);
    box-shadow: var(--report-shadow-inner);
    box-sizing: border-box;
}

/* Profile chart: left side = industry names */

.industries-list {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.industry-item {
    position: relative;
}

.progress-bar-container {
    width: 100%;
    height: 52px;
    background: #ffffff;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(51, 97, 120, 0.14);
    box-shadow: inset 0 2px 6px rgba(51, 97, 120, 0.06);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #336178 0%, #ae485e 100%);
    border-radius: 999px;
    width: 0%;
    transition: width 2s ease-out;
    position: absolute;
    top: 0;
    left: 0;
}

.bar-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.35rem;
    pointer-events: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(51, 97, 120, 0.35);
}

.industry-name {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #ffffff;
}

.industry-percentage {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 700;
}
.stats-right-column {
    display: flex;
    justify-content: center;
    align-items: center;
}

.employment-stats-section .employment-rate-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.7rem;
    width: 100%;
}

.employment-stats-section .rate-circle {
    position: relative;
    width: min(232px, 72vw);
    height: min(232px, 72vw);
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--report-card-edge);
    box-shadow: 0 4px 20px rgba(45, 75, 94, 0.07);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
    .employment-stats-section .rate-circle:hover {
        box-shadow: 0 8px 28px rgba(45, 75, 94, 0.1);
        transform: translateY(-1px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .employment-stats-section .rate-circle {
        transition: none;
    }

    .employment-stats-section .rate-circle:hover {
        transform: none;
    }
}

.employment-stats-section .circle-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

.employment-stats-section .rate-circle-percentage {
    font-size: clamp(2.35rem, 5.5vw, 3.1rem);
    font-weight: 800;
    color: var(--report-slate);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.circle-percentage {
    font-size: 3rem;
    font-weight: 700;
    color: #336178;
    margin-bottom: 0.25rem;
}

.circle-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #336178;
    opacity: 0.85;
}

.employment-stats-section .rate-circle .circle-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    filter: drop-shadow(0 1px 2px rgba(51, 97, 120, 0.06));
}

.employment-stats-section .rate-circle .circle-svg circle,
.employment-stats-section .rate-circle .circle-svg-progress {
    transition: stroke-dashoffset 2s ease-out;
}
/* Start animation when the user scrolls here */
.employment-stats-section.animate .progress-bar-fill {
    width: var(--percentage);
}

.employment-stats-section.animate .circle-svg-progress {
    stroke-dashoffset: var(--dashoffset);
}

/* Responsive Design — employment report (career) */
@media (max-width: 1024px) {
    .employment-stats-section .employment-report-inner {
        max-width: 100%;
    }

    .employment-stats-section .industry-chart-diagram {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .employment-stats-section .stats-content {
        border-radius: var(--report-radius);
        padding: clamp(1.5rem, 3vw, 1.85rem) clamp(1.2rem, 3vw, 1.65rem);
    }

    .employment-stats-section .employment-rate-display {
        gap: 1.25rem;
    }

    .employment-stats-section .rate-circle {
        width: min(200px, 58vw);
        height: min(200px, 58vw);
    }

    .employment-stats-section .rate-circle-percentage {
        font-size: clamp(2rem, 5vw, 2.65rem);
    }
}

@media (max-width: 768px) {
    .employment-stats-section .stats-section-title {
        font-size: clamp(1.05rem, 3.6vw, 1.35rem);
    }

    .employment-stats-section .stats-content {
        border-radius: var(--report-radius);
        padding: 1.35rem 1.1rem 1.6rem;
    }

    .employment-report-inner {
        padding: 1.15rem 1rem 1.35rem;
    }

    .employment-stats-section .industry-chart-diagram {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .employment-stats-section .industry-donut-figure {
        max-width: 100%;
        padding-bottom: 0;
    }

    .employment-stats-section .industry-donut-legend {
        max-width: 100%;
        width: 100%;
    }

    .industries-list {
        gap: 1.25rem;
    }

    .progress-bar-container {
        height: 46px;
    }

    .employment-stats-section .rate-circle {
        width: min(188px, 52vw);
        height: min(188px, 52vw);
    }

    .employment-stats-section .rate-circle-percentage {
        font-size: clamp(1.85rem, 6vw, 2.35rem);
    }

    .employment-stats-section .employment-rate-display {
        flex-direction: column;
        gap: 0.85rem;
    }
}

@media (max-width: 480px) {
    .employment-stats-section .stats-section-title {
        font-size: clamp(1rem, 4vw, 1.25rem);
    }

    .employment-stats-section .stats-content {
        border-radius: calc(var(--report-radius) - 2px);
        padding: 1.15rem 0.85rem 1.4rem;
    }

    .employment-stats-section .industry-donut-legend {
        grid-template-columns: 1fr;
    }

    .industries-list {
        gap: 1rem;
    }

    .progress-bar-container {
        height: 42px;
    }

    .employment-stats-section .rate-circle {
        width: min(172px, 70vw);
        height: min(172px, 70vw);
        box-shadow: 0 4px 16px rgba(45, 75, 94, 0.08);
    }

    .employment-stats-section .rate-circle-percentage {
        font-size: clamp(1.75rem, 7vw, 2.1rem);
    }
}

/* --------------------------------------------------------------------------
   Career page — same content width as About/index: uses default .container
   (--layout-max-width + gutters). HTML: main.career-page-layout for section hooks only.
   -------------------------------------------------------------------------- */

/* Employment report: one full-width card (no nested boxes); shadow from .career-page-layout > .section */
body.career-page .employment-stats-section.section {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 3rem;
    box-sizing: border-box;
    background: var(--surface-card) !important;
    border: none !important;
    border-radius: 18px !important;
    backdrop-filter: none !important;
}

body.career-page .employment-stats-container {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

/* Remove second “card” frame — content sits directly inside the section padding */
body.career-page .employment-report-inner {
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
    gap: 1.25rem;
}

/* Third layer: stats grid was its own bordered panel — flatten on Career */
body.career-page .employment-stats-section .stats-content.employment-report-card,
body.career-page .employment-stats-section .stats-content {
    padding: 1.75rem 0 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* All major white section cards under the hero: same padding, shadow, and hover as About */
body.career-page .career-page-layout > .section {
    padding: var(--about-content-card-padding-y) var(--about-content-card-padding-x);
    box-shadow: var(--about-content-card-shadow);
    backdrop-filter: none;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

body.career-page .career-page-layout > .section:hover {
    box-shadow: var(--about-content-card-shadow-hover);
    transform: translateY(-2px);
}

/* Employment report: global rule used !important to kill full-bleed hover — restore card hover on Career */
body.career-page .career-page-layout > .employment-stats-section.section:hover {
    box-shadow: var(--about-content-card-shadow-hover) !important;
    transform: translateY(-2px) !important;
}

body.career-page .hero-section {
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    body.career-page {
        --about-content-card-padding-y: 2rem;
        --about-content-card-padding-x: 1.25rem;
    }

    body.career-page .employment-stats-section .stats-content.employment-report-card,
    body.career-page .employment-stats-section .stats-content {
        padding-top: 1.35rem;
    }
}

.profile-list strong {
    color: #336178;
    font-weight: 600;
}

.profile-list em {
    color: #336178;
    opacity: 0.8;
    font-style: italic;
}

/* Profile or news: side column */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-box {
    background: rgba(51, 97, 120, 0.03);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sidebar-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: #00695c;
    margin-bottom: 1rem;
}

/* Profile: contact block */
.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: #336178;
    opacity: 0.8;
    font-size: 0.95rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    font-size: 1.2rem;
    min-width: 24px;
    text-align: center;
}

/* Profile: keyword tags */
.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.research-tag {
    padding: 0.5rem 1rem;
    background-color: #ffebee;
    color: #c62828;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.research-tag:hover {
    background-color: #ffcdd2;
}

/* Profile: LinkedIn and other links */
.professional-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.professional-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #336178;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.professional-link:hover {
    color: #2a4f62;
    text-decoration: underline;
}

.link-icon {
    font-size: 1rem;
}

/* Smaller screens: adjust layout */
@media (max-width: 1024px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .profile-name {
        font-size: 1.8rem;
    }
    
    .profile-photo-large {
        width: 150px;
        height: 150px;
    }
    
    .profile-photo-placeholder-large {
        font-size: 4rem;
    }
    
    .section-heading {
        font-size: 1.3rem;
    }
}

/* News and events hub */
.news-main {
    padding-top: 2rem;
}

.news-visual-section {
    display: block;
    margin-bottom: 2rem;
}

.news-visual-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.news-visual-card {
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(51, 97, 120, 0.12);
    box-shadow: 0 10px 28px rgba(51, 97, 120, 0.08);
}

.news-visual-image-wrap {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, rgba(51, 97, 120, 0.1), rgba(174, 72, 94, 0.12));
    overflow: hidden;
}

.news-visual-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-visual-copy {
    padding: 1rem 1rem 1.15rem;
    background: linear-gradient(180deg, rgba(51, 97, 120, 0.98), rgba(71, 101, 124, 0.98));
    color: #ffffff;
}

.news-visual-copy h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.4;
    font-weight: 700;
}

.news-visual-source {
    margin-bottom: 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.76);
}

.news-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
}

/* News page: left menu */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-search {
    margin-bottom: 1rem;
}

.sidebar-search-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(51, 97, 120, 0.15);
    border-radius: var(--radius-control);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.sidebar-search-input:focus {
    outline: none;
    border-color: #336178;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.sidebar-filters {
    background: rgba(51, 97, 120, 0.03);
    padding: 1.5rem;
    border-radius: 8px;
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #336178;
    margin-bottom: 1rem;
}

.filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    color: #336178;
    opacity: 0.8;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.filter-checkbox:hover {
    color: #336178;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ae485e;
}

/* News page: main area */
.news-content {
    flex: 1;
}

.news-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #336178;
    margin-bottom: 2rem;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-card {
    display: flex;
    gap: 1.5rem;
    background: #ffffff;
    border: 1px solid rgba(51, 97, 120, 0.15);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.news-icon {
    font-size: 3rem;
    color: #336178;
    opacity: 0.6;
    min-width: 60px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0.5rem;
}

.news-card-content {
    flex: 1;
}

.news-date {
    font-size: 0.85rem;
    color: #336178;
    opacity: 0.6;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.news-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #336178;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.news-summary {
    font-size: 0.95rem;
    color: #336178;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.btn-read-more {
    background-color: #ae485e;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-button);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-read-more:hover {
    background-color: #8d3a4b;
}

/* News: popup window */
.news-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.news-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.news-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding: 1rem;
    cursor: pointer;
    line-height: 20px;
}

.news-modal-close:hover,
.news-modal-close:focus {
    color: #000;
}

.news-modal-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.news-modal-date {
    font-size: 0.9rem;
    color: #336178;
    opacity: 0.6;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.news-modal-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #336178;
    line-height: 1.4;
    margin: 0;
}

.news-modal-text {
    padding: 2rem;
    line-height: 1.8;
    color: #336178;
    opacity: 0.75;
}

.news-modal-text p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.news-modal-text h3 {
    color: #336178;
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.news-modal-text strong {
    color: #336178;
    font-weight: 600;
}

.event-modal-speaker {
    padding: 0 2rem 1rem 2rem;
    border-bottom: 1px solid #e0e0e0;
    color: #336178;
    opacity: 0.75;
    font-size: 1rem;
    line-height: 1.6;
}

.event-modal-speaker strong {
    color: #336178;
    font-size: 1.1rem;
    font-weight: 600;
}

.event-details-box {
    background-color: #f5f5f5;
    border-left: 4px solid #ae485e;
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 4px;
}

.event-details-box h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #ae485e;
}

.event-details-box p {
    margin-bottom: 0.8rem;
}

.btn-register {
    display: inline-block;
    background-color: #ae485e;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-button);
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.btn-register:hover {
    background-color: #8d3a4b;
}

/* Smaller screens: adjust layout */
@media (max-width: 1024px) {
    .news-layout {
        grid-template-columns: 250px 1fr;
        gap: 2rem;
    }
}

@media (max-width: 900px) {
    .news-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .news-sidebar {
        order: 2;
    }

    .news-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .news-visual-grid {
        grid-template-columns: 1fr;
    }

    .news-layout {
        grid-template-columns: 1fr;
    }
    
    .news-sidebar {
        order: 2;
    }
    
    .news-content {
        order: 1;
    }
    
    .news-card {
        flex-direction: column;
        gap: 1rem;
    }
    
    .news-icon {
        align-self: center;
    }
    
    .news-page-title {
        font-size: 1.6rem;
    }
}

/* Events page (separate from news hub) */
.events-main {
    padding-top: 2rem;
}

.events-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
}

/* Events page: side menu */
.events-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.events-sidebar .sidebar-search {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(51, 97, 120, 0.15);
    border-radius: 4px;
    background: #ffffff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.events-sidebar .sidebar-search:focus-within {
    border-color: #336178;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.events-sidebar .sidebar-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
}

.events-sidebar .sidebar-search-input::placeholder {
    color: #336178;
    opacity: 0.6;
}

.events-sidebar .sidebar-filters {
    background: rgba(51, 97, 120, 0.03);
    padding: 1.5rem;
    border-radius: 8px;
}

/* Events page: main area */
.events-content {
    flex: 1;
}

.events-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #8d3a4b;
    margin-bottom: 2rem;
}

/* Month calendar grid */
.calendar-container {
    background: #ffffff;
    border: 1px solid rgba(51, 97, 120, 0.15);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.calendar-month-year {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2a4f62;
    margin: 0;
}

.calendar-nav-btn {
    background: none;
    border: 1px solid rgba(51, 97, 120, 0.15);
    border-radius: var(--radius-button);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: #336178;
    opacity: 0.8;
    transition: all 0.3s;
}

.calendar-nav-btn:hover {
    background: rgba(51, 97, 120, 0.03);
    border-color: #336178;
    color: #336178;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    color: #336178;
    opacity: 0.8;
    padding: 0.8rem;
    font-size: 0.9rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(51, 97, 120, 0.15);
    border-radius: var(--radius-control);
    cursor: pointer;
    font-size: 0.95rem;
    color: #336178;
    transition: all 0.3s;
    position: relative;
}

.calendar-day:not(.empty):hover {
    background: rgba(51, 97, 120, 0.03);
    border-color: #336178;
}

.calendar-day.empty {
    border: none;
    cursor: default;
    color: #ccc;
}

.calendar-day.has-event {
    background-color: #e3f2fd;
    border-color: #336178;
    font-weight: 600;
    color: #2a4f62;
}

.calendar-day.has-event:hover {
    background-color: #bbdefb;
}

.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: #ae485e;
    border-radius: 50%;
}

/* List of future events */
.upcoming-events-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #336178;
    margin-bottom: 1.5rem;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-list-card {
    display: flex;
    gap: 1.5rem;
    background: #ffffff;
    border: 1px solid rgba(51, 97, 120, 0.15);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.event-list-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.event-list-icon {
    font-size: 2.5rem;
    min-width: 60px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0.5rem;
}

.event-list-content {
    flex: 1;
}

.event-list-date {
    font-size: 0.85rem;
    color: #336178;
    opacity: 0.6;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.event-list-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #336178;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.event-list-location,
.event-list-speaker {
    font-size: 0.9rem;
    color: #336178;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.event-list-description {
    font-size: 0.95rem;
    color: #336178;
    opacity: 0.8;
    line-height: 1.6;
    margin-top: 0.8rem;
    margin-bottom: 1rem;
}

.btn-read-more-event {
    background-color: #ae485e;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-button);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 0.5rem;
}

.btn-read-more-event:hover {
    background-color: #8d3a4b;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .events-layout {
        grid-template-columns: 250px 1fr;
        gap: 2rem;
    }
}

@media (max-width: 900px) {
    .events-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .events-sidebar {
        order: 2;
    }

    .events-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .events-layout {
        grid-template-columns: 1fr;
    }
    
    .events-sidebar {
        order: 2;
    }
    
    .events-content {
        order: 1;
    }
    
    .events-page-title {
        font-size: 1.6rem;
    }
    
    .calendar-container {
        padding: 1rem;
    }
    
    .calendar-month-year {
        font-size: 1.4rem;
    }
    
    .calendar-day {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
}

/* Career Page Styless */
/* Career hero section - ADA University academic design */
.career-hero {
    background: linear-gradient(135deg, #336178, #2A5366);
    min-height: 520px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.career-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20"><circle cx="2" cy="2" r="0.5" fill="rgba(255,255,255,0.06)"/></pattern></defs><rect width="100%%" height="100%%" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.career-hero-inner {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
    position: relative;
    z-index: 1;
}

.career-hero-text {
    flex: 1;
    max-width: 640px;
    animation: careerHeroFadeIn 0.6s ease-out;
}

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

.career-hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.25;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.career-hero-highlight {
    position: relative;
    display: inline-block;
}

.career-hero-highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 2px;
}

.career-hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 1.75rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
}

.career-hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
    margin-bottom: 2rem;
}

.career-hero-feature {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.btn-explore-opportunities {
    background-color: #1F3C88;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 0.95rem 2.25rem;
    border-radius: var(--radius-button);
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn-explore-opportunities:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.career-hero-visual {
    flex: 0 0 320px;
    min-height: 280px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.career-hero-shapes {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 240px;
}

.hero-shape {
    position: absolute;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    animation: heroShapeFloat 12s ease-in-out infinite;
}

.hero-shape-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    right: 20%;
    animation-delay: 0s;
}

.hero-shape-2 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    right: 5%;
    animation-delay: -3s;
}

.hero-shape-3 {
    width: 100px;
    height: 100px;
    bottom: 15%;
    left: 15%;
    animation-delay: -6s;
}

.hero-shape-4 {
    width: 50px;
    height: 50px;
    top: 25%;
    left: 25%;
    animation-delay: -9s;
}

@keyframes heroShapeFloat {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(8px, -10px); }
    66% { transform: translate(-5px, 6px); }
}

.career-hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    line-height: 0;
    overflow: hidden;
}

.career-hero-wave svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Career: job listings block (uses generic .section card like index) */
.career-job-section h2 {
    text-align: center;
    display: block;
    width: 100%;
}

.career-job-section h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.career-job-section .subtitle {
    text-align: center;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.1rem;
}

.cv-maker-section.section {
    margin-top: 0;
    margin-bottom: 3rem;
}

.career-section-description {
    font-size: 1.1rem;
    color: #336178;
    opacity: 0.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Job Search and Filters */
.job-search-filters {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 3rem;
    align-items: stretch;
}

.job-filter-main {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.job-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    width: 100%;
    max-width: 100%;
    padding: 0.35rem;
    background: #ffffff;
    border: 2px solid #336178;
    border-radius: var(--radius-button);
    box-shadow: 0 4px 18px rgba(51, 97, 120, 0.08);
}

.filter-btn {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.7rem 1rem;
    border: none;
    background: transparent;
    border-radius: var(--radius-button);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
    color: #336178;
    white-space: nowrap;
}

.filter-btn:hover:not(.active) {
    background: rgba(51, 97, 120, 0.08);
    color: #336178;
}

.filter-btn.active {
    background-color: #ae485e;
    color: #ffffff;
    box-shadow: 0 2px 12px rgba(174, 72, 94, 0.35);
}

.filter-btn:focus-visible {
    outline: 2px solid #ae485e;
    outline-offset: 2px;
}

@media (max-width: 520px) {
    .job-filter-buttons {
        border-radius: var(--radius-button);
        padding: 0.4rem;
        gap: 0.3rem;
    }

    .filter-btn {
        flex: 1 1 calc(50% - 0.2rem);
        padding: 0.65rem 0.5rem;
        font-size: 0.85rem;
    }
}

.job-search-box {
    flex: 1;
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #ffffff;
    padding: 0.8rem 1.2rem;
    border: 1px solid rgba(51, 97, 120, 0.15);
    border-radius: var(--radius-control);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.job-search-box:focus-within {
    border-color: #336178;
    box-shadow: 0 0 0 3px rgba(51, 97, 120, 0.12);
}

.job-search-box .job-search-icon {
    color: #336178;
    font-size: 1rem;
    opacity: 0.88;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.job-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #336178;
}

.job-search-input::placeholder {
    color: #336178;
    opacity: 0.6;
}

/* Job cards — equal-height grid, flex body, actions pinned to bottom */
.job-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    margin-bottom: 3rem;
}

@media (max-width: 1024px) {
    .job-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.job-card {
    background: #ffffff;
    border: 1px solid rgba(51, 97, 120, 0.15);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.job-card-content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.job-card-actions {
    margin-top: 1rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Visibility is managed by JS (initial 6 + filters + view-all toggle). */
.job-cards-grid.jobs-collapsed .job-card.hidden-job {
    opacity: 1;
    transform: translateY(0);
}

.job-cards-grid.jobs-expanded .job-card {
    opacity: 1;
    transform: translateY(0);
}

.company-logo {
    width: 60px;
    height: 60px;
    background: rgba(51, 97, 120, 0.03);
    border-radius: 8px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.job-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #336178;
    margin-bottom: 0.5rem;
}

.job-card .job-title {
    min-height: 3rem;
    line-height: 1.3;
}

.company-name {
    font-size: 1rem;
    color: #336178;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.job-location {
    font-size: 0.9rem;
    color: #336178;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.job-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.job-tag {
    padding: 0.4rem 0.8rem;
    background-color: #e3f2fd;
    color: #336178;
    border-radius: var(--radius-button);
    font-size: 0.8rem;
    font-weight: 500;
}

.job-description {
    font-size: 0.95rem;
    color: #336178;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.job-card .job-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    margin-bottom: 1rem;
    min-height: 6.1em;
}

.job-meta {
    font-size: 0.85rem;
    color: #336178;
    opacity: 0.8;
    margin-top: auto;
    margin-bottom: 0.25rem;
}

.btn-learn-more {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #336178;
    border-radius: var(--radius-button);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    font-weight: 600;
    background-color: #ffffff;
    color: #336178;
}

.btn-learn-more:hover {
    background-color: #336178;
    color: #ffffff;
    border-color: #336178;
}

.btn-apply-now {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ae485e;
    border-radius: var(--radius-button);
    font-size: 0.95rem;
    cursor: pointer;
    font-weight: 600;
    background-color: #ae485e;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.btn-apply-now:hover {
    background-color: #953d52;
    border-color: #953d52;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(174, 72, 94, 0.35);
    transform: scale(1.02);
}

.btn-apply-now:active {
    transform: scale(1);
    filter: brightness(0.96);
}

.btn-apply-now:focus-visible {
    outline: 2px solid #336178;
    outline-offset: 2px;
}

.job-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 1000;
    overflow-y: auto;
    animation: fadeIn 0.25s ease-out;
}

.job-modal-content {
    margin: auto;
    max-width: 800px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    animation: slideDown 0.25s ease-out;
    display: flex;
    flex-direction: column;
}

.job-modal-header {
    padding: 1.75rem 2rem 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.job-modal-header h2 {
    font-size: 1.7rem;
    margin: 0 0 0.5rem;
    color: #336178;
}

.job-modal-meta {
    font-size: 0.9rem;
    color: #336178;
    opacity: 0.8;
}

.job-modal-body {
    padding: 1.5rem 2rem 1.75rem;
}

.job-modal-section {
    margin-bottom: 1.5rem;
}

.job-modal-section:last-of-type {
    margin-bottom: 0;
}

.job-modal-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #336178;
    margin-bottom: 0.5rem;
}

.job-modal-section p {
    font-size: 0.95rem;
    color: #336178;
    opacity: 0.85;
    line-height: 1.6;
}

.job-modal-section ul {
    margin: 0.25rem 0 0 1.25rem;
    padding: 0;
    list-style: disc;
}

.job-modal-section li {
    font-size: 0.95rem;
    color: #336178;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 0.25rem;
}

.job-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999999;
    transition: color 0.2s ease;
}

.job-modal-close:hover {
    color: #333333;
}

.job-modal-inner {
    position: relative;
}

.job-modal-footer {
    padding: 1.25rem 2rem 1.75rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.job-modal-footer .btn-apply-now {
    width: auto;
    min-width: 140px;
    margin-top: 0;
}

.btn-close-modal {
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-button);
    border: 1px solid rgba(51, 97, 120, 0.2);
    background-color: #ffffff;
    color: #336178;
    font-size: 0.95rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-close-modal:hover {
    background-color: rgba(51, 97, 120, 0.05);
}

body.no-scroll {
    overflow: hidden;
}

.view-all-container {
    margin-top: 2rem;
}

.jobs-button-wrapper {
    display: flex;
    justify-content: center;
}

.btn-view-all {
    background-color: #336178;
    color: #ffffff;
    border: 2px solid #336178;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-button);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    font-weight: 600;
}

.btn-view-all:hover {
    background-color: #ffffff;
    color: #336178;
}

/* Industry partners */
.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.partner-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #336178;
    opacity: 0.6;
    padding: 1.5rem 2rem;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid rgba(51, 97, 120, 0.15);
    transition: all 0.3s;
    filter: grayscale(100%);
}

.partner-logo:hover {
    filter: grayscale(0%);
    color: #336178;
    border-color: #336178;
}

/* Career services CTA */
.career-services-cta {
    text-align: center;
    margin-top: 2rem;
}

.btn-explore-services {
    background-color: #ae485e;
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-button);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 500;
}

.btn-explore-services:hover {
    background-color: #8d3a4b;
}

/* Partner With Us Part */
.career-partner-section {
    background-color: #00695c;
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.career-partner-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.career-partner-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    opacity: 0.95;
}

.btn-become-partner {
    background-color: #ae485e;
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-button);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 500;
}

.btn-become-partner:hover {
    background-color: #8d3a4b;
}

/* Partner With Us (Career page) */
.partner-section {
    background: linear-gradient(135deg, #336178 0%, #2a4f62 100%);
    color: #ffffff;
    padding: 5.5rem 2rem;
}

.partner-container {
    max-width: var(--layout-max-width);
    margin: 0 auto;
    text-align: center;
}

.partner-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
}

.partner-text {
    max-width: 700px;
    margin: 1.25rem auto 0;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

.partner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.9rem;
    padding: 0.875rem 2rem;
    background-color: #c44d5a;
    color: #ffffff;
    border-radius: var(--radius-button);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.partner-btn:hover {
    background-color: #a53f4c;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .career-hero-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .career-hero-text {
        max-width: 100%;
    }
    
    .career-hero-features {
        justify-content: center;
    }
    
    .career-hero-visual {
        flex: 0 0 auto;
        min-height: 180px;
    }
}

@media (max-width: 768px) {
    .career-hero {
        min-height: auto;
    }
    
    .career-hero-inner {
        padding: 2.5rem 1.5rem 3.5rem;
    }
    
    .career-hero-title {
        font-size: 1.9rem;
    }
    
    .career-hero-subtitle {
        font-size: 1rem;
    }
    
    .career-hero-features {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .career-hero-visual {
        min-height: 140px;
    }
    
    .hero-shape {
        opacity: 0.6;
    }
    
    .career-job-section.section {
        padding: 1.5rem 1.25rem 2rem;
    }

    .career-job-section h2 {
        font-size: 1.75rem;
    }
    
    .job-search-filters {
        flex-direction: column;
    }
    
    .job-search-box {
        width: 100%;
    }
    
    .job-cards-grid {
        grid-template-columns: 1fr;
    }

    .partners-logos {
        gap: 1.5rem;
    }

    .partner-logo {
        font-size: 1.2rem;
        padding: 1rem 1.5rem;
    }

    .partner-section {
        padding: 3.75rem 1.5rem;
    }

    .partner-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Schedule Section */
.schedule-section {
    margin-top: 1.25rem;
}

.schedule-card {
    background: linear-gradient(135deg, rgba(51, 97, 120, 0.05) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    border: 1px solid rgba(51, 97, 120, 0.15);
    box-shadow: 0 4px 15px rgba(51, 97, 120, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.schedule-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(51, 97, 120, 0.15);
}

.schedule-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.schedule-content {
    flex: 1;
}

.schedule-content h3 {
    font-size: 1.3rem;
    color: #336178;
    margin-bottom: 0.5rem;
}

.schedule-content p {
    color: #336178;
    opacity: 0.8;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.btn-schedule {
    display: inline-block;
    background: linear-gradient(135deg, #336178 0%, #2a4f62 100%);
    color: #ffffff;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-button);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-schedule:hover {
    background: linear-gradient(135deg, #2a4f62 0%, #336178 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(51, 97, 120, 0.3);
}

/* Schedule Page */
.schedule-main {
    padding: 2.4rem 1.5rem 2.8rem;
    background: transparent;
}

.schedule-page-container {
    max-width: 100%;
    margin: 0 auto;
}

.schedule-page-title {
    font-size: clamp(2rem, 4vw, 2.6rem);
    color: #254a5d;
    margin-bottom: 0.45rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.schedule-page-subtitle {
    font-size: 1.02rem;
    color: #476070;
    opacity: 0.9;
    text-align: center;
    margin-bottom: 2rem;
}

.schedule-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.3rem;
    margin-top: 1.2rem;
}

.schedule-calendar-section,
.schedule-form-section {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border-radius: 18px;
    padding: 1.2rem 1.2rem 1.3rem;
    border: 1px solid rgba(51, 97, 120, 0.15);
    box-shadow: 0 12px 30px rgba(33, 63, 78, 0.10);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.schedule-calendar-section:hover,
.schedule-form-section:hover {
    box-shadow: 0 16px 36px rgba(33, 63, 78, 0.14);
    border-color: rgba(51, 97, 120, 0.24);
}

.schedule-calendar-section h2,
.schedule-form-section h2 {
    font-size: 1.15rem;
    color: #284e61;
    margin-bottom: 0.9rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(51, 97, 120, 0.14);
}

.week-calendar {
    width: 100%;
    border: 1px solid rgba(51, 97, 120, 0.16);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(51, 97, 120, 0.10);
}

.calendar-header-row {
    display: grid;
    grid-template-columns: 80px repeat(6, 1fr);
    background: linear-gradient(135deg, #2f5d73 0%, #274b5d 100%);
    color: #ffffff;
}

.time-column-header {
    padding: 0.72rem 0.4rem;
    font-weight: 600;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.day-header {
    padding: 0.72rem 0.4rem;
    text-align: center;
    font-weight: 700;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.day-header:last-child {
    border-right: none;
}

.calendar-time-slots {
    max-height: 640px;
    overflow-y: auto;
    overflow-x: hidden;
}

.time-row {
    display: grid;
    grid-template-columns: 70px repeat(6, 1fr);
    border-bottom: 1px solid rgba(51, 97, 120, 0.1);
    min-height: 42px;
    position: relative;
}

.time-row:nth-child(even) .day-cell {
    background: #fcfeff;
}

.time-cell {
    padding: 0.3rem 0.45rem;
    border-right: 1px solid rgba(51, 97, 120, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.73rem;
    color: #2e5568;
    background: rgba(51, 97, 120, 0.05);
    font-weight: 600;
}

.day-cell {
    padding: 0;
    border-right: 1px solid rgba(51, 97, 120, 0.1);
    min-height: 42px;
    background: #ffffff;
    position: relative;
    overflow: visible;
}

.day-cell:last-child {
    border-right: none;
}

.subject-block {
    font-size: 0.68rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
    padding: 0.3rem 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.subject-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 0.95;
}

/* Schedule Form */
.schedule-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.time-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.form-group label {
    font-weight: 600;
    color: #2e5568;
    font-size: 0.85rem;
}

.form-hint {
    font-weight: 400;
    color: #336178;
    opacity: 0.6;
    font-size: 0.75rem;
}

.color-picker-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.color-picker-row input[type="color"] {
    width: 40px;
    height: 40px;
    padding: 3px;
    border-radius: 12px;
    border: 1px solid rgba(51, 97, 120, 0.24);
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(33, 63, 78, 0.10);
}

.color-picker-row input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker-row input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 9px;
}

.color-picker-row input[type="color"]::-moz-color-swatch {
    border: none;
    border-radius: 9px;
}

.color-examples {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.color-swatch {
    width: 18px;
    height: 18px;
    border-radius: var(--radius-button);
    border: 1px solid rgba(51, 97, 120, 0.22);
    background: #ffffff;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 4px 10px rgba(33, 63, 78, 0.10);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.color-swatch:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(33, 63, 78, 0.14);
}

.color-swatch.is-selected {
    border-color: rgba(40, 78, 97, 0.7);
    box-shadow: 0 0 0 3px rgba(51, 97, 120, 0.16);
}

.form-group input,
.form-group select {
    padding: 0.64rem 0.72rem;
    border: 1px solid rgba(51, 97, 120, 0.24);
    border-radius: var(--radius-control);
    font-size: 0.88rem;
    color: #2c4f61;
    background: #ffffff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #336178;
    box-shadow: 0 0 0 3px rgba(51, 97, 120, 0.1);
}

/* Days Checkbox Group */
.days-checkbox-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    padding: 0.78rem;
    background: rgba(51, 97, 120, 0.035);
    border-radius: var(--radius-control);
    border: 1px solid rgba(51, 97, 120, 0.12);
}

.day-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: var(--radius-control);
    transition: all 0.2s ease;
    user-select: none;
}

.day-checkbox-label:hover {
    background: rgba(51, 97, 120, 0.05);
}

.day-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #336178;
    flex-shrink: 0;
}

.day-checkbox-label span {
    font-size: 0.85rem;
    color: #336178;
    font-weight: 500;
}

.day-checkbox:checked + span {
    color: #336178;
    font-weight: 600;
}

@media (max-width: 640px) {
    .time-fields-row {
        grid-template-columns: 1fr;
    }

    .days-checkbox-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.form-group input[type="color"] {
    height: 40px;
    cursor: pointer;
}

.btn-add-subject {
    background: linear-gradient(135deg, #2f5d73 0%, #274b5d 100%);
    color: #ffffff;
    padding: 0.78rem;
    border: none;
    border-radius: var(--radius-button);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 18px rgba(47, 93, 115, 0.22);
}

.btn-add-subject:hover {
    background: linear-gradient(135deg, #284e61 0%, #2f5d73 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(47, 93, 115, 0.30);
}

/* Subjects List */
.subjects-list-section {
    margin-top: 1.15rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(51, 97, 120, 0.15);
}

.subjects-list-section h3 {
    font-size: 1rem;
    color: #2e5568;
    margin-bottom: 0.8rem;
}

.subjects-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 250px;
    overflow-y: auto;
}

.subject-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.74rem;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid rgba(51, 97, 120, 0.12);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(51, 97, 120, 0.07);
}

.subject-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 14px rgba(51, 97, 120, 0.14);
    border-color: rgba(51, 97, 120, 0.24);
}

.subject-item-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
}

.subject-item-info {
    flex: 1;
}

.subject-item-name {
    font-weight: 600;
    color: #336178;
    margin-bottom: 0.15rem;
    font-size: 0.85rem;
}

.subject-item-details {
    font-size: 0.75rem;
    color: #336178;
    opacity: 0.7;
}

.btn-delete-subject {
    background: #ae485e;
    color: #ffffff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-button);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.btn-delete-subject:hover {
    background: #8d3a4b;
}

.btn-edit-subject {
    margin-right: 0.35rem;
    background: #336178;
    color: #ffffff;
    border: none;
    width: 56px;
    height: 28px;
    padding: 0;
    border-radius: var(--radius-button);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 6px rgba(51, 97, 120, 0.22);
}

.btn-edit-subject:hover {
    background: #2a4f62;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(51, 97, 120, 0.28);
}

.btn-edit-subject:active {
    transform: translateY(0);
}

.no-subjects {
    text-align: center;
    color: #336178;
    opacity: 0.6;
    padding: 2rem;
    font-style: italic;
}

.btn-clear-all {
    margin-top: 0.8rem;
    background: linear-gradient(135deg, #ae485e 0%, #9a3f53 100%);
    color: #ffffff;
    border: none;
    padding: 0.66rem 1.2rem;
    border-radius: var(--radius-button);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
    width: 100%;
    box-shadow: 0 6px 14px rgba(174, 72, 94, 0.2);
}

.btn-clear-all:hover {
    background: linear-gradient(135deg, #9a3f53 0%, #8d3a4b 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(174, 72, 94, 0.28);
}

/* Footer - ADA University style */
.site-footer {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #2F5D73;
    color: #ffffff;
    padding: 3.5rem 2rem 0;
    margin-top: 4rem;
    width: 100%;
}

.footer-content {
    max-width: var(--layout-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    padding-bottom: 2.5rem;
}

.footer-column {
    text-align: left;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    margin-bottom: 1rem;
    color: #ffffff;
    line-height: 1.4;
}

.footer-column-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
}

.footer-column-logo .footer-logo {
    flex-shrink: 0;
}

.footer-column-logo .footer-logo-image {
    margin-bottom: 0;
}

.footer-logo-image {
    width: 150px;
    height: auto;
    margin-bottom: 1rem;
    display: block;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

.footer-social h4 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
}

.footer-social {
    text-align: left;
}

.social-icons {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.75rem;
    justify-content: flex-start;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s, border-color 0.3s;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

.footer-links a:hover {
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.footer-contact {
    margin-bottom: 1.25rem;
}

.footer-contact-item,
.footer-contact-address {
    margin-bottom: 0.4rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact-item a:hover {
    color: #ffffff;
}

.footer-contact-address {
    margin-top: 0.35rem;
}

.btn-apply-footer {
    display: inline-block;
    background: #ffffff;
    color: #2F5D73;
    padding: 0.7rem 1.6rem;
    border-radius: var(--radius-button);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    border: 1px solid transparent;
}

.btn-apply-footer:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #2F5D73;
}

.footer-bottom {
    background-color: #264a5a;
    padding: 0.875rem 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.5;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .programs-hero-columns {
        flex-direction: column;
        gap: 1rem;
    }

    .programs-hero-right {
        flex: 0 0 auto;
        width: 100%;
        justify-content: flex-start;
    }

    .schedule-layout {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-column-logo {
        flex-direction: row;
        align-items: center;
    }

    .footer-logo-image {
        width: 130px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 2.5rem 1.5rem 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
        padding-bottom: 2rem;
    }

    .footer-column {
        text-align: center;
    }

    .footer-column-logo {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-column-logo .footer-logo-image {
        margin-bottom: 0;
    }

    .footer-column-logo .footer-logo {
        display: flex;
        justify-content: center;
    }

    .footer-logo-image {
        width: 110px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-social {
        text-align: center;
    }

    .footer-social,
    .footer-column-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-contact {
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-bottom {
        padding: 1rem 1.5rem;
    }
    .schedule-page-title {
        font-size: 2rem;
    }
    
    .schedule-card {
        flex-direction: column;
        text-align: center;
    }
    
    .calendar-header-row,
    .time-row {
        grid-template-columns: 50px repeat(6, 1fr);
    }
    
    .time-column-header,
    .time-cell {
        width: 50px;
    }

    .schedule-main {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 480px) {
    .calendar-header-row,
    .time-row {
        grid-template-columns: 42px repeat(6, minmax(0, 1fr));
    }

    .time-column-header,
    .time-cell {
        padding-left: 0.2rem;
        padding-right: 0.2rem;
        font-size: 0.68rem;
    }

    .day-header {
        font-size: 0.65rem;
        padding: 0.55rem 0.2rem;
    }

    .subject-block {
        font-size: 0.6rem;
        padding: 0.2rem 0.25rem;
    }
}

/* ===== ADA OFFICIAL FOOTER – EXACT MATCH ===== */

.footer-column-1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* LOGO */
.footer-logo-image {
    width: 150px;          /* ADA ölçüsü */
    margin-bottom: 12px;
}

/* CONNECT WITH US */
.footer-column-1 .footer-column-title {
    font-size: 20px;
    font-weight: 600;
    margin: 4px 0 16px 0;
}

/* ICON CONTAINER */
.footer-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;             /* ADA-da ikonlar arası məsafə */
}

/* ICON LINKS – DƏYİRMİ, BACKGROUND YOX */
.footer-social-icons a {
    background: none !important;
    width: auto;
    height: auto;
    padding: 0;
}

/* ICONLARIN ÖZÜ */
.footer-social-icons i,
.footer-social-icons svg,
.footer-social-icons img {
    font-size: 22px;       /* ADA ölçüsü */
    width: 22px;
    height: 22px;
    color: #ffffff;
    fill: #ffffff;
}

/* ============================================================================
   CV MAKER SECTION - Professional Resume Builder
   ============================================================================ */

.cv-maker-section {
    background: linear-gradient(180deg, rgba(51, 97, 120, 0.02) 0%, rgba(174, 72, 94, 0.01) 100%);
    padding: 4rem 2rem;
    margin: 2rem 0;
}

.cv-maker-container {
    max-width: var(--layout-max-width);
    margin: 0 auto;
}

body.career-page .cv-maker-container {
    max-width: 100%;
}

body.career-page .cv-maker-section {
    margin-top: 0;
    margin-bottom: 3rem;
}

/* Career CV area: match About card shell (overrides gradient + heavy padding from .cv-maker-section) */
body.career-page .cv-maker-section.section {
    background: var(--surface-card) !important;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    box-shadow: var(--about-content-card-shadow);
    padding: var(--about-content-card-padding-y) var(--about-content-card-padding-x) !important;
    backdrop-filter: none;
}

body.career-page .cv-maker-form-wrapper,
body.career-page .cv-maker-preview-wrapper {
    backdrop-filter: none;
    border: 1px solid var(--border-soft);
    box-shadow: var(--about-content-card-shadow);
}

body.career-page .cv-maker-starter {
    border: 1px dashed rgba(51, 97, 120, 0.22);
    box-shadow: none;
}

.cv-maker-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.cv-maker-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #336178;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.cv-maker-title::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #336178 0%, #ae485e 100%);
    border-radius: 2px;
}

.cv-maker-subtitle {
    font-size: 1.1rem;
    color: #336178;
    opacity: 0.75;
    line-height: 1.6;
    max-width: 700px;
    margin: 2rem auto 0;
}

.cv-maker-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #336178;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv-maker-close-btn:hover {
    background-color: rgba(51, 97, 120, 0.1);
    color: #ae485e;
}

/* CV Maker Starter (Collapsed State) */
.cv-maker-starter {
    background: rgba(51, 97, 120, 0.03);
    border: 2px dashed rgba(51, 97, 120, 0.25);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.cv-maker-starter:hover {
    background: rgba(51, 97, 120, 0.05);
    border-color: rgba(51, 97, 120, 0.4);
    transform: translateY(-2px);
}

.cv-maker-starter-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #336178;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.cv-maker-starter-content h2::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #336178 0%, #ae485e 100%);
    border-radius: 2px;
}

.cv-maker-starter-content p {
    font-size: 1.1rem;
    color: #336178;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.btn-start-cv {
    background: linear-gradient(135deg, #336178 0%, #ae485e 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-button);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(51, 97, 120, 0.2);
}

.btn-start-cv:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(51, 97, 120, 0.3);
}

.btn-start-cv i {
    font-size: 1.2rem;
}

/* Main CV Maker Content Layout */
.cv-maker-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: flex-start;
}

@media (max-width: 1200px) {
    .cv-maker-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Form Wrapper */
.cv-maker-form-wrapper {
    background: rgba(255, 255, 255, 0.85);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(51, 97, 120, 0.12);
    box-shadow: 0 4px 20px rgba(51, 97, 120, 0.1);
    backdrop-filter: blur(10px);
}

/* Template Selection */
.cv-maker-templates {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(51, 97, 120, 0.08);
}

.template-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #336178;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.template-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.template-btn {
    background: #ffffff;
    border: 2px solid rgba(51, 97, 120, 0.15);
    padding: 1rem;
    border-radius: var(--radius-button);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #336178;
    font-weight: 500;
    font-size: 0.9rem;
}

.template-btn i {
    font-size: 1.5rem;
    color: #ae485e;
}

.template-btn:hover {
    border-color: #ae485e;
    background: rgba(174, 72, 94, 0.05);
    transform: translateY(-2px);
}

.template-btn.active {
    background: linear-gradient(135deg, #336178 0%, rgba(51, 97, 120, 0.8) 100%);
    border-color: #336178;
    color: #ffffff;
}

.template-btn.active i {
    color: #ae485e;
}

@media (max-width: 600px) {
    .template-buttons {
        grid-template-columns: 1fr;
    }
}

/* Progress Indicator */
.cv-maker-progress {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(174, 72, 94, 0.05);
    border-radius: 8px;
    border-left: 4px solid #ae485e;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.progress-header label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #336178;
}

.progress-percentage {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ae485e;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(51, 97, 120, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #336178 0%, #ae485e 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Form Styling */
.cv-maker-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-section {
    border: none;
    padding: 1.5rem;
    background: rgba(51, 97, 120, 0.03);
    border-radius: 8px;
    border-left: 4px solid #336178;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #336178;
    margin-bottom: 1.5rem;
    padding: 0;
    border: none;
    background: none;
}

.section-title i {
    color: #ae485e;
    font-size: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .form-group:last-child {
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

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

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #336178;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid rgba(51, 97, 120, 0.15);
    border-radius: var(--radius-control);
    font-family: inherit;
    font-size: 0.95rem;
    color: #336178;
    transition: border-color 0.3s, box-shadow 0.3s, background-color 0.2s;
    background: #ffffff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #336178;
    opacity: 0.5;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ae485e;
    box-shadow: 0 0 0 3px rgba(174, 72, 94, 0.1);
    background: rgba(174, 72, 94, 0.02);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Add/Remove Item Buttons */
.btn-add-item {
    background: rgba(51, 97, 120, 0.08);
    border: 2px dashed rgba(51, 97, 120, 0.25);
    color: #336178;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-button);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-add-item:hover {
    background: rgba(51, 97, 120, 0.12);
    border-color: #336178;
    color: #336178;
    transform: translateY(-2px);
}

.btn-add-item i {
    font-size: 0.9rem;
}

.btn-remove-skill {
    background: rgba(174, 72, 94, 0.1);
    border: none;
    color: #ae485e;
    padding: 0.5rem;
    border-radius: var(--radius-button);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-skill:hover {
    background: rgba(174, 72, 94, 0.2);
    transform: scale(1.1);
}

.btn-remove-item {
    background: rgba(174, 72, 94, 0.1);
    border: 1px solid rgba(174, 72, 94, 0.3);
    color: #ae485e;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-button);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    align-self: flex-start;
}

.btn-remove-item:hover {
    background: rgba(174, 72, 94, 0.2);
    border-color: #ae485e;
}

.btn-remove-item i {
    margin-right: 0.3rem;
}

/* Skills Input Container */
.skills-input-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.skill-input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.skill-input {
    flex: 1;
}

/* Form Actions */
.form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(51, 97, 120, 0.08);
}

.btn-generate-cv {
    background: linear-gradient(135deg, #336178 0%, #2a4f62 100%);
    color: #ffffff;
    border: none;
    padding: 1rem;
    border-radius: var(--radius-button);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(51, 97, 120, 0.2);
}

.btn-generate-cv:hover {
    background: linear-gradient(135deg, #2a4f62 0%, #1f3a47 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(51, 97, 120, 0.3);
}

.btn-clear-form {
    background: rgba(174, 72, 94, 0.1);
    color: #ae485e;
    border: 1px solid rgba(174, 72, 94, 0.2);
    padding: 1rem;
    border-radius: var(--radius-button);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-clear-form:hover {
    background: rgba(174, 72, 94, 0.15);
    border-color: #ae485e;
    transform: translateY(-2px);
}

/* Preview Wrapper */
.cv-maker-preview-wrapper {
    background: rgba(255, 255, 255, 0.85);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(51, 97, 120, 0.12);
    box-shadow: 0 4px 20px rgba(51, 97, 120, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 100px;
}

@media (max-width: 1200px) {
    .cv-maker-preview-wrapper {
        position: static;
        top: auto;
    }
}

.cv-preview-container {
    background: #ffffff;
    border: 1px solid rgba(51, 97, 120, 0.12);
    border-radius: 8px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 800px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
    animation: slideInPreview 0.5s ease;
}

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

.cv-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #336178;
    opacity: 0.5;
    padding: 2rem;
    text-align: center;
}

.cv-preview-placeholder i {
    font-size: 3rem;
    color: #ae485e;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.cv-preview-placeholder p {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.cv-preview-placeholder small {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* CV Templates Styling */

/* Modern Template */
.cv-preview.modern {
    padding: 2rem;
    font-size: 0.9rem;
}

.cv-preview.modern .cv-header {
    border-bottom: 3px solid #336178;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.cv-preview.modern .cv-photo-section {
    flex-shrink: 0;
}

.cv-preview.modern .cv-profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #336178;
}

.cv-preview.modern .cv-header-info {
    flex: 1;
}

.cv-preview.modern .cv-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #336178;
    margin-bottom: 0.5rem;
}

.cv-preview.modern .cv-contact {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #336178;
    opacity: 0.8;
}

.cv-preview.modern .cv-contact span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.cv-preview.modern .cv-section {
    margin-bottom: 1.5rem;
}

.cv-preview.modern .cv-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #336178;
    border-left: 4px solid #ae485e;
    padding-left: 0.75rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cv-preview.modern .cv-item {
    margin-bottom: 1.2rem;
}

.cv-preview.modern .cv-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
}

.cv-preview.modern .cv-item-title {
    font-weight: 700;
    color: #336178;
    font-size: 0.95rem;
}

.cv-preview.modern .cv-item-subtitle {
    color: #ae485e;
    font-weight: 600;
    font-size: 0.9rem;
}

.cv-preview.modern .cv-item-meta {
    font-size: 0.85rem;
    color: #336178;
    opacity: 0.7;
    margin-bottom: 0.3rem;
}

.cv-preview.modern .cv-item-description {
    font-size: 0.85rem;
    color: #336178;
    opacity: 0.8;
    line-height: 1.5;
}

.cv-preview.modern .cv-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.cv-preview.modern .cv-skill-tag {
    background: rgba(174, 72, 94, 0.1);
    color: #ae485e;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Classic Template */
.cv-preview.classic {
    padding: 2.5rem;
    font-size: 0.9rem;
    font-family: 'Georgia', serif;
}

.cv-preview.classic .cv-header {
    text-align: center;
    border-bottom: 2px solid #336178;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.cv-preview.classic .cv-name {
    font-size: 1.9rem;
    font-weight: 700;
    color: #336178;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.cv-preview.classic .cv-contact {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #336178;
    opacity: 0.8;
}

.cv-preview.classic .cv-contact span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.cv-preview.classic .cv-section {
    margin-bottom: 1.5rem;
}

.cv-preview.classic .cv-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #336178;
    border-bottom: 1px solid #336178;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.cv-preview.classic .cv-item {
    margin-bottom: 1.2rem;
}

.cv-preview.classic .cv-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.2rem;
}

.cv-preview.classic .cv-item-title {
    font-weight: 700;
    color: #336178;
    font-size: 0.95rem;
}

.cv-preview.classic .cv-item-subtitle {
    color: #336178;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.8;
}

.cv-preview.classic .cv-item-meta {
    font-size: 0.85rem;
    color: #336178;
    opacity: 0.7;
    margin-bottom: 0.3rem;
    font-style: italic;
}

.cv-preview.classic .cv-item-description {
    font-size: 0.85rem;
    color: #336178;
    opacity: 0.8;
    line-height: 1.6;
}

.cv-preview.classic .cv-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.cv-preview.classic .cv-skill-tag {
    color: #336178;
    font-weight: 500;
    font-size: 0.85rem;
}

.cv-preview.classic .cv-skill-tag::after {
    content: ' •';
    margin-left: 0.3rem;
}

.cv-preview.classic .cv-skill-tag:last-child::after {
    content: '';
}

/* Minimal Template */
.cv-preview.minimal {
    padding: 2rem;
    font-size: 0.9rem;
    background: #ffffff;
}

.cv-preview.minimal .cv-header {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.cv-preview.minimal .cv-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #336178;
    margin-bottom: 0.3rem;
}

.cv-preview.minimal .cv-contact {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #336178;
    opacity: 0.7;
}

.cv-preview.minimal .cv-contact span {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.cv-preview.minimal .cv-section {
    margin-bottom: 1.5rem;
}

.cv-preview.minimal .cv-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #336178;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 0.5rem;
}

.cv-preview.minimal .cv-item {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.cv-preview.minimal .cv-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.2rem;
}

.cv-preview.minimal .cv-item-title {
    font-weight: 600;
    color: #336178;
    font-size: 0.9rem;
}

.cv-preview.minimal .cv-item-subtitle {
    color: #336178;
    font-size: 0.85rem;
    opacity: 0.8;
}

.cv-preview.minimal .cv-item-meta {
    font-size: 0.8rem;
    color: #336178;
    opacity: 0.6;
    margin-bottom: 0.2rem;
}

.cv-preview.minimal .cv-item-description {
    font-size: 0.8rem;
    color: #336178;
    opacity: 0.75;
    line-height: 1.4;
}

.cv-preview.minimal .cv-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cv-preview.minimal .cv-skill-tag {
    background: none;
    color: #336178;
    font-size: 0.8rem;
    opacity: 0.8;
    padding: 0;
}

.cv-preview.minimal .cv-skill-tag::after {
    content: ', ';
    margin-right: 0.3rem;
}

.cv-preview.minimal .cv-skill-tag:last-child::after {
    content: '';
}

/* Download Button */
.cv-download-actions {
    display: flex;
    gap: 1rem;
}

.btn-download-pdf {
    flex: 1;
    background: linear-gradient(135deg, #ae485e 0%, #8d3a4b 100%);
    color: #ffffff;
    border: none;
    padding: 1rem;
    border-radius: var(--radius-button);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(174, 72, 94, 0.2);
}

.btn-download-pdf:hover:not(:disabled) {
    background: linear-gradient(135deg, #8d3a4b 0%, #7a2f40 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(174, 72, 94, 0.3);
}

.btn-download-pdf:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cv-maker-content {
        grid-template-columns: 1fr;
    }

    .cv-maker-form-wrapper,
    .cv-maker-preview-wrapper {
        padding: 2rem;
    }

    .cv-maker-title {
        font-size: 2rem;
    }

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

@media (max-width: 768px) {
    .cv-maker-section {
        padding: 2rem 1rem;
    }

    .cv-maker-title {
        font-size: 1.75rem;
    }

    .cv-maker-subtitle {
        font-size: 1rem;
    }

    .cv-maker-form-wrapper,
    .cv-maker-preview-wrapper {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

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

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

    .cv-preview-container {
        min-height: 400px;
        max-height: 600px;
    }

    .cv-preview.modern,
    .cv-preview.classic,
    .cv-preview.minimal {
        padding: 1.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .cv-maker-section {
        padding: 1.5rem 1rem;
    }

    .cv-maker-header {
        margin-bottom: 2rem;
    }

    .cv-maker-title {
        font-size: 1.5rem;
    }

    .cv-maker-title::after {
        width: 80px;
    }

    .cv-maker-subtitle {
        font-size: 0.95rem;
    }

    .cv-maker-form-wrapper,
    .cv-maker-preview-wrapper {
        padding: 1rem;
        border-radius: 12px;
    }

    .form-section {
        padding: 1rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 0.6rem;
    }

    .btn-generate-cv,
    .btn-clear-form,
    .btn-download-pdf {
        padding: 0.8rem;
        font-size: 0.85rem;
    }

    .cv-preview-container {
        min-height: 300px;
        max-height: 500px;
    }
}

/* Program FAQ layout (undergraduate, graduate, phd) — one level visible at a time */
.program-faq-shell {
    padding: 1.15rem 1.2rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(51, 97, 120, 0.16);
    background: #ffffff;
    box-shadow: 0 4px 28px rgba(51, 97, 120, 0.08);
}

.program-faq-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
    padding: 0.4rem;
    border-radius: var(--radius-button);
    background: rgba(51, 97, 120, 0.07);
    border: 1px solid rgba(51, 97, 120, 0.1);
}

.program-faq-tab {
    flex: 1 1 auto;
    min-width: 7.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-button);
    border: 1px solid transparent;
    background: #ffffff;
    color: #336178;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.015em;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.program-faq-tab:hover {
    border-color: rgba(174, 72, 94, 0.4);
    box-shadow: 0 2px 10px rgba(51, 97, 120, 0.09);
    transform: translateY(-1px);
}

.program-faq-tab[aria-selected="true"] {
    background: #336178;
    border-color: #336178;
    color: #ffffff;
    box-shadow: 0 3px 14px rgba(51, 97, 120, 0.2);
}

.program-faq-tab:focus-visible {
    outline: 2px solid #ae485e;
    outline-offset: 2px;
}

.program-faq-board {
    display: block;
}

.program-faq-group {
    display: none;
    background: rgba(51, 97, 120, 0.04);
    border: 1px solid rgba(51, 97, 120, 0.16);
    border-radius: var(--radius-button);
    padding: 1rem 1.05rem 1.1rem;
}

.program-faq-group.is-active {
    display: block;
    animation: program-faq-panel-in 0.35s ease;
}

/* Admissions deep link under FAQ (updates with active tab) */
.program-faq-more {
    margin-top: 1.5rem;
    padding-top: 0.15rem;
}

.program-faq-more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0.9rem 1.35rem;
    border-radius: 12px;
    font-size: 0.98rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(135deg, #ae485e 0%, rgba(174, 72, 94, 0.92) 100%);
    box-shadow: 0 4px 14px rgba(174, 72, 94, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, opacity 0.22s ease;
}

.program-faq-more-link:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(174, 72, 94, 0.42);
    color: #ffffff;
}

.program-faq-more-link:active {
    transform: translateY(0);
    filter: brightness(0.98);
}

.program-faq-more-link:focus-visible {
    outline: 2px solid #336178;
    outline-offset: 3px;
}

.program-faq-more-arrow {
    font-size: 1.1em;
    line-height: 1;
    transition: transform 0.2s ease;
}

.program-faq-more-link:hover .program-faq-more-arrow {
    transform: translateX(4px);
}

.program-faq-more.program-faq-more--transitioning .program-faq-more-link {
    opacity: 0.4;
    pointer-events: none;
}

@keyframes program-faq-panel-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.program-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.program-faq-item {
    background: #ffffff;
    border: 1px solid rgba(51, 97, 120, 0.18);
    border-radius: var(--radius-button);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.program-faq-item:hover {
    border-color: rgba(174, 72, 94, 0.42);
    box-shadow: 0 4px 14px rgba(51, 97, 120, 0.08);
}

.program-faq-item.active {
    border-color: rgba(51, 97, 120, 0.32);
    box-shadow: 0 2px 16px rgba(51, 97, 120, 0.1);
}

.program-faq-question {
    width: 100%;
    border: 0;
    background: #ffffff;
    color: #336178;
    padding: 0.88rem 1.05rem;
    font-weight: 600;
    font-size: 0.92rem;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.program-faq-item.active .program-faq-question {
    background: rgba(51, 97, 120, 0.06);
}

.program-faq-question:focus-visible {
    outline: 2px solid #ae485e;
    outline-offset: -2px;
}

.program-faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    height: 1.65rem;
    border-radius: var(--radius-button);
    background: rgba(174, 72, 94, 0.12);
    color: #ae485e;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
}

.program-faq-item.active .program-faq-icon {
    background: #ae485e;
    color: #ffffff;
}

.program-faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.05rem;
    color: #336178;
    line-height: 1.56;
    transition: max-height 0.3s ease, padding 0.22s ease;
}

.program-faq-answer p {
    margin: 0;
    font-size: 0.9rem;
    text-align: justify;
    text-wrap: pretty;
}

.program-faq-answer > * + * {
    margin-top: 0.45rem;
}

.program-faq-answer ul {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.9rem;
    text-align: justify;
    text-wrap: pretty;
}

.program-faq-answer ul li {
    margin-bottom: 0.4rem;
}

.program-faq-answer ul li:last-child {
    margin-bottom: 0;
}

.program-faq-answer ul ul {
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.program-faq-item.active .program-faq-answer {
    max-height: 1200px;
    padding: 0 1.05rem 0.95rem;
}

@media (max-width: 600px) {
    .program-faq-shell {
        padding: 1rem;
    }

    .join-us-section .program-faq-ai-hint {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* --- AI chatbox (ADA SITE brand: teal + accent) --- */
.chatbox {
    position: fixed;
    bottom: calc(90px + env(safe-area-inset-bottom, 0px));
    right: max(20px, env(safe-area-inset-right, 0px));
    width: 480px;
    max-width: calc(100vw - 40px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
    height: 500px;
    max-height: min(560px, calc(100vh - 120px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
    background: var(--surface-card);
    border: 1px solid rgba(51, 97, 120, 0.16);
    border-radius: 16px;
    box-shadow: 0 4px 28px rgba(51, 97, 120, 0.14);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: inherit;
    color: var(--brand-blue);
}

.chatbox.active {
    display: flex;
}

.chatbox-header {
    flex-shrink: 0;
    background: linear-gradient(135deg, #336178 0%, var(--brand-blue-deep) 100%);
    color: var(--brand-white);
    padding: 0.95rem 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    cursor: default;
    border-bottom: 2px solid rgba(174, 72, 94, 0.4);
    box-shadow: 0 2px 12px rgba(51, 97, 120, 0.15);
}

.chatbox-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

/* Chat panel header title */
.chatbox-brand-label {
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
    line-height: 1.25;
}

.chatbox-title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-button);
    background: rgba(255, 255, 255, 0.14);
    font-size: 1rem;
}

.chatbox-toggle {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--brand-white);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-button);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.chatbox-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chatbox-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.chatbox-language-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1rem 0.45rem;
    background: var(--surface-card);
    border-bottom: 1px solid var(--border-soft);
}

.chatbox-lang-btn {
    border: 1px solid rgba(51, 97, 120, 0.2);
    border-radius: var(--radius-button);
    background: #fafcfd;
    color: var(--brand-blue);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    min-width: 48px;
    height: 30px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.chatbox-lang-btn:hover {
    border-color: rgba(174, 72, 94, 0.4);
}

.chatbox-lang-btn.is-active {
    background: #336178;
    border-color: #336178;
    color: var(--brand-white);
}

.chatbox-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.05rem;
    background: linear-gradient(180deg, rgba(51, 97, 120, 0.04) 0%, var(--surface-page) 45%);
}

.chatbox-messages .chat-message {
    margin-bottom: 1rem;
    display: flex;
}

.chatbox-messages .user-message {
    justify-content: flex-end;
}

.chatbox-messages .ai-message {
    justify-content: flex-start;
}

.chatbox-messages .message-content {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-button);
    word-wrap: break-word;
    line-height: 1.5;
    font-size: 0.92rem;
}

.chatbox-messages .user-message .message-content {
    background: linear-gradient(135deg, #336178 0%, var(--brand-blue-deep) 100%);
    color: var(--brand-white);
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 10px rgba(51, 97, 120, 0.2);
}

.chatbox-messages .ai-message .message-content {
    background: var(--surface-card);
    color: var(--brand-blue);
    border: 1px solid var(--border-soft);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(51, 97, 120, 0.06);
}

.chatbox-input {
    flex-shrink: 0;
    display: flex;
    padding: 0.85rem 1rem;
    background: var(--surface-card);
    border-top: 1px solid var(--border-soft);
    gap: 0.55rem;
    align-items: center;
}

.chatbox-input input {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(51, 97, 120, 0.2);
    border-radius: var(--radius-control);
    padding: 0.65rem 1rem;
    outline: none;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--brand-blue);
    background: #fafcfd;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chatbox-input input::placeholder {
    color: rgba(51, 97, 120, 0.45);
}

.chatbox-input input:focus {
    border-color: var(--brand-accent);
    background: var(--surface-card);
    box-shadow: 0 0 0 3px rgba(174, 72, 94, 0.12);
}

.chatbox-input button {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--brand-accent) 0%, #8d3a4b 100%);
    color: var(--brand-white);
    border: none;
    border-radius: var(--radius-button);
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 2px 10px rgba(174, 72, 94, 0.3);
}

.chatbox-input button .chatbox-send-icon {
    font-size: 1rem;
    line-height: 1;
    display: block;
    transform: translate(1px, -1px);
}

.chatbox-input .chatbox-voice-btn {
    background: linear-gradient(135deg, #336178 0%, var(--brand-blue-deep) 100%);
    box-shadow: 0 2px 10px rgba(51, 97, 120, 0.3);
}

.chatbox-input .chatbox-voice-btn.is-listening {
    background: linear-gradient(135deg, #ae485e 0%, #8d3a4b 100%);
}

.chatbox-input button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(174, 72, 94, 0.35);
}

.chatbox-input button:disabled {
    background: rgba(51, 97, 120, 0.22);
    background-image: none;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.chatbox-input button:disabled .chatbox-send-icon {
    opacity: 0.65;
}

.chatbox-input button:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 2px;
}

.chatbox-launcher {
    position: fixed;
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    right: max(24px, env(safe-area-inset-right, 0px));
    width: 56px;
    height: 56px;
    min-width: 0;
    isolation: isolate;
    background: linear-gradient(135deg, #ae485e 0%, #8d3a4b 100%);
    color: var(--brand-white);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-button);
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(174, 72, 94, 0.4);
    z-index: 1001;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.2s ease, filter 0.2s ease;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
}

.chatbox-launcher:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(174, 72, 94, 0.48);
    filter: brightness(1.04);
}

.chatbox-launcher:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(174, 72, 94, 0.36);
}

.launcher-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-button);
    background: rgba(255, 255, 255, 0.14);
    font-size: 1rem;
    color: inherit;
    animation: chatboxLauncherBounce 2s ease-in-out infinite;
}

.launcher-icon i {
    line-height: 1;
}

@keyframes chatboxLauncherBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

.chatbox-typing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-accent);
    font-style: italic;
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
}

.chatbox-typing-dots {
    display: flex;
    gap: 0.28rem;
    align-items: center;
}

.chatbox-typing-dot {
    width: 5px;
    height: 5px;
    background: var(--brand-accent);
    border-radius: 50%;
    animation: chatboxTypingDot 1.2s ease-in-out infinite;
}

.chatbox-typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.chatbox-typing-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.chatbox-typing-dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes chatboxTypingDot {
    0%,
    100% {
        opacity: 0.35;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

@media (max-width: 768px) {
    .chatbox {
        width: min(90vw, calc(100vw - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
        height: 80vh;
        max-height: calc(100vh - 100px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        bottom: calc(90px + env(safe-area-inset-bottom, 0px));
        right: max(12px, env(safe-area-inset-right, 0px));
        left: auto;
    }

    .chatbox-launcher {
        bottom: calc(18px + env(safe-area-inset-bottom, 0px));
        right: max(16px, env(safe-area-inset-right, 0px));
        width: 50px;
        height: 50px;
        min-width: 0;
        padding: 0;
    }

    .chatbox-brand-label {
        font-size: 0.95rem;
    }
}

/* === Faculty contact card (chat assistant) ============================== */

.message-content .fcard {
    position: relative;
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    padding: 14px 16px 16px;
    background: #ffffff;
    border: 1px solid #e7eaf0;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(20, 35, 90, 0.06);
    color: #1f2a44;
    max-width: 100%;
    overflow: hidden;
}

.message-content .fcard-logo {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 38px;
    height: auto;
    opacity: 0.95;
    pointer-events: none;
}

.message-content .fcard-photo {
    width: 96px;
    height: 96px;
    border-radius: 8px;
    overflow: hidden;
    background: #eef1f6;
    flex-shrink: 0;
}

.message-content .fcard-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-content .fcard-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message-content .fcard-head {
    border-bottom: 1px solid #ecedf2;
    padding-bottom: 6px;
    padding-right: 44px; /* room for the logo */
}

.message-content .fcard-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f2046;
    line-height: 1.25;
}

.message-content .fcard-title {
    font-size: 0.86rem;
    color: #b3132a;
    margin-top: 2px;
    line-height: 1.3;
}

.message-content .fcard-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.message-content .fcard-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 0.86rem;
    line-height: 1.35;
    color: #3a4664;
}

.message-content .fcard-row-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #0f2046;
    margin-top: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.message-content .fcard-row-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.message-content .fcard-row-text {
    min-width: 0;
    word-break: break-word;
}

.message-content .fcard-row-label {
    font-weight: 600;
    color: #0f2046;
}

.message-content .fcard-link {
    color: #0a66c2;
    text-decoration: none;
    font-style: italic;
}

.message-content .fcard-link:hover {
    text-decoration: underline;
}

.message-content .fcard-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 6px;
}

.message-content .fcard-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
    color: #ffffff;
    transition: filter 0.15s ease;
}

.message-content .fcard-btn:hover {
    filter: brightness(0.95);
    text-decoration: none;
}

.message-content .fcard-btn svg {
    width: 14px;
    height: 14px;
}

.message-content .fcard-btn-primary {
    background: #b3132a;
}

.message-content .fcard-btn-secondary {
    background: #0a66c2;
}

/* Single-column actions on narrow chat panels */
@media (max-width: 360px) {
    .message-content .fcard {
        grid-template-columns: 80px 1fr;
    }
    .message-content .fcard-photo {
        width: 80px;
        height: 80px;
    }
    .message-content .fcard-actions {
        grid-template-columns: 1fr;
    }
}

/* --- Exchange partner cards (TASK 4) --- */
.message-content .xcard-suggestions {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(51, 97, 120, 0.06);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    font-size: 0.86rem;
    color: var(--brand-blue);
}

.message-content .xcard-suggestions-title {
    margin: 0 0 0.45rem;
    font-weight: 600;
    font-size: 0.88rem;
}

.message-content .xcard-suggestions ul {
    margin: 0;
    padding-left: 1.15rem;
    color: rgba(51, 97, 120, 0.88);
}

.message-content .xcard-suggestions li {
    margin-bottom: 0.25rem;
}

.message-content .xcard-suggestions strong {
    color: #1d4ed8;
}

.message-content .xcard-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-content .xcard {
    background: #fff;
    border: 1px solid rgba(51, 97, 120, 0.14);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(51, 97, 120, 0.08);
    overflow: hidden;
    max-width: 100%;
}

.message-content .xcard-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem 0.6rem;
}

.message-content .xcard-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #336178, #1d4ed8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.message-content .xcard-uni {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.message-content .xcard-flag {
    font-size: 1.1rem;
    margin-left: 0.2rem;
    vertical-align: middle;
}

.message-content .xcard-rule {
    height: 1px;
    background: rgba(51, 97, 120, 0.12);
    margin: 0 1rem;
}

.message-content .xcard-body {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 0.85rem;
    padding: 0.85rem 1rem 0.75rem;
    align-items: start;
}

.message-content .xcard-photo {
    border-radius: 8px;
    overflow: hidden;
    min-height: 96px;
    background: linear-gradient(160deg, #e8f0f4 0%, #d4e3ea 100%);
}

.message-content .xcard-photo-inner {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(51, 97, 120, 0.35);
    font-size: 1.5rem;
}

.message-content .xcard-facts {
    margin: 0;
    padding-left: 1rem;
    list-style: disc;
    color: #334155;
    font-size: 0.86rem;
    line-height: 1.5;
}

.message-content .xcard-facts li {
    margin-bottom: 0.35rem;
}

.message-content .xcard-lbl {
    font-weight: 600;
    color: #64748b;
}

.message-content .xcard-scholarship {
    color: #2563eb;
    font-weight: 500;
}

.message-content .xcard-muted {
    color: #94a3b8;
}

.message-content .xcard-places {
    color: #0f172a;
}

.message-content .xcard-cgpa-val {
    color: #0f172a;
    font-weight: 700;
}

.message-content .xcard-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.75rem 1rem 1rem;
}

.message-content .xcard-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.1s ease;
}

.message-content .xcard-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.message-content .xcard-btn-visit {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.message-content .xcard-btn-apply {
    background: #16a34a;
    color: #fff;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

/* Hidden cards in the pagination flow — fully removed from layout. */
.message-content .xcard.xcard-hidden {
    display: none !important;
}

/* Pagination footer: counter on the left, "Show more" button on the right. */
.message-content .xcard-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 10px;
    background: #f8f9fb;
    border: 1px solid #e3e6ed;
    border-radius: 10px;
}

.message-content .xcard-counter {
    font-size: 0.82rem;
    color: #475569;
}

.message-content .xcard-counter .xcard-shown-count,
.message-content .xcard-counter .xcard-total-count {
    font-weight: 700;
    color: #0f2046;
}

.message-content .xcard-show-more {
    background: #2a5298;
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.05s ease;
}

.message-content .xcard-show-more:hover {
    filter: brightness(1.05);
}

.message-content .xcard-show-more:active {
    transform: translateY(1px);
}

@media (max-width: 420px) {
    .message-content .xcard-body {
        grid-template-columns: 1fr;
    }

    .message-content .xcard-photo {
        max-height: 120px;
    }

    .message-content .xcard-foot {
        flex-direction: column;
    }

    .message-content .xcard-btn {
        width: 100%;
    }
}

/* === Teaching Assistant cards (chat assistant) ============================ */

.message-content .tcard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.message-content .tcard {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
    border: 1px solid #dde4f0;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(20, 35, 90, 0.04);
}

.message-content .tcard-avatar {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a5298 0%, #4f78d6 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 6px rgba(42, 82, 152, 0.35);
}

.message-content .tcard-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.message-content .tcard-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f2046;
    line-height: 1.25;
    margin-bottom: 2px;
}

.message-content .tcard-row {
    font-size: 0.85rem;
    color: #3a4664;
    line-height: 1.35;
    word-break: break-word;
}

.message-content .tcard-lbl {
    font-weight: 600;
    color: #5b6a8a;
}

.message-content .tcard-meta {
    color: #6b7c9a;
    font-size: 0.82rem;
    font-style: italic;
}

.message-content .tcard-email {
    color: #2a5298;
    text-decoration: none;
    font-style: italic;
}

.message-content .tcard-email:hover {
    text-decoration: underline;
}

@media (max-width: 380px) {
    .message-content .tcard {
        padding: 10px 12px;
        gap: 10px;
    }
    .message-content .tcard-avatar {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }
}

/* === Default list styling (chat assistant fallback) ======================
   Applied to ANY <ul>/<ol> the assistant produces that isn't already taken
   over by a specialized renderer (faculty / TA / clubs / exchange / news).
   Each list item becomes a soft card with a left accent, so generic
   answers like "list of programs", "documents required", etc. inherit a
   coherent look without us having to ship a dedicated intent for each. */

.message-content ul,
.message-content ol {
    list-style: none;
    padding: 0;
    margin: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.message-content li {
    position: relative;
    padding: 8px 12px 8px 36px;
    background: linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
    border: 1px solid #dde4f0;
    border-left: 3px solid #2a5298;
    border-radius: 8px;
    line-height: 1.45;
    font-size: 0.9rem;
    color: #1f2a44;
    word-break: break-word;
}

.message-content li > p {
    margin: 0;
}

.message-content li + li {
    margin-top: 0; /* gap on the parent already spaces them */
}

/* Bullet marker for unordered lists */
.message-content ul > li::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2a5298;
    transform: translateY(-50%);
}

/* Numeric badge for ordered lists */
.message-content ol {
    counter-reset: chat-li;
}

.message-content ol > li {
    counter-increment: chat-li;
    padding-left: 40px;
}

.message-content ol > li::before {
    content: counter(chat-li);
    position: absolute;
    left: 8px;
    top: 50%;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a5298 0%, #4f78d6 100%);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    box-shadow: 0 2px 4px rgba(42, 82, 152, 0.3);
}

/* Nested lists: keep them readable but flatter (no double card-on-card) */
.message-content li ul,
.message-content li ol {
    margin: 6px 0 0;
    gap: 4px;
}

.message-content li li {
    background: #ffffff;
    border-color: #e6ecf4;
    border-left-color: #4f78d6;
    font-size: 0.86rem;
}

/* === Student club cards (chat assistant) ================================= */

.message-content .chat-club-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.message-content .chat-club {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(180deg, #fbf7ff 0%, #f1ecfa 100%);
    border: 1px solid #e2d8f1;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(80, 35, 130, 0.05);
}

.message-content .chat-club-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #6a4fb6 0%, #9b7fd6 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(106, 79, 182, 0.35);
}

.message-content .chat-club-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.message-content .chat-club-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: #2a1c4a;
    line-height: 1.25;
    margin-bottom: 2px;
}

.message-content .chat-club-desc {
    font-size: 0.83rem;
    color: #6b5b8a;
    font-style: italic;
    margin-bottom: 4px;
    line-height: 1.35;
}

.message-content .chat-club-row {
    font-size: 0.85rem;
    color: #3a2c5a;
    line-height: 1.35;
    word-break: break-word;
}

.message-content .chat-club-lbl {
    font-weight: 600;
    color: #6b5a8a;
}

.message-content .chat-club-link {
    color: #6a4fb6;
    text-decoration: none;
}

.message-content .chat-club-link:hover {
    text-decoration: underline;
}

@media (max-width: 380px) {
    .message-content .chat-club {
        padding: 10px 12px;
        gap: 10px;
    }
    .message-content .chat-club-icon {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }
}
