:root {
    /* DEFAULT THEME (Automatic detection) */
    --navy: #0a1931;
    --navy2: #050912;
    --gold: #ffc947;
    --gold2: #e5b43f;
    --cyan: #06b6d4;
    --cyan2: #0891b2;
    --white: #ffffff;
    --gray: #94a3b8;
    --slate: #0a0f1e;
    --card-bg: rgba(30, 41, 59, 0.7);
}

@media (prefers-color-scheme: light) {
    :root {
        --navy: #f8fafc;
        --navy2: #f1f5f9;
        --gold: #d97706;
        --gold2: #b45309;
        --cyan: #0891b2;
        --cyan2: #0e7490;
        --white: #0f172a;
        --gray: #475569;
        --slate: #ffffff;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* ============================================================
   BODY BACKGROUND
   ============================================================ */
body {
    font-family: Arial, sans-serif;
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    background-color: #0a1931;
    background-image: 
        linear-gradient(
            rgba(5, 9, 18, 0.70),
            rgba(10, 25, 49, 0.75)
        ),
        url("/Images/bg.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top right,
            rgba(6,182,212,.12),
            transparent 40%),
        radial-gradient(circle at bottom left,
            rgba(255,201,71,.10),
            transparent 45%);
    pointer-events: none;
    z-index: -1;
}

img,
svg,
video,
iframe {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Accessibility: Keyboard Focus Indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

.wrapper {
    --min-col-size: 350px;
    max-inline-size: 1200px;
    margin-inline: auto;
    padding-inline: 1.5rem;
    display: grid;
    gap: 1.2rem;
    margin-block-start: 2rem;
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(var(--min-col-size), 100%), 1fr)
    );
}

ul {
    list-style: none;
}

li {
    list-style: none;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--navy2);
}

::-webkit-scrollbar-thumb {
    background: var(--cyan);
    border-radius: 2px;
}

/* ── HERO ── */
#hero {
    min-height: 100vh;
    padding: 7rem 0 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
    background: var(--navy);
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(10, 15, 30, 0.5), rgba(10, 15, 30, 0.6)), url('/work-place.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 5%;
}

.hero-workspace-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.hero-workspace-img:hover {
    transform: scale(1.02);
}

/* Glowing orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15), transparent 70%);
    top: -100px;
    right: -100px;
    animation: orb-float 8s ease-in-out infinite;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1), transparent 70%);
    bottom: 50px;
    left: -50px;
    animation: orb-float 10s ease-in-out infinite reverse;
}

@keyframes orb-float {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, -30px);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--cyan);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: fade-up 0.8s ease both;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--cyan);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

h1 {
    font-family: Arial, sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    animation: fade-up 0.8s 0.1s ease both;
}

h1 .accent {
    color: var(--cyan);
}

h1 .gold {
    color: var(--gold);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    animation: fade-up 0.8s 0.2s ease both;
}

.hero-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    animation: fade-up 0.8s 0.3s ease both;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #ffffff;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(6, 182, 212, 0.4);
    background: linear-gradient(135deg, #0891b2, #0e7490);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    gap: 0.8rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.03);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    animation: fade-up 0.8s 0.4s ease both;
}

.stat-num {
    font-family: Arial, sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    display: block;
}

.stat-num span {
    color: var(--cyan);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero graphic */
.hero-graphic {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 420px;
    animation: fade-up 0.8s 0.2s ease both;
}

.circuit-card {
    background: var(--card-bg);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 20px;
    padding: 2rem;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.circuit-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05), transparent 60%);
}

.cc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.cc-title {
    font-family: Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cyan);
}

.cc-dots {
    display: flex;
    gap: 5px;
}

.cc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.cc-dot:nth-child(1) { background: #EF4444; }
.cc-dot:nth-child(2) { background: var(--gold); }
.cc-dot:nth-child(3) { background: #22C55E; }

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--gray);
    margin-bottom: 0.4rem;
}

.skill-bar-label span:last-child {
    color: var(--cyan);
    font-weight: 600;
}

