﻿/* ================= GLOBAL ================= */
body {
    font-family: 'Poppins', sans-serif;
    color: #212529;
    line-height: 1.6;
}

/* =========================================================
   GLOBAL VARIABLES (OPTIONAL – EASY COLOR CONTROL)
========================================================= */
:root {
    --primary: #2f2f7e;
    --primary-dark: hsl(237 47% 24%);
    --primary-light: hsl(237 47% 34%);
    --accent: #ffc107;
    --bg-light: #f8f9fa;
}

/* =====================================================
   LOADING CIRCLE INSIDE IMAGE
===================================================== */

#pageLoader {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.85);
    z-index: 9999;
    display: none;
}

/* Center image */
.image-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
}

/* Logo image */
.loader-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ================================
   DOT LOADER – MORE DOTS + SLOW SPEED
================================ */

.inner-circle-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: rotateDots 3.2s linear infinite; /* ⬅ slower */
}

    /* Dots using box-shadow (12 dots) */
    .inner-circle-loader::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 10px;
        height: 10px;
        background: #2c2f8c;
        border-radius: 50%;
        transform: translate(-50%, -50%);
        box-shadow: 0 -100px 0 0 #2c2f8c, 50px -86px 0 0 rgba(44,47,140,0.9), 86px -50px 0 0 rgba(44,47,140,0.8), 100px 0 0 0 rgba(44,47,140,0.7), 86px 50px 0 0 rgba(44,47,140,0.6), 50px 86px 0 0 rgba(44,47,140,0.5), 0 100px 0 0 rgba(44,47,140,0.4), -50px 86px 0 0 rgba(44,47,140,0.3), -86px 50px 0 0 rgba(44,47,140,0.25), -100px 0 0 rgba(44,47,140,0.2), -86px -50px 0 0 rgba(44,47,140,0.15), -50px -86px 0 0 rgba(44,47,140,0.1);
    }

/* Rotation */
@keyframes rotateDots {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@media (max-width: 575px) {
    .image-loader {
        width: 80px;
        height: 80px;
    }

    .inner-circle-loader {
        width: 120px;
        height: 120px;
        border-width: 4px;
    }

        .inner-circle-loader::before {
            box-shadow: 0 -45px 0 0 #2c2f8c, 23px -40px 0 0 rgba(44,47,140,0.9), 40px -23px 0 0 rgba(44,47,140,0.8), 45px 0 0 rgba(44,47,140,0.7), 40px 23px 0 0 rgba(44,47,140,0.6), 23px 40px 0 0 rgba(44,47,140,0.5), 0 45px 0 0 rgba(44,47,140,0.4), -23px 40px 0 0 rgba(44,47,140,0.3), -40px 23px 0 0 rgba(44,47,140,0.25), -45px 0 0 rgba(44,47,140,0.2), -40px -23px 0 0 rgba(44,47,140,0.15), -23px -40px 0 0 rgba(44,47,140,0.1);
        }
}

/* =========================================================
   ENQUIRY POPUP - CATEGORY DROPDOWN STYLES
========================================================= */

/* ================= FLOATING ENQUIRY BUTTON ================= */
.floating-enquiry-btn {
    position: fixed;
    bottom: 140px;
    right: 34px;
    z-index: 1050;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #facc15, #f59e0b)!important;
    color: #000 !important;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(44, 47, 140, 0.4);
    transition: all 0.3s ease;
}

    .floating-enquiry-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 15px 35px rgba(44, 47, 140, 0.6);
    }

