/* Basic Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif; /* Use Poppins or any preferred font */
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: #004d40; /* Dark Teal */
    margin-bottom: 15px;
}

h2 {
    font-size: 2.5em;
}

h3 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

h3::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #ff6f61; /* Coral */
}

a {
    text-decoration: none;
    color: #00796b; /* Medium Teal */
}

ul {
    list-style: none;
}

/* Header */
.main-header {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8em;
    font-weight: 600;
    color: #004d40;
}

.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: #ff6f61; /* Coral */
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    color: #004d40;
}


/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://via.placeholder.com/1920x800/00796b/ffffff?text=Training+Institute+Hero') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section h2 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #fff;
}

.hero-section p {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary {
    background-color: #ff6f61; /* Coral */
    color: #fff;
    border: 2px solid #ff6f61;
}

.btn-primary:hover {
    background-color: #e65c50; /* Darker Coral */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #00796b; /* Medium Teal */
    color: #fff;
    border: 2px solid #00796b;
}

.btn-secondary:hover {
    background-color: #006056; /* Darker Teal */
    transform: translateY(-2px);
}


/* Sections Styling */
section {
    padding: 80px 0;
}

section:nth-of-type(even) {
    background-color: #e0f2f1; /* Light Teal Background */
}

.about-section p {
    text-align: center;
    max-width: 800px;
    margin: 20px auto;
    font-size: 1.1em;
}

/* Course Grid */
.courses-section {
    text-align: center;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.course-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    text-align: left;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-card h4 {
    color: #00796b;
    font-size: 1.6em;
    margin-bottom: 10px;
}

.course-card p {
    font-size: 1.05em;
    color: #555;
    margin-bottom: 20px;
}

.course-features {
    margin-top: 15px;
    margin-bottom: 20px;
    padding-left: 20px;
    list-style: disc;
    color: #333;
}

.course-features li {
    margin-bottom: 8px;
}


/* Testimonials */
.testimonials-section {
    background-color: #fff8f8; /* Very Light Coral */
    text-align: center;
}

.testimonial-carousel {
    display: flex;
    overflow-x: auto; /* Allows horizontal scrolling if cards exceed width */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* For smoother scrolling on iOS */
    gap: 20px;
    padding: 20px 0;
    margin: 0 auto;
    max-width: 1000px; /* Adjust as needed */
}

.testimonial-card {
    flex: 0 0 320px; /* Fixed width, won't grow/shrink */
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    scroll-snap-align: start;
    text-align: center;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #444;
}

.testimonial-card .author {
    font-weight: 600;
    color: #004d40;
}

/* Contact Form */
.contact-section {
    background-color: #e0f2f1;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #004d40;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #00796b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.2);
}

.contact-form button {
    width: auto;
    cursor: pointer;
    font-size: 1.1em;
}


/* Footer */
.main-footer {
    background-color: #004d40; /* Dark Teal */
    color: #e0f2f1;
    padding: 40px 0;
    text-align: center;
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social-links a {
    color: #e0f2f1;
    font-size: 1.2em;
    margin: 0 10px;
    padding: 8px 12px;
    border: 1px solid #e0f2f1;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    background-color: #ff6f61; /* Coral */
    color: #fff;
    border-color: #ff6f61;
}


/* Responsive Design */
@media (max-width: 768px) {
    .main-header .container {
        flex-wrap: wrap;
    }

    .main-nav {
        order: 3; /* Push nav below logo */
        width: 100%;
        margin-top: 15px;
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        text-align: center;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        border-radius: 5px;
        padding: 10px 0;
    }

    .main-nav.active {
        display: flex; /* Show when active */
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav ul li {
        margin: 10px 0;
    }

    .menu-toggle {
        display: block; /* Show menu toggle on mobile */
    }

    .hero-section {
        height: 50vh;
        padding: 60px 20px;
    }

    .hero-section h2 {
        font-size: 2.5em;
    }

    .hero-section p {
        font-size: 1em;
    }

    h3 {
        font-size: 1.8em;
    }

    .course-grid {
        grid-template-columns: 1fr; /* Stack courses on mobile */
    }

    .testimonial-carousel {
        padding: 0 10px; /* Adjust padding for smaller screens */
        justify-content: flex-start; /* Align cards to start on mobile */
    }

    .testimonial-card {
        flex: 0 0 85%; /* Make cards take more width on smaller screens */
    }

    .contact-form {
        padding: 30px;
    }

    .main-footer .container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-section h2 {
        font-size: 2em;
    }
    .main-header {
        padding: 15px 0;
    }
    .logo a {
        font-size: 1.5em;
    }
}