:root {
    --primary-blue: #2563eb;
    --primary-green: #22c55e;
    --primary-gradient: linear-gradient(90deg, #2563eb, #1d4ed8);
    --bg-sand: #f4eee0;
    --bg-white: #ffffff;
    --bg-tan: #ece4d2;
    --bg-cream: #f4eee0;
    --bg-slate-50: #f4eee0;

    --primary-dark: #1e293b;
    --text-charcoal: #1e293b;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(30, 41, 59, 0.05);
    --shadow-blue: 0 10px 30px rgba(37, 99, 235, 0.2);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

    --accent-color: var(--primary-blue);
    --text-color: var(--text-charcoal);
    --bg-light: var(--bg-sand);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
    color: var(--text-charcoal);
    background: var(--bg-sand);
    overflow-x: hidden;
    min-height: 100vh;
}

p {
    margin-bottom: 25px;
    text-align: left;
    line-height: 1.8;
    color: var(--text-charcoal);
    font-size: 1.05rem;
    word-spacing: 0.5px;
}

/* Neatly Aligned Text Block Utility */
.text-content-block p {
    text-align: justify;
    text-justify: inter-word;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    font-size: 1rem;
}

.btn-primary {
    background: #16a34a;
    color: #fff;
    box-shadow: 0 10px 30px rgba(22, 163, 74, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(22, 163, 74, 0.3);
    opacity: 0.95;
}

.btn-secondary {
    background-color: var(--primary-dark);
    color: #fff;
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.15);
}

.nav-call-btn {
    background: #16a34a !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(22, 163, 74, 0.2) !important;
}

.nav-call-btn:hover {
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.3) !important;
    opacity: 0.95;
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-dark);
    padding: 10px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info {
    display: flex;
    gap: 20px;
}

.top-bar-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Navigation Bar */
header {
    background-color: var(--bg-white);
    height: 120px;
    /* Reduced from 160px */
    padding: 0 32px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: height 0.3s ease, box-shadow 0.3s ease;
    will-change: height;
    transform: translateZ(0);
    display: flex;
    align-items: center;
    overflow: visible;
}

header.sticky-active {
    height: 120px;
    background-color: rgba(255, 255, 255, 0.4);
    /* Ultra-light transparent white */
    backdrop-filter: blur(10px);
    /* Crystal clear glass */
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    /* Very subtle shadow */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    display: flex;
    align-items: center;
    width: 100%;
}

/* Logo — left column */
.logo {
    display: flex;
    align-items: center;
    flex: 1;
    /* takes equal share */
    justify-content: flex-start;
}

/* Logo link */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Logo image — fluid: scales from 80px on small phones to 250px on desktop */
.logo img {
    height: clamp(70px, 18vw, 250px) !important;
    width: auto;
    max-width: min(280px, 40vw);
    object-fit: contain;
    display: block;
}

header.sticky-active .logo img {
    height: clamp(70px, 18vw, 250px) !important;
    max-width: min(280px, 40vw);
}

/* Nav links — perfectly centered column */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;
    flex: 2;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.nav-links a:hover::after {
    width: 100%;
}

/* CTA — right column, pushes to far right */
.nav-cta {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 250px;
    box-shadow: 0 20px 50px rgba(30, 41, 59, 0.12);
    border-radius: 12px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    border: 1px solid rgba(37, 99, 235, 0.08);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
    margin-bottom: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 25px;
    color: #444;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    background-color: #f1f5f9;
    color: var(--primary-blue);
    padding-left: 30px;
}

/* Dropdown mobile support */
@media (max-width: 768px) {
    .dropdown>a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        display: none;
        background: rgba(34, 34, 34, 0.03);
        width: 100%;
        min-width: unset;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }
}

.dropdown>a i {
    font-size: 0.8rem;
    margin-left: 5px;
    transition: transform 0.3s;
}

.dropdown:hover>a i {
    transform: rotate(180deg);
}

/* Ensure navbar has overflow visible for dropdown */
nav {
    display: flex;
    align-items: center;
    overflow: visible;
}

/* Hamburger Menu (Mobile) */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--dark-blue);
}

/* Hero Section */
.hero {
    height: 85vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/herosection.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

.hero-content h2 {
    font-size: clamp(1.8rem, 5vw, 4rem);
    margin-bottom: 20px;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 5000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    transform: scale(1);
    animation: modalPop 0.3s ease;
}

@keyframes modalPop {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.close-btn:hover {
    color: #333;
}

/* Social Login Styles */
.social-auth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #888;
    font-size: 0.9rem;
}

.social-auth-separator::before,
.social-auth-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}

