/* =========================================================================
   IIT GUWAHATI / TIH / OES LEARN PLATFORM - UNIFIED DESIGN SYSTEM
   Signature Royal Navy Palette, Premium Typography & Component Styles
   ========================================================================= */

:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', 'Inter', -apple-system, sans-serif;

    /* Signature IIT Guwahati & TIH Royal Navy Palette */
    --navy-primary: #00356b;
    --navy-dark: #002147;
    --navy-vibrant: #00509e;
    --navy-light: #1d4f8e;
    --navy-surface: #f5f8fc;
    --navy-tint: #f0f7ff;
    --navy-border: rgba(0, 53, 107, 0.14);
    --navy-border-subtle: rgba(0, 53, 107, 0.08);

    /* Gold Accents */
    --gold: #c69b30;
    --gold-light: #fef3c7;
    --gold-text: #92400e;
    --gold-border: #fde68a;

    /* Cyan / Tech Highlights */
    --cyan: #0284c7;
    --cyan-light: #e0f2fe;
    --cyan-border: #bae6fd;

    /* Grayscale & Text */
    --ink: #0f172a;
    --ink-body: #334155;
    --ink-muted: #5a6a7e;
    --ink-light: #94a3b8;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 53, 107, 0.04);
    --shadow-md: 0 6px 20px rgba(0, 53, 107, 0.07);
    --shadow-lg: 0 12px 32px rgba(0, 53, 107, 0.12);
    --shadow-hover: 0 16px 40px rgba(0, 53, 107, 0.16);
}

/* Typography & Base Helpers */
body {
    font-family: var(--font-sans);
    color: var(--ink-body);
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
    color: var(--navy-dark);
}

.text-navy { color: var(--navy-primary) !important; }
.text-navy-dark { color: var(--navy-dark) !important; }
.text-navy-vibrant { color: var(--navy-vibrant) !important; }
.text-gold { color: var(--gold) !important; }
.text-ink-muted { color: var(--ink-muted) !important; }
.bg-tih-surface { background-color: var(--navy-surface) !important; }
.bg-tih-tint { background-color: var(--navy-tint) !important; }
.border-blue-subtle { border-color: rgba(0, 53, 107, 0.1) !important; }

/* Section Titles */
.tih-section-title {
    font-size: clamp(1.75rem, 3.2vw, 2.2rem);
    font-weight: 800;
    color: var(--navy-dark);
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.tih-section-desc {
    font-size: 0.95rem;
    color: var(--ink-muted);
    line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   HERO BANNER & AMBIENT POLISH
   ══════════════════════════════════════════════════════════════ */
.hero-tih {
    background: radial-gradient(circle at 50% 0%, rgba(0, 53, 107, 0.12) 0%, rgba(245, 248, 252, 0) 70%), #f5f8fc;
    padding: 56px 0 48px;
    border-bottom: 1px solid var(--navy-border);
    position: relative;
    overflow: hidden;
}

.hero-ambient-glow-tih {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 480px;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 80, 158, 0.16), rgba(245, 248, 252, 0));
    pointer-events: none;
    z-index: 0;
}

.hero-grid-pattern-tih {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(0, 53, 107, 0.12) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
}

.tih-hero-headline {
    font-size: clamp(2.1rem, 4.2vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--navy-dark);
    line-height: 1.18;
}

.tih-gradient-text {
    background: linear-gradient(135deg, #00356b 0%, #00509e 55%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tih-hero-subtext {
    font-size: 1.05rem;
    color: var(--ink-muted);
    line-height: 1.65;
    max-width: 660px;
}

.tih-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 6px 18px;
    border-radius: 999px;
    border: 1.5px solid rgba(0, 53, 107, 0.2);
    box-shadow: 0 4px 14px rgba(0, 53, 107, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tih-badge-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 53, 107, 0.14);
}

.tih-dot-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--navy-vibrant);
    box-shadow: 0 0 0 3px rgba(0, 80, 158, 0.25);
    animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(0, 80, 158, 0.25); }
    50% { box-shadow: 0 0 0 6px rgba(0, 80, 158, 0.12); }
}

.tih-badge-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--navy-dark);
    letter-spacing: 0.02em;
}

.tih-badge-accent {
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-vibrant) 100%);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

/* ══════════════════════════════════════════════════════════════
   BUTTONS (TIH ROYAL NAVY GRADIENT & VARIANTS)
   ══════════════════════════════════════════════════════════════ */
