/* =========================================
   BASE STYLING & VARIABLES
========================================= */
:root {
    --primary-dark: #0f2027;
    --primary: #203a43;
    --secondary: #2c5364;
    --accent: #f5ad1d;
    --text-dark: #333;
    --text-light: #fff;
    --bg-light: #f8f9fa;
    --course-primary: #2563eb;
    --course-dark: #1e3a8a;
    --course-hover: #1e40af;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

/* =========================================
   GLOBAL BUTTONS & SECTIONS
========================================= */
.btn {
    padding: 12px 35px;
    background: var(--accent);
    color: #000;
    font-weight: 600;
    border-radius: 5px;
    display: inline-block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(245, 173, 29, 0.4);
    transform: translateY(-3px);
}

section {
    padding: 80px 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background: var(--accent);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* =========================================
   HOME: HERO SECTION (SCROLLING BANNERS)
========================================= */
.hero-slider {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
    background: var(--primary-dark);
}

.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(15, 32, 39, 0.8), rgba(44, 83, 100, 0.7));
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 3;
    color: var(--text-light);
    max-width: 900px;
    padding: 0 20px;
    transform: translateY(30px);
    transition: transform 1s ease;
}

.slide.active .slide-content {
    transform: translateY(0);
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

.slider-btn:hover { background: var(--accent); color: #000; }
.prev { left: 20px; }
.next { right: 20px; }

/* =========================================
   HOME: HOW TO USE SECTION
========================================= */
.how-use-section {
    padding: 80px 10%;
    background: #fff;
}

.how-use-container {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.how-use-text {
    flex: 1;
    min-width: 300px;
}

.how-use-text h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
}

.how-use-text h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background: var(--accent);
    position: absolute;
    bottom: -10px;
    left: 0;
}

.how-use-text p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.how-use-video {
    flex: 1;
    min-width: 300px;
}

.how-use-video iframe {
    width: 100%;
    height: 315px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* =========================================
   HOME: COMPANY DETAILS (ABOUT US)
========================================= */
.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
}

.about-text { flex: 1; min-width: 300px; }
.about-text h3 { font-size: 1.8rem; margin-bottom: 15px; color: var(--secondary); }
.about-text p { line-height: 1.8; color: #555; margin-bottom: 20px; }

.about-stats { display: flex; gap: 20px; margin-top: 30px; }
.stat-box { background: #fff; padding: 20px; border-left: 4px solid var(--accent); box-shadow: 0 4px 10px rgba(0,0,0,0.05); flex: 1; }
.stat-box h4 { font-size: 2rem; color: var(--primary); }
.stat-box p { margin: 0; font-size: 0.9rem; font-weight: 600; }

.about-img { flex: 1; min-width: 300px; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.about-img img { width: 100%; display: block; }

/* =========================================
   HOME: WHY CHOOSE US (FEATURES)
========================================= */
.features-section { background: #fff; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: transform 0.3s ease;
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.feature-card i { font-size: 3rem; color: var(--accent); margin-bottom: 20px; }
.feature-card h4 { font-size: 1.2rem; margin-bottom: 15px; color: var(--primary); }

/* =========================================
   HOME: POPULAR COURSES
========================================= */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.course-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.15); }

.course-icon-header {
    height: 180px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.course-info { padding: 25px; text-align: center; }
.course-info h4 { font-size: 1.3rem; margin-bottom: 10px; color: var(--primary); }
.course-info p { color: #666; margin-bottom: 20px; font-size: 0.95rem; }

/* =========================================
   HOME: LMS SECTION
========================================= */
.lms-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.lms-content { max-width: 900px; margin: auto; }
.lms-icon { font-size: 4rem; color: #38bdf8; margin-bottom: 20px; }
.lms-section h2 { font-size: 2rem; margin-bottom: 15px; }
.lms-desc { font-size: 1.05rem; color: #cbd5f5; margin-bottom: 30px; line-height: 1.6; }

.lms-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 30px;
    text-align: left;
}

.lms-features div {
    background: rgba(255,255,255,0.05);
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.lms-btn {
    padding: 12px 30px;
    font-size: 1rem;
    background: #38bdf8;
    border-radius: 30px;
    transition: 0.3s;
}

.lms-btn:hover { background: #0ea5e9; transform: scale(1.05); }

/* =========================================
   COURSE SPECIFIC STYLES (e.g. adca.php)
========================================= */
.course-hero {
    background: linear-gradient(135deg, var(--course-primary), var(--course-dark));
    color: #fff;
    text-align: center;
    padding: 60px 0px;
    margin-top: 0px; /* Accounts for potential fixed navbars */
}
.course-hero h1 { font-size: 2.2rem; }
.course-hero p { margin-top: 10px; font-size: 1.1rem; }

.course-container {
    max-width: 1000px;
    margin: auto;
    padding: 40px 20px;
}

.course-box {
    background: #fff;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.course-box:hover { transform: translateY(-5px); }
.course-box h2 { margin-bottom: 15px; color: var(--course-primary); }
.course-box h4 { margin-top: 12px; color: #111; }
.course-box ul { padding-left: 20px; }
.course-box ul li { margin-bottom: 8px; }

.course-cta {
    text-align: center;
    padding: 40px;
    background: #f1f5f9;
    border-radius: 12px;
    margin-top: 20px;
}

.course-cta h3 { margin-bottom: 15px; font-size: 1.8rem; }
.course-cta p { margin-bottom: 20px; color: #555;}
.course-cta .btn {
    background: var(--course-primary);
    color: #fff;
    border-radius: 30px;
    padding: 15px 35px;
}
.course-cta .btn:hover {
    background: var(--course-hover);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

/* =========================================
   RESPONSIVE DESIGN QUERIES
========================================= */
@media (max-width: 768px) {
    .slide-content h1 { font-size: 2.2rem; }
    .slide-content p { font-size: 1rem; }
    section { padding: 50px 5%; }
    .lms-features { grid-template-columns: 1fr; }
    .how-use-container { flex-direction: column; }
    .how-use-video iframe { height: 220px; }
    .course-hero h1 { font-size: 1.6rem; }
}