/* =========================
   RESET & BASE
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: #f5f7fa;
    color: #333;
}

/* =========================
   PRE HEADER
========================= */
.pre-header {
    background: #2c3e50;
    color: #fff;
    padding: 6px 20px;
    font-size: 14px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.pre-header i {
    margin-right: 5px;
}

.pre-header .right a {
    color: #fff;
    margin-left: 10px;
    font-size: 14px;
    text-decoration: none;
}

.pre-header .right a:hover {
    color: #f39c12;
}


.pre-header {
    display: flex;
    justify-content: space-between;
}

/* =========================
   MAIN HEADER
========================= */
.main-header {
    background: #ffffff;
    padding: 12px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 1px solid #ddd;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
}

/* =========================
   NAVIGATION
========================= */
/* NAV CONTAINER */
nav {
    flex: 1; /* take full width between logo and right side */
    display: flex;
    justify-content: center; /* CENTER MENU */
    align-items: center;
    gap: 25px; /* spacing between menu items */
}

/* NAV LINKS */
nav a {
    text-decoration: none;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    padding: 6px 10px;
    transition: all 0.3s ease;
}

/* HOVER EFFECT */
nav a:hover {
    color: #e74c3c;
}

/* ACTIVE MENU */
nav a.active {
    color: #e74c3c;
    font-weight: bold;
    border-bottom: 2px solid #e74c3c;
}

/* =========================
   MAIN CONTENT
========================= */
.main-content {
    padding: 20px;
    min-height: 60vh;
}

/* =========================
   HERO (INNER PAGE)
========================= */
.page-hero {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.page-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.5);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    padding: 0 20px;
}

.hero-overlay h1 {
    color: #fff;
    margin-bottom: 10px;
}

.breadcrumb-links {
    font-size: 14px;
}

.breadcrumb-links a {
    color: #fff;
    text-decoration: none;
}

.breadcrumb-links span {
    color: #ddd;
    margin: 0 5px;
}

.breadcrumb-links .active {
    color: #fff;
    font-weight: bold;
}

/* =========================
   HOME PAGE
========================= */
.home-container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

section {
    margin-bottom: 50px;
    text-align: center;
}

/* BUTTON (GLOBAL - SINGLE SOURCE) */
.btn {
    background: #3498db;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    margin: 5px;
    display: inline-block;
    border-radius: 5px;
}

.btn:hover {
    background: #2980b9;
}

/* COURSES (HOME) */
.course-list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.home-course-card {
    flex: 1;
    min-width: 250px;
    background: #f5f7fa;
    padding: 20px;
    border-radius: 8px;
}

/* STATS */
.stats {
    display: flex;
    justify-content: space-around;
    background: #34495e;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    flex-wrap: wrap;
}

.stat-box {
    margin: 10px;
}

/* TESTIMONIAL */
.testimonial-box {
    background: #f5f7fa;
    padding: 20px;
    border-radius: 8px;
}

/* CTA */
.cta {
    background: #3498db;
    color: #fff;
    padding: 30px;
    border-radius: 8px;
}
/* =========================
   ABOUT PAGE
========================= */
section {
    padding: 40px 20px; /* reduce from 60 → 40 */
}

/* REMOVE flex from container */
.about-container {
    max-width: 1100px;
    margin: auto;
}

/* MAIN ROW */
.about-row {
    display: flex;
    gap: 40px;
    align-items: flex-start; /* ✅ FIX */
}

/* TEXT */
.about-text {
    flex: 1;
    
}

.about-text h2 {
    font-size: 32px;
    margin-bottom: 15px;
    margin-top: 0; /* ✅ remove gap */
}

.about-text p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.about-text {
    text-align: justify; /* ensures left alignment */
}


/* IMAGE */
.about-image {
    flex: 1;
}
.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.about-text {
    flex: 1.2;
}

.about-image {
    flex: 1;
}


/* 2 MAIN ABOUT LAYOUT */
.about-main {
    padding: 60px 20px;
}

.about-main-row {
    display: flex;
    gap: 30px;
    max-width: 1100px;
    margin: auto;
}

/* LEFT CONTENT */
.about-main-text {
    flex: 2;
}

.about-main-text h2 {
    margin-bottom: 15px;
}

.about-main-text p {
    line-height: 1.7;
    margin-bottom: 10px;
}

