/* ======== GLOBAL STYLES & VARIABLES ======== */
:root {
    --primary-red: #d32f2f; /* A strong, professional red */
    --primary-red-dark: #b71c1c;
    --dark-bg: #121212;
    --dark-card: #1e1e1e;
    --light-text: #f5f5f5;
    --dark-text: #333;
    --gray-text: #aaa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: var(--dark-text);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    line-height: 1.2;
    font-weight: 600;
}

h2.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
}

h2.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-red);
}

section {
    padding: 80px 0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ======== NAVBAR ======== */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 75px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--dark-text);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-red);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
    padding: 10px 0;
    min-width: 180px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* ======== HERO SECTION ======== */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('imgs/hero.jpg') no-repeat center center/cover;
    height: 90vh;
    color: var(--light-text);
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background: var(--primary-red);
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-red-dark);
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 450px;
}

/* ======== ABOUT US SECTION ======== */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}
.about-image {
    flex: 1;
}
.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.about-text {
    flex: 1;
}
.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.about-text .highlight {
    color: var(--primary-red);
}
.about-text p {
    margin-bottom: 15px;
}

/* ======== SLIDER SECTIONS (DESTINATIONS & UNIVERSITIES) ======== */
.slider {
    overflow: hidden;
    position: relative;
    width: 100%;
}
.slider::before, .slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
}
.slider::before {
    left: 0;
    background: linear-gradient(to left, rgba(249, 249, 249, 0), #f9f9f9);
}
.slider::after {
    right: 0;
    background: linear-gradient(to right, rgba(249, 249, 249, 0), #f9f9f9);
}
.slide-track, .uni-slide-track {
    display: flex;
    animation: scroll 30s linear infinite;
}
.slider:hover .slide-track, .slider:hover .uni-slide-track {
    animation-play-state: paused;
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Destination Slider */
.destinations-section {
    background-color: #fff;
}
.slide {
    height: 250px;
    width: 350px;
    margin: 0 15px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.slide:hover img {
    transform: scale(1.1);
}
.country-name {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    padding: 30px 20px 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

/* University Slider */
.uni-slide-track { animation-duration: 40s; }
.uni-slide {
    height: 100px;
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
}
.uni-slide img {
    max-width: 150px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}
.uni-slide:hover img {
    filter: grayscale(0%);
}

/* ======== SERVICES SECTION ======== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service-card {
    background: #fff;
    padding: 40px 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.service-card i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}
.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* ======== TOP COURSES SECTION ======== */
.top-courses-section {
    background-color: #fff;
}
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.course-item {
    background: var(--dark-bg);
    color: var(--light-text);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    transition: background 0.3s ease;
}
.course-item:hover {
    background: var(--primary-red);
}

/* ======== TESTIMONIALS SECTION ======== */
.testimonials-section {
    background-color: #f9f9f9; /* Ensure section background is light for contrast */
}

.testimonials-slider {
    position: relative;
    max-width: 800px; /* Limit width for better readability */
    margin: 0 auto 30px auto; /* Center slider and add space for dots */
    overflow: hidden; /* Hide extra slides */
}

.testimonial-slide {
    display: none; /* Hide all slides by default */
    animation: fadeEffect 1.5s; /* Fade in animation */
}

.testimonial-slide.active {
    display: block; /* Show active slide */
}

@keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}

.testimonial-card-white {
    background: #ffffff; /* White background */
    color: var(--dark-text); /* Dark text color */
    padding: 50px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Subtle shadow */
    border: 1px solid #eee; /* Light border */
}
.testimonial-card-white img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-red); /* Red border around image */
    margin-bottom: 20px;
}
.testimonial-card-white blockquote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--dark-text); /* Ensure quote text is dark */
}
.testimonial-card-white .student-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-text); /* Ensure name is dark */
}
.testimonial-card-white .student-university {
    color: var(--primary-red); /* University name in red */
    font-size: 0.95rem;
}

/* Slider Navigation Dots */
.slider-nav {
    text-align: center;
    margin-top: 20px;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 8px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active, .dot:hover {
    background-color: var(--primary-red);
}

/* Mobile Responsiveness for Testimonials */
@media (max-width: 768px) {
    .testimonial-card-white {
        padding: 30px;
    }
    .testimonial-card-white blockquote {
        font-size: 1rem;
    }
}

/* ======== FOOTER ======== */
footer {
    background: var(--dark-bg);
    color: var(--light-text);
    padding: 60px 0;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}
.footer-about img {
    height: 40px;
    margin-bottom: 20px;
}
.footer-about p {
    color: var(--gray-text);
}
.social-links {
    margin-top: 20px;
}
.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--dark-card);
    color: var(--light-text);
    border-radius: 50%;
    margin-right: 10px;
    transition: background 0.3s ease;
}
.social-links a:hover {
    background: var(--primary-red);
}
.footer-links h4, .footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.footer-links ul li {
    margin-bottom: 10px;
}
.footer-links ul li a {
    color: var(--gray-text);
    transition: color 0.3s ease;
}
.footer-links ul li a:hover {
    color: var(--primary-red);
}
.footer-contact p {
    margin-bottom: 10px;
    color: var(--gray-text);
    display: flex;
    align-items: center;
}
.footer-contact p i {
    width: 25px;
    color: var(--primary-red);
}

