/* --- Hero Slider --- */
.hero-section {
    position: relative;
    height: 500px; /* Reduced height based on reference image */
    overflow: hidden;
    background-color: var(--clr-primary);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.4));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--clr-white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h2 {
    color: var(--clr-white);
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-weight: 800;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Moved to style.css for reliability */

/* ── 2. Admin/Principal Message — Warm Ivory Gold ── */
.admin-message-section {
    position: relative;
    background: linear-gradient(135deg, #fffbf0 0%, #fff9e6 40%, #fef3c7 70%, #fffdf5 100%);
    border-top: 3px solid #f59e0b22;
    border-bottom: 3px solid #f59e0b22;
}
.admin-message-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(245,158,11,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 100% 100%, rgba(251,191,36,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.admin-layout {
    display: flex;
    gap: 50px;
    align-items: center;
}

.admin-photo {
    flex: 1;
    position: relative;
}

.admin-photo img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.admin-photo::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--clr-secondary);
    border-radius: 12px;
    z-index: -1;
}

.admin-text {
    flex: 1.5;
}

.blockquote-custom {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--clr-text-muted);
    border-left: 5px solid var(--clr-secondary);
    padding-left: 20px;
    margin: 30px 0;
    position: relative;
}

/* ── 3. Notifications — Deep Indigo Night ── */
.notifications-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 35%, #1e1b4b 70%, #0f172a 100%);
    overflow: hidden;
}
.notifications-section::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.2), transparent 70%);
    top: -150px; right: -100px;
    pointer-events: none;
}
.notifications-section::after {
    content: '';
    position: absolute;
    width: 350px; height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167,139,250,0.15), transparent 70%);
    bottom: -100px; left: -50px;
    pointer-events: none;
}
/* Adjust text colors for dark bg */
.notifications-section .section-title h2 { color: #fff; }
.notifications-section .section-title p   { color: rgba(255,255,255,0.65); }
.notifications-section .notice-board      { background: rgba(255,255,255,0.06); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.1); color: #e2e8f0; }
.notifications-section .notice-item      { border-bottom-color: rgba(255,255,255,0.08); }
.notifications-section .notice-date      { color: #a78bfa; }

.news-ticker-container {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    display: flex;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

.ticker-label {
    background-color: var(--clr-secondary);
    color: var(--clr-primary);
    font-weight: 700;
    padding: 10px 20px;
    white-space: nowrap;
    z-index: 2;
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    padding-left: 20px;
}

.ticker-move {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 20s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 20px;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.notice-board {
    background: var(--clr-white);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    padding: 20px;
    height: 400px;
    overflow-y: auto;
}

.notice-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.notice-item:last-child { border-bottom: none; }
.notice-date { font-size: 0.85rem; color: var(--clr-accent-1); font-weight: 600; margin-bottom: 5px; }

/* ── 4. Achievements — Premium Emerald Forest ── */
.achievements-section {
    position: relative;
    background:
        linear-gradient(135deg, rgba(5,46,22,0.97) 0%, rgba(6,78,59,0.95) 40%, rgba(5,46,22,0.97) 100%),
        url('../images/school-building.jpg') fixed center center;
    background-size: cover;
    color: var(--clr-white);
    padding: 110px 0;
    text-align: center;
    overflow: hidden;
}
.achievements-section::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(52,211,153,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(16,185,129,0.1) 0%, transparent 50%);
    pointer-events: none;
}
.achievements-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #34d399, #6ee7b7, #34d399, transparent);
}

.ach-subtitle {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.ach-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 60px;
    text-transform: uppercase;
}

.achievements-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
}

.counter-item {
    padding: 20px;
    position: relative;
}

/* Vertical Separators */
.counter-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 100px;
    width: 1px;
    background: rgba(255,255,255,0.3);
}

.counter-item i {
    font-size: 3rem;
    display: block;
    margin-bottom: 25px;
    opacity: 0.8;
}