/* ================= MINI ENQUIRY POPUP ================= */
.enquiry-popup {
    position: fixed;
    bottom: 220px;
    right: 24px;
    width: 320px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    display: none;
    z-index: 1060;
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.enquiry-header {
    background: linear-gradient(135deg, #2c2f8c, #1f2266) !important;
    padding: 14px 18px;
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px 16px 0 0;
}

.close-btn {
    border: none;
    background: none;
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    line-height: 1;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .close-btn:hover {
        opacity: 1;
    }

.enquiry-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

    /* Update the existing enquiry body input styles to include select */
    .enquiry-body input,
    .enquiry-body textarea,
    .enquiry-body select {
        width: 100%;
        padding: 12px 14px;
        margin-bottom: 12px;
        border-radius: 10px;
        border: 1px solid #d1d5db;
        font-size: 14px;
        font-family: 'Poppins', sans-serif;
        transition: all 0.3s ease;
        background-color: #ffffff;
    }

    /* Category dropdown specific styles */
    .enquiry-body select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c2f8c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 14px center;
        background-size: 16px;
        padding-right: 40px;
        cursor: pointer;
        height: 48px;
        color: #2c2f8c;
        font-weight: 500;
    }

        /* Hover effect for dropdown */
        .enquiry-body select:hover {
            border-color: #2c2f8c;
            box-shadow: 0 0 0 3px rgba(44, 47, 140, 0.1);
        }

        /* Focus effect for dropdown */
        .enquiry-body select:focus {
            outline: none;
            border-color: #2c2f8c;
            box-shadow: 0 0 0 3px rgba(44, 47, 140, 0.2);
        }

        /* Dropdown options styling */
        .enquiry-body select option {
            padding: 12px;
            font-size: 14px;
            color: #2c2f8c;
            background-color: #ffffff;
        }

            .enquiry-body select option:checked {
                background-color: #f1f3f5;
                color: #2c2f8c;
                font-weight: 600;
            }

            .enquiry-body select option:hover {
                background-color: #f8f9fa;
            }

            /* First option (placeholder) styling */
            .enquiry-body select option[value=""] {
                color: #9ca3af;
            }

        /* Validation styling */
        .enquiry-body select:required:invalid {
            color: #9ca3af;
        }

    /* Make sure the dropdown aligns with other form elements */
    .enquiry-body .form-control:focus {
        border-color: #2c2f8c;
        box-shadow: 0 0 0 3px rgba(44, 47, 140, 0.2);
    }

    /* Scrollbar styling for enquiry body */
    .enquiry-body::-webkit-scrollbar {
        width: 6px;
    }

    .enquiry-body::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .enquiry-body::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 3px;
    }

        .enquiry-body::-webkit-scrollbar-thumb:hover {
            background: #a1a1a1;
        }

/* ================= ENQUIRY SUBMIT BUTTON ================= */
.enquiry-submit {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #2c2f8c, #1f2266) !important;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.3px;
}

    .enquiry-submit:hover {
        background: linear-gradient(135deg, #1f2266, #2c2f8c) !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(44, 47, 140, 0.3);
    }

    .enquiry-submit:active {
        transform: translateY(0);
    }

    .enquiry-submit:disabled {
        background: #9ca3af;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

/* ================= ENQUIRY STATUS MESSAGE ================= */
.enquiry-status {
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

    /* Success message */
    .enquiry-status.success {
        background-color: rgba(34, 197, 94, 0.1);
        color: #16a34a;
        border: 1px solid rgba(34, 197, 94, 0.2);
    }

    /* Error message */
    .enquiry-status.error {
        background-color: rgba(239, 68, 68, 0.1);
        color: #dc2626;
        border: 1px solid rgba(239, 68, 68, 0.2);
    }

    /* Loading message */
    .enquiry-status.loading {
        background-color: rgba(59, 130, 246, 0.1);
        color: #2563eb;
        border: 1px solid rgba(59, 130, 246, 0.2);
    }

/* ================= FORM VALIDATION STYLES ================= */
/* Invalid field styling */
.enquiry-body input:invalid,
.enquiry-body select:invalid,
.enquiry-body textarea:invalid {
    border-color: #ef4444;
}

    .enquiry-body input:invalid:focus,
    .enquiry-body select:invalid:focus,
    .enquiry-body textarea:invalid:focus {
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
    }

/* Valid field styling */
.enquiry-body input:valid,
.enquiry-body select:valid,
.enquiry-body textarea:valid {
    border-color: grey;
}

/* =========================================================
   RESPONSIVE UPDATES FOR ENQUIRY POPUP
========================================================= */
@media (max-width: 768px) {
    .floating-enquiry-btn {
        width: 56px;
        height: 56px;
        font-size: 12px;
        bottom: 100px;
        right: 20px;
    }

    .enquiry-popup {
        width: 90%;
        max-width: 320px;
        bottom: 180px;
        right: 5%;
        left: 5%;
    }

    .enquiry-body {
        max-height: 350px;
    }
}

@media (max-width: 576px) {
    .floating-enquiry-btn {
        width: 52px;
        height: 52px;
        font-size: 11px;
        bottom: 90px;
        right: 16px;
    }

    .enquiry-popup {
        bottom: 160px;
    }

    .enquiry-body {
        padding: 16px;
    }
}

/* ==============================
   HERO HEADING
============================== */
.display-4 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: #ffffff;
}

/* ==============================
   HIGHLIGHT TEXT
============================== */
/* Rotating Highlight Text */
.highlight-text {
    display: inline-block;
    margin-left: 8px;
    color: #ffc107;
    font-weight: 800;
    min-width: 230px; /* prevents layout jump */
}

#rotateText {
    display: inline-block;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* =========================================================
   HERO SECTION
========================================================= */
.jumbotron {
    position: relative;
    padding: 9rem 1rem;
    background: linear-gradient( 135deg, var(--primary-light) 0%, var(--primary-dark) 100% );
    overflow: hidden;
}

    .jumbotron h1 {
        font-weight: 700;
        line-height: 1.2;
    }

    .jumbotron .badge {
        font-size: 1rem;
        padding: 8px 16px;
        border-radius: 8px;
    }

.highlight-text {
    color: var(--accent);
}

/* =====================================================
   HERO PHONE NUMBERS – FIXED & STABLE
===================================================== */
.hero-phone-overlay {
    position: absolute;
    right: 82px; /* keep your spacing */
    display: flex;
    gap: 12px;
    z-index: 20;
    pointer-events: auto;
    top: 120px;
}

    /* Phone pill */
    .hero-phone-overlay span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: rgba(0,0,0,0.7);
        color: #ffffff;
        font-size: 14px;
        font-weight: 600;
        padding: 8px 14px;
        border-radius: 999px;
        white-space: nowrap;
        line-height: 1;
    }

/* Tablet */
@media (max-width: 991px) {
    .hero-phone-overlay {
        top: 20px;
        right: 20px;
        gap: 8px;
    }
}

/* =====================================================
   DISABLE HERO PHONE NUMBERS ON MOBILE
===================================================== */
@media (max-width: 575px) {
    .hero-phone-overlay {
        display: none !important;
    }
}

/* =========================================================
   HERO CAROUSEL – FIXED SIZE (NO JUMP)
========================================================= */

.hero-carousel {
    position: relative;
    max-width: 560px;
    aspect-ratio: 16 / 9; /* 🔥 FIRST IMAGE RATIO */
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}

    /* Fill the ratio box */
    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item {
        width: 100%;
        height: 100%;
    }

    /* Images always fit inside FIRST image size */
    .hero-carousel img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        background: #000; /* optional */
        border-radius: 28px;
    }

    /* Overlay */
    .hero-carousel::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( to top, rgba(0,0,0,0.25), rgba(0,0,0,0) );
        z-index: 2;
        pointer-events: none;
    }

    /* Controls above overlay */
    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next,
    .hero-carousel .carousel-indicators {
        z-index: 3;
    }

/* Mobile */
@media (max-width: 575px) {
    .hero-carousel {
        max-width: 100%;
    }

        .hero-carousel .carousel-control-prev,
        .hero-carousel .carousel-control-next {
            display: none;
        }

    .hero-carousel {
        margin-top: 24px; /* 👈 adjust: 16px / 24px / 32px */
    }
}

/* Tablet */
@media (max-width: 991px) {
    .hero-viewport {
        height: 300px;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .hero-carousel {
        max-width: 100%;
    }

    .hero-viewport {
        height: 240px;
    }

    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        display: none;
    }
}

/* =====================================================
   HERO WAVE (DESKTOP/TABLET)
===================================================== */
.hero-wave-svg {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 140px;
    z-index: 1;
}

/* =====================================================
   ABSTRACT NETWORK BACKGROUND (GLOBAL)
===================================================== */
.abstract-network-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

    .abstract-network-bg svg {
        width: 100%;
        height: 100%;
        transform-origin: center;
        animation: networkFloat 14s ease-in-out infinite alternate;
    }

/* =====================================================
   NETWORK MOTION
===================================================== */
@keyframes networkFloat {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.85;
    }

    100% {
        transform: translate(-20px, -30px) scale(1.03);
        opacity: 1;
    }
}

/* Stronger motion on hover (desktop only) */
@media (hover: hover) and (pointer: fine) {
    .abstract-network-section:hover .abstract-network-bg svg,
    .jumbotron:hover .abstract-network-bg svg {
        animation-duration: 4s;
        transform: translateY(-40px);
    }
}

/* =====================================================
   CONTENT ABOVE BACKGROUND
===================================================== */
.jumbotron,
.hero-wave,
.abstract-network-section .container {
    position: relative;
    z-index: 1;
}

/* =========================================================
   VALUES / OFFERINGS SECTION
========================================================= */
.values-section {
    background: var(--bg-light);
    padding: 50px 0;
    position: relative;
}

.values-container {
    max-width: 1200px;
    margin: auto;
    position: relative;
    z-index: 1;
}

.value-title-oco {
    font-size: 22px;
    font-weight: 700;
    color: #2c2f8c;
    margin-bottom: 15px;
}

.value-card {
    background: #fff;
    border-radius: 22px;
    padding: 30px 22px;
    border: 1px solid #e3e8f3;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

    .value-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 24px 60px rgba(0,0,0,0.1);
    }

.value-desc {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}

