:root {
    --primary-color: #0d6efd;
    --primary-dark: #0a58ca;
    --accent-color: #ffc107;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* ============================================================
   HERO SECTION — uses <picture> with separate desktop/mobile images
   Desktop image: 1983×793 px
   Mobile image:  hero-bg-mobile.jpg
   ============================================================ */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%); /* fallback */
}

.hero-picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Dark blue overlay for text readability */
.hero-overlay {
    position: absolute;
    inset: 0;
   
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 4rem 1rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    animation: fadeInDown 0.8s ease-out;
}

.hero-title {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 3px 12px rgba(0, 0, 0, 0.45);
    margin-bottom: 0.75rem;
    animation: fadeInUp 0.9s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.8vw, 1.4rem);
    color: #e9f2ff;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.9s ease-out 0.15s both;
}

.hero-dept {
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
    color: #d5e6ff;
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.9s ease-out 0.3s both;
}

.hero-cta {
    animation: fadeInUp 0.9s ease-out 0.45s both;
}

.hero-cta .btn {
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
    transition: transform 0.25s, box-shadow 0.25s;
}

.hero-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SECTION EYEBROW & TITLE
   ============================================================ */
.section-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-weight: 700;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
    background: #fff;
}

.stat-card {
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(13, 110, 253, 0.15);
    background: #fff;
}

.stat-icon {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    display: block;
}

.stat-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-card small {
    color: #6c757d;
    font-weight: 500;
}

/* Certificate wrapper */
.certificate-wrapper {
    position: relative;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(13, 110, 253, 0.2);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.certificate-wrapper:hover {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: 0 25px 50px rgba(13, 110, 253, 0.35);
}

.certificate-img {
    border-radius: 8px;
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

.certificate-wrapper::after {
    content: '★ TOP 5%';
    position: absolute;
    top: 25px;
    right: -15px;
    background: var(--accent-color);
    color: #212529;
    padding: 6px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    z-index: 3;
}

/* ============================================================
   RESEARCH PREVIEW
   ============================================================ */
.research-preview-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #eef4ff 100%);
}

.research-card {
    border-radius: 14px;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.research-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(13, 110, 253, 0.15) !important;
}

.research-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: transform 0.35s;
}

.research-card:hover .research-icon-circle {
    transform: rotate(360deg) scale(1.1);
}

/* ============================================================
   TEAM PREVIEW
   ============================================================ */
.team-preview-section {
    background: #fff;
}

.team-card {
    border-radius: 14px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(13, 110, 253, 0.15) !important;
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #eef4ff;
    transition: border-color 0.3s;
}

.team-card:hover .team-avatar {
    border-color: var(--primary-color);
}

.team-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
}

/* ============================================================
   FEEDBACK PREVIEW
   ============================================================ */
.feedback-preview-section {
    background: linear-gradient(180deg, #eef4ff 0%, #f8f9fa 100%);
}

.feedback-card {
    border-radius: 14px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.feedback-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    transition: width 0.3s;
}

.feedback-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(13, 110, 253, 0.15) !important;
}

.feedback-card:hover::before {
    width: 6px;
}

.feedback-quote-icon {
    font-size: 2rem;
    color: rgba(13, 110, 253, 0.2);
    line-height: 1;
}

.feedback-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ============================================================
   ANNOUNCEMENTS PREVIEW
   ============================================================ */
.announcement-card {
    border-radius: 14px;
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid var(--primary-color) !important;
}

.announcement-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(13, 110, 253, 0.15) !important;
}

.announcement-date-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    line-height: 1;
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.3);
}

.announcement-date-badge .day {
    font-size: 1.3rem;
    font-weight: 700;
}

.announcement-date-badge .month {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* ============================================================
   CTA / CONTACT SECTION
   ============================================================ */
.cta-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 60%, #053782 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.contact-info-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 2;
}

/* ============================================================
   OTHER PAGE STYLES
   ============================================================ */
.page-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

.year-heading {
    color: var(--primary-color);
    font-weight: 600;
}

.publication-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.publication-list li:last-child {
    border-bottom: none;
}

.gallery-item {
    transition: transform 0.3s;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
}

blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .certificate-wrapper::after {
        right: 10px;
        top: 10px;
    }

    .hero-section {
        min-height: 420px;
    }
}

@media (max-width: 768px) {
    /* Mobile hero uses hero-bg-mobile.jpg via <picture> */
    .hero-section {
        min-height: 480px; /* taller for portrait mobile image */
    }

    .hero-content {
        padding: 3rem 1rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .certificate-wrapper::after {
        font-size: 0.62rem;
        padding: 4px 10px;
    }

    .stat-card h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .certificate-wrapper {
        padding: 10px;
    }

    .hero-cta .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    .hero-cta .btn.me-2 {
        margin-right: 0 !important;
    }
}

.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Aspect-ratio based height keeps the image fully visible
       on wide desktop/laptop screens without cropping text */
    aspect-ratio: 1983 / 793;
    min-height: 320px;
    max-height: 720px;
    background: #0a58ca; /* fallback while image loads */
    display: block;
    line-height: 0; /* removes inline-img gap */
}

.hero-picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 992px) {
    .hero-section {
        aspect-ratio: auto;
        min-height: 280px;
        max-height: 420px;
    }
}

@media (max-width: 768px) {
    /* Mobile uses hero-bg-mobile.jpg via <picture> */
    .hero-section {
        aspect-ratio: auto;
        min-height: 420px;
        max-height: 620px;
    }

    .hero-bg-img {
        object-position: center center;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 380px;
    }
}

/* ============================================================
   PUBLICATIONS PAGE
   ============================================================ */

/* ---------- Page header ---------- */
.publications-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 60%, #053782 100%);
    position: relative;
    overflow: hidden;
}

.publications-header::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -10%;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.publications-header::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -5%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.page-header-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffd966;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.page-header-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-shadow: 2px 3px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.page-header-subtitle {
    font-size: 1.05rem;
    color: #e9f2ff;
    position: relative;
    z-index: 1;
}

.pub-stats-row {
    display: inline-flex;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.12);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.pub-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
}

.pub-stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.pub-stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
    margin-top: 4px;
}

/* ---------- Filter bar ---------- */
.pub-filter-bar {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 56px; /* navbar height */
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.pub-filter-scroll {
    display: flex;
    gap: 0.5rem;
    padding: 0.9rem 0;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.pub-filter-scroll::-webkit-scrollbar {
    height: 4px;
}

.pub-filter-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.pub-filter-btn {
    flex-shrink: 0;
    background: #f1f5f9;
    border: 1px solid transparent;
    color: #334155;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.25s;
    white-space: nowrap;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pub-filter-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.pub-filter-btn.active {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.3);
}

.pub-filter-count {
    display: inline-block;
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 20px;
    margin-left: 4px;
}

.pub-filter-btn.active .pub-filter-count {
    background: rgba(255, 255, 255, 0.25);
}

/* ---------- Year heading ---------- */
.year-section {
    scroll-margin-top: 130px;
}

.year-heading-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.year-marker {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.35);
    position: relative;
}

.year-marker::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 12px;
    border: 2px dashed rgba(255, 255, 255, 0.25);
}

.year-number {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transform: rotate(-90deg);
    white-space: nowrap;
}

.year-heading-line {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-grow: 1;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.75rem;
}

.year-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.year-count-badge {
    background: #eef4ff;
    color: #0d6efd;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid #dbeafe;
    white-space: nowrap;
}

/* ---------- Timeline ---------- */
.publications-timeline {
    position: relative;
    padding-left: 30px;
}

.publications-timeline::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 12px;
    width: 2px;
    background: linear-gradient(180deg,
        rgba(13, 110, 253, 0.4) 0%,
        rgba(13, 110, 253, 0.15) 100%);
    border-radius: 2px;
}

.publication-item {
    position: relative;
    margin-bottom: 1rem;
}

