* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #0d0d0d; /* Primary dark background for the entire page */
    background-image: url('image_c7b43c.jpg'); /* Your desired fixed background image */
    background-size: cover; /* Cover the entire viewport */
    background-position: center center; /* Center the image */
    background-attachment: fixed; /* THIS MAKES THE BACKGROUND FIXED */
    background-repeat: no-repeat; /* Prevent tiling */
    padding-top: 4rem; /* Keeps space for fixed header */
    overflow-y: auto;
}

/* Add an overlay to the body to darken the fixed background image */
body::before {
    content: "";
    position: fixed; /* IMPORTANT: Fixed position for the overlay */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* 70% opacity black overlay */
    z-index: -1; /* Place it behind content but above the fixed body background image */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* CSS for the clickable cards */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.why {
    background-color: rgba(31, 31, 31, 0.85); /* Slightly transparent dark background for cards */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    /* Initial padding - will be overridden by specific .why rules below */
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    color: #ffffff;
    cursor: pointer;
}

.why > * {
    position: relative;
    z-index: 1;
}

.why:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}
/* End of CSS for clickable cards */


.header {
    background: #000000;
    color: #ffffff;
    padding: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2),
                0 2px 4px -1px rgba(0, 0, 0, 0.12);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

.header1 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-direction: row;
}

.brand-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.main-logo {
    height: 3.1rem;
    width: 3.1rem;
    border-radius: 9999px;
    margin-right: 1rem;
    object-fit: cover;
}

.brand-name {
    color: #e7ba51;
    text-decoration: none;
    font-size: 1.4em;
    font-weight: bold;
    white-space: nowrap;
    font-family: 'Roboto Slab';
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    padding: 1px;
    user-select: none;
    margin-left: auto;
}

.main {
    display: flex;
    align-items: center;
    width: auto;
    flex-grow: 1;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    max-height: none;
    opacity: 1;
    position: static;
    padding: 0;
    box-shadow: none;
    margin-left: auto;
}

/* Updated .main.js-menu-open for right alignment and white background */
.main.js-menu-open {
    display: flex;
    flex-direction: column;
    max-height: 300px;
    opacity: 1;
    background-color: #ffffff; /* White background for the open menu */
    position: absolute;
    top: 100%;
    right: 0; /* Anchor to the right */
    width: auto; /* Allow content to dictate width */
    min-width: 150px; /* Optional: Set a minimum width for the menu */
    padding: 1rem 1.5rem 1rem 1rem; /* Adjust padding for white background */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.main-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    justify-content: right;
    gap: 30px;
    width: auto;
}

.nav-link {
    color: #ffffff;
    padding: 0.5rem 0.9rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease, background-color 0.3s ease;
    display: block;
    text-decoration: none;
}

.nav-link:hover {
    color: #e7ba51;
    background-color: rgba(255, 255, 255, 0.1);
}

.back-to-home-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #dbb152;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin-left: 2.5rem;
}