/* =========================================================
   FEATURED COURSES
========================================================= */
.featured-section {
    background: var(--bg-light);
    padding: 80px 0;
    position: relative;
}

.featured-title {
    font-size: 38px;
    font-weight: 800;
    color: #2c2f8c;
}

.featured-subtext {
    font-size: 16px;
    color: #555;
    margin-bottom: 40px;
}

.featured-course-card {
    border-radius: 16px;
    border: 1px solid #e3e8f3;
    background: #fff;
    padding: 22px 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .featured-course-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 45px rgba(0,0,0,0.12);
    }

.featured-course-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

/* =========================================================
   MOBILE OPTIMIZATION (KEEP NETWORK, SOFTER)
========================================================= */
@media (max-width: 768px) {
    .jumbotron {
        padding: 6rem 1rem 4.5rem;
        text-align: center;
    }

    .hero-wave-svg {
        display: none;
    }

    .abstract-network-bg svg {
        opacity: 0.6;
        animation-duration: 18s;
    }

    .featured-title {
        font-size: 30px;
    }

    .values-section,
    .featured-section {
        padding: 60px 0;
    }
}

/* =========================================================
   PROJECT DEVELOPMENT DOMAINS
========================================================= */
.project-card {
    background: #ffffff;
    border: 1px solid #e3e8f3;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.35s ease;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

    .project-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 30px 70px rgba(0, 0, 0, 0.12);
    }

.project-img {
    height: 190px;
    width: 100%;
    object-fit: cover;
}

.project-card .card-body {
    padding: 22px 20px;
}

.project-card h5 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.project-card p {
    font-size: 15px;
    color: #555;
}

/* =========================================================
   CLIENTS SECTION
========================================================= */
.clients {
    background: #ffffff;
    padding: 80px 20px;
}

.client-logo {
    max-height: 70px;
    max-width: 160px;
    padding: 5px;
    border-radius: 18px;
    border: 1px solid #eef1f7;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
    transition: all 0.35s ease;
}

    .client-logo:hover {
        transform: translateY(-6px) scale(1.05);
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
    }

/* =========================================================
   SERVICES SECTION
========================================================= */

.service-card {
    border-radius: 16px;
    padding: 40px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, color 0.35s ease;
}

/* DEFAULT (WHITE) */
.service-card-white {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    color: #212529;
}

.values-title {
    color: #2c2f8c !important;
}

/* ---------- HOVER EFFECT ---------- */
.service-card:hover {
    transform: translateY(-10px);
    background: linear-gradient( 135deg, var(--primary-light) 0%, var(--primary-dark) 100% );
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    color: #ffffff;
}

    /* TEXT COLOR CHANGE ON HOVER */
    .service-card:hover .service-title,
    .service-card:hover .service-desc {
        color: #ffffff;
    }

    /* ICON ANIMATION */
    .service-card:hover .service-icon {
        transform: scale(1.15);
        transition: transform 0.35s ease;
    }

    /* BUTTON ON HOVER */
    .service-card:hover .service-btn {
        background: #ffc107;
        color: #000;
        border-color: #ffc107;
    }

/* BODY */
.service-card-body {
    text-align: center;
}

/* ICON */
.service-icon {
    font-size: 42px;
    margin-bottom: 20px;
    transition: transform 0.35s ease;
}

/* TITLE */
.service-title {
    font-size: 28px;
    font-weight: 750;
    margin-bottom: 15px;
    color: #2c2f8c;
}

/* DESCRIPTION */
.service-desc {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #555;
}

/* BUTTON */
.service-btn {
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 30px;
    transition: all 0.35s ease;
}

/* =========================================================
   MOBILE RESPONSIVE (GLOBAL)
========================================================= */
@media (max-width: 768px) {
    .jumbotron {
        padding: 5rem 1rem;
        text-align: center;
    }

    .hero-image-wrapper {
        margin-top: 2.5rem;
        max-width: 100%;
    }

    .values-title,
    .featured-title {
        font-size: 34px;
    }

    .project-card .card-body,
    .ui-card-content {
        text-align: center;
    }

    .featured-course-title {
        font-size: 16px;
    }

    .client-logo {
        max-height: 60px;
    }
}

/* =====================================================
   NAVBAR BASE (ALL DEVICES)
===================================================== */
.custom-navbar {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 14px 0;
    z-index: 1030;
}

/* Logo */
.navbar-logo {
    width: 68px;
    height: 58px;
    object-fit: contain;
}

/* Brand text */
.text-primary-gradient {
    font-size: 28px;
    font-weight: 800;
    background: #2c2f8c;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =====================================================
   DESKTOP NAVBAR (≥ 992px)
===================================================== */
@media (min-width: 992px) {
    .navbar-collapse {
        align-items: center;
        margin-left: 85px; /* ✅ space between logo & menu */
    }

    .nav-container-custom {
        margin-left: 85px;
    }

    .navbar-domain-tabs {
        display: inline-flex;
        align-items: center;
        padding: 6px 12px;
        border-radius: 999px;
        white-space: nowrap;
    }

        .navbar-domain-tabs .nav {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: nowrap;
            margin: 0;
        }

        .navbar-domain-tabs .nav-link {
            padding: 6px 14px;
            border-radius: 999px;
            font-weight: 600;
            color: #1f2a7c;
            background: transparent;
            transition: all 0.25s ease;
            line-height: 1.2;
        }

            .navbar-domain-tabs .nav-link:hover {
                color: #1f2a7c;
            }

            .navbar-domain-tabs .nav-link.active {
                background: #2f2f8f;
                color: #ffffff;
                box-shadow: 0 3px 8px rgba(47,47,143,0.25);
            }
}

/* =====================================================
   TABLET + MOBILE (≤ 991px)
===================================================== */
@media (max-width: 991px) {
    .custom-navbar {
        padding: 12px 0;
    }

        .custom-navbar .container {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

    /* Brand */
    .navbar-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        max-width: calc(100% - 56px);
        white-space: nowrap;
        overflow: hidden;
    }

    .navbar-logo {
        width: 46px;
        height: 40px;
        flex-shrink: 0;
    }

    .text-primary-gradient {
        font-size: 22px;
        line-height: 1.2;
    }

    /* Hamburger */
    .navbar-toggler {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        padding: 6px;
        margin-left: auto;
        border: none;
        background: transparent;
        box-shadow: none;
        z-index: 1050;
    }

        .navbar-toggler:focus {
            outline: none;
            box-shadow: none;
        }

    /* Dropdown menu */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-top: 8px;
        background: #ffffff;
        border-radius: 16px;
        padding: 12px 0;
        box-shadow: 0 12px 30px rgba(0,0,0,0.12);
        animation: mobileMenuDrop 0.25s ease-out;
        transform-origin: top;
        z-index: 1029;
    }

    /* Vertical menu */
    .navbar-domain-tabs {
        width: 100%;
        padding: 0;
        background: none;
    }

        .navbar-domain-tabs .nav {
            flex-direction: column;
            gap: 6px;
            padding: 0;
        }

        .navbar-domain-tabs .nav-link {
            width: 100%;
            padding: 14px 20px;
            font-size: 16px;
            font-weight: 600;
            color: #1f2a7c;
            border-radius: 12px;
            text-align: left;
        }

            .navbar-domain-tabs .nav-link:hover {
                background: #f1f3f5;
            }

            .navbar-domain-tabs .nav-link.active {
                background: linear-gradient( 135deg, hsl(237 47% 34%), hsl(237 47% 24%) );
                color: #ffffff;
            }
}