.social-auth-separator:not(:empty)::before {
    margin-right: .75em;
}

.social-auth-separator:not(:empty)::after {
    margin-left: .75em;
}

.social-auth-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-social {
    background: #fff;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    font-size: 0.9rem;
    color: #444;
    transition: var(--transition);
}

.btn-social img {
    height: 18px;
    width: 18px;
}

.btn-social:hover {
    background: #f9f9f9;
    border-color: #ccc;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.btn-google:hover {
    border-color: #4285F4;
}

.btn-linkedin:hover {
    border-color: #0077B5;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(255, 109, 31, 0.1);
    background-color: var(--white);
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    color: var(--text-charcoal);
}

.form-control:focus {
    border-color: var(--primary-orange);
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 109, 31, 0.1);
}

/* Sections — fluid typography with clamp() */
.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    margin: 40px 0 30px;
    position: relative;
    padding-bottom: 20px;
    font-weight: 800;
}

.section-title+p,
.section-header p {
    text-align: center !important;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 10px;
}

/* Course Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.course-card {
    background: var(--bg-white);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.5);
    opacity: 0;
    transform: translateY(30px);
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.course-img {
    height: 200px;
    background-color: #eef2f5;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.course-info {
    padding: 25px;
}

.course-info h3 {
    margin: 15px 0 10px;
    font-size: 1.4rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #f39c12;
    font-weight: bold;
    margin: 10px 0;
}

/* Partners Section */
.partners-overflow {
    overflow: hidden;
    padding: 60px 0;
    background: var(--bg-tan);
}

