/*
================================================================
SIHS PREMIUM EDUCATIONAL INFORMATION PORTAL - STYLE SYSTEM
================================================================
Theme Colors, Custom Elements, Soft UI, Hover Transitions, Mega Menu
================================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #7A6020;
    --primary-rgb: 122, 96, 32;
    --secondary: #5C4F3A;
    --secondary-rgb: 92, 79, 58;
    --accent: #1A1A1A;
    --accent-rgb: 26, 26, 26;
    --bg-light: #F0EAE0;
    --card-bg: #EDE8DF;
    --text-body: #5C4F3A;
    --dark: #3D3018;
    --dark-rgb: 61, 48, 24;
    --border-color: #D8CFBF;
    --success: #2E7D32;

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    --shadow-sm: 0 2px 4px rgba(61, 48, 24, 0.02);
    --shadow-md: 0 10px 25px -5px rgba(61, 48, 24, 0.04);
    --shadow-lg: 0 20px 40px -10px rgba(61, 48, 24, 0.06);
    --shadow-hover: 0 15px 35px -5px rgba(61, 48, 24, 0.08);

    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: clip;
}

body {
    max-width: 100%;
    overflow-x: clip;
}

/* --- Base Elements --- */
body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.6;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--secondary);
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* --- Sticky Header & Navigation --- */
.top-bar {
    background-color: var(--primary);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.9);
}

.top-bar a:hover {
    color: var(--accent);
}

.main-navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-normal);
    z-index: 1030;
}

/* Fix for Bootstrap 5 Offcanvas inside elements with backdrop-filter */
@media (max-width: 991.98px) {
    .main-navbar {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background-color: #ffffff;
    }
}

.main-navbar.navbar-hidden {
    transform: translateY(-100%);
}

.main-navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary) !important;
    font-size: 1.4rem;
}

.navbar-brand span {
    color: var(--accent);
}

.nav-link {
    font-weight: 500;
    color: var(--dark) !important;
    padding: 10px 15px !important;
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

/* --- Mega Menu --- */
.mega-menu {
    position: static !important;
}

.mega-menu-content {
    width: 100%;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0 0 16px 16px;
    box-shadow: var(--shadow-lg);
    padding: 24px;
    display: none;
    position: absolute;
    z-index: 1000;
    animation: fadeInSlide 0.3s ease forwards;
}

/* Invisible bridge to prevent hover loss when moving mouse down */
.mega-menu-content::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 30px;
    background: transparent;
}

.mega-menu:hover .mega-menu-content {
    display: block;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mega-menu-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(var(--primary-rgb), 0.1);
    padding-bottom: 6px;
}

.mega-menu-link {
    color: var(--dark);
    display: flex;
    align-items: center;
    padding: 6px 0;
    font-size: 0.9rem;
}

.mega-menu-link i {
    width: 20px;
    color: var(--secondary);
    transition: var(--transition-fast);
}

.mega-menu-link:hover {
    color: var(--primary);
    padding-left: 5px;
}

.mega-menu-link:hover i {
    color: var(--accent);
}

/* --- Hero & Search Components --- */
.hero-section {
    background-color: var(--bg-light);
    background-image: radial-gradient(rgba(122, 96, 32, 0.1) 1.5px, transparent 1.5px);
    background-size: 25px 25px;
    padding: 50px 0 30px 0;
    position: relative;
    /* overflow: hidden; Removed to allow search dropdown to overlap */
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--primary);
}

.search-box-container {
    border-radius: 16px;
}

.search-tabs .nav-link {
    border: none !important;
    background: none !important;
    color: #64748B !important;
    font-weight: 600;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    transition: var(--transition-fast);
}

.search-tabs .nav-link.active {
    color: #ffffff !important;
    background-color: var(--primary) !important;
}