/* ======== CREDIT SECTION ======== */
.credit-section {
    background: #000;
    color: var(--gray-text);
    text-align: center;
    padding: 15px 0;
    font-size: 0.9rem;
}
.credit-section a {
    color: #fff;
    font-weight: 500;
}
.credit-section a:hover {
    text-decoration: underline;
}

/* ======== MOBILE RESPONSIVENESS ======== */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text h1 { font-size: 3rem; }
    .hero-image { display: none; }
    .about-content { flex-direction: column; }
}

@media (max-width: 768px) {
    h2.section-title { font-size: 2rem; }
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #fff;
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: right 0.5s ease-in-out;
    }
    .nav-links.nav-active {
        right: 0;
    }
    .hamburger { display: block; }
    .dropdown:hover .dropdown-menu { display: none; }
    .dropdown-menu { position: static; display: block; box-shadow: none; background: transparent; padding-left: 20px;}
    
    .hero-text h1 { font-size: 2.5rem; }
    
    .slider::before, .slider::after { width: 50px; }
}

/* ======== ABOUT US PAGE STYLES ======== */

/* Page Header Section */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('imgs/aboutbanner.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 80px 0;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    color: #ddd;
}

/* About Story Section (reusing some 'about-section' styles) */
#about-story {
    background: #fff; /* White background for this section */
}

/* Why Choose Us Section */
#why-us {
    background-color: #f9f9f9; /* Light grey background to stand out */
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.why-us-card {
    background: #ffffff;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-us-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.why-us-card .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: var(--primary-red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.why-us-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.why-us-card p {
    color: #666;
}

/* Responsive adjustments for page header */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    .page-header {
        padding: 60px 0;
    }
}

/* ======== SERVICES PAGE STYLES ======== */

/* Core Services Section */
#core-services {
    background-color: #f9f9f9;
}

/* Test Preparation Section */
#test-prep {
    background-color: #ffffff; /* White background to contrast with the section above */
}

.test-prep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.test-prep-card {
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 10px;
    text-align: center;
    padding: 30px 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.test-prep-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.test-prep-card img {
    height: 70px; /* Uniform height for all logos */
    max-width: 180px; /* Prevent logos from becoming too wide */
    margin-bottom: 20px;
    object-fit: contain; /* Ensures logos scale correctly without distortion */
}

.test-prep-card h3 {
    font-size: 1.5rem;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.test-prep-card p {
    color: #666;
    font-size: 0.95rem;
}

/* ======== CONTACT US PAGE STYLES ======== */

#contact-page {
    padding: 80px 0;
    background: #fff;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Give more space to the form/details */
    gap: 50px;
    align-items: flex-start;
}

.contact-details h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.contact-details > p {
    margin-bottom: 30px;
    color: #666;
}

/* Contact Info Block */
.contact-info {
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--dark-text);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-red);
    width: 40px; /* Aligns the text */
}

/* Contact Form */
.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 5px rgba(211, 47, 47, 0.3);
}

.contact-form button.btn-primary {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

/* Google Map */
.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 550px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Responsive adjustments for Contact Page */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
        gap: 60px;
    }

    .contact-map iframe {
        min-height: 400px;
    }
}

/* ======== USA COUNTRY PAGE STYLES ======== */

/* Country Hero Section */
.country-hero {
    color: #fff;
    text-align: center;
    padding: 100px 0;
    background-size: cover;
    background-position: center center;
    position: relative;
}
.country-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
}
.country-hero .container {
    position: relative;
    z-index: 2;
}
.country-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
}
.country-hero p {
    font-size: 1.3rem;
    color: #ddd;
}
.usa-hero {
    background-image: url('https://images.unsplash.com/photo-1579678115934-543b5d21a50a?q=80&w=1932&auto=format&fit=crop'); /* Placeholder image of a US university campus */
}

/* Why Choose USA Section */
#why-usa {
    background-color: #ffffff;
}

