* {
    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: #a2ceee;
    padding-top: 5rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.header {
    background: #1673d1;
    color: #ffffff;
    padding: 0.8rem 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15),
                0 2px 4px -1px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 0;
}

.header1 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0;
    max-width: 1200px;
    margin: auto;
    flex-grow: 1;
    font-family: 'Glacial indiffirence';
    justify-content: space-between;
}

.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;
    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;
}

.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: 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: #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);
}

#why-choose-us {
    position: relative;
    padding: 80px 0;
    background-color: #c5e1ff;
    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: #f0f8ff;
}

.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: 2em;
    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(250px, 1fr)); /* Binago ang minmax width */
    gap: 20px; /* Binawasan ang gap */
    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: 20px; /* Binawasan ang padding */
    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.1em; /* Binawasan ang font-size */
    font-weight: 700;
    margin-bottom: 8px; /* Binawasan ang margin */
    color: #000000;
    letter-spacing: 0.01em;
}

.why-text {
    font-family: Times;
    text-align: center;
    font-size: 0.9em; /* Binawasan ang font-size */
    font-weight: 500;
    margin-bottom: 8px; /* Binawasan ang margin */
    color: #000000;
    letter-spacing: 0.01em;
}

.why-text-title {
    font-family: 'Inter';
    font-size: 1em; /* Binawasan ang font-size */
    font-weight: 600;
    line-height: 1.6; /* Inadjust ang line-height */
    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: 20px; /* Binawasan ang padding */
    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 (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;
    }

    .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 {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-link {
        width: 100%;
        padding: 0.75rem 1.5rem;
        text-align: left;
    }
}