* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f9f9f9;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.nav-toggle-label span {
    background: #2f559c;
    height: 3px;
    width: 100%;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.nav-toggle-label span:nth-child(1) {
    top: 0;
}

.nav-toggle-label span:nth-child(2) {
    top: 8px;
}

.nav-toggle-label span:nth-child(3) {
    top: 16px;
}

.nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
    transform: rotate(45deg);
    top: 8px;
}

.nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
    opacity: 0;
}

.nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
    transform: rotate(-45deg);
    top: 8px;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    text-decoration: none;
    color: #2f559c;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav ul li a:hover {
    color: #9e8f3e;
}

.contact-info {
    color: #2f559c;
    font-weight: 600;
}

.contact-info span {
    text-decoration: none;
}

.contact-info i {
    margin-right: 5px;
}

.mobile-contact {
    display: none;
}

/* Hero Section with CDN-Hosted Video */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the video covers the entire hero area */
    z-index: -1;
    pointer-events: none; /* Prevents interaction with the video */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.hero-content {
    z-index: 1;
    animation: fadeIn 2s ease-in-out;
    padding: 20px; /* Default padding */
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.cta-button {
    background: #2f559c;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: #9e8f3e;
    transform: scale(1.05);
}

/* Benefits Section */
.benefits-section {
    padding: 80px 0;
    text-align: center;
}

.benefits-section h2 {
    font-size: 2.5rem;
    color: #2f559c;
    margin-bottom: 50px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.benefit-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-10px);
}

.benefit-item i {
    font-size: 2rem;
    color: #9e8f3e;
    margin-bottom: 20px;
}

.benefit-item h3 {
    font-size: 1.5rem;
    color: #2f559c;
    margin-bottom: 10px;
}

/* Updated Course Details Section */
.course-details {
    display: flex;
    justify-content: center;
    animation: fadeIn 1.5s ease-in-out;
}

.course-card {
    max-width: 900px;
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f1f1f1 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-content {
    padding: 40px;
}

.course-title {
    font-size: 2.2rem;
    color: #2f559c;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
}

.course-price-tag {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    background: #f9f9f9;
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.price-label {
    font-size: 1.2rem;
    color: #555;
    font-weight: 500;
}

.price-value {
    font-size: 1.5rem;
    color: #9e8f3e;
    font-weight: 700;
}

.price-note {
    font-size: 1rem;
    color: #777;
    font-weight: 400;
}

.course-description {
    margin-bottom: 30px;
}

.course-description p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.course-description p strong {
    color: #2f559c;
}

.course-cta {
    display: block;
    margin: 0 auto;
    font-size: 1.1rem;
    max-width: 200px;
    text-align: center;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: #f1f1f1;
}

.about-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2f559c;
    margin-bottom: 50px;
}

.about-content {
    display: flex;
    gap: 30px;
    align-items: center;
}

.about-content img {
    max-width: 300px;
    border-radius: 10px;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    color: #fff;
    position: relative;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.testimonials-section .container {
    position: relative;
}

.testimonials-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.testimonial-item p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.testimonial-item h4 {
    font-size: 1rem;
    font-weight: 600;
}

/* Course Dashboard */
.course-dashboard {
    padding: 80px 0;
}

.course-dashboard h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2f559c;
    margin-bottom: 50px;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.module-item {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.module-item h3 {
    font-size: 1.5rem;
    color: #2f559c;
    margin-bottom: 20px;
}

.module-item video {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.download-link {
    color: #9e8f3e;
    text-decoration: none;
    font-weight: 600;
}

.download-link i {
    margin-right: 5px;
}

/* Register and Login Sections */
.register-section, .login-section {
    padding: 80px 0;
    text-align: center;
}

.register-section h2, .login-section h2 {
    font-size: 2.5rem;
    color: #2f559c;
    margin-bottom: 30px;
}

form {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 1.1rem;
    color: #2f559c;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #2f559c;
    outline: none;
}

#card-element {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background: #2f559c;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-section p {
    font-size: 1rem;
}

.footer-phone {
    color: #fff;
    text-decoration: none;
}

.social-links a {
    color: #fff;
    margin-right: 15px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #9e8f3e;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: space-between;
        align-items: center;
    }

    .logo img {
        height: 60px; /* Larger logo on mobile */
    }

    .desktop-contact {
        display: none; /* Hide phone number on mobile */
    }

    .mobile-contact {
        display: block; /* Show phone number in hamburger menu */
        margin-top: 20px;
    }

    .mobile-contact span {
        color: #2f559c;
        font-weight: 600;
        text-decoration: none;
    }

    .nav-toggle-label {
        display: block;
        order: 2;
    }

    .nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        order: 3;
    }

    .nav-toggle:checked ~ .nav {
        max-height: 400px; /* Increased to accommodate phone number */
    }

    .nav ul {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
    }

    .nav ul li {
        margin-left: 0;
    }

    .nav ul li a {
        font-size: 1.2rem;
    }

    .hero-content {
        padding: 40px; /* Increased padding on mobile */
    }

    .hero-content h1 {
        font-size: 2rem; /* Reduced from 2.5rem */
    }

    .hero-content p {
        font-size: 1rem; /* Reduced from 1.2rem */
    }

    .course-content {
        padding: 30px;
    }

    .course-title {
        font-size: 1.8rem;
    }

    .course-price-tag {
        flex-direction: column;
        gap: 5px;
        padding: 8px 15px;
    }

    .price-label, .price-value, .price-note {
        font-size: 1rem;
    }

    .course-description p {
        font-size: 1rem;
        text-align: left;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-content img {
        max-width: 100%;
    }

    form {
        padding: 30px;
    }
}