/* =========================
   BASE
========================= */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
}

/* =========================
   LANGUAGE
========================= */

.en {}
.cy {}

/* =========================
   TOPBAR
========================= */

.topbar {
    width: 100%;
    background: #ffd400;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    min-height: 85px;
    box-sizing: border-box;
    border-bottom: 3px solid #000;
    font-weight: bold;
}

/* =========================
   NAV STRIP
========================= */

.nav-strip {
    width: 100%;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding: 12px;
    box-sizing: border-box;
    flex-wrap: wrap;

    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-strip a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
}

.nav-strip a:hover {
    opacity: 0.7;
}

/* =========================
   HERO
========================= */

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #626262;
    padding: 40px 20px;
}

.hero-text h2 {
    margin: 0;
    color: white;
}

/*=========================
   L AND P PLATES
=========================*/
.plate {
    width: 55px;
    height: auto;
    display: block;
    margin: 5px auto;
}

/* =========================
   CARS (HOME / HERO IMAGES)
========================= */

.car {
    width: 140px;
    height: auto;
    opacity: 1;
    transition: transform 0.3s ease;
}

.car:hover {
    transform: scale(1.4);
}

.left {
    animation: slideLeft 1s ease;
}

.right {
    animation: slideRight 1s ease;
}

@keyframes slideLeft {
    from { transform: translateX(-300px); }
    to { transform: translateX(0); }
}

@keyframes slideRight {
    from { transform: translateX(300px); }
    to { transform: translateX(0); }
}

/*====================
VEHICLE SECTION */
===================*/
.vehicle-section{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:40px;
    max-width:1100px;
    margin:60px auto;
    padding:20px;
}

.vehicle-text{
    flex:1;
}

.vehicle-text h2{
    font-size:32px;
    margin-bottom:15px;
}

.vehicle-text p{
    font-size:16px;
    line-height:1.6;
    margin-bottom:15px;
}

.vehicle-features{
    list-style:none;
    padding:0;
    margin-top:10px;
}

.vehicle-features li{
    margin-bottom:8px;
    font-size:15px;
}

.vehicle-image{
    flex:1;
}

.vehicle-image img{
    width:100%;
    max-width:420px;
    border-radius:12px;
    border:2px solid #ffcc00;
    box-shadow:0 0 20px rgba(0,0,0,0.4);
}

/* MOBILE */

@media(max-width:900px){

    .vehicle-section{
        flex-direction:column;
        text-align:center;
    }

    .vehicle-image img{
        max-width:100%;
    }

    .vehicle-features{
        text-align:center;
    }
}



/*=========================
   ABOUT
=========================*/
.intro-center {
    text-align: center;
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    line-height: 1.6;
}


/* =========================
   SECTIONS (CRITICAL)
========================= */

.section {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-sizing: border-box;
}

/* =========================
   CONTAINERS / CARDS
========================= */

.container {
    max-width: 1100px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 14px;
    text-align: center;
}

/* =========================
   COURSE ICONS
========================= */

.course-icon {
    width: 70px;
    height: auto;
    display: block;
    margin: 10px auto 15px auto;
}

/* =========================
   NOTICE BOX
========================= */

.notice-box {
    max-width: 700px;
    margin: 30px auto 10px auto;
    padding: 15px;
    border-radius: 10px;
    background: #fff3cd;
    border-left: 6px solid #ffcc00;
    font-size: 15px;
    line-height: 1.5;
}

/* =========================
   BUTTONS
========================= */

.aa-btn {
    display: inline-block;
    margin: 20px auto;

    background: #0057b8;
    color: white;

    padding: 12px 18px;
    border-radius: 8px;

    text-decoration: none;
    font-weight: bold;

    text-align: center;      /* <-- THIS is the key fix */
}

/* =========================
   LANGUAGE BUTTON
========================= */

.lang-btn {
    position: fixed;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 9999;
}

.lang-btn img {
    width: 32px;
    height: auto;
}

/* =========================
   HOURS BOX
========================= */

.hours {
    max-width: 700px;
    margin-top: 20px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
    line-height: 1.8;
}