.counter-num-wrap {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.counter-label {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    opacity: 0.8;
}

.suffix {
    font-size: 2.5rem;
    margin-left: 5px;
}

@media (max-width: 992px) {
    .achievements-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    .counter-item::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .achievements-grid-modern {
        grid-template-columns: 1fr;
    }
}

/* ── 5. Teachers — Blush Rose Soft Premium ── */
.teachers-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(160deg, #fdf4f5 0%, #fff7ed 35%, #f5f3ff 70%, #f0f9ff 100%);
    overflow: hidden;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.teacher-card {
    background: #ffffff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
}

.teacher-card:hover {
    transform: translateY(-20px);
    box-shadow: 0 35px 70px rgba(0,0,0,0.12);
}

.teacher-image-wrap {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
}

.teacher-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.teacher-card:hover .teacher-photo {
    transform: scale(1.1) rotate(2deg);
}

/* Premium Overlay */
.teacher-social-overlay {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    z-index: 5;
}

.teacher-card:hover .teacher-social-overlay {
    bottom: 25px;
    opacity: 1;
}

.teacher-social-overlay a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--clr-primary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.teacher-social-overlay a:hover {
    background: var(--clr-primary);
    color: #fff;
    transform: scale(1.2);
}

.teacher-info {
    padding: 30px 25px;
    text-align: center;
    position: relative;
    z-index: 2;
    background: #fff;
}

.teacher-info h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 4px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.teacher-qual {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 10px;
    font-style: italic;
}

.teacher-info p {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
    transition: color 0.3s ease;
}

.info-accent-line {
    width: 50px;
    height: 5px;
    margin: 0 auto;
    border-radius: 10px;
    transition: width 0.4s ease, transform 0.4s ease;
}

.teacher-card:hover .info-accent-line {
    width: 80%;
    transform: scaleY(1.2);
}

/* ── Professional Color Themes ── */
/* 1. Emerald Teal */
.teacher-card.accent-teal .info-accent-line { background: linear-gradient(90deg, #10b981, #059669); }
.teacher-card.accent-teal .teacher-info p { color: #059669; }
.teacher-card.accent-teal::before {
    content: 'FACULTY';
    position: absolute; top: 20px; left: 20px; z-index: 5;
    background: #10b981; color: #fff; font-size: 0.65rem; font-weight: 900;
    padding: 4px 12px; border-radius: 50px; box-shadow: 0 4px 10px rgba(16,185,129,0.3);
}

/* 2. Amber Gold */
.teacher-card.accent-gold .info-accent-line { background: linear-gradient(90deg, #f59e0b, #d97706); }
.teacher-card.accent-gold .teacher-info p { color: #d97706; }
.teacher-card.accent-gold::before {
    content: 'FACULTY';
    position: absolute; top: 20px; left: 20px; z-index: 5;
    background: #f59e0b; color: #fff; font-size: 0.65rem; font-weight: 900;
    padding: 4px 12px; border-radius: 50px; box-shadow: 0 4px 10px rgba(245,158,11,0.3);
}

/* 3. Rose Crimson */
.teacher-card.accent-crimson .info-accent-line { background: linear-gradient(90deg, #f43f5e, #e11d48); }
.teacher-card.accent-crimson .teacher-info p { color: #e11d48; }
.teacher-card.accent-crimson::before {
    content: 'FACULTY';
    position: absolute; top: 20px; left: 20px; z-index: 5;
    background: #f43f5e; color: #fff; font-size: 0.65rem; font-weight: 900;
    padding: 4px 12px; border-radius: 50px; box-shadow: 0 4px 10px rgba(244,63,94,0.3);
}

/* 4. Royal Indigo */
.teacher-card.accent-indigo .info-accent-line { background: linear-gradient(90deg, #6366f1, #4f46e5); }
.teacher-card.accent-indigo .teacher-info p { color: #4f46e5; }
.teacher-card.accent-indigo::before {
    content: 'FACULTY';
    position: absolute; top: 20px; left: 20px; z-index: 5;
    background: #6366f1; color: #fff; font-size: 0.65rem; font-weight: 900;
    padding: 4px 12px; border-radius: 50px; box-shadow: 0 4px 10px rgba(99,102,241,0.3);
}

/* Bottom Glow Effect on Hover */
.teacher-card::after {
    content: '';
    position: absolute;
    bottom: -100px; left: 50%;
    width: 200px; height: 200px;
    border-radius: 50%;
    transform: translateX(-50%);
    filter: blur(80px);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.teacher-card.accent-teal:hover::after    { background: #10b981; opacity: 0.15; }
.teacher-card.accent-gold:hover::after    { background: #f59e0b; opacity: 0.15; }
.teacher-card.accent-crimson:hover::after { background: #f43f5e; opacity: 0.15; }
.teacher-card.accent-indigo:hover::after  { background: #6366f1; opacity: 0.15; }

/* Faculty Swiper Custom Styling */
.teachers-slider-container {
    position: relative;
    padding: 20px 0 60px;
}

.faculty-next, .faculty-prev {
    width: 50px !important;
    height: 50px !important;
    background: #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    color: var(--clr-primary) !important;
    transition: all 0.3s ease !important;
}

.faculty-next::after, .faculty-prev::after {
    font-size: 1.2rem !important;
    font-weight: 900 !important;
}

.faculty-next:hover, .faculty-prev:hover {
    background: var(--clr-primary) !important;
    color: #fff !important;
    transform: scale(1.1);
}

.faculty-next { right: -25px !important; }
.faculty-prev { left: -25px !important; }

.faculty-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--clr-primary);
    opacity: 0.2;
    transition: all 0.3s ease;
}

.faculty-pagination .swiper-pagination-bullet-active {
    width: 30px;
    border-radius: 10px;
    opacity: 1;
}

@media (max-width: 1300px) {
    .faculty-next { right: 10px !important; }
    .faculty-prev { left: 10px !important; }
}


/* --- Results --- */
/* ============================================
   RESULTS AT A GLANCE — Premium Card Design
   ============================================ */
.results-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #0a0f2e 0%, #0d1b5e 50%, #0a0f2e 100%);
    overflow: hidden;
}

/* Floating background orbs */
.results-bg-orbs { position: absolute; inset: 0; pointer-events: none; }
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.18;
    animation: orb-drift 12s ease-in-out infinite;
}
.orb-1 { width: 400px; height: 400px; background: #f59e0b; top: -100px; left: -100px; animation-delay: 0s; }
.orb-2 { width: 350px; height: 350px; background: #14b8a6; top: 30%; right: -80px; animation-delay: -4s; }
.orb-3 { width: 300px; height: 300px; background: #f43f5e; bottom: -80px; left: 40%; animation-delay: -8s; }
@keyframes orb-drift {
    0%,100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-30px) scale(1.08); }
}

/* Section title override for dark bg */
.results-section .section-title h2 { color: #fff; }
.results-section .section-title p   { color: rgba(255,255,255,0.65); }

/* Grid */
.results-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

/* ── Base Card ── */
.result-card {
    position: relative;
    border-radius: 28px;
    padding: 40px 30px 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    overflow: hidden;
    cursor: default;
    animation-delay: var(--delay, 0s);
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s ease;
    border: 1px solid rgba(255,255,255,0.08);
}

.result-card:hover {
    transform: translateY(-14px) scale(1.02);
}

/* Inner glow blob */
.rc-glow {
    position: absolute;
    width: 200px; height: 200px;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0;
    top: -30px; left: 50%; transform: translateX(-50%);
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.result-card:hover .rc-glow { opacity: 0.35; }

/* ── Color Themes ── */
.rc-amber {
    background: linear-gradient(145deg, #1a1200, #2d1f00, #1a1200);
    box-shadow: 0 20px 60px rgba(245,158,11,0.2), 0 0 0 1px rgba(245,158,11,0.15);
}
.rc-amber:hover { box-shadow: 0 30px 80px rgba(245,158,11,0.4); }
.rc-amber .rc-glow { background: #f59e0b; }

.rc-teal {
    background: linear-gradient(145deg, #001a18, #002e2a, #001a18);
    box-shadow: 0 20px 60px rgba(20,184,166,0.2), 0 0 0 1px rgba(20,184,166,0.15);
}
.rc-teal:hover { box-shadow: 0 30px 80px rgba(20,184,166,0.4); }
.rc-teal .rc-glow { background: #14b8a6; }

.rc-rose {
    background: linear-gradient(145deg, #1a0008, #2d0012, #1a0008);
    box-shadow: 0 20px 60px rgba(244,63,94,0.2), 0 0 0 1px rgba(244,63,94,0.15);
}
.rc-rose:hover { box-shadow: 0 30px 80px rgba(244,63,94,0.4); }
.rc-rose .rc-glow { background: #f43f5e; }

/* ── Icon ── */
.rc-icon-wrap {
    position: absolute;
    top: 22px; right: 24px;
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.1);
}
.rc-amber .rc-icon-wrap { color: #fbbf24; }
.rc-teal  .rc-icon-wrap { color: #2dd4bf; }
.rc-rose  .rc-icon-wrap { color: #fb7185; }

/* ── SVG Ring ── */
.rc-ring-wrap {
    position: relative;
    width: 140px; height: 140px;
    flex-shrink: 0;
}
.rc-ring { width: 100%; height: 100%; transform: rotate(-90deg); }

.rc-ring-bg {
    fill: none;
    stroke: rgba(255,255,255,0.07);
    stroke-width: 10;
}
.rc-ring-fill {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.8s cubic-bezier(0.4,0,0.2,1);
}
.rc-fill-amber { stroke: url(#grad-amber); }
.rc-fill-teal  { stroke: url(#grad-teal); }
.rc-fill-rose  { stroke: url(#grad-rose); }

/* Inline SVG gradients via filter workaround — use solid colors */
.rc-fill-amber { stroke: #f59e0b; filter: drop-shadow(0 0 6px #f59e0b88); }
.rc-fill-teal  { stroke: #14b8a6; filter: drop-shadow(0 0 6px #14b8a688); }
.rc-fill-rose  { stroke: #f43f5e; filter: drop-shadow(0 0 6px #f43f5e88); }

/* Ring center label */
.rc-ring-label {
    position: absolute;
    inset: 0; display: flex; align-items: center; justify-content: center;
    flex-direction: row;
    gap: 1px;
}
.rc-pct {
    font-size: 2.4rem;
    font-weight: 900;
    color: #fff;
    font-family: var(--font-heading);
    line-height: 1;
}
.rc-pct-sign {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    align-self: flex-end;
    margin-bottom: 6px;
}

/* ── Body ── */
.rc-body { text-align: center; width: 100%; }
.rc-body h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}
.rc-body p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Thin progress bar */
.rc-bar-wrap {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 16px;
}
.rc-bar {
    height: 100%;
    width: 0;
    border-radius: 99px;
    transition: width 2s ease-out;
}
.rc-bar-amber { background: linear-gradient(90deg,#d97706,#fbbf24); box-shadow: 0 0 8px #fbbf2488; }
.rc-bar-teal  { background: linear-gradient(90deg,#0d9488,#2dd4bf); box-shadow: 0 0 8px #2dd4bf88; }
.rc-bar-rose  { background: linear-gradient(90deg,#e11d48,#fb7185); box-shadow: 0 0 8px #fb718588; }

/* Badge chip */
.rc-badge {
    display: inline-block;
    padding: 5px 18px;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.rc-badge-amber { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.rc-badge-teal  { background: rgba(20,184,166,0.15);  color: #2dd4bf; border: 1px solid rgba(20,184,166,0.3); }
.rc-badge-rose  { background: rgba(244,63,94,0.15);   color: #fb7185; border: 1px solid rgba(244,63,94,0.3); }

/* When card becomes visible — trigger bar animation */
.result-card.is-visible .rc-bar { width: var(--w, 0%); }

@media (max-width: 768px) {
    .results-cards-grid { grid-template-columns: 1fr; gap: 25px; }
    .results-section    { padding: 70px 0; }
}



/* ================================================
   COURSES WE OFFER — Premium Card Design
   ================================================ */
.courses-section {
    position: relative;
    padding: 110px 0 100px;
    background: linear-gradient(160deg, #f8faff 0%, #eef2ff 50%, #f0fdf4 100%);
    overflow: hidden;
}

/* Soft background orbs */
.courses-section-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.cs-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.22;
}
.cs-orb-1 { width:500px;height:500px;background:#a78bfa;top:-150px;left:-100px;animation:orb-drift 14s ease-in-out infinite; }
.cs-orb-2 { width:400px;height:400px;background:#34d399;bottom:-100px;right:-80px;animation:orb-drift 10s ease-in-out infinite reverse; }
.cs-orb-3 { width:300px;height:300px;background:#f59e0b;top:40%;left:50%;transform:translateX(-50%);animation:orb-drift 12s ease-in-out infinite 3s; }

/* Eyebrow tag */
.cs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg,#6366f1,#8b5cf6);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 7px 20px;
    border-radius: 99px;
    margin-bottom: 16px;
}

/* Grid — wraps cc-wrap elements */
.courses-section .container > .cc-wrap,
.courses-section .container {
    display: contents; /* let section container itself be the grid parent */
}

/* Override: make the course cards appear in a grid */
.courses-section > div.container {
    display: block;
}
.courses-section > div.container > .section-title { display: block; }

/* Flexbox grid for cards */
.courses-section > div.container {
    --grid: 1fr 1fr 1fr;
}
.cc-wrap {
    animation-delay: var(--delay, 0s);
}

/* We need the cards in a grid layout — create a wrapper implicitly */
/* Target all cc-wrap siblings together */
.courses-section .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    align-items: start;
}
/* But keep section-title full width */
.courses-section .container .section-title {
    grid-column: 1 / -1;
}

/* ── Card Wrapper ── */
.cc-wrap { perspective: 1000px; }

/* ── Card ── */
.cc-card {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 0 0 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow:
        0 4px 6px rgba(0,0,0,0.04),
        0 20px 40px var(--cc-shadow, rgba(99,102,241,0.15));
    border: 1px solid rgba(255,255,255,0.9);
    transition: transform 0.45s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.4s ease;
    cursor: default;
}

.cc-card:hover {
    transform: translateY(-16px) scale(1.02);
    box-shadow:
        0 8px 12px rgba(0,0,0,0.06),
        0 35px 70px var(--cc-shadow, rgba(99,102,241,0.3));
}

/* Top gradient bar */
.cc-top-bar {
    height: 5px;
    background: linear-gradient(90deg, var(--cc-g1), var(--cc-g2));
    width: 100%;
    flex-shrink: 0;
}

/* Background blob */
.cc-blob {
    position: absolute;
    width: 250px; height: 250px;
    top: -60px; right: -60px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--cc-light, rgba(99,102,241,0.08)), transparent 70%);
    pointer-events: none;
    transition: transform 0.6s ease;
}
.cc-card:hover .cc-blob { transform: scale(1.4); }

/* Floating particle dots */
.cc-dot {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cc-g1), var(--cc-g2));
    opacity: 0.25;
    pointer-events: none;
}
.cc-d1 { width:10px;height:10px;top:55px;right:28px;animation:dot-float 4s ease-in-out infinite; }
.cc-d2 { width:6px;height:6px;top:80px;right:48px;animation:dot-float 5s ease-in-out infinite 1s; }
.cc-d3 { width:14px;height:14px;top:100px;right:18px;animation:dot-float 6s ease-in-out infinite 2s; }
@keyframes dot-float {
    0%,100%{ transform: translateY(0); }
    50%     { transform: translateY(-10px); }
}

/* Icon orb */
.cc-icon-orb {
    width: 76px; height: 76px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--cc-g1), var(--cc-g2));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.9rem;
    color: #fff;
    margin: 28px 28px 0;
    box-shadow: 0 10px 30px var(--cc-shadow, rgba(99,102,241,0.4));
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.cc-card:hover .cc-icon-orb {
    transform: rotate(-8deg) scale(1.12);
    box-shadow: 0 16px 40px var(--cc-shadow, rgba(99,102,241,0.55));
}

/* Number badge */
.cc-num {
    position: absolute;
    top: 30px; right: 28px;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--cc-light, rgba(99,102,241,0.08));
    font-family: var(--font-heading);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    background: linear-gradient(135deg, var(--cc-g1), var(--cc-g2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.12;
}

/* Content */
.cc-content {
    padding: 20px 28px 0;
    flex: 1;
    position: relative;
    z-index: 1;
}
.cc-content h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}
.cc-content p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.7;
}

/* Footer / CTA row */
.cc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px 0;
    position: relative;
    z-index: 1;
}

.cc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--cc-g1);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 99px;
    background: var(--cc-light, rgba(99,102,241,0.1));
    border: 1px solid transparent;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}
.cc-btn:hover {
    background: linear-gradient(135deg, var(--cc-g1), var(--cc-g2));
    color: #fff;
    box-shadow: 0 6px 20px var(--cc-shadow);
    gap: 12px;
}
.cc-btn i { font-size: 0.75rem; transition: transform 0.3s; }
.cc-btn:hover i { transform: translateX(3px); }

/* Three-dot indicator */
.cc-dots-row { display: flex; gap: 5px; }
.cc-dots-row span {
    display: block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cc-g1), var(--cc-g2));
    opacity: 0.3;
}
.cc-dots-row span:nth-child(1) { opacity: 0.7; }
.cc-dots-row span:nth-child(2) { opacity: 0.45; }

@media (max-width: 992px) {
    .courses-section .container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .courses-section .container { grid-template-columns: 1fr; }
    .courses-section { padding: 70px 0; }
}



@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
    }
    .hero-content h2 {
        font-size: 2.5rem;
    }
}


/* --- Quick Links Section (Overlapping Hero) --- */
.quick-links-section {
    margin-top: -60px;
    position: relative;
    z-index: 10;
    padding: 0 5%;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.quick-link-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    border-radius: 15px;
    color: #fff;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.quick-link-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* Multi-color Gradients */
.ql-blue {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.ql-orange {
    background: linear-gradient(135deg, #f12711 0%, #f5af19 100%);
}

.ql-blue-dark {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

.quick-link-card i {
    font-size: 3rem;
    opacity: 0.9;
}

.ql-text h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.ql-text p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- Latest Updates Section --- */
.latest-updates-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    /* Rich deep sapphire → midnight navy */
    background: linear-gradient(135deg, #020617 0%, #0c1445 30%, #0f0c29 60%, #020617 100%);
}

/* Animated star dots */
.latest-updates-section::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.18) 1px, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 35px 35px, 70px 70px;
    background-position: 0 0, 17px 17px;
    pointer-events: none;
}

/* Top rainbow shimmer */
.latest-updates-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, #6366f1, #a78bfa, #f472b6, #34d399, #60a5fa, #6366f1);
    background-size: 200% 100%;
    animation: shimmer-move 5s linear infinite;
}

/* Section title on dark bg */
.latest-updates-section .section-title h2 { color: #fff; }
.latest-updates-section .section-title p   { color: rgba(255,255,255,0.6); }

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

/* ── Update Card — White body with colorful header ── */
.update-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e8edf2;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 580px;
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s ease;
}

.update-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.15);
}

/* ── Card Header Gradients — unique per card ── */
.card-header {
    padding: 18px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
}

/* Notifications — Vivid Electric Indigo */
.card-header.bg-blue {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}

/* News & Events — Warm Sunset Orange */
.update-card:nth-child(2) .card-header {
    background: linear-gradient(135deg, #ea580c, #f59e0b);
    box-shadow: 0 4px 20px rgba(245,158,11,0.4);
}

/* Results — Emerald Teal */
.update-card:nth-child(3) .card-header {
    background: linear-gradient(135deg, #059669, #14b8a6);
    box-shadow: 0 4px 20px rgba(20,184,166,0.4);
    color: #fff;
}

/* Recruitment — Deep Rose Pink */
.update-card:nth-child(4) .card-header {
    background: linear-gradient(135deg, #be185d, #ec4899);
    box-shadow: 0 4px 20px rgba(236,72,153,0.4);
}

.card-header i {
    font-size: 1.3rem;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.4));
}

.card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
}

.update-list {
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 8px;
}

.update-item {
    padding: 16px 0;
    border-bottom: 1px solid #f0f4f8;
}

.update-item:last-child {
    border-bottom: none;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.item-meta .date {
    font-size: 0.73rem;
    font-weight: 600;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.badge-new {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    font-size: 0.58rem;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(245,158,11,0.4);
}

.update-item h4 {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.55;
    margin-bottom: 10px;
    color: #1e293b;
}

.view-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: #6366f1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.view-link:hover {
    color: #f472b6;
    transform: translateX(5px);
}

.empty-msg {
    font-size: 0.9rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 50px;
    font-style: italic;
}

/* Custom Scrollbar — dark theme */
.scroll-bar::-webkit-scrollbar { width: 4px; }
.scroll-bar::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 10px; }
.scroll-bar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.scroll-bar::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

@media (max-width: 1200px) {
    .updates-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-links-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .updates-grid { grid-template-columns: 1fr; }
    .quick-links-grid { grid-template-columns: 1fr; }
    .quick-links-section { margin-top: -30px; }
    .latest-updates-section { padding: 60px 0; }
    .update-card { height: 500px; }
}

