@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@400;600&display=swap');

:root {
    /* SLIIT Inspired Palette */
    --primary-color: #004170;
    /* deep SLIIT blue */
    --secondary-color: #F37021;
    /* vibrant orange */
    --accent-color: #006ebc;

    /* Text Colors */
    --text-dark: #1a1a1a;
    --text-light: #595959;
    --white: #ffffff;
    --bg-light: #f4f7f9;

    /* Effects */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.12);
    --transition-base: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
}

/* Header & Navigation */
.header-top {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
}

.navbar {
    background: var(--white) !important;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition-base);
}

.navbar.sticky-top {
    border-bottom: 3px solid var(--secondary-color);
}

.nav-link {
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color) !important;
    margin: 0 15px;
    font-size: 0.95rem;
    transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color) !important;
}

/* SLIIT Style Buttons */
.btn-primary-sliit {
    background: var(--secondary-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    border: 2px solid var(--secondary-color);
    transition: var(--transition-base);
}

.btn-primary-sliit:hover {
    background: transparent;
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline-sliit {
    background: transparent;
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    border: 2px solid var(--primary-color);
    transition: var(--transition-base);
}

.btn-outline-sliit:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 160px 0;
    background: linear-gradient(rgba(0, 65, 112, 0.85), rgba(0, 65, 112, 0.85)), url('https://images.unsplash.com/photo-1541339907198-e08759df9a73?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    color: var(--white);
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--white);
    margin-bottom: 20px;
}

/* Feature Cards */
.course-card {
    background: var(--white);
    border: none;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    padding: 30px;
    transition: var(--transition-base);
    text-align: center;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

/* Section Header */
.section-title {
    position: relative;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
}

/* Footer Styling */
footer {
    background: #0d0d0d;
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-link {
    color: #b3b3b3;
    text-decoration: none;
    transition: var(--transition-base);
    display: block;
    margin-bottom: 10px;
}

.footer-link:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* ================================================
   MOBILE RESPONSIVE STYLES
   ================================================ */

/* --- Navbar Mobile --- */
@media (max-width: 991.98px) {
    .navbar {
        padding: 10px 0;
    }

    .navbar-collapse {
        background: var(--white);
        padding: 15px 0;
        border-top: 2px solid var(--secondary-color);
        margin-top: 10px;
    }

    .nav-link {
        margin: 4px 0;
        padding: 10px 20px !important;
        border-radius: 4px;
    }

    .nav-link:hover {
        background: rgba(0, 65, 112, 0.06);
    }

    .navbar-nav .btn-primary-sliit {
        margin: 10px 20px;
        text-align: center;
    }
}

/* --- Hero Section Mobile --- */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 90px 0 110px;
        clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }

    .hero-section .lead {
        font-size: 1rem !important;
    }

    .hero-section .btn-lg {
        padding: 10px 20px;
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .hero-section .btn-lg+.btn-lg {
        margin-left: 0 !important;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 70px 0 90px;
    }

    .hero-title {
        font-size: 1.65rem;
    }
}

/* --- Quick Links Mobile (remove border-end on small) --- */
@media (max-width: 767.98px) {
    .border-end {
        border-right: 0 !important;
        border-bottom: 1px solid #dee2e6 !important;
        padding-bottom: 15px;
        margin-bottom: 5px;
    }
}

/* --- Section / Page Header --- */
@media (max-width: 767.98px) {
    section.py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.65rem !important;
    }

    .display-6 {
        font-size: 1.4rem !important;
    }

    .lead {
        font-size: 1rem !important;
    }
}

/* --- Director Portrait (index & courses) --- */
@media (max-width: 767.98px) {

    /* index.html director */
    [style*="width: 280px"] {
        width: 200px !important;
        height: 250px !important;
    }

    /* courses.html director */
    [style*="width: 260px"] {
        width: 200px !important;
        height: 250px !important;
    }
}

/* --- Course Cards (image top + text) --- */
@media (max-width: 767.98px) {
    .course-card:hover {
        transform: none;
    }
}

/* --- Section images with fixed heights --- */
@media (max-width: 767.98px) {

    img[style*="height: 380px"],
    img[style*="height: 400px"],
    img[style*="height: 260px"] {
        height: 220px !important;
    }

    /* Course section school images */
    div[style*="height: 260px"] {
        height: 200px !important;
    }
}

/* --- Director Message Section (courses.html) --- */
@media (max-width: 991.98px) {

    .row.align-items-center.g-5>[class*="col-lg-4"],
    .row.align-items-center.g-5>[class*="col-lg-8"] {
        text-align: center;
    }

    .row.align-items-center.g-5 [style*="border-left"] {
        border-left: 0 !important;
        border-top: 4px solid var(--secondary-color);
        padding-left: 0 !important;
        padding-top: 1rem;
    }
}

/* --- Category Tags (courses.html) --- */
@media (max-width: 575.98px) {
    .category-tag {
        font-size: 0.7rem !important;
    }

    .course-detail-card {
        padding: 1.5rem !important;
        padding-top: 2.5rem !important;
    }

    .module-item {
        font-size: 0.78rem;
    }
}

/* --- Contact Form --- */
@media (max-width: 767.98px) {
    .bg-white.p-5 {
        padding: 1.5rem !important;
    }
}

/* --- Services Section --- */
@media (max-width: 991.98px) {
    .flex-row-reverse {
        flex-direction: column !important;
    }
}

/* --- Footer Mobile --- */
@media (max-width: 991.98px) {
    footer.footer {
        padding-top: 2.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    footer .col-lg-3 {
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        padding-bottom: 1.2rem;
    }

    footer .col-lg-3:last-child {
        border-bottom: none;
    }
}

/* --- About Page Director Card (p-5 padding) --- */
@media (max-width: 767.98px) {
    .col-lg-10.bg-white.p-5 {
        padding: 1.5rem !important;
    }

    .p-5.rounded-4 {
        padding: 1.25rem !important;
    }
}

/* --- Breadcrumb --- */
@media (max-width: 575.98px) {
    .breadcrumb-item+.breadcrumb-item::before {
        padding: 0 4px;
    }
}

/* --- General utility for mobile centering --- */
@media (max-width: 767.98px) {
    .text-lg-end {
        text-align: center !important;
    }

    .ps-lg-5 {
        padding-left: 0 !important;
    }
}

/* --- Quick Links responsive border utilities --- */
@media (min-width: 768px) {
    .border-end-md {
        border-right: 1px solid #dee2e6 !important;
    }

    .border-md-bottom-0 {
        border-bottom: 0 !important;
    }
}

@media (max-width: 767.98px) {
    .border-bottom:last-child {
        border-bottom: 0 !important;
    }
}

/* --- btn-premium (used in index & contact) --- */
.btn-premium {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    border: 2px solid var(--primary-color);
    transition: var(--transition-base);
    display: inline-block;
}

.btn-premium:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* --- Ensure images in course section are always full-width on mobile --- */
@media (max-width: 575.98px) {

    .col-lg-5 img,
    .col-lg-4 img {
        height: 200px !important;
    }
}