/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #fffefc;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Header */
.site-header {
    position: relative;
    background: url('footer.jpg') no-repeat center center/cover; /* Replace with your image path */
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    flex-wrap: wrap;
    overflow: hidden;
    z-index: 1;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 0;
}

.site-header * {
    position: relative;
    z-index: 1;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffcc00;
}

nav ul {
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: white;
    transition: color 0.3s, background-color 0.3s, transform 0.3s;
    font-size: 1.5rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

nav a:hover {
    color: black;
    background-color: #ffcc00;
    transform: scale(2);
}

.header-contact a {
    margin-left: 1rem;
    background-color: #ffcc00;
    color: black;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.header-contact a:hover {
    background-color: #e6b800;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.slider {
    height: 100%;
    position: relative;
}

.slides {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 2;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 3;
    animation: fadeInUp 1.5s ease-out both;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-text p {
    font-size: 1.2rem;
}

/* Slider Buttons */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: #ccc;
    z-index: 4;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Fade-in Animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Services */
.services {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
    text-align: center;
}

.services h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

/* Gallery Grid - 3 items per row */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-item {
    position: relative;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.caption {
    padding: 0.8rem;
    font-weight: bold;
}

.description-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    opacity: 0;
    visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    border-radius: 10px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-item:hover .description-overlay {
    opacity: 1;
    visibility: visible;
}

.description-text {
    font-size: 1.1rem;
    text-align: center;
    padding: 1rem;
}

/* Testimonials */
.testimonials {
    padding: 4rem 2rem;
    background-color: #fffefc;
    text-align: center;
}

.testimonials h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.testimonial-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.testimonial {
    background-color: #ffffff;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    font-style: italic;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.testimonial.active {
    background-color: #fff8dc;
    transform: scale(1.05);
}

.prev-test, .next-test {
    background-color: #ffcc00;
    border: none;
    padding: 0.6rem 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s;
}

.prev-test:hover, .next-test:hover {
    background-color: #e6b800;
}

/* Analytics */
.analytics {
    background-color: #f1f1f1;
    padding: 4rem 2rem;
    text-align: center;
}

.analytics h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.counters {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.counter {
    font-size: 3rem;
    font-weight: bold;
    color: #ffcc00;
}

.counters p {
    margin-top: 0.5rem;
}

/* Enroll Section */
.enroll {
    background: #fff9e6;
    padding: 4rem 2rem;
    text-align: center;
}

.enroll h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.enroll form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.enroll input, .enroll textarea {
    padding: 0.8rem;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.enroll button {
    padding: 0.8rem;
    background-color: #ffcc00;
    border: none;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.enroll button:hover {
    background-color: #e6b800;
}

/* Footer */
.site-footer {
    position: relative;
    background: url('footer.jpg') no-repeat center center/cover; /* Replace with your image path */
    color: white;
    padding: 2rem;
    overflow: hidden;
    z-index: 1;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 0;
}

.site-footer * {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-links li {
    margin: 0.5rem 0;
}

.footer-links a {
    color: #ffcc00;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-content img {
    width: 30px;
    margin-right: 0.5rem;
}

.logo img {
    height: 100px;
    width: auto;
}

/* Additional Styles for Header */
.header-contact {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .testimonial-carousel {
        flex-direction: column;
    }
}

.about-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 2rem;
    background-color: #fffefc;
    flex-direction: row;
    flex-wrap: wrap;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.about-content {
    max-width: 600px;
    color: #333;
}

@media (max-width: 768px) {
    .about-section {
        flex-direction: column;
        text-align: center;
    }
}

.line-about {
    color: #e6b800;
}

.about-hero {
    position: relative;
    width: 100%;
    height: 50vh;
    background-image: url('carr.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-hero-content {
    color: white;
    text-align: center;
    z-index: 1;
    padding: 2rem;
}

.about-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-hero-content p {
    font-size: 1.5rem;
}
.about-features {
    padding: 60px 20px;
    background: #fff;
  }
  .container {
    max-width: 1200px;
    margin: auto;
  }
  .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: center;
  }
  .feature-item {
    text-align: left;
  }
  .feature-item img {
    width: 40px;
    height: auto;
    margin-bottom: 10px;
  }
  .feature-item h3 {
    color: #333;
    font-weight: bold;
    margin-bottom: 10px;
  }
  .feature-item p {
    color: #555;
    line-height: 1.6;
  }
  .car-image {
    grid-column: span 3;
    text-align: center;
  }
  .car-image img {
    width: 400px;
    max-width: 100%;
  }
  @media (max-width: 768px) {
    .features-grid {
      grid-template-columns: 1fr;
    }
  }
  .driving-school-info {
    background-color: #f9f9f9;
    padding: 60px 20px;
  }
  
  .info-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: auto;
  }
  
  .info-images {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .info-images img {
    width: 250px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  
  .info-text {
    flex: 1;
    min-width: 300px;
  }
  
  .info-text h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #222;
  }
  
  .info-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
  }
  .courses {
    padding: 40px;
    text-align: center;
  }
  
  .course-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
    justify-items: center;
  }
  
  .course-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 350px;
    text-align: center;
    transition: transform 0.3s ease;
  }
  
  .course-card:hover {
    transform: translateY(-5px);
  }
  
  .course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
  }
  
  .course-card h3 {
    margin: 15px 0 10px;
    font-size: 1.3rem;
    color: #333;
  }
  
  .course-card p {
    background-color: #ffcc00;
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
  }
/* === Document Requirement Section === */
.documents {
    display: flex;
    gap: 30px;
    justify-content: center;
    padding: 40px;
    flex-wrap: wrap;
    background-color: #fffbe6;
  }
  
  .documents .doc-intro {
    background-color: #1c1c1c;
    color: white;
    padding: 30px;
    max-width: 300px;
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.6;
  }
  
  .documents .doc-card {
    flex: 1;
    max-width: 300px;
  }
  
  .documents .doc-header {
    padding: 10px;
    text-align: center;
    font-weight: bold;
    color: white;
  }
  
  .documents .doc-header.dob {
    background-color: #ffcc00; /* Matte yellow */
  }
  
  .documents .doc-header.address {
    background-color: #1c1c1c;
  }
  
  .documents ul.doc-list {
    list-style: none;
    padding: 20px;
    margin: 0;
    background-color: #f9f9f9;
    border-left: 4px solid #ffcc00;
  }
  
  .documents ul.doc-list li {
    padding: 10px 0;
    border-top: 1px dotted #ccc;
  }
  
  .documents ul.doc-list li:first-child {
    border-top: none;
  }
/* Gallery Page Specific Styles */
.gallery-page-hero {
    position: relative;
    width: 100%;
    height: 50vh;
    background-image: url('tata.jpg'); /* update the image path */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-page-hero::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: rgba(0,0,0,0.5);
    top: 0;
    left: 0;
    z-index: 0;
}

.gallery-page-hero-content {
    color: white;
    text-align: center;
    z-index: 1;
    padding: 2rem;
}

.gallery-page-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.gallery-page-hero-content p {
    font-size: 1.3rem;
}

.gallery-page-section {
    padding: 4rem 2rem;
    background-color: #fffefc;
    text-align: center;
}

.gallery-page-section h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.gallery-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 2rem 0;
}

@media (max-width: 1024px) {
    .gallery-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-page-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-page-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.gallery-page-item:hover {
    transform: translateY(-8px);
}

.gallery-page-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.gallery-page-caption {
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    background-color: #fff;
    color: #333;
}

.gallery-page-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.gallery-page-item:hover .gallery-page-overlay {
    opacity: 1;
    visibility: visible;
}

.gallery-page-text {
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    padding: 1rem;
}
.contact-info-cards {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
  }
  
  .contact-card {
    flex: 1 1 250px;
    background-color: #ffcc00;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
  }
  
  .contact-card h3 {
    margin-bottom: 10px;
  }
  
  .contact-card a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
  }
  