/* ═══════════════════════════════════════════════
   Career Buddy College — Custom Styles
   ═══════════════════════════════════════════════ */

/* ─── CSS Custom Properties ─────────────────── */
:root {
    --primary: #1E40AF;
    --primary-light: #3B82F6;
    --primary-dark: #1e3a8a;
    --accent: #F59E0B;
    --accent-light: #FCD34D;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;

    --text-dark: #0F172A;
    --text-muted: #64748B;
    --text-main: #0F172A;
    --text-alt: #64748B;

    --bg: #FFFFFF;
    --bg-soft: #F8FAFC;
    --border: #E2E8F0;
    --gray: #64748B;

    --card-bg: #FFFFFF;
    --card-border: #E2E8F0;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.04);
    --shadow-xl: 0 20px 40px -12px rgb(0 0 0 / 0.12);
    --shadow: var(--shadow-lg);

    --container-width: 1280px;

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
}

/* ─── Global ────────────────────────────────── */
* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fraunces', Georgia, serif;
}

/* ─── Selection ─────────────────────────────── */
::selection {
    background: var(--primary);
    color: white;
}

/* ─── Custom Scrollbar ──────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* ─── Skeleton Loader ───────────────────────── */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-text.short { width: 60%; }
.skeleton-heading { height: 24px; margin-bottom: 12px; width: 80%; }
.skeleton-avatar { width: 48px; height: 48px; border-radius: 50%; }
.skeleton-card { height: 200px; }
.skeleton-image { height: 180px; }

/* ─── Toast Notifications ───────────────────── */
@keyframes slide-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slide-out {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.toast {
    animation: slide-in 0.3s ease-out forwards;
}

.toast.removing {
    animation: slide-out 0.3s ease-in forwards;
}

.animate-slide-in {
    animation: slide-in 0.3s ease-out forwards;
}

/* ─── Modal / Overlay ───────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / 0.5);
    backdrop-filter: blur(4px);
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

/* ─── Buttons ───────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px) scale(1.02);
}

.btn:active {
    transform: translateY(0) scale(1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 14px -3px rgb(30 64 175 / 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px -3px rgb(30 64 175 / 0.5);
}

.btn-ai {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 14px 28px;
    font-weight: 800;
    font-size: 0.95rem;
    border-radius: 22px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24);
    border: none;
    transition: all 0.25s ease;
}

.btn-ai i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.btn-ai:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.28);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #D97706);
    color: white;
    box-shadow: 0 4px 14px -3px rgb(245 158 11 / 0.4);
}

.btn-accent:hover {
    box-shadow: 0 6px 20px -3px rgb(245 158 11 / 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}

.btn-ghost:hover {
    background: var(--bg-soft);
    color: var(--text-dark);
}

.btn-sm {
    padding: 0.375rem 1rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

/* ─── Cards ─────────────────────────────────── */
.card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    transform: translateY(-2px);
}

/* ─── Form Inputs ───────────────────────────── */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--text-dark);
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
}

.form-input.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgb(239 68 68 / 0.1);
}

.form-input.success {
    border-color: var(--success);
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.375rem;
}

.form-error {
    font-size: 0.75rem;
    color: var(--danger);
    margin-top: 0.25rem;
}

/* ─── Chips / Tags ──────────────────────────── */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    background: #F1F5F9;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.chip-active {
    background: rgb(30 64 175 / 0.1);
    color: var(--primary);
}

.chip-removable {
    cursor: pointer;
}

.chip-removable:hover {
    background: rgb(239 68 68 / 0.1);
    color: var(--danger);
}

/* ─── Accordion ─────────────────────────────── */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.open {
    max-height: 2000px;
}

/* ─── Range Slider ──────────────────────────── */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: #E2E8F0;
    border-radius: 4px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgb(30 64 175 / 0.3);
    transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* ─── Star Rating Interactive ───────────────── */
.star-rating-input {
    display: inline-flex;
    gap: 2px;
}

.star-rating-input svg {
    cursor: pointer;
    transition: transform 0.15s ease, color 0.15s ease;
}

