/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #fff; /* Set background to white */
    color: #333;
}

/* Header */
header {
    background: #fff;
    color: #333;
    padding: 0.5rem 0;
}

.header-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 a {
    color: #fff;
    text-decoration: none;
}

header .logo-link {
    display: flex;
    align-items: center;
}

header .logo {
    height: 60px;
}

.download-button {
    background-color: #2ca3cb;
    color: #fff;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.download-button:hover {
    background-color: #248aab;
}

/* Main Content */
main {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #666;
}

/* Grid for Homepage */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card h3 {
    margin: 0;
}

/* Test Centre Details Page */
.test-centre-details img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.test-centre-details .intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.key-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .key-features {
        grid-template-columns: 1fr 1fr;
    }
}

.feature {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1.5rem;
}

/* Test Centre Page Layout */
.intro-container {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin: 2rem 0;
}

.intro-text {
    flex: 1;
}

.intro-image {
    flex: 1;
    max-width: 50%;
}

.intro-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Responsive Styles for Mobile */
@media (max-width: 768px) {
    .intro-container,
    .advantage-container {
        flex-direction: column;
    }

    .intro-image,
    .advantage-image {
        min-width: 90%;
        margin-top: 0; /* Reset margin for the new layout */
    }

    .hero-image-test {
        width: 100%;
    }

    .hero {
        padding-left: 0;
        padding-right: 0;
    }

    .hero-container {
        padding: 0; /* Remove padding from container */
    }

    .hero-text {
        padding: 0 1rem; /* Add padding to text content only */
    }

    .advantage-section {
        border-top: none; /* Remove top border for a cleaner full-width look */
        margin-top: 2rem;
    }

    .advantage-container {
        /* This makes the container break out to be full-width */
        width: 100vw;
        position: relative;
        left: 50%;
        margin-left: -50vw;
    }

    .advantage-text {
        padding: 1.5rem 1rem 2rem 1rem; /* Add padding back to the text content */
        text-align: center;
    }

    .advantage-image img {
        width: 100%;
        height: 350px; /* A final, moderate height for compromise */
        object-fit: cover; /* This will crop the sides to maintain aspect ratio */
        border-radius: 0;
    }

    .hero-images img {
        border-radius: 0; /* Remove border-radius for a true full-width look */
        width: 100%;
        height: 300px; /* Give the image a larger fixed height on mobile */
        object-fit: cover; /* Ensure the image fills the space without distortion */
    }
}

.advantage-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.advantage-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.advantage-image {
    flex: 1;
    max-width: 45%;
}

.advantage-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.advantage-text {
    flex: 1;
}

.advantage-section h2 {
    color: #333;
}

.advantage-section ul {
    list-style-type: disc;
    padding-left: 20px;
}

.advantage-section li {
    margin-bottom: 0.5rem;
}

/* Homepage Hero Section */
.hero {
    background: #fff;
    padding: 2rem 1rem;
    margin-bottom: 4rem;
}

.hero-container {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-text h1 {
    font-size: 2.8rem;
    color: #333;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
}

.hero-button {
    font-size: 1.2rem;
    padding: 0.8rem 1.8rem;
}

.hero-images {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-images img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Features & Pro-Upgrade Sections */
.features {
    text-align: center;
    margin-bottom: 4rem;
}

.features h3 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.features-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    text-align: left;
}

.feature-card {
    background: #f9f9f9; /* Add a very light grey background */
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* Add a subtle shadow */
    flex: 1;
}

.feature-card img {
    max-width: 100%;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border: 1px solid #eee;
}

.feature-card h4 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    color: #333;
}

.feature-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Reviews Section */
.reviews {
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 4rem; /* Added spacing */
}

.section-title {
    margin-bottom: 2.5rem;
    font-size: 1.8rem;
    color: #333;
}

.reviews-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.review-card {
    background: #f9f9f9; /* Match feature card background */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* Match feature card shadow */
    flex: 1; /* Allow cards to grow and shrink */
    max-width: 350px; /* Set a max-width for larger screens */
    text-align: center;
    overflow: hidden; /* Keep the image corners rounded */
}

.review-card img {
    width: 100%; /* Make image fill the card width */
    height: auto; /* Maintain aspect ratio */
}

.review-content { /* A new class for the text content */
    padding: 1.5rem;
}

.review-text {
    color: #555;
    margin-bottom: 1rem;
}

.review-author {
    font-weight: bold;
    color: #333;
}

.test-centres-list {
    background: #fff;
    padding: 2rem;
    border-radius: 5px;
    margin-bottom: 4rem;
    text-align: center;
}

#search-bar {
    width: 100%;
    max-width: 400px;
    padding: 0.8rem 1rem;
    margin-bottom: 2rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.pro-upgrade p:last-child {
    font-weight: bold;
    text-align: center;
    font-size: 1.2rem;
}
