@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Roboto:wght@100;300;400;500;700&display=swap');

:root{
    --main-color:#ffffff;
    --white:#ffffff;
    --bg: hsl(0, 0%, 100%);/*green to yellow*/
    /*yello-green linear-gradient(to right, rgb(255, 255, 255), rgb(245, 214, 156), rgb(253, 165, 2), rgb(16, 212, 16), rgb(84, 84, 243)) */
    --border: .1rem solid #000;
}

*{
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    transition: .2s linear;
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-padding-top: 9rem;
    scroll-behavior: smooth;
}

html::-webkit-scrollbar{
    width: 1.0rem;
}

html::-webkit-scrollbar-track{
    background: #fff;
}

html::-webkit-scrollbar-thumb{
    background: #027238;
    border-radius: 5rem;
}

body{
    background-color: #ecdcdc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

section{
    padding: 2rem 7%;
}

/* Main content container */
.main-content {
    flex-grow: 1; /* Allows content to push the footer down */
    display: flex;
    flex-direction: column;
}

.heading {
    position: relative;
    text-align: center;
    color: #014421;
    text-transform: uppercase;
    font-size: 4rem;
    font-family: simplifica;
    padding: 3rem 0;
    z-index: 1;
    top: 10%;
}

.heading::before {
    content: attr(data-bg);
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 7rem;              /* bigger background text */
    font-family: simplifica;
    color: rgba(1, 68, 33, 0.1);   /* faded background look */
    letter-spacing: 0.3rem;
    white-space: nowrap;
    z-index: -1;
    pointer-events: none;
}


.heading span{
    color: #014421;
    text-transform: uppercase;
    font-family: simplifica;
}

.btn{
    margin-top: 1rem;
    display: inline-block;
    padding: .9rem 3rem;
    font-size: 1.7rem;
    color: #fff;
    background: #000000;
    cursor: pointer;
}

.btn:hover{
    letter-spacing: .2rem;
}

.header{
    background: #014421;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.6rem 6%;
    border-bottom: var(--bg);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-text-img{
    display: inline-flex;
    margin-right: 10px;
}

.logo-container img {
    width: 60px; 
    height: 40px;
    margin-top: 7px;

}

/* .logo-text {
    color: black;
    text-align: center; 
    font-family: Georgia;
}

.logo-text h4 {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
}

.logo-text h2{
    font-size: 15px;
}  */

/* .inline-text {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px; 
} */

/* .inline-text h2, .inline-text h3 {
    margin: 0;
    font-weight: bold;
}

.inline-text h2 {
    font-size: 18px;
}

.inline-text h3 {
    font-size: 16px;
} */


.logo-container .gov{
    font-size: 1.9rem;
    font-weight: bolder;
    color: #fff;
    margin-right: 30px;
}

.logo-container .arta {
  width: 90px;
  height: auto;
  padding-left: -10px;
}

.logo-container .bagong_pilipinas {
  height: 35px;
  width: auto;
  margin-right: 30px;
}

.navbar{
    margin-left: 280px;
}

.header .navbar a{
    margin: 0.8rem;
    font-size: 1.7rem;
    color: #fff;
}

.header .navbar a:hover{
    color: #0edd87;
    border-bottom: .1rem solid #0edd87;
    padding-bottom: .5rem;
}

.header .icon #menu-btn{
    color: #0edd87;
    cursor: pointer;
    font-size: 2.5rem;
    margin: 2rem;
    font-weight: 700;
    line-height: 1;
}

.header .icon #menu-btn:hover{
    color: #0edd87;
}

#menu-btn{
    display: none;
}

.navbar .dropdown {
    position: relative;
    display: inline-block;
}

.navbar .dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgb(1, 60, 43, 0.7);
    z-index: 1;
    border-radius: 5px;
}

.navbar .dropdown-content a {
    color: rgb(1, 60, 43);
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    transition: background 0.3s, color 0.3s;
}

.navbar .dropdown-content a:hover {
    background-color: rgb(1, 60, 43);
    color: #fff;
}

.navbar .dropdown:hover .dropdown-content {
    display: block;
}

