/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #bc6d29;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    width: 80px;
    height: auto;
    margin-bottom: 40px;
    animation: fadeIn 0.6s ease-in-out;
}

.preloader-bar-container {
    width: 200px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.preloader-bar {
    height: 100%;
    background-color: #fff;
    border-radius: 2px;
    animation: barLoad 2s ease-in-out infinite;
}

@keyframes barLoad {
    0% {
        width: 0%;
        transform: translateX(0);
    }
    50% {
        width: 100%;
        transform: translateX(0);
    }
    100% {
        width: 100%;
        transform: translateX(100%);
    }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Hide body content during initial load */
body.loading {
    overflow: hidden;
}

body.loading > *:not(#preloader) {
    visibility: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: visible;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-yellow {
    background-color: #F4A259;
    color: #000;
    box-shadow: 6px 6px 0 #bc6c25; /* solid offset shadow */
}

.btn-yellow:hover {
    background-color: #e07a5f;
}

.btn-yellow:active {
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 #bc6c25;
}


.btn-teal {
    background-color: #2A9D8F;
    color: #fff;
    box-shadow: 6px 6px 0 #1e7267; /* solid offset shadow */
}

.btn-teal:hover {
    background-color: #238276;
}

.btn-teal:active {
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 #1e7267;
}

.btn i { margin-left: 10px; }

/* Top Bar (unused) removed */

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255,255,255,0.98);
    border: none;
    box-shadow: none;
    z-index: 1000;
}

.navbar .container {
    background-color: transparent;
    padding: 18px 24px;
    overflow-x: visible;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 0;
    flex-wrap: nowrap;
}

.logo-image {
    height: 40px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
    overflow-x: visible;
}

.nav-menu a {
    text-decoration: none;
    color: #000;
    font-weight: 600;
    font-size: 13px;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #2A9D8F;
}

/* Active nav link (site-wide) */
.nav-menu a.active {
    color: #2A9D8F;
    position: relative;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #2A9D8F;
}

/* CTA Button in Navigation */
.nav-cta {
    margin-left: 10px;
}

.nav-cta-btn {
    background-color: #F4A259;
    color: #000 !important;
    padding: 10px 24px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0 #bc6c25;
    white-space: nowrap;
    position: relative;
}

.nav-cta-btn:hover {
    background-color: #e07a5f;
    color: #000 !important;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #bc6c25;
}

.nav-cta-btn.active::after {
    display: none;
}

/* Language Switcher Styles */
.language-switcher-wrapper {
    margin-left: 15px;
}

.language-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-btn {
    padding: 8px 16px;
    background: transparent;
    border: 2px solid #000;
    color: #000;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.lang-btn:hover {
    background: #000;
    color: #fff;
}

.lang-btn.active {
    background: #000;
    color: #fff;
}

/* Prevent nav wrapping on medium screens */
@media (max-width: 1200px) {
    .nav-menu { gap: 20px; }
    .nav-menu a { font-size: 12px; }
    .nav-cta-btn { padding: 8px 16px; }
    .language-switcher .lang-btn { padding: 6px 12px; font-size: 11px; }
}

/* Ensure navbar doesn't overflow on very wide screens */
@media (min-width: 1201px) {
    .navbar .container {
        max-width: 1200px;
        padding: 18px 24px;
    }
}

@media (max-width: 1100px) {
    .nav-menu { gap: 15px; }
    .nav-menu a { font-size: 11px; }
    .nav-cta-btn { padding: 7px 14px; }
    .language-switcher .lang-btn { padding: 5px 10px; font-size: 10px; }
}

/* Enable mobile menu sooner to avoid wrap */
@media (max-width: 1050px) {
    .hamburger { display: flex; }

    .nav-menu {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        padding: 0 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
    }

    .nav-menu.active {
        max-height: 500px;
        opacity: 1;
        padding: 20px;
    }

    .language-switcher-wrapper { margin-left: 0; margin-top: 10px; padding-top: 10px; border-top: 1px solid #eee; }
    .language-switcher { justify-content: center; }
    .nav-cta { margin-left: 0; margin-top: 10px; padding-top: 15px; border-top: 1px solid #f0f0f0; }
    .nav-cta-btn { display: block; text-align: center; width: 100%; }
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #000;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h1 {
    font-size: 72px;
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    margin-top: 40px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    line-height: 1.6;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #fff;
}

/* Find Your Course */
.find-course {
    padding: 60px 0;
    background-color: #ffffff;
}

.find-course h2 {
    text-align: center;
    font-size: 36px;
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    margin-bottom: 40px;
    letter-spacing: 0.25px;
}

.language-cards-container {
    max-width: 900px;
    margin: 0 auto;
}

.language-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.language-cards-hidden {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.language-cards-hidden.show {
    display: grid;
}

.language-card {
    background-color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.language-card:hover {
    background-color: #f8f9fa;
}

.language-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.language-card i {
    color: #666;
    font-size: 14px;
    transition: color 0.3s ease;
}

.language-card:hover i {
    color: #2A9D8F;
}

.view-all-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    padding: 10px 0;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.view-all-btn:hover {
    color: #2A9D8F;
}

.view-all-btn i {
    font-size: 14px;
}

/* We Are Westminster and video block (unused) removed */

/* Call to Action Section */
.cta-section {
    background-image: url('../images/learn yoruba ivokan.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0 80px;
    text-align: center;
    color: #fff;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(42, 157, 143, 0.7);
    z-index: 1;
}

.cta-section .container,
.cta-section .cta-container {
    position: relative;
    z-index: 2;
}

.cta-main-title {
    font-size: 72px;
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    margin: 0 0 30px 0;
    letter-spacing: 1px;
    line-height: 1.1;
    color: #fff;
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-content p {
    font-size: 20px;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* Course Types */
.course-types {
    padding: 60px 0;
    background-color: #ffffff;
}

.course-types h2 {
    text-align: center;
    font-size: 36px;
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    margin-bottom: 40px;
    letter-spacing: 0.25px;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.course-card {
    background-color: #fff;
    overflow: hidden;
    border: 2px solid #ddd;
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-card:nth-child(1) {
    border-color: #ddd;
}

.course-card:nth-child(2) {
    border-color: #ddd;
}

.course-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.course-card-content {
    padding: 30px;
}

.course-card h3 {
    font-size: 28px;
    margin-bottom: 15px;
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
}

.course-card p {
    margin-bottom: 20px;
    color: #666;
}

/* Next Open Days (unused) removed */

/* Chat with Students (unused) removed */

/* News Section (unused) removed */

/* Testimonials Section */
.testimonials-section {
    padding: 60px 0;
    background-color: #ffffff;
    text-align: center;
}

.testimonials-section h2 {
    font-size: 36px;
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    margin-bottom: 50px;
    letter-spacing: 0.25px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    background-color: #2A9D8F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.testimonial-avatar i {
    font-size: 32px;
    color: #fff;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
    min-height: 60px;
}

.testimonial-details {
    border-top: 2px solid #f0f0f0;
    padding-top: 15px;
}

.testimonial-name {
    font-weight: 700;
    font-size: 16px;
    color: #000;
    margin-bottom: 5px;
}

.testimonial-info {
    font-size: 13px;
    color: #666;
}

/* Become a Tutor Section */
.become-tutor-section {
    padding: 80px 0;
    background-color: #fff;
}

.become-tutor-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.become-tutor-text h2 {
    font-size: 42px;
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 0.25px;
    color: #000;
}

.become-tutor-text p {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
}

.become-tutor-image img {
    width: 100%;
}

/* Business Section */
.business-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.business-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.business-text h2 {
    font-size: 42px;
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 0.25px;
    color: #000;
}

.business-text p {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
}

.business-image img {
    width: 100%;
}

/* Events Section (unused) removed */

/* How It Works */
.how-it-works {
    padding: 60px 0;
    background-color: #ffffff;
}

.how-it-works h2 {
    text-align: center;
    font-size: 36px;
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    margin-bottom: 50px;
    letter-spacing: 0.25px;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.how-it-works-card {
    background-color: #fff;
    padding: 40px 30px 30px;
    text-align: left;
    border: 2px solid #ddd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.how-it-works-card:hover {
    transform: translateY(-5px);
}

.card-number {
    width: 50px;
    height: 50px;
    background-color: #F4A259;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 20px;
    font-family: 'Archivo Black', sans-serif;
}

.how-it-works-card:nth-child(2) .card-number {
    background-color: #F4A259;
}

.how-it-works-card:nth-child(3) .card-number {
    background-color: #f4a259;
}

.how-it-works-card h3 {
    font-size: 28px;
    margin-bottom: 15px;
    font-family: 'Archivo Black', sans-serif;
    font-weight: 900;
    color: #000;
    line-height: 1.2;
}

.how-it-works-card p {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-image {
    margin-top: 20px;
}

.card-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border: 2px solid #ddd;
}

/* Visit Us (unused) removed */

/* Newsletter */
.newsletter {
    padding: 60px 0;
    background-color: #2A9D8F;
    text-align: center;
    color: #fff;
}

.newsletter h2 {
    font-size: 32px;
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 0.25px;
    line-height: 1.4;
}

.newsletter p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact */
.contact {
    padding: 60px 0;
    background-color: #F4A259;
    text-align: center;
}

.contact h2 {
    font-size: 36px;
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 0.25px;
}

.contact .phone {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact .address {
    font-size: 14px;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    background-color: #2c2c2c;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 14px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #F4A259;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 30px;
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-links span {
    font-size: 12px;
    margin-right: 10px;
}

.social-links a {
    color: #fff;
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #F4A259;
}

.footer-legal {
    text-align: center;
    font-size: 12px;
    color: #999;
}

.footer-legal a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #F4A259;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .language-cards-grid,
    .language-cards-hidden {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    /* Hamburger icon animation */
    .hamburger span:nth-child(1) {
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .hamburger span:nth-child(2) {
        transition: opacity 0.3s ease;
    }

    .hamburger span:nth-child(3) {
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Menu slide animation */
    .nav-menu {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        padding: 0 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
    }

    .nav-menu.active {
        max-height: 500px;
        opacity: 1;
        padding: 20px;
    }

    .nav-menu li {
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(6) { transition-delay: 0.35s; }
    .nav-menu.active li:nth-child(7) { transition-delay: 0.4s; }
    .nav-menu.active li:nth-child(8) { transition-delay: 0.45s; }

    /* Language switcher mobile */
    .language-switcher-wrapper {
        margin-left: 0;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #eee;
    }

    .language-switcher {
        justify-content: center;
    }

    /* CTA Button mobile styles */
    .nav-cta {
        margin-left: 0;
        margin-top: 10px;
        padding-top: 15px;
        border-top: 1px solid #f0f0f0;
    }

    .nav-cta-btn {
        display: block;
        text-align: center;
        width: 100%;
    }

    .hero h1 {
        font-size: 48px;
    }

    .course-search,
    .course-grid,
    .open-days-grid,
    .chat-content,
    .news-grid,
    .events-grid,
    .visit-content,
    .footer-content,
    .how-it-works-grid,
    .testimonials-grid,
    .become-tutor-content,
    .business-content {
        grid-template-columns: 1fr;
    }

    .language-cards-grid,
    .language-cards-hidden {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .video-info {
        position: static;
        margin-top: 20px;
    }

    .video-badge {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .find-course h2,
    .we-are-westminster h2,
    .next-open-days h2,
    .chat-text h2,
    .news-section h2,
    .events-section h2,
    .visit-us h2,
    .how-it-works h2,
    .course-types h2,
    .testimonials-section h2,
    .become-tutor-text h2,
    .business-text h2 {
        font-size: 28px;
    }

    /* .cta-main-title mobile size consolidated below */

    .cta-content p {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 12px;
    }

    .cta-main-title {
        font-size: 28px;
        letter-spacing: 0.25px;
        margin-bottom: 20px;
    }

    .cta-section {
        padding: 60px 0 50px;
    }

    .cta-content p {
        font-size: 16px;
        margin-bottom: 20px;
    }
}


