/* assets/css/style.css */
:root {
    --primary: #C8102E;
    --primary-dark: #a30e25;
    --dark: #111111;
    --light: #f9f9f9;
    --white: #ffffff;
    --gray: #666666;
    --border: #e0e0e0;
    --radius: 8px;
    --transition: 0.3s ease;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1rem; color: var(--gray); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

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

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

/* Header */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -1px;
}

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

.main-nav a {
    color: var(--dark);
    font-weight: 600;
    padding: 10px;
}

.main-nav a.active, .main-nav a:hover {
    color: var(--primary);
}

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    min-width: 220px;
    border-radius: var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 10px 0;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 10px 20px;
    font-weight: 400;
}

.dropdown a:hover {
    background: var(--light);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark);
}

.mobile-only {
    display: none;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-bg {
    background-color: var(--light);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title span {
    color: var(--primary);
    display: block;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(17, 17, 17, 0.8), rgba(17, 17, 17, 0.8)), url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
    color: var(--white);
    padding: 120px 0;
    text-align: center;
}

.hero p {
    color: #e0e0e0;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

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

/* Urgency Banner */
.urgency-banner {
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 15px 0;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Course Card */
.course-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.course-card:hover { transform: translateY(-5px); }

.course-img {
    height: 200px;
    background: var(--light);
    object-fit: cover;
    width: 100%;
}

.course-content {
    padding: 20px;
}

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

input, select, textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-alert {
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: none;
}
.form-alert.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; display: block;}
.form-alert.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; display: block;}

/* Footer */
.site-footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.site-footer p { color: #aaa; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: #aaa; }
.site-footer a:hover { color: var(--primary); }

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #888;
}

/* Floating Actions */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.float-btn:hover { transform: scale(1.1); }
.whatsapp-float { background-color: #25D366; }
.call-float { background-color: var(--primary); }

/* List styles */
.check-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}
.check-list li::before {
    content: '✓';
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Single course page */
.course-hero {
    background-color: var(--light);
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
}

/* Map responsive */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
}

/* Responsive */
@media (max-width: 992px) {
    .grid-4, .footer-grid { grid-template-columns: repeat(2, 1fr); }
    h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .header-inner { height: 70px; }
    .header-cta { display: none; }
    .menu-toggle { display: block; }
    
    .main-nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: var(--shadow);
        padding: 20px;
        display: none;
        flex-direction: column;
    }
    
    .main-nav.active { display: flex; }
    .main-nav .nav-links { flex-direction: column; gap: 10px; align-items: flex-start;}
    .has-dropdown .dropdown { position: static; visibility: visible; opacity: 1; box-shadow: none; padding-left: 20px; display: none;}
    .has-dropdown.active .dropdown { display: block; }
    .mobile-only { display: block; width: 100%; }
    
    .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
    .hero { padding: 80px 0; }
    .hero .btn-group { flex-direction: column; }
}