/* --- Premium Buttons --- */
.btn-premium {
    background-color: var(--primary);
    color: #ffffff;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 10px;
    border: none;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-premium:hover {
    background-color: var(--dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-premium-accent {
    background-color: #ffffff;
    color: var(--primary);
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    transition: var(--transition-normal);
}

.btn-premium-accent:hover {
    background-color: var(--bg-light);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-premium-outline {
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    padding: 11px 27px;
    border-radius: 10px;
    border: 2px solid var(--primary);
    transition: var(--transition-normal);
}

.btn-premium-outline:hover {
    background-color: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* --- Reusable Premium Cards --- */
.card-premium {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    height: 100%;
}

.card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(var(--primary-rgb), 0.15);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
    /* 16:9 aspect ratio */
}

.card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.card-premium:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
}

/* --- Badges and Tags --- */
.badge-premium {
    background-color: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
}

.badge-premium-success {
    background-color: rgba(22, 163, 74, 0.08);
    color: var(--success);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 50px;
}

.badge-premium-accent {
    background-color: rgba(255, 183, 3, 0.15);
    color: #d97706;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 50px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    background-color: #F1F5F9;
    color: #475569;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.tag-item:hover {
    background-color: var(--primary);
    color: #ffffff;
}

/* --- Stream Cards (Home page Grid) --- */
.stream-card {
    background: #FCF8EF;
    border: 2px solid #ac760b;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: var(--transition-normal);
    cursor: pointer;
    height: 100%;
}

.stream-card .stream-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(var(--primary-rgb), 0.06);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    font-size: 1.5rem;
    transition: var(--transition-normal);
}

.stream-card:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stream-card:hover .stream-icon {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: rotateY(180deg);
}

.stream-card:hover h5,
.stream-card:hover p {
    color: #ffffff !important;
}

/* --- Timeline Component --- */
.timeline-premium {
    position: relative;
    padding-left: 32px;
    margin-left: 16px;
    border-left: 2px solid var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--card-bg);
    border: 3px solid var(--primary);
    border-radius: 50%;
    left: -41px;
    top: 4px;
    transition: var(--transition-fast);
}

.timeline-item:hover::before {
    background-color: var(--accent);
    transform: scale(1.2);
}

.timeline-date {
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.85rem;
    margin-bottom: 4px;
    text-transform: uppercase;
}

/* --- Floating helpline and scroll up buttons --- */
.floating-admission {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: #ffffff;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-normal);
}

.floating-admission:hover {
    color: #ffffff;
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 25px rgba(37, 211, 102, 0.5);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary);
    color: #ffffff;
    transform: translateY(-3px);
}

/* --- Custom Form Control --- */
.form-premium-group {
    margin-bottom: 20px;
}

.form-premium {
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-premium:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
    outline: none;
}

/* --- Breadcrumb Styles --- */
.breadcrumb-container {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #94A3B8;
}

/* --- Tabs Styling --- */
.nav-tabs-premium {
    border-bottom: 2px solid var(--border-color);
}

.nav-tabs-premium .nav-link {
    border: none !important;
    background: none !important;
    color: #64748B !important;
    font-weight: 600;
    padding: 12px 24px !important;
    position: relative;
}

.nav-tabs-premium .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    transform: scaleX(0);
    transition: var(--transition-fast);
}

.nav-tabs-premium .nav-link.active {
    color: var(--primary) !important;
}

.nav-tabs-premium .nav-link.active::after {
    transform: scaleX(1);
}

/* --- Sidebar Block --- */
.sidebar-block {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.sidebar-block-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    border-left: 4px solid var(--primary);
    padding-left: 10px;
}

/* --- Section Formatting --- */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
    margin-top: 12px;
}

.section-title.center::after {
    margin: 12px auto 0 auto;
}

/* --- News & Newsletter --- */
.newsletter-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 20px;
    padding: 48px;
    color: #ffffff;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.newsletter-card::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -200px;
    right: -100px;
}

/* --- Pagination UI --- */
.pagination-premium .page-link {
    border: 1px solid var(--border-color);
    margin: 0 4px;
    border-radius: 8px !important;
    color: var(--dark);
    font-weight: 600;
    transition: var(--transition-fast);
}

