/* Google Fonts Import - Updated to Inter and Lexend */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Lexend:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif; /* Primary font for body text */
    line-height: 1.6;
    background-color: #f4f7fa; /* Primary Background: light grey-blue */
    margin: 0;
    padding: 0;
    color: #333; /* General text color, slightly darker for readability */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

header {
    background: #1E2A38; /* Header/Nav: navy blue */
    color: #ffffff;
    padding: 18px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

header nav h1 {
    margin: 0;
    font-family: 'Lexend', sans-serif; /* Lexend for headings/logo */
    font-size: 2.4em;
    letter-spacing: 0.5px; /* Adjusted letter spacing */
    font-weight: 700;
    color: #FFD166; /* Accent Color: sun yellow for logo */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
    margin: 0;
    padding: 0;
}

header nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500; /* Medium weight for nav links */
    padding: 10px 0;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
    font-size: 1.05em;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0984e3; /* Hover Effects: vibrant blue for underline */
    transition: width 0.3s ease;
}

header nav ul li a:hover::after {
    width: 100%;
}

header nav ul li a.active {
    color: #0984e3; /* Hover Effects: vibrant blue for active link */
    font-weight: 600;
}

header nav ul li a.active::after {
    width: 100%;
}

header nav button {
    background-color: #00B894; /* CTA Buttons: mint green */
    color: white;
    padding: 12px 25px;
    font-size: 1.05em;
    border: none;
    border-radius: 8px; /* Rounded buttons */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header nav button:hover {
    background-color: #019875; /* Darker mint green on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px;
    background-color: #ffffff;
    box-shadow: 0 0 30px rgba(0,0,0,0.08);
    border-radius: 15px;
    overflow: hidden;
}

.hero {
    text-align: center;
    padding: 60px 30px;
    background-color: #1E2A38; /* Base color for hero section */
    color: white;
    border-radius: 15px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.hero-image {
    position: absolute; /* Position image behind content */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 15px; /* Match hero section border-radius */
    z-index: 1; /* Ensure it's behind text */
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area without distortion */
    display: block;
    filter: brightness(0.7); /* Slightly dim the image */
}

/* Gradient overlay on image */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(30,42,56,0.6), rgba(30,42,56,0.6)); /* Navy blue overlay */
    border-radius: 15px;
    z-index: 2; /* Above image, below text */
}

.hero h2, .hero p, .hero button {
    position: relative; /* Bring text and button above overlay */
    z-index: 3;
}

.hero h2 {
    font-family: 'Lexend', sans-serif; /* Lexend for hero heading */
    color: #FFD166; /* Accent Color: sun yellow */
    font-size: 3.8em;
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 45px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    color: #f0f0f0;
}

.hero button {
    background-color: #00B894; /* CTA Buttons: mint green */
    color: white;
    padding: 20px 45px;
    font-size: 1.4em;
    border-radius: 10px; /* Rounded */
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0,0,0,0.25);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero button:hover {
    background-color: #019875; /* Darker mint green */
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

h2, h3 {
    font-family: 'Lexend', sans-serif; /* Lexend for main headings */
    color: #1E2A38; /* Header/Nav: navy blue for headings */
    text-align: center;
    margin-bottom: 35px;
    font-weight: 600;
    font-size: 2.5em;
    position: relative;
    padding-bottom: 10px;
}

h2::after, h3::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: #FFD166; /* Accent Color: sun yellow underline */
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    border-radius: 2px;
}

.featured-courses, .testimonials {
    margin-top: 60px;
}

.course-cards-container, .course-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 35px;
}

.course-card, .student-testimonial, .course-item {
    background: #ffffff;
    border: none;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-card:hover, .course-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.18);
}

.course-card h4, .course-item h3, .course-item h4 {
    font-family: 'Lexend', sans-serif; /* Lexend for course titles */
    color: #1E2A38; /* Navy blue */
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.8em;
    font-weight: 600;
    line-height: 1.3;
}

.course-card p, .course-item p {
    color: #555;
    font-size: 1.05em;
    line-height: 1.8;
    flex-grow: 1;
}

