/* ============================================================
   Ashwa Foundation College — Premium University Style
   ============================================================ */

:root {
    --primary: #0b2240;
    /* Navy Blue */
    --primary-light: #1a3a6b;
    --primary-soft: #e8eef8;
    --accent: #f97316;
    /* Orange */
    --accent-hover: #ea580c;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --bg-soft: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, .12);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Mukta', system-ui, sans-serif;
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Mukta', sans-serif;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--primary-light);
    transition: .2s;
}

a:hover {
    color: var(--accent);
}

.text-accent {
    color: var(--accent) !important;
}

.bg-light-soft {
    background: var(--bg-soft);
}

.tracking-wide {
    letter-spacing: 1.5px;
    font-size: 0.85rem;
}

/* ---------- TOPBAR & MARQUEE (No Black) ---------- */
/* =========================================
   PREMIUM TOPBAR (Single Line, Clean Layout)
   ========================================= */
.topbar {
    background-color: #0b2240;
    /* Deep Navy */
    height: 38px;
    /* Fixed height for clean look */
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Inter', sans-serif;
}

/* LATEST Badge */
.badge-latest {
    background-color: var(--accent);
    color: #fff;
    font-size: 10px;
    letter-spacing: 1px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
}

/* Marquee Container */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    position: relative;
}

.marquee-content {
    display: inline-block;
    animation: marquee-rtl 25s linear infinite;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-item {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    margin-right: 50px;
}

/* Right Side Contact Links */
.topbar-right {
    gap: 15px;
    flex-shrink: 0;
    /* Prevents text from breaking into new line */
}

.topbar-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s;
}

.topbar-link i {
    color: var(--accent);
    margin-right: 4px;
}

.topbar-link:hover {
    color: var(--accent);
}

.admin-link {
    color: #fff;
    font-weight: 600;
}

.divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 12px;
}

/* Right to Left Animation */
@keyframes marquee-rtl {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}


/* ---------- NAVBAR ---------- */
.main-navbar {
    background: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    transition: all .3s ease;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.main-navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.brand-name {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.brand-sub {
    display: block;
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
}

.main-navbar .nav-link {
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    padding: 8px 16px !important;
    position: relative;
}

.main-navbar .nav-link:hover {
    color: var(--primary);
}

.main-navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 4px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s;
}

.main-navbar .nav-link:hover::after {
    transform: scaleX(1);
}

/* ---------- BUTTONS ---------- */
.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}

.btn-accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, .35);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

/* ---------- HERO SLIDER ---------- */
.carousel-item {
    height: 85vh;
    min-height: 600px;
    background-color: #000;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    to {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(11, 34, 64, 0.95) 0%, rgba(11, 34, 64, 0.7) 50%, rgba(11, 34, 64, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: absolute;
    /* Changed from relative for better centering */
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 100%;
    left: 0;
    right: 0;
}

.hero-content .container {
    position: relative;
    z-index: 2;
}

/* ---------- QUICK LINKS ---------- */
.quick-links-section {
    position: relative;
    margin-top: -60px;
    z-index: 10;
}

.quick-links-row {
    border-radius: var(--radius);
    background: #fff;
}

.quick-link-card {
    display: block;
    background: #fff;
    padding: 30px 20px;
    text-align: center;
    border-right: 1px solid var(--border);
    transition: all 0.3s ease;
    height: 100%;
}

.quick-link-card:last-child {
    border-right: none;
}

.quick-link-card:hover {
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    transform: translateY(-5px);
}

.quick-link-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
    display: block;
    transition: 0.3s;
}

.quick-link-card:hover i {
    color: #fff;
    transform: scale(1.1);
}

.quick-link-card h5 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1.1rem;
    transition: 0.3s;
}

.quick-link-card span {
    color: var(--text-light);
    font-size: 0.85rem;
    transition: 0.3s;
}

.quick-link-card:hover h5, .quick-link-card:hover span {
    color: #fff;
}

