/* Reset and Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: #333;
background-color: #f8f9fa;
}

.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}

/* Header Styles */
.main-header {
background-color: green; /* solid blue */
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
position: sticky;
top: 0;
z-index: 1000;
}

/* Navbar */
.navbar {
background-color: #2a5298; /* solid blue */;
color: white;
padding: 1rem 0;
position: relative;
z-index: 1001;
}

.navbar .container {
display: flex;
align-items: center;
justify-content: space-between;
}

.nav-brand {
display: flex;
align-items: center;
}

.nav-brand .logo {
height: 65px; /* increase size */
width: 65px; /* make it square */
border-radius: 50%; /* make it circular */
object-fit: cover; /* make sure the image fits neatly */
border: 2px solid white;/* optional: white border for polish */
margin-right: 12px; /* small spacing before text */
transition: transform 0.3s ease;
}

.nav-brand .logo:hover {
transform: scale(1.05); /* slight hover zoom for effect */
}


.nav-menu {
list-style: none;
display: flex;
gap: 1.5rem;
}

.nav-menu .nav-link {
color: white;
text-decoration: none;
font-weight: 500;
}

.nav-menu .nav-link:hover {
color: #007bff;
}

/* Hamburger */
.nav-toggle {
display: none;
flex-direction: column;
justify-content: space-between;
width: 25px;
height: 20px;
cursor: pointer;
z-index: 1101;
}

.nav-toggle span {
background: white;
height: 3px;
border-radius: 3px;
width: 100%;
transition: all 0.3s ease;
}

/* Responsive Menu */
@media (max-width: 992px) {
.nav-toggle {
display: flex;
}

.nav-menu {
position: absolute;
top: 70px;
left: -100%;
width: 100%;
background-color: #1a1a1a;
flex-direction: column;
align-items: center;
padding: 1.5rem 0;
transition: left 0.4s ease;
box-shadow: 0 10px 20px rgba(0,0,0,0.2);
z-index: 1100;
}

.nav-menu.active {
left: 0;
}

.nav-menu li {
margin: 0.8rem 0;
}

/* Animate hamburger to X */
.nav-toggle.active span:nth-child(1) {
transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
transform: rotate(-45deg) translate(5px, -5px);
}
}

/* Hero Section */
.hero {
background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url("../images/onse_background.jpg");
background-size: cover;
background-position: center;
height: 70vh;
display: flex;
align-items: center;
text-align: center;
color: white;
}

.hero-content h1 {
font-size: clamp(1.8rem, 5vw, 3.5rem);
margin-bottom: 1rem;
font-weight: 700;
text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
font-size: clamp(1rem, 3vw, 1.3rem);
margin-bottom: 1rem;
text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-subtitle {
color: #e8f4fd;
margin-bottom: 2rem !important;
}

.hero-buttons {
display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
}

/* Buttons */
.btn {
display: inline-block;
padding: 12px 30px;
text-decoration: none;
border-radius: 8px;
font-weight: 600;
transition: all 0.3s ease;
border: none;
cursor: pointer;
font-size: 1rem;
}

.btn-primary {
background: linear-gradient(135deg, #ff6b6b, #ee5a24);
color: white;
box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
background: transparent;
color: white;
border: 2px solid white;
}

.btn-secondary:hover {
background: white;
color: #2a5298;
transform: translateY(-2px);
}

.btn-outline {
background: transparent;
color: #2a5298;
border: 2px solid #2a5298;
}

.btn-outline:hover {
background: #2a5298;
color: white;
transform: translateY(-2px);
}

/* === Keep all your other sections (Quick Services, Announcements, Contact, Footer, Forms, etc.) === */
/* They’re already correct — no changes needed beyond navbar fix. */

/* Quick Services */
.quick-services {
padding: 80px 0;
background: white;
}

.quick-services h2 {
text-align: center;
font-size: 2.5rem;
margin-bottom: 3rem;
color: #2a5298;
font-weight: 700;
}

.services-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 2rem;
margin-bottom: 3rem;
}

.service-card {
background: white;
padding: 2rem;
border-radius: 12px;
text-align: center;
box-shadow: 0 5px 20px rgba(0,0,0,0.1);
transition: all 0.3s ease;
border-top: 4px solid #2a5298;
}

.service-card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-card i {
font-size: 3rem;
color: #2a5298;
margin-bottom: 1rem;
}

.service-card h3 {
font-size: 1.3rem;
margin-bottom: 1rem;
color: #333;
}

.service-card p {
color: #666;
margin-bottom: 1.5rem;
line-height: 1.6;
}

/* Announcements */
.announcements {
padding: 80px 0;
background: #f8f9fa;
}

.announcements h2 {
text-align: center;
font-size: 2.5rem;
margin-bottom: 3rem;
color: #2a5298;
font-weight: 700;
}

.announcements-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 2rem;
margin-bottom: 3rem;
}

