/* Modern CSS for Driving School Website */

:root {
    box-sizing: border-box;
    font-size: clamp(16px, 1.15vw, 18px);
    line-height: 1.65;
}

*, *::before, *::after {
    box-sizing: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
}

p, li, a, .btn, .cta-button {
    font-size: clamp(1rem, 1vw + 0.1rem, 1.15rem);
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 80px; /* Adjust based on header height */
    font-size: 1rem;
    color: #333;
    background-color: #f4f4f4;
}

header {
    background-color: #022232;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1000;
    transition: top 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

.logo img {
    height: 60px;
    width: 60px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #022232;
    flex-direction: column;
    padding: 1rem 2rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.nav-links li {
    margin: 0.5rem 0;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #ffd700;
}

.cta-button {
    background-color: #ffd700;
    color: #022232;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.cta-button:hover {
    background-color: #ffed4e;
}

.hero {
    background: url('WhatsApp Image 2026-04-12 at 6.57.24 AM.jpeg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.hero p {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 1vw, 1rem);
    margin-bottom: 2rem;
    color: #f1f1f1;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background-color: #ffd700;
    color: #022232;
    padding: clamp(0.9rem, 1vw, 1rem) clamp(1.2rem, 2vw, 2rem);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin: 0 0.5rem;
    transition: background-color 0.3s;
}

.home-highlights {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
}

.home-highlights h2 {
    text-align: center;
    color: #022232;
    margin-bottom: 2rem;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.highlight-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0,0,0,0.08);
}

.highlight-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.highlight-card-content {
    padding: 1.5rem;
}

.highlight-card-content h3 {
    margin-top: 0;
    color: #022232;
}

.highlight-card-content p {
    margin: 0.75rem 0 0;
    color: #555;
}

.btn:hover {
    background-color: #ffed4e;
}

section {
    padding: clamp(2rem, 4vw, 4rem) 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about, .testimonials, .features, .instructors {
    background-color: white;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.about-content, .contact-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.about h2, .testimonials h2, .features h2, .instructors h2 {
    text-align: center;
    color: #022232;
    margin-bottom: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 0 2rem 2rem;
}

.feature-card {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0,0,0,0.08);
}

.feature-card h3 {
    margin-top: 0;
    color: #022232;
}

.courses {
    padding: 2rem;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 0 2rem 2rem;
}

.course-card {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0,0,0,0.08);
}

.course-card h3 {
    margin-top: 0;
    color: #022232;
}

.course-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.course-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
}

.course-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ffd700;
    font-weight: bold;
}

.about-content img {
    width: min(420px, 100%);
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

.testimonial {
    background-color: #f9f9f9;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
}

.contact {
    background-color: #022232;
    color: white;
}

.contact h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-content {
    display: flex;
    gap: 2rem;
}

.contact-form, .map {
    flex: 1;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input, .contact-form textarea {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border: none;
    border-radius: 5px;
}

.contact-form button {
    background-color: #ffd700;
    color: #022232;
    padding: 0.5rem;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem 0;
}

.thank-you {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 60vh;
    background-color: white;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.thank-you h2 {
    color: #022232;
    margin-bottom: 1rem;
}

.thank-you p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.admin-login, .admin-dashboard {
    background-color: white;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    text-align: center;
}

.admin-login h2, .admin-dashboard h2, .admin-dashboard h3 {
    text-align: center;
    color: #022232;
    margin-bottom: 2rem;
}

.admin-login form {
    display: flex;
    flex-direction: column;
}

.admin-login input {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.admin-login button {
    background-color: #ffd700;
    color: #022232;
    padding: 0.5rem;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.admin-dashboard #logout-btn {
    margin-top: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.admin-dashboard table {
    margin: 0 auto;
}

.admin-dashboard button {
    margin: 0.5rem;
}

.reviews {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.reviews h2 {
    text-align: center;
    color: #022232;
    margin-bottom: 2rem;
}

.review-form, .reviews-list {
    background-color: white;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 2rem;
}

.review-form h3, .reviews-list h3 {
    color: #022232;
    margin-bottom: 1rem;
}

.review-form form {
    display: flex;
    flex-direction: column;
}

.review-form input, .review-form select, .review-form textarea {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.review-form button {
    background-color: #ffd700;
    color: #022232;
    padding: 0.5rem;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.review-item {
    background-color: #f9f9f9;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
    border-left: 5px solid #ffd700;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo img {
        height: 50px;
        width: 50px;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #022232;
        padding: 1rem 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        padding: 0.5rem 0;
        border-bottom: none;
        color: white;
    }

    .cta-button {
        margin-top: 1rem;
    }

    .hero {
        height: 60vh;
        padding: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .home-highlights {
        padding: 2rem 1rem;
    }

    .highlight-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about, .testimonials, .features, .instructors, .admin-login, .admin-dashboard {
        margin: 1rem;
        padding: 1rem;
    }

    .about-content, .contact-content {
        flex-direction: column;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .testimonial {
        margin: 1rem 0;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
        padding: 2rem 1rem;
    }

    .admin-dashboard table {
        font-size: 0.8rem;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }

    .admin-dashboard button {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .reviews {
        padding: 2rem 1rem;
    }

    .review-form {
        padding: 1rem;
    }

    footer {
        padding: 1rem;
        text-align: center;
    }
}

@media (min-width: 769px) {
    .hamburger {
        display: none;
    }

    .nav-links {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        width: auto;
        background-color: transparent;
        flex-direction: row;
        justify-content: flex-end;
        padding: 0;
    }

    .nav-links li {
        margin: 0;
    }

    .nav-links li a {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .highlight-card, .feature-card {
        padding: 1rem;
    }

    .admin-dashboard {
        padding: 0.5rem;
    }

    .admin-dashboard table th, .admin-dashboard table td {
        padding: 0.5rem;
    }
}

.review-item h4 {
    margin: 0 0 0.5rem 0;
    color: #022232;
}

.review-item p {
    margin: 0.5rem 0;
}

.review-item small {
    color: #666;
}

@media (max-width: 768px) {
    body {
        font-size: 0.95rem;
    }

    header {
        padding: 0.85rem 1rem;
    }

    nav {
        padding: 0;
    }

    .hero {
        min-height: 50vh;
        padding: 1rem 0;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 6vw, 2rem);
    }

    .hero p,
    .hero-subtitle,
    .highlight-card-content p,
    .feature-card p,
    .course-card p,
    .testimonial p,
    .contact p,
    .review-form input,
    .review-form textarea,
    .review-form select {
        font-size: 0.95rem;
    }

    .logo img {
        height: 45px;
        width: auto;
    }

    .nav-links li a,
    .cta-button {
        font-size: 0.95rem;
    }

    .highlight-card-content,
    .feature-card,
    .course-card,
    .review-form {
        padding: 1rem;
    }

    .about-content,
    .contact-content,
    .feature-grid,
    .course-grid,
    .gallery {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .about-content {
        flex-direction: column;
    }

    .contact-content {
        flex-direction: column;
    }

    section {
        padding: 1.5rem 1rem;
    }
}