.star-rating-input svg:hover {
    transform: scale(1.2);
}

/* ─── Loading Spinner ───────────────────────── */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgb(30 64 175 / 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner-overlay {
    position: absolute;
    inset: 0;
    background: rgb(255 255 255 / 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    z-index: 10;
}

/* ─── GSAP Animation Classes ────────────────── */
/* Initial states moved to JS (gsap.from) to prevent elements staying invisible if JS fails */
/*
.gsap-fade-up {
    opacity: 0;
    transform: translateY(30px);
}

.gsap-fade-left {
    opacity: 0;
    transform: translateX(-30px);
}

.gsap-fade-right {
    opacity: 0;
    transform: translateX(30px);
}

.gsap-scale {
    opacity: 0;
    transform: scale(0.9);
}
*/

/* ─── Badge ─────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-featured {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    color: #92400E;
}

.badge-verified {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    color: #065F46;
}

.badge-new {
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
    color: #1E40AF;
}

/* ─── Sticky Tab Nav (College Profile) ──────── */
.tab-nav {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tab-nav::-webkit-scrollbar { display: none; }

.tab-nav-item {
    padding: 0.75rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.tab-nav-item:hover,
.tab-nav-item.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ─── Password Strength Indicator ───────────── */
.password-strength {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}

.password-strength-bar {
    height: 3px;
    flex: 1;
    border-radius: 3px;
    background: #E2E8F0;
    transition: background 0.3s ease;
}

.password-strength-bar.active.weak { background: var(--danger); }
.password-strength-bar.active.medium { background: var(--warning); }
.password-strength-bar.active.strong { background: var(--success); }

/* ─── Site Navigation ───────────────────────── */
/* Mobile menu — fully self-contained (no Tailwind CDN required) */
#mobile-menu-toggle,
.nav-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    background: transparent;
    border: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

#mobile-menu-toggle svg {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    color: #334155;
}

#mobile-menu-toggle #close-icon {
    display: none;
}

#mobile-menu-toggle.is-active #hamburger-icon {
    display: none !important;
}

#mobile-menu-toggle.is-active #close-icon {
    display: block !important;
}

@media (max-width: 1279px) {
    #main-header .site-nav {
        display: none !important;
    }

    #mobile-menu-toggle,
    .nav-mobile-toggle {
        display: inline-flex !important;
    }
}

@media (min-width: 1280px) {
    #main-header .site-nav {
        display: flex !important;
    }

    #mobile-menu-toggle,
    .nav-mobile-toggle {
        display: none !important;
    }
}

body.mobile-menu-open #mobile-menu-toggle {
    z-index: 80;
}

html.mobile-menu-open,
body.mobile-menu-open {
    overflow: hidden;
    height: 100%;
}

body.mobile-menu-open {
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
}

#mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    background-color: rgba(15, 23, 42, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overscroll-behavior: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

#mobile-overlay:not(.hidden) {
    display: block;
}

#mobile-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#mobile-overlay.hidden {
    display: none !important;
}

#mobile-drawer-shell {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 70;
    width: min(100vw, 380px);
    height: 100dvh;
    max-height: 100dvh;
    touch-action: none;
    transform: translate3d(100%, 0, 0);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
    will-change: transform;
}

#mobile-drawer-shell.is-open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
}

.mobile-drawer-scroll,
#mobile-drawer-scroll {
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

#mobile-drawer-scroll::-webkit-scrollbar {
    width: 4px;
}

#mobile-drawer-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

#main-header {
    isolation: isolate;
}

.site-nav .nav-link {
    flex-shrink: 0;
}

.nav-dropdown-panel {
    pointer-events: none;
}

.group:hover .nav-dropdown-panel,
.nav-dropdown.is-open .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-dropdown.is-open > button [data-lucide="chevron-down"],
.group:hover .nav-dropdown > button [data-lucide="chevron-down"] {
    transform: rotate(180deg);
}

#mobile-drawer .mobile-nav-link,
#mobile-drawer .mobile-accordion-toggle {
    min-height: 44px;
}