.partners-track {
    display: flex;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.partner-logo {
    width: 200px;
    margin: 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-logo img {
    max-width: 140px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: var(--transition);
}

.partner-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: #fff;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.footer-col h4 {
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: var(--primary-orange);
}

.footer-col p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

.footer-col ul li {
    margin-bottom: 6px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    font-size: 0.85rem;
}

.footer-col ul li a:hover {
    color: var(--primary-blue);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-icon {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    color: #fff;
    font-size: 0.85rem;
}

.social-icon:hover {
    background: var(--primary-orange);
    transform: translateY(-3px);
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid transparent;
    border-image: var(--primary-gradient) 1;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===========================
   MOBILE RESPONSIVE (≤768px)
=========================== */
@media (max-width: 768px) {

    /* --- NAVBAR --- */
    header {
        height: 85px !important;
        padding: 0 16px !important;
    }

    header.sticky-active {
        height: 85px !important;
        background-color: rgba(255, 255, 255, 0.5) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
    }

    /* Logo left, controls right */
    nav {
        justify-content: space-between;
    }

    .logo img {
        height: 65px !important;
        width: auto;
        max-width: 160px;
        /* Reduced to ensure space for menu */
    }

    header.sticky-active .logo img {
        height: 65px !important;
        max-width: 160px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-tan);
        padding: 16px 20px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(255, 109, 31, 0.1);
        text-align: center;
        gap: 4px;
        z-index: 2000;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 10px 0;
        display: block;
    }

    .nav-links.active {
        display: flex;
    }

    /* Push controls to the far right */
    .nav-cta {
        margin-left: auto;
        margin-right: 5px;
        display: flex;
        align-items: center;
        flex-shrink: 0;
        /* Prevent squashing */
        z-index: 2005;
    }

    .call-text {
        display: none;
    }

    .nav-call-btn {
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        font-size: 0.85rem !important;
        min-width: unset !important;
    }

    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        margin-left: 12px;
        margin-right: 5px;
        font-size: 1.8rem;
        /* Increased size */
        cursor: pointer;
        color: var(--dark-blue);
        z-index: 2001;
        min-width: 30px;
    }

    .top-bar {
        display: none;
    }


    /* HERO BANNERS — inner page heroes: push content below sticky header */
    .services-hero,
    .about-hero,
    .contact-hero,
    .jobs-hero,
    .policy-hero,
    .terms-hero,
    .support-hero,
    .course-detail-hero,
    .service-details-hero,
    .courses-hero,
    .software-hero,
    .staffing-hero,
    .appdev-hero {
        height: auto !important;
        min-height: 260px !important;
        padding: 100px 16px 50px !important;
        /* 100px top clears the 85px sticky header */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Homepage hero slider */
    .hero,
    .hero-slider {
        min-height: 320px !important;
        max-height: 480px !important;
        padding: 20px 16px 60px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .slide,
    .hero,
    .hero-slider,
    [class*="-hero"] {
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center !important;
    }

    /* Homepage hero: single column, text first then image */
    .hero-container {
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px !important;
        padding: 0 !important;
    }

    .hero-text-side {
        width: 100% !important;
        flex: none !important;
        text-align: center !important;
    }

    .hero-text-side h1 {
        font-size: 1.9rem !important;
        line-height: 1.2 !important;
        margin-bottom: 12px !important;
    }

    .hero-text-side p {
        font-size: 0.95rem !important;
        margin-bottom: 18px !important;
    }

    /* Stack hero buttons vertically on mobile */
    .hero-btns {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .hero-btns .btn {
        width: 100% !important;
        max-width: 280px !important;
        text-align: center !important;
    }

    /* Hero image: full width below text */
    .hero-image-side {
        width: 100% !important;
        flex: none !important;
        height: 220px !important;
    }

    .hero-image-wrapper {
        height: 200px !important;
        border-radius: 16px !important;
    }

    .hero-content,
    .container {
        transform: none !important;
        transition: none !important;
    }

    .hero-content h1,
    .hero-content h2,
    .services-hero h1,
    .about-hero h1,
    .contact-hero h1,
    .jobs-hero h1,
    .policy-hero h1,
    .terms-hero h1,
    .support-hero h1,
    .course-detail-hero h1,
    .service-details-hero h1,
    .courses-hero h1,
    .software-hero h1,
    .staffing-hero h1,
    .appdev-hero h1 {
        font-size: 1.8rem !important;
        font-weight: 800 !important;
        margin-bottom: 12px !important;
        line-height: 1.2 !important;
    }

    .hero-content p {
        font-size: 0.95rem !important;
        margin-bottom: 20px !important;
        line-height: 1.5 !important;
        opacity: 0.95;
    }

    .slider-dots {
        bottom: 12px;
        gap: 8px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .dot.active {
        width: 25px;
    }

    /* --- HIGHLIGHT CARDS --- */
    .highlights {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 20px;
        position: static;
        padding: 0 16px 30px;
    }

    .highlight-card {
        padding: 25px 20px;
        border-radius: 20px;
        margin-bottom: 5px;
    }

    .highlight-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }

    /* --- GENERAL FIXES --- */
    .section-title {
        font-size: 1.8rem;
        margin: 20px 0 15px;
    }

    .container {
        width: 100%;
        padding: 0 16px;
    }

    /* Prevent horizontal overflow globally */
    body,
    html {
        overflow-x: hidden !important;
    }

    /* WhatsApp floating button - keep away from content edges */
    .whatsapp-float {
        bottom: 20px !important;
        right: 16px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 1.4rem !important;
    }
}



/* About Section Responsive */
@media (max-width: 768px) {
    #about .container>div {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 30px !important;
    }

    #about .section-title {
        text-align: center !important;
    }

    #about .about-image {
        order: -1;
    }
}

.top-bar-location {
    font-weight: 600;
    color: var(--accent-color);
}

.top-bar-location span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Highlights Section */
.highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
    position: relative;
    z-index: 10;
    padding: 40px 16px 80px;
}

.highlight-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(30, 41, 59, 0.04);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(37, 99, 235, 0.05);
}

.highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-blue);
}

.highlight-icon {
    width: 65px;
    height: 65px;
    background: var(--primary-gradient);
    color: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6rem;
    transition: var(--transition);
    box-shadow: var(--shadow-blue);
}

.highlight-card:hover .highlight-icon {
    background: var(--primary-orange);
    color: #fff;
}

.highlight-card h3 {
    margin-bottom: 8px;
    font-size: 1.15rem;
    color: #1a1a1a;
}

.highlight-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    height: 80vh;
    min-height: 420px;
    overflow: hidden;
    color: #fff;
}

.slider-wrapper {
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 5;
    transform: translateY(30px);
    transition: transform 0.8s ease;
}

.slide.active .hero-content {
    transform: translateY(0);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.15;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    color: #FFF;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #fff;
    width: 30px;
    border-radius: 10px;
}

