:root {
    /* COLOR STANDARDS */
    --color-primary: #0a58ca;
    --color-secondary: #6c757d;
    --color-success: #28a745;
    --color-error: #dc3545;
    --color-background: #f5f5dc;
    --color-text: #212529;
    --color-border: #dee2e6;
    --slate-700: #1e293b;

    /* FONT & SIZE */
    --font-family-base: "Inter", sans-serif;
    --font-size-base: 1rem;
    --font-size-h1: 2.5rem;
    --font-size-h2: 2rem;
    --font-size-h3: 1.75rem;
    --font-size-h4: 1.5rem;
    --font-size-h5: 1.25rem;
    --font-size-h6: 1rem;

    /* SPACING */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --font-size-h1: clamp(1.8rem, 5vw, 2.5rem);
    --font-size-h2: clamp(1.5rem, 4vw, 2rem);
}

/* GENERAL TYPOGRAPHY */
body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

h1 {
    font-size: var(--font-size-h1);
    font-weight: 700;
}
h2 {
    font-size: var(--font-size-h2);
    font-weight: 600;
}
h3 {
    font-size: var(--font-size-h3);
    font-weight: 600;
}
h4 {
    font-size: var(--font-size-h4);
    font-weight: 500;
}
h5 {
    font-size: var(--font-size-h5);
    font-weight: 500;
}
h6 {
    font-size: var(--font-size-h6);
    font-weight: 500;
}

p {
    margin-bottom: var(--spacing-sm);
}

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

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* BUTTONS */
.btn-primary-lms {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 0.25rem;
    transition: 0.2s;
}

.btn-primary-lms:hover {
    background-color: #0056b3;
}

.btn-tertiary-lms {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.5rem 1.25rem;
    border-radius: 0.25rem;
    transition: 0.2s;
}

.btn-tertiary-lms:hover {
    background-color: var(--color-primary);
    color: white;
}

/* NAVBAR */
.navbar-nav .nav-link {
    color: #222 !important; /* Very dark gray — contrast ratio ~18:1 on white */
    font-size: 15px;
    padding: 8px 12px;
    transition: 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--color-primary) !important; /* Contrast ratio ~8:1 */
    font-weight: 600;
}
.navbar-nav .nav-link:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}
.navbar-brand img {
    height: 40px; /* Or your preferred height */
    width: auto;
}
/* HERO SECTION */
.hero-section {
    position: relative;
    min-height: 450px;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(
        0,
        0,
        0,
        0.45
    ); /* darker overlay = stronger text contrast */
    z-index: 5;
}

/* Hero Images */
.hero-img {
    height: 450px;
    width: 100%;
    object-fit: cover;
    filter: brightness(0.85); /* optional but helps reduce visual competition */
}

/* Text Inside Hero */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
}