.btn-tih-primary {
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-vibrant) 100%);
    color: #ffffff !important;
    border: 1px solid var(--navy-primary);
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0, 53, 107, 0.25);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.btn-tih-primary:hover {
    background: linear-gradient(135deg, #002b57 0%, #004487 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 53, 107, 0.35);
    color: #ffffff !important;
}

.btn-tih-outline {
    background: #ffffff;
    color: var(--navy-primary) !important;
    border: 1.5px solid var(--navy-primary);
    padding: 9px 20px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-tih-outline:hover {
    background: var(--navy-tint);
    border-color: var(--navy-vibrant);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 53, 107, 0.12);
}

.btn-tih-ghost {
    background: var(--navy-tint);
    color: var(--navy-primary) !important;
    border: 1px solid rgba(0, 53, 107, 0.14);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.btn-tih-ghost:hover {
    background: #ffffff;
    border-color: var(--navy-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-link-tih {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--navy-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-link-tih:hover {
    color: var(--navy-vibrant);
    transform: translateX(3px);
}

/* ══════════════════════════════════════════════════════════════
   BADGES & BRAND PILLS
   ══════════════════════════════════════════════════════════════ */
.badge-tih-brand {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-vibrant) 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 53, 107, 0.3);
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.02em;
}

.badge-oes-brand {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--navy-dark);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 33, 71, 0.3);
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.02em;
}

.badge-gold-pill {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    background: #ffffff;
    color: var(--navy-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
}

.badge-duration-pill {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--navy-primary);
    background: var(--navy-tint);
    border: 1px solid #bfdbfe;
    padding: 3px 9px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
}

.badge-code-pill {
    font-size: 0.72rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 700;
    color: var(--navy-primary);
    background: var(--navy-tint);
    border: 1px solid #bae6fd;
    padding: 3px 8px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
}

.badge-fee-pill {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--navy-primary);
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    padding: 3px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
}

.tih-partner-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.70rem;
    font-weight: 600;
    color: var(--navy-primary);
    background: #eef6ff;
    border: 1px solid #bfdbfe;
    padding: 3px 8px;
    border-radius: 4px;
    line-height: 1.2;
    letter-spacing: 0.2px;
}

.tih-partner-tag i {
    color: var(--navy-vibrant);
    font-size: 0.72rem;
}

.tih-partner-tag strong {
    color: var(--navy-dark);
    font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════
   COURSE CARDS (TIH SIGNATURE GRID CARDS)
   ══════════════════════════════════════════════════════════════ */
.tih-course-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.2s ease;
    box-shadow: 0 6px 20px rgba(0, 53, 107, 0.06);
    cursor: pointer;
    position: relative;
}

.tih-course-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 53, 107, 0.25);
    box-shadow: var(--shadow-hover);
}

.tih-card-media {
    height: 160px;
    overflow: hidden;
    background: var(--navy-dark);
    position: relative;
}

.tih-card-media::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.08) 50%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.tih-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.tih-course-card:hover .tih-card-img {
    transform: scale(1.05);
}

.tih-card-badges {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

.tih-card-body {
    padding: 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tih-card-title {
    font-size: 0.975rem;
    font-weight: 800;
    color: var(--navy-dark);
    line-height: 1.35;
    height: 2.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.tih-card-desc {
    font-size: 0.8rem;
    color: var(--ink-muted);
    line-height: 1.45;
    height: 2.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.tih-card-action {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--navy-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.15s ease, color 0.15s ease;
}

.tih-course-card:hover .tih-card-action {
    color: var(--navy-vibrant);
    gap: 8px;
}

/* List View Card */
.tih-course-card-list {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-left: 5px solid var(--navy-primary) !important;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 53, 107, 0.05);
    cursor: pointer;
}

.tih-course-card-list:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 53, 107, 0.25);
}

.tih-list-thumb-wrapper {
    min-height: 145px;
    height: 100%;
    background: var(--navy-dark);
}

.tih-card-list-img {
    width: 100%;
    height: 100%;
    min-height: 145px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.tih-course-card-list:hover .tih-card-list-img {
    transform: scale(1.04);
}

/* ══════════════════════════════════════════════════════════════
   FILTER PILLS & TOOLBAR CONTROLS
   ══════════════════════════════════════════════════════════════ */
.tih-tab-pill {
    padding: 8px 20px;
    border: 2px solid var(--navy-primary);
    border-radius: 999px;
    background: transparent;
    color: var(--navy-primary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tih-tab-pill:hover {
    background: rgba(0, 53, 107, 0.08);
    transform: translateY(-2px);
    color: var(--navy-primary);
}

.tih-tab-pill.active {
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-vibrant) 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(0, 53, 107, 0.28);
    border-color: var(--navy-primary);
}

.tih-tab-pill .count {
    background: rgba(0, 53, 107, 0.1);
    color: var(--navy-primary);
    border-radius: 999px;
    font-size: 11px;
    padding: 1px 8px;
    font-weight: 700;
}

.tih-tab-pill.active .count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Search Box (TIH Toolbar Style) */
.tih-search-wrapper {
    max-width: 600px;
}

.tih-search-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid rgba(0, 53, 107, 0.18);
    border-radius: 12px;
    padding: 6px 6px 6px 18px;
    box-shadow: 0 8px 24px rgba(0, 53, 107, 0.09);
    transition: all 0.2s ease;
}

.tih-search-card:focus-within {
    border-color: var(--navy-primary);
    box-shadow: 0 10px 30px rgba(0, 53, 107, 0.16), 0 0 0 3px rgba(0, 53, 107, 0.1);
}

.tih-search-icon {
    color: var(--navy-vibrant);
    font-size: 1rem;
    margin-right: 12px;
}

.tih-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.925rem;
    color: var(--navy-dark);
    font-weight: 500;
    background: transparent;
}

.tih-search-input::placeholder {
    color: #8da2ba;
    font-weight: 400;
}

.tih-search-btn {
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-vibrant) 100%);
    color: #ffffff;
    border: none;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 53, 107, 0.28);
    transition: all 0.2s ease;
    cursor: pointer;
}