.skill-bar-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--cyan2));
    border-radius: 99px;
    animation: bar-fill 1.5s 1s ease both;
    transform-origin: left;
}

@keyframes bar-fill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.cc-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.cc-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--gold));
    display: grid;
    place-items: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.cc-student { font-size: 0.82rem; }
.cc-student strong {
    display: block;
    color: var(--white);
    font-size: 0.85rem;
}
.cc-student span { color: var(--gray); }

.cc-badge {
    margin-left: auto;
    background: rgba(34, 197, 94, 0.15);
    color: #4ADE80;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* ── SECTION COMMONS ── */
section { padding: 1.8rem 0; }
section > div { padding-left: 5%; padding-right: 5%; width: 100%; box-sizing: border-box; }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--cyan);
    margin-bottom: 1rem;
}
.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--cyan);
    border-radius: 2px;
}

.section-title {
    font-family: Arial, sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-sub {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 560px;
}

/* ── TESTIMONIALS GRID ── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.user-reviews-container {
    overflow: hidden;
    max-height: 1200px;
    transition: max-height 0.35s ease;
    margin-top: 3rem;
}

.user-reviews-container.expanded {
    max-height: 4000px;
}

.user-reviews-container:not(.expanded) .testi-card:nth-child(n+6) {
    display: none;
}

/* ── TESTI CARDS ── */
.testi-card {
    background: rgba(15,23,42,.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 20px 40px rgba(0,0,0,.25);
    border-radius: 16px;
    padding: 1.8rem;
    transition: all 0.3s;
}

.testi-card:hover {
    border-color: rgba(6, 182, 212, 0.2);
    transform: translateY(-3px);
}

.quote-icon {
    color: var(--cyan);
    font-size: 1.4rem;
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.testi-text {
    font-size: 0.9rem;
    color: #CBD5E1;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.testi-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.testi-name {
    font-weight: 600;
    font-size: 0.88rem;
}

.testi-role {
    font-size: 0.78rem;
    color: var(--gray);
}

.stars {
    color: var(--gold);
    font-size: 0.78rem;
    margin-bottom: 0.8rem;
}

/* ── RATING CHOICES ── */
.rating-choices {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
}

.rating-option {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    transition: all 0.2s ease;
    user-select: none;
}

.rating-option:hover {
    background: rgba(6,182,212,0.1);
    border-color: rgba(6,182,212,0.3);
}

.rating-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.rating-option input[type="radio"]:checked + .star-display {
    color: var(--gold);
    font-size: 1.05rem;
}

.rating-option input[type="radio"]:checked ~ .star-label {
    color: var(--gold);
    font-weight: 600;
}

.star-display {
    font-size: 0.95rem;
    color: var(--gold);
    transition: color 0.2s ease, font-size 0.2s ease;
}

.star-label {
    font-size: 0.75rem;
    color: var(--gray);
    transition: color 0.2s ease;
}

/* ── SOCIAL LINKS ── */
.social-links {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    align-items: center;
}

.social-links a {
    display: inline-flex;
    width: 34px;
    height: 34px;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
    background: rgba(6, 182, 212, 0.15);
    transform: translateY(-1px);
}

.icon-small {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ── GLASS PANEL ── */
.glass-panel {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.text-center { text-align: center; }
.m-auto { margin-left: auto; margin-right: auto; }
.max-w-800 { max-width: 800px; }
.max-w-1000 { max-width: 1000px; }

/* ============================================================
   HERO CARD
   ============================================================ */
.hero-card {
    position: relative;
    max-width: 1150px;
    margin: 0 auto;
    padding: 55px 45px;
    text-align: center;
    background: rgba(15, 23, 42, 0.85);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 2px solid rgba(46, 250, 250, 0.863);
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    top: -130px;
    right: -130px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.18);
    filter: blur(70px);
    z-index: 0;
}

.hero-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    bottom: -120px;
    left: -120px;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.12);
    filter: blur(70px);
    z-index: 0;
}

.hero-card > * {
    position: relative;
    z-index: 2;
}

.hero-card .section-title {
    margin: 18px 0;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
}

.hero-card .section-sub {
    max-width: 680px;
    margin: 0 auto;
    color: #d1d5db;
    font-size: 1.08rem;
    line-height: 1.8;
}

.hero-card .section-label {
    display: inline-block;
    padding: 10px 22px;
    margin-bottom: 20px;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.35);
    color: #06b6d4;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================================================
   HERO BACKGROUND ANIMATION
   ============================================================ */
.pt-hero {
    padding-top: 130px;
}

.pt-standalone {
    padding-top: 48px;
}

.testi-hero-wrapper {
    position: relative;
    max-width: 1150px;
    margin: 0 auto 2rem;
    border-radius: 28px;
    overflow: hidden;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testi-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("/images/pic2.png");
    background-repeat: no-repeat;
    background-size: 110% 110%;
    background-position: center;
    animation: testiMoveBackground 6s ease-in-out infinite alternate;
    filter: brightness(0.45) saturate(1.2);
}

.testi-hero-wrapper:not(:has(.testi-hero-bg)) {
    background: linear-gradient(135deg, #0a1931, #06b6d4);
}

@keyframes testiMoveBackground {
    0%   { background-position: 0% center;   transform: scale(1); }
    25%  { background-position: 20% center;  transform: scale(1.05); }
    50%  { background-position: 40% center;  transform: scale(1.08); }
    75%  { background-position: 70% center;  transform: scale(1.05); }
    100% { background-position: 100% center; transform: scale(1); }
}

.testi-hero-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(5,9,18,.85) 0%, rgba(5,9,18,.6) 50%, rgba(5,9,18,.85) 100%);
}

.testi-hero-wrapper > .hero-card,
.testi-hero-wrapper > .testimonial-detail {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* ============================================================
   SINGLE TESTIMONIAL DETAIL VIEW
   ============================================================ */
.testimonial-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.testimonial-detail .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #06b6d4;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: all 0.2s ease;
}

.testimonial-detail .back-link:hover {
    color: #22d3ee;
    gap: 0.8rem;
}

.testimonial-detail .detail-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem;
}

