/* style.css */
:root {
    --primary: #0f172a;
    --accent: #2563eb;
    --text: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.max-w-800 { max-width: 800px; }
.py-section { padding: 100px 0; }
.bg-light { background-color: var(--bg-light); }
.bg-white { background-color: var(--white); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-50 { margin-top: 50px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none; }

/* Navbar */
nav {
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    padding: 25px 0;
    transition: all 0.4s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

nav.scrolled .logo { color: var(--primary); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
}

nav.scrolled .nav-links a { color: var(--text); }
.nav-links a:hover, .nav-links a.active { color: var(--accent) !important; }

.btn-enroll {
    background: var(--accent);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

nav.scrolled .menu-toggle { color: var(--primary); }

/* Hero */
.hero {
    height: 100vh;
    background: url('images/image1.png')no-repeat center center/cover;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.4));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero h1 span {
    color: var(--white);
    text-decoration: underline;
    text-decoration-color: var(--accent);
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 16px 35px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn.primary { background: var(--accent); color: var(--white); }
.btn.secondary { background: rgba(255,255,255,0.1); color: var(--white); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); }
.btn:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

/* Section Elements */
.section-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; color: var(--primary); }
.section-subtitle { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto; }
.underline { height: 6px; width: 60px; background: var(--accent); border-radius: 3px; margin: 0 auto 30px; }
.underline.left { margin-left: 0; }

/* Grid & Layouts */
.flex-row { display: flex; gap: 60px; align-items: center; }
.align-start { align-items: flex-start; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); }
.gap-30 { gap: 30px; }
.gap-40 { gap: 40px; }

/* Courses Card */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.course-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    transition: all 0.4s ease;
    border: 1px solid var(--border);
}

.course-card:hover { transform: translateY(-12px); box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1); }
.card-img { height: 220px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.course-card:hover .card-img img { scale: 1.1; }

.course-info { padding: 30px; text-align: left; }
.course-info h3 { font-size: 1.4rem; margin-bottom: 12px; }
.course-info p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 20px; }
.course-meta { display: flex; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--border); font-weight: 600; color: var(--primary); }

.btn-outline {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    margin-top: 20px;
}

/* Page Banner */
.page-banner {
    padding: 160px 0 100px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.page-banner.dark {
    background: var(--primary);
    color: var(--white);
}

.page-banner h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 15px; }

/* Timeline */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 50px; }
.time-dot { position: absolute; left: -36px; top: 8px; width: 14px; height: 14px; background: var(--accent); border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 0 0 4px var(--bg-light); }
.time-year { font-weight: 800; color: var(--accent); font-size: 1.2rem; margin-bottom: 5px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; }
.info-item { display: flex; gap: 20px; margin-bottom: 30px; }
.info-item i { font-size: 1.5rem; color: var(--accent); margin-top: 5px; }
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; }
.form-group input, .form-group textarea { width: 100%; padding: 14px; border-radius: 10px; border: 1px solid var(--border); font-size: 1rem; }
.form-group textarea { height: 150px; resize: none; }

/* Footer */
.footer { background: var(--primary); color: #94a3b8; padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 60px; }
.footer h4 { color: var(--white); margin-bottom: 25px; font-size: 1.1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: inherit; text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: var(--white); padding-left: 5px; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; }

/* Responsive */
@media (max-width: 992px) {
    .flex-row { flex-direction: column; text-align: center; }
    .text-side { order: 2; }
    .image-side { order: 1; margin-bottom: 40px; }
    .contact-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 3.2rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .hero h1 { font-size: 2.8rem; }
}
