/* --- RESET & BASIC STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #2563eb; 
    --secondary-color: #1e40af;
    --accent-color: #fbbf24;
    --light-bg: #f3f4f6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

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


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

ul {
    list-style: none;
}

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

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.open-link {
    background-color: var(--primary-color);
    color: var(--white);
}

.open-link:hover {
    background-color: var(--secondary-color);
}

.full-width {
    width: 100%;
    text-align: center;
}

/* --- HEADINGS --- */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* --- HEADER & NAV --- */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links .nav-btn {
    color: white;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(to right, #eef2ff, #ffffff);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #111827;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* --- STATS --- */
.stats-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
}

/* --- COURSES --- */
.courses {
    padding: 80px 0;
    background: var(--light-bg);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.course-card:hover {
    transform: translateY(-5px);
}
.card-header img {
    width: 100%;
    height: 200px; /* same height for all cards */
    object-fit: cover; /* or 'contain' if you don’t want crop */
    display: block;
    border-radius: 8px 8px 0 0; /* optional nice UI */
}
.card-body {
    padding: 20px;
}

.tag {
    background: #dbeafe;
    color: var(--secondary-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-dark);
    margin: 10px 0;
}


/* --- CONTACT --- */
.contact {
    padding: 80px 0;
    background: var(--white);
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}

/* --- FOOTER --- */
footer {
    background: #111827;
    color: #d1d5db;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #374151;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* --- RESPONSIVE MOBILE DESIGNS --- */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none; /* Hidden by default on mobile */
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        text-align: center;
    }

    .nav-links.active {
        display: flex; /* Show when active class is added by JS */
    }

    .hero h1 { font-size: 2rem; }
}

/* Modal Overlay */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.6);
  transition: 0.3s ease;
}

/* Modal Content Box */
.modal-content {
  background: #fff;
  margin: 8% auto;
  padding: 25px 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  animation: slideDown 0.4s ease;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 26px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: 0.2s;
}

.close-btn:hover {
  color: #ff4d4d;
}

/* Form Inputs */
.modal form input[type="text"],
.modal form input[type="email"],
.modal form input[type="file"] {
  width: 100%;
  padding: 12px 15px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s;
}

.modal form input:focus {
  border-color: #3399cc;
  outline: none;
}

/* Button */
.modal form button {
  width: 100%;
  padding: 12px;
  margin-top: 15px;
  background: #3399cc;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.modal form button:hover {
  background: #287abf;
}

/* Label */
.modal form label {
  font-size: 14px;
  margin-top: 10px;
  display: block;
  color: #555;
}

/* Slide Down Animation */
@keyframes slideDown {
  0% {
    transform: translateY(-30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive for Mobile */
@media screen and (max-width: 480px) {
  .modal-content {
    margin: 15% 10px;
    padding: 20px 15px;
  }
}
.about-more {
    display: none;
}

.about-toggle {
    margin-top: 15px;
    background: none;
    border: none;
    color: #007bff;
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
}

.about-toggle:hover {
    text-decoration: underline;
}