.navbar .dropdown:hover > a {
    color: #0edd87;
}

.office-container {
    max-width: 1200px;
    width: 100%;
    margin: auto;
    background: #fff;
    padding: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    min-height: 100vh;
    height: auto;
    font-size: small;
}



/* 🔹 MOBILE RESPONSIVENESS */
@media (max-width: 991px) {

    .header {
        padding: 1.5rem 3%;
        gap: 10px;
    }

    .logo-container {
        transform: none;
        margin-right: 0;
        max-width: calc(100% - 56px);
        overflow: hidden;
        gap: 8px;
    }

    .logo-text-img{
        display: flex;
    }

    .logo-container img {
        width: 46px; /* slightly smaller logo */
        height: auto;
        margin-left: 0;
    }

    .logo-text {
        font-size: 0.85em; /* scales down the entire text block */
        line-height: 1.1;
        margin-left: 20px;
    }

    .logo-text h4 {
        font-size: 12px;
    }

    .inline-text h2 {
        font-size: 14px;
    }

    .inline-text h3 {
        font-size: 12px;
    }

    .logo-text h2 {
        font-size: 14px;
    }

    .logo-container .gov {
        font-size: 1.5rem;
        margin: 0 4px;
        white-space: nowrap;
    }

    .logo-container .arta {
        width: 72px;
    }

    .logo-container .bagong_pilipinas {
        height: 28px;
        margin-right: 4px;
    }


    /* Hide navbar by default on mobile */
    .navbar {
        display: none;
        position: absolute;
        top: 100%;
        right: 3%;
        background: rgb(1, 60, 43);
        flex-direction: column;
        width: 220px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        padding: 10px 0;
        z-index: 999;
        animation: fadeInDown 0.3s ease;
    }

    /* When menu active */
    .navbar.active {
        display: flex;
    }

    .navbar a {
        display: block;
        margin: 0;
        padding: 12px 20px;
        font-size: 1.6rem;
    }

    .navbar a:hover {
        background-color: rgb(1, 60, 43);
        color: #0edd87;
        border: none;
        padding-bottom: 12px;
        transition: background 0.3s ease;
    }

    /* Dropdown styling inside mobile */
    .navbar .dropdown {
        width: 100%;
    }

    .navbar .dropdown-content {
        position: static;
        background-color: #f8f8f8;
        box-shadow: none;
        border-radius: 0;
        min-width: unset;
        padding-left: 20px;
    }

    .navbar .dropdown-content a {
        font-size: 1.5rem;
        padding: 10px 0;
        color: rgb(1, 60, 43);
    }

    /* Show burger icon */
    .header .icon{
        margin-left: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 44px;
        z-index: 1002;
    }

    #menu-btn {
        display: block;
        color: #0edd87;
        font-size: 2.8rem;
        line-height: 1;
        margin: 0;
        cursor: pointer;
        padding: 4px 8px;
    }

    .dropdown-content{
        display: flex;
    }

    .search-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .dropdown-btn {
        width: 100%;
        justify-content: center;
    }

    .dropdown-content {
        left: 0;
        right: 0;
        width: 100%;
    }
    
    #officeCashier {
    width: 95%;
    padding: 5px;
    margin: 0 auto;
  }    
  
  #knowledgeCenter {
    width: 95%;
    padding: 5px;
    margin: 0 auto;
  }
  
}

@media (max-width: 576px){
    .header{
        padding: 1.2rem 3%;
    }

    .logo-container{
        max-width: calc(100% - 50px);
    }

    .logo-container .gov{
        font-size: 1.35rem;
    }
}


/* 🔹 Optional smooth dropdown animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.home{
    min-height: 100vh;
    display: grid;
    padding-bottom: .1rem;
    align-items: center;
    background-color: #ecdcdc;
    background-size: cover;
    background-position: center;
}

.home .content{
    max-width: 60rem;
    min-height: 100vh;
    height: auto;
}

.home h1{
    padding-top: 10rem;
    color: #000000;
}

/* Main content container */
.container {
    max-width: 1200px;
    width: 100%;
    margin: auto;
    background: #fff;
    padding: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    flex-grow: 1; /* Allows it to expand */
    min-height: 100vh; /* Ensures it expands fully */
    height: auto; /* Allows growth */
    font-size: small;
    display: flex;
    flex-direction: column;
}

