/* ============================================================
   COLLEGE MANAGEMENT SYSTEM - Custom CSS
   Uses Bootstrap 5 + Custom Overrides
   ============================================================ */

:root {
    --primary: #1e3a5f;
    --primary-light: #2d5a8e;
    --secondary: #c9a227;
    --accent: #e8b923;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    color: #1a1a2e;
}

/* ---- Top Bar ---- */
.top-bar {
    background: var(--primary);
    color: #fff;
    font-size: 0.8rem;
    padding: 6px 0;
}
.top-bar a { color: rgba(255,255,255,.85); text-decoration: none; }
.top-bar a:hover { color: #fff; }
.btn-top-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 3px 12px;
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none !important;
    white-space: nowrap;
    transition: opacity .2s ease, transform .2s ease;
}
.btn-top-action:hover { opacity: .9; transform: translateY(-1px); }
.btn-elibrary {
    background: var(--secondary);
    color: var(--primary) !important;
}
.btn-enroll {
    background: #198754;
    color: var(--primary) !important;
}
.btn-results {
    background: #dc3545;
    color: var(--primary) !important;
}

/* ---- Navbar ---- */
.navbar-college {
    box-shadow: 0 2px 15px rgba(0,0,0,.08);
}
.navbar-college .navbar-brand {
    font-family: 'Playfair Display', serif;
    color: var(--primary) !important;
    font-weight: 700;
    font-size: 1.3rem;
}
.navbar-college .nav-link {
    color: #333 !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 14px !important;
    border-radius: 6px;
    transition: all .2s;
}
.navbar-college .nav-link:hover,
.navbar-college .nav-link.active {
    color: var(--primary) !important;
    background: rgba(30,58,95,.05);
}
/* College Logo / Header alignment */
.college-logo {
    width: 245px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    overflow: hidden;
}
.college-logo img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: left center;
    display: block;
}

/* ---- Hero Slider ---- */
.hero-slide {
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.15);
}
.hero-slide .hero-content { position: relative; z-index: 2; }
.hero-slide h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
}
.hero-slide p { font-size: 1.15rem; opacity: .85; }
.btn-gold {
    background: var(--secondary);
    color: var(--primary);
    font-weight: 700;
    border: none;
    padding: 10px 32px;
    border-radius: 8px;
    transition: all .3s;
}
.btn-gold:hover {
    background: var(--accent);
    transform: translateY(-2px);
    color: var(--primary);
}

/* ---- Section Styling ---- */
.section-title {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    font-weight: 700;
}
.section-divider {
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}
.page-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.page-banner h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* ---- Cards ---- */
.card-hover {
    transition: transform .3s, box-shadow .3s;
    border: 1px solid rgba(0,0,0,.06);
}
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,.1);
}
.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.teacher-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,.15);
}

/* ---- Statistics Bar ---- */
.stats-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 60px 0;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
}
.stat-label { opacity: .7; font-size: .85rem; }