.testimonial-detail .detail-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-detail .detail-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-detail .detail-avatar-initials {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.8rem;
    flex-shrink: 0;
    text-transform: uppercase;
}

.testimonial-detail .detail-info h1 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.2rem 0;
}

.testimonial-detail .detail-course {
    color: #06b6d4;
    font-size: 1rem;
    font-weight: 500;
}

.testimonial-detail .detail-institution {
    color: #ffc947;
    font-size: 0.9rem;
}

.testimonial-detail .detail-type {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
    margin-top: 0.3rem;
}

.testimonial-detail .detail-quote {
    color: #06b6d4;
    font-size: 3rem;
    line-height: 1;
    opacity: 0.2;
    margin-bottom: 0.5rem;
}

.testimonial-detail .detail-text {
    color: #e2e8f0;
    font-size: 1.1rem;
    line-height: 1.8;
    white-space: pre-wrap;
}

.testimonial-detail .detail-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-detail .detail-position {
    color: #94a3b8;
    font-size: 0.95rem;
}

.testimonial-detail .detail-position strong {
    color: #e2e8f0;
}

.testimonial-not-found {
    text-align: center;
    color: var(--gray);
    padding: 3rem 1.5rem;
}

/* ============================================================
   TESTIMONIALS LISTING PAGE CARD STYLING
   ============================================================ */
#testimonials .testi-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#testimonials .testi-card:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

#testimonials .testi-avatar-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

#testimonials .testi-avatar-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

#testimonials .testi-avatar-initials {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    text-transform: uppercase;
}

#testimonials .testi-info h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.1rem 0;
}

#testimonials .testi-course {
    color: #06b6d4;
    font-size: 0.85rem;
    font-weight: 500;
}

#testimonials .testi-institution {
    color: #ffc947;
    font-size: 0.8rem;
}

#testimonials .testi-text {
    color: #cbd5e1;
    font-size: 0.9rem;
    font-style: normal;
    line-height: 1.6;
    margin: 0.75rem 0 1rem 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#testimonials .testi-read-more {
    color: #06b6d4;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: auto;
    transition: all 0.2s ease;
}