/* RIGHT SIDEBAR */
.about-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* CARD DESIGN */
.card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.card h3 {
    margin-bottom: 10px;
}


section + section {
    margin-top: 0; /* prevents stacking gaps */
}
/* =========================
   COURSES PAGE
========================= */
.courses-container {
    max-width: 1100px;
    margin: auto;
    padding: 30px 20px;
}

.course-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.course-card {
    flex: 1;
    min-width: 280px;
    background: #f5f7fa;
    padding: 20px;
    border-radius: 10px;
    transition: 0.3s;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-card ul {
    padding-left: 20px;
    margin: 15px 0;
}

/* =========================
   CONTACT PAGE
========================= */
.contact-container {
    display: flex;
    gap: 30px;
    padding: 40px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    background: #2c3e50;
    color: #fff;
    padding: 25px;
    border-radius: 10px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* =========================
   FOOTER
========================= */
.footer {
    background: #2c3e50;
    color: #fff;
    margin-top: 40px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    padding: 30px 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 12px;
}

.footer-col a {
    color: #ddd;
    text-decoration: none;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding: 10px;
    background: #1a252f;
    font-size: 13px;
}

/* =========================
   HERO SLIDER (FIXED)
========================= */
/* =========================
   HERO SLIDER (FULL WIDTH FIX)
========================= */
.hero-slider {
    width: 100%;
    height: 90vh;
    position: relative;
    overflow: hidden;
}

/* Each Slide */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

/* Image FULL STRETCH */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dark overlay */
.slide::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    top: 0;
    left: 0;
    z-index: 1;
}

/* Text */
.slide-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: #fff;
    max-width: 500px;
    z-index: 2;
}

.slide-content h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.slide-content p {
    margin-bottom: 15px;
}

/* =========================
   BACK TO TOP
========================= */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;

    background: #3498db;
    color: #fff;

    border: none;
    padding: 12px 15px;
    border-radius: 50%;

    cursor: pointer;
    display: none;

    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 999;
}

/* =========================
   RESPONSIVE
========================= */
/* =========================
   RESPONSIVE NAV
========================= */
@media (max-width: 768px) {

    nav {
        width: 100%;
        justify-content: flex-start; /* move left on mobile */
        flex-wrap: wrap;
        gap: 10px;
    }

    nav a {
        padding: 5px 8px;
        font-size: 14px;
    }
/* =========================
   PRE HEADER - MOBILE (3 LINE FIX)
========================= */
@media (max-width: 768px) {

    .pre-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px 15px;
    }

    /* LEFT SECTION (Address + Phone) */
    .pre-header .left {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 100%;
    }

    /* EACH LINE */
    .pre-header .left div {
        display: block;
        width: 100%;
        font-size: 13px;
    }

    /* RIGHT SECTION (SOCIAL) */
    .pre-header .right {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        gap: 12px;
        margin-top: 4px;
    }

    .pre-header .right a {
        margin-left: 0; /* remove desktop spacing */
        font-size: 14px;
    }
}

    .footer-container {
        flex-direction: column;
    }

    .hero-slider {
        height: 60vh;
    }

    .slide-content h2 {
        font-size: 22px;
    }


    /* =========================
   MOBILE MENU SYSTEM
========================= */

/* Hide hamburger on desktop */
.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* =========================
   MOBILE VIEW
========================= */
@media (max-width: 768px) {

    .main-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    /* Show hamburger */
    .menu-toggle {
        display: block;
    }

    /* Hide nav initially */
    nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;

        flex-direction: column;
        align-items: flex-start;

        padding: 15px 20px;
        gap: 10px;

        display: none;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 999;
    }

    /* Show when active */
    nav.active {
        display: flex;
    }

    nav a {
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }

    /* =========================
   ABOUT PAGE MOBILE FIX
========================= */

/* STACK TEXT + IMAGE */
.about-row {
    flex-direction: column;
    gap: 20px;
}

/* IMAGE FULL WIDTH */
.about-image img {
    width: 100%;
    height: auto;
}

/* FIX TEXT */
.about-text {
    text-align: left; /* better for mobile */
}

/* STACK MAIN + SIDEBAR */
.about-main-row {
    flex-direction: column;
    gap: 20px;
}

/* SIDEBAR FULL WIDTH */
.about-sidebar {
    width: 100%;
}

/* CARD IMPROVEMENT */
.card {
    padding: 15px;
}

}