.tih-search-btn:hover {
    background: linear-gradient(135deg, #002b57 0%, #004487 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 53, 107, 0.38);
}

/* Directory Toolbar Bar */
.tih-toolbar-card {
    background: #ffffff;
    border: 1px solid var(--navy-border);
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
}

.tih-control-select {
    border: 1.5px solid var(--navy-border);
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 0.875rem;
    color: var(--navy-dark);
    font-weight: 600;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.tih-control-select:focus {
    border-color: var(--navy-primary);
    box-shadow: 0 0 0 3px rgba(0, 53, 107, 0.12);
    outline: none;
}

.tih-view-toggle-btn {
    width: 40px;
    height: 38px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    background: #ffffff;
    border: 1.5px solid var(--navy-border);
    color: var(--ink-muted);
    transition: all 0.2s ease;
    cursor: pointer;
}

.tih-view-toggle-btn:hover {
    color: var(--navy-primary);
    border-color: var(--navy-primary);
    background: var(--navy-tint);
}

.tih-view-toggle-btn.active {
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-vibrant) 100%);
    border-color: var(--navy-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 53, 107, 0.25);
}

/* ══════════════════════════════════════════════════════════════
   PAGINATION OVERRIDES (ROYAL NAVY)
   ══════════════════════════════════════════════════════════════ */
.pagination {
    gap: 5px;
    justify-content: center;
}

.page-item .page-link {
    border: 1.5px solid var(--navy-border);
    color: var(--navy-primary);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px !important;
    padding: 7px 14px;
    transition: all 0.15s ease;
    background-color: #ffffff;
}

.page-item .page-link:hover {
    background-color: var(--navy-tint);
    color: var(--navy-dark);
    border-color: var(--navy-primary);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-vibrant) 100%) !important;
    border-color: var(--navy-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 53, 107, 0.25);
}

/* ══════════════════════════════════════════════════════════════
   BREADCRUMBS
   ══════════════════════════════════════════════════════════════ */
.tih-breadcrumb-bar {
    background: var(--navy-surface);
    border: 1px solid var(--navy-border);
    border-radius: 12px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--ink-muted);
    margin-bottom: 24px;
}

.tih-breadcrumb-bar a {
    color: var(--navy-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tih-breadcrumb-bar a:hover {
    color: var(--navy-vibrant);
    text-decoration: underline;
}

.tih-breadcrumb-separator {
    color: #cbd5e1;
    font-size: 0.72rem;
}

.tih-breadcrumb-active {
    color: var(--navy-dark);
    font-weight: 700;
    max-width: 450px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ══════════════════════════════════════════════════════════════
   COURSE DETAILS HERO & SECTIONS
   ══════════════════════════════════════════════════════════════ */
.tih-course-hero-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 33, 71, 0.08);
    margin-bottom: 28px;
    transition: box-shadow 0.3s ease;
}

.tih-course-hero-card:hover {
    box-shadow: 0 16px 40px rgba(0, 33, 71, 0.12);
}

.tih-course-hero-img-wrap {
    height: 350px;
    position: relative;
    overflow: hidden;
    background: var(--navy-dark);
}

.tih-course-hero-img-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 2;
}

