* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #3b4044;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

/* Header with brand logo for mobile */
.header {
    background-color: white;
    width: 100%;
    display: none; /* Hidden by default on desktop */
    justify-content: center; /* Center the logo */
    align-items: center;
    padding: 10px 20px;
    margin-bottom: 20px;
    position: fixed; /* Fixed to top of screen */
    top: 0;
    left: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 10px 10px; /* Rounded bottom edges matching cards */
}

/* Main content wrapper - takes full height */
.main-wrapper {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding-bottom: 20px; /* Space for the logo at bottom */
    margin-top: 0; /* No extra margin needed for desktop */
    min-height: calc(100vh - 40px); /* Full viewport height minus padding */
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 100%;
    margin: 0 auto; /* Center horizontally */
}

.card {
    width: 360px;
    border-radius: 10px 10px 0px 0px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.card-hidden {
    opacity: 0;
    transform: translateY(20px);
}

.card-visible {
    opacity: 1;
    transform: translateY(0);
}

.card-touch {
    transform: scale(0.98);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.logo-container {
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    margin: 40px;
    background-color: #fff;
}

.logo {
    max-height: 80%;
    max-width: 80%;
    object-fit: contain;
}

.divider {
    height: 4px;
}

.divider-orange {
    background-color: #fabc07;
}

.divider-blue {
    background-color: #ec6009;
}

.divider-green {
    background-color: #0962bc;
}

.image-container {
    height: 320px;
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .main-image {
    transform: scale(1.05);
}

/* Brand logo styling - like original */
.brand-logo {
    position: fixed;
    bottom: -3%;
    right: 7%;
    z-index: 100;
    width: 140px;
    height: 140px;
    border-radius: 0%;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.1);
}

.brand-logo-img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.header-logo-link {
    display: block;
    text-decoration: none;
}

/* Media Queries for Responsiveness */
@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }

    .card {
        width: 300px;
    }
}

@media (max-width: 992px) {
    .container {
        gap: 20px;
    }

    .card {
        width: 280px;
    }

    .logo-container {
        height: 120px;
        padding: 30px;
        margin: 30px;
    }

    .image-container {
        height: 240px;
    }

    .brand-logo {
        right: 5%;
        bottom: 5%;
    }
}

@media (max-width: 768px) {
    /* Switch to mobile layout with header */
    .header {
        display: flex;
    }

    /* Hide desktop logo */
    .brand-logo {
        display: none;
    }

    body {
        justify-content: flex-start; /* Align from top in mobile */
    }

    .main-wrapper {
        margin-top: 80px; /* Add margin to account for fixed header */
        padding-bottom: 20px; /* Reduce padding as logo is now in header */
        min-height: auto; /* Let content determine height */
        flex: 0; /* Don't flex to fill space */
    }

    .container {
        gap: 30px;
    }

    .card {
        width: 100%;
        max-width: 450px;
    }

    .logo-container {
        height: 100px;
        padding: 20px;
        margin: 20px;
    }

    .image-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 8px 15px;
    }

    .brand-logo-img {
        max-width: 90px;
    }

    .main-wrapper {
        margin-top: 60px; /* Smaller margin for smaller devices */
    }

    .container {
        gap: 20px;
    }

    .card {
        max-width: 320px;
    }

    .logo-container {
        height: 80px;
        padding: 15px;
        margin: 15px;
    }

    .image-container {
        height: 220px;
    }
}

@media (max-width: 360px) {
    .card {
        max-width: 280px;
    }

    .logo-container {
        height: 70px;
        padding: 10px;
        margin: 10px;
    }

    .image-container {
        height: 200px;
    }
}