/* Custom Properties */
:root {
  --primary: #2A3547;
  --white: #FFFFFF;
  --bg-light: #F5F5F5;
  --accent: #FF6B35;
  --accent-hover: #e55a2b;
  --text-dark: #333333;
  --text-light: #666666;
  --border-color: #e2e8f0;
  
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  
  --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-light);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-inline: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header p {
    font-size: 1.1rem;
}

.light-text h2, .light-text p {
    color: var(--white);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-family: var(--font-heading);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

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

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navbar */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--accent);
}

.logo.light {
    color: var(--white);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

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

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

/* Hero Section */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    background: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 800px;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Features Section */
.features {
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.features-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 107, 53, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.features-image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

/* Courses Section */
.courses.bg-pattern {
    background-color: #E6F0FA;
    background-image: radial-gradient(#d3e3f5 1px, transparent 1px);
    background-size: 20px 20px;
}

.course-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.03);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.course-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.price-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    z-index: 10;
    border: 1px solid rgba(255,255,255,0.1);
    letter-spacing: 0.5px;
}

.price-badge.free {
    background: #10b981;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
    border: none;
}

.course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .course-img img {
    transform: scale(1.05);
}

.course-content {
    padding: 1.5rem;
}

.course-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.course-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    min-height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.course-meta span i {
    color: var(--accent);
    margin-right: 0.3rem;
}

.course-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    padding-top: 0.5rem;
}

.course-footer .btn {
    width: 100%;
    padding: 0.7rem 0.5rem;
    font-size: 0.85rem;
    border-radius: 10px;
}

/* Testimonials Section */
.testimonials {
    position: relative;
    background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover fixed;
}

.testimonials-overlay {
    position: absolute;
    inset: 0;
    background: rgba(42, 53, 71, 0.85); /* var(--primary) with opacity */
}

.testimonials-container {
    position: relative;
    z-index: 1;
}

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

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 4rem;
    color: rgba(255, 107, 53, 0.1);
    font-family: Georgia, serif;
}

.quote {
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* CTA Section */
.cta {
    background-color: var(--white);
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.cta-image {
    height: 100%;
}

.cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-content {
    padding: 3rem 4rem 3rem 0;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta-form {
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.guarantee {
    font-size: 0.9rem !important;
    color: #4CAF50;
    font-weight: 600;
    margin-bottom: 0 !important;
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 4rem 0 1rem;
}

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

.footer-brand p {
    margin-top: 1rem;
    color: #cbd5e1;
    max-width: 300px;
}

.footer h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: #cbd5e1;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    .cta-grid {
        grid-template-columns: 1fr;
    }
    .cta-image {
        height: 300px;
    }
    .cta-content {
        padding: 2rem 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .features-content {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .cta-content {
        padding: 1.5rem;
    }
}

/* --- MODALS PREMIUM --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1.5rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 950px;
    max-height: 90vh;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    animation: modalShow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalShow {
    from { opacity: 0; transform: scale(0.95) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header-img {
    height: 260px;
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
}

.modal-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 1) 5%, rgba(15, 23, 42, 0) 100%);
    display: flex;
    align-items: flex-end;
    padding: 3rem;
}

.modal-header-overlay h2 {
    color: white;
    margin: 0;
    font-size: 2.8rem;
    font-weight: 800;
    text-shadow: 0 2px 15px rgba(0,0,0,0.4);
}

.modal-body {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    padding: 0;
    overflow-y: auto;
    background: white;
}

.modal-main-info {
    padding: 3.5rem;
}

.modal-info-section {
    margin-bottom: 3rem;
}

.modal-info-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
}

.modal-info-section h4 i {
    color: var(--accent);
    font-size: 1.3rem;
}

.modal-info-section p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.8;
}

.modal-sidebar {
    background: #F8FAFC;
    padding: 3.5rem;
    border-left: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--accent);
    transform: rotate(90deg) scale(1.1);
    border-color: var(--accent);
}

@media (max-width: 900px) {
    .modal-body { grid-template-columns: 1fr; }
    .modal-sidebar { border-left: none; border-top: 1px solid #E2E8F0; padding: 2.5rem; }
    .modal-main-info { padding: 2.5rem; }
    .modal-header-overlay h2 { font-size: 2rem; }
    .modal-header-img { height: 200px; }
}