.tih-course-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tih-course-hero-card:hover .tih-course-hero-img {
    transform: scale(1.03);
}

.tih-course-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 22, 51, 0.15) 0%, rgba(0, 22, 51, 0.6) 45%, rgba(0, 15, 36, 0.94) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 34px 36px;
    z-index: 2;
}

.tih-course-hero-title {
    font-size: clamp(1.6rem, 3.2vw, 2.35rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.22;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.tih-hero-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    color: #e2e8f0;
    font-size: 0.875rem;
    font-weight: 500;
}

.tih-hero-strip-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.tih-hero-strip-item i {
    color: #38bdf8;
}

/* ══════════════════════════════════════════════════════════════
   COURSE DETAILS TABS
   ══════════════════════════════════════════════════════════════ */
.tih-nav-tabs-wrapper {
    background: #ffffff;
    border: 1px solid var(--navy-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 28px;
}

.tih-nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 12px;
    border-bottom: 1.5px solid var(--navy-border);
    background: #ffffff;
    gap: 2px;
}

.tih-nav-tabs::-webkit-scrollbar {
    display: none;
}

@media (min-width: 992px) {
    .tih-nav-tabs {
        flex-wrap: wrap;
        overflow-x: visible;
    }
}

.tih-nav-tabs .nav-link {
    border: none;
    background: transparent;
    color: var(--ink-muted);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 14px 14px;
    position: relative;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.tih-nav-tabs .nav-link:hover {
    color: var(--navy-primary);
    background: var(--navy-tint);
}

.tih-nav-tabs .nav-link.active {
    color: var(--navy-primary);
    font-weight: 700;
    background: transparent;
}

.tih-nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1.5px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--navy-primary) 0%, var(--navy-vibrant) 100%);
    border-radius: 3px 3px 0 0;
}

.tih-tab-body {
    padding: 28px;
}

/* Learning Outcomes & Audience Cards */
.tih-outcome-item {
    background: var(--navy-surface);
    border: 1px solid var(--navy-border);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.2s ease;
}

.tih-outcome-item:hover {
    background: #ffffff;
    border-color: var(--navy-primary);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.tih-outcome-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e0f2fe;
    color: var(--navy-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Instructor Cards on Details */
.tih-instructor-profile-card {
    background: #ffffff;
    border: 1.5px solid var(--navy-border);
    border-radius: 14px;
    padding: 20px;
    transition: all 0.25s ease;
    height: 100%;
}

.tih-instructor-profile-card:hover {
    border-color: var(--navy-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.tih-instructor-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--navy-vibrant);
    box-shadow: 0 4px 12px rgba(0, 53, 107, 0.15);
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   STICKY SIDEBAR (HIGH-CONVERSION TIH ROYAL NAVY)
   ══════════════════════════════════════════════════════════════ */
.tih-sidebar-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 10px 30px rgba(0, 33, 71, 0.08);
    margin-bottom: 24px;
    transition: box-shadow 0.25s ease;
}

.tih-sidebar-card:hover {
    box-shadow: 0 14px 36px rgba(0, 33, 71, 0.12);
}

.tih-fee-box-logged {
    background: linear-gradient(135deg, var(--navy-tint) 0%, #eef6ff 100%);
    border: 1.5px solid #bfdbfe;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.tih-fee-amount {
    font-size: 2.35rem;
    font-weight: 800;
    color: var(--navy-primary);
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.tih-fee-tier-item {
    background: var(--navy-surface);
    border: 1.5px solid var(--navy-border);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.tih-fee-tier-item:hover {
    background: #ffffff;
    border-color: var(--navy-primary);
    transform: translateX(3px);
}

.tih-info-list {
    display: flex;
    flex-direction: column;
}

.tih-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--navy-border);
    font-size: 0.875rem;
}

.tih-info-row:last-child {
    border-bottom: none;
}

.tih-info-label {
    color: var(--ink-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tih-info-label i {
    color: var(--navy-vibrant);
    font-size: 0.9rem;
    width: 18px;
}

.tih-info-value {
    font-weight: 700;
    color: var(--navy-dark);
}

.tih-perks-box {
    background: #ffffff;
    border: 1px solid var(--navy-border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.tih-perk-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--ink-body);
    font-weight: 500;
    padding: 6px 0;
}

.tih-perk-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--navy-tint);
    border: 1px solid #bfdbfe;
    color: var(--navy-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}