.pagination-premium .page-link:hover {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.pagination-premium .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

/* --- Swiper Custom Styling --- */
.swiper-pagination-bullet-active {
    background: var(--primary) !important;
    width: 24px !important;
    border-radius: 4px !important;
}

/* --- Accordions --- */
.accordion-premium .accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 12px !important;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.accordion-premium .accordion-button {
    font-weight: 600;
    color: var(--dark);
    font-family: var(--font-heading);
    padding: 16px 20px;
}

.accordion-premium .accordion-button:not(.collapsed) {
    background-color: rgba(var(--primary-rgb), 0.04);
    color: var(--primary);
    box-shadow: none;
}

.accordion-premium .accordion-button:focus {
    box-shadow: none;
}

/* --- Stats Widget --- */
.stat-item {
    text-align: center;
    padding: 20px;
}
/* --- Stats Marquee --- */
.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 10px 0;
    background: #fff;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    background: var(--bg-light, #FCF8EF);
    border: 1px solid rgba(172, 118, 11, 0.2);
    border-radius: 50px;
    padding: 8px 24px;
    margin: 0 10px;
    box-shadow: 0 4px 12px rgba(172, 118, 11, 0.08);
}

.stat-badge .stat-number {
    font-size: 1.15rem;
    font-weight: 800;
    margin-right: 8px;
    margin-bottom: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-badge .stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* --- Grid & Whitespace Layout helper --- */
.py-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* --- Magazine Sidebar Widget --- */
.magazine-sidebar-post {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.magazine-sidebar-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.magazine-sidebar-post img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
}

.magazine-sidebar-post-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
}

/* --- Review Card --- */
.review-card {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.review-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.star-rating {
    color: var(--accent);
}

/* --- Map container --- */
.map-container {
    height: 350px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* --- Search Result Cards --- */
.search-result-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: var(--transition-fast);
}

.search-result-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* --- Gallery Grid Item --- */
.gallery-grid-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.gallery-grid-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--primary-rgb), 0.7);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.gallery-grid-item:hover img {
    transform: scale(1.1);
}

.gallery-grid-item:hover .gallery-grid-overlay {
    opacity: 1;
}

/* --- Downloads Table / Icons --- */
.download-item-row {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
}

.download-item-row:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* --- Media Queries --- */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-section {
        padding: 60px 0 40px 0;
    }

    .mega-menu-content {
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
        padding-left: 1rem;
        /* display: none !important; Removed to allow collapse plugin to work */
    }

    .floating-admission {
        bottom: 20px;
        right: 20px;
        padding: 12px 18px;
        font-size: 0.9rem;
    }

    .back-to-top {
        bottom: 80px;
        right: 20px;
        left: auto;
    }

    .py-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    footer .text-secondary {
        color: rgba(255, 255, 255, 0.7) !important;
    }
}

/* --- Hover Dropdown for standard nav items (e.g. Resources) --- */
@media all and (min-width: 992px) {
    .navbar .dropdown:hover>.dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeInSlide 0.2s ease forwards;
    }

    .navbar .dropdown-menu::before {
        content: '';
        position: absolute;
        top: -15px;
        left: 0;
        width: 100%;
        height: 15px;
        background: transparent;
    }
}