.container h2{
    text-transform: uppercase;
    font-family: Paytone One;
}

/* Content inside container should allow expansion */
.content {
    flex-grow: 1;
    width: 100%;
}

/* Content inside container should allow expansion */
.content .container {
    overflow-x: auto;
    max-width: 1200px;
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
}

/* Ensures expandable content is fully visible */
.expandable-content {
    overflow-y: visible;
    height: auto;
}

/* Fix overflow issues in parent container */
.parent-container {
    overflow: visible;
}

#officeCashier {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    background: #fff;
    padding: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    min-height: 100vh; /* Ensures it extends to full height */
    height: auto;
    font-size: small;
}

#knowledgeCenter {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    background: #fff;
    padding: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    min-height: 100vh; /* Ensures it extends to full height */
    height: auto;
    font-size: small;
}

/* Accordion Styles */
.accordion {
    border: 1px solid #dadada;
    margin-bottom: 10px;
    background-color: #ebe6e6;
    border-radius: 5px;
    overflow: hidden;
}

/* Accordion Header */
.accordion-header {
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
    color: #014421;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ccc;
}

/* Plus/Minus toggle */
.accordion-header::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f055"; 
    /* content: "+"; */
    font-size: 18px;
    margin-right: 10px;
}

.accordion.active .accordion-header::before {
    font-family: "Font Awesome 6 Free"; 
    font-weight: 900;
    content: "\f056";
    /* content: "-"; */
}

/* Accordion Content */
.accordion-content {
    display: none;
    padding: 10px;
    height: auto; /* Remove fixed height to allow full expansion */
    overflow: hidden;
}

.accordion.active .accordion-content {
    display: block;
}

/* Scrollable div inside content */
.scrollable-div {
    overflow-x: auto;
    overflow-y: auto;
    max-height: none; /* Let it expand fully */
}

/* Headings */
h1, h2 {
    text-align: center;
}

/* Table Styling */
table {
    table-layout: auto;
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #007bff;
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}


.highlight {
    background-color: yellow;
    font-weight: bold;
}


.form-popup{
    position: fixed;
    top: 50%;
    left: 50%;
    max-width: 720px;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    background: #ffffff80;
    transform: translate(-50%, -100%);
}

.show-popup .form-popup{
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, opacity 0.1s;
}

.form-popup .close-btn{
    position: absolute;
    top: 12px;
    right: 12px;
    color: #000000;
    cursor: pointer;
}

.form-popup .form-box{
    display: flex;
}

.form-box .form-details{
    max-width: 330px;
    width: 100%;
    color: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: url(../assets/login-background.png);
    background-size: cover;
    background-position: center;
}

.form-box h2{
    text-align: center;
    margin-bottom: 30px;
}

.form-box .form-content{
    width: 100%;
    padding: 35px;
}

form .input-field{
    height: 50px;
    width: 100%;
    margin-top: 20px;
    position: relative;
}

form .input-field input{
    width: 100%;
    height: 100%;
    outline: none;
    padding: 0 15px;
    font-size: 0.95rem;
    border-radius: 3px;
    border: 1px solid #717171;
}

.input-field input:focus{
    border-color: #000000;
}

.input-field input:is(:focus, :valid){
        padding: 16px 15px 0;
}

form .input-field label{
    position: absolute;
    top: 50%;
    left: 15px;
    color: #717171;
    pointer-events: none;
    transform: translateY(-50%);
}

.input-field input:is(:focus, :valid) ~ label{
    color: #29f800;
    font-size: 0.75rem;
    transform: translateY(-120%);
}

.form-box a{
    color: #000000;
    text-decoration: none;
}

.form-box a::hover{
    text-decoration: underline;
}

form button{
    width: 100%;
    outline: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 0;
    border-radius: 3px;
    margin: 25px 0;
    color: #fff;
    cursor: pointer;
    background: #0614e2;
}

form button:hover{
    background: #12d400;
}