/* =====================================================
   MOBILE MENU ANIMATION
===================================================== */
@keyframes mobileMenuDrop {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   SMALL MOBILE FIX (≤ 400px) — iPhone SE, Android small
===================================================== */
@media (max-width: 400px) {
    /* Navbar row must not overflow */
    .custom-navbar .nav-container {
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Brand must shrink properly */
    .navbar-brand {
        max-width: calc(100% - 52px); /* reserve space for hamburger */
        display: flex;
        align-items: center;
        gap: 6px;
        overflow: hidden;
    }

    /* Logo smaller */
    .navbar-logo {
        width: 38px;
        height: 34px;
        flex-shrink: 0;
    }

    /* Main brand text */
    .text-primary-gradient {
        font-size: 18px;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 🔥 HIDE subtitle EARLY (this is the key fix) */
    .navbar-brand span.text-muted {
        display: none !important;
    }

    /* Ensure hamburger stays visible */
    .navbar-toggler {
        width: 42px;
        height: 42px;
        margin-left: auto;
        flex-shrink: 0;
        z-index: 1050;
    }
}

/* =====================================================
   TABLET FIX (768px – 991px)
===================================================== */
@media (min-width: 768px) and (max-width: 991px) {
    .navbar-brand {
        max-width: none;
        overflow: visible;
    }

    .navbar-logo {
        width: 48px;
        height: 44px;
    }

    .text-primary-gradient {
        font-size: 22px;
    }

    .navbar-brand span.text-muted {
        display: block;
        font-size: 12px;
    }
}

/* =====================================================
   FORCE FULL-WIDTH NAVBAR (MOBILE FIX)
===================================================== */
@media (max-width: 575px) {
    .custom-navbar {
        width: 100vw;
        left: 0;
        right: 0;
    }

        .custom-navbar .container {
            max-width: 100%;
            padding-left: 12px;
            padding-right: 12px;
        }
}

/* =====================================================
   EXACT 320px FIX (Galaxy S9+, very small Android)
===================================================== */
@media (max-width: 320px) {
    /* Tighten navbar padding */
    .custom-navbar .nav-container {
        padding-left: 8px;
        padding-right: 8px;
    }

    /* Brand must strictly fit */
    .navbar-brand {
        max-width: calc(100% - 48px); /* exact hamburger space */
        display: flex;
        align-items: center;
        gap: 6px;
        overflow: hidden;
    }

    /* Smaller logo */
    .navbar-logo {
        width: 34px;
        height: 30px;
        flex-shrink: 0;
    }

    /* Main brand text tighter */
    .text-primary-gradient {
        font-size: 15px; /* 🔥 key fix */
        line-height: 1.05;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Hide subtitle ONLY at 320px */
    .navbar-brand span.text-muted {
        display: none !important;
    }

    /* Lock hamburger position */
    .navbar-toggler {
        width: 40px;
        height: 40px;
        margin-left: auto;
        flex-shrink: 0;
        z-index: 1050;
    }
}

/* =====================================================
   FOOTER (ALL DEVICES)
===================================================== */
.footer {
    background: linear-gradient( 135deg, hsl(237 47% 34%), hsl(237 47% 24%) );
    color: #ffffff;
}

/* FOOTER LOGO */
.footer-logo-box {
    width: 48px;
    height: 48px;
    background: #ffffff;
    border-radius: 8px;
    padding: 4px;
}

.footer-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* FOOTER LINKS */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 8px;
    }

    .footer-links a {
        color: #ffffff;
        text-decoration: none;
        opacity: 0.9;
    }

        .footer-links a:hover {
            opacity: 1;
            text-decoration: underline;
        }

/* SOCIAL ICONS */
.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f7c600;
    color: #1b1f5a;
    border-radius: 50%;
    margin-right: 8px;
    font-size: 16px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

    .footer-socials a:hover {
        transform: translateY(-3px);
        opacity: 0.9;
    }

/* =====================================================
   FOOTER MOBILE
===================================================== */
@media (max-width: 768px) {
    .footer {
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }
}

/* =====================================================
   COURSES HERO
===================================================== */
.courses-hero {
    background: linear-gradient(135deg, hsl(237 47% 34%), hsl(237 47% 24%));
    color: #ffffff;
    padding: 120px 20px 90px;
    text-align: center;
}

.courses-hero-title {
    font-size: 46px;
    font-weight: 800;
    margin-bottom: 12px;
}

.courses-hero-sub {
    font-size: 18px;
    opacity: 0.9;
    max-width: 760px;
    margin: 0 auto;
}

/* =====================================================
   FILTERS SECTION
===================================================== */
.filters-section {
    background: #ffffff;
    padding: 40px 0 30px;
}

/* Grid wrapper (mobile/tablet default = stacked) */
.filters-grid {
    display: block;
}

.filter-label {
    font-size: 15px;
    font-weight: 600;
    color: #2f3a8f;
    margin-bottom: 6px;
}

/* =====================================================
   SEARCH INPUT
===================================================== */
.filter-input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 18px;
    border: 1px solid #e2e6f0;
    font-size: 15px;
    background: #ffffff;
}

    .filter-input::placeholder {
        color: #9aa4bf;
    }

/* =====================================================
   DOMAIN TABS (FINAL)
===================================================== */
.domain-tabs {
    display: flex;
    gap: 12px;
    background: #f1f3f5;
    padding: 8px 14px 14px; /* bottom padding = iOS scrollbar safety */
    border-radius: 999px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

    .domain-tabs::-webkit-scrollbar {
        display: none;
    }

    .domain-tabs .tab {
        all: unset;
        cursor: pointer;
        padding: 10px 18px;
        border-radius: 999px;
        font-size: 14px;
        font-weight: 600;
        color: #64748b;
        white-space: nowrap;
        transition: all 0.25s ease;
        flex-shrink: 0;
    }

        .domain-tabs .tab:not(.active):hover {
            background: rgba(255,255,255,0.6);
        }

        .domain-tabs .tab.active {
            background: #ffffff;
            color: #2f3a8f;
            box-shadow: 0 6px 14px rgba(0,0,0,0.12);
        }

/* =====================================================
   LEVEL FILTER
===================================================== */
.filter-select {
    width: 100%;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid #e2e6f0;
    font-size: 15px;
    color: #2f3a8f;
    background: #ffffff;
}

/* =====================================================
   META TEXT
===================================================== */
.courses-meta {
    font-size: 14px;
    color: #64748b;
    white-space: nowrap;
}

/* =====================================================
   COURSES GRID
===================================================== */
.courses-section {
    padding: 60px 0;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* =====================================================
   COURSE CARD
===================================================== */
.course-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e6e9f2;
    transition: all 0.3s ease;
}

    .course-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 45px rgba(0,0,0,0.15);
    }

.course-card-header {
    height: 200px;
    background: linear-gradient(135deg, rgba(60,72,153,0.95), rgba(44,55,130,0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.course-card-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    text-align: center;
}

.course-card-body {
    padding: 24px;
}

.course-badge {
    background: #2f3a8f;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
    display: inline-block;
}

.course-card-desc {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 18px;
    line-height: 1.6;
}

.course-meta {
    display: flex;
    gap: 22px;
    font-size: 14px;
    color: #6b7280;
}

.course-card-footer {
    padding: 0 24px 24px;
}

.btn-course {
    width: 100%;
    background: #2f3a8f;
    color: #ffffff;
    padding: 14px 18px;
    border-radius: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

/* =====================================================
   DESKTOP (≥ 993px) ✅ FIXED
===================================================== */
@media (min-width: 993px) {
    .filters-grid {
        display: grid;
        grid-template-columns: 1.6fr /* Search */
        2.6fr /* Domain */
        1.2fr /* Level */
        auto; /* Meta */
        gap: 28px;
        align-items: end;
    }

    .domain-tabs {
        overflow-x: hidden;
        padding-bottom: 8px;
    }

    .courses-meta {
        align-self: center;
        margin-bottom: 6px;
    }
}

/* =====================================================
   TABLET (≤ 992px)
===================================================== */
@media (max-width: 992px) {
    .courses-hero {
        padding: 100px 20px 70px;
    }

    .courses-hero-title {
        font-size: 38px;
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =====================================================
   MOBILE (≤ 768px)
===================================================== */
@media (max-width: 768px) {
    .courses-hero {
        padding: 90px 16px 60px;
    }

    .courses-hero-title {
        font-size: 30px;
    }

    .courses-hero-sub {
        font-size: 15px;
    }

    .filters-section {
        padding-bottom: 10px;
    }

    .courses-section {
        padding-top: 20px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .course-card-header {
        height: 160px;
    }

    .course-card-title {
        font-size: 20px;
    }

    .domain-tabs {
        margin-bottom: 8px;
    }

    .courses-meta {
        margin-top: 10px;
        margin-bottom: 12px;
    }
}

/* =====================================================
   SMALL MOBILE (≤ 576px)
===================================================== */
@media (max-width: 576px) {
    .filter-input,
    .filter-select {
        padding: 14px 16px;
    }

    .course-card-body {
        padding: 20px;
    }

    .course-card-footer {
        padding: 0 20px 20px;
    }

    .domain-tabs {
        padding-bottom: 16px; /* extra iOS safety */
    }
}

/* ===================================================== */
/* =============== COURSE DETAILS PAGE ================= */
/* ===================================================== */

/* ---------------- HERO ---------------- */
.course-details-hero {
    padding: 120px 20px 100px;
    background: linear-gradient(135deg, hsl(237 47% 34%), hsl(237 47% 24%));
    color: #ffffff;
}

.course-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 22px;
    text-decoration: none;
}

    .course-back-link:hover {
        text-decoration: underline;
    }

.course-details-title {
    font-size: 52px;
    font-weight: 800;
    margin: 18px 0 12px;
    max-width: 1000px;
}

.course-details-desc {
    font-size: 20px;
    opacity: 0.95;
    max-width: 950px;
    line-height: 1.65;
}

/* Meta */
.course-details-meta {
    display: flex;
    gap: 28px;
    margin: 28px 0 36px;
    font-size: 18px;
    flex-wrap: wrap;
}

/* ---------------- CONTENT ---------------- */
.course-details-content {
    padding: 90px 0;
    background: #ffffff;
}

.course-details-wrapper {
    max-width: 980px;
    margin: 0 auto;
}

/* ---------------- BASE CARD (USED EVERYWHERE) ---------------- */
.course-details-card,
.course-why-card,
.course-cta-card {
    border-radius: 22px;
    padding: 40px 36px;
}

/* ---------------- COURSE DETAIL CARDS ---------------- */
.course-details-card {
    background: #ffffff;
    margin-bottom: 40px;
    border: 1px solid #e6ebf5;
}

    .course-details-card h2 {
        font-size: 30px;
        font-weight: 800;
        margin-bottom: 22px;
        color: #2c2f8c;
    }

    .course-details-card p {
        font-size: 17px;
        line-height: 1.75;
        color: #444;
    }

/* ================= SYLLABUS MODULE ROWS ================= */
.syllabus-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 12px;
    border-bottom: 1px solid #e6e9f2;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .syllabus-row:hover {
        background: #f8f9ff;
    }

.syllabus-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c2f8c;
}

.syllabus-icon {
    font-size: 18px;
    color: #2f3a8f;
}

/* Mobile */
@media (max-width: 576px) {
    .syllabus-title {
        font-size: 16px;
    }
}

/* ---------------- TOOLS ---------------- */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

    .tools-grid > div {
        background: #f1f3f5;
        padding: 16px 20px;
        border-radius: 999px;
        font-size: 15px;
        font-weight: 600;
        color: #1f2a7a;
        display: flex;
        align-items: center;
        gap: 10px;
    }

/* ---------------- PROJECTS ---------------- */
#projectsList > div {
    background: #f1f3f5;
    padding: 16px 20px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    color: #1f2a7a;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    #projectsList > div::before {
        content: "";
        width: 8px;
        height: 8px;
        background: #f4b400;
        border-radius: 50%;
    }

/* ---------------- HIRING COMPANIES ---------------- */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 22px;
    margin-top: 24px;
}

    .companies-grid > div {
        background: #f1f3f5;
        padding: 22px;
        border-radius: 18px;
        font-size: 17px;
        font-weight: 700;
        color: #1f2a7a;
        text-align: center;
    }

/* ===================================================== */
/* WHY CHOOSE THIS COURSE */
/* ===================================================== */
.course-why {
    padding: 40px 0;
}

.course-why-card {
    background: linear-gradient(135deg, #2c2f8c, #1f2266);
    color: #ffffff;
    max-width: 980px;
    margin: 0 auto;
}

.course-why-title {
    font-size: 36px;
    font-weight: 800;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff; /* ✅ REQUIRED */
    padding-bottom: 24px;
    text-align: center;
}

.course-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 20px;
}

.course-why-item {
    text-align: center;
}

    .course-why-item i {
        font-size: 34px;
        margin-bottom: 14px;
    }

    .course-why-item h4 {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 6px;
    }

    .course-why-item p {
        font-size: 14px;
        opacity: 0.9;
    }

/* ===================================================== */
/* CTA */
/* ===================================================== */
.course-cta {
    padding: 60px 0;
}

.course-cta-card {
    background: #f1f3f5;
    text-align: center;
    max-width: 980px;
    margin: 0 auto;
}

    .course-cta-card h2 {
        font-size: 36px;
        font-weight: 800;
        color: #2c2f8c;
        margin-bottom: 16px;
    }

    .course-cta-card p {
        font-size: 16px;
        color: #5a6b85;
        margin-bottom: 26px;
    }

/* ===================================================== */
/* RESPONSIVE */
/* ===================================================== */
@media (max-width: 992px) {
    .course-details-title {
        font-size: 42px;
    }

    .course-details-desc {
        font-size: 18px;
    }

    .course-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .course-details-title {
        font-size: 32px;
    }

    .course-details-desc {
        font-size: 16px;
    }

    .course-details-meta {
        font-size: 16px;
        gap: 18px;
    }

    .course-details-card,
    .course-why-card,
    .course-cta-card {
        padding: 32px 24px;
    }

    .course-why-grid {
        grid-template-columns: 1fr;
    }

    .course-why-title,
    .course-cta-card h2 {
        font-size: 26px;
    }
}

/* =====================================================
   PROJECT DEVELOPMENT (PD) PAGE
===================================================== */

/* =====================================================
   PD HERO SECTION
===================================================== */
.pd-hero {
    padding: 120px 20px 90px;
    background: linear-gradient( 135deg, hsl(237 47% 34%) 0%, hsl(237 47% 24%) 100% );
    color: #ffffff;
    text-align: center;
}

.pd-hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.pd-hero-sub {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 30px;
}

/* =====================================================
   PROJECT DOMAINS
===================================================== */
.pd-domains {
    padding: 80px 0;
}

/* Wrapper */
.pd-domain-wrapper {
    display: grid;
    grid-template-columns: 320px 1fr;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

/* Left panel */
.pd-domain-left {
    padding: 50px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .pd-domain-left h3 {
        font-size: 26px;
        font-weight: 800;
        margin: 20px 0 8px;
        color: #1f2a6d;
    }

    .pd-domain-left p {
        font-size: 15px;
        color: #6b7280;
    }

/* Icon */
.pd-domain-icon {
    width: 90px;
    height: 90px;
    background: #ffffff;
    border-radius: 50%;
    margin: 0 auto;
    font-size: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
}

/* Background variants */
.it-bg {
    background: #edf3ff;
}

.circuit-bg {
    background: #eafaf1;
}

.mechanical-bg {
    background: #fff3e6;
}

.civil-bg {
    background: #f3e8ff;
}

/* Right panel */
.pd-domain-right {
    padding: 40px;
}

    .pd-domain-right h4 {
        font-size: 22px;
        font-weight: 800;
        color: #2c2f8c;
        margin-bottom: 24px;
    }

/* List */
.pd-domain-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

    .pd-domain-list li {
        font-size: 15px;
        color: #374151;
        position: relative;
        padding-left: 16px;
    }

        .pd-domain-list li::before {
            content: "•";
            position: absolute;
            left: 0;
            color: #f7c600;
            font-weight: bold;
        }

/* =====================================================
   PD PROCESS SECTION
===================================================== */
.pd-process {
    padding: 90px 0;
    background: #f8f9fa;
}

.pd-process-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 60px;
    color: #2c2f8c;
}

.pd-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.pd-process-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 40px 28px;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

    .pd-process-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    }

.pd-process-step {
    width: 72px;
    height: 72px;
    background: #f7c600;
    color: #1f2a6d;
    border-radius: 50%;
    font-size: 32px;
    font-weight: 900;
    margin: 0 auto 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-process-heading {
    font-size: 22px;
    font-weight: 800;
    color: #2c2f8c;
    margin-bottom: 14px;
}

.pd-process-text {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

/* =====================================================
   PD STATS SECTION
===================================================== */
.pd-stats {
    padding: 90px 0;
    background: #ffffff;
    text-align: center;
}

.pd-stats-title {
    font-size: 36px;
    font-weight: 800;
    color: #2c2f8c;
    margin-bottom: 16px;
}

.pd-stats-sub {
    max-width: 900px;
    margin: 0 auto 50px;
    font-size: 18px;
    line-height: 1.6;
    color: #5a6b85;
}

.pd-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.pd-stat-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 50px 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

    .pd-stat-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
    }

.pd-stat-number {
    font-size: 48px;
    font-weight: 900;
    color: #f4b400;
    margin-bottom: 10px;
}

.pd-stat-text {
    font-size: 18px;
    color: #5a6b85;
    font-weight: 500;
}

/* =====================================================
   PD CTA SECTION
===================================================== */
.pd-cta {
    padding: 90px 0;
    background: #f8f9fa;
}

.pd-cta-card {
    max-width: 1100px;
    margin: auto;
    background: linear-gradient( 135deg, hsl(237 47% 34%) 0%, hsl(237 47% 24%) 100% );
    color: #ffffff;
    padding: 70px 60px;
    border-radius: 22px;
    text-align: center;
}

    .pd-cta-card h2 {
        color: #ffffff !important;
        background: none !important;
        -webkit-text-fill-color: #ffffff !important;
    }

.pd-cta-sub {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 36px;
}

.pd-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.pd-btn-primary {
    background: #f7c600;
    color: #070766;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 999px;
    border: none;
}

    .pd-btn-primary:hover {
        background: #e6b800;
    }

.pd-btn-outline {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-weight: 600;
    padding: 14px 36px;
    border-radius: 999px;
}

    .pd-btn-outline:hover {
        background: #ffffff;
        color: #084298;
    }

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 992px) {
    .pd-domain-wrapper {
        grid-template-columns: 1fr;
    }

    .pd-domain-list {
        grid-template-columns: 1fr;
    }

    .pd-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pd-hero-title {
        font-size: 34px;
    }

    .pd-process-title,
    .pd-stats-title {
        font-size: 28px;
    }

    .pd-cta-card {
        padding: 45px 24px;
    }

    .pd-cta-sub {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .pd-process-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   R&D / PhD ASSISTANCE PAGE
===================================================== */

/* =====================================================
   HERO SECTION
===================================================== */
.rd-hero {
    padding: 120px 20px 80px;
    background: linear-gradient( 135deg, hsl(237 47% 34%), hsl(237 47% 24%) );
    color: #ffffff;
    text-align: center;
}

.rd-hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.rd-hero-sub {
    font-size: 20px;
    opacity: 0.95;
    max-width: 850px;
    margin: auto;
}

/* =====================================================
   SERVICES SECTION
===================================================== */
.rd-services {
    padding: 90px 0;
    background: #ffffff;
}

.rd-services-title {
    text-align: center;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 60px;
    color: #2c2f8c;
}

.rd-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.rd-service-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 32px;
    border: 1px solid #e5eaf5;
    transition: all 0.3s ease;
    height: 100%;
}

    .rd-service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 40px rgba(0,0,0,0.12);
    }

.rd-icon-box {
    width: 64px;
    height: 64px;
    background: #fff7e6;
    color: #f7b500;
    font-size: 28px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.rd-service-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2c2f8c;
    margin-bottom: 12px;
}

.rd-desc {
    font-size: 17px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 18px;
}

.rd-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .rd-feature-list li {
        position: relative;
        padding-left: 26px;
        font-size: 16px;
        margin-bottom: 10px;
        color: #333;
    }

        .rd-feature-list li::before {
            content: "✔";
            position: absolute;
            left: 0;
            top: 0;
            color: #f7c600;
            font-weight: bold;
        }

/* =====================================================
   PUBLICATIONS SECTION
===================================================== */
.rd-publications {
    padding: 80px 0;
    background: #ffffff;
}

.rd-publications-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    color: #2c2f8c;
    margin-bottom: 50px;
}

.rd-publications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.rd-publication-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 32px;
    border: 1px solid #e3e7f3;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

    .rd-publication-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 32px rgba(0,0,0,0.1);
    }

    .rd-publication-card h3 {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 20px;
        font-weight: 700;
        color: #2c2f8c;
        margin-bottom: 8px;
    }

.rd-dot {
    width: 12px;
    height: 12px;
    background: #f7b500;
    border-radius: 50%;
    flex-shrink: 0;
}

.rd-publication-card p {
    font-size: 16px;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

/* =====================================================
   ✅ UPDATED RESEARCH DOMAINS (MATCHES IMAGE)
===================================================== */
.rd-domains {
    padding: 70px 0;
    background: #ffffff;
}

    .rd-domains h2 {
        text-align: center;
        font-size: 42px;
        font-weight: 800;
        color: #2c2f8c;
        margin-bottom: 60px;
    }

/* 2 x 2 Grid */
.rd-domains-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* Domain Card */
.rd-domain-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 34px;
    border: 1px solid #e3e8f3;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

    .rd-domain-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
    }

    .rd-domain-card h5 {
        font-size: 22px;
        font-weight: 700;
        color: #2c2f8c;
        margin-bottom: 18px;
    }

    .rd-domain-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .rd-domain-card li {
        font-size: 16px;
        color: #333;
        margin-bottom: 12px;
        position: relative;
        padding-left: 16px;
    }

        .rd-domain-card li::before {
            content: "•";
            position: absolute;
            left: 0;
            top: 0;
            font-weight: bold;
            color: #333;
        }

/* =====================================================
   STATS
===================================================== */
.rd-stats {
    background: #f8f9fa;
    padding: 70px 0;
    text-align: center;
}

    .rd-stats h2 {
        font-size: 36px;
        font-weight: 800;
        color: #2c2f8c;
        margin-bottom: 16px;
    }

.rd-stat-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.rd-stat-number {
    font-size: 42px;
    font-weight: 800;
    color: #0d6efd;
}

.rd-stat-card p {
    font-size: 16px;
    color: #555;
    margin-top: 12px;
}

/* =====================================================
   CTA
===================================================== */
.rd-cta {
    padding: 70px 0;
    text-align: center;
}

    .rd-cta h2 {
        margin-bottom: 12px;
        color: #2c2f8c;
    }

    .rd-cta p {
        font-size: 16px;
        color: #555;
        margin-bottom: 24px;
    }

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 992px) {
    .rd-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rd-domains-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .rd-hero-title {
        font-size: 36px;
    }

    .rd-hero-sub {
        font-size: 18px;
    }

    .rd-publications-grid {
        grid-template-columns: 1fr;
    }

    .rd-domains-title {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    .rd-services-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   ABOUT PAGE – UNITED SOFT TECH
===================================================== */

/* =====================================================
   HERO SECTION
===================================================== */
.about-hero {
    padding: 120px 20px 80px;
    background: linear-gradient( 135deg, hsl(237 47% 34%) 0%, hsl(237 47% 24%) 100% );
    color: #ffffff;
    text-align: center;
}

.about-hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
}

.about-hero-sub {
    font-size: 20px;
    opacity: 0.95;
}

/* =====================================================
   OUR STORY
===================================================== */
.about-story {
    padding: 80px 0;
}

.about-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.story-heading {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #2c2f8c;
}

.story-text {
    font-size: 18px;
    color: #444;
    margin-bottom: 14px;
    line-height: 1.7;
}

    .story-text strong {
        color: #2c2f8c;
        font-weight: 700;
    }

.about-story-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* =====================================================
   MISSION & VISION
===================================================== */
.about-mv {
    background: #f8f9fa;
    padding: 80px 0;
}

.about-mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-mv-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

    .about-mv-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 32px rgba(0,0,0,0.12);
    }

    .about-mv-card i {
        font-size: 36px;
        color: #f7b500 !important;
        margin-bottom: 16px;
    }