.publication-marker {
    position: absolute;
    left: -30px;
    top: 18px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.25s;
}

.pub-number {
    font-size: 0.68rem;
    font-weight: 700;
    color: #0d6efd;
    line-height: 1;
}

.publication-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.publication-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #0d6efd, #0a58ca);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s;
}

.publication-card:hover {
    transform: translateX(6px);
    border-color: #dbeafe;
    box-shadow: 0 12px 30px rgba(13, 110, 253, 0.12);
}

.publication-card:hover::before {
    transform: scaleY(1);
}

.publication-item:hover .publication-marker {
    transform: scale(1.15);
    background: #0d6efd;
    border-color: #0d6efd;
}

.publication-item:hover .pub-number {
    color: #fff;
}

.publication-card-body {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
}

.pub-icon-col {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eef4ff;
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s;
}

.publication-card:hover .pub-icon-col {
    background: #0d6efd;
    color: #fff;
    transform: rotate(-5deg);
}

.pub-content-col {
    flex-grow: 1;
    min-width: 0;
}

.publication-citation {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #334155;
    margin: 0;
}

.pub-year-inline {
    background: #fff3cd;
    color: #664d03;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}

.pub-link {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dotted #0d6efd;
    word-break: break-all;
    transition: all 0.2s;
}

.pub-link:hover {
    color: #0a58ca;
    border-bottom-style: solid;
    background: #eef4ff;
}

/* ---------- Empty state ---------- */
.empty-state {
    padding: 4rem 1rem;
}

/* ---------- Footer note ---------- */
.pub-footer-note {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* ---------- Animation ---------- */
.year-section.animate-in {
    animation: fadeInSection 0.5s ease-out;
}

@keyframes fadeInSection {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .pub-filter-bar {
        top: 56px;
    }

    .year-marker {
        width: 55px;
        height: 55px;
        border-radius: 12px;
    }

    .year-number {
        font-size: 0.9rem;
    }

    .year-heading {
        font-size: 1.3rem;
    }

    .year-heading-line {
        gap: 0.6rem;
    }

    .publications-timeline {
        padding-left: 24px;
    }

    .publications-timeline::before {
        left: 9px;
    }

    .publication-marker {
        left: -24px;
        width: 22px;
        height: 22px;
    }

    .pub-number {
        font-size: 0.6rem;
    }

    .publication-card-body {
        padding: 1rem;
        gap: 0.75rem;
    }

    .pub-icon-col {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .publication-citation {
        font-size: 0.9rem;
    }

    .pub-stats-row {
        padding: 0.8rem 1.2rem;
        gap: 1rem;
    }

    .pub-stat-number {
        font-size: 1.3rem;
    }

    .pub-stat-label {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .year-marker {
        display: none;
    }

    .year-heading-line {
        padding-bottom: 0.5rem;
    }

    .pub-filter-btn {
        font-size: 0.85rem;
        padding: 6px 14px;
    }
}

/* ============================================================
   BIO PAGE
   ============================================================ */

/* ---------- Bio Hero ---------- */
.bio-hero {
    position: relative;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 55%, #053782 100%);
    padding: 4rem 0 6rem;
    overflow: hidden;
}

.bio-hero::before,
.bio-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.bio-hero::before {
    width: 500px;
    height: 500px;
    top: -40%;
    right: -10%;
}

.bio-hero::after {
    width: 400px;
    height: 400px;
    bottom: -50%;
    left: -8%;
    background: rgba(255, 255, 255, 0.04);
}

.bio-hero-overlay {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.06) 0%, transparent 40%);
}

/* ---------- Profile Photo ---------- */
.bio-photo-wrapper {
    position: relative;
    display: inline-block;
}

.bio-photo,
.bio-photo-placeholder {
    width: 240px;
    height: 240px;
    border-radius: 24px;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.bio-photo:hover {
    transform: translateY(-6px) scale(1.02);
}

.bio-photo-placeholder {
    background: linear-gradient(135deg, #0a58ca, #053782);
    color: #fff;
    font-size: 5rem;
}

.bio-photo-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #212529;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 8px 20px rgba(255, 152, 0, 0.5);
    border: 3px solid #fff;
    animation: pulseBadge 2.5s ease-in-out infinite;
}

@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}

/* ---------- Hero Text ---------- */
.bio-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffd966;
    margin-bottom: 0.6rem;
}

.bio-name {
    font-size: clamp(1.8rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 2px 3px 12px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.bio-role {
    font-size: 1.05rem;
    color: #e9f2ff;
    margin-bottom: 0.75rem;
}

.bio-tagline {
    font-size: 1rem;
    color: #cfe1ff;
    max-width: 620px;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.bio-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.bio-chip {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    backdrop-filter: blur(6px);
    transition: all 0.25s;
}

.bio-chip:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.bio-hero-actions .btn {
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.25s;
}

.bio-hero-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

/* ---------- Stats Strip ---------- */
.bio-stats-strip {
    margin-top: -3.5rem;
    position: relative;
    z-index: 5;
    padding-bottom: 1rem;
}

.bio-stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(13, 110, 253, 0.15);
    transition: transform 0.35s, box-shadow 0.35s;
    border: 1px solid #eef4ff;
    height: 100%;
}

.bio-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px rgba(13, 110, 253, 0.25);
}

.bio-stat-icon {
    font-size: 1.6rem;
    color: #0d6efd;
    margin-bottom: 0.5rem;
}

.bio-stat-number {
    font-size: 1.9rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.bio-stat-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    font-weight: 600;
}

.bio-stat-highlight {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    border: none;
}

.bio-stat-highlight .bio-stat-icon,
.bio-stat-highlight .bio-stat-number,
.bio-stat-highlight .bio-stat-label {
    color: #212529;
}

/* ---------- Bio Content ---------- */
.bio-content-section {
    background: #fff;
}

.bio-text {
    font-size: 1.03rem;
    line-height: 1.85;
    color: #334155;
}

.bio-block-title {
    font-weight: 700;
    color: #0f172a;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #eef4ff;
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
}

/* ---------- Timeline ---------- */
.bio-timeline {
    position: relative;
    padding-left: 30px;
}

.bio-timeline::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 8px;
    width: 2px;
    background: linear-gradient(180deg, #0d6efd, #0a58ca);
    opacity: 0.4;
    border-radius: 2px;
}

.bio-timeline-item {
    position: relative;
    padding-bottom: 1.75rem;
}

.bio-timeline-item:last-child {
    padding-bottom: 0;
}

.bio-timeline-dot {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
    transition: all 0.3s;
}

.bio-timeline-item:hover .bio-timeline-dot {
    background: #0d6efd;
    transform: scale(1.15);
    box-shadow: 0 0 0 8px rgba(13, 110, 253, 0.18);
}

.bio-timeline-content h6 {
    font-weight: 700;
    color: #0f172a;
    font-size: 1rem;
}

.bio-timeline-content p {
    line-height: 1.7;
}

/* ---------- Affiliations ---------- */
.bio-affiliations {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.bio-affil-chip {
    display: inline-flex;
    align-items: center;
    background: #eef4ff;
    color: #0d6efd;
    border: 1px solid #dbeafe;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.25s;
}

.bio-affil-chip:hover {
    background: #0d6efd;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(13, 110, 253, 0.25);
}

/* ---------- Sidebar ---------- */
.bio-sidebar-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eef4ff;
    box-shadow: 0 12px 30px rgba(13, 110, 253, 0.08);
    overflow: hidden;
}

.bio-sidebar-header {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    padding: 1rem 1.5rem;
}

.bio-sidebar-header h5 {
    font-weight: 700;
    font-size: 1.05rem;
}

.bio-sidebar-body {
    padding: 0.5rem 1.5rem 1rem;
}

.bio-metrics-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bio-metrics-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
    border-bottom: 1px dashed #e2e8f0;
}

.bio-metrics-list li:last-child {
    border-bottom: none;
}

.metric-label {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
}

.metric-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0d6efd;
    background: #eef4ff;
    padding: 4px 12px;
    border-radius: 8px;
    min-width: 60px;
    text-align: center;
}