/* Center the search bar above office buttons */
.search-container {
  position: relative; /* important for positioning the suggestion box */
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.search-container input {
  width: 90%;
  max-width: 400px;
  padding: 10px 15px;
  font-size: 1.6rem;
  border: 2px solid #000;
  border-radius: 5px;
  outline: none;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background-color: #ffffff;
    padding: 15px;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;

}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 220px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 10px;
    font-size: 1.5rem;
    top: 100%;
    max-height: 250px; /* Adjust as needed */
    overflow-y: auto;  /* Enables vertical scroll */
    overflow-x: hidden; /* Hides horizontal scrollbar */
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: #888 #f1f1f1; /* Optional styling */
}

.droptbn{
    cursor: pointer;
}

/* Optional: style for WebKit browsers (Chrome, Edge, etc.) */
.dropdown-content::-webkit-scrollbar {
  width: 40px;
}

.dropdown-content::-webkit-scrollbar-thumb {
  background-color: #aaa;
  border-radius: 3px;
}

.dropdown-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}


.dropdown-content a {
    color: black;
    padding: 10px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #014421;
    color: #fff;
    border-radius: 10px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content.show {
  display: block;
}

.dropdown-content.drop-up {
    top: auto;
    bottom: 100%;
    margin-bottom: 5px;
}

.show {
    display: block !important;
}

/* #officeRegistrar {
  display: block !important;
} */



.hidden {
    display: none !important;
}

.container {
  display: none;
}

.container.active {
  display: block;
}

/* === Suggestion Box Styling === */
.suggestion-box {
  position: absolute;
  top: calc(100% + 5px); /* small space below input */
  left: 37%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  background: white;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-height: 250px;
  overflow-y: auto;
  display: none; /* hidden by default */
  font-size: 1.6rem;
}

/* === Suggestion Items === */
.suggestion-box div {
  padding: 10px 15px;
  cursor: pointer;
  transition: background 0.2s;
}

.suggestion-box div:hover {
  background: #51c051 !important;
}


/* Media Queries for Different Screens */
@media (max-width: 768px) {
    .container {
        padding: 10px;
        max-height: 100%;
        font-size: smaller;
    }
    table {
        display: block;
    }
    th, td {
        padding: 8px;
    }
    h1, h2 {
        font-size: 1.5em;
    }

    .home .object object {
        width: 95%;
        height: 60vh; /* Reduce height on smaller screens */
    }

    .search-container input {
        width: 100%;
        max-width: none;
        min-height: 46px;
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .office {
        width: 100%;
        font-size: 1.4rem;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .home .object object {
        width: 100%;
        height: 50vh; /* Reduce height further on very small screens */
    }

    .office {
        width: 100%;
        font-size: 1.4rem;
        padding: 10px;
    }
}


/* .home .row .content{
    flex: 1 1 45rem;
    padding: 2rem;
}

.homw .row .content .a{
    font-size: 3rem;
    color: #000000;
    padding: 1rem;
    line-height: 1.8;
} */

.footer {
    background-color: #ffffff;
    color: #000;
    text-align: center;
    padding: 10px 0;
    font-size: 1rem;
    width: 100%;
    position: relative;
    bottom: 0;
    left: 0;
}

.footer .share {
    padding: 0.5rem 0; /* Reduce padding */
}

.footer .share a {
    height: 3rem;
    width: 3rem;
    line-height: 3rem;
    font-size: 1.5rem;
    color: #000;
    border: var(--border);
    margin: 0.2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.footer .share a:hover {
    background: #000;
    color: #fff;
}

.footer .credit {
    font-size: 1.2rem; /* Reduce font size */
    color: #0000009c;
    font-weight: bold;
    padding: 1rem; /* Reduce padding */
}

.footer .credit span {
    font-weight: lighter;
    color: #0000009c;
}

.footer .logo img {
    height: 5rem; /* Reduce logo size */
    display: block;
    margin: 0 auto;
}


@media (max-width:450px){
     
    html{
        font-size: 50%;
    }
    
    .search-container input {
        width: 100%;
        max-width: none;
        min-height: 48px;
        font-size: 1.8rem;
    }

}
