:root {
    --primary-blue: #0A4A87; /* Deep Blue from Logo Text */
    --primary-accent: #00D394; /* Bright Green from Circuitry */
    --secondary-color: #6c757d;  
    --background-light: #ffffff;
    --background-dark: #2c3e50; /* Dark, modern header/footer */
    --text-light: #ffffff;
    --text-dark: #212529;
    --logo-gradient: linear-gradient(90deg, #4F46E5, #00D394); /* Purple to Green */
    --overlay-color: rgba(0, 0, 0, 0.5); /* Semi-transparent dark overlay for cover text */
}

/* Basic Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}
h1, h2, h3 {
    margin-bottom: 0.5em;
    font-weight: 600;
}

/* Header & Navigation */
header {
    background-color: var(--background-dark);
    color: var(--text-light);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;  
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.logo-img {
    height: 40px; /* Adjust as needed */
    width: auto;
}
nav a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 25px;
    padding: 5px 10px;
    transition: color 0.3s;
    font-weight: 500;
}
nav a:hover {
    color: var(--primary-accent);
}

/* General Section Styling */
.content-section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}
.content-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.2rem;
    color: var(--primary-blue);
}

/* 🌟 HERO/HOME SECTION (Cover Photo Implementation) 🌟 */
.hero {
    /* 1. Set the background image (Adjust 'cover.png' extension if necessary) */
    background-image: url('images/cover.png'); 
    
    /* 2. Configure background behavior */
    background-size: cover;       /* Ensures the image covers the entire section */
    background-position: center;  /* Centers the image */
    background-attachment: fixed; /* Optional: Parallax effect */
    
    /* 3. Set minimum height and relative positioning for the overlay */
    min-height: 30vh; /* Good height for a cover section */
    height: auto; 
    position: relative; /* Essential for positioning the overlay */
    
    /* 4. Use Flexbox to center content */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    color: var(--text-light); /* Default text color over the cover */
    z-index: 1; /* Establishes stacking context */
}

/* Add a dark overlay to ensure text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color); 
    z-index: 2; /* Below content, above image */
}

/* Adjustments for content on top of the overlay */
.hero-content {
    z-index: 3; /* Must be higher than the overlay (z-index: 2) */
    max-width: 900px; 
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    /* 🚀 MODIFIED: REMOVED GRADIENT AND SET TO WHITE 🚀 */
    background: none; 
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: var(--text-light); /* Set color to white */
    /* ------------------------------------------------ */
    /* Add shadow for high contrast */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}
.hero-content .slogan {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--text-light); /* Pure white */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}
/* ---------------------------------------------------- */


/* Call-to-Action Button */
.cta-button {
    display: inline-block;
    background: var(--logo-gradient);
    color: var(--text-light);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: opacity 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}
.cta-button:hover {
    opacity: 0.9; 
    transform: translateY(-3px);
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
}
.course-card {
    background-color: #f0f8ff; /* Very light blue background */
    border-top: 5px solid var(--primary-accent);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}
.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.course-card h3 {
    color: var(--primary-blue);
    margin-top: 0;
}
.course-card.full-width {
    grid-column: 1 / -1; /* Makes this card span all columns */
    border-top: 5px solid #4F46E5; /* Use the purple accent */
    text-align: center;
}

/* Contact Form */
.contact-form {
    background-color: var(--background-light);
}
.direct-contact-info {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}
.contact-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: bold;
}
.contact-form form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #f7f7f7;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.contact-form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--primary-blue);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 1rem;
}
.contact-form textarea {
    resize: vertical;
}
.form-note {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--secondary-color);
    font-size: 0.9rem;
    padding: 10px;
    border: 1px dashed #ccc;
    border-radius: 5px;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--background-dark);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Simple Responsiveness */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }
    .logo-img {
        height: 35px; 
    }
    nav {
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    nav a {
        margin: 5px 8px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .content-section {
        padding: 3rem 5%;
    }
}