/* ---------- Award Card ---------- */
.bio-award-card {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3c4 100%);
    border: 1px solid #ffe082;
    border-radius: 16px;
    padding: 1.75rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bio-award-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: rgba(255, 193, 7, 0.15);
    border-radius: 50%;
}

.bio-award-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 10px 25px rgba(255, 152, 0, 0.4);
}

.bio-award-title {
    font-weight: 700;
    color: #664d03;
    margin-bottom: 0.5rem;
}

.bio-award-text {
    color: #7a5c00;
    font-size: 0.9rem;
    line-height: 1.6;
}

.bio-award-link {
    display: inline-block;
    background: #212529;
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
}

.bio-award-link:hover {
    background: #0d6efd;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
}

/* ---------- Contact Card ---------- */
.bio-contact-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
}

.bio-contact-card h5 {
    font-weight: 700;
    color: #0f172a;
    font-size: 1.05rem;
}

.bio-contact-card a {
    color: #334155;
    text-decoration: none;
    transition: color 0.2s;
}

.bio-contact-card a:hover {
    color: #0d6efd;
    text-decoration: underline;
}

/* ---------- CTA Strip ---------- */
.bio-cta-strip {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 55%, #053782 100%);
    position: relative;
    overflow: hidden;
}

.bio-cta-strip::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.bio-cta-strip .btn {
    border-radius: 50px;
    padding: 12px 32px;
    font-weight: 600;
    transition: all 0.3s;
}

.bio-cta-strip .btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .bio-hero {
        padding: 3rem 0 5rem;
        text-align: center;
    }

    .bio-photo,
    .bio-photo-placeholder {
        width: 200px;
        height: 200px;
    }

    .bio-tagline {
        margin-left: auto;
        margin-right: auto;
    }

    .bio-hero-chips {
        justify-content: center;
    }

    .bio-hero-actions {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .bio-hero-actions .btn.me-2 {
        margin-right: 0 !important;
    }
}

@media (max-width: 576px) {
    .bio-photo,
    .bio-photo-placeholder {
        width: 170px;
        height: 170px;
        border-radius: 20px;
    }

    .bio-photo-badge {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        bottom: 8px;
        right: 8px;
    }

    .bio-stat-card {
        padding: 1.1rem 0.75rem;
    }

    .bio-stat-number {
        font-size: 1.5rem;
    }

    .bio-stat-label {
        font-size: 0.68rem;
        letter-spacing: 0.5px;
    }

    .metric-label {
        font-size: 0.82rem;
    }

    .metric-value {
        font-size: 1rem;
        padding: 3px 10px;
        min-width: 50px;
    }
}

/* ============================================================
   RESEARCH PAGE
   ============================================================ */

/* ---------- Hero ---------- */
.research-hero {
    position: relative;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 55%, #053782 100%);
    padding: 5rem 0 4rem;
    overflow: hidden;
}

.research-hero::before,
.research-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.research-hero::before {
    width: 500px;
    height: 500px;
    top: -40%;
    right: -8%;
}

.research-hero::after {
    width: 350px;
    height: 350px;
    bottom: -45%;
    left: -6%;
    background: rgba(255, 255, 255, 0.04);
}

.research-hero-overlay {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(255,255,255,0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(255,255,255,0.06) 0%, transparent 40%);
}

.research-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffd966;
    margin-bottom: 0.6rem;
    position: relative;
    z-index: 1;
}

.research-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    text-shadow: 2px 3px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.research-hero-subtitle {
    font-size: 1.05rem;
    color: #dbe8ff;
    max-width: 640px;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.research-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.research-hero-chip {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    backdrop-filter: blur(6px);
    transition: all 0.25s;
}

.research-hero-chip:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.research-hero-stat {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.25rem 2rem;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 1;
    text-align: center;
}

.research-hero-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.research-hero-stat-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #dbe8ff;
    margin-top: 6px;
    font-weight: 600;
}

/* ---------- Grid section ---------- */
.research-grid-section {
    background: #fff;
}

/* ---------- Feature card ---------- */
.research-feature-card {
    position: relative;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.research-feature-card:hover {
    transform: translateY(-10px);
    border-color: #dbeafe;
    box-shadow: 0 25px 55px rgba(13, 110, 253, 0.18);
}

.research-feature-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.75rem 0.5rem;
}

.research-feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 12px 25px rgba(13, 110, 253, 0.3);
    transition: transform 0.4s ease;
}

.research-feature-card:hover .research-feature-icon {
    transform: rotate(-8deg) scale(1.08);
}

.research-feature-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #eef4ff;
    line-height: 1;
    letter-spacing: -1px;
    transition: color 0.35s;
}

.research-feature-card:hover .research-feature-number {
    color: #dbeafe;
}

/* Optional image */
.research-feature-image {
    margin: 1rem 1.75rem 0;
    border-radius: 12px;
    overflow: hidden;
    height: 160px;
}

.research-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.research-feature-card:hover .research-feature-image img {
    transform: scale(1.06);
}

/* Body */
.research-feature-body {
    padding: 1.25rem 1.75rem 1.5rem;
    flex-grow: 1;
}

.research-feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.45;
    margin-bottom: 0.75rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.research-feature-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #0a58ca);
    border-radius: 2px;
    transition: width 0.4s;
}

.research-feature-card:hover .research-feature-title::after {
    width: 70px;
}

.research-feature-text {
    font-size: 0.93rem;
    line-height: 1.75;
    color: #475569;
    margin-bottom: 0;
}

/* Footer */
.research-feature-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.75rem;
    background: #f8fafc;
    border-top: 1px solid #eef4ff;
    transition: background 0.35s;
}

.research-feature-card:hover .research-feature-footer {
    background: #eef4ff;
}

.research-feature-tag {
    font-size: 0.78rem;
    font-weight: 600;
    color: #0d6efd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.research-feature-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #dbeafe;
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.research-feature-card:hover .research-feature-arrow {
    background: #0d6efd;
    color: #fff;
    transform: translateX(4px);
    border-color: #0d6efd;
}

/* ---------- Approach section ---------- */
.research-approach-section {
    background: linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%);
}

.approach-step {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 1.75rem 1.25rem 1.5rem;
    text-align: center;
    position: relative;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.approach-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(13, 110, 253, 0.15);
}

.approach-step-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 10px 22px rgba(13, 110, 253, 0.3);
    transition: transform 0.4s;
}

.approach-step:hover .approach-step-icon {
    transform: rotate(360deg);
}

.approach-step-number {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 0.72rem;
    font-weight: 800;
    color: #cbd5e1;
    letter-spacing: 1px;
}

.approach-step h6 {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.approach-step p {
    font-size: 0.82rem;
    line-height: 1.6;
}

/* ---------- CTA strip ---------- */
.research-cta-strip {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 55%, #053782 100%);
    position: relative;
    overflow: hidden;
}

.research-cta-strip::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.research-cta-strip::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -8%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.research-cta-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.85;
    position: relative;
    z-index: 1;
}

