/* c:\Users\HP ZBook\Documents\Candle Light\new\styles.css */
:root {
    --primary: #f39c12; 
    --secondary: rgb(33, 39, 167); 
    --accent: #e67e22;
    --light: #f4f7f6;
    --white: #ffffff;
    --success: #27ae60;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

body { line-height: 1.6; color: #333; overflow-x: hidden; scroll-behavior: smooth; }

/* --- Header & Navigation --- */

/* Base Header Styles */
header {
    background: rgb(33, 39, 167);
    color: white;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* General Container (Used in Gallery) */
.container {
    max-width: 1200px;
    margin: auto;
}

.logo { font-size: 1.4rem; font-weight: bold; color: var(--white); text-transform: uppercase; }
.logo span { color: var(--primary); }

/* Navigation Links */
nav ul { display: flex; list-style: none; }
nav ul li { margin-left: 20px; }

header nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

header nav a:hover {
    text-decoration: underline;
    color: var(--primary);
}

/* Active menu link */
header nav a.active {
    border-bottom: 3px solid #e0a800;
    padding-bottom: 5px;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
}

/* --- Hero Section --- */
.hero {
    height: 80vh;
    background: linear-gradient(
        rgba(0,0,0,0.7),
        rgba(0,0,0,0.7)
    ),
    url('assets/img/graduation/7.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
    margin-top: 60px;
}
.hero h1 { font-size: 3rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; max-width: 800px; margin-bottom: 2rem; }
.badge-container { display: flex; gap: 15px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
.badge { background: rgba(255,255,255,0.2); padding: 5px 15px; border-radius: 20px; font-size: 0.9rem; border: 1px solid var(--primary); }

/* --- Sections & Layout --- */
section { padding: 60px 10%; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 2.2rem; color: var(--secondary); }
.section-title div { width: 50px; height: 3px; background: var(--primary); margin: 10px auto; }

/* Grid Layouts */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.card {
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    border-bottom: 4px solid transparent;
}
.card:hover { transform: translateY(-5px); border-bottom: 4px solid var(--primary); }
.card i { font-size: 2rem; color: var(--primary); margin-bottom: 15px; }

/* Course Pricing Table */
.pricing-section { background: var(--secondary); color: white; border-radius: 15px; padding: 40px; margin: 40px 0; }
.price-box { border: 1px solid rgba(255,255,255,0.2); padding: 20px; border-radius: 10px; text-align: center; }
.old-price { text-decoration: line-through; color: #bdc3c7; font-size: 0.9rem; }
.new-price { font-size: 2rem; color: var(--primary); font-weight: bold; display: block; }

/* Tags for Courses */
.course-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; justify-content: center; }
.tag { background: #eee; padding: 4px 12px; border-radius: 15px; font-size: 0.85rem; color: #555; }

/* Contact & Buttons */
.btn { padding: 12px 25px; background: var(--primary); color: white; text-decoration: none; border-radius: 5px; font-weight: bold; display: inline-block; }
.btn-whatsapp { background: #25D366; }
.contact-info i { color: var(--primary); width: 25px; }

footer { background: rgb(33, 39, 167); color: white; padding: 40px 10%; text-align: center; }
.social-links a { color: white; font-size: 1.5rem; margin: 0 12px; transition: 0.3s; }
.social-links a:hover { color: var(--primary); }

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    section { padding: 40px 5%; }
    .hero h1 { font-size: 2rem; }
    
    .menu-toggle {
        display: block;
    }

    header .container {
        flex-direction: row;
        justify-content: space-between;
    }

    nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgb(33, 39, 167);
        flex-direction: column;
        text-align: center;
    }

    nav.show {
        display: flex;
    }

    /* Fix for UL inside mobile nav */
    nav ul {
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    nav ul li {
        margin: 0;
        width: 100%;
    }

    nav a {
        display: block;
        padding: 15px;
        margin: 0;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
}

/* --- Gallery Page Specific Styles --- */

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Gallery Section Title (Left Aligned) */
.section-title-gallery {
    font-size: 2em;
    color: var(--secondary);
    margin-bottom: 20px;
    border-left: 6px solid var(--primary);
    padding-left: 15px;
    text-align: left;
}

/* Top padding for pages without Hero section */
.gallery-section {
    padding-top: 120px;
}


#navMenu ul{
  list-style:none;
  display:flex;
  justify-content:center;
  background:rgb(33, 39, 167);
  padding:15px;
}

#navMenu ul li{
  margin: 0 15px;
}

#navMenu ul li a{
  color:white;
  text-decoration:none;
  font-weight:bold;
}

#navMenu ul li a:hover,
#navMenu ul li a.active{
  color:gold;
}

/* --- Course Pages Styles --- */

/* Course Header */
.course-header {
    background: linear-gradient(135deg, var(--secondary) 0%, #1a1f71 100%);
    color: white;
    padding: 60px 5% 40px;
    text-align: center;
    margin-top: 60px; /* Offset fixed header */
}

.course-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.header-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

.course-tag {
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--primary);
    color: white;
    display: inline-block;
}

/* Course Container */
.course-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 5%;
}

.back-to-courses {
    margin-bottom: 20px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
}

.back-button i {
    margin-right: 8px;
}

.back-button:hover {
    color: var(--primary);
}

/* Course Overview */
.course-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    align-items: center;
}

.course-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.course-image img {
    width: 100%;
    height: auto;
    display: block;
}

.course-highlights {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.highlight-item:last-child {
    margin-bottom: 0;
}

.highlight-icon {
    background: var(--secondary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.highlight-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--secondary);
}

.highlight-item p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Stats */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.stat-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-bottom: 3px solid var(--primary);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary);
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* Info Cards & Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.info-card h2 {
    color: var(--secondary);
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.info-card h2 i {
    color: var(--primary);
    margin-right: 10px;
}

/* Modern List */
.modern-list {
    list-style: none;
}

.modern-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #555;
}

.modern-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--success);
}

/* Course Structure */
.course-structure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.course-structure-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
}

.course-structure-card h3 {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* CTA */
.cta-container {
    text-align: center;
    margin-top: 40px;
}

.cta-button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
}

.cta-button:hover {
    background: #e67e22;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .course-overview {
        grid-template-columns: 1fr;
    }
    .course-header {
        padding: 40px 5%;
    }
    .course-header h1 {
        font-size: 2rem;
    }
}
