/* Base Styling */
body {
    font-family: 'Open Sans', Arial, sans-serif; /* Using Google Font */
    margin: 0;
    background-image: #f9fafc;
    color: #333;
    padding-top: 110px; /* Account for the fixed header */
    line-height: 1.6;
}

.about-body {
    background-color: #f8f9fb; /* Specific background for about pages if needed */
}

.about-container {
    width: 90%;
    max-width: 1300px;
    margin: 0px auto 50px auto;
}

.page-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 0px;
    margin-top: -20px; /* Adjust as needed */
    font-family: 'Montserrat', Arial, sans-serif; /* Using Google Font */
    text-align: center;
    color: #003366; /* Match header color */
}

.content-wrapper {
    display: flex;
    gap: 40px;
}

/* LEFT IMAGES */
.left-images {
    width: 25%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.img-box {
    border: 1px solid #d9d9d9;
    padding: 10px;
    border-radius: 5px;
    width: 60%;
}

.img-box img {
    width: 35%;
    height: auto;
    display: block;
    border-radius: 5px;
    margin-left: 100px;
}
.img-box h2 {
    margin-top: 10px;
 
}
.img-box a {
    color: #0d6efd;;
 
}

/* RIGHT TEXT */
.right-text {
    width: 60%;
    font-size: 14px;
    line-height: 1.6;
}
.right-text1 {
    width: 100%;
    font-size: 14px;
    line-height: 1.6;
    text-align: justify;
}

.line {
    margin-bottom: 20px;
}

.right-text h2 {
    margin-top: 10px;
    font-size: 20px;
}

.right-text ul {
    margin-top: 10px;
    padding-left: 20px;
}

.right-text ul li {
    margin-bottom: 10px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .content-wrapper {
        flex-direction: column;
    }
    .left-images,
    .right-text {
        width: 100%;
    }
}

        /* Fixed Header and Navigation Container */
header {
    background-color: #003366;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    padding: 10px 0; /* Add some vertical padding to header */
    display: flex; /* Allow h1 and nav to align nicely */
    flex-direction: column; /* Stack h1 and nav */
    align-items: center; /* Center horizontally */
}

header h1 {
    margin: 0;
    padding: 0 20px 5px 20px; /* Adjusted padding */
    text-align: center;
    font-size: 28px; /* Slightly larger for main title */
    font-family: 'Montserrat', sans-serif; /* Using Google Font */
    font-weight: 700;
}

/* Nav List */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allow navigation items to wrap on smaller screens */
    font-size: 14px; /* Slightly larger font for readability */
}

nav ul li {
    position: relative;
    padding: 0;
}

nav ul li a {
    display: block;
    padding: 8px 15px; /* Increased padding */
    color: white;
    text-decoration: none;
    font-weight: 600; /* Slightly bolder */
    white-space: nowrap;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

nav ul li a:hover,
nav ul li a.active { /* Style for the active link */
    background-color: #003366;
    color: #ffd700; /* A subtle accent color for active/hover */
}

/* Dropdown Icon Styling (using Unicode) */
.dropbtn:after {
    content: ' \25BE'; /* Down arrow Unicode */
    transition: transform 0.2s; /* Smooth rotation */
}

.dropdown:hover .dropbtn:after {
    transform: rotate(180deg); /* Rotate arrow when dropdown is open */
}
 
.sub-dropdown > a:after {
    content: ' \25B8'; /* Right arrow Unicode */
    margin-left: 5px; /* Space between text and arrow */
    transition: transform 0.2s;
}

.sub-dropdown:hover > a:after {
    transform: rotate(90deg); /* Rotate arrow when sub-dropdown is open */
}

/* ===== First-Level Dropdown ===== */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #004c99;
    min-width: 220px;
    z-index: 1;
}

.dropdown-content a {
    padding: 10px 15px; /* Increased padding */
    text-align: left;
    white-space: normal; /* Allow text to wrap within dropdown items */
}

.dropdown-content a:hover {
    background-color: #004c99;
    color: white;
}

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