/* Top Courses Section */
#usa-courses {
    background-color: #f9f9f9;
}
/* Re-using .courses-grid and .course-item from previous styles for consistency */

/* Cost of Study Table Section */
#usa-cost {
    background-color: #ffffff;
}
#usa-cost .section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: -40px auto 40px;
    color: #666;
}
.table-container {
    margin-bottom: 50px;
    overflow-x: auto; /* Makes table responsive on mobile */
}
.table-container h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark-text);
}
table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}
th, td {
    padding: 15px 20px;
    text-align: left;
    border: 1px solid #e0e0e0;
}
thead {
    background-color: var(--primary-red);
    color: #fff;
    font-weight: 600;
}
tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}
tbody tr:hover {
    background-color: #f1f1f1;
}
.total-row {
    font-weight: bold;
    background-color: #e0e0e0;
    color: var(--dark-text);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .country-hero h1 {
        font-size: 2.8rem;
    }
}

/* ======== UK COUNTRY PAGE STYLES ======== */

/* UK specific hero background */
.uk-hero {
    background-image: url('https://images.unsplash.com/photo-1529655683826-1c21ef24f1c1?q=80&w=1932&auto=format&fit=crop'); /* Placeholder image of London */
}

/* Why Choose UK Section */
#why-uk {
    background-color: #f9f9f9;
}

/* UK Universities Section */
#uk-universities {
    padding: 80px 0;
    background: #fff;
}
/* Note: The slider within this section reuses the existing .universities-section and .slider styles */


/* Top Courses Section */
#uk-courses {
    background-color: #f9f9f9;
}
/* Note: Reuses existing .courses-grid and .course-item styles */


/* Cost of Study Table Section */
#uk-cost {
    background-color: #ffffff;
}
/* Note: Reuses existing table styles from the USA page */

/* ======== CANADA COUNTRY PAGE STYLES ======== */

/* Canada specific hero background */
.canada-hero {
    background-image: url('https://images.unsplash.com/photo-1503614472-8c93d56e92ce?q=80&w=2011&auto=format&fit=crop'); /* Placeholder image of Moraine Lake, Canada */
}

/* ======== AUSTRALIA COUNTRY PAGE STYLES ======== */

/* Australia specific hero background */
.australia-hero {
    background-image: url('https://images.unsplash.com/photo-1524293581269-a93162747457?q=80&w=2070&auto=format&fit=crop'); /* Placeholder image of Sydney, Australia */
}

/* ======== GERMANY COUNTRY PAGE STYLES ======== */

/* Germany specific hero background */
.germany-hero {
    background-image: url('https://images.unsplash.com/photo-1528728329032-2972f65dfb3f?q=80&w=2070&auto=format&fit=crop'); /* Placeholder image of Brandenburg Gate, Berlin */
}

/* ======== NEW ZEALAND COUNTRY PAGE STYLES ======== */

/* New Zealand specific hero background */
.new-zealand-hero {
    background-image: url('https://images.unsplash.com/photo-1589232029519-3543b36b4783?q=80&w=1974&auto=format&fit=crop'); /* Placeholder image of New Zealand landscape */
}

/* ======== EUROPE COUNTRY PAGE STYLES ======== */

/* Europe specific hero background */
.europe-hero {
    background-image: url('https://images.unsplash.com/photo-1519677100203-a0e668c97d44?q=80&w=2071&auto=format&fit=crop'); /* Placeholder image of a historic European city */
}

/* ======== IRELAND COUNTRY PAGE STYLES ======== */

/* Ireland specific hero background */
.ireland-hero {
    background-image: url('https://images.unsplash.com/photo-1547201382-96a159b35a16?q=80&w=2070&auto=format&fit=crop'); /* Placeholder image of Trinity College Dublin */
}

/* ======== DUBAI DESTINATION PAGE STYLES ======== */

/* Dubai specific hero background */
.dubai-hero {
    background-image: url('https://images.unsplash.com/photo-1512453979798-5ea266f8880c?q=80&w=2070&auto=format&fit=crop'); /* Placeholder image of Dubai skyline */
}

      .whatsapp-float {
            position: fixed;
            width: 80px;
            height: 80px;
            bottom: 40px;
            left: 40px;
            background-color: #25d366;
            color: #FFF;
            border-radius: 50px;
            text-align: center;
            font-size: 30px;
            box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
            z-index: 100;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: transform 0.2s; /* Animation */
        }

        .whatsapp-float:hover {
            transform: scale(1.1); /* Slightly enlarge on hover */
        }
        
        .whatsapp-float svg {
            width: 50px; /* Adjust icon size */
            height: 50px;
            fill: #fff;
        }