.student-testimonial {
    background: #fdfdfd; /* Light background for testimonials */
    border-left: 6px solid #FFD166; /* Accent Color: sun yellow border */
    padding: 35px;
    margin-top: 35px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.student-testimonial p:first-of-type {
    font-style: italic;
    margin-bottom: 18px;
    font-size: 1.15em;
    color: #1E2A38; /* Navy blue */
    line-height: 1.7;
}

.student-testimonial p:last-of-type {
    text-align: right;
    font-weight: bold;
    color: #0984e3; /* Hover Effects: vibrant blue for name */
    font-size: 1.05em;
}

/* Forms Styling (Sign In/Sign Up/Contact) */
form {
    background: #ffffff;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 50px auto;
    border-top: 8px solid #1E2A38; /* Navy blue top border */
    position: relative;
    overflow: hidden;
}

form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(255, 209, 102, 0.1) 0%, transparent 30%); /* Subtle radial gradient with accent color */
    pointer-events: none;
    z-index: 0;
}

.form-group {
    margin-bottom: 30px;
    position: relative;
}

form label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #333;
    font-size: 1.15em;
    transition: color 0.3s ease;
}

form input[type="email"],
form input[type="password"],
form textarea {
    width: calc(100% - 30px);
    padding: 16px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fdfdfd;
}

form input[type="email"]:focus,
form input[type="password"]:focus,
form textarea:focus {
    border-color: #0984e3; /* Hover Effects: vibrant blue on focus */
    outline: none;
    box-shadow: 0 0 12px rgba(9, 132, 227, 0.2);
}

form textarea {
    resize: vertical;
    min-height: 140px;
}

form button[type="submit"] {
    width: 100%;
    padding: 18px;
    background-color: #00B894; /* CTA Buttons: mint green */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.25em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    letter-spacing: 1px;
    text-transform: uppercase;
}

form button[type="submit"]:hover {
    background-color: #019875; /* Darker mint green */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

form p {
    text-align: center;
    margin-top: 30px;
    font-size: 1.05em;
    color: #666;
}

form p a {
    color: #0984e3; /* Hover Effects: vibrant blue for links */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

form p a:hover {
    text-decoration: underline;
    color: #007bff; /* Slightly darker blue on hover */
}

/* Course List Specifics */
.course-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 35px;
}

.course-item {
    text-align: center;
    background: #ffffff;
    border: none;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.course-item h3, .course-item h4 {
    font-family: 'Lexend', sans-serif;
    color: #1E2A38;
    font-size: 1.6em;
    margin-bottom: 15px;
}

.course-item p {
    font-style: normal;
    color: #6c757d;
    font-size: 1em;
    margin-top: 12px;
}

/* My Learning Section Background */
.learning-section {
    background-color: #fdfdfd; /* A very subtle, slightly warmer off-white */
    padding: 30px;
    border-radius: 10px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.03);
    margin-bottom: 30px;
}

.learning-section h2,
.learning-section h3 {
    margin-top: 0;
}

.learning-section .course-item {
    background-color: #ffffff;
    border: 1px solid #eee;
}


/* Responsive Design */
@media (max-width: 768px) {
    header nav {
        flex-direction: column;
        align-items: center;
        padding: 0 15px;
    }

    header nav h1 {
        margin-bottom: 15px;
        font-size: 2em;
    }

    header nav ul {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-top: 15px;
    }

    header nav ul li {
        width: 100%;
        text-align: center;
    }

    header nav ul li a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    header nav button {
        width: 100%;
        margin-top: 25px;
        padding: 15px;
    }

    .hero {
        padding: 40px 20px;
    }

    .hero h2 {
        font-size: 2.8em;
    }

    .hero p {
        font-size: 1.2em;
    }

    .hero button {
        padding: 16px 30px;
        font-size: 1.15em;
    }

    .course-cards-container, .course-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    main {
        padding: 25px;
        margin: 25px auto;
    }

    form {
        padding: 35px;
        margin: 35px auto;
    }

    h2, h3 {
        font-size: 2em;
    }
}

.progress-bar {
    width: 100%;
    background-color: #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 20px;
    background-color: #00B894;
    color: white;
    font-size: 0.9em;
    font-weight: bold;
    text-align: center;
    line-height: 20px;
    transition: width 0.3s ease-in-out;
}

.progress-bar.complete .progress-fill {
    background-color: #0984e3;
}

.site-footer {
    background-color: #1E2A38;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    font-size: 1em;
    margin-top: 60px;
    box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: auto;
}

.site-footer .social-icons {
    margin-top: 15px;
}

.site-footer .social-icons a {
    margin: 0 10px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.site-footer .social-icons a:hover {
    transform: scale(1.15);
}

.site-footer .social-icons img {
    height: 32px;
    width: 32px;
    vertical-align: middle;
}