.announcement-card {
background: white;
padding: 2rem;
border-radius: 12px;
box-shadow: 0 5px 20px rgba(0,0,0,0.1);
transition: all 0.3s ease;
}

.announcement-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.announcement-date {
color: #2a5298;
font-weight: 600;
font-size: 0.9rem;
margin-bottom: 1rem;
}

.announcement-card h3 {
font-size: 1.3rem;
margin-bottom: 1rem;
color: #333;
}

.announcement-card p {
color: #666;
line-height: 1.6;
margin-bottom: 1rem;
}

.read-more {
color: #2a5298;
text-decoration: none;
font-weight: 600;
transition: color 0.3s ease;
}

.read-more:hover {
color: #1e3c72;
}

/* Contact Info */
.contact-info {
padding: 80px 0;
background: linear-gradient(135deg, #2a5298, #1e3c72);
color: white;
}

.contact-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
}

.contact-item {
display: flex;
align-items: flex-start;
margin-bottom: 1rem;
color: black;
}

.contact-item i {
font-size: 1.5rem;
margin-right: 12px;
color: #007bff; /* blue for icons */
min-width: 24px;
text-align: center;
margin-top: 3px;
}

.contact-item div {
flex: 1;
}

.contact-item h4 {
margin: 0 0 4px 0;
font-size: 1rem;
font-weight: bold;
color: black;
}

.contact-item p {
margin: 0;
font-size: 0.95rem;
line-height: 1.4;
color: black;
}


/* Footer */
.main-footer {
background: #1a1a1a;
color: white;
padding: 50px 0 20px;
}

.footer-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-bottom: 2rem;
}

.footer-section h3 {
margin-bottom: 1rem;
color: #ff6b6b;
font-weight: 600;
}

.footer-section ul {
list-style: none;
}

.footer-section ul li {
margin-bottom: 0.5rem;
}

.footer-section ul li a {
color: #ccc;
text-decoration: none;
transition: color 0.3s ease;
}

.footer-section ul li a:hover {
color: white;
}

.social-links {
display: flex;
gap: 1rem;
margin-top: 1rem;
}

.social-links a {
display: inline-block;
width: 40px;
height: 40px;
background: #2a5298;
color: white;
text-align: center;
line-height: 40px;
border-radius: 50%;
transition: all 0.3s ease;
}

.social-links a:hover {
background: #ff6b6b;
transform: translateY(-3px);
}

.contact-item {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 0.5rem;
color: #ccc;
}

.contact-item i {
color: #ff6b6b;
width: 20px;
}

.footer-bottom {
border-top: 1px solid #333;
padding-top: 2rem;
text-align: center;
color: #ccc;
}

/* Form Styles */
.form-container {
background: white;
padding: 3rem;
border-radius: 12px;
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
margin: 2rem 0;
}

.form-group {
margin-bottom: 1.5rem;
}

.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 600;
color: #333;
}

.form-control {
width: 100%;
padding: 12px 16px;
border: 2px solid #e1e5e9;
border-radius: 8px;
font-size: 1rem;
transition: all 0.3s ease;
background: #f8f9fa;
}

.form-control:focus {
outline: none;
border-color: #2a5298;
box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
background: white;
}

.form-control:invalid {
border-color: #dc3545;
}

.form-control:valid {
border-color: #28a745;
}

textarea.form-control {
resize: vertical;
min-height: 120px;
}

select.form-control {
cursor: pointer;
}

/* Utility Classes */
.text-center {
text-align: center;
}

.text-left {
text-align: left;
}