.research-cta-strip h3 {
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.research-cta-strip .lead {
    color: #dbe8ff;
    position: relative;
    z-index: 1;
}

.research-cta-strip .btn {
    border-radius: 50px;
    padding: 12px 32px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.research-cta-strip .btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .research-hero {
        padding: 3.5rem 0 3rem;
        text-align: center;
    }

    .research-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .research-hero-chips {
        justify-content: center;
    }

    .research-hero-stat {
        margin-top: 1.5rem;
    }
}

@media (max-width: 576px) {
    .research-feature-header {
        padding: 1.25rem 1.25rem 0.5rem;
    }

    .research-feature-body {
        padding: 1rem 1.25rem 1.25rem;
    }

    .research-feature-footer {
        padding: 0.9rem 1.25rem;
    }

    .research-feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .research-feature-number {
        font-size: 2rem;
    }

    .research-feature-title {
        font-size: 1rem;
    }

    .research-feature-text {
        font-size: 0.88rem;
    }

    .approach-step {
        padding: 1.25rem 1rem 1rem;
    }

    .approach-step-icon {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }

    .approach-step h6 {
        font-size: 0.85rem;
    }

    .approach-step p {
        font-size: 0.78rem;
    }
}

/* ============================================================
   TEAM PAGE
   ============================================================ */

/* ---------- Hero ---------- */
.team-hero {
    position: relative;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 55%, #053782 100%);
    padding: 5rem 0 4rem;
    overflow: hidden;
}

.team-hero::before,
.team-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.team-hero::before {
    width: 500px;
    height: 500px;
    top: -40%;
    right: -8%;
}

.team-hero::after {
    width: 380px;
    height: 380px;
    bottom: -45%;
    left: -6%;
    background: rgba(255, 255, 255, 0.04);
}

.team-hero-overlay {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(255,255,255,0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(255,255,255,0.06) 0%, transparent 40%);
}

.team-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffd966;
    margin-bottom: 0.6rem;
    position: relative;
    z-index: 1;
}