.hero-title,
.hero-subtitle {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.hero-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

/* Category Card */
.category-card {
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: 0.3s ease;
    cursor: pointer;
}

/* Hover State */
.category-card:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-6px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Category Title */
.category-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* CATEGORY BOX */
.hover-box {
    transition: 0.3s;
    cursor: pointer;
}

.hover-box:hover {
    background: var(--color-primary) !important;
    color: #fff !important;
    transform: translateY(-4px);
}

/* COURSE CARDS */
.card-img-top {
    height: 220px;
    object-fit: cover;
}

.hover-card {
    transition: 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

/* SECTION SPACING */
section {
    margin-bottom: 60px;
}

.footer {
    background-color: #0a0a0a !important; /* Deep black for luxury feel */
    border-top: 4px solid #007bff;
}

.footer h6 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s ease;
}

.footer-links li a:hover {
    color: #fff !important;
    padding-left: 8px; /* Slides right slightly on hover */
}

.social-links a {
    width: 38px;
    height: 38px;
    background: #1a1a1a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
    transition: 0.3s;
}

.social-links a:hover {
    background: #007bff;
    transform: translateY(-5px);
}

.extra-small {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.tracking-tight {
    letter-spacing: -0.5px;
}

.social-links a {
    color: #fff;
    background: #222;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.social-links a:hover {
    background: #007bff;
    color: #fff;
    transform: translateY(-3px);
}

.extra-small {
    font-size: 0.75rem;
}

.footer-logo img {
    filter: brightness(1.1); /* Makes the logo pop against dark background */
    object-fit: cover;
}
/* Hover effect for cards */
.hover-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Instructor link styling */
.instructor-link {
    font-weight: 600;
    color: var(--bs-primary);
    text-decoration: none;
}

.instructor-link:hover {
    text-decoration: underline;
}

/* View all link */
.view-all-link:hover {
    text-decoration: underline;
}

.testimonial-card {
    max-width: 500px;
    border-radius: 12px;
    background: #ffffff;
}

.testimonial-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.blockquote p {
    font-size: 1.1rem;
}
.carousel-item {
    transition: transform 0.8s ease-in-out;
}

        /* Premium LMS Card Styling */
        .course-card {
            border: none;
            border-radius: 12px;
            transition: all 0.3s ease;
            background: #fff;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        }

        .course-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
        }

        /* Standardized Image Area */
        .image-container {
            position: relative;
            height: 180px;
            /* Adjust: 160–200px */
            width: 100%;
            overflow: hidden;
        }

        .image-container::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(to bottom,
                    rgba(0, 0, 0, 0.15),
                    rgba(0, 0, 0, 0.35));
            z-index: 1;
        }

        .course-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            /* 👈 CRITICAL */
            position: relative;
            z-index: 0;
            transition: transform 0.5s ease;
        }

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




        /* Price Badge Overlay */
        .price-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            background: white;
            padding: 5px 12px;
            border-radius: 6px;
            font-weight: 800;
            color: #1a1a1a;
            font-size: 0.9rem;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
            z-index: 2;
        }

        /* Typography & Icons */
        .res-icon {
            width: 14px;
            height: 14px;
            color: #64748b;
            margin-right: 4px;
        }

        .course-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: #1e293b;
            height: 2.6rem;
            /* Ensures consistent title height */
            display: -webkit-box;

            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* Instructor Styling */
        .instructor-box {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px;
            background: #f8fafc;
            border-radius: 8px;
            margin-bottom: 15px;
        }

        .avatar-circle {
            width: 35px;
            height: 35px;
            background: #0061ff;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 0.8rem;
        }

         /* Registration Stylesheet */
              .reg-card {
            border: none;
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
            background: #fff;
            overflow: hidden;
        }

        .reg-header-slim {
            background: var(--slate-700);
            padding: 20px 40px;
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .form-step-title {
            text-uppercase;
            font-weight: 700;
            color: var(--color-primary);
            font-size: 0.8rem;
            letter-spacing: 0.5px;
        }

        .form-label-standard {
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            color: #64748b;
            margin-bottom: 6px;
            display: block;
        }

        /* Course Grid */
        .course-grid {
            display: grid;
            gap: 12px;
            max-height: 380px;
            overflow-y: auto;
            padding-right: 8px;
        }

        .course-item {
            position: relative;
            cursor: pointer;
        }

        .course-item input[type="checkbox"] {
            position: absolute;
            opacity: 0;
        }

        .course-card-inner {
            padding: 15px 20px;
            border: 1.5px solid var(--color-border);
            border-radius: 12px;
            transition: all 0.2s ease;
            background: #fff;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .course-item input:checked+.course-card-inner {
            border-color: var(--color-primary);
            background: #f0f7ff;
        }

        .check-mark {
            width: 20px;
            height: 20px;
            border: 2px solid #cbd5e1;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .course-item input:checked+.course-card-inner .check-mark {
            background: var(--color-primary);
            border-color: var(--color-primary);
            color: white;
        }

        /* Summary Panel */
        .summary-panel {
            background: #f8fafc;
            border-left: 1px solid var(--color-border);
            padding: 40px;
            height: 100%;
        }

        .total-display {
            font-size: 2rem;
            font-weight: 800;
            color: var(--slate-700);
        }

        .total-display .currency {
            font-size: 1rem;
            font-weight: 400;
        }


        .payment-instructions {
            background: #fff;
            border: 1px dashed #cbd5e1;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
        }

        .instr-text {
            font-size: 0.75rem;
            line-height: 1.6;
            color: #64748b;
            margin-bottom: 0;
        }

        .security-note {
            text-align: center;
            color: #94a3b8;
            margin-top: 15px;
            font-size: 0.7rem;
        }

/* ============================================================
   MEDIA QUERIES FOR RESPONSIVE DESIGN
   ============================================================ */
/* 1. TABLET & BELOW (Refining the Navbar Dropdown) */
@media (max-width: 991.98px) {
    .navbar-collapse {
        max-height: 80vh; /* Prevents menu from being longer than the screen */
        overflow-y: auto; /* Adds scroll if menu is too long */
        padding: 1.5rem;
        margin-top: 0.5rem;
        border: 1px solid rgba(0,0,0,0.05);
    }

    .nav-link {
        padding: 12px 0; /* Easier to tap with fingers */
        border-bottom: 1px solid #f8f9fa;
    }
}

/* 2. MOBILE PHONES (Specific Fixes for Small Displays) */
@media (max-width: 767.98px) {
    /* Safe Spacing */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Hero adjustments - prevent text from touching edges */
    .hero-content {
        width: 95%;
        padding: 0 15px;
    }

    /* Stack buttons but keep them aligned */
    .navbar-nav + .d-flex {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }

    .btn-primary-lms, .btn-tertiary-lms {
        width: 100%;
        text-align: center;
        padding: 12px; /* Bigger touch target */
    }
}

/* 3. EXTRA SMALL / TINY SCREENS (320px to 480px) */
@media (max-width: 480px) {
    :root {
        --font-size-base: 0.95rem; /* Slight reduction for readability */
    }

    /* Hero Text should be very readable here */
    .hero-title {
        font-size: 1.6rem !important;
        line-height: 1.2;
    }

    /* Grid Adjustment: Ensure cards don't look weirdly narrow */
    .card-body {
        padding: 15px !important;
    }

    /* Teacher section inside course card */
    .instructor-avatar {
        width: 32px !important;
        height: 32px !important;
        font-size: 12px;
    }
}

/* 4. THE "IPHONE SE" FIX (Widths under 360px) */
@media (max-width: 359px) {
    .navbar-brand span {
        font-size: 1rem !important; /* Prevents logo text from wrapping */
    }

    .section-title {
        font-size: 1.3rem;
    }

    /* Price tag in your course cards - make it smaller so it doesn't overlap */
    .fw-extrabold.text-dark {
        font-size: 0.95rem !important;
    }
}
