/**
 * Apply4U Design System Architecture Core
 * Location: public/css/theme.css
 */

/* 1. Design Token Layer Matrix */
:root {
    --primary: #04488F;
    --primary-rgb: 4, 72, 143;
    --secondary: #FC5C0E;
    --accent: #2563EB;
    --accent-rgb: 37, 99, 235;
    --success: #22C55E;
    --background: #F8FAFC;
    --dark: #0F172A;
    --slate-600: #475569;
    --slate-100: #F1F5F9;
    --border-color: #E2E8F0;
    --font-stack: 'Plus Jakarta Sans', sans-serif;
}

/* 2. Global Canvas System Settings */
body {
    font-family: var(--font-stack);
    background-color: var(--background);
    color: var(--dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

a {
    text-decoration: none !important;
}
/* 3. High-Fidelity Typography Scale Framework */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.025em;
    font-weight: 700;
    color: var(--dark);
}

img.header-logo {
    width: 200px;
}

.display-large {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.15;
}

/* 4. Premium Responsive Spacing Mechanics */
.section-gap {
    padding-top: clamp(4rem, 8vw, 7rem);
    padding-bottom: clamp(4rem, 8vw, 7rem);
}

.card-padding {
    padding: 1.75rem;
}

/* 5. Custom Button Systems (Stripe & Apple Inspired) */
.btn-premium-primary {
    background: linear-gradient(180deg, #0a5ebd 0%, var(--primary) 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(4, 72, 143, 0.4);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(4, 72, 143, 0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-premium-primary:hover {
    background: linear-gradient(180deg, #3b82f6 0%, var(--accent) 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 12px 24px rgba(37, 99, 235, 0.25);
}

.btn-premium-secondary {
    background: #ffffff;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-premium-secondary:hover {
    background: var(--slate-100);
    border-color: #CBD5E1;
    color: var(--dark);
    transform: translateY(-1px);
}

/* 6. Premium Glassmorphic Layer Engine */
.premium-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* 7. Institutional Content Card Redesign */
.premium-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03), 0 8px 24px rgba(15, 23, 42, 0.02);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

.premium-card:hover .card-img-target {
    transform: scale(1.06);
}

.premium-card:hover .card-title-transition {
    color: var(--accent) !important;
}

.card-img-target {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-title-transition {
    transition: color 0.3s ease;
}

/* 8. Taxonomy Stream Navigation Cards */
.stream-pill-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none !important;
}

.stream-pill-card:hover {
    transform: translateY(-4px);
    background: #ffffff;
    border-color: rgba(4, 72, 143, 0.2);
    box-shadow: 0 12px 32px rgba(4, 72, 143, 0.05);
}

.stream-icon-wrapper {
    width: 52px;
    height: 52px;
    background: rgba(4, 72, 143, 0.06);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.stream-pill-card:hover .stream-icon-wrapper {
    background: var(--primary);
    color: #ffffff;
}

/* 9. Core Interface Utilities */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.shimmer-bg {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.6s infinite linear;
}

@keyframes loading-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.text-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/**
 * Apply4U Design Architecture Extensions: Regional Sections 3.5 A & 3.5 B
 * Location: public/css/theme.css (Append to bottom)
 */

/* ==========================================================================
   1. Section Structural Overrides & Controls
   ========================================================================== */
   .section-gap.bg-light {
    background-color: #F8FAFC !important; /* Premium off-white clean tone canvas */
}

.border-light-subtle {
    border-color: #F1F5F9 !important;
}

/* Flexbox tag cloud spacing normalization for Section 3.5 B */
.d-flex.flex-wrap.gap-2\.5 {
    gap: 0.75rem !important;
}

/* ==========================================================================
   2. Section 3.5 A: Browse by North Indian States UI Elements
   ========================================================================== */
/* Interactive state selection wrapper grid link overrides */
section a.premium-card.p-3.d-block.text-decoration-none.h-100.bg-white {
    background-color: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 14px !important;
    padding: 1.25rem !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02), 0 4px 12px rgba(15, 23, 42, 0.01) !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* State card premium hover transform curves */
section a.premium-card.p-3.d-block.text-decoration-none.h-100.bg-white:hover {
    background-color: #FFFFFF !important;
    border-color: rgba(4, 72, 143, 0.25) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 32px rgba(4, 72, 143, 0.05), 0 2px 4px rgba(4, 72, 143, 0.02) !important;
}

/* Inner Text Elements & State Labels */
section a.premium-card h6 {
    color: #0F172A !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    margin-bottom: 0.25rem !important;
    transition: color 0.2s ease;
}

section a.premium-card:hover h6 {
    color: #04488F !important; /* Deep Trust Blue Title Highlight */
}

section a.premium-card span.text-muted {
    color: #64748B !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
}

/* Micro-vector arrow icon transition engine */
section a.premium-card i.bi-arrow-right-short {
    color: #94A3B8 !important;
    font-size: 1.5rem !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

section a.premium-card:hover i.bi-arrow-right-short {
    color: #FC5C0E !important; /* Accent Pop: Arrow highlights orange */
    transform: translateX(4px);
}

/* ==========================================================================
   3. Section 3.5 B: Explore Premium Academic Cities (Notion/SaaS Style)
   ========================================================================== */
.style-city-pill {
    background-color: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px !important;
    padding: 0.65rem 1.25rem !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Interactive Pill Float Transformation */
.style-city-pill:hover {
    background-color: #FFFFFF !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.06), 0 1px 2px rgba(37, 99, 235, 0.02) !important;
}

/* City Label Configuration */
.style-city-pill span:not(.badge) {
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    color: #1E293B !important;
    transition: color 0.2s ease;
}

.style-city-pill:hover span:not(.badge) {
    color: #2563EB !important; /* Secondary Interactive Blue Highlight */
}

/* Vector Context Building Icons */
.style-city-pill i.bi-building {
    color: #94A3B8 !important;
    font-size: 1rem !important;
    transition: color 0.2s ease;
}

.style-city-pill:hover i.bi-building {
    color: #FC5C0E !important; /* Active Orange Highlight on Hover */
}

/* Subdued Inner State Identification Badges */
.style-city-pill .badge.bg-slate-100 {
    background-color: #F1F5F9 !important;
    color: #64748B !important;
    border: 1px solid #E2E8F0 !important;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 6px !important;
}

/**
 * Apply4U High-Density Component Token Matrix Extensions
 * Location: public/css/theme.css (Append to bottom)
 */

/* 1. Flexbox Tag Gap Reset Utility */
.d-flex.flex-wrap.gap-2\.5 {
    gap: 0.75rem !important;
}

/* 2. Premium Degrees & Structural Cards Overrides */
section .premium-card.p-4.h-100.d-flex.align-items-start.gap-3.bg-white {
    background-color: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

section .premium-card.p-4.h-100.d-flex.align-items-start.gap-3.bg-white:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(4, 72, 143, 0.2) !important;
    box-shadow: 0 16px 32px rgba(4, 72, 143, 0.05) !important;
}

/* 3. High-Contrast Global Elements & Background Resets */
.bg-light {
    background-color: #F8FAFC !important;
}

.badge.bg-slate-100 {
    background-color: #F1F5F9 !important;
    color: #475569 !important;
    border: 1px solid #E2E8F0 !important;
    font-weight: 600 !important;
}

/* 4. Link & Micro Button Text Transformations */
.btn-link.text-primary {
    font-size: 0.85rem !important;
    transition: color 0.2s ease;
}

.btn-link.text-primary:hover {
    color: #2563EB !important;
}


/**
 * High-Priority Layout Fix: Centralized Admissions Journey Component Matrix
 * Location: public/css/theme.css (Append to absolute bottom)
 */

/* Force high-contrast legible slate gray for section header subtext */
.journey-sub-title {
    color: #94A3B8 !important;
    font-size: 0.95rem !important;
    max-width: 550px;
    margin: 0 auto;
}

/* Force absolute text color readability contrast across headings */
.journey-step-heading {
    color: #F8FAFC !important;
    font-weight: 700 !important;
    font-size: 1.15rem !important;
    margin-top: 1rem !important;
    margin-bottom: 0.5rem !important;
}

/* Force absolute text color readability contrast across descriptions */
.journey-step-desc {
    color: #CBD5E1 !important;
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
}

/* Structural Circle Badge Element Framework Layout Fixes */
.journey-circle-badge {
    width: 64px !important;
    height: 64px !important;
    font-weight: 800 !important;
    font-size: 1.35rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 1.25rem auto !important;
    border-radius: 50% !important;
    position: relative !important;
    z-index: 5 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4) !important;
}

/* Circle Badge Color Variances Glow Matrix Hooks */
.journey-circle-badge.blue-node {
    background: linear-gradient(135deg, #2563EB 0%, #04488F 100%) !important;
    border: 3px solid rgba(37, 99, 235, 0.35) !important;
    color: #FFFFFF !important;
}

.journey-circle-badge.accent-node {
    background: linear-gradient(135deg, #FC5C0E 0%, #C2410C 100%) !important;
    border: 3px solid rgba(252, 92, 14, 0.35) !important;
    color: #FFFFFF !important;
}

.journey-circle-badge.green-node {
    background: linear-gradient(135deg, #22C55E 0%, #15803D 100%) !important;
    border: 3px solid rgba(34, 197, 94, 0.35) !important;
    color: #FFFFFF !important;
}


