/* MAIN */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.navbar {
    background-color: transparent;
    padding: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: 0.5s;
}

.navbar.shadow {
    background-color: #0033a0;
}

.navbarlogo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.navbarlogo img {
    width: 50px;
    height: auto;
}

.navbarlogo span {
    font-size: 24px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    padding-right: 40px;
}

.nav-links li {
    margin-right: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    position: relative;
}

.nav-links a::after {
    content: '';
    width: 0;
    height: 2px;
    background-color: white;
    position: absolute;
    bottom: -4px;
    left: 0;
    transition: 0.2s all linear;
}

.nav-links a:hover::after {
    width: 100%;
}
.menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
}
.home-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}
.close-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
}

/* WELCOME SECTION */
.welcome-section {
    width: 100%;
    background: url(IMAGE/BG.png) no-repeat center center/cover;
    position: relative;
}
.welcome-container {
    position: relative;
    z-index: 2;
    color: white;
    padding: 80px 10%;
    min-height: 68.3vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.welcome-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.welcome-layout {
    display: flex;
    align-items: center;
}
.barangay-logo {
    width: 400px;
    height: 310px;
    margin-right: 30px;
}
.welcome-content {
    flex-direction: column;
    justify-content: center;
}
.welcome-text, .barangay-name {
    text-shadow: 2px 2px 3px black;
}
.welcome-text {
    font-size: 34px;
    font-weight: bold;
    margin-bottom: -25px;
    text-transform: uppercase;
}
.barangay-name {
    font-size: 34px;
    font-weight: bold;
    margin-bottom: -5px;
}
.contact-info {
    font-size: 18px;
    line-height: 1.5;
}
.about-button {
    display: inline-flex;
    margin-top: 20px;
    background-color: #1a9c8e;
    color: #fff;
    padding: 12px 24px;
    font-size: 15px;
    text-decoration: none;
    transition: 0.3s ease-in-out;
}
.about-button:hover {
    background: transparent;
    color: white; /* Optional: match original background color */
    border: 2px solid white;
}

.welcome-layout {
    transform-origin: top;
    animation: facedown 1.5s ease-in-out forwards;
}
@keyframes facedown {
    from {
        transform: rotateX(15deg);
        opacity: 0;
    }
    to {
        transform: rotateX(0deg);
        opacity: 1;
    }
}
/* Optional: Add a hover effect */
.welcome-layout:hover {
    transform: rotateX(10deg); /* Slight tilt for effect */
    transition: transform 0.3s ease-in-out;
}

/* ABOUT US (INDEX) */
.aboutus-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 50px 10%;
    background-color: #ffffff;
}
.about-container {
    flex: 1;
    padding: 20px;
}
.about-content img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.brgy-name {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.name {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 300px;
}
.name h3 {
    color: #3a3d3e;
    font-size: 18px;
}
.about-container, .brgy-name {
    padding: 25px;
}
.brgy-info {
    background-image: url(IMAGE/philippinemap.png);
    object-fit: cover;
    text-align: justify;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.brgy-info h1 {
    font-size: 30px;
    text-align: left;
}
.brgy-info p {
    color: #3a3d3e;
    line-height: 1.5;
    font-size: 18px;
    margin-bottom: 17px;
}
.aboutus-section, .chairman-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.brgy-info button {
    background-color: #0033a0;
    color: white;
    font-size: 16px;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin: 10px 0;
}

/* ABOUT US PAGE */
.history-info {
    padding: 20px 10%;
}
.history-info h1 {
    color: #3a3d3e;
    font-size: 35px;
}
.history-info p {
    color: #3a3d3e;
    text-align: justify;
    line-height: 1.5;
    font-size: 18px;
    margin-bottom: 17px;
}


/* CITY BANNER */
.city-banner {
    padding: 10px;
}
.banner img {
    display: block;
    margin: 0 auto;
    box-shadow: 0px 3px 1px 2px rgba(0, 0, 0, 0.1);
    padding-right: 50px;
    padding-left: 50px;
    border-radius: 2px;
}

/* MISSION AND VISION */
.missionvision-section {
    padding: 30px 5%;
    background: linear-gradient(to bottom, #0033a0 50%, white 50%);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.mission-container, .vision-container {
    flex: 1;
    padding: 20px;
    margin: 10px;
    border: 1px solid white;
    background: #0033a0;
    box-shadow: 5px 5px 8px rgba(0, 0, 0, 0.474);
}
.mission-content h1, .vision-content h1 {
    font-size: 30px;
    color: white;
    text-transform: uppercase;
    text-align: center;
    /*text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.736);*/
}

.mission-content p, .vision-content p {
    font-size: 16px;
    color: #c0c7d6;
    line-height: 1.6;
    text-align: justify;
}   
html {
    scroll-behavior: smooth;
}

/* OFFICIALS SECTION */
.barangayofficials-section {
    padding: 50px;
    background-color: white;
    text-align: center;
}
.barangayofficials-section h1 {
    color: #3a3d3e;
    font-size: 50px;
}
.barangayofficials-section h2 {
    color: #3a3d3e;
}
.official-list {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.official-card {
    width: 300px;
    height: 330px;
    background: white;
    border-radius: 5px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #cecece;
}
.official-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}
.official-card .official {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 5%;
}
.card {
    width: 300px;
    height: 330px;
    background: white;
    border-radius: 5px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #cecece;
}
.card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}
.card .official {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 5%;
}

.official-name {
    font-size: 20px !important;
    font-weight: bold;
    color: #333;
    margin-bottom: 2px;
}

.official-role {
    font-size: 15px !important;
    color: #0033a0;
    font-weight: bo;
}

.pagination-controls {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.page-indicator {
    width: 40px;
    height: 10px;
    background: #eee;
    border-radius: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-indicator.active {
    background: #0033a0;
    width: 50px;
}

/* SERVICES */
.content-wrapper {
    padding: 30px;
    text-align: center;
}
.content-wrapper h1 {
    color: #3a3d3e;
    font-size: 50px;
}
.content-wrapper h2 {
    color: #3a3d3e;
    margin-bottom: 0;
}
.row {
    display: flex;
    justify-content: center;
    gap: 70px;
    flex-wrap: wrap;
}
.slider .card {
    background: #ECECEC;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 250px;
    text-align: center;
    word-wrap: break-word; /* Use for compatibility */
    overflow-wrap: break-word; /* Ensures long words wrap */
    word-break: break-word; /* Ensures any unbreakable text breaks */
}
.card i {
    font-size: 50px;
    margin-bottom: 15px;
    color: #0033a0;
}
.card p {
    text-align: center;
    font-size: 15px;
    overflow-wrap: break-word; /* Ensure long words wrap */
    word-wrap: break-word; /* Compatibility for legacy browsers */
    word-break: break-word; /* Forces long unbreakable words to break */
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0033a0;  
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
}
.fas.fa-file-alt {
    color: black;
    padding: 15px;
    background: white;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.fa-solid.fa-box {
    color: black;
    padding: 15px;
    background: white;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.fa-solid.fa-recycle {
    color: black;
    padding: 15px;
    background: white;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.fa-solid.fa-person-digging {
    color: black;
    padding: 15px;
    background: white;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.card h5 {
    font-size: 16px;
}
.slider-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}
.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    
}
.slide {
    width: 100%;
    flex: 0 0 100%;
    text-align: center;
}
.slider-controls {
    text-align: center;
    margin-top: 10px;
    padding: 15px;
}
.slider-controls button {
    background: #0033a0;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 18px;
    margin: 5px;
    border-radius: 5px;
}

/* Certificates & Services */
.residencydes {
    width: 80%;
    max-width: 800px;
    margin: 50px auto;
    background-color: white;
    padding: 20px 30px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.residencydes h2 {
    text-align: center;
    color: #3a3d3e;
    font-size: 22px; 
    padding: 20px;
}
.residencydes p {
    text-align: justify;
    margin-bottom: auto;
    color: #888d8f;

}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.input-container {
    position: relative;
    width: 100%;
}
.input-container input {
    padding: 17px 14px;
    margin-top: 5px;
    font-size: 16px;
    border: 1px solid lightgray;
    border-radius: 5px;
    color: #333;
    outline: none;
    transition: 0.3s ease-in-out;
    background: transparent;
}
.input-container input:hover {
    border-color: #002080;
}
.input-container input:focus {
    border-color: #002080;
}
.input-container label {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    font-size: 16px;
    color: gray;
    transition: 0.3s ease-in-out;
    pointer-events: none;
    background: white;
    padding: 0 5px;
}
.input-container select {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border: 1px solid lightgray;
    border-radius: 5px;
    color: #333;
    outline: none;
    background: white;
    transition: 0.3s ease-in-out;
}
.input-container select:hover,
.input-container select:focus {
    border-color: #002080;
}
.input-container input:focus + label,
.input-container input:not(:placeholder-shown) + label {
    top: 5px;
    font-size: 12px;
    color: #002080;
}
h3 {
    font-size: 15px;
    color: #888d8f;
    font-weight: bold;
    text-align: center;
    margin-bottom: auto;
}
.input-container input[readonly] {
    background-color: white;
    cursor: not-allowed;
}
.input-container {
    position: relative;
    width: 100%;
}

.input-container textarea {
    width: 96%;
    padding: 18.5px 14px;
    margin-top: 5px;
    font-size: 16px;
    border: 1px solid lightgray;
    border-radius: 5px;
    color: #333;
    outline: none;
    transition: 0.3s ease-in-out;
    background: transparent;
    resize: vertical; /* Allows resizing */
    min-height: 80px; /* Ensures default height */
    max-height: 200px; /* Prevents excessive height */
}

.input-container textarea:hover {
    border-color: #002080;
}

.input-container textarea:focus {
    border-color: #002080;
}

.input-container label {
    position: absolute;
    top: 18px; /* Adjusts for textarea height */
    left: 14px;
    font-size: 16px;
    color: gray;
    transition: 0.3s ease-in-out;
    pointer-events: none;
    background: white;
    padding: 0 5px;
}

/* Move label when textarea is focused or contains text */
.input-container textarea:focus + label,
.input-container textarea:not(:placeholder-shown) + label {
    top: 5px;
    font-size: 12px;
    color: #002080;
}

/* Emergency Contact Section */
.emergency-contact {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
}

.form-columns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 300px;
}

.input-container {
    position: relative;
    display: flex;
    flex-direction: column;
}
.submit-btn, .clear-btn {
    width: 15%;
    padding: 12px;
    font-size: 18px;
    background: #0033a0;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    margin-top: 15px;
    float: right; /* Aligns the button to the right */
}
.submit-btn:hover {
    background-color: #002080;
}
.clear-btn {
    width: 15%;
    padding: 12px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    margin-top: 15px;
    float: right; /* Aligns the button to the right */
}
.clear-btn:hover {
    background-color: #2b8000;
}
.button-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}
.button-profile {
    display: flex;
    justify-content: center;
    margin: 15px 0 30px 0;
}
.existing-profile-btn {
    background-color: #0033a0; /* Blue color */
    color: white;
    font-size: 13px;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.existing-profile-btn:hover {
    background-color: #002080; /* Darker blue */
    transform: scale(1.05);
}

/* Modal button */
.modal {
    display: flex; /* Ensures it is hidden on page load */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 350px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
}
.modal-content input {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.confirm-btn {
    background-color: #002080;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 13px;
    border-radius: 3px;
    transition: background 0.3s ease;
}
.confirm-btn:hover {
    background-color: #001060;
}
/* Modal Footer */
.modal-footer {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
}
.back-btn, .disabled-btn {
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
}
.back-btn {
    color: #354a8b;
    font-weight: bold;
}
.disabled-btn {
    background: #ccc;
    color: #666;
    pointer-events: none;
}

/* Page header */
#page-header {
    background-image: url(IMAGE/BG.png);
    height: 50vh;
    background-size: cover;
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 14px;
}
.about-header h1 {
    font-size: 70px;
    color: white;
    padding: 0;
    margin: 0;
}
.about-header p {
    color: white;
    font-size: large;
}

/* TRACK REQUEST */
.track-section {
    background-color: #0033a0;
    padding: 20px 0;
    display: flex;
    justify-content: center;
}

.track-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px; /* Adjust to your layout */
    width: 100%;
    padding: 10px 5%;
}

.track-text h2 {
    color: white;
    font-size: 35px;
    font-weight: bold;
}

.track-text p {
    color: #c0c7d6;
    font-size: 16px;
}

.track-form {
    display: flex;
    align-items: center;
}

.track-form input {
    padding: 12px;
    font-size: 16px;
    border: none;
    outline: none;
    width: 350px;
    border-radius: 4px 0 0 4px;
}

.track-form button {
    background-color: #1a9c8e;
    color: white;
    font-size: 16px;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
}

.track-form button:hover {
    background-color: #138676;
}

/* MAP */
.map-container {
    width: 100%;
    height: 450px;
}
.location-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 200px;
}
.location-image img {
    width: 250px;
    height: auto;
}
.location-details {
    font-size: 18px;
    color: #262728;
}
.location-details h3 {
    color: black;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}
/* DAILY ANNOUNCEMENT */
.daily-updates {
    border: 1px solid #cecece;
    border-top: none; /* Removes the top border */
    margin: 15px 100px 0 100px;
    border-radius: 5px;
}
.daily-updates h1 {
    color: #3a3d3e;
    font-size: 50px;
    text-align: center;
}
.announcement-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 50px 0px;
}
.a-card {
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}
.a-card:hover {
    transform: scale(1.05);
}
.a-card img, .a-card video {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.a-card-content {
    padding: 10px;
    text-align: left;
}
/* Modal Styling */
.modal-announce {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.modal-announce .modal-content {
    background-color: #fff;
    border-radius: 10px;
    width: 80%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 20px;
}
.modal-announce img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    object-fit: cover;
}
.modal-announce .modal-text {
    padding-top: 20px;
}
.modal-announce .close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 30px;
    font-weight: bold;
    color: #be2a2a;
    cursor: pointer;
}

/* TRACKING */
.track {
    width: 80%;
    margin: 50px auto;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Search Container */
.search-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}
.search-container input {
    width: 70%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}
.search-container button {
    padding: 10px 15px;
    background-color: #285FD4;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}
.search-container button:hover {
    background-color: #1e4db7;
}
/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: white;
    border: 1px solid #ccc; /* Light black border for a professional look */
}
thead {
    color: #3a3d3e;
    border-bottom: 1px solid #333; /* Light black border */
}
thead th {
    padding: 12px;
    text-align: left;
    border: 1px solid #c0c2c2;
}
tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}
tbody tr:hover {
    background-color: #e3e3e3;
}
td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}
/* Status Colors */
td[style*='color: #13AE2F'] { font-weight: bold; }
td[style*='color: #285FD4'] { font-weight: bold; }
td[style*='color: #CA831F'] { font-weight: bold; }

/* No Record Found Row */
#noRecordRow td {
    font-weight: bold;
    color: red;
    text-align: center;
}