#testimonials .testi-read-more:hover {
    color: #22d3ee;
    gap: 0.6rem;
}

#testimonials .testi-footer {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#testimonials .testi-position {
    font-size: 0.8rem;
    color: #94a3b8;
}

#testimonials .testi-position strong {
    color: #e2e8f0;
}

#testimonials .quote-icon {
    color: #06b6d4;
    font-size: 1.8rem;
    line-height: 1;
    opacity: 0.3;
    margin-bottom: 0.3rem;
}

#testimonials .wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================================
   FORM STYLES - DARK THEME INPUTS (FORCED)
   ============================================================ */

/* Force all inputs, textareas, and selects in the form to be dark */
#add-review-form input,
#add-review-form textarea,
#add-review-form select {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px !important;
    padding: 0.9rem 1rem !important;
    color: #ffffff !important;
    font-family: Arial, sans-serif !important;
    font-size: 0.95rem !important;
    outline: none !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
    width: 100% !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* Specifically target textarea */
#add-review-form textarea {
    min-height: 120px !important;
    resize: vertical !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

/* Fix autofill background */
#add-review-form input:-webkit-autofill,
#add-review-form textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px rgba(15, 23, 42, 0.95) inset !important;
    -webkit-text-fill-color: #ffffff !important;
    background-color: rgba(15, 23, 42, 0.95) !important;
}

/* Placeholder colors */
#add-review-form input::placeholder,
#add-review-form textarea::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

/* Focus states */
#add-review-form input:focus,
#add-review-form textarea:focus,
#add-review-form select:focus {
    border-color: #06b6d4 !important;
    background: rgba(6, 182, 212, 0.1) !important;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15) !important;
}

/* Fix select dropdown */
#add-review-form select {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 12px 8px !important;
    cursor: pointer !important;
}

#add-review-form select option {
    background: #0a1931 !important;
    color: #ffffff !important;
    padding: 8px !important;
}

/* Fix file input */
#add-review-form input[type="file"] {
    padding: 0.7rem 1rem !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px dashed rgba(255, 255, 255, 0.15) !important;
    cursor: pointer !important;
    color: #94a3b8 !important;
}

#add-review-form input[type="file"]:hover {
    background: rgba(6, 182, 212, 0.06) !important;
    border-color: #06b6d4 !important;
}

#add-review-form input[type="file"]::file-selector-button {
    padding: 0.4rem 1rem !important;
    border: none !important;
    border-radius: 6px !important;
    background: rgba(6, 182, 212, 0.2) !important;
    color: #06b6d4 !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-right: 1rem !important;
}

#add-review-form input[type="file"]::file-selector-button:hover {
    background: rgba(6, 182, 212, 0.3) !important;
}

/* Labels */
#add-review-form label {
    display: block !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 0.4rem !important;
}

/* Form hint text */
#add-review-form .form-hint {
    color: #64748b !important;
    font-size: 0.8rem !important;
    display: block !important;
    margin-top: 0.3rem !important;
}

/* Form grid layout */
.form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-group {
    flex: 1 1 220px;
    margin-bottom: 0.5rem;
}

.form-group-full {
    flex: 0 0 100%;
    margin-bottom: 0.5rem;
}