.team-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    text-shadow: 2px 3px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.team-hero-subtitle {
    font-size: 1.05rem;
    color: #dbe8ff;
    max-width: 620px;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.team-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.team-hero-chip {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    backdrop-filter: blur(6px);
    transition: all 0.25s;
}

.team-hero-chip:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

/* Hero stats */
.team-hero-stats {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.team-hero-stat {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 14px;
    backdrop-filter: blur(8px);
    text-align: center;
    min-width: 90px;
}

.team-hero-stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.team-hero-stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #dbe8ff;
    margin-top: 6px;
    font-weight: 600;
}

/* ---------- Section nav bar ---------- */
.team-nav-bar {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 56px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.team-nav-scroll {
    display: flex;
    gap: 0.5rem;
    padding: 0.9rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.team-nav-scroll::-webkit-scrollbar { height: 4px; }
.team-nav-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.team-nav-btn {
    flex-shrink: 0;
    background: #f1f5f9;
    color: #334155;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.25s;
    white-space: nowrap;
}

.team-nav-btn:hover {
    background: #e2e8f0;
    color: #0d6efd;
    transform: translateY(-2px);
}

.team-nav-count {
    background: rgba(0, 0, 0, 0.08);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 20px;
    margin-left: 4px;
}

/* ---------- Profile card ---------- */
.team-profile-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.team-profile-card:hover {
    transform: translateY(-10px);
    border-color: #dbeafe;
    box-shadow: 0 25px 55px rgba(13, 110, 253, 0.18);
}

/* Image area */
.team-profile-image-wrap {
    position: relative;
    background: linear-gradient(135deg, #eef4ff 0%, #dbeafe 100%);
    padding: 2.25rem 1rem 1rem;
    text-align: center;
    overflow: hidden;
}

.team-profile-image-wrap::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

.team-profile-image,
.team-profile-placeholder {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 5px solid #fff;
    box-shadow: 0 15px 35px rgba(13, 110, 253, 0.2);
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.team-profile-placeholder {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    font-size: 2.75rem;
}

.team-profile-card:hover .team-profile-image,
.team-profile-card:hover .team-profile-placeholder {
    transform: scale(1.06);
    box-shadow: 0 20px 45px rgba(13, 110, 253, 0.35);
}

/* Badge */
.team-profile-badge {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: #10b981;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.3px;
    z-index: 2;
}

.team-profile-badge i {
    font-size: 0.5rem;
    animation: pulseDot 1.6s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}

.team-profile-badge-former {
    background: #64748b;
    box-shadow: 0 6px 15px rgba(100, 116, 139, 0.35);
}

.team-profile-badge-former i {
    animation: none;
}

/* Body */
.team-profile-body {
    padding: 1.5rem 1.5rem 1.75rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.team-profile-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.team-profile-role {
    color: #0d6efd;
    font-size: 0.87rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.team-profile-affil {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

/* Action button */
.team-profile-actions {
    margin-top: auto;
}

.team-profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.28);
    width: 100%;
}

.team-profile-btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(13, 110, 253, 0.4);
    background: linear-gradient(135deg, #0a58ca, #053782);
}

.team-profile-btn-former {
    background: linear-gradient(135deg, #64748b, #475569);
    box-shadow: 0 8px 20px rgba(100, 116, 139, 0.28);
}

.team-profile-btn-former:hover {
    background: linear-gradient(135deg, #475569, #334155);
    box-shadow: 0 14px 28px rgba(100, 116, 139, 0.4);
}

.team-profile-btn-special {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #212529;
    box-shadow: 0 8px 20px rgba(255, 152, 0, 0.32);
}

.team-profile-btn-special:hover {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #212529;
    box-shadow: 0 14px 28px rgba(255, 152, 0, 0.45);
}

/* Former styling */
.team-profile-card-former .team-profile-image-wrap {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.team-profile-placeholder-former {
    background: linear-gradient(135deg, #64748b, #475569);
}

/* Special styling */
.team-profile-card-special {
    border-color: #ffe082;
    background: linear-gradient(180deg, #fffdf5 0%, #ffffff 100%);
}

.team-profile-card-special:hover {
    border-color: #ffc107;
    box-shadow: 0 25px 55px rgba(255, 152, 0, 0.2);
}

.team-profile-card-special .team-profile-image-wrap {
    background: linear-gradient(135deg, #fff8e1 0%, #ffe082 100%);
}

.team-profile-placeholder-special {
    background: linear-gradient(135deg, #ffc107, #ff9800);
}

.team-profile-special-ribbon {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #212529;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 6px 15px rgba(255, 152, 0, 0.35);
    letter-spacing: 0.3px;
}

/* ---------- Section alternates ---------- */
.team-section {
    background: #fff;
}

.team-section-alt {
    background: linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%);
}

/* ---------- CTA strip ---------- */
.team-cta-strip {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 55%, #053782 100%);
    position: relative;
    overflow: hidden;
}

.team-cta-strip::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.team-cta-strip::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -8%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.team-cta-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.85;
    position: relative;
    z-index: 1;
}

.team-cta-strip h3 {
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.team-cta-strip .lead {
    color: #dbe8ff;
    position: relative;
    z-index: 1;
}

.team-cta-strip .btn {
    border-radius: 50px;
    padding: 12px 32px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.team-cta-strip .btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

/* Smooth scroll for jump links */
#present-team,
#former-team,
#special-members {
    scroll-margin-top: 130px;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .team-hero {
        padding: 3.5rem 0 3rem;
        text-align: center;
    }

    .team-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .team-hero-chips {
        justify-content: center;
    }

    .team-hero-stats {
        justify-content: center;
        margin-top: 1.5rem;
    }
}

@media (max-width: 768px) {
    .team-nav-bar { top: 56px; }

    .team-profile-image,
    .team-profile-placeholder {
        width: 110px;
        height: 110px;
    }

    .team-profile-placeholder { font-size: 2.25rem; }

    .team-profile-body { padding: 1.25rem 1.25rem 1.5rem; }

    .team-profile-name { font-size: 1rem; }
}

@media (max-width: 576px) {
    .team-hero-stat {
        padding: 0.75rem 1rem;
        min-width: 80px;
    }

    .team-hero-stat-number { font-size: 1.4rem; }
    .team-hero-stat-label { font-size: 0.65rem; }

    .team-nav-btn {
        font-size: 0.85rem;
        padding: 6px 14px;
    }
}

/* ============================================================
   TEAM MEMBER LINK BUTTONS (Profile + LinkedIn)
   ============================================================ */

.team-profile-links {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px dashed #e2e8f0;
}

.team-link-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.28s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.team-link-btn i {
    font-size: 0.92rem;
}

/* Generic profile link button (blue) */
.team-link-btn-profile {
    background: #eef4ff;
    color: #0d6efd;
    border-color: #dbeafe;
}

.team-link-btn-profile:hover {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(13, 110, 253, 0.35);
}

/* LinkedIn button (brand blue) */
.team-link-btn-linkedin {
    background: #e8f1fb;
    color: #0a66c2;
    border-color: #cfe0f5;
}

.team-link-btn-linkedin:hover {
    background: linear-gradient(135deg, #0a66c2, #004182);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(10, 102, 194, 0.4);
}

/* Variant overrides for Former members (slate grey) */
.team-profile-card-former .team-link-btn-profile {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}

.team-profile-card-former .team-link-btn-profile:hover {
    background: linear-gradient(135deg, #64748b, #475569);
    color: #fff;
    box-shadow: 0 10px 22px rgba(100, 116, 139, 0.35);
}

/* Variant overrides for Special members (amber) */
.team-profile-card-special .team-link-btn-profile {
    background: #fff8e1;
    color: #a16207;
    border-color: #fde68a;
}

.team-profile-card-special .team-link-btn-profile:hover {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #212529;
    box-shadow: 0 10px 22px rgba(255, 152, 0, 0.4);
}

/* When a card has only 1 link, keep it same width (no stretched full-width look) */
.team-profile-links:has(.team-link-btn:only-child) .team-link-btn {
    flex: 0 1 auto;
    padding-left: 22px;
    padding-right: 22px;
}

/* Fallback for browsers without :has() support */
@supports not selector(:has(*)) {
    .team-profile-links .team-link-btn:only-child {
        max-width: 100%;
    }
}

/* Hide text on very small screens, keep icon only */
@media (max-width: 380px) {
    .team-link-btn span {
        display: none;
    }
    .team-link-btn {
        padding: 10px;
        flex: 1;
    }
    .team-link-btn i {
        font-size: 1rem;
    }
}

/* ============================================================
   INTERNSHIP FEEDBACK PAGE
   ============================================================ */

/* ---------- Hero ---------- */
.feedback-hero {
    position: relative;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 55%, #053782 100%);
    padding: 5rem 0 4rem;
    overflow: hidden;
}

.feedback-hero::before,
.feedback-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.feedback-hero::before {
    width: 500px;
    height: 500px;
    top: -40%;
    right: -8%;
}

.feedback-hero::after {
    width: 350px;
    height: 350px;
    bottom: -45%;
    left: -6%;
    background: rgba(255, 255, 255, 0.04);
}

.feedback-hero-overlay {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(255,255,255,0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(255,255,255,0.06) 0%, transparent 40%);
}

.feedback-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffd966;
    margin-bottom: 0.6rem;
    position: relative;
    z-index: 1;
}

.feedback-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    text-shadow: 2px 3px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.feedback-hero-subtitle {
    font-size: 1.05rem;
    color: #dbe8ff;
    max-width: 640px;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.feedback-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.feedback-hero-chip {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    backdrop-filter: blur(6px);
    transition: all 0.25s;
}

.feedback-hero-chip:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.feedback-hero-stat {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.25rem 2rem;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 1;
    text-align: center;
}

.feedback-hero-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.feedback-hero-stat-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #dbe8ff;
    margin-top: 6px;
    font-weight: 600;
}

/* ---------- Grid section ---------- */
.feedback-grid-section {
    background: #fff;
}

/* ---------- Feedback tile ---------- */
.feedback-tile {
    position: relative;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 18px;
    padding: 1.75rem 1.5rem 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s;
    overflow: hidden;
}

.feedback-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd, #0a58ca, #053782);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feedback-tile:hover {
    transform: translateY(-10px);
    border-color: #dbeafe;
    box-shadow: 0 25px 55px rgba(13, 110, 253, 0.16);
}

.feedback-tile:hover::before {
    transform: scaleX(1);
}

/* Large decorative quote */
.feedback-tile-quote {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    color: rgba(13, 110, 253, 0.12);
    line-height: 1;
    transition: all 0.4s;
}

.feedback-tile:hover .feedback-tile-quote {
    color: rgba(13, 110, 253, 0.25);
    transform: scale(1.15) rotate(-5deg);
}

/* ---------- Header (avatar + identity) ---------- */
.feedback-tile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.feedback-tile-avatar,
.feedback-tile-avatar-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 4px solid #fff;
    box-shadow: 0 8px 22px rgba(13, 110, 253, 0.2);
    transition: transform 0.4s, box-shadow 0.4s;
}

.feedback-tile-avatar-placeholder {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.feedback-tile:hover .feedback-tile-avatar,
.feedback-tile:hover .feedback-tile-avatar-placeholder {
    transform: scale(1.06);
    box-shadow: 0 12px 28px rgba(13, 110, 253, 0.35);
}

.feedback-tile-identity {
    min-width: 0;
}

.feedback-tile-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.2rem;
}

.feedback-tile-course {
    font-size: 0.83rem;
    color: #0d6efd;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.feedback-tile-inst {
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 0;
    line-height: 1.4;
}

/* ---------- Quote text ---------- */
.feedback-tile-text {
    margin: 0 0 1.25rem 0;
    padding: 0;
    border: none;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.feedback-tile-text p {
    font-size: 0.92rem;
    line-height: 1.75;
    color: #334155;
    font-style: italic;
    margin: 0;
}

/* ---------- Footer ---------- */
.feedback-tile-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px dashed #e2e8f0;
    position: relative;
    z-index: 1;
}

.feedback-tile-tag {
    display: inline-flex;
    align-items: center;
    background: #eef4ff;
    color: #0d6efd;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
}

.feedback-tile-date {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

/* ---------- Empty state ---------- */
.feedback-grid-section .empty-state {
    padding: 4rem 1rem;
}

/* ---------- CTA strip ---------- */
.feedback-cta-strip {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 55%, #053782 100%);
    position: relative;
    overflow: hidden;
}

.feedback-cta-strip::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.feedback-cta-strip::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -8%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.feedback-cta-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.85;
    position: relative;
    z-index: 1;
}

.feedback-cta-strip h3 {
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.feedback-cta-strip .lead {
    color: #dbe8ff;
    position: relative;
    z-index: 1;
}

.feedback-cta-strip .btn {
    border-radius: 50px;
    padding: 12px 32px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.feedback-cta-strip .btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .feedback-hero {
        padding: 3.5rem 0 3rem;
        text-align: center;
    }

    .feedback-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .feedback-hero-chips {
        justify-content: center;
    }

    .feedback-hero-stat {
        margin-top: 1.5rem;
    }
}

@media (max-width: 576px) {
    .feedback-tile {
        padding: 1.5rem 1.25rem 1rem;
    }

    .feedback-tile-quote {
        font-size: 2rem;
        top: 0.75rem;
        right: 1rem;
    }

    .feedback-tile-avatar,
    .feedback-tile-avatar-placeholder {
        width: 58px;
        height: 58px;
    }

    .feedback-tile-avatar-placeholder {
        font-size: 1.25rem;
    }

    .feedback-tile-name {
        font-size: 0.98rem;
    }

    .feedback-tile-text p {
        font-size: 0.88rem;
    }
}

/* ============================================================
   ANNOUNCEMENTS PAGE
   ============================================================ */

/* ---------- Hero ---------- */
.announce-hero {
    position: relative;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 55%, #053782 100%);
    padding: 5rem 0 4rem;
    overflow: hidden;
}

.announce-hero::before,
.announce-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.announce-hero::before {
    width: 500px; height: 500px;
    top: -40%; right: -8%;
}

.announce-hero::after {
    width: 350px; height: 350px;
    bottom: -45%; left: -6%;
    background: rgba(255, 255, 255, 0.04);
}

.announce-hero-overlay {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(255,255,255,0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(255,255,255,0.06) 0%, transparent 40%);
}

.announce-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffd966;
    margin-bottom: 0.6rem;
    position: relative; z-index: 1;
}

.announce-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    text-shadow: 2px 3px 12px rgba(0, 0, 0, 0.3);
    position: relative; z-index: 1;
}

.announce-hero-subtitle {
    font-size: 1.1rem;
    color: #ffd966;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative; z-index: 1;
}

.announce-hero-tagline {
    font-size: 1rem;
    color: #dbe8ff;
    margin: 0;
    position: relative; z-index: 1;
}

.announce-hero-stat {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.25rem 2rem;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    position: relative; z-index: 1;
    text-align: center;
}

.announce-hero-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.announce-hero-stat-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #dbe8ff;
    margin-top: 6px;
    font-weight: 600;
}

/* ---------- Pinned section ---------- */
.announce-pinned-section {
    background: linear-gradient(180deg, #fff8e1 0%, #fff 100%);
}

.announce-featured-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 2.25rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 15px 40px rgba(13, 110, 253, 0.1);
    border-left: 6px solid #0d6efd;
    transition: transform 0.35s, box-shadow 0.35s;
    overflow: hidden;
}

.announce-featured-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.05);
}

.announce-featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 55px rgba(13, 110, 253, 0.18);
}

.announce-featured-card.priority-urgent    { border-left-color: #dc3545; }
.announce-featured-card.priority-important { border-left-color: #ffc107; }
.announce-featured-card.priority-normal    { border-left-color: #0d6efd; }

.announce-featured-ribbon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #212529;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    letter-spacing: 0.4px;
    box-shadow: 0 6px 15px rgba(255, 152, 0, 0.35);
    z-index: 2;
}

.announce-featured-body {
    position: relative;
    z-index: 1;
    padding-right: 90px;
}

.announce-featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.announce-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
}

.announce-badge-danger    { background: #fee2e2; color: #991b1b; }
.announce-badge-warning   { background: #fef3c7; color: #92400e; }
.announce-badge-secondary { background: #eef4ff; color: #0d6efd; }

.announce-date {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
}

.announce-featured-title {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.9rem;
    line-height: 1.4;
}

.announce-featured-text {
    font-size: 0.98rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 1.5rem;
}

.announce-featured-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ---------- Buttons ---------- */
.announce-btn {
    display: inline-flex;
    align-items: center;
    padding: 11px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.announce-btn-primary {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

.announce-btn-primary:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(13, 110, 253, 0.4);
}

.announce-btn-outline {
    background: #eef4ff;
    color: #0d6efd;
    border: 1px solid #dbeafe;
}

.announce-btn-outline:hover {
    background: #0d6efd;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(13, 110, 253, 0.35);
}

/* ---------- Regular list ---------- */
.announce-list-section {
    background: #fff;
}

.announce-total-pill {
    background: #eef4ff;
    color: #0d6efd;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
}

.announce-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.announce-item {
    display: flex;
    gap: 1.5rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.announce-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #0d6efd, #0a58ca);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s;
}

.announce-item:hover {
    transform: translateX(4px);
    border-color: #dbeafe;
    box-shadow: 0 15px 40px rgba(13, 110, 253, 0.1);
}

.announce-item:hover::before {
    transform: scaleY(1);
}

.announce-item-urgent::before    { background: linear-gradient(180deg, #dc3545, #a71d2a); }
.announce-item-important::before { background: linear-gradient(180deg, #ffc107, #ff9800); }

/* Date block */
.announce-date-block {
    flex-shrink: 0;
    width: 76px;
    height: 90px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(13, 110, 253, 0.25);
    line-height: 1;
}

.announce-item-urgent .announce-date-block {
    background: linear-gradient(135deg, #dc3545, #a71d2a);
    box-shadow: 0 10px 22px rgba(220, 53, 69, 0.3);
}

.announce-item-important .announce-date-block {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #212529;
    box-shadow: 0 10px 22px rgba(255, 152, 0, 0.3);
}

.announce-date-day   { font-size: 1.7rem; font-weight: 800; }
.announce-date-month { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; font-weight: 700; }
.announce-date-year  { font-size: 0.68rem; opacity: 0.85; margin-top: 2px; font-weight: 600; }

/* Content */
.announce-content {
    flex-grow: 1;
    min-width: 0;
}

.announce-meta {
    margin-bottom: 0.5rem;
}

.announce-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.announce-text {
    font-size: 0.93rem;
    line-height: 1.75;
    color: #475569;
    margin-bottom: 1rem;
}

.announce-inline-link {
    color: #0d6efd;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px dotted #0d6efd;
    word-break: break-all;
}

.announce-inline-link:hover {
    background: #eef4ff;
    border-bottom-style: solid;
}

.announce-actions {
    margin-top: 0.5rem;
}

/* ---------- Empty state ---------- */
.announce-list-section .empty-state {
    padding: 4rem 1rem;
}

/* ---------- CTA strip ---------- */
.announce-cta-strip {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 55%, #053782 100%);
    position: relative;
    overflow: hidden;
}

.announce-cta-strip::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 450px; height: 450px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.announce-cta-strip::after {
    content: '';
    position: absolute;
    bottom: -50%; left: -8%;
    width: 350px; height: 350px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.announce-cta-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.85;
    position: relative; z-index: 1;
}

.announce-cta-strip h3 {
    font-weight: 700;
    position: relative; z-index: 1;
}

.announce-cta-strip .lead {
    color: #dbe8ff;
    position: relative; z-index: 1;
}

.announce-cta-strip .btn {
    border-radius: 50px;
    padding: 12px 32px;
    font-weight: 600;
    position: relative; z-index: 1;
    transition: all 0.3s;
}

.announce-cta-strip .btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .announce-hero {
        padding: 3.5rem 0 3rem;
        text-align: center;
    }
    .announce-hero-stat { margin-top: 1.5rem; }
}

@media (max-width: 768px) {
    .announce-featured-card {
        padding: 1.75rem 1.5rem;
    }
    .announce-featured-body {
        padding-right: 0;
    }
    .announce-featured-ribbon {
        top: auto;
        bottom: 1rem;
        right: 1rem;
    }
}

@media (max-width: 576px) {
    .announce-item {
        flex-direction: column;
        padding: 1.25rem;
        gap: 1rem;
    }

    .announce-date-block {
        width: 100%;
        height: auto;
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.6rem 1rem;
        justify-content: flex-start;
    }

    .announce-date-day   { font-size: 1.25rem; }
    .announce-date-month { font-size: 0.72rem; margin-top: 0; }
    .announce-date-year  { font-size: 0.72rem; margin-top: 0; opacity: 0.85; }

    .announce-title      { font-size: 1.02rem; }
    .announce-text       { font-size: 0.88rem; }

    .announce-btn {
        width: 100%;
        justify-content: center;
    }
}


/* ============================================================
   HOMEPAGE — FEEDBACK PREVIEW (upgraded)
   ============================================================ */

.feedback-preview-section {
    background: linear-gradient(180deg, #eef4ff 0%, #f8f9fa 100%);
}

.feedback-home-card {
    position: relative;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 18px;
    padding: 1.75rem 1.5rem 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s;
    overflow: hidden;
}

/* Top accent bar that sweeps in on hover */
.feedback-home-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd, #0a58ca, #053782);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feedback-home-card:hover {
    transform: translateY(-10px);
    border-color: #dbeafe;
    box-shadow: 0 25px 55px rgba(13, 110, 253, 0.16);
}

.feedback-home-card:hover::before {
    transform: scaleX(1);
}

/* Large decorative quote */
.feedback-home-quote {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    color: rgba(13, 110, 253, 0.12);
    line-height: 1;
    transition: all 0.4s;
}

.feedback-home-card:hover .feedback-home-quote {
    color: rgba(13, 110, 253, 0.25);
    transform: scale(1.15) rotate(-5deg);
}

/* Header (avatar + identity) */
.feedback-home-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.feedback-home-avatar,
.feedback-home-avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 4px solid #fff;
    box-shadow: 0 8px 22px rgba(13, 110, 253, 0.2);
    transition: transform 0.4s, box-shadow 0.4s;
}

.feedback-home-avatar-placeholder {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.feedback-home-card:hover .feedback-home-avatar,
.feedback-home-card:hover .feedback-home-avatar-placeholder {
    transform: scale(1.06);
    box-shadow: 0 12px 28px rgba(13, 110, 253, 0.35);
}

.feedback-home-identity {
    min-width: 0;
}

.feedback-home-name {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.2rem;
}

.feedback-home-course {
    font-size: 0.8rem;
    color: #0d6efd;
    font-weight: 600;
    margin-bottom: 0.2rem;
    line-height: 1.4;
}

.feedback-home-inst {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Quote text */
.feedback-home-text {
    margin: 0 0 1.25rem 0;
    padding: 0;
    border: none;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.feedback-home-text p {
    font-size: 0.9rem;
    line-height: 1.75;
    color: #334155;
    font-style: italic;
    margin: 0;
}

/* Footer */
.feedback-home-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px dashed #e2e8f0;
    position: relative;
    z-index: 1;
}

.feedback-home-tag {
    display: inline-flex;
    align-items: center;
    background: #eef4ff;
    color: #0d6efd;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
}

.feedback-home-link {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s;
}

.feedback-home-link:hover {
    color: #0d6efd;
}

/* ============================================================
   HOMEPAGE — ANNOUNCEMENTS PREVIEW (upgraded)
   ============================================================ */

.announcement-preview-section {
    background: #fff;
    position: relative;
}

.announce-home-card {
    position: relative;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 18px;
    padding: 1.5rem 1.5rem 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s;
    overflow: hidden;
}

.announce-home-card:hover {
    transform: translateY(-10px);
    border-color: #dbeafe;
    box-shadow: 0 25px 55px rgba(13, 110, 253, 0.16);
}

/* Left border color-coded by priority */
.announce-home-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #0d6efd, #0a58ca);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}

.announce-home-card:hover::before {
    transform: scaleY(1);
}

.announce-home-urgent    { border-top: 4px solid #dc3545; }
.announce-home-important { border-top: 4px solid #ffc107; }
.announce-home-normal    { border-top: 4px solid #0d6efd; }

.announce-home-urgent::before    { background: linear-gradient(180deg, #dc3545, #a71d2a); }
.announce-home-important::before { background: linear-gradient(180deg, #ffc107, #ff9800); }

/* Pinned ribbon */
.announce-home-pinned {
    background: linear-gradient(180deg, #fffdf5 0%, #ffffff 60%);
}

.announce-home-ribbon {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #212529;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 15px rgba(255, 152, 0, 0.35);
    z-index: 2;
}

/* Date block */
.announce-home-date {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 66px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    line-height: 1;
    margin-bottom: 1rem;
    box-shadow: 0 10px 22px rgba(13, 110, 253, 0.28);
    flex-shrink: 0;
}

.announce-home-urgent .announce-home-date {
    background: linear-gradient(135deg, #dc3545, #a71d2a);
    box-shadow: 0 10px 22px rgba(220, 53, 69, 0.3);
}

.announce-home-important .announce-home-date {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #212529;
    box-shadow: 0 10px 22px rgba(255, 152, 0, 0.3);
}

.announce-home-day   { font-size: 1.35rem; font-weight: 800; }
.announce-home-month { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; font-weight: 700; }
.announce-home-year  { font-size: 0.6rem; opacity: 0.85; margin-top: 1px; font-weight: 600; }

/* Body */
.announce-home-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.announce-home-meta {
    margin-bottom: 0.6rem;
}

.announce-home-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 3px 10px;
    border-radius: 50px;
    text-transform: uppercase;
}

.announce-home-badge-danger    { background: #fee2e2; color: #991b1b; }
.announce-home-badge-warning   { background: #fef3c7; color: #92400e; }
.announce-home-badge-secondary { background: #eef4ff; color: #0d6efd; }

.announce-home-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.45;
    margin-bottom: 0.6rem;
}

.announce-home-text {
    font-size: 0.85rem;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Actions */
.announce-home-actions {
    margin-top: auto;
    padding-top: 0.5rem;
}

.announce-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 6px 18px rgba(13, 110, 253, 0.28);
}

.announce-home-btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 14px 26px rgba(13, 110, 253, 0.4);
    background: linear-gradient(135deg, #0a58ca, #053782);
}

.announce-home-urgent .announce-home-btn {
    background: linear-gradient(135deg, #dc3545, #a71d2a);
    box-shadow: 0 6px 18px rgba(220, 53, 69, 0.3);
}

.announce-home-urgent .announce-home-btn:hover {
    background: linear-gradient(135deg, #a71d2a, #7f1019);
    box-shadow: 0 14px 26px rgba(220, 53, 69, 0.45);
}

.announce-home-important .announce-home-btn {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #212529;
    box-shadow: 0 6px 18px rgba(255, 152, 0, 0.3);
}

.announce-home-important .announce-home-btn:hover {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #212529;
    box-shadow: 0 14px 26px rgba(255, 152, 0, 0.45);
}

/* ---------- Responsive ---------- */
@media (max-width: 576px) {
    .feedback-home-card,
    .announce-home-card {
        padding: 1.25rem 1.15rem 1rem;
    }

    .feedback-home-quote {
        font-size: 2rem;
        top: 0.75rem;
        right: 1rem;
    }

    .feedback-home-avatar,
    .feedback-home-avatar-placeholder {
        width: 54px;
        height: 54px;
    }

    .feedback-home-avatar-placeholder {
        font-size: 1.1rem;
    }

    .feedback-home-name { font-size: 0.95rem; }

    .announce-home-title { font-size: 0.96rem; }
    .announce-home-text  { font-size: 0.8rem; }
}


/* ============================================================
   GALLERY PAGE
   ============================================================ */

/* ---------- Hero ---------- */
.gallery-hero {
    position: relative;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 55%, #053782 100%);
    padding: 5rem 0 4rem;
    overflow: hidden;
}
.gallery-hero::before,
.gallery-hero::after {
    content: ''; position: absolute; border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}
.gallery-hero::before { width: 500px; height: 500px; top: -40%; right: -8%; }
.gallery-hero::after  { width: 350px; height: 350px; bottom: -45%; left: -6%; background: rgba(255, 255, 255, 0.04); }
.gallery-hero-overlay {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(255,255,255,0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(255,255,255,0.06) 0%, transparent 40%);
}
.gallery-eyebrow {
    display: inline-block; text-transform: uppercase;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 2px;
    color: #ffd966; margin-bottom: 0.6rem; position: relative; z-index: 1;
}
.gallery-hero-title {
    font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
    color: #fff; margin-bottom: 0.75rem; text-shadow: 2px 3px 12px rgba(0,0,0,0.3);
    position: relative; z-index: 1;
}
.gallery-hero-subtitle {
    font-size: 1.05rem; color: #dbe8ff; max-width: 640px;
    line-height: 1.7; margin-bottom: 1.25rem; position: relative; z-index: 1;
}
.gallery-hero-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; position: relative; z-index: 1; }
.gallery-hero-chip {
    background: rgba(255, 255, 255, 0.15); color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 14px; border-radius: 50px; font-size: 0.82rem;
    font-weight: 500; backdrop-filter: blur(6px); transition: all 0.25s;
}
.gallery-hero-chip:hover { background: rgba(255, 255, 255, 0.28); transform: translateY(-2px); }
.gallery-hero-stat {
    display: inline-block; background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.25rem 2rem; border-radius: 16px;
    backdrop-filter: blur(8px); position: relative; z-index: 1; text-align: center;
}
.gallery-hero-stat-number { font-size: 2.5rem; font-weight: 800; color: #fff; line-height: 1; }
.gallery-hero-stat-label {
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px;
    color: #dbe8ff; margin-top: 6px; font-weight: 600;
}

/* ---------- Section ---------- */
.gallery-section { background: #fff; }

/* ---------- Filter buttons ---------- */
.gallery-filter-wrap {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    justify-content: center;
}
.gallery-filter-btn {
    background: #f1f5f9; border: 1px solid transparent;
    color: #334155; padding: 8px 16px; border-radius: 50px;
    font-size: 0.88rem; font-weight: 600;
    transition: all 0.25s; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
}
.gallery-filter-btn:hover { background: #e2e8f0; transform: translateY(-2px); }
.gallery-filter-btn.active {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff; box-shadow: 0 8px 18px rgba(13, 110, 253, 0.32);
}
.gallery-filter-count {
    background: rgba(0,0,0,0.08); font-size: 0.7rem;
    font-weight: 700; padding: 1px 8px; border-radius: 20px;
}
.gallery-filter-btn.active .gallery-filter-count {
    background: rgba(255,255,255,0.25);
}

/* ---------- Grid ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.gallery-grid-item { display: block; }

.gallery-card {
    display: block; text-decoration: none;
    background: #fff; border: 1px solid #e9ecef;
    border-radius: 16px; overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s;
    height: 100%;
}
.gallery-card:hover {
    transform: translateY(-8px);
    border-color: #dbeafe;
    box-shadow: 0 22px 45px rgba(13, 110, 253, 0.18);
}

/* Image area */
.gallery-card-image {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #eef4ff;
}
.gallery-card-image img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.6s ease;
}
.gallery-card:hover .gallery-card-image img { transform: scale(1.08); }

/* Hover overlay + zoom icon */
.gallery-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg,
        rgba(13,110,253,0) 0%,
        rgba(13,110,253,0.6) 100%);
    opacity: 0;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.35s ease;
}
.gallery-card:hover .gallery-card-overlay { opacity: 1; }

.gallery-card-zoom {
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(255,255,255,0.95); color: #0d6efd;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    transform: scale(0.7);
    transition: transform 0.35s ease;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.gallery-card:hover .gallery-card-zoom { transform: scale(1); }

/* Info block */
.gallery-card-info {
    padding: 1rem 1.15rem 1.25rem;
    position: relative;
}
.gallery-card-cat {
    display: inline-block;
    background: #eef4ff; color: #0d6efd;
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.5px; text-transform: uppercase;
    padding: 3px 10px; border-radius: 50px; margin-bottom: 0.5rem;
}
.gallery-card-title {
    font-size: 1rem; font-weight: 700; color: #0f172a;
    margin-bottom: 0.35rem; line-height: 1.4;
    transition: color 0.25s;
}
.gallery-card:hover .gallery-card-title { color: #0d6efd; }
.gallery-card-desc {
    font-size: 0.82rem; color: #64748b;
    line-height: 1.55; margin-bottom: 0;
}

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(8, 15, 40, 0.94);
    display: none; align-items: center; justify-content: center;
    z-index: 9999; padding: 1rem;
    backdrop-filter: blur(6px);
}
.lightbox.active { display: flex; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox-content {
    position: relative;
    max-width: 92vw; max-height: 92vh;
    display: flex; flex-direction: column; align-items: center;
}
.lightbox-img {
    max-width: 92vw; max-height: 78vh;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    object-fit: contain;
    background: #000;
}
.lightbox-caption {
    color: #fff; text-align: center;
    margin-top: 1rem; max-width: 700px;
}
.lightbox-caption h5 { font-weight: 700; margin-bottom: 0.35rem; }
.lightbox-caption p  { color: #cbd5e1; font-size: 0.9rem; margin-bottom: 0.35rem; }
.lightbox-counter {
    font-size: 0.75rem; color: #94a3b8;
    letter-spacing: 1px; text-transform: uppercase;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff; width: 48px; height: 48px;
    border-radius: 50%; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.25s;
    z-index: 2;
    backdrop-filter: blur(6px);
}
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev  { top: 50%; left: 1rem; transform: translateY(-50%); }
.lightbox-next  { top: 50%; right: 1rem; transform: translateY(-50%); }
.lightbox-close:hover,
.lightbox-nav:hover {
    background: #0d6efd; border-color: #0d6efd; transform: translateY(-2px);
}
.lightbox-prev:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.08); }

/* ---------- CTA strip ---------- */
.gallery-cta-strip {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 55%, #053782 100%);
    position: relative; overflow: hidden;
}
.gallery-cta-strip::before {
    content: ''; position: absolute;
    top: -50%; right: -10%; width: 450px; height: 450px;
    border-radius: 50%; background: rgba(255,255,255,0.06);
}
.gallery-cta-icon {
    font-size: 3rem; margin-bottom: 1rem;
    opacity: 0.85; position: relative; z-index: 1;
}
.gallery-cta-strip h3 { font-weight: 700; position: relative; z-index: 1; }
.gallery-cta-strip .lead { color: #dbe8ff; position: relative; z-index: 1; }
.gallery-cta-strip .btn {
    border-radius: 50px; padding: 12px 32px;
    font-weight: 600; position: relative; z-index: 1;
    transition: all 0.3s;
}
.gallery-cta-strip .btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

/* ---------- Empty state ---------- */
.gallery-empty, .gallery-section .empty-state { padding: 3rem 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .gallery-hero { padding: 3.5rem 0 3rem; text-align: center; }
    .gallery-hero-subtitle { margin-left: auto; margin-right: auto; }
    .gallery-hero-chips { justify-content: center; }
    .gallery-hero-stat  { margin-top: 1.5rem; }
}
@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.85rem;
    }
    .gallery-card-info { padding: 0.85rem 0.9rem 1rem; }
    .gallery-card-title { font-size: 0.9rem; }
    .gallery-card-desc { font-size: 0.78rem; }
    .gallery-card-zoom { width: 42px; height: 42px; font-size: 1rem; }

    .lightbox-close, .lightbox-nav { width: 40px; height: 40px; font-size: 0.95rem; }
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
    .lightbox-img { max-height: 65vh; }
}


/* ============================================================
   HOMEPAGE — GALLERY PREVIEW
   ============================================================ */

.gallery-preview-section {
    background: #fff;
}

.gallery-preview-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s;
    height: 100%;
}

.gallery-preview-card:hover {
    transform: translateY(-8px);
    border-color: #dbeafe;
    box-shadow: 0 22px 45px rgba(13, 110, 253, 0.18);
}

/* Image area */
.gallery-preview-image {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #eef4ff;
}

.gallery-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-preview-card:hover .gallery-preview-image img {
    transform: scale(1.08);
}

/* Hover overlay + zoom icon */
.gallery-preview-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(13, 110, 253, 0) 0%,
        rgba(13, 110, 253, 0.65) 100%);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.35s ease;
}

.gallery-preview-card:hover .gallery-preview-overlay {
    opacity: 1;
}

.gallery-preview-zoom {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transform: scale(0.7);
    transition: transform 0.35s ease;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.gallery-preview-card:hover .gallery-preview-zoom {
    transform: scale(1);
}

/* Info block */
.gallery-preview-info {
    padding: 1rem 1.15rem 1.15rem;
}

.gallery-preview-cat {
    display: inline-block;
    background: #eef4ff;
    color: #0d6efd;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 0.5rem;
}

.gallery-preview-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0;
    line-height: 1.4;
    transition: color 0.25s;
}

.gallery-preview-card:hover .gallery-preview-title {
    color: #0d6efd;
}

/* ---------- Responsive ---------- */
@media (max-width: 576px) {
    .gallery-preview-zoom {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .gallery-preview-info {
        padding: 0.85rem 0.95rem 1rem;
    }

    .gallery-preview-title {
        font-size: 0.9rem;
    }
}