/* ===== Second-Level Dropdown (Nested) ===== */
.sub-dropdown-content {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #003366;
    min-width: 250px;
}

.sub-dropdown-content a {
    padding: 8px 15px;
    white-space: normal;
}

.sub-dropdown-content a:hover {
    background-color: #004c99;
}

/* CRITICAL FIX: Ensure sub-dropdown appears when hovering over its parent .sub-dropdown */
.sub-dropdown:hover > .sub-dropdown-content {
    display: block;
}

/* If the main dropdown content has overflow set to hidden,
   you might need this for the sub-dropdown to appear correctly: */
.dropdown-content .sub-dropdown {
    position: relative; /* Ensure proper positioning context for submenu */
}

/* ===== Parallax Section CSS ===== */
.parallax-section {
    background-image: url('img/banner2.png'); /* Ensure this path is correct */
    min-height: 580px; /* Slightly increased height */
    margin-top: -100px; /* Remove any potential gap from header if padding-top is exactly header height */

   
    background-attachment: fixed; /* KEY for parallax */
    background-position: center 50px;
    background-repeat: no-repeat;
    background-size: contain; /* Changed to 'cover' for full fill */
    
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative; /* For overlay content */
}

.parallax-content {
    background-color: rgba(0, 51, 102, 0.75); /* Darker, more prominent overlay */
    padding: 40px 50px; /* Increased padding */
    border-radius: 12px;
    max-width: 900px; /* Max width for content box */
    box-shadow: 0 8px 25px rgba(0,0,0,0.5); /* Stronger shadow */
    position: relative;
    z-index: 3; /* Ensure content is above parallax effect */
}

.parallax-content h2 {
    margin-top: 0;
    font-size: 42px; /* Larger, more impactful heading */
    font-family: 'Montserrat', sans-serif; /* Using Google Font */
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.parallax-content p {
    font-size: 20px; /* Larger body text */
    margin-bottom: 30px; /* Space before button */
    font-family: 'Open Sans', sans-serif;
}

/* Learn More Button */
.btn-learn-more {
    display: inline-block;
    background-color: #ffd700; /* Gold/Yellow accent */
    color: #003366; /* Dark blue text */
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-learn-more:hover {
    background-color: #e6c200; /* Slightly darker gold on hover */
    transform: translateY(-2px); /* Subtle lift effect */
}


/* Main Content and Footer */
.main-content {
    max-width: 1100px;
    margin: 0px auto 0 auto; /* Pulls content up to overlap parallax */
    padding: 20px 30px; /* More padding */
    background: white;
    border-radius: 10px; /* Slightly larger border-radius */
    box-shadow: 0 5px 20px rgba(0,0,0,0.15); /* Stronger shadow */
    position: relative;
    z-index: 2;
}

.main-content section {
    margin-bottom: 60px; /* More space between sections */
    padding-bottom: 30px;
    border-bottom: 1px dashed #eee; /* Light dashed separator */
}

.main-content section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.main-content h2 {
    color: #003366;
    font-family: 'Montserrat', sans-serif;
    font-size: 32px; /* Larger section titles */
    font-weight: 850;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
}

.main-content h2:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #ffd700; /* Accent line under headings */
    border-radius: 2px;
}

/* Welcome Section Specifics */
.welcome-section p {
    font-size: 17px;
    text-align: justify;
    margin-bottom: 40px;
}

.mission-vision-box {
    margin-top: 40px;
    padding: 30px;
    background-color: #eef4f9; /* Lighter background for the box */
    border-left: 6px solid #004c99; /* Stronger accent border */
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mission-vision-box h3 {
    color: #003366;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    margin-top: 0;
    text-align: center;
    margin-bottom: 20px;
}

.mv-flex {
    display: flex;
    gap: 30px;
    justify-content: space-around;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.mv-item {
    flex: 1;
    min-width: 280px; /* Minimum width before wrapping */
    text-align: center;
    padding: 15px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.mv-item h4 {
    color: #004c99;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Programs Section */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 30px;
    margin-top: 30px;
}

.program-card {
    background-color: #fefefe;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.program-card h3 {
    color: #004c99;
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 15px;
}

.program-card p {
    font-size: 16px;
    color: #555;
    text-align: center;
}

.view-all-programs {
    text-align: center;
    margin-top: 40px;
    font-size: 18px;
}

.view-all-programs a {
    color: #004c99;
    text-decoration: none;
    font-weight: 600;
}

.view-all-programs a:hover {
    text-decoration: underline;
}

/* CTA Section */
.cta-section {
    background-color: #003366;
    color: white;
    padding: 10px 30px;
    text-align: center;
    border-radius: 10px;
    margin-top: 60px;
}

.cta-section h2 {
    color: white; /* Override default h2 color */
    font-size: 36px;
    margin-bottom: 25px;
}

.cta-section h2:after {
    background-color: #ffd700; /* Accent line for white text */
}

.cta-section p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 1px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 17px;
    margin: 0 10px;
    margin-bottom: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary {
    background-color: #ffd700;
    color: #003366;
}

.btn-primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #e6c200;
    color: #003366;
    
}

.btn-secondary:hover {
    background-color:  #e6c200;
    transform: translateY(-2px);
}
/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800&display=swap');

/* Main Container */
.mv-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
}

/* Common Styles for both columns */
.mv-half {
    flex: 1;
    min-width: 320px; /* Ensures stacking on mobile */
    position: relative;
    overflow: hidden;
}

.mv-quote-icon {
    font-size: 4rem;
    font-family: serif;
    line-height: 1;
    margin-bottom: 10px;
    display: block;
    opacity: 0.8;
}

h2.mv-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 20px 0;
    text-transform: capitalize;
    color:#ccc
}

p.mv-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-left: 40px;
}