.text-right {
text-align: right;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Alert Messages */
.alert {
padding: 1rem;
margin: 1rem 0;
border-radius: 8px;
font-weight: 500;
}

.alert-success {
background: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
}

.alert-error {
background: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
}

.alert-info {
background: #cce7ff;
color: #004085;
border: 1px solid #a3d5ff;
}

.alert-warning {
background: #fff3cd;
color: #856404;
border: 1px solid #ffeaa7;
}

/* Tables */
.table {
width: 100%;
border-collapse: collapse;
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.table th,
.table td {
padding: 1rem;
text-align: left;
border-bottom: 1px solid #e1e5e9;
}

.table th {
background: #2a5298;
color: white;
font-weight: 600;
}

.table tr:hover {
background: #f8f9fa;
}

/* Cards */
.card {
background: white;
border-radius: 12px;
box-shadow: 0 5px 20px rgba(0,0,0,0.1);
overflow: hidden;
transition: all 0.3s ease;
}

.card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card-header {
background: #2a5298;
color: white;
padding: 1.5rem;
font-weight: 600;
font-size: 1.2rem;
}

.card-body {
padding: 2rem;
}

.card-footer {
background: #f8f9fa;
padding: 1rem 2rem;
border-top: 1px solid #e1e5e9;
}

/* Page Header */
.page-header {
padding: 1rem 0; /* vertical spacing */
text-align: center;
}

.page-header h1 {
font-size: 2.5rem; /* adjust to match announcements */
font-weight: 700;
line-height: 1.2;
margin-bottom: 0.5rem;
}

.page-header p {
font-size: 1rem;
color: #555;
margin-top: 0;
line-height: 1.4;
}

/* Content Sections */
.content-section {
padding: 4rem 0;
}

.content-section.bg-light {
background: #f8f9fa;
}

.section-title {
text-align: center;
font-size: 2.2rem;
margin-bottom: 3rem;
color: #2a5298;
font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
.nav-menu {
position: fixed;
left: -100%;
top: 70px;
flex-direction: column;
background-color: #2a5298;
width: 100%;
text-align: center;
transition: 0.3s;
box-shadow: 0 10px 27px rgba(0,0,0,0.05);
padding: 2rem 0;
gap: 0;
}

.nav-menu.active {
left: 0;
}

.nav-menu li {
margin: 1rem 0;
}

.nav-toggle {
display: flex;
}

.nav-toggle.active span:nth-child(2) {
opacity: 0;
}

.nav-toggle.active span:nth-child(1) {
transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(3) {
transform: translateY(-7px) rotate(-45deg);
}

.hero-content h1 {
font-size: 2.5rem;
}

.hero-content p {
font-size: 1.1rem;
}

.hero-buttons {
flex-direction: column;
align-items: center;
}

.services-grid {
grid-template-columns: 1fr;
}

.announcements-grid {
grid-template-columns: 1fr;
}

.contact-grid {
grid-template-columns: 1fr;
}

.footer-content {
grid-template-columns: 1fr;
text-align: center;
}

.form-container {
padding: 2rem;
margin: 1rem;
}
}

@media (max-width: 480px) {
.container {
padding: 0 15px;
}

.hero-content h1 {
font-size: 2rem;
}

.nav-brand .brand-text h1 {
font-size: 1.2rem;
}

.service-card {
padding: 1.5rem;
}

.form-container {
padding: 1.5rem;
}
}

/* Loading Animation */
.loading {
display: inline-block;
width: 20px;
height: 20px;
border: 3px solid #f3f3f3;
border-top: 3px solid #2a5298;
border-radius: 50%;
animation: spin 1s linear infinite;
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

/* Status Badges */
.badge {
display: inline-block;
padding: 0.4rem 0.8rem;
font-size: 0.8rem;
font-weight: 600;
border-radius: 20px;
text-transform: uppercase;
}

.badge-success {
background: #28a745;
color: white;
}

.badge-warning {
background: #ffc107;
color: #212529;
}

.badge-danger {
background: #dc3545;
color: white;
}

.badge-info {
background: #17a2b8;
color: white;
}

/* Image Styles */
.img-responsive {
max-width: 100%;
height: auto;
border-radius: 8px;
}

.img-circle {
border-radius: 50%;
}

/* Breadcrumb */
.breadcrumb {
background: #f8f9fa;
padding: 1rem 0;
border-bottom: 1px solid #e1e5e9;
}

.breadcrumb-list {
display: flex;
list-style: none;
gap: 0.5rem;
align-items: center;
}

.breadcrumb-list li a {
color: #2a5298;
text-decoration: none;
}

.breadcrumb-list li:not(:last-child)::after {
content: '>';
margin-left: 0.5rem;
color: #666;
}

.breadcrumb-list li:last-child {
color: #666;
}



/* ===========================
Officials Page Responsive Fix
=========================== */

/* Official Card Images Responsive */
.official-card img,
.official-card div {
width: 100%;
max-width: 120px;
height: auto;
margin: 0 auto 0.5rem;
}

/* Official Card Hover */
.official-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(0,0,0,0.15);
border-color: #2a5298;
}

/* Modal Responsive Layout */
#officialModal .modal-content {
display: flex;
flex-direction: row;
max-width: 800px;
width: 100%;
background: #fff;
border-radius: 8px;
overflow: hidden;
transition: transform 0.6s ease, opacity 0.6s ease;
}

#officialModal .modal-photo {
width: 40%;
object-fit: cover;
}

#officialModal .modal-details {
width: 60%;
padding: 1.5rem;
overflow-y: auto;
}