/* Why Choose Us Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(11, 132, 87, 0.2);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-green);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: #f0fff4;
    color: var(--dark-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    background: var(--primary-orange);
    color: #fff;
}

.feature-item h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #1a1a1a;
}

.feature-item p {
    color: #666;
    font-size: 1rem;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-tan);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(255, 109, 31, 0.1);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.client-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-orange);
}

.client-info h5 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.testimonial-card p {
    font-style: italic;
    color: #555;
    line-height: 1.7;
    position: relative;
}

.testimonial-card p::before {
    content: "“";
    font-size: 3rem;
    color: var(--primary-orange);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -10px;
}

/* Navigation CTA */
.nav-cta {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* Removed redundant hide rule that was breaking mobile menu */
/* .nav-cta visibility is handled by the main responsive section */

.nav-call-btn {
    padding: 10px 22px !important;
    font-size: 0.95rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.call-text {
    opacity: 0.9;
    font-weight: 400;
}

/* Semichip-Style Flip Cards */
.flip-card-section {
    padding: 40px 0;
    background: var(--bg-cream);
}

.flip-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.flip-card {
    background-color: transparent;
    width: 100%;
    height: 420px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.flip-card-front {
    background: var(--bg-tan);
    color: var(--primary-dark);
    border: 1px solid rgba(255, 109, 31, 0.1);
}

.flip-card-back {
    background: linear-gradient(135deg, var(--primary-dark), #000);
    color: white;
    transform: rotateY(180deg);
}

.flip-card-icon {
    font-size: 4rem;
    margin-bottom: 25px;
    color: var(--primary-blue);
}

.flip-card-back .flip-card-icon {
    color: #fff;
}

.flip-card-front h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.flip-card-back h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #fff;
}

.flip-card-back p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    opacity: 0.95;
}

.flip-card-btn {
    padding: 12px 35px;
    background: #fff;
    color: var(--dark-blue);
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.flip-card-btn:hover {
    background: var(--accent-color);
    color: #000;
    transform: scale(1.05);
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.slider-wrapper {
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    z-index: 0;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}


.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* ============ LAPTOP & TABLET REFINEMENT ============ */
@media (min-width: 769px) and (max-width: 1200px) {
    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .text-content-block p {
        text-align: center;
        text-justify: none;
    }
}

/* ============ GLOBAL HERO MOBILE REFINEMENT ============ */
@media (max-width: 768px) {

    .hero,
    .hero-slider {
        height: 65vh !important;
        background-attachment: scroll !important;
        /* Fixes mobile jitter */
    }

    .hero-content {
        padding: 0 20px;
        width: 100%;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 2.2rem !important;
        margin-bottom: 15px !important;
        line-height: 1.2 !important;
    }

    .hero-content p {
        font-size: 1rem !important;
        margin-bottom: 30px !important;
        line-height: 1.5 !important;
    }

    .slider-arrow {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .slider-arrow.prev {
        left: 15px;
    }

    .slider-arrow.next {
        right: 15px;
    }

    .slider-dots {
        bottom: 25px;
    }
}

/* ===========================
   GLOBAL FLUID RULES (all sizes)
=========================== */
/* Images always fluid — never overflow their container */
/* Note: height:auto is intentionally omitted to not override logo/icon heights */
img {
    max-width: 100%;
}

/* Tables scroll horizontally on small screens */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ===========================
   SMALL PHONES (≤480px)
   e.g. Galaxy Fold, iPhone SE 1st gen
=========================== */
@media (max-width: 480px) {

    header {
        height: 70px !important;
    }

    header.sticky-active {
        height: 70px !important;
    }

    /* Logo scales down further on tiny screens */
    .logo img,
    header.sticky-active .logo img {
        height: clamp(50px, 14vw, 80px) !important;
    }

    /* Hero buttons: full width */
    .hero-btns .btn {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 0.9rem !important;
        padding: 12px 20px !important;
    }

    /* Hero text tighter */
    .hero-text-side h1 {
        font-size: clamp(1.3rem, 6vw, 1.7rem) !important;
    }

    /* Section titles */
    .section-title {
        font-size: clamp(1.3rem, 5vw, 1.6rem) !important;
        margin: 15px 0 10px !important;
    }

    /* Cards: reduce padding */
    .highlight-card,
    .course-info,
    .card {
        padding: 18px 14px !important;
    }

    /* Inner page heroes: slightly less top pad on tiny screens */
    .services-hero,
    .about-hero,
    .contact-hero,
    .jobs-hero,
    .courses-hero,
    .policy-hero,
    .terms-hero,
    .support-hero,
    .course-detail-hero,
    .service-details-hero,
    .software-hero,
    .staffing-hero,
    .appdev-hero {
        padding: 90px 12px 40px !important;
    }

    /* Footer columns stack cleanly */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Enrol button fits */
    .nav-call-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.75rem !important;
    }
}