.mv-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #2c2f8c;
}

/* =====================================================
   CORE VALUES
===================================================== */
.about-values {
    padding: 80px 0;
    background: #ffffff;
}

.values-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 50px;
    color: #2c2f8c;
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-value-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 35px 28px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

    .about-value-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 40px rgba(0,0,0,0.15);
    }

    .about-value-card i {
        font-size: 36px;
        color: #f7b500 !important;
        margin-bottom: 16px;
    }

    .about-value-card h4 {
        color: #2c2f8c;
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .about-value-card p {
        font-size: 18px;
        color: #555;
        line-height: 1.7;
    }

/* =====================================================
   CERTIFICATIONS
===================================================== */
.about-certs {
    padding: 80px 0;
    background: #f8f9fa;
}

.about-certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.about-cert-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

    .about-cert-card h4 {
        color: #2c2f8c;
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 10px;
    }

    .about-cert-card i {
        font-size: 36px;
        color: #f7b500;
        margin-bottom: 16px;
    }

    .about-cert-card p {
        font-size: 18px;
        color: #555;
        line-height: 1.6;
    }

/* =====================================================
   GROUP COMPANY
===================================================== */
.about-group {
    padding: 100px 20px;
    background: linear-gradient(135deg, #2c2f8c, #1f2266);
    color: #ffffff;
    text-align: center;
}

    .about-group .container {
        max-width: 1000px;
        margin: auto;
    }

.about-group-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

    .about-group-icon i {
        font-size: 32px;
        color: #ffffff;
    }

.about-group-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 25px;
    color: #ffffff !important;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
}

.about-group-text {
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.95;
}

    .about-group-text a {
        color: #ffffff;
        font-weight: 700;
        text-decoration: underline;
    }

/* =====================================================
   WHY CHOOSE US
===================================================== */
.about-why {
    padding: 80px 0;
    background: #ffffff;
}

.about-section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 40px;
    color: #2c2f8c;
}