/* Form actions */
.form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.form-msg {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Alert messages */
.alert {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ============================================================
   SPACING UTILITIES
   ============================================================ */
.mt-xs { margin-top: 0.5rem; }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 2rem; }
.mt-xl { margin-top: 3rem; }
.mt-xxl { margin-top: 4rem; }

/* ============================================================
   NO TESTIMONIALS FALLBACK
   ============================================================ */
.no-testimonials {
    text-align: center;
    color: var(--gray);
    padding: 3rem;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1100px) {
    .hero-buttons { justify-content: center; }
    .hero-desc { font-size: 1rem; }
}

@media (max-width: 992px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .glass-panel {
        padding: 1.5rem;
    }

    .testimonials-grid {
        gap: 1rem;
    }

    section > div {
        padding-left: 4%;
        padding-right: 4%;
    }
}

@media (max-width: 768px) {
    .hero-content {
        max-width: 100%;
        padding: 0 3%;
    }

    .hero-buttons {
        gap: 0.65rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .section-title {
        font-size: clamp(1.6rem, 4vw, 2.4rem);
    }

    .glass-panel {
        padding: 1.2rem;
    }

    .pt-hero {
        padding-top: 100px;
    }
    
    .pt-standalone {
        padding-top: 24px;
    }
    
    .hero-card {
        padding: 40px 25px;
        border-radius: 18px;
    }

    .hero-card .section-title {
        font-size: 2rem;
    }

    .hero-card .section-sub {
        font-size: 1rem;
    }

    .testi-hero-wrapper {
        min-height: 180px;
        border-radius: 18px;
        margin: 0 1rem 1.5rem;
    }

    #testimonials .wrapper {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .testimonial-detail .detail-header {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-detail .detail-card {
        padding: 1.5rem;
    }
    
    .testimonial-detail .detail-avatar,
    .testimonial-detail .detail-avatar-initials {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }
    
    .testimonial-detail .detail-info h1 {
        font-size: 1.4rem;
    }

    .form-group {
        flex: 1 1 100%;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-actions .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-sub,
    .hero-desc {
        font-size: 0.95rem;
    }

    .btn-primary,
    .btn-secondary,
    .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .glass-panel {
        border-radius: 20px;
        padding: 1rem;
    }

    .hero-card {
        padding: 30px 20px;
    }
    
    .testi-hero-wrapper {
        min-height: 140px;
        border-radius: 14px;
        margin: 0 0.5rem 1rem;
    }

    #testimonials .testi-card {
        padding: 1rem;
    }
    
    #testimonials .testi-avatar-img,
    #testimonials .testi-avatar-initials {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .rating-choices {
        gap: 0.4rem;
    }
    
    .rating-option {
        padding: 0.4rem 0.6rem;
    }
}

@media (max-width: 320px) {
    .hero-content,
    .glass-panel,
    section > div {
        padding-left: 2%;
        padding-right: 2%;
    }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   SINGLE TESTIMONIAL DETAIL VIEW - WITH HEADER/FOOTER
   ============================================================ */

.pt-single {
    padding-top: 130px;
}

.pt-single .testimonial-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.pt-single .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #06b6d4;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: all 0.2s ease;
}

.pt-single .back-link:hover {
    color: #22d3ee;
    gap: 0.8rem;
}

.pt-single .detail-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem;
}

.pt-single .detail-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pt-single .detail-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.pt-single .detail-avatar-initials {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.8rem;
    flex-shrink: 0;
    text-transform: uppercase;
}

.pt-single .detail-info h1 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.2rem 0;
}

.pt-single .detail-course {
    color: #06b6d4;
    font-size: 1rem;
    font-weight: 500;
}

.pt-single .detail-institution {
    color: #ffc947;
    font-size: 0.9rem;
}

.pt-single .detail-type {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
    margin-top: 0.3rem;
}

.pt-single .detail-quote {
    color: #06b6d4;
    font-size: 3rem;
    line-height: 1;
    opacity: 0.2;
    margin-bottom: 0.5rem;
}

.pt-single .detail-text {
    color: #e2e8f0;
    font-size: 1.1rem;
    line-height: 1.8;
    white-space: pre-wrap;
}

.pt-single .detail-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pt-single .detail-position {
    color: #94a3b8;
    font-size: 0.95rem;
}

.pt-single .detail-position strong {
    color: #e2e8f0;
}

@media (max-width: 768px) {
    .pt-single {
        padding-top: 100px;
    }
    .pt-single .detail-header {
        flex-direction: column;
        text-align: center;
    }
    .pt-single .detail-card {
        padding: 1.5rem;
    }
    .pt-single .detail-avatar,
    .pt-single .detail-avatar-initials {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }
    .pt-single .detail-info h1 {
        font-size: 1.4rem;
    }
}