@media (max-width: 1279px) {
    #main-header .max-w-7xl {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

@media (min-width: 768px) and (max-width: 1279px) {
    #mobile-drawer-shell {
        width: min(100vw, 400px);
    }
}

/* ─── Responsive Utilities ──────────────────── */
@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
}

@media (min-width: 769px) {
    .show-mobile-only { display: none !important; }
}

/* ─── Shadow Utilities ──────────────────────── */
.shadow-elevated {
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.15), 0 0 0 1px rgb(0 0 0 / 0.02);
}

.shadow-card-hover {
    box-shadow: 0 12px 28px -8px rgb(0 0 0 / 0.12), 0 2px 8px -2px rgb(0 0 0 / 0.06);
}

/* ─── Line Clamp ────────────────────────────── */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ─── Counter Animation ────────────────────── */
[data-counter] {
    transition: all 0.5s ease;
}

/* ─── Prose Overrides ───────────────────────── */
.prose h2 { margin-top: 2em; margin-bottom: 0.75em; }
.prose h3 { margin-top: 1.5em; margin-bottom: 0.5em; }
.prose p { margin-bottom: 1em; }
.prose ul, .prose ol { margin-bottom: 1em; padding-left: 1.5em; }
.prose li { margin-bottom: 0.25em; }

/* ─── Print Styles ──────────────────────────── */
@media print {
    header, footer, .no-print, #toast-container { display: none !important; }
    body { font-size: 12pt; }
}
   



/* MODERN AI CTA */
.modern-ai-cta {
  background: var(--card-bg);
  border-radius: 40px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
}

.ai-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 115, 232, 0.1);
  color: #1a73e8;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.text-gradient {
  background: linear-gradient(to right, #1a73e8, #667eea);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 992px) {
  .modern-ai-cta { grid-template-columns: 1fr; padding: 40px 30px; gap: 40px; }
  .modern-ai-cta h2 { font-size: 2.2rem; }
  .ai-cta-visual { display: none; }
}



.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.career-card {
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  transition: all 0.2s;
}
.career-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.career-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.career-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.career-card .salary {
  font-size: 0.85rem;
  color: var(--success);
  font-weight: 600;
  margin-bottom: 8px;
}
.career-card p {
  font-size: 0.8rem;
  color: var(--gray);
}

.career-card:hover .career-icon {
  animation: iconFloat 0.8s ease-in-out infinite alternate;
}
@keyframes iconFloat {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.section-header h2 {
  font-size: 1.7rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #1a73e8, #667eea);
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.16,1,0.3,1);
}
.section-header:hover h2::after {
  width: 100%;
}
.section-header a {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
}
.section {
  padding: 60px 40px;
}

.reveal-subtle {
  will-change: transform, opacity;
}

/* TESTIMONIALS */
.testimonial-card {
  min-height: 280px;
}

.section-streams { background: #f8fafc; }

/* WHY CHOOSE US CARDS */
.why-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
  cursor: pointer;
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.why-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 18px;
}
.why-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #0f172a;
}
.why-card p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.6;
}


/* ============================================================
   CollegeVidya — Online Universities Section
   universities.css
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --blue:       #0057d9;
    --blue-dark:  #003fa3;
    --blue-light: #e8f0fe;
    --accent:     #ff6b2b;
    --text:       #0d0f1a;
    --text-muted: #6b7280;
    --border:     #e5e7eb;
    --white:      #ffffff;
    --bg:         #f5f7ff;
    --radius-sm:  8px;
    --radius:     14px;
    --radius-lg:  20px;
    --shadow-sm:  0 2px 8px rgba(0,87,217,0.08);
    --shadow:     0 8px 32px rgba(0,87,217,0.12);
    --shadow-lg:  0 20px 60px rgba(0,87,217,0.18);
    --font-head:  'Syne', sans-serif;
    --font-body:  'DM Sans', sans-serif;
    --transition: 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
}

/* ── Section ── */
.cv-section {
    position: relative;
    padding: 80px 0 100px;
    background: var(--bg);
    overflow: hidden;
}