/* FOOTER */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #222; /* Dark background */
    padding: 40px 10%;
    color: white;
}
.footer div {
    flex: 1;
    text-align: center;
}
.footer-logo {
    width: 120px; /* Adjust size as needed */
    height: auto;
    margin-bottom: 10px;
}
.footer p {
    font-size: 14px;
    color: #bbb; /* Lighter text color */
    max-width: 300px;
    margin: 0 auto;
}
.footer h3 {
    font-size: 16px;
    color: white;
    margin-bottom: 10px;
}
.footer a {
    display: block;
    text-decoration: none;
    color: #bbb;
    font-size: 14px;
    margin-bottom: 5px;
    transition: 0.3s;
}
.footer a:hover {
    color: #fff;
}
.credits {
    background-color: black;
    color: rgb(165, 165, 165);
    padding: 20px;
    text-align: right;
    font-size: 13px;
}
.tap-up {
    position: fixed;
    z-index: 1000;
    width: 50px;
    height: 50px;
    right: 50px;
    bottom: 50px;
    border-radius: 10px;
    line-height: 50px;
    text-align: center;
}
.tap-up i {
    font-size: 20px;
    color: white;
    background-color: #0033a0;
    border-radius: 25%;
    padding: 20px;
}


/* MEDIA QUERY */
@media (min-width: 1025px) and (max-width: 1440px) {
    .location-container {
        padding: 20px 150px;
    }
    .track-container {
        padding: 30px 8%;
    }
    .track-form input {
        width: 75%;
    }
    .track-form button {
        width: 25%;
    }
    .footer {
        padding: 40px 8%;
    }
    .official-list {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .card {
        width: 320px; /* Larger size for bigger screens */
        margin: 10px auto;
    }
    .submit-btn, .clear-btn {
        width: 18%;
    }
    .daily-updates {
        margin: 15px 80px;
    }
    .daily-updates h1 {
        font-size: 36px;
    }
    .announcement-container {
        gap: 15px;
    }
}

@media (min-width: 800px) and (max-width: 1024px) {
    .location-container {
        padding: 20px 80px;
    }
    .track-form input {
        width: 70%;
    }
    .track-form button {
        width: 30%;
    }
    .footer {
        display: flex;
        justify-content: space-around;
        padding: 30px 5%;
    }

    .footer div {
        flex: 1;
        text-align: center;
        max-width: 250px;
    }
    .footer-logo {
        width: 100px;
    }
    .footer p {
        font-size: 13px;
        max-width: 220px;
    }
    .footer h3 {
        font-size: 15px;
    }
    .footer a {
        font-size: 13px;
    }
    .submit-btn, .clear-btn {
        width: 20%;
    }
    .daily-updates {
        margin: 15px 50px;
    }
    .daily-updates h1 {
        font-size: 34px;
    }
    .a-card {
        width: 260px;
    }
}

@media (max-width: 799px) {
    /* Navigation */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 400px;
        background: #333;
        text-align: center;
        padding: 20px 0;
        transition: 0.3s ease-in-out;
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links li {
        margin: 20px 0;
    }
    .menu-icon {
        display: block;
        padding-right: 40px;
    }
    .home-icon {
        display: block;
        padding-right: 40px;
    }
    .close-icon {
        display: block;
        font-size: 15px;
    }
    /*Welcome page */
    .welcome-container {
        flex-direction: column;
        text-align: left;
        padding: 50px 5%;
    }
    .welcome-layout {
        flex-direction: column;
    }
    .barangay-logo {
        width: 150px;
        height: 150px;
        margin-top: 15px;
        margin-right: auto;
    }
    .welcome-text {
        font-size: 28px;
        margin-bottom: -15px;
    }
    .barangay-name {
        font-size: 28px;
    }
    .contact-info {
        font-size: 16px;
    }
    .about-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* About us section */
    .aboutus-section {
        flex-direction: column;
        text-align: center;
        padding: 30px 5%;
    }
    .about-container, .brgy-name {
        width: 100%;
        padding: 15px;
    }
    .about-content img {
        width: 100%;
        height: auto;
    }
    .brgy-info h1 {
        font-size: 26px;
    }
    .brgy-info p {
        font-size: 16px;
    }

    /* Mission and Vision */
    .missionvision-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .mission-container, .vision-container {
        width: 90%;
        margin: 10px 0;
    }
    .mission-content h1, .vision-content h1 {
        font-size: 26px;
    }
    .mission-content p, .vision-content p {
        font-size: 15px;
    }

    /* Banner */
    .banner img {
        width: 90%; /* Reduce the width for better responsiveness */
        padding: 0; /* Remove left/right padding */
    }
    /* Official */
    .official-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    .card {
        width: 90%; /* 1 card per row */
    }

    /* Services */

    /* Track */
    .track-container {
        flex-direction: column;
        text-align: center;
        padding: 20px 5%;
    }
    .track-text h2 {
        font-size: 28px;
    }
    .track-text p {
        font-size: 15px;
    }
    .track-form {
        max-width: 100%; /* Ensures it doesn't shrink too much */
    }
    .track-form input {
        width: 70%; /* Keeps input and button in one line */
    }
    .track-form button {
        width: 30%;
        white-space: nowrap; /* Prevents text from breaking */
    }
    .search-container {
        flex-direction: row; /* Maintain row direction on smaller screens */
        flex-wrap: wrap;
        justify-content: center;
    }
    .search-container input {
        width: 70%;
    }
    .search-container button {
        width: auto;
    }
    table {
        font-size: 14px;
    }
    thead th {
        padding: 8px;
    }
    td {
        padding: 8px;
    }
    .submit-btn, .clear-btn {
        width: 30%;
        font-size: 16px;
        padding: 10px;
    }

    /* Map */
    .location-container {
        flex-direction: column;
        text-align: center;
        padding: 20px 10%;
    }

    .location-image img {
        width: 200px; /* Reduce image size */
    }

    .location-details {
        font-size: 16px;
        margin-top: 10px;
    }

    .location-details h3 {
        font-size: 18px;
    }
    .daily-updates {
        margin: 10px 30px;
    }
    .daily-updates h1 {
        font-size: 30px;
    }
    .a-card {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 477px) {
    /* Navigation */
    .navbar {
        padding: 15px;
    }
    .navbarlogo span {
        font-size: 18px;
    }
    .welcome-container {
        padding: 40px 5%;
    }
    .barangay-logo {
        width: 200px;
        height: 200px;
        margin-top: 15px;
        margin-right: auto;
    }
    .submit-btn, .clear-btn {
        width: 40%;
        font-size: 14px;
        padding: 8px;
        float: none;
        display: block;
        margin: 15px auto; /* Center the button */
    }

    /* Welcome page */
    .welcome-text {
        font-size: 24px;
    }
    .barangay-name {
        font-size: 24px;
    }
    .contact-info {
        font-size: 14px;
    }
    .about-button {
        padding: 8px 16px;
        font-size: 12px;
    }
    .aboutus-section {
        padding: 20px 5%;
    }
    .brgy-info h1 {
        font-size: 22px;
    }
    .brgy-info p {
        font-size: 14px;
    }
    .name {
        max-width: 200px;
    }
    .name h3 {
        font-size: 16px;
    }
    .brgy-info h3 {
        font-size: 16px;
        line-height: 1.4;
    }

    /* Banner */
    .banner img {
        width: 100%; /* Make it full width for smaller screens */
        border-radius: 0; /* Remove border-radius for a cleaner look */
        box-shadow: none; /* Optional: Remove shadow for a flat design */
    }

    /* Mission and Vision Section */
    .missionvision-section {
        padding: 20px 5%;
    }
    .mission-container, .vision-container {
        width: 100%;
        padding: 15px;
    }
    .mission-content h1, .vision-content h1 {
        font-size: 22px;
    }
    .mission-content p, .vision-content p {
        font-size: 14px;
    }

    /* Officials*/
    .barangayofficials-section {
        padding: 50px;
        background-color: white;
        text-align: center;
    }
    .barangayofficials-section h1 {
        color: #3a3d3e;
        font-size: 50px;
    }
    .official-list {
        display: flex;
        justify-content: center;
        gap: 25px;
        flex-wrap: wrap;
        margin-top: 20px;
    }
    .card {
        width: 100%;
        height: 330px;
        background: white;
        border-radius: 5px;
        box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
        padding: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        border: 1px solid #cecece;
    }
    .card img {
        width: 100px;
        height: 100px;
        object-fit: cover;
    }
    
    .official-name {
        font-size: 20px !important;
        font-weight: bold;
        color: #333;
        margin-bottom: 2px;
    }
    
    .official-role {
        font-size: 15px !important;
        color: #0033a0;
        font-weight: bo;
    }
    
    .pagination-controls {
        margin-top: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 5px;
    }
    
    .page-indicator {
        width: 40px;
        height: 10px;
        background: #eee;
        border-radius: 2px;
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    .page-indicator.active {
        background: #0033a0;
        width: 50px;
    }

    /* Services */

    /* Track */
    .track-text h2 {
        font-size: 24px;
    }
    .track-text p {
        font-size: 14px;
    }
    .track-container {
        padding: 15px;
    }
    .track-form {
        max-width: 100%;
    }
    .track-form input {
        font-size: 14px;
        padding: 10px;
        width: 65%; /* Ensures it stays inline */
    }
    .track-form button {
        font-size: 14px;
        padding: 10px;
        width: 35%;
    }
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .track {
        padding: 15px;
    }

    /* Map */
    .map-container {
        height: 300px; /* Reduce map height */
    }

    .location-container {
        padding: 15px;
    }

    .location-image img {
        width: 150px; /* Further reduce image size */
    }

    .location-details {
        font-size: 14px;
    }

    .location-details h3 {
        font-size: 16px;
    }
    .daily-updates {
        margin: 10px 15px;
    }
    .daily-updates h1 {
        font-size: 28px;
    }
    .a-card-content {
        text-align: center;
    }

}
@media (max-width: 390px) {
    /* Navigation */
    .navbar {
        padding: 12px;
    }
    .navbarlogo span {
        font-size: 16px;
    }
    .menu-icon {
        padding-right: 20px;
    }

    /* Welcome page */
    .welcome-container {
        padding: 30px 5%;
    }
    .barangay-logo {
        width: 180px;
        height: 180px;
        margin-right: auto;
    }
    .welcome-text {
        font-size: 22px;
    }
    .barangay-name {
        font-size: 22px;
    }
    .contact-info {
        font-size: 13px;
    }
    .about-button {
        padding: 7px 14px;
        font-size: 12px;
    }

    /* About us section */
    .aboutus-section {
        padding: 20px 5%;
    }
    .brgy-info h1 {
        font-size: 20px;
    }
    .brgy-info p {
        font-size: 13px;
    }
    .name h3 {
        font-size: 15px;
    }

    /* Banner */
    .banner img {
        width: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    /* Mission and Vision */
    .missionvision-section {
        padding: 20px 5%;
    }
    .mission-container, .vision-container {
        width: 100%;
        padding: 12px;
    }
    .mission-content h1, .vision-content h1 {
        font-size: 20px;
    }
    .mission-content p, .vision-content p {
        font-size: 13px;
    }

    /* Officials */
    .official-list {
        justify-content: center;
    }
    .card {
        width: 100%;
        height: auto;
        padding: 8px;
    }
    .card img {
        width: 90px;
        height: 90px;
    }
    .official-name {
        font-size: 18px;
    }
    .official-role {
        font-size: 14px;
    }

    /* Services */

    /* Track */
    .track-text h2 {
        font-size: 22px;
    }
    .track-text p {
        font-size: 13px;
    }
    .track-container {
        padding: 12px;
    }
    .track-form input {
        font-size: 13px;
        padding: 8px;
        width: 65%;
    }
    .track-form button {
        font-size: 13px;
        padding: 8px;
        width: 35%;
    }

    /* Map */
    .map-container {
        height: 250px;
    }
    .location-container {
        padding: 12px;
    }
    .location-image img {
        width: 140px;
    }
    .location-details {
        font-size: 13px;
    }
    .location-details h3 {
        font-size: 15px;
    }
    .submit-btn, .clear-btn {
        width: 50%;
        font-size: 14px;
        padding: 8px;
    }
    .daily-updates {
        margin: 10px;
    }
    .daily-updates h1 {
        font-size: 26px;
    }
    .a-card {
        width: 100%;
    }
    .a-card-content p {
        font-size: 14px;
    }

}

/* INCIDENT REPORTS - Modern Style */
.incidentreport {
  padding: 2.5rem;
  background: linear-gradient(135deg, #f9fbff, #eef3fa);
  max-width: 850px;
  margin: 3rem auto;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  color: #2c3e50;
}

/* Header */
.incident-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #e0e6f0;
  padding-bottom: 0.8rem;
}

.incident-header h1 {
  font-size: 2rem;
  margin: 0;
  font-weight: 700;
  color: #003366;
}

#toggleFormBtn {
  background: #003366;
  border: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.2s ease;
}

#toggleFormBtn:hover {
  background: #0056b3;
  transform: rotate(180deg) scale(1.1);
}

/* Form Container */
.form-container {
  margin-top: 2rem;
  transition: max-height 0.6s ease, opacity 0.6s ease;
  overflow: hidden;
}

.hidden {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.visible {
  max-height: 2500px;
  opacity: 1;
  pointer-events: auto;
}

/* Form Styling */
#incidentForm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  text-align: left;
  margin-top: 1.5rem;
}

#incidentForm div {
  display: flex;
  flex-direction: column;
}

#incidentForm label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #003366;
}

#incidentForm input,
#incidentForm select,
#incidentForm textarea {
  padding: 0.8rem 1rem;
  border: 1px solid #ccd6eb;
  border-radius: 10px;
  font-size: 1rem;
  background-color: #fdfdfd;
  color: #2c3e50;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#incidentForm input:focus,
#incidentForm select:focus,
#incidentForm textarea:focus {
  border-color: #0056b3;
  box-shadow: 0 0 6px rgba(0, 86, 179, 0.25);
  outline: none;
  background-color: #ffffff;
}

#incidentForm textarea {
  resize: vertical;
  min-height: 120px;
}

/* Submit Button */
.submit-btn {
  grid-column: span 2;
  padding: 1rem;
  background: linear-gradient(135deg, #003366, #0056b3);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #0056b3, #0073e6);
  transform: translateY(-2px);
}

/* Responsive for Mobile */
@media (max-width: 768px) {
  #incidentForm {
    grid-template-columns: 1fr;
  }
}