.back-to-home-button:hover {
    background-color: #b69343;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* ---------------------------------------------------------------------- */
/* Specific Styling for Design.html (Smaller Category Cards) */
/* ---------------------------------------------------------------------- */

.section-why {
    position: relative;
    padding: 40px 0;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    background-color: transparent; /* IMPORTANT: Ensure section background is transparent */
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.section-why::before,
.section-why::after {
    display: none; /* Hide these pseudo-elements as background is now on body */
}

.section-why .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Ensures the content within the container is centered horizontally */
    justify-content: center;
    flex-grow: 1;
}

.why-light-blue {
    background-color: transparent;
}

.section-title-why {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 5px;
    text-align: center;
    letter-spacing: 0.03em;
    color: #ffffff;
}

.why-gradient-blue {
    background: linear-gradient(to right, #e7ba51, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.card-why {
    display: flex;
    flex-wrap: wrap; /* Allows cards to wrap to the next line */
    justify-content: center; /* THIS IS KEY FOR CENTERING CARDS HORIZONTALLY */
    align-items: stretch; /* Ensures cards in the same row have equal height */
    gap: 20px; /* Reduced gap for smaller cards */
    margin-top: 20px;
    width: 100%; /* Important: Ensures the flex container spans the full available width for centering */
    flex-grow: 1;
}

.why {
    width: 250px; /* Adjusted width for EVEN SMALLER cards */
    max-width: 100%;
    height: 300px; /* Adjusted height for EVEN SMALLER cards */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px; /* Reduced padding further */
    text-align: center;
}

.card-image-wrapper {
    margin-bottom: 15px; /* Adjusted margin for smaller image */
    width: 100%;
    height: 150px; /* Adjusted height for smaller image */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.card-img {
    border-radius: 8px;
    object-fit: cover;
    width: 100%;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.why-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3em; /* Slightly reduced font size for title */
    font-weight: 800;
    margin-bottom: 8px; /* Adjusted margin */
    color: #e7ba51;
    letter-spacing: 0.03em;
}

.why-text {
    font-family: Arial, sans-serif;
    font-size: 0.9em; /* Slightly reduced font size for text */
    font-weight: 400;
    margin-bottom: 0;
    color: #f0f0f0;
    line-height: 1.5;
}

.card-bg-1, .card-bg-2, .card-bg-3 {
    background-color: rgba(31, 31, 31, 0.85);
}

@media (min-width: 992px) {
    .card-why {
        flex-direction: row; /* Explicitly set for row layout */
        justify-content: center; /* Ensure horizontal centering for multiple rows */
        align-items: stretch;
        gap: 10px; /* Consistent gap */
    }

    .why {
        width: 250px; /* Consistent smaller width */
        height: 300px; /* Consistent smaller height */
    }

    body {
        padding-top: 3rem;
    }

    .section-why {
        min-height: calc(100vh - 3rem);
    }
}

@media (max-width: 768px) {
    .header {
        justify-content: space-between;
        padding: 0.7rem 1rem;
    }

    .header1 {
        flex-grow: 1;
        justify-content: space-between;
        width: 100%;
    }

    .navbar-brand {
        flex-grow: 1;
        margin-right: 0;
    }

    .main {
        display: none;
        flex-grow: unset;
        margin-left: 0;
    }

    .hamburger-menu {
        display: block;
        order: 2;
        margin-left: auto;
        margin-right: 0.5rem;
    }

    .back-to-home-button {
        display: inline-block;
        order: 3;
        margin-left: 0;
        font-size: 0.75em;
        padding: 6px 12px;
    }

    /* Mobile menu - right aligned, white background */
    .main.js-menu-open {
        display: flex;
        flex-direction: column;
        max-height: 300px;
        opacity: 1;
        background-color: #ffffff;
        position: absolute;
        top: 100%;
        right: 0;
        width: auto;
        min-width: 150px;
        padding: 1rem 1.5rem 1rem 1rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .main-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-link {
        width: 100%;
        padding: 0.75rem 0;
        text-align: right; /* Aligns text inside link to the right */
        color: #1a1a1a; /* Dark text for white background */
    }

    .nav-link:hover {
        color: #e7ba51;
        background-color: rgba(0, 0, 0, 0.05); /* Lighter hover for white background */
    }

    .section-title-why {
        font-size: 2em;
        margin-bottom: 20px;
    }

    .section-why {
    position: relative;
    padding: 40px 0;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    background-color: transparent;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Ensures content within section-why is horizontally centered */
    min-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.section-why::before,
.section-why::after {
    display: none;
}

.section-why .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto; /* Ensures the container itself is centered */
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* IMPORTANT: This centers the `.card-why` horizontally if `.card-why` does not take 100% width and is a flex item in a column container */
    justify-content: center;
    flex-grow: 1;
}

.card-why {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* This centers the items *within* card-why */
    align-items: stretch;
    gap: 20px;
    margin-top: 20px;
    width: 100%; /* Ensure this takes full width to allow internal centering to work */
    flex-grow: 1;
}

/* ... (rest of the .why, .card-image-wrapper, .why-title, .why-text styles remain the same) ... */


@media (min-width: 992px) {
    .card-why {
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
        gap: 20px;
    }

    .why {
        width: 250px;
        height: 300px;
    }

    /* ... rest of the min-width: 992px media query ... */
}

@media (max-width: 768px) {
    /* ... (header and main menu adjustments remain the same) ... */

    .card-why {
        flex-direction: column;
        justify-content: center;
        align-items: center; /* IMPORTANT: This centers the single card horizontally when stacked */
        gap: 15px;
        padding-bottom: 20px;
    }

    .why {
        /* On mobile, use a specific max-width and margin auto for robust centering */
        width: 280px; /* Give it a fixed width on mobile for consistent centering */
        max-width: 80%; /* Ensure it doesn't overflow smaller screens */
        margin-left: auto; /* Auto margins for horizontal centering */
        margin-right: auto; /* Auto margins for horizontal centering */
        height: auto;
        min-height: 300px;
        padding: 15px;
    }

    /* ... rest of the max-width: 768px media query ... */
}

    .card-image-wrapper {
        height: 130px; /* Adjusted image height */
        margin-bottom: 10px; /* Adjusted margin */
    }

    .why-title {
        font-size: 1.2em; /* Adjusted font size */
    }

    .why-text {
        font-size: 0.85em; /* Adjusted font size */
    }
    
    .section-why {
        min-height: calc(100vh - 4rem);
        padding: 20px 0;
        overflow-y: auto;
    }
}