.about-why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 30px;
}

.about-why-item {
    background: #f1f3f5;
    border-radius: 999px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 17px;
    font-weight: 600;
    color: #1e2a78;
    transition: all 0.25s ease;
}

    .about-why-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    }

.about-why-dot {
    width: 10px;
    height: 10px;
    background: #f4b400;
    border-radius: 50%;
}

/* ================= CHAIRMAN PROFILE ================= */
.chairman-section {
    padding: 100px 0;
    background: #ffffff;
}

/* Grid */
.chairman-grid {
    display: grid;
    grid-template-columns: 520px 1fr; /* Image column wider */
    gap: 60px;
    align-items: flex-start;
    max-width: 1300px;
    margin: 0 auto;
}

/* Image wrapper (controls size) */
.chairman-image-wrap {
    display: flex;
    justify-content: center;
    padding-top: 30px !important;
}

/* Image */
.chairman-image {
    width: 100%;
    max-width: 450px;
    height: 450px;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

.chairman-title {
    font-size: 42px;
    font-weight: 800;
    color: #2c2f8c;
    margin-bottom: 24px;
    line-height: 1.2;
}

.chairman-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 18px;
    color: #555;
}

.chairman-content strong {
    color: #2c2f8c;
    font-weight: 700;
}

/* =====================================================
   STATS
===================================================== */
.about-stats {
    padding: 80px 0;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.about-stat-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 26px rgba(0,0,0,0.1);
}