/* ---------- SECTIONS & STATS ---------- */
.section-pad {
    padding: 50px 0;
}

.section-tag {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--primary);
}

.stats-section {
    background: var(--primary) !important;
    padding: 60px 0;
    position: relative;
}

.stat-card h3 {
    font-size: 3rem;
    font-weight: 800;
    margin: 10px 0 4px;
    color: var(--accent);
}

.stat-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---------- PROGRAM CARDS ---------- */
.program-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fff;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
    border-bottom: 3px solid var(--accent) !important;
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box i {
    font-size: 2rem;
    color: var(--accent);
}

/* ---------- CTA SECTION ---------- */
.cta-section {
    background: linear-gradient(rgba(11, 34, 64, 0.95), rgba(11, 34, 64, 0.95)), url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1920&q=80') center/cover fixed;
}

/* ---------- AI CHATBOT BUTTON ---------- */
.ai-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    z-index: 1000;
    transition: 0.3s;
}

.ai-chat-btn:hover {
    background: var(--accent);
    transform: translateY(-5px);
    color: #fff;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .carousel-item {
        height: 75vh;
        min-height: 500px;
    }

    .quick-links-section {
        margin-top: -30px;
    }

    .quick-link-card {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .stats-section {
        padding: 40px 0;
    }

    .stat-card h3 {
        font-size: 2rem;
    }

    .section-pad {
        padding: 60px 0;
    }

    .main-navbar .btn-accent {
        width: 100%;
        margin-top: 10px;
    }

    .ai-chat-btn {
        padding: 15px;
        border-radius: 50%;
    }

    .ai-chat-btn .chat-text {
        display: none;
    }
}

/* =========================================
   PREMIUM FOOTER STYLES
   ========================================= */

.site-footer {
    background-color: #061527;
    /* Deep Navy/Black */
    position: relative;
    border-top: 4px solid var(--accent);
    /* Orange Top Border */
}

.footer-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

/* Small line below footer titles */
.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    padding: 6px 0;
    color: rgba(255, 255, 255, .6);
    font-size: 14px;
    display: flex;
    align-items: flex-start;
}

.footer-links a {
    color: rgba(255, 255, 255, .6);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
    /* Slide effect */
}

/* Contact Info Specific */
.contact-info-list li {
    margin-bottom: 12px;
    line-height: 1.5;
}

.contact-info-list i {
    font-size: 16px;
    margin-top: 2px;
    /* Align icon with text */
}

/* Social Links */
.social-links a {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    margin-right: 10px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.3);
}

/* Newsletter Form */
.newsletter-form .form-control {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #fff;
    padding: 12px 15px;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, .4);
    font-size: 14px;
}

.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, .1);
    border-color: var(--accent);
    color: #fff;
    box-shadow: none;
}

.newsletter-form .btn {
    padding: 0 20px;
}

/* =========================================
   ABOUT US PAGE CUSTOM STYLES
   ========================================= */

/* Page Hero Large */
.page-hero-lg {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    min-height: 45vh;
    display: flex;
    align-items: center;
}

.min-vh-50 {
    min-height: 50vh;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* Vision & Mission Cards */
.vision-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--accent) !important;
}

.mission-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--primary) !important;
}

.vision-card:hover, .mission-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg) !important;
}

/* Core Values Hover Effects */
.value-box {
    border-color: var(--border) !important;
    background: var(--white);
    transition: all 0.3s ease;
}

