/* ================= RESET ================= */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background: url("../assets/BG1.png") center / cover no-repeat fixed;
    font-family: Arial, sans-serif;
}

/* ================= SPLINE ================= */
#spline-wrapper {
    height: 70vh;
    inset: 0;
    z-index: 10;
}

spline-viewer {
    width: 100%;
    height: 100%;
}

/* ================= TOP HEADER ================= */
.top-header {
    position: absolute;
    /* top: 96px;  */
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
}

/* ================= LOGO ================= */
.main-logo img {
    width: 150px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.main-logo:hover img {
    transform: scale(1.08);
}

/* ================= MAIN PAGE TEXT ================= */
.mainpagetext {
    position: absolute;
    top: 310px;
    /* stays under logo */
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;

    text-align: center;
    color: #ff5050;
    font-size: 1.3em;
    font-weight: 600;
    text-shadow: 1px 1px 20px rgba(255, 68, 0, 0.7);
}

/* ================= LEFT NAV ================= */
.side-nav {
    position: absolute;
    top: 55%;
    left: 32px;
    transform: translateY(-50%);
    z-index: 15;

    display: flex;
    flex-direction: column;
    gap: 23px;
}

/* ================= RIGHT NAV ================= */
.right-nav {
    position: absolute;
    top: 55%;
    right: 32px;
    transform: translateY(-50%);
    z-index: 15;

    display: flex;
    flex-direction: column;
    gap: 23px;
}

/* ================= BUTTON STYLE ================= */
.side-nav a,
.right-nav a {
    background: rgb(253, 88, 75);
    color: #fff;
    padding: 10px 18px;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
}

/* ================= LOGO BEHIND SPLINE ================= */
.logo-behind {
    z-index: 5 !important;
    pointer-events: none;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

    .top-header,
    .mainpagetext,
    .side-nav,
    .right-nav {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        z-index: 20;
    }

    #spline-wrapper {
        position: relative;
        height: 100vh;
        margin-top: -350px;
        margin-bottom: -250px;
    }

    .side-nav a,
    .right-nav a {
        width: 90%;
        max-width: 360px;
        text-align: center;
    }

    .mobile-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 67px;
    }

    .right-nav {

        right: 0px;

    }

    .banner-header img {
        height: 97%;
        width: 20rem !important;
        object-fit: contain;
    }

    .banner-header {
        background-color: #012698;
        padding: 10px 30px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        z-index: 20;
        height: 100px;
        box-sizing: border-box;
        flex-direction: column;
    }


    .govph-footer {
        padding: 30px 0;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer-seal {
        margin-bottom: 10px;
        width: 100px;
        height: 100px;
    }

    .footer-section {
        max-width: 100%;
        padding: 0 10px;
    }

    .government-links {
        align-items: center;
    }

}


input.block.w-full.ps-9.pe-3.py-2.text-sm.border.border-gray-300.rounded-md {
    box-sizing: border-box !important;
}

*,
:after,
:before {
    border: 0 solid #e5e7eb;
    box-sizing: content-box !important;
}


.navbg {
    background-color: #f7f7f7;
    position: relative;
    z-index: 20;
}

a.govtext {
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
}

a.govtext:hover {
    font-weight: 600;
}




#accessibility-button {
    background-color: transparent;
    color: #000;
}

.button {
    display: inline-block;
    text-align: center;
    line-height: 1;
    cursor: pointer;
    -webkit-appearance: none;
    transition: background-color 0.25s ease-out, color 0.25s ease-out;
    vertical-align: middle;
    border: 1px solid transparent;
    border-radius: 3px;
    padding: 0.85em 1em;

    font-size: 0.9rem;
    background-color: #2ba6cb;
    color: #fefefe;
}

.show-for-sr,
.show-on-focus {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}


#magnifier-button {
    background-color: transparent;
    color: #000;
}


.banner-header {
    background-color: #012698;
    ;
    /* Deep blue color from the banner image */

    padding: 10px 80px;
    /* Increased padding to give space for time on the right */
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Pushes content to the far ends */
    position: relative;
    z-index: 20;
    /* Keep it above the main content */
    height: 100px;
    /* Set a fixed height for the banner */
    box-sizing: border-box;
    /* Ensure padding doesn't increase total height */
}

.banner-header img {
    height: 100%;
    /* Make the image take up the full height of the container */
    width: auto;
    object-fit: contain;
    /* margin-left: 20px; - Removed, using padding on the container */
}

/* ================= BANNER TIME ================= */
.banner-time {
    color: #fff;
    font-size: 0.85rem;
    /* Smaller font size */
    text-align: right;
    display: flex;
    flex-direction: column;
    padding-right: 20px;
    line-height: 1.2;
}




.govph-footer {
    position: relative;
    z-index: 20;
    /* Keep it on top of other content, but the lowest z-index among overlays */
    background-color: #e9e9e9;
    /* Light gray background color */
    color: #505050;
    padding: 1.25rem 0;
    font-size: .7rem;
}

.footer-container {
  max-width: 1200px;
    margin: 0 auto;

    display: flex;
   
    align-items: flex-start;
}

.footer-seal {
    flex-shrink: 0;
    width: 140px;
    /* Adjust size of the seal container */
    height: 140px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.footer-seal img {
    width: 110%;
    height: auto;
    opacity: 0.6;
    /* Lighten the seal to match the image */
}

.footer-section {
    flex-grow: 1;
    max-width: 248px;
    /* Limit the width of the text sections */
    padding-right: 70px;
}

.footer-section h3 {
    font-size: 0.95em;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: #333;
}

.republic-section {
    max-width: 250px;
    padding-left: 2.9375em;
    padding-right: 8.2em;
}

.republic-section p {
    line-height: 1.6;
}

.about-section .govph-links {
    margin-top: 20px;
}

.about-section .govph-links h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    color: #333;
}

.government-links {
    display: flex;
    flex-direction: column;
}

.footer-section a {
    color: #333;
    text-decoration: none;
    display: block;
    transition: color 0.2s;
    white-space: nowrap;
}

.footer-section a:hover {
    color: #012698;
    /* Use the banner blue for hover effect */
    text-decoration: underline;
}


img, video {
    height: auto;
    max-width: 110% !important;
}