/* --- LEFT SIDE: MISSION --- */
.mv-mission {
    background-color: #003366; /* The Dark Blue Color */
    color: white;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mv-mission-content {
    position: relative;
    z-index: 2;
}

/* Image container for the hands/keys */
.mv-mission-img-container {
    width: 100%;
    height: 300px; /* Fixed height for consistency */
    margin: 20px 0;
    overflow: hidden;
    position: relative;
}

.mv-mission-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    /* Optional: shifts image slightly right to match design */
    transform: translateX(10%); 
    width: 110%; 
}

.mv-mission-text-block {
    margin-top: 20px;
}

/* --- RIGHT SIDE: VISION --- */
.mv-vision {
    /* Background image is handled inline in HTML for easier changing */
    background-color: #ddd; 
    background-size: cover;
    background-position: center;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end; /* Aligns content to the right */
    border-bottom: 25px solid #003366; /* change thickness or color */;
    border-right: 25px solid #003366; /* change thickness or color */;
}

/* The floating blue text box */
.mv-vision-box {
    background-color: #003366; /* Same Dark Blue */
    color: white;
    width: 85%;
    padding: 40px 50px;
    margin-top: 0px;
    box-shadow: -10px 10px 20px rgba(0,0,0,0.3);
    text-align: right;
}

.mv-vision-box .mv-quote-icon {
    float: left; /* Quote icon sits to the left of text */
    margin-right: 15px;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .mv-container {
        flex-direction: column;
    }
    
    .mv-vision-box {
        width: 100%;
        margin-top: 0;
        padding: 30px;
        background-color: rgba(32, 58, 85, 0.95);
        text-align: left;
    }

    .mv-vision-box .mv-quote-icon {
        float: none;
        display: block;
    }

    .mv-mission-img-container img {
        transform: none;
        width: 100%;
    }

    h2.mv-title {
        font-size: 2.2rem;
    }
    
    .mv-mission, .mv-vision-box {
        padding: 30px;
    }
}
.center-box {
    max-width: 100vw;   /* never exceed viewport width */
    max-height: 900vh;  /* never exceed viewport height */
    width: auto;
    height: auto;
    object-fit: contain; /* ensure full image is visible */
}
.center-boxx {
   width: 100%;           /* Container takes full width of its parent */
  max-width: 1787px;     /* Prevents the image from stretching and getting blurry */
  margin: 0 auto;        /* Centers the container */
}
.center-boxx img {
   width: 100%;           /* Forces the image to fill the container */
  height: auto;          /* Maintains the 1787:576 aspect ratio */
  display: block;        /* Removes the tiny gap at the bottom of images */
}
.text {
    margin-top: 12px;
    font-size: 16px;
}