/* =========================
   LANGUAGE DEFAULT (JS HANDLES VISIBILITY)
========================= */

.en, .cy {
    display: block;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
    .car {
        width: 100px;
    }

    .hero {
        gap: 10px;
    }

    .hero-text h2 {
        font-size: 22px;
    }
}


/*=========================
   COURSES HERO
========================*/
/* PASSPLUS HERO IMAGE */
img[src="images/passplus.jpeg"] {
    max-width: 90px;
    height: auto;
}

/* MOTORWAY HERO IMAGE */
img[src="images/motorway.png"] {
    max-width: 90px;
    height: auto;
}

/* REFRESHER HERO IMAGE */
img[src="images/refresh.jpg"] {
    max-width: 90px;
    height: auto;
}

.lesson-notice{
    max-width: 700px;
    margin: 30px auto;
    padding: 15px 20px;

    text-align: center;

    background: #f5f5f5;
    border-left: 4px solid #000;
    border-radius: 6px;

    font-size: 15px;
    line-height: 1.5;
}

/* =========================
   MOTORWAY IMAGES
========================= */

/* LEFT IMAGE (M56 SIGN) */
img[src="images/m56.svg"] {
    max-width: 180px;
    height: auto;
    display: block;
}

/* RIGHT IMAGE (CHEVRONS) */
img[src="images/chevrons.jpeg"] {
    max-width: 130px;
    height: auto;
    display: block;
}


/* =========================
   MOTORWAY LAYOUT
========================= */

.content-with-side-images {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 25px;

    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* SIDE COLUMNS */
.content-with-side-images .side-image {
    flex: 0 0 180px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* MAIN CONTENT */
.content-with-side-images .main-content {
    flex: 1;
    min-width: 0;
}


/* =========================
   IMAGE SAFETY (NO OVERFLOW)
========================= */

.content-with-side-images img {
    width: 100%;
    height: auto;
    display: block;
}


/* =========================
   MOBILE FIX
========================= */

@media (max-width: 900px) {

    .content-with-side-images {
        flex-direction: column;
        align-items: center;
    }

    .content-with-side-images .side-image {
        flex: unset;
    }

    img[src="images/m56.svg"],
    img[src="images/chevrons.jpeg"] {
        max-width: 160px;
    }
}
/* =========================
   PASSES PAGE
========================= */

.passes-container{
    max-width:900px; /* was 1100px */
    margin:60px auto;
    padding:0 20px;
}

.pass-card{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
    align-items:center;
    background:#2a2a2a;
    padding:18px;
    border-radius:14px;
    margin:25px auto;
    max-width:760px;
    box-shadow:0 0 15px rgba(0,0,0,0.25);
}

.pass-image{
    flex:0 0 220px;
    max-width:220px;
}

.pass-image img{
    width:100%;
    border-radius:10px;
    border:2px solid #ffcc00;
}

.pass-info{
    flex:1 1 300px;
}

.pass-info h2{
    font-size:26px; /* was 32px */
    margin-bottom:15px;
}

.pass-info p{
    font-size:16px;
    line-height:1.6;
    margin-bottom:15px;
}

.pass-info blockquote{
    color:#ffcc00;
    font-style:italic;
    line-height:1.6;
    margin-bottom:20px;
}

.pass-date{
    color:#aaa;
    font-size:14px;
}

/* MOBILE */

@media(max-width:768px){

    .pass-card{
        padding:20px;
        gap:25px;
    }

    .pass-info h2{
        font-size:26px;
    }

    .pass-info p{
        font-size:16px;
    }

}

.pass-info h2,
.pass-info p,
.pass-info span{
    color:white;
}

/* CONTACT PAGE LAYOUT */

.contact-layout{
    display:flex;
    gap:30px;
    align-items:flex-start;
    max-width:1200px;
    margin:40px auto;
    padding:0 20px;
}

.contact-main{
    flex:2;
}

.contact-hours{
    flex:1;
}

/* MOBILE */

@media(max-width:900px){

    .contact-layout{
        flex-direction:column;
    }

}