/* CSS Variables - Color Palette */
:root {
    --primary-color: #7AA2E3;   /* Light Blue/Purple */
    --secondary-color: #6AD4DD; /* Cyan */
    --accent-color-1: #97E7E1;  /* Light Cyan/Mint */
    --background-color: #F8F6E3;/* Cream/Off-white */
    --text-color: #333;
    --text-light: #555;
    --header-bg: #fff; /* Or a light shade like --background-color */
    --footer-bg: #333;
    --footer-text: #F8F6E3;
    --card-bg: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Roboto', sans-serif; /* Added Poppins and Roboto as examples */
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

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

h1, h2, h3 {
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--primary-color); /* Primary color for headings */
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

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

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

a:hover {
    color: var(--primary-color);
}

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

/* Header */
#header {
    background-color: var(--header-bg);
    color: var(--text-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px var(--shadow-color);
    transition: background-color 0.3s ease;
}

#header .container {
    display: flex;
    justify-content: space-between; /* Adjusted */
    align-items: center; /* Adjusted */
}

.logo-container {
    display: flex;
    align-items: center;
}

#logo {
    height: 50px; /* Adjust as needed */
    margin-right: 15px;
}

#header h1 a {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}
#header h1 a:hover {
    color: var(--secondary-color);
}


#nav-links {
    list-style: none;
    display: flex;
}

#nav-links li {
    margin-left: 25px;
}

#nav-links a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

#nav-links a:hover, #nav-links a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

#menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section & Slideshow */
#hero {
    height: 80vh; /* Adjust as needed, or use min-height */
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: 70px; /* Adjust based on header height */
}

.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    display: none; /* Hidden by default, JS will show them */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    animation-timing-function: ease-in-out; /* For smoother transitions */
}

/* Dynamic Gradients for Slides - applied by JS or you can set static ones here */
.slide:nth-child(1) {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.slide:nth-child(2) {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color-1));
}
/* Add more if you have more slides with different gradients */
/*
.slide:nth-child(3) {
    background: linear-gradient(135deg, var(--accent-color-1), var(--primary-color));
}
*/

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.3); /* Semi-transparent overlay for text readability */
    border-radius: 8px;
    width: 80%;
    max-width: 700px;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0;
    color: #fff; /* Slogan text color */
}

/* Fade animation for slideshow */
.fade {
    animation-name: fade;
    animation-duration: 2s; /* Increased duration for slower fade */
}

@keyframes fade {
    from { opacity: 0.4 }
    to { opacity: 1 }
}

/* Content Sections */
.content-section {
    padding: 60px 0;
}

.content-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-weight: 700;
}

/* About Us */
#about-us {
    background-color: white; /* Slightly different background or keep it var(--background-color) */
}
#about-us p {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}


/* Courses Section */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--secondary-color);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.course-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Contact Us Section */
#contact-us {
    background-color: white;
}
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.contact-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
    border-top: 5px solid var(--primary-color);
}

.contact-card h3 {
    color: var(--primary-color);
}

.contact-card p {
    margin-bottom: 0.5rem;
}
.contact-card a {
    font-weight: bold;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    padding: 2rem 0;
    margin-top: 40px;
}

/* Responsive Design (Media Queries) */
@media (max-width: 768px) {
    #header .container {
        flex-direction: row; /* Adjusted */
        justify-content: space-between; /* Adjusted */
        align-items: center; /* Adjusted */
    }

    .logo-container {
        /* No specific width needed here; content will dictate size */
        justify-content: flex-start; /* Aligned logo to the start */
    }
    #header h1 {
        font-size: 1.3rem; /* Smaller for mobile header */
    }

    #menu-toggle {
        display: block; /* Show hamburger icon */
        position: static; /* Adjusted */
        margin-left: auto; /* Adjusted */
        top: auto; /* Adjusted */
        right: auto; /* Adjusted */
    }

    #nav-links {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        width: 100%;
        background-color: var(--header-bg);
        padding-bottom: 1rem; /* Add some padding when open */
    }

    #nav-links.active {
        display: flex; /* Show when active */
        order: 1; /* Adjusted */
    }

    #nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    #nav-links a {
        display: block;
        padding: 10px;
    }
    #nav-links a:hover, #nav-links a.active {
        border-bottom: none; /* Remove border for mobile links or style differently */
        background-color: var(--primary-color);
        color: white;
        border-radius: 4px;
    }


    #hero {
        height: 60vh;
        margin-top: 100px; /* Adjust if header layout changes significantly */
    }
    .slide-content h2 {
        font-size: 1.8rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    h3 { font-size: 1.3rem; }

    .courses-grid, .contact-info-grid {
        grid-template-columns: 1fr; /* Stack cards on smaller screens */
    }
}

@media (max-width: 480px) {
    #hero {
        height: 50vh;
        min-height: 300px;
    }
    .slide-content h2 {
        font-size: 1.5rem;
    }
    .container {
        width: 95%;
        padding: 0 10px;
    }
}