/* --- Footer Container and Background --- */
.govph-footer {
    position: relative; /* Needed for positioning the absolute seal */
    background-color: #003366; /* Light gray background color */
    color: #444; /* Darker gray text color */
    padding-top: 10px;
    padding-bottom: 5px;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    overflow: hidden; /* Ensures seal doesn't spill out */
}

/* --- The Seal Background Image --- */
.footer-seal-bg {
    /* Replace 'path/to/seal.png' with your actual image file */
    background-image: url('img/phil_seal.png');
    background-repeat: no-repeat;
    background-size: 200px 200px; /* Adjust size as needed */
    background-position: 5% center; /* Position on the left */
    opacity: 0.08; /* Very subtle transparency as seen in the image */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allows clicks to go through the background element */
}

/* --- Content Layout (Using CSS Grid for structured columns) --- */
.footer-content-container {
    display: grid;
    /* Defines 3 columns: 20% for the first, and the rest for the others */
    grid-template-columns: 3fr 3fr 3fr; 
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative; /* Keeps content above the seal layer */
    z-index: 1; 
}

/* --- Column Styling --- */
.footer-column h3 {
    font-size: 0.9em;
    font-weight: bold;
    color: #fbfcfc;
    margin-top: 10px;
    margin-bottom: 15px;
    margin-left: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column .sub-heading {
    font-size: 0.85em;
    font-weight: bold;
    color: #fbfcfc;
    margin-bottom: 10px;
    margin-left: 100px;
}

.footer-column p {
    font-size: 0.8em;
    margin-top: 0;
    margin-left: 100px;
    color: #f6f6f6; /* Slightly lighter body text */
}

/* Specific adjustment for the first column to match the image spacing */
.republic-info {
    padding-right: 20px;
}


/* --- Link List Styling --- */
.link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-left: 100px;
}

.link-list li {
    margin-bottom: 5px;
}

.link-list a {
    text-decoration: none;
    color:  #ffd700; /* Link color */
    font-size: 0.85em;
    transition: color 0.2s;
    display: block; /* Makes the whole area clickable */
}

.link-list a:hover {
    color: #007bff; /* Example hover color (you might use a blue or red accent) */
    text-decoration: underline;
}

/* --- Responsive Adjustments for Smaller Screens --- */
@media (max-width: 768px) {
    .footer-content-container {
        /* On smaller screens, stack the columns */
        grid-template-columns: 1fr;
    }

    .footer-seal-bg {
        /* Reduce the size/opacity of the seal on small screens if necessary */
        background-size: 150px 150px;
        opacity: 0.05;
    }
     header {
    display: block;
  }
   .container {
    flex-direction: column;
  }
   .nav {
    display: flex;
    flex-direction: column;
  }
}
        
        /* Mobile/Small Screen adjustments */