/* ---- Dashboard ---- */
.sidebar {
    width: 260px;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    transition: transform .3s;
}
.sidebar-admin { background: linear-gradient(180deg, #1e3a5f, #142b48); }
.sidebar-teacher { background: linear-gradient(180deg, #166534, #14532d); }
.sidebar-student { background: linear-gradient(180deg, #1e40af, #1e3a8a); }
.sidebar-parent { background: linear-gradient(180deg, #6b21a8, #581c87); }

.sidebar .nav-link {
    color: rgba(255,255,255,.7) !important;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: .875rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px 8px;
    transition: all .2s;
}
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,.12);
}
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    background: #f1f5f9;
}
.dash-stat {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    transition: transform .2s;
}
.dash-stat:hover { transform: translateY(-3px); }

/* ---- Tables ---- */
.table-custom thead th {
    background: var(--primary);
    color: #fff;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 10px 14px;
    border: none;
}
.table-custom tbody td {
    padding: 10px 14px;
    font-size: .875rem;
    vertical-align: middle;
}
.table-custom tbody tr:hover { background: #f0f9ff; }

/* ---- Login ---- */
.login-card {
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,.25);
    overflow: hidden;
    max-width: 440px;
    width: 100%;
}
.login-header {
    padding: 40px 30px;
    text-align: center;
    color: #fff;
}
.login-header-admin { background: linear-gradient(135deg, #dc2626, #991b1b); }
.login-header-teacher { background: linear-gradient(135deg, #16a34a, #166534); }
.login-header-student { background: linear-gradient(135deg, #2563eb, #1e40af); }
.login-header-parent { background: linear-gradient(135deg, #9333ea, #6b21a8); }

/* ---- Footer ---- */
.footer {
    background: var(--primary);
    color: #fff;
    padding: 50px 0 0;
}
.footer h5 { color: var(--secondary); font-weight: 600; }
.footer a { color: rgba(255,255,255,.7); text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--secondary); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 15px 0;
    text-align: center;
    font-size: .8rem;
    color: rgba(255,255,255,.5);
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .hero-slide h2 { font-size: 2rem; }
    .hero-slide { min-height: 380px; }
}

/* ---- Print ---- */
@media print {
    .no-print { display: none !important; }
    .sidebar, .top-bar, .navbar, .footer { display: none !important; }
    .main-content { margin: 0; }
}


/* ============================================================
   MODERN UX/UI LAYER
   ============================================================ */
:root{--primary:#12365b;--primary-light:#245a8d;--secondary:#d7a62a;--accent:#f0c44f;--surface:#ffffff;--surface-2:#f5f7fb;--ink:#162033;--muted:#667085;--line:#e7ebf2;--radius:18px;--shadow:0 12px 35px rgba(18,54,91,.08);--shadow-lg:0 22px 60px rgba(18,54,91,.13)}
html{scroll-behavior:smooth} body{background:#fbfcfe;color:var(--ink);line-height:1.65} .container{max-width:1180px}
.top-bar{padding:8px 0;background:#0b2744;border-bottom:1px solid rgba(255,255,255,.08)}
.navbar-college{background:rgba(255,255,255,.96)!important;backdrop-filter:blur(14px);border-bottom:1px solid var(--line);box-shadow:0 5px 25px rgba(15,39,68,.06)}
.navbar-college .nav-link{font-weight:600;color:#334155!important;padding:10px 12px!important}.navbar-college .nav-link:hover,.navbar-college .nav-link.active{background:#eef5fb;color:var(--primary)!important}
.college-logo{width:185px;height:62px}.college-logo img{max-width:185px;max-height:62px}
.hero-slide{min-height:590px}.hero-slide .hero-content{max-width:800px}.hero-slide h2{font-size:clamp(2.2rem,5vw,4.4rem);letter-spacing:-.04em;text-shadow:0 6px 25px rgba(0,0,0,.2)}.hero-slide p{font-size:1.2rem}
.btn-gold{border-radius:12px;padding:11px 25px;box-shadow:0 8px 20px rgba(215,166,42,.22)}.btn-gold:hover{transform:translateY(-2px);box-shadow:0 12px 25px rgba(215,166,42,.28)}
.section-title{font-size:clamp(1.8rem,3vw,2.5rem);letter-spacing:-.025em}.section-divider{height:3px;width:52px;background:var(--secondary)}
.page-banner{padding:78px 0;background:radial-gradient(circle at 20% 20%,#2d6799,transparent 45%),linear-gradient(135deg,#0b2744,#174d79)}.page-banner h1{font-size:clamp(2.2rem,4vw,3.6rem);letter-spacing:-.04em}
.card{border-radius:var(--radius)}.card-hover{box-shadow:var(--shadow);transition:transform .25s ease,box-shadow .25s ease}.card-hover:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg)}
.form-control,.form-select{border:1px solid #dfe5ed;border-radius:12px;padding:.72rem .9rem;background:#fff}.form-control:focus,.form-select:focus{border-color:#4d88b9;box-shadow:0 0 0 .22rem rgba(36,90,141,.12)}
.modern-form .form-label{font-weight:600;color:#344054}.modern-form .form-label span{color:#d14343}.modern-form-card{box-shadow:var(--shadow-lg);border-radius:24px}.form-hero{padding:85px 0;background:radial-gradient(circle at 80% 20%,rgba(215,166,42,.18),transparent 30%),linear-gradient(135deg,#0b2744,#1c5687);color:#fff}.form-hero h1{font-size:clamp(2.4rem,5vw,4.5rem);line-height:1.05;letter-spacing:-.05em;font-weight:800}.form-hero p{font-size:1.15rem;max-width:650px;color:rgba(255,255,255,.8)}.eyebrow{text-transform:uppercase;letter-spacing:.18em;font-size:.76rem;font-weight:800;color:#f0c44f}.form-hero-card{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(12px);border-radius:22px;padding:28px;display:flex;align-items:center;gap:18px}.form-hero-card>i{font-size:2.5rem;color:#f0c44f}.form-hero-card strong{display:block;font-size:1.35rem}.form-hero-card small{color:rgba(255,255,255,.7)}
.footer{background:#0b2744;padding-top:55px}.footer h5{font-weight:700}.footer a{transition:color .2s}.footer a:hover{color:#f0c44f!important}
.avatar-soft{display:inline-flex;width:44px;height:44px;border-radius:50%;align-items:center;justify-content:center;background:#eef4f8;color:#4b6b85}.sidebar-parent-label{display:flex;align-items:center;gap:10px;padding:8px 14px 4px;color:rgba(255,255,255,.55);font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;font-weight:700}.sidebar-subnav{padding-left:12px}.sidebar-sublink{font-size:.82rem!important;padding:7px 12px!important}
@media(max-width:767px){.college-logo{width:145px;height:52px}.college-logo img{max-width:145px;max-height:52px}.hero-slide{min-height:500px}.top-bar .container{justify-content:center!important}.form-hero{padding:60px 0}}

/* ---- Larger Staff & Management Committee Images ---- */
.staff-photo { width: 220px; height: 220px; object-fit: cover; border-radius: 24px; display:block; box-shadow:0 10px 28px rgba(18,54,91,.14); }
.committee-photo { width: 230px; height: 230px; object-fit: cover; border-radius: 24px; }
.committee-detail-photo { width: 220px; height: 220px; object-fit: cover; border-radius: 24px; }
.teacher-avatar { width:220px; height:220px; border-radius:24px; }
@media(max-width:767px){ .staff-photo{width:180px;height:180px}.committee-photo,.committee-detail-photo{width:180px;height:180px}.teacher-avatar{width:180px;height:180px} }

/* ---- Full-width YouTube ---- */
.youtube-full-width { width:100%; background:#000; }
.youtube-full-width .ratio { min-height:420px; }
.youtube-full-width iframe { width:100%; height:100%; border:0; }
@media (min-width: 992px) {
    .youtube-full-width .ratio { min-height:520px; }
}
@media (max-width: 767px) {
    .youtube-full-width .ratio { min-height:220px; }
}


/* ---- Full-width category/page content and About page ---- */
.about-hero-image,.website-page-hero-image{width:100%;overflow:hidden;border-radius:18px;background:#eef2f6;box-shadow:0 14px 40px rgba(18,54,91,.10)}
.about-16x9-image,.website-page-16x9-image{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}
.about-full-content{width:100%;max-width:none}
.about-introduction,.about-rich-text{white-space:normal;word-break:normal}
.website-page-content{width:100%;max-width:none;font-size:1.05rem;line-height:1.8;color:#344054}
.website-page-content p,.website-page-content li{margin-bottom:1rem}
.website-page-content h1,.website-page-content h2,.website-page-content h3,.website-page-content h4{color:var(--primary);margin-top:1.5rem;margin-bottom:.8rem}
.website-page-content img{max-width:100%;height:auto;border-radius:14px}
.website-page-content table{width:100%;border-collapse:collapse;margin:1.25rem 0}
.website-page-content th,.website-page-content td{border:1px solid #dfe5ed;padding:.65rem;vertical-align:top}
.website-page-content th{background:#f4f7fa}

.website-page-content [style*="text-align"]{max-width:100%;}


/* ===== Navigation alignment / full-width homepage ===== */
.navbar-college > .container-fluid { width:100%; }
.navbar-college .navbar-brand { flex:0 0 auto; margin-right:auto; }
.navbar-college .navbar-collapse { flex-grow:1; }
.navbar-college .navbar-nav { margin-left:auto; }
@media (min-width: 992px) { .navbar-college .navbar-collapse { justify-content:flex-end; } }
@media (max-width: 991.98px) { .navbar-college .navbar-collapse { width:100%; padding-top:.5rem; } .navbar-college .navbar-nav { width:100%; } }
.home-page .container,.home-page .container-sm,.home-page .container-md,.home-page .container-lg,.home-page .container-xl,.home-page .container-xxl { width:100% !important; max-width:100% !important; }
.home-page section > .container,.home-page section > .container-fluid { padding-left:clamp(16px,3vw,48px); padding-right:clamp(16px,3vw,48px); }
.home-page .youtube-full-width { width:100%; margin-left:0; }
.content-page-shell { background:#fff; }
.content-page-inner { width:100%; padding:clamp(28px,4vw,56px) clamp(16px,4vw,56px); }
.content-page-card { background:#fff; border:1px solid var(--line); border-radius:24px; box-shadow:var(--shadow); overflow:hidden; }
.content-page-card .content-page-body { padding:clamp(24px,4vw,52px); }
.content-page-content { color:#344054; font-size:1.06rem; line-height:1.85; }
.content-page-content h2,.content-page-content h3,.content-page-content h4 { color:var(--primary); font-weight:700; margin-top:1.5rem; }
.content-page-content h3:first-child { margin-top:0; }
.content-page-content ul,.content-page-content ol { padding-left:1.35rem; }
.content-page-content li { margin:.45rem 0; }
.content-page-content blockquote { margin:1.5rem 0; padding:1rem 1.25rem; border-left:4px solid var(--secondary); background:#faf7ee; border-radius:0 12px 12px 0; }
.page-breadcrumb { padding:12px 0 0; }
.page-breadcrumb a { color:var(--primary); text-decoration:none; }
.empty-state { border:1px dashed #cbd5e1; background:linear-gradient(180deg,#fff,#f8fafc); border-radius:24px; padding:56px 24px; text-align:center; }
.empty-state .empty-icon { width:76px;height:76px;border-radius:20px;display:inline-flex;align-items:center;justify-content:center;background:#edf3f8;color:var(--primary);font-size:2rem;margin-bottom:18px; }
.empty-state h3 { color:var(--primary); font-weight:700; }
.empty-state p { max-width:620px; margin:0 auto 20px; color:#667085; }
@media (max-width:767px) { .home-page section > .container,.home-page section > .container-fluid { padding-left:14px; padding-right:14px; } }

/* ============================================================
   Content presentation upgrades
   ============================================================ */
:root { --line:#e3e8ef; --shadow:0 14px 45px rgba(18,54,91,.10); }
.eyebrow{display:inline-block;text-transform:uppercase;letter-spacing:.12em;font-size:.72rem;font-weight:800;color:var(--secondary);margin-bottom:.4rem}
.feature-page{overflow:hidden}
.feature-page-banner-image{background:#eef3f7;overflow:hidden}
.feature-page-banner-image img{display:block;width:100%;aspect-ratio:21/8;object-fit:cover}
.feature-page-grid{display:grid;grid-template-columns:minmax(320px,.9fr) 1.1fr;min-height:460px}
.feature-page-image{min-height:100%;background:#eef3f7}.feature-page-image img{width:100%;height:100%;min-height:460px;object-fit:cover;display:block}
.feature-page-copy{padding:clamp(28px,5vw,72px);display:flex;flex-direction:column;justify-content:center;background:#fff}
.feature-page-copy h2,.feature-page .content-page-body h2{font-family:'Playfair Display',serif;color:var(--primary);font-weight:700;font-size:clamp(2rem,4vw,3.15rem);margin-bottom:.65rem}
.feature-person{font-weight:800;color:var(--secondary);font-size:1rem;margin-bottom:1.25rem}.message-quote{padding:20px 22px;border-left:4px solid var(--secondary);background:#fbf8ef;border-radius:0 16px 16px 0}.message-quote i{font-size:2rem;color:var(--secondary)}.message-quote p{font-size:1.05rem;line-height:1.85;margin:0;color:#475467}
.feature-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:0 8px 25px rgba(18,54,91,.07);transition:transform .25s ease,box-shadow .25s ease}.feature-card:hover{transform:translateY(-5px);box-shadow:0 18px 38px rgba(18,54,91,.12)}.feature-card h3{font-size:1.1rem;color:var(--primary);font-weight:800;margin:0 0 .6rem}.feature-card p{margin:0;color:#667085;line-height:1.7;font-size:.94rem}.feature-icon{width:58px;height:58px;border-radius:17px;background:linear-gradient(135deg,var(--primary),var(--primary-light));color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.4rem;margin-bottom:18px}
.rich-intro{padding-top:10px;color:#475467;line-height:1.85}.rich-intro img{max-width:100%;height:auto;border-radius:14px}
.conduct-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.conduct-point{display:flex;gap:18px;align-items:flex-start;padding:22px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,#fff,#fafbfd);box-shadow:0 7px 20px rgba(18,54,91,.055)}.conduct-number{width:52px;height:52px;flex:0 0 52px;border-radius:15px;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;letter-spacing:.05em}.conduct-point h3{margin:0 0 .35rem;color:var(--primary);font-size:1.06rem;font-weight:800}.conduct-point p{margin:0;color:#667085;line-height:1.72}
.routine-grid{align-items:stretch}.routine-card{display:block;text-align:left;border:1px solid var(--line);border-radius:18px;background:#fff;padding:0;overflow:hidden;box-shadow:0 8px 25px rgba(18,54,91,.07);transition:transform .25s ease,box-shadow .25s ease}.routine-card:hover{transform:translateY(-5px);box-shadow:0 18px 38px rgba(18,54,91,.12)}.routine-card-image{display:block;background:#eef3f7}.routine-card-image img{width:100%;height:240px;object-fit:cover;display:block}.routine-card-body{display:flex;flex-direction:column;gap:6px;padding:18px}.routine-card-body strong{color:var(--primary);font-size:1rem}.routine-card-body small{color:#667085}.routine-view{font-size:.8rem;font-weight:800;color:var(--secondary);margin-top:6px}.routine-modal .modal-content{border-radius:18px;overflow:hidden}.routine-modal-image{max-width:100%;max-height:80vh;width:auto;height:auto;display:block;margin:0 auto;object-fit:contain}
.program-card{background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 10px 30px rgba(18,54,91,.07);transition:transform .25s ease,box-shadow .25s ease}.program-card:hover{transform:translateY(-5px);box-shadow:0 18px 45px rgba(18,54,91,.12)}.program-card-image{background:#eef3f7}.program-card-image img{display:block;width:100%;height:220px;object-fit:cover}.program-card-body{padding:22px}.program-card-body h3{font-size:1.22rem;color:var(--primary);font-weight:800;margin:.2rem 0 .8rem}.program-code{background:#eff4f8;color:var(--primary);font-weight:800;font-size:.72rem;padding:7px 9px;border-radius:10px}.program-meta{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.program-meta span{display:inline-flex;align-items:center;gap:6px;color:#667085;font-size:.82rem}.program-meta i{color:var(--secondary)}.program-eligibility{margin-top:16px;padding:12px 14px;background:#faf7ee;border-radius:12px;border-left:3px solid var(--secondary)}.program-eligibility strong{display:block;color:var(--primary);font-size:.8rem;margin-bottom:4px}.program-eligibility p{margin:0;color:#667085;font-size:.82rem;line-height:1.55}
@media (max-width: 991.98px){.feature-page-grid{grid-template-columns:1fr}.feature-page-image img{min-height:300px;height:320px}.navbar-college .navbar-brand{margin-right:0}}
@media (max-width: 767px){.conduct-grid{grid-template-columns:1fr}.feature-page-copy{padding:28px 22px}.feature-page-banner-image img{aspect-ratio:16/7}.routine-card-image img{height:210px}.program-card-image img{height:200px}}


/* Page banner removed: inner pages now start directly with their content. */
.site-page .page-banner { display:none !important; }


/* ============================================================
   Homepage testimonials with uploaded profile photos
   ============================================================ */
.testimonials-section {
    background: linear-gradient(180deg, #f6f8fc 0%, #ffffff 100%);
}
.testimonial-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: clamp(24px, 2.4vw, 34px);
    border: 1px solid #e5eaf1;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(18, 54, 91, .065);
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease;
}
.testimonial-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--primary-light));
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(18, 54, 91, .13);
}
.testimonial-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}
.testimonial-avatar {
    position: relative;
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e496e, #0d2947);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px rgba(215, 166, 42, .65), 0 8px 18px rgba(16, 46, 74, .14);
}
.testimonial-avatar-initial {
    color: #fff;
    font-weight: 800;
    font-size: 1.7rem;
    line-height: 1;
}
.testimonial-avatar-photo {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #f0f3f7;
}
.testimonial-person { min-width: 0; flex: 1 1 auto; }
.testimonial-person h3 {
    font-size: 1.05rem;
    color: var(--primary);
    line-height: 1.4;
    font-weight: 800;
    margin: 0 0 4px;
    overflow-wrap: anywhere;
}
.testimonial-person p {
    font-size: .84rem;
    color: #68778b;
    margin: 0;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.testimonial-quote-icon {
    align-self: flex-start;
    flex: 0 0 auto;
    margin-left: auto;
    font-size: 2rem;
    line-height: 1;
    color: rgba(215, 166, 42, .60);
}
.testimonial-rating { display: flex; gap: 5px; color: #d7a62a; font-size: .95rem; }
.testimonial-message {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #4c5c70;
    font-size: .97rem;
    line-height: 1.85;
    overflow-wrap: anywhere;
}
.testimonial-message p { margin: 0; }
@media (max-width: 575.98px) {
    .testimonial-card { padding: 24px 20px; gap: 18px; }
    .testimonial-avatar { width: 72px; height: 72px; flex-basis: 72px; }
    .testimonial-person h3 { font-size: 1rem; }
    .testimonial-quote-icon { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
    .testimonial-card { transition: none; }
    .testimonial-card:hover { transform: none; }
}
