/* ================= CSS VARIABLES (New Color Scheme) ================= */
:root {
    --primary: #0b421a; /* Dark Green */
    --secondary: #e67e22; /* Burnt Orange */
    --light-bg: #f4f9f5;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --border: #dddddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ================= Top Bar ================= */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    font-size: 14px;
    flex-wrap: wrap;
}

.top-contact span { margin-right: 15px; }
.btn-franchise {
    background-color: var(--secondary);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 4px;
    font-weight: bold;
}
.top-social a {
    color: var(--primary);
    background: var(--white);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-left: 5px;
}

/* ================= Header & Nav ================= */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    
    /* ADD THESE TWO LINES TO FIX THE OVERLAP ISSUE */
    position: relative; 
    z-index: 1000;      
}

.logo img {
    height: 60px; /* Adjust based on your logo */
}

/* FIX: Added '>' so flex only applies to the top menu, not the dropdown menus */
.main-nav > ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.main-nav a {
    font-weight: bold;
    color: var(--primary);
}

/* Dropdown Menu CSS */
.dropdown { 
    position: relative; 
}

.dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 220px;
    z-index: 999;
    list-style: none;
    padding: 10px 0;
}

/* Show the menu ONLY when hovering */
.dropdown:hover .dropdown-menu { 
    display: flex; 
    flex-direction: column;
}

.dropdown-menu li { 
    padding: 8px 15px; 
}

.dropdown-menu a { 
    font-weight: normal; 
}

.dropdown-menu li:hover { 
    background: var(--light-bg); 
}

/* ================= Hero Slider ================= */
.hero-slider {
    position: relative;
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    background: #ccc; /* fallback */
}
.slider-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 20px;
}
.slider-btn.left { left: 10px; }
.slider-btn.right { right: 10px; }

/* ================= Marquee ================= */
.marquee-bar {
    background: var(--primary);
    color: var(--white);
    padding: 8px 0;
    font-weight: bold;
    font-size: 15px;
}

/* ================= Quick Cards ================= */
.quick-cards-wrapper { padding: 40px 0; background: var(--light-bg); }
.quick-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    text-align: center;
}
.q-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.q-card:hover { transform: translateY(-5px); }
.q-card i {
    font-size: 40px;
    color: var(--secondary);
    margin-bottom: 15px;
}
.q-card h3 { color: var(--primary); margin-bottom: 10px; }
.q-card p { font-size: 14px; color: var(--text-light); }

/* ================= Welcome Section ================= */
.welcome-section {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 60px 15px;
    flex-wrap: wrap;
}
.welcome-content { flex: 1; min-width: 300px; }
.welcome-content h2 { color: var(--primary); margin-bottom: 20px; font-size: 28px; }
.welcome-content p { margin-bottom: 15px; color: var(--text-light); text-align: justify; }
.welcome-image { flex: 1; min-width: 300px; text-align: center; }
.welcome-image img { max-width: 100%; border-radius: 10px; }

/* ================= 4 Blocks (Social, News, etc) ================= */
.info-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 15px 50px 15px;
}
.info-box {
    border: 1px solid var(--primary);
    border-radius: 8px;
    overflow: hidden;
}
.box-header.red-header {
    background: var(--secondary);
    color: var(--white);
    padding: 12px;
    text-align: center;
    font-weight: bold;
}
.box-content { padding: 20px; background: var(--white); min-height: 200px; }
.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    text-align: center;
}
.social-grid a {
    display: inline-block;
    padding: 15px;
    border-radius: 8px;
    color: white;
    font-size: 20px;
}
.social-grid .fb { background: #3b5998; }
.social-grid .ig { background: #E1306C; }
.social-grid .yt { background: #FF0000; }
.social-grid .wa { background: #25D366; }
.social-grid .ph { background: #d35400; }

.student-profile { display: flex; align-items: center; gap: 15px; margin-bottom: 10px; }
.student-profile img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.course-name { font-size: 13px; color: var(--primary); margin-top: 10px; font-weight: bold; }
.empty-box { background: #f9f9f9; border: 1px dashed #ccc; }

/* ================= Features ================= */
.features-section { padding: 50px 15px; }
.section-title { text-align: center; color: var(--primary); margin-bottom: 30px; font-size: 28px; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.feature-col {
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 8px;
    background: var(--white);
}
.feature-col p { margin-bottom: 12px; font-size: 14px; }
.feature-col i { color: var(--primary); margin-right: 8px; }

/* ================= Why Choose ================= */
.why-choose-section { background: var(--light-bg); padding: 60px 0; }
.split-layout { display: flex; gap: 40px; flex-wrap: wrap; }
.why-text { flex: 1; min-width: 300px; }
.section-title-left { color: var(--primary); margin-bottom: 20px; font-size: 26px; }
.why-text p { margin-bottom: 15px; color: var(--text-light); text-align: justify; }
.why-grid {
    flex: 1.5;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.w-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.w-card i { font-size: 30px; color: var(--secondary); }
.w-card h4 { color: var(--primary); margin-bottom: 5px; font-size: 16px; }
.w-card p { font-size: 13px; color: var(--text-light); }

/* ================= Process Steps ================= */
.process-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 60px 15px;
}
.process-col {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.p-header {
    padding: 15px;
    color: var(--white);
    text-align: center;
    font-weight: bold;
    font-size: 18px;
}
.bg-green { background: #008000; }
.bg-blue { background: #000080; }
.bg-purple { background: #800080; }
.p-list { list-style: none; padding: 20px; }
.p-list li { margin-bottom: 15px; font-size: 14px; line-height: 1.5; }
.p-list i { color: #555; margin-right: 8px; }

/* ================= Footer ================= */
.main-footer {
    background: var(--primary);
    color: var(--white);
    padding: 50px 0 20px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}
.footer-logo { max-width: 150px; margin-bottom: 15px; filter: brightness(0) invert(1); }
.f-col h3 { margin-bottom: 20px; font-size: 18px; color: var(--secondary); }
.f-col ul { list-style: none; }
.f-col ul li { margin-bottom: 10px; }
.f-col ul a:hover { color: var(--secondary); }
.f-col p { font-size: 14px; margin-bottom: 10px; line-height: 1.6; }
.f-col i { width: 20px; color: var(--secondary); }

/* ================= Media Queries (Mobile Responsive) ================= */
/* THIS MUST ALWAYS STAY AT THE VERY BOTTOM OF THE FILE */
@media (max-width: 768px) {
    .top-bar { flex-direction: column; text-align: center; gap: 10px; }
    
    /* FIX: Added '>' here too */
    .main-nav > ul { flex-direction: column; gap: 10px; width: 100%; text-align: center; }
    
    .dropdown-menu { position: static; width: 100%; box-shadow: none; border: 1px solid #eee; }
    .split-layout { flex-direction: column; }
    .welcome-section { flex-direction: column; text-align: center; }
    .welcome-image { order: -1; } /* Image on top in mobile */
}