/* ── Background blobs & dots ── */
.cv-bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}
.cv-blob1 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, #bdd4ff 0%, #e8f0fe 70%);
    top: -160px; left: -120px;
}
.cv-blob2 {
    width: 440px; height: 440px;
    background: radial-gradient(circle, #ffd4c2 0%, #fff5f0 70%);
    bottom: -100px; right: -80px;
}
.cv-bg-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, #c7d8f8 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
}

/* ── Container ── */
.cv-container {
    position: relative;
    z-index: 1;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Stats bar ── */
.cv-stats-bar {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 28px;
    margin-bottom: 48px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    row-gap: 8px;
}
.cv-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}
.cv-stat-num {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
}
.cv-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.cv-stat-div {
    width: 1px;
    height: 32px;
    background: var(--border);
}

/* ── Heading ── */
.cv-heading-wrap {
    margin-bottom: 40px;
}
.cv-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue-light);
    color: var(--blue);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 18px;
    border: 1px solid #c2d5fa;
}
.cv-eyebrow-icon { font-size: 16px; }

.cv-heading {
    font-family: var(--font-head);
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.cv-heading-accent {
    color: var(--blue);
    position: relative;
    display: inline-block;
}
.cv-heading-accent::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 100%; height: 4px;
    background: var(--accent);
    border-radius: 2px;
}
.cv-subheading {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.6;
}
.cv-br-mobile { display: none; }

/* ── Filters ── */
.cv-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.cv-filter {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text-muted);
    cursor: pointer;
    transition: all .2s ease;
    outline: none;
}
.cv-filter:hover {
    border-color: var(--blue);
    color: var(--blue);
}
.cv-filter.active {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,87,217,0.28);
}

/* ── Search ── */
.cv-search-wrap {
    position: relative;
    max-width: 380px;
    margin-bottom: 36px;
}
.cv-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    pointer-events: none;
}
.cv-search {
    width: 100%;
    padding: 11px 16px 11px 42px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: var(--white);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-shadow: var(--shadow-sm);
}
.cv-search:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0,87,217,0.12);
}

/* ── Grid ── */
.cv-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}
.cv-grid-more {
    display: none;
}
.cv-grid-more.open {
    display: grid;
}

/* ── Card ── */
.cv-card {
    position: relative;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color .2s;
    cursor: pointer;
    min-height: 120px;
}
.cv-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,87,217,0.03) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .3s;
}
.cv-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: #b3caf5;
}
.cv-card:hover::before { opacity: 1; }

/* Shine sweep on hover */
.cv-shine {
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.55) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-20deg);
    transition: none;
    pointer-events: none;
    opacity: 0;
}
.cv-card:hover .cv-shine {
    opacity: 1;
    left: 130%;
    transition: left .55s ease, opacity .1s;
}

/* Tag badge */
.cv-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 999px;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
}
.cv-tag-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Logo */
.cv-logo-wrap {
    width: 52px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.cv-logo {
    max-height: 36px;
    max-width: 52px;
    object-fit: contain;
}
.cv-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
}

/* Card text */
.cv-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.cv-courses {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
}
.cv-name {
    font-size: 10.5px;
    color: var(--text-muted);
    line-height: 1.35;
}

/* Filter / search hidden state */
.cv-card.cv-hidden {
    display: none;
}

/* ── No results ── */
.cv-no-results {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 0;
    gap: 12px;
}
.cv-no-results span { font-size: 40px; }
.cv-no-results p {
    font-size: 15px;
    color: var(--text-muted);
}
.cv-no-results.visible { display: flex; }

/* ── Toggle button ── */
.cv-btn-wrap {
    text-align: center;
    margin-top: 40px;
}
.cv-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--blue);
    color: #fff;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 28px rgba(0,87,217,0.35);
    transition: background .2s, transform .2s, box-shadow .2s;
    outline: none;
    letter-spacing: .01em;
}
.cv-btn:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 36px rgba(0,87,217,0.4);
}
.cv-btn:active { transform: scale(0.98); }