/* Stack modal on small screens */
@media (max-width: 600px) {
#officialModal .modal-content {
flex-direction: column;
padding: 1rem;
}
#officialModal .modal-photo,
#officialModal .modal-details {
width: 100%;
}
#officialModal .modal-details {
padding: 1rem 0;
}
}

/* Hero Section Responsive Font */
.hero-content h1 {
font-size: clamp(1.8rem, 5vw, 3.5rem);
line-height: 1.2;
}

.hero-content p {
font-size: clamp(1rem, 3vw, 1.3rem);
}

/* Table Responsiveness */
.table-responsive {
width: 100%;
overflow-x: auto;
}

/* Reduce Card/Form Padding on Very Small Screens */
@media (max-width: 400px) {
.official-card,
.service-card,
.announcement-card,
.form-container {
padding: 1rem;
}
}

/* ===========================
Services Page Visual Adjustments
=========================== */

.page-header {
background: none !important; /* remove blue/gradient background */
color: #000 !important;
}

.page-header h1 {
color: #000 !important;
}

.page-header p {
color: #333 !important;
}

/* White Borders for Service Cards */
.card,
.service-card {
border: 1px solid #fff !important;
background: #fff !important;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.card-body {
background-color: #fff !important;
}

.card h5,
.card p,
.card li {
color: #000 !important;
}

/* ===========================
FINAL RESPONSIVE ENHANCEMENTS
=========================== */

/* --- Navbar Fix for Mobile Toggle --- */
@media (max-width: 992px) {
.nav-toggle {
display: flex;
flex-direction: column;
cursor: pointer;
gap: 5px;
z-index: 1100;
}

.nav-toggle span {
width: 28px;
height: 3px;
background: white;
border-radius: 3px;
transition: all 0.4s ease;
}

/* Hamburger Animation */
.nav-toggle.active span:nth-child(1) {
transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
transform: rotate(-45deg) translate(6px, -6px);
}

/* Dropdown Menu */
.nav-menu {
position: absolute;
top: 70px;
left: -100%;
width: 100%;
flex-direction: column;
background-color: #2a5298;
text-align: center;
transition: left 0.4s ease;
padding: 1.5rem 0;
box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.nav-menu.active {
left: 0;
}

.nav-menu li {
margin: 0.8rem 0;
}

.nav-link {
font-size: 1rem;
padding: 10px 0;
display: block;
width: 100%;
}
}

/* --- Responsive Text Scaling --- */
h1, h2, h3 {
word-wrap: break-word;
}
.hero-content h1 {
font-size: clamp(1.8rem, 4vw, 3.5rem);
}
.hero-content p {
font-size: clamp(1rem, 2.5vw, 1.3rem);
}

/* --- Image Responsiveness --- */
img, video {
max-width: 100%;
height: auto;
}

/* --- Grid Fix for Small Screens --- */
@media (max-width: 768px) {
.services-grid,
.announcements-grid,
.contact-grid,
.footer-content {
grid-template-columns: 1fr;
text-align: center;
}
}

/* --- Make Tables Scrollable on Mobile --- */
.table-responsive {
width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}

/* --- Padding and Font Scaling on Smallest Devices --- */
@media (max-width: 480px) {
.container {
padding: 0 10px;
}

.brand-text h1 {
font-size: 1.1rem;
}

.btn {
padding: 10px 20px;
font-size: 0.9rem;
}

.service-card,
.announcement-card,
.form-container {
padding: 1rem;
}

.hero-content h1 {
font-size: 1.8rem;
}
}

/* ===== Modal Styles for Service Requests ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-in-out;
}

.modal-box {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.25s ease-in-out;
}

.modal-box h3 {
    margin-bottom: 0.5rem;
    color: #2a5298;
}

.modal-box p {
    color: #555;
    font-size: 0.95rem;
}

#modalComment {
    width: 100%;
    margin-top: 1rem;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    resize: none;
    height: 80px;
    font-family: inherit;
    font-size: 0.9rem;
}

.modal-actions {
    margin-top: 1.2rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ================================
   ADMIN COMMENT STYLING
   ================================ */
.admin-comment-box {
    background: #e8f1ff;
    border-left: 5px solid #2a5298; /* deep blue accent */
    padding: 1rem 1.2rem;
    margin-top: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.admin-comment-box h4 {
    color: #2a5298;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.admin-comment-box p {
    color: #333;
    font-size: 0.95rem;
    white-space: pre-wrap;
}

/* Timeline comment bubble */
.timeline-comment {
    background: #fff5f5;
    border-left: 5px solid #c82333; /* red accent */
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
}

.timeline-comment .timeline-label {
    background: #c82333;
    color: #fff;
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.timeline-comment p {
    color: #4a0b0b;
    font-size: 0.9rem;
    margin: 0;
}