/* --- Bootstrap Utility Overrides --- */
.bg-dark {
    background-color: var(--dark) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.text-secondary {
    color: var(--text-body) !important;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

.btn-light {
    background-color: var(--card-bg);
    color: var(--primary);
    border: 1px solid var(--border-color);
}

/* --- Animations --- */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* --- Choose By Level Section --- */
.level-tabs-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.level-tabs-container::-webkit-scrollbar {
    display: none;
}

.level-tabs .nav-link {
    background-color: #EAE3CF;
    color: var(--dark);
    border-radius: 4px;
    padding: 12px 20px;
    margin-bottom: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    text-align: left;
    white-space: nowrap;
    font-size: 0.95rem;
}

.level-tabs .nav-link.active {
    background-color: var(--primary) !important;
    color: #ffffff !important;
}

@media (max-width: 991.98px) {
    .level-tabs {
        display: flex;
        flex-direction: row !important;
        flex-wrap: nowrap;
    }

    .level-tabs .nav-link {
        margin-bottom: 0;
        margin-right: 12px;
        border-radius: 20px;
    }
}

.dotted-card {
    border: 2px dotted #c59846;
    /* Matching the golden dot border */
    background-color: transparent;
    padding: 25px 15px 15px 15px;
    text-align: center;
    border-radius: 4px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.dotted-card h5 {
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.dotted-card hr {
    border-color: var(--dark);
    opacity: 0.8;
    width: 90%;
    margin: 5px auto 15px auto;
    border-width: 2px;
}

.dotted-card .btn-know-more {
    background-color: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: 600;
    border: none;
    transition: 0.2s;
}

.dotted-card .btn-know-more:hover {
    background-color: var(--dark);
    color: #fff;
}

.course-category-card {
    background-color: #F5F7FA;
    border: 1px solid #B0BEC5;
    border-radius: 12px;
    padding: 30px 15px 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    cursor: pointer;
}

.course-category-card:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.course-category-card h6 {
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1rem;
}

.course-category-card p {
    color: #6c757d;
    font-size: 0.8rem;
    margin-bottom: 0;
}

/* --- Find Perfect College Section --- */
.college-tabs-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.college-tabs-container::-webkit-scrollbar {
    display: none;
}

.college-tabs {
    display: flex;
    flex-wrap: nowrap;
    margin-bottom: 30px;
    border-bottom: 0;
}

.college-tabs .nav-link {
    background-color: #EAE3CF;
    color: var(--dark);
    border-radius: 20px;
    padding: 8px 20px;
    margin-right: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.college-tabs .nav-link i {
    margin-right: 6px;
    font-size: 0.85rem;
    display: none;
    /* Hide icon by default */
}

.college-tabs .nav-link.active {
    background-color: var(--primary) !important;
    color: #ffffff !important;
}

.college-tabs .nav-link.active i {
    display: inline-block;
    /* Show check/arrow icon when active */
}

.college-card-item {
    background-color: #ffffff;
    border: 1px solid #CED4DA;
    border-radius: 8px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.college-card-item:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.college-card-item img {
    max-height: 45px;
    max-width: 90%;
    object-fit: contain;
    margin-bottom: 15px;
}

.college-card-item h6 {
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.college-card-item p {
    color: var(--dark);
    font-size: 0.85rem;
    margin-bottom: 0;
    font-weight: 500;
}

/* --- Newsletter Input Placeholder --- */
.newsletter-input::placeholder {
    color: rgba(251, 243, 243, 0.6) !important;
    opacity: 1;
    /* Firefox fix */
}

/* --- Job Ready Course Section --- */
.job-ready-card {
    background: linear-gradient(90deg, #d8d0ba 0%, #ebe5d3 15%, #ebe5d3 85%, #d8d0ba 100%);
    border-radius: 16px;
    padding-bottom: 25px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08), inset 0 -15px 20px rgba(0,0,0,0.05);
    transition: var(--transition-normal);
    height: 100%;
    margin-top: 50px;
    margin-bottom: 40px; /* Fix for shadow clipping in overflow containers */
}
.job-ready-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12), inset 0 -15px 20px rgba(0,0,0,0.08);
}
.job-ready-img {
    width: 100%;
    margin-top: -50px;
    margin-bottom: 20px;
}
.job-ready-content {
    padding: 0 25px;
}
.job-ready-content h4 {
    font-weight: 800;
    color: #111;
    font-size: 1.25rem;
    margin-bottom: 5px;
}
.job-ready-content p {
    color: #888;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 15px;
}
.job-ready-content hr {
    border-color: #000;
    opacity: 0.4;
    margin: 15px auto 20px auto;
    width: 75%;
}
.btn-job-ready {
    background: linear-gradient(to bottom, #988052, #7D6433);
    color: #fff;
    border-radius: 25px;
    padding: 8px 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
.btn-job-ready:hover {
    background: linear-gradient(to bottom, #8A7242, #6F5726);
    color: #fff;
    transform: translateY(-2px);
}

/* Scrollable row for all screens */
.job-ready-scroll-container .row {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    margin-left: 0;
    margin-right: 0;
}
.job-ready-scroll-container .row::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

/* --- Promotional Banners Section Hover Effect --- */
.promo-banner-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}
.promo-banner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}
.promo-banner-card svg {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.promo-banner-card:hover svg {
    transform: scale(1.06);
}