@media (max-width: 900px) {
    body {
        padding-top: 130px; /* Adjust padding for potentially taller mobile header */
    }

    header {
        padding: 28px 0;
    }

    header h1 {
        font-size: 24px;
        padding-bottom: 10px;
    }

    nav ul {
        flex-direction: column;
        align-items: stretch;
        font-size: 16px; /* Larger nav items for touch */
    }
    
    nav ul li a {
        padding: 10px 15px;
        text-align: center;
    }

    .dropdown-content, .sub-dropdown-content {
        position: static; 
        width: 100%;
        box-shadow: none;
        padding-left: 20px; /* Indent sub-items */
        border-radius: 0;
        background-color: #004c99; /* Slightly different background for visibility */
    }
    
    /* For a fully JS-toggled menu, these hover states will become redundant on touch devices.
       However, keeping them ensures desktop behavior if window is resized without refresh. */
    .dropdown:hover .dropdown-content,
    .sub-dropdown:hover .sub-dropdown-content {
        display: block; /* These rules are for desktop, overridden by !important above on mobile */
    }

    .parallax-section {
        min-height: 400px; /* Adjusted for smaller screens */
    }
    
    .parallax-content {
        padding: 30px;
        max-width: 90%;
    }

    .parallax-content h2 {
        font-size: 32px;
    }
    .parallax-content p {
        font-size: 17px;
    }
    .btn-learn-more {
        font-size: 16px;
        padding: 10px 20px;
    }

    .main-content {
        padding: 30px 15px;
        margin-top: -60px; /* Adjust overlap for mobile */
    }

    .main-content h2 {
        font-size: 28px;
    }

    .mission-vision-box {
        padding: 20px;
    }

    .mv-flex {
        flex-direction: column; /* Stack mission and vision vertically */
        gap: 20px;
    }
    
    .program-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    .cta-section {
        padding: 40px 20px;
    }

    .btn-primary, .btn-secondary {
        margin: 10px 0;
        display: block; /* Stack buttons vertically */
    }
}
        .official-details p {
    margin: 0;
    line-height: 1.4;
    padding-bottom: 2px;
    font-size: 0.95em;
}

/* Style the names: bold and the specific maroon color from the image */
.official-details strong {
    display: block; 
    font-size: 16px;
    font-weight: 700;
    color: #140606; /* Darker red/maroon color */
    margin-top: 10px; /* Space above the name */
}

/* Style the titles (the non-bold text) */
.official-details p {
    color: #f04545; 
}

/* Add extra space after the title before the next official in the list */
.official-details p:nth-child(even) {
    margin-bottom: 15px; 
}

/* Remove extra top margin from the very first name */
.official-details strong:first-child {
    margin-top: 0;
}
/* Styling the overall container for the text block */
.text-block {
    /* Sets the width of the box. Adjust this as needed for your layout */
    width: 90%; 
    max-width: 600px; /* Prevents it from getting too wide on large screens */
    margin: 30px 0; /* Adds space above and below the block */
    padding: 15px; /* Creates internal space between the border and the content */
    border: 1px solid #ccc; /* Creates a light grey border around the content */
    box-sizing: border-box; /* Ensures padding and border are included in the 90% width */
}

/* Styling the heading (MISSION/VISION) */
.text-block h4 {
    font-size: 1.2em; /* Makes the heading slightly larger */
    margin-top: 0; /* Removes extra space above the heading */
    color: #333; /* Darker text color */
}

/* Styling the paragraph text (the quote) */
.text-block p {
    font-size: 1em;
    line-height: 1.5; /* Improves readability by adding space between lines */
    margin-bottom: 0; /* Removes extra space below the paragraph */
}
/* 1. Styling the container to use Flexbox */
.logo-container {
    display: flex; /* Turns on the flexible box layout */
    justify-content: center; /* Centers the images horizontally */
    align-items: flex-start; /* Aligns items to the top if they are different heights */
    gap: 20px; /* Adds space between the two images */
    margin: 30px 0; /* Adds space above and below the image block */
}

/* 2. Styling the individual images */
.page-logo {
    /* Set a specific size for the images to ensure consistency */
    width: 130px; /* Adjust this size to fit your layout */
    height: auto; /* Maintains the aspect ratio */
}

/* 3. Adjusting the text block alignment (optional but helpful) */
.text-block {
    /* ... existing styles ... */
    max-width: 600px; /* Ensure this width aligns nicely with your images */
    margin: 20px auto; /* Use 'auto' to center the text blocks under the centered logos */
}

.services {
    display: grid;
  /* Creates 3 equal columns */
  grid-template-columns: repeat(3, 1fr);
  gap: 20px; /* Space between cards */
  padding: 20px;
}

.card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    /* Crucial for smooth animation */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}
.card img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* prevents image distortion */
    transition: transform 0.5s ease;
    
}


.card-content {
    padding: 20px;
    flex: 1;
    
}

.card-content h3 {
    margin: 0 0 10px;
    color:#003366;
}

