* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0d47a1;
    --secondary-color: #ffffff;
    --accent-color: #e02618;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Layout Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.row.g-4 {
    margin: 0 -15px;
}

.row.g-4 > [class*="col-"] {
    margin-bottom: 1.5rem;
}

[class*="col-"] {
    padding: 0 15px;
}

.col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.align-items-center {
    align-items: center;
    
}

.text-center {
    text-align: center;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.text-muted {
    color: #6c757d;
}

.g-4 {
    gap: 1.5rem;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.w-100 {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
    padding: 100px 0;
    margin-top: -10px;
    color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    
}

.hero-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Hero Buttons Container */
.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.btn-explore,
.btn-contact,
.btn-cta {
    display: inline-block !important;
    border-radius: 50px !important;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer;
    background-color: #e02618;
    color: white !important;
    height: 55px;
    padding: 12px 32px !important;
    text-align: center;
    /* transition: all 0.3s ease; */
}

.btn-contact {
    margin-left: 0;
}

.btn-explore:hover,
.btn-contact:hover,
.btn-cta:hover {
    background: #e02618 !important;
    color: black !important;
}

/* Counters - Desktop */
.counter-box {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
    position: absolute;
    min-width: 160px;
}

.counter-box.students {
    top: 20%;
    right: -10%;
}

.counter-box.courses {
    bottom: 20%;
    left: -10%;
}

.counter-box h3 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.counter-box p {
    color: blue;
    margin: 0;
    font-size: 0.9rem;
}
.counter-box.courses p { color: darkblue; }

/* Section Title */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 0.8rem auto 0;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.section-description {
    margin-top: 1rem;
    color: #6c757d;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}

/* Pure CSS Grid - 2 columns on desktop */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
}

.service-item {
    width: 100%;
}

.service-card {
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
    padding: 2.5rem 1.5rem;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(13,71,161,0.25);
}

.service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-color), #1976d2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon svg {
    width: 45px;
    height: 45px;
    fill: white;
}

.service-card h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.service-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.service-btn {
    background: #e02618;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    margin: 0 auto;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 140px;
    position: relative;
    overflow: hidden;
}

.service-btn:hover {
    background: #e02618;
    color: black;
    border-color: #e02618;
    /* transform: translateY(-2px); */
    box-shadow: 0 5px 15px rgba(224, 38, 24, 0.3);
}

/* Service Icon Animation */
.service-icon {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

/* Service Card Hover Effects */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

/* Button Ripple Effect */
.service-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.service-btn:active::after {
    width: 300px;
    height: 300px;
}

/* Hero Button Enhanced Hover */
.btn-explore,
.btn-contact,
.btn-cta {
    position: relative;
    overflow: hidden;
}

.btn-explore::before,
.btn-contact::before,
.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    /* left: -100%; */
    width: 100%;
    height: 100%;
    /* background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); */
    /* transition: left 0.5s; */
}


/* Counter Box Hover */
.counter-box {
    transition: all 0.3s ease;
}

.counter-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.counter-box h3 {
    transition: color 0.3s ease;
}



/* Hero Image */
.hero-image {
    position: relative;
    margin-top: 2rem;
}

.hero-image img {
    border-radius: 30px;
    height: 350px;
    margin-top: 30px;
    object-fit: cover;
}

.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1976d2 100%);
    color: var(--secondary-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before,
.cta-section::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.cta-section::before { top: -50%; right: -10%; }
.cta-section::after { bottom: -50%; left: -10%; }

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-cta {
    display: inline-block;
    background: #e02618 !important;
    color: white !important;
    padding: 1.1rem 3.5rem !important;
    border-radius: 50px !important;
    font-weight: 700;
    font-size: 18px;
    border: none !important;
    box-shadow: 0 10px 30px rgba(255, 45, 32, 0.45) !important;
    text-decoration: none !important;
}

.btn-cta:hover {
    background: #e02618 !important;
    color: black !important;
}

/* ========================================
   TABLET RESPONSIVE (769px - 1024px)
   ======================================== */
@media (max-width: 1024px) and (min-width: 769px) {
    .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Services: 2 columns on tablet */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        gap: 15px;
        justify-content: center;
    }

    .counter-box.students {
        right: -5%;
    }

    .counter-box.courses {
        left: -5%;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

/* ========================================
   MOBILE RESPONSIVE (≤768px)
   ======================================== */
@media (max-width: 768px) {
    .col-lg-6,
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .row {
        margin: 0;
    }

    [class*="col-"] {
        padding: 0 15px;
    }

    /* Hero Section */
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .hero-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    .hero-section p br {
        display: none;
    }

    /* BUTTONS: Centered, Stacked */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    .btn-explore,
    .btn-contact {
        width: 100%;
        max-width: 280px;
        margin: 0 !important;
        margin-left: 0 !important;
        display: block;
        text-align: center;
    }

    .btn-explore[style*="margin-top"],
    .btn-contact[style*="margin-top"] {
        margin-top: 0 !important;
    }

    /* Hero Image */
    .hero-image img {
        height: auto !important;
        max-height: 300px;
        object-fit: cover;
        border-radius: 20px;
        margin-top: 0;
    }

    /* COUNTERS: Below Image, Centered */
    .counter-box {
        position: static !important;
        display: block;
        width: 80%;
        max-width: 200px;
        margin: 1.5rem auto !important;
        padding: 1.2rem;
        border-radius: 15px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }

    .counter-box h3 {
        font-size: 2rem;
        margin-bottom: 0.3rem;
    }

    .counter-box p {
        font-size: 0.85rem;
    }

    /* Other Sections */
    .services-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-card {
        margin-bottom: 1.5rem;
        padding: 2rem 1.5rem;
    }

    /* Services: 1 column on mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card h4 {
        font-size: 1.2rem;
    }

    .service-card p {
        font-size: 0.95rem;
    }

    .service-btn {
        width: 100%;
        max-width: 200px;
        display: block;
        margin: 1rem auto 0;
        padding: 0.8rem 1.5rem;
        font-size: 15px;
        min-width: auto;
        background-color: #e02618;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .btn-cta {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        display: block;
        padding: 1rem 2rem !important;
        text-align: center;
    }
}

/* ========================================
   SMALL MOBILE RESPONSIVE (≤480px)
   ======================================== */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-section p {
        font-size: 0.95rem;
    }

    .btn-explore,
    .btn-contact {
        font-size: 16px;
        padding: 10px 24px !important;
        height: 50px;
        max-width: 260px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .service-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }

    .service-card h4 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .service-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }

    .service-icon svg {
        width: 35px;
        height: 35px;
    }

    .service-btn {
        max-width: 180px;
        font-size: 14px;
        padding: 0.7rem 1.2rem;
        margin-top: 0.8rem;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-content p {
        font-size: 0.95rem;
    }

    .btn-cta {
        font-size: 16px;
        padding: 0.9rem 1.5rem !important;
        max-width: 260px;
    }

    .counter-box {
        width: 90%;
        padding: 1rem;
    }

    .counter-box h3 {
        font-size: 1.75rem;
    }

    /* Enhanced button centering for small mobile */
    .hero-buttons {
        padding: 0 1rem;
    }

    .btn-explore,
    .btn-contact {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}