/* Hero Section Styling */
.hero-section {
    height: 100vh; /* Takes full viewport height */
    display: flex;
    align-items: center; /* Vertically center content */
    justify-content: start; /* Align content to the start (left) */
    padding-left: 10%; /* Indent content from the left edge */
    padding-right: 20px; /* Some padding on the right */
    padding-top: 70px; /* Account for fixed navbar */
    box-sizing: border-box; /* Include padding in height calculation */
    position: relative; /* Needed for background image positioning */
    color: white; /* Default text color for hero content */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Subtle text shadow for readability */
    overflow: hidden; /* Hide any overflow from background image */
    margin-top: -70px; /* Offset the body padding to keep full height */
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* The linear gradient and background image combined */
    background:
        linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0,0,0,0) 100%), /* Dark to transparent gradient */
        url('../images/french-books.jpg') right / cover no-repeat; /* Image on the right, covering the area */
    background-size: auto 100%, cover; /* Gradient takes auto width, 100% height. Image covers. */
    background-position: left, right; /* Gradient from left, image from right */
    z-index: -1; /* Place behind content */
}

.hero-content {
    max-width: 50%; /* Constrain text width to about half the screen for better readability */
    text-align: left; /* Ensure text alignment */
}

.hero-content p {
    font-family: 'Courier Prime', monospace; /* Courier Prime Italic for paragraph */
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-family: 'Special Elite', cursive; /* Special Elite for main heading */
    font-size: 2.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero-content .subtitle {
    font-family: 'Courier Prime', monospace; /* Courier Prime Regular for subtitle */
    font-style: normal; /* Ensure it's not italic */
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-green); /* Use the accent green for "START FREE LESSON" */
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-custom {
    padding: 12px 28px;
    border-radius: 30px; /* Highly rounded */
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    margin-right: 15px; /* Space between buttons */
    border: none; /* Remove default button border */
    color: var(--light-text);
}

.btn-enroll-now {
    background-color: var(--button-enroll);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-enroll-now:hover {
    background-color: #A6A09E; /* Slightly darker on hover for C6BCBA */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.btn-free-trial {
    background-color: var(--button-free-trial);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-free {
    padding: 20px 0; /* Reduced padding to make it smaller */
    text-align: center;
    font-size: 0.8rem; /* Reduced font size for footer text */
    margin-top: auto; /* Push footer to the bottom */
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2); /* Subtle shadow at top of footer */
}

/* MODERNIZED PRACTICE SECTION STYLING */
/* Practice More Section */
.practice-section {
    padding: 80px 15px;
    background-color: var(--light-bg-body);
    flex-grow: 1;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-text);
    text-align: center;
}

.practice-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    background-color: var(--card-bg);
    padding: 30px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none; /* Remove underline for links */
    color: inherit; /* Inherit text color */
}

.practice-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.practice-card h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--accent-green);
    margin-bottom: 15px;
}

.practice-card p {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 0;
}
.practice-card .icon {
    font-size: 3rem;
    color: var(--accent-green);
    margin-bottom: 20px;
}
.practice-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.practice-card.disabled:hover {
    transform: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08); /* No change on hover if disabled */
}

/* Adjustments for the dropdown toggle to ensure consistent padding/alignment */
.navbar-nav .nav-item.dropdown .nav-link {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    height: 100%; /* Ensure it fills the nav-item height */
}

/* Footer Styling */
.footer {
    background-color: var(--primary-dark-bg);
    color: var(--light-text);
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
    margin-top: auto;
}

.footer p {
    margin-bottom: 5px;
}

.footer .social-icons a {
    color: var(--light-text);
    font-size: 1.2rem;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.footer .social-icons a:hover {
    color: var(--accent-green);
}
/* Navbar Styling - Transparent for hero section only */
.navbar.transparent-navbar {
    background-color: rgba(30, 39, 73, 0.1) !important; /* Very transparent dark blue */
    backdrop-filter: blur(5px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Navbar when scrolled (solid background) */
.navbar.transparent-navbar.scrolled {
    background-color: var(--primary-dark-bg) !important;
    backdrop-filter: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.navbar-brand {
    font-family: 'Special Elite', cursive; /* Special Elite for brand */
    color: var(--light-text) !important; /* Set default color to white */
    font-size: 1.8rem;
    font-weight: 700;
    transition: color 0.3s ease; /* Smooth transition for hover effect */
    white-space: nowrap; /* Prevent text wrapping */
}

.navbar-nav .nav-link {
    font-family: 'Special Elite', cursive; /* Special Elite for nav links */
    color: var(--light-text) !important; /* Ensure light text color */
    margin-left: 20px;
    font-size: 1.1rem; /* Increased font size for nav links */
    transition: color 0.3s ease; /* Smooth transition for hover effect */
}

.navbar-nav .nav-link:hover {
    color: var(--accent-green) !important; /* Green color on hover */
}

.navbar-toggler { /* Added for responsiveness */
    border-color: rgba(255, 255, 255, 0.3) !important;
}
.navbar-toggler-icon { /* Added for responsiveness */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .hero-content {
        max-width: 70%;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .navbar-nav .nav-link {
        font-size: 1rem; /* Adjust nav link font size for smaller screens */
    }
    .reading-section {
        padding-top: 100px; /* More padding at top for fixed nav */
        padding-bottom: 80px;
    }
    .hero-section {
        padding-top: 70px; /* Height of collapsed navbar */
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding-left: 5%;
        text-align: center; /* Center content on smaller screens */
        justify-content: center; /* Center horizontally */
    }
    .hero-content {
        max-width: 90%;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content .subtitle {
        font-size: 0.9rem;
    }
    .btn-custom {
        display: block; /* Stack buttons vertically */
        width: 80%; /* Make buttons full width */
        margin: 10px auto; /* Center buttons and add vertical space */
    }
    .hero-section::before {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%),
                    url('../images/french-books.jpg') center / cover no-repeat; /* Adjust gradient and position for mobile */
        background-size: cover, cover; /* Ensure both cover */
        background-position: center, center; /* Center both */
    }
    .footer {
        padding: 15px 0; /* Further reduce footer padding for very small screens */
        font-size: 0.75rem;
    }
}

@media (max-width: 350px) {
    .navbar-brand {
        font-size: 1.1rem; /* Smaller font size for very small screens */
    }
}

@media (max-width: 400px) {
    .navbar-brand {
        font-size: 1.1rem; /* Smaller font size for very small screens */
    }
}

@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1.2rem; /* Adjusted font size for small screens */
    }
}

@media (max-width: 576px) {
    .reading-section {
        padding: 40px 10px;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .content-card {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .reading-section {
        padding: 60px 15px;
    }
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 350px) {
    .navbar-brand {
    font-size: 1.1rem;
}
}
@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1.2rem; /* Adjusted font size for small screens */
    }
}