.about-stat-number {
    color: #2c2f8c;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.about-cert-card p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
}

.about-mv-icon {
    font-size: 36px;
    color: #f7b500;
    margin-bottom: 16px;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 992px) {
    .about-values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .chairman-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .about-story-grid {
        grid-template-columns: 1fr;
    }

    .about-why-grid {
        grid-template-columns: 1fr;
    }

    .about-hero-title {
        font-size: 36px;
    }

    .chairman-title {
        font-size: 34px;
    }
}

@media (max-width: 576px) {
    .about-values-grid {
        grid-template-columns: 1fr;
    }

    .about-group-title {
        font-size: 28px;
    }

    .about-group-text {
        font-size: 16px;
    }
}

/* ================= CONTACT HERO ================= */
.contact-hero {
    background: linear-gradient(135deg, hsl(237 47% 34%) 0%, hsl(237 47% 24%) 100%);
    color: #fff;
    padding: 120px 20px 80px;
}

.contact-hero-title {
    font-size: 46px;
    font-weight: 800;
}

.contact-hero-sub {
    font-size: 18px;
    opacity: 0.9;
}

/* ================= CONTACT INFO ================= */
.contact-main {
    padding: 70px 0;
}

.contact-info-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 30px;
    margin-bottom: 24px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

    .contact-info-card i {
        font-size: 32px;
        color: #f7b500;
        margin-bottom: 12px;
    }

    .contact-info-card h4 {
        font-weight: 700;
        margin-bottom: 8px;
    }

    .contact-info-card a {
        color: #333;
        text-decoration: none;
    }

        .contact-info-card a:hover {
            color: #0d6efd;
        }