.card-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}
.map-section {
    width: 100%;
    height: 450px;
    margin: 0;
    border: 3px solid #003366;
}

.map-section iframe {
    width: 100%;
    height: 100%;
}

.contact-section {
    margin-top: -20px;
    padding: 60px -50px;
    background: transparent;
    max-width: 1500px;
}

.contact-container {
    max-width: 1500px;
    margin: auto;
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #003366;
    line-height: 1;
}
.contact-info a {
    
    color: #0d6efd;
}

.contact-info p {
    margin-bottom: 12px;
    line-height: 1;
    text-align: left;
    padding-left: 0px;
}

.office-hours {
    margin-top: 10px;
}
.icon-nav {
  display: flex;
  gap: 25px;
  justify-content: center;
  margin-bottom: 20px;
}

.nav-item {
  text-align: center;
  cursor: pointer;
}

.fy-icon {
  font-size: 40px;
  color: #000;
  transition: color 0.3s ease;
}

.nav-item.active .fy-icon {
  color: #007bff; /* blue when active */
}

.links {
  display: none;
  text-align: center;
}

.links a {
  display: block;
  margin: 6px 0;
  color: #007bff;
  text-decoration: none;
}
/* Clickable Image */
.image-container {
  text-align: center;
}

.image-container img {
  max-width: 85%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  cursor: pointer;
}
/* Container styling */
.bjmp-accordion {
    font-family: Arial, sans-serif;
    max-width: 900px;
    margin: 20px auto;
}

/* Space between the grey bars */
.bjmp-accordion details {
    margin-bottom: 5px;
}

/* The Grey Header Bar */
.bjmp-accordion summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background-color: #e0e0e0; 
    color: #444;
    font-size: 16px;
    border-radius: 2px;
    transition: background-color 0.2s;
}

/* Remove default triangle */
.bjmp-accordion summary::-webkit-details-marker {
    display: none;
}

/* The Plus/Minus Icon */
.bjmp-accordion summary::after {
    content: '+';
    font-size: 18px;
    font-weight: bold;
    color: #777;
}

/* Swap to minus when the item is open */
.bjmp-accordion details[open] summary::after {
    content: '−';
}

/* Content Area inside the accordion */
.bjmp-accordion .content-body {
    padding: 20px 50px;
    background-color: #fff;
}

/* The 'a, b, c, d' list styling */
.bjmp-accordion .link-list {
    list-style-type: lower-alpha; 
    margin: 0;
    padding: 0;
}

.bjmp-accordion .link-list li {
    margin-bottom: 10px;
}

/* The Blue Links */
.bjmp-accordion .link-list a {
    color: #3498db;
    text-decoration: none;
    font-size: 15px;
}

.bjmp-accordion .link-list a:hover {
    text-decoration: underline;
}
.dropdown {
    position: relative;
}

.sub-dropdown {
    position: relative;
}
/* Make Jail Units dropdown multi-column */
.sub-dropdown-content {
    display: none;
    position: absolute;
    top: 0;

    /* OPEN TO LEFT */
    right: 100%;
    left: auto;

    background-color: #004c99;
    padding: 15px;

    column-count: 2;
    column-gap: 25px;

    min-width: 420px;
    max-width: 600px;  /* prevent extreme stretching */
}

.sub-dropdown-content a {
    display: block;
    padding: 6px 10px;
    font-size: 14px;
    break-inside: avoid;
    white-space: nowrap; /* prevents ugly text wrapping */
}
.dropdown-content a:focus,
.dropdown-content a:active{
     background-color: #004c99;
    color: #ffd700;
}
.sub-dropdown-content a:focus,
.sub-dropdown-content a:active {
     background-color: #004c99;
    color: #ffd700;
}