.value-box:hover {
    border-color: var(--accent) !important;
    background: var(--bg-soft);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Director Message Image */
.director-img-wrapper img {
    width: 250px;
    height: 250px;
    object-fit: cover;
}

/* Timeline CSS */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

/* The vertical line */
.timeline::before {
    content: '';
    position: absolute;
    width: 3px;
    background: var(--border);
    top: 0;
    bottom: 0;
    left: 20px;
    /* Align left on mobile */
    margin-left: -1.5px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 60px;
    /* Space for dot and line */
}

/* The Dot */
.timeline-dot {
    position: absolute;
    left: 12px;
    top: 20px;
    width: 18px;
    height: 18px;
    background: var(--accent);
    border: 4px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    background: var(--primary);
    box-shadow: 0 0 0 5px rgba(11, 34, 64, 0.2);
}

/* Content Box */
.timeline-content {
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateX(5px);
}

/* Desktop Timeline (Centered) */
@media (min-width: 768px) {
    .timeline::before {
        left: 50%;
    }

    .timeline-item {
        width: 50%;
        padding-left: 0;
        padding-right: 40px;
        margin-left: 0;
        text-align: right;
    }

    .timeline-item:nth-child(even) {
        margin-left: 50%;
        padding-left: 40px;
        padding-right: 0;
        text-align: left;
    }

    .timeline-dot {
        left: auto;
        right: -9px;
        /* Center on line */
    }

    .timeline-item:nth-child(even) .timeline-dot {
        left: -9px;
        right: auto;
    }

    .timeline-item:hover .timeline-content {
        transform: translateX(-5px);
    }

    .timeline-item:nth-child(even):hover .timeline-content {
        transform: translateX(5px);
    }
}

h2.display-5.fw-bold.mb-3 {
    color: rgb(224, 192, 232);
}

h1.display-3.fw-bold.mb-3 {
    color: #d7bae4;
}

/* =========================================
   COURSES PAGE CUSTOM STYLES
   ========================================= */

/* Filter Buttons */
.btn-filter {
    background: transparent;
    color: var(--text);
    border-radius: 50rem;
    padding: 8px 24px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    transition: all 0.3s ease;
}

.btn-filter:hover {
    color: var(--primary);
    background: rgba(11, 34, 64, 0.05);
}

.btn-filter.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(11, 34, 64, 0.3);
}

/* Premium Course Cards */
.course-card-premium {
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.course-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

/* Top Banner inside card */
.card-header-custom {
    border-bottom: 3px solid var(--accent);
}

.stream-badge {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 4px;
}

/* Icon Inside Card */
.course-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--bg-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(249, 115, 22, 0.4);
    transition: all 0.3s ease;
}

.course-icon-wrapper i {
    font-size: 2.2rem;
    color: var(--accent);
}

.course-card-premium:hover .course-icon-wrapper {
    background: var(--accent);
    border-color: var(--accent);
}

.course-card-premium:hover .course-icon-wrapper i {
    color: #fff;
}

/* Highlight Boxes */
.highlight-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent) !important;
}

/* Keyframe for filter animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Admission Form Custom Styles */
.section-heading {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.form-control, .form-select {
    border: 1px solid var(--border);
    font-size: 15px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.25rem rgba(249, 115, 22, 0.15);
    background-color: #fff !important;
}

.page-hero-sm {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

h1.display-5.fw-bold {
    color: #fbeaff;
}

/* =========================================
   CONTACT PAGE CUSTOM STYLES
   ========================================= */

/* Contact Info Cards Hover Effect */
.contact-info-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent !important;
}

.contact-info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--accent) !important;
}

.contact-info-card .icon-box {
    width: 70px;
    height: 70px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-info-card:hover .icon-box {
    background: var(--accent);
}

.contact-info-card .icon-box i {
    font-size: 2rem;
    color: var(--accent);
    transition: all 0.3s ease;
}

.contact-info-card:hover .icon-box i {
    color: #fff;
}

/* Map Wrapper */
.map-wrapper {
    min-height: 500px;
    border: 4px solid #fff;
}

.map-wrapper iframe {
    filter: grayscale(20%) contrast(110%);
    transition: filter 0.3s ease;
}

.map-wrapper:hover iframe {
    filter: grayscale(0%) contrast(100%);
}

/* Form Inputs */
.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.25rem rgba(249, 115, 22, 0.15);
    background-color: #fff !important;
}