.contact-info-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

    .contact-info-card i {
        font-size: 28px;
        color: #f7b500;
        margin-bottom: 10px;
    }

.contact-form-card h2 {
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-form-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

/* ================= MAP ================= */
.contact-map {
    padding: 70px 0;
    background: #f8f9fa;
}

.map-card {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0,0,0,0.1);
}

/* ================= QUICK CONTACT ================= */
.quick-contact {
    padding: 80px 0;
    background: #ffffff;
}

.quick-contact-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    color: #2c2f8c;
    margin-bottom: 50px;
}

/* GRID */
.quick-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* CARD */
.quick-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 40px 30px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

    .quick-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 40px rgba(0,0,0,0.12);
    }

/* ICON */
.quick-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

    /* ICON COLORS */
    .quick-icon.call {
        background: #fff4d6;
        color: #f4b400;
    }

    .quick-icon.whatsapp {
        background: #e9f9ef;
        color: #25d366;
    }

    .quick-icon.email {
        background: #fff4d6;
        color: #f4b400;
    }

/* TEXT */
.quick-card h3 {
    font-size: 26px;
    font-weight: 700;
    color: #2c2f8c;
    margin-bottom: 8px;
}

.quick-card p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .quick-contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .contact-hero-title {
        font-size: 34px;
    }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .jumbotron {
        text-align: center;
    }

    .btn {
        width: 100%;
    }
}

/* =====================================================
   TABLET (≤ 992px)
===================================================== */
@media (max-width: 992px) {
    /* Prevent text overflow */
    * {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* HERO TITLES */
    .courses-hero-title,
    .rd-hero-title,
    .about-hero-title,
    .pd-hero-title,
    .contact-hero-title {
        font-size: 36px;
        line-height: 1.25;
    }

    /* SECTION TITLES */
    .featured-title,
    .values-title,
    .rd-services-title,
    .about-section-title,
    .rd-domains h2 {
        font-size: 30px;
    }

    /* COURSE DETAILS */
    .course-details-title {
        font-size: 38px;
    }

    .course-details-desc {
        font-size: 17px;
        line-height: 1.65;
    }

    /* GRID NORMALIZATION */
    .courses-grid,
    .rd-services-grid,
    .about-values-grid,
    .rd-domains-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =====================================================
   MOBILE (≤ 768px)
===================================================== */
@media (max-width: 768px) {
    /* HERO SECTIONS */
    .jumbotron,
    .courses-hero,
    .rd-hero,
    .about-hero,
    .pd-hero,
    .contact-hero {
        padding: 90px 16px 60px;
        text-align: center;
    }

    /* MAIN HEADINGS */
    h1,
    .courses-hero-title,
    .rd-hero-title,
    .about-hero-title,
    .pd-hero-title,
    .contact-hero-title {
        font-size: 30px;
        line-height: 1.2;
    }

    /* BODY TEXT */
    p,
    .course-card-desc,
    .rd-desc,
    .story-text,
    .pd-process-text {
        font-size: 15px;
        line-height: 1.6;
    }

    /* FORCE SINGLE COLUMN */
    .courses-grid,
    .rd-services-grid,
    .about-values-grid,
    .rd-domains-grid,
    .pd-process-grid,
    .pd-stats-grid,
    .quick-contact-grid {
        grid-template-columns: 1fr;
    }

    /* SAFE CARD PADDING */
    .course-card-body,
    .course-details-card,
    .rd-service-card,
    .about-value-card,
    .pd-process-card,
    .pd-stat-card {
        padding: 24px;
    }
}

/* =====================================================
   SMALL MOBILE (≤ 576px)
===================================================== */
@media (max-width: 576px) {
    /* COURSE DETAILS */
    .course-details-title {
        font-size: 28px;
    }

    .course-details-desc {
        font-size: 15px;
    }

    /* LIMIT LONG DESCRIPTIONS */
    .course-card-desc {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* FULL WIDTH BUTTONS */
    .btn,
    .btn-course,
    .pd-btn-primary,
    .pd-btn-outline {
        width: 100%;
    }
}