/* Hide hamburger on desktop */
.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* MOBILE STYLE */
@media (max-width: 900px) {

    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 6px;
        z-index: 1001;
    }

    nav {
        display: block;
        width: 50%;
        position: fixed;
        top: -20px;
        right: -100%;
        height:100vh;
        padding: 1rem;
        overflow-y: auto;
        box-sizing: border-box;

         transition: right 0.3s ease;
    z-index: 1000;
    }

    nav.active {
        right:-20px;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        background: #003366;
        margin-top: 50px;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        display: block;
        padding: 12px;
    }

    /* dropdowns stay collapsed until toggled by JS */
    .dropdown-content {
        display: none;
        position: static;
        width: 100%;
        box-shadow: none;
        padding-left: 20px;
        background-color: #004c99;
    }

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

    /* sub-dropdowns on mobile */
    .sub-dropdown-content {
        display: none;
        position: static;
        column-count: 1;
        min-width: unset;
        width: 100%;
    }

    .sub-dropdown:hover .sub-dropdown-content,
    .sub-dropdown.active .sub-dropdown-content {
        display: block;
    }
}

.side-images{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left-img{
    width: 650px;
}

.right-img{
    width: 650px;
}
/* Bottom image */
.bottom-image {
    display: flex;
    justify-content: center;  /* centers the bottom image */
    margin-top: 30px;        /* space between top images and bottom image */
}

.bottom-img {
    width: 300px;  /* bigger if needed */
    height: auto;
}
.video-section{
    text-align: center;
    margin-top: 30px;
    justify-content: center;    
    width: 100%;           /* Forces the image to fill the container */
    height: auto;          /* Maintains the 1787:576 aspect ratio */
    display: block;        /* Removes the tiny gap at the bottom of images */
}

.lyrics{
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.6;
}


#map{
height:600px;
width:100%;
margin:auto;
border-radius:10px;
box-shadow:0 0 10px rgba(0,0,0,0.3);
}

.legend{
width:90%;
margin:10px auto;
font-size:14px;
}

.legend span{
display:inline-block;
width:12px;
height:12px;
margin-right:5px;
border-radius:50%;
}

.contact-section1 {
    background-color: #818080;
    color: white;
    text-align: center;
    padding: 15px -10px;
    padding-bottom: 15px;
   
}

