* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    background-color: #E0E0E0;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 5rem; /* Space for fixed header */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- ADJUSTED HEADER CSS --- */
.header {
    background: #1673d1;
    color: #ffffff;
    padding: 0.5rem 0; /* No horizontal padding here, it will be on .header1 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2),
                0 2px 4px -1px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%; /* Keep header full width */
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center; /* Center the .header1 content */
}

.header1 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px; /* Limit content width */
    width: 100%; /* Make sure it takes full width within max-width */
    margin: 0 auto; /* Center the content */
    padding: 0 20px; /* Add side padding to match body container */
    font-family: 'Glacial indiffirence';
    flex-grow: 1; /* Allow it to grow in flex container */
}

/* --- REST OF YOUR CSS (Walang Pagbabago maliban kung may iba kang gusto) --- */
.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.main-logo {
    height: 3.5rem;
    width: 3.5rem;
    border-radius: 9999px;
    margin-right: 1rem;
    margin-left: 0rem;
    object-fit: cover;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: inherit;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    padding: 1px;
    user-select: none;
}

.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;
}

.main.js-menu-open {
    display: flex;
    flex-direction: column;
    max-height: 300px;
    opacity: 1;
    background-color: #1673d1;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem 0;
    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: 35px;
    width: auto;
}

.nav-link {
    color: #ffffff;
    padding: 0.75rem 1rem;
    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: #b6d4f6;
    background-color: rgba(255, 255, 255, 0.1);
}

.back-to-home-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0d4782;
    color: #ffffff;
    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: #0a3a6b;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.home-section {
    position: relative;
    height: 100vh;
    background-color: #E0E0E0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.home-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.0);
    z-index: 1;
}

.home-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.home-title-animate {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-family:'M PLUS Rounded 1c';
}

.home-subtitle-animate {
    font-size: 1.2em;
    font-weight: 400;
    margin-bottom: 30px;
    line-height: 1.8;
    font-family: 'Montserrat';
}

.primary-animate {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: 550;
    font-family: 'Raleway';
}

.primary-animate:hover {
    background-color: #0056b3;
}

#why-choose-us {
    position: relative;
    padding: 80px 0;
    background-color: #F0F0F0;
    z-index: 1;
}

#why-choose-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.0);
    z-index: 0;
}

.why-light-blue {
    background-color: #F0F0F0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.why-center {
    text-align: center;
}

.why-left {
    text-align: left;
}

.section-title-why {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    font-weight: 800;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
    text-align: center;
    letter-spacing: 0.03em;
}

.section-title-why::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: #0e76de;
    border-radius: 2px;
}

.why-gradient-blue {
    background: #014d99;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.card-why {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.why {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #333;
}

.why > * {
    position: relative;
    z-index: 1;
}

.why:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.why-title {
    font-family: Arial;
    text-align: center;
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000000;
    letter-spacing: 0.01em;
}

.why-text {
    font-family: Times;
    text-align: center;
    font-size: 1.1em;
    font-weight: 500;
    margin-bottom: 10px;
    color: #000000;
    letter-spacing: 0.01em;
}

.why-text-title {
    font-family: 'Inter';
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.7;
    color: #000000;
}

.card-bg-1, .card-bg-2, .card-bg-3, .card-bg-4, .card-bg-5, .card-bg-6 {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #000000;
    position: relative;
}

/* Media Queries */
@media screen and (max-width: 1023px) {
    body {
        padding-top: 4.5rem;
    }
    .header {
        padding: 0.5rem 0; /* Keep 0 horizontal padding */
        justify-content: center; /* Center content */
    }
    .header1 {
        padding: 0 15px; /* Adjust padding for smaller screens */
        justify-content: space-between;
    }
    .main-logo {
        height: 2.8rem;
        width: 2.8rem;
    }
    .brand-name {
        font-size: 1.2rem;
    }
    .hamburger-menu {
        display: block;
        order: 2;
        margin-left: auto;
        margin-right: 1rem;
    }
    .main {
        display: none;
        flex-direction: column;
        width: 100%;
        max-height: 0;
        opacity: 0;
    }
    .main-links {
        flex-direction: column;
        text-align: center;
        gap: 0;
    }
    .nav-link {
        padding: 0.75rem 1rem;
    }
    .back-to-home-button {
        display: inline-block;
        order: 3;
        margin-left: 0;
        margin-right: 0;
        font-size: 0.8em;
        padding: 8px 12px;
    }
    .home-title-animate {
        font-size: 2.5em;
    }
    .home-subtitle-animate {
        font-size: 1.1em;
        line-height: 1.6;
    }
    .home-content {
        padding: 15px;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding-top: 4rem;
    }
    .home-title-animate {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .home-subtitle-animate {
        font-size: 0.9em;
        margin-bottom: 25px;
        line-height: 1.5;
    }
    .home-content {
        padding: 10px;
    }
    .primary-animate {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .back-to-home-button {
        font-size: 0.7em;
        padding: 5px 10px;
    }
    .hamburger-menu {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 320px) {
    .home-title-animate {
        font-size: 1.5em;
    }
    .home-subtitle-animate {
        font-size: 0.8em;
    }
}

@media (min-width: 1024px) {
    .main {
        display: flex;
        align-items: center;
        width: auto;
        max-height: none;
        opacity: 1;
        position: static;
        padding: 0;
        box-shadow: none;
    }
    .hamburger-menu {
        display: none;
    }
    .main-links {
        flex-direction: row;
        flex-grow: 1;
        justify-content: right;
        gap: 35px;
        width: auto;
    }
    .back-to-home-button {
        display: inline-block;
        margin-left: 2.5rem;
        order: unset;
    }
}