.cv-btn-arrow {
    font-size: 18px;
    transition: transform .35s cubic-bezier(0.34,1.56,0.64,1);
    display: inline-block;
}
.cv-btn-arrow.flipped { transform: rotate(180deg); }

/* ── Staggered entrance animation ── */
@keyframes cv-fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.cv-card {
    animation: cv-fade-up .4s ease both;
}
.cv-card:nth-child(1)  { animation-delay: .03s }
.cv-card:nth-child(2)  { animation-delay: .06s }
.cv-card:nth-child(3)  { animation-delay: .09s }
.cv-card:nth-child(4)  { animation-delay: .12s }
.cv-card:nth-child(5)  { animation-delay: .15s }
.cv-card:nth-child(6)  { animation-delay: .18s }
.cv-card:nth-child(7)  { animation-delay: .21s }
.cv-card:nth-child(8)  { animation-delay: .24s }
.cv-card:nth-child(9)  { animation-delay: .27s }
.cv-card:nth-child(10) { animation-delay: .30s }
.cv-card:nth-child(11) { animation-delay: .33s }
.cv-card:nth-child(12) { animation-delay: .36s }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .cv-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 900px) {
    .cv-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 680px) {
    .cv-grid { grid-template-columns: repeat(3, 1fr); }
    .cv-heading { font-size: 28px; }
    .cv-stats-bar { padding: 10px 12px; gap: 0; }
    .cv-stat { padding: 0 12px; }
    .cv-br-mobile { display: block; }
}
@media (max-width: 480px) {
    .cv-grid { grid-template-columns: repeat(2, 1fr); }
    .cv-section { padding: 56px 0 72px; }
    .cv-card { min-height: 104px; padding: 14px 8px 12px; }
    .cv-courses { font-size: 12px; }
    .cv-name { font-size: 10px; }
}
/* AI CTA Responsive */
.modern-ai-cta{
    display:flex;
    align-items:center;
    gap:40px;
}

.ai-cta-text,
.ai-cta-visual{
    flex:1;
    min-width:0;
}

/* Tablet */
@media (max-width: 992px){
    .modern-ai-cta{
        flex-direction:column;
        gap:24px;
    }

    .ai-cta-text,
    .ai-cta-visual{
        width:100%;
    }

    .ai-cta-text h2{
        font-size:2.2rem !important;
    }
}

/* Mobile */
@media (max-width: 768px){

    .modern-ai-cta{
        gap:20px;
    }

    .ai-cta-text h2{
        font-size:1.8rem !important;
        text-align:center;
    }

    .ai-cta-text p{
        text-align:center;
        font-size:0.95rem !important;
    }

    .ai-cta-badge{
        justify-content:center;
        text-align:center;
    }

    /* Input + Button Stack */
    .ai-cta-text > div[style*="display:flex;gap:12px"]{
        flex-direction:column !important;
        gap:12px !important;
    }

    #hp-ai-input{
        width:100%;
        font-size:14px !important;
    }

    .btn-ai{
        width:100%;
        justify-content:center;
    }

    /* Feature badges */
    .ai-cta-text > div[style*="margin-top:24px"]{
        justify-content:center;
        gap:12px !important;
    }

    .ai-cta-visual{
        padding:20px !important;
    }

    .ai-cta-visual p{
        font-size:0.8rem !important;
    }

    .ai-cta-visual div[style*="justify-content:space-between"]{
        flex-direction:column;
        align-items:flex-start !important;
        gap:8px;
    }

    .ai-cta-visual span{
        word-break:break-word;
    }
}

/* Small Mobile */
@media (max-width: 480px){

    .section{
        padding-left:16px;
        padding-right:16px;
    }

    .ai-cta-text h2{
        font-size:1.5rem !important;
        line-height:1.3 !important;
    }

    .ai-cta-badge{
        font-size:11px;
    }

    .ai-cta-visual{
        padding:16px !important;
        border-radius:18px !important;
    }

    .ai-cta-visual div[style*="padding:12px 16px"]{
        padding:10px 12px !important;
    }
}