.contact-section h2 {
    font-size: 28px;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.contact-section p {
    margin: 5px 0;
    font-size: 16px;
    
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.icon-box {
    text-align: center;
    text-decoration: none; /* removes underline */
    color: white;
}

.icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 8px;
    color: white;
}

/* Colors */
.fb { background-color: #3b5998; }
.email { background-color: #f4b400; }
.yt { background-color: #ff0000; }
.tw { background-color: #1da1f2; }


.container {
    max-width: 1200px;
    margin: auto;
    gap:30px;
    display:grid;
    grid-template-columns:  repeat(3, 1fr); /* 2 columns */
}

.container2 {
    max-width: 1200px;
    margin: auto;
    margin-top: 30px;   
    gap:30px;
    display:grid;
    grid-template-columns: repeat(2, 1fr);
}
.container3 {
    max-width: 800px;
    margin: auto;
    margin-top: 30px;   
    gap:30px;
    display:grid;
    grid-template-columns: repeat(1, 1fr);
}
.container4 {
    max-width: 1200px;
    margin: auto;
    margin-top: 30px;   
    gap:30px;
    display:grid;
    grid-template-columns: repeat(3, 1fr);
}

/* clickable image */
.cardindex a {
    display: block;
}

.cardindex img {
    width: 100%;
    height: auto;
    display: block;
    transition: 0.3s;
}

.cardindex img:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

/* GRID */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 👈 5 columns */
  gap: 15px;
  padding: 15px;
}

/* CARD */
.logo-card {
  position: relative;
  background: #ddd;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.logo-card img {
  width: 100%;
  transition: 0.3s;
}

.logo-card:hover img {
  transform: scale(1.1);
   filter: brightness(70%);
}

/* OVERLAY */
.overlay {
 position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.7);
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  font-weight: bold;

  opacity: 0;              /* hidden by default */
  transform: translateY(100%); /* slide from bottom */
  transition: all 0.3s ease;

  pointer-events: none;    /* VERY IMPORTANT (keeps logo clickable) */
}

.logo-card:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(251, 252, 252);

  display: none;
  justify-content: center;
  align-items: center;
}

/* MODAL CONTENT */
.modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  text-align: center;
}

/* IMAGE */
.main-image {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
}

/* CLOSE */
.close {
  position: absolute;
  top: -40px;
  right: 0px;
  font-size: 50px;
  color: rgb(68, 67, 67);
  cursor: pointer;
}

/* NAV ARROWS */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 35px;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  padding: 15px;
  cursor: pointer;
  z-index: 10;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev { left: 0; }
.next { right: 0; }

/* THUMBNAILS */
.thumbnails {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto;
}

.thumbnails img {
  width: 60px;
  cursor: pointer;
  opacity: 0.6;
  border-radius: 5px;
}

.thumbnails img.active {
  opacity: 1;
  border: 2px solid #fff;
}

/* MOBILE */
@media (max-width: 600px) {
  .main-image {
    max-height: 250px;
  }

  .nav {
    display: block !important;
    font-size: 20px;
  }
}
/* BASE GRID */
.row {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* ALL rows use 5 columns */
  gap: 20px;
  margin-bottom: 50px;
}

/* ROW 1 → center (column 3) */
.row-1 .official-card {
  grid-column: 3 / 4;
}

/* ROW 2 → place in middle columns */
.row-2 .official-card:nth-child(1) {
  grid-column: 2 / 3;
}

.row-2 .official-card:nth-child(2) {
  grid-column: 3 / 4;
}

.row-2 .official-card:nth-child(3) {
  grid-column: 4 / 5;
}

/* ROW 3+ → normal flow (no need to change) */

/* CARD STYLE */
.official-card {
  text-align: center;
}

/* SAME SIZE IMAGES */
.official-card img {
  width: 100%;
  height: 300px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
}
.official-card h4 {
    margin-top: 0px;
  margin-bottom: 0px;
  font-size: 14px;
}

.official-card p {
  margin-top: 0;
  font-size: 12px;
}
@media (max-width: 1024px) {
  .row {
    grid-template-columns: repeat(3, 1fr);
  }

  /* reset manual placements */
  .row-1 .official-card,
  .row-2 .official-card {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .row {
    grid-template-columns: 1fr;
  }
}

.news-container {
  width: 90%;
  margin: 30px auto;
}

.news-card {
  display: flex;
  gap: 20px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.news-card img {
  width: 380px;
  height: 230px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.news-content h2 {
  margin: 0 0 8px;
  font-style: italic;
  color: #2c7da0;
}

.news-content p {
  margin: 0;
  line-height: 1.5;
  color: #333;
}

.news-content a {
  color: #2c7da0;
  text-decoration: none;
  font-style: italic;
}

.news-content a:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  .news-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .news-card img {
    width: 100%;
    height: auto;
  }
}

.indent {
  text-indent: 30px;
}
.links a {
  display: block;
  margin: 10px 0;
  color: #0d6efd;
  text-decoration: none;
  font-weight: 500;
}

.links a:hover {
  text-decoration: underline;
}
.linklist ul {
  padding-left: 20px;
}

.linklist li {
  margin-bottom: 10px;
}

.linklist a {
  color: #0d6efd; /* blue link */
  text-decoration: underline;
  font-size: 16px;
}

.linklist a:hover {
  color: #084298;
}

.year-tabs {
  margin-bottom: 15px;
}

.tab-btn {
  padding: 8px 15px;
  border: 1px solid #ccc;
  background: #eee;
  cursor: pointer;
}

.tab-btn.active {
  background: #fff;
  font-weight: bold;
}

.table-container {
  display: none;
}

.table-container.active {
  display: block;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: #b7cbd6;
  padding: 10px;
  width: 10px;
  text-align: left;
}

td {
  padding: 10px;
  border-top: 1px solid #ddd;
}

/* BLUE LINKS ONLY FOR SUBJECT */
td a {
  color: #1e90ff;
  text-decoration: none;
}

td a:hover {
  text-decoration: underline;
}


.video-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

video {
  display: block;
  width: 100%;
  max-width: 800px; /* adjust size */
  height: auto;
}
