/* =========================================================
   PoliceListed Organized Stylesheet
   Organized from pasted CSS. Existing rules preserved.
   ========================================================= */


/* =========================================================
   Global Base
   ========================================================= */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body { font-family: Arial, sans-serif; background: white; color: black; overflow-x: hidden; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }

main {
  flex: 1; 
}

.unique-header h3 {
    display: inline;
    margin-right: 8px;
}

.unique-header {
	margin-bottom: 15px;
}

h2 {
	text-align: center;
}

.h2-section {
  color: black;
  padding: 20px;
}

.count {
  color: #555;
  margin-bottom: 25px;
}


/* =========================================================
   Page & City Layout
   ========================================================= */

.page {
  padding: 25px 18px;
}

.page h1 {
  font-size: 28px;
  margin-bottom: 5px;
}

.section.gray {
  background: #f5f6fa;
}

.section {
  padding: 60px 20px;
}

.content-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  max-width: 1200px;
  margin: auto;
  justify-content: center;
}

.main-content {
  max-width: 72ch;
}

.main-content p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 1.35em;
}

.main-content ul,
.main-content ol {
  line-height: 1.8;
}

.main-content li {
  margin-bottom: .5em;
}

.featured-image {
  width: 100%;
  border-radius: 12px;
}

.caption {
  font-size: 13px;
  text-align: right;
  color: #666;
  margin-top: 6px;
}

.notice {
  background: #eef2ff;
  border-left: 4px solid #0511F2;
  padding: 15px;
  margin: 30px 0;
}

.image.featured {
	max-width: 800px;
	height: auto;
	margin-left: auto;
	margin-right: auto;
}

.sidebar p {
  font-size: 15px;
}

.sidebar li {
  line-height: 1.6;
}




* =========================================================
   Navbar, Search & Dropdown - Homepage Mockup Style
   ========================================================= */


#navbar-container {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: black;
}

.navbar {
  position: relative;
  z-index: 1;
}   

.navbar {
  width: 100%;
  background: rgba(7,7,7,.96);
  border-bottom: 1px solid #1f1f1f;
  padding: 16px 32px;
  font-family: Arial, sans-serif;
}

.nav-top {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 340px 1fr 320px;
  align-items: center;
  column-gap: 22px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    flex-shrink: 0;
    height: 64px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 64px;
}

.logo {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: #f2cb05;
}

.logo-tagline {
    margin: 6px 0 0;
    font-size: 0.72rem;
    line-height: 1;
    color: #a8a8a8;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
}
.logo-icon{
    width:64px;
    height:64px;
    object-fit:contain;
}

.logo-divider{
    width:1px;
    height:60px;
    background:#3a3a3a;
}


.logo span{
    color:#4c6fff;
}


.desktop-links {
    display: grid;
    grid-template-columns: repeat(4, 90px);
    justify-content: center;
    column-gap: 25px;
    position: relative;
}

.desktop-links > a,
.desktop-links > .nav-dropdown {
    width: 90px;
    text-align: center;
}

.desktop-links > .nav-dropdown > a {
    display: block;
    width: 100%;
}

.desktop-links a {
  color: white;
  text-decoration: none;
  padding: 10px 4px;
  font-weight: 700;
  border-bottom: 2px solid transparent;
}

.desktop-links a:hover,
.desktop-links a.active {
  color: white;
  border-color: #f2cb05;
}

.menu-btn {
  display: none;
  background: none;
  border: 0;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

.search-wrap {
  position: relative;
}

.search-form {
  width: 100%;
}

.desktop-search {
  width: 320px;
  justify-self: end;
}

.search-wrap input,
.search-form input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid #333;
  background: #111;
  color: white;
  outline: none;
}

.search-wrap input:focus,
.search-form input:focus {
  border-color: #4c6fff;
}

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  width: 100%;

  margin: 0;
  padding: 8px 0;

  list-style: none;

  background: #111;
  border: 1px solid #2b2b2b;
  border-radius: 12px;

  max-height: 320px;
  overflow-y: auto;

  z-index: 10000;
}

.dropdown.hidden,
.hidden {
  display: none !important;
}

.dropdown li {
  margin: 0;
  padding: 0;
  color: #e5e7eb;
}

.dropdown li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;

  width: 100%;
  padding: 11px 15px;

  text-decoration: none;
  color: white;

  cursor: pointer;
}

.dropdown li a:hover,
.dropdown li.active a {
  background: #1f1f1f;
}

.result-name {
  font-weight: 600;
  min-width: 0;
}

.result-type {
  flex-shrink: 0;
  font-size: 12px;
  color: #aaa;
  white-space: nowrap;
}

.no-results {
  padding: 11px 15px !important;
  color: #aaa !important;
  cursor: default !important;
}


.mobile-menu {
  display: none;
}

/* =========================================================
   Category Nav
   ========================================================= */

.category-nav {
  max-width: 1200px;
  margin: 14px auto 0;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.category-nav a {
  color: white;
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 999px;
  background: #1e1e1e;
  font-weight: 800;
}

.category-nav a:hover,
.category-nav a.active {
  background: #f2cb05;
  color: black;
}

.nav-dropdown{
    position:relative;
    display:flex;
    align-items:center;
}

.dropdown-toggle{
    display:flex;
    align-items:center;
    gap:6px;
}

.dropdown-menu{
    position:absolute;
    top:100%;
    left:0;

    min-width:180px;

    background:#1a1a1a;
    border:1px solid #333;
    border-radius:10px;

    padding:10px 0;

    display:none;

    box-shadow:0 15px 35px rgba(0,0,0,.35);

    z-index:1000;

   
}

.dropdown-menu a{
    display:block;
    padding:12px 18px;
    color:white;
    text-decoration:none;
    transition:.2s;
    border-bottom: #1a1a1a;
}

.dropdown-menu a:hover{
    background:#2d2d2d;
    color:#f2cb05;
}

.dropdown-menu a.active{
    color:#f2cb05;
}

.nav-dropdown:hover .dropdown-menu{
    display:block;
}

/* =========================================================
   Mobile Navbar
   ========================================================= */

@media (max-width: 900px) {
  .navbar {
    padding: 14px 20px;
  }

  .nav-top {
    display: flex;
    justify-content: center;
    position: relative;
  }

  .menu-btn {
    display: block;
    position: absolute;
    left: 0;
  }

  .desktop-links,
  .desktop-search,
  .category-nav {
    display: none;
  }

  .logo {
    font-size: 28px;
  }

  .mobile-menu.show {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px auto 0;
    max-width: 520px;
    padding: 18px;
    background: #111;
    border: 1px solid #252525;
    border-radius: 18px;
  }

  .mobile-menu a {
    color: white;
    text-decoration: none;
    padding: 14px;
    border-radius: 12px;
    background: #1a1a1a;
    font-weight: 800;
  }

  .mobile-menu a:hover,
  .mobile-menu a.active {
    color: #f2cb05;
  }

  .mobile-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .mobile-categories a.active {
    background: #f2cb05;
    color: black;
  }

  .mobile-search .dropdown {
    position: static;
    margin-top: 8px;
  }
}






.search-wrap {
  position: relative;
}


.search-wrap input,
.search-form input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid #333;
  background: #111;
  color: white;
  outline: none;
}

.search-wrap input:focus,
.search-form input:focus {
  border-color: #4c6fff;
}



.hero {
    width: 100%;
    background-color: #f2cb05;

    /* Fill the screen below the navbar */
    min-height: calc(100vh - 104px);

    display: flex;
    align-items: center;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 525px;
    align-items: center;
    gap: 50px;

    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 40px 32px;
}

.hero-content {
  width: 100%;
  margin: 0;
  padding: 0;
}

.hero-photo-slider {
  width: 100%;
  max-width: 600px;
}

.hero-photo-slider picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-photo-slider img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}


.hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.08; margin: 0 0 22px; max-width: 720px; }
.hero h1 span { color: #4c6fff; }
.hero p { color: black; font-size: 18px; line-height: 1.7; max-width: 610px; margin-bottom: 28px; }
.hero-search { max-width: 520px; display: flex; }
.hero-search input { border-radius: 12px 0 0 12px; }
.hero-search button { border: 0; padding: 0 28px; border-radius: 0 12px 12px 0; color: white; background: #4c6fff; font-weight: 800; cursor: pointer; }

.section { max-width: 1200px; margin: auto; padding: 54px 32px 24px; text-align: center; }
.section h2 { font-size: 32px; margin: 0; }
.section-line { width: 64px; height: 3px; background: #f2cb05; margin: 14px auto 26px; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.category-card { min-height: 285px; padding: 32px 24px; border: 1px solid #2b2b2b; border-radius: 14px; background: linear-gradient(145deg, #141414, #090909); display: flex; flex-direction: column; align-items: center; justify-content: center; transition: .2s; }
.category-card:hover { transform: translateY(-4px); border-color: #4c6fff; }
.category-card .cat-icon { font-size: 54px; margin-bottom: 12px; }
.category-card h3 { font-size: 26px; margin: 4px 0 10px; }
.category-card p { color: #e0e0e0; line-height: 1.55; min-height: 74px; }
.category-card span { margin-top: 14px; padding: 12px 22px; border: 1px solid currentColor; border-radius: 8px; font-weight: 800; }
.category-card.state h3, .category-card.state .cat-icon { color: #f2cb05; }
.category-card.federal h3, .category-card.federal .cat-icon { color: #55d85a; }
.category-card.special h3, .category-card.special .cat-icon { color: #9b5cff; }

.featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.agency-card { background: #121212; border: 1px solid #303030; border-radius: 12px; padding: 18px; min-height: 245px; }
.agency-card img { width: 234px; height: auto; object-fit: contain; border-radius: 1px; margin-bottom: 5px; aspect-ratio: 3 / 2; max-width: 100%; zoom: 7; transform: scale(1.12);}
.agency-card h3 { margin: 0 0 8px; font-size: 17px; }
.agency-card p { color: #c9c9c9; margin: 0 0 18px; }
.agency-card a, .view-all { display: inline-block; border: 1px solid #4c6fff; color: #78a0ff; border-radius: 8px; padding: 10px 18px; font-weight: 800; }
.view-all { margin-top: 26px; }

.stats-grid { max-width: 1120px; margin: 32px auto 52px; padding: 0 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid #303030; border-radius: 12px; overflow: hidden; background: #101010; }
.stat { padding: 24px; border-right: 1px solid #303030; }
.stat:last-child { border-right: 0; }
.stat strong { color: white; display: block; margin-bottom: 7px; }
.stat span { color: #aaa; font-size: 14px; }


@media (max-width: 900px) {
  
  .hero-inner {
    grid-template-columns: 1fr;
    max-width: 720px;
    gap: 30px;
    padding: 55px 28px 25px;
    text-align: center;
  }

  .hero-content {
    width: 100%;
    padding: 0;
  }
  
  .hero p { font-size: 15px; }
  .hero-search { display: grid; gap: 10px; max-width: 100%; }
  .hero-search input, .hero-search button { border-radius: 12px; min-height: 48px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: auto; text-align: left; align-items: flex-start; padding: 22px; position: relative; }
  .category-card::after { content: '›'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 34px; color: white; }
  .category-card .cat-icon { font-size: 42px; }
  .category-card p { min-height: 0; padding-right: 28px; }
  .category-card span { display: none; }
  .featured-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .agency-card { min-width: 210px; scroll-snap-align: start; }
  .stats-grid { grid-template-columns: 1fr; border: 0; background: transparent; gap: 10px; }
  .stat { border: 1px solid #303030; border-radius: 12px; background: #111; }
}

/* hide photo on mobile */
@media (max-width: 800px) {
  .hero-inner {
    display: block;
  }

  .hero-photo-slider {
    display: none;
  }
}


/* Large tablets / small laptops */
@media (max-width: 1200px) {
  

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 460px;
    gap: 45px;
    max-width: 1000px;
    padding: 60px 28px;
  }
 

  .hero h1 {
    font-size: 50px;
  }


  .hero-photo-slider {
  width: min(100%, 600px);
  aspect-ratio: 3 / 2;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #222;
  box-shadow: 0 25px 50px rgba(0,0,0,.45);
}

.hero-photo-slider img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .4s ease;
}
}

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


  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 55px 28px 25px;
    text-align: center;
  }

  .hero-content {
    padding: 0;
    width: 100%;
  }

  .hero h1 {
    font-size: 46px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero p {
    font-size: 16px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-search {
    margin: 0 auto;
  }

  .hero-photo-slider {
   
    margin: 0 auto;
  }

  .category-grid,
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Phones */
@media (max-width: 600px) {

  .hero-inner {
    display: block;
    padding: 42px 22px 30px;
    text-align: left;
  }

  .hero h1 {
    font-size: 40px;
    line-height: 1.08;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-search {
    display: grid;
    gap: 10px;
    max-width: 100%;
  }

  .hero-search input,
  .hero-search button {
    border-radius: 12px;
    min-height: 48px;
  }

  .hero-photo-slider {
    display: none;
  }

  .category-grid,
  .featured-grid,
  .stats-grid,
  .footer-container {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: auto;
    text-align: left;
    align-items: flex-start;
    padding: 22px;
  }
}



/* =========================================================
   Footer
   ========================================================= */

.footer { border-top: 1px solid #1f1f1f; background: #080808; padding: 36px 32px 0; }
.footer-container { max-width: 1200px; margin: auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 38px; }
.footer-logo { color: #f2cb05; font-size: 28px; font-weight: 900; }
.footer-logo span { color: #4c6fff; }
.footer p, .footer a { color: #aaa; font-size: 14px; line-height: 1.7; }
.footer-col h4 { margin: 0 0 14px; }
.footer-col a { display: block; margin-bottom: 8px; }
.footer-col a:hover { color: #f2cb05; }
.footer-bottom { text-align: center; color: #666; border-top: 1px solid #1f1f1f; padding: 18px; margin-top: 28px; font-size: 12px; }

.footer-desc {
  margin-top: 10px;
  color: #888;
  font-size: 14px;
  max-width: 280px;
}

.footer-socials a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  border-radius: 8px;
  transition: 0.2s;
}

.footer-socials svg {
  width: 16px;
  fill: #aaa;
}

.footer-socials {
  margin-top: 15px;
  display: flex;
  gap: 12px;
}

.footer-socials a:hover {
  background: #f2cb05;
}

.footer-col h4 {
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 14px;
  color: #fff;
}



/* ABout page */

.about-page {
  max-width: 900px;
  margin: auto;
  padding: 50px 24px;
  line-height: 1.8;
}

.about-page p {
  font-size: 16px;
}

.about-page h1,
.about-page h2 {
  margin-bottom: 15px;
}

.about-me {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 50px;
  flex-wrap: wrap;
}

.about-image img {
  width: 300px;
  max-width: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.about-text {
  flex: 1;
  min-width: 280px;
}

@media (max-width: 768px) {

  .about-me {
	flex-direction: column;
	text-align: center;
  }

  .about-image img {
	width: 250px;
  }

}

.faq-section {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.faq-section h2 {
  margin-bottom: 30px;
}

.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  padding: 10px 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 10px 0;
  line-height: 1.6;
}


/* =========================================
   AGENCY PAGE
========================================= */

.agency-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 70px;
    color: #f5f5f5;
}


/* =========================================
   AGENCY HEADER
========================================= */

.agency-header {
    display: flex;
    align-items: center;
    gap: 28px;

    padding: 30px;
    margin-bottom: 30px;

    background: #181818;
    border: 1px solid #2b2b2b;
    border-radius: 18px;

    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.30);
}

.agency-logo {
    width: 150px;
    height: 150px;

    object-fit: contain;

    background: #ffffff;
    border-radius: 16px;

    padding: 12px;

    flex-shrink: 0;
}

.agency-header h1 {
    margin: 0 0 12px;

    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;

    color: #ffffff;
}

.agency-header a {
    display: inline-block;

    color: #4c6fff;
    text-decoration: none;

    font-weight: 600;
    font-size: 1rem;
}

.agency-header a:hover {
    color: #f2cb05;
}


/* =========================================
   SECTION CARDS
========================================= */

.agency-info,
.agency-duties,
.agency-page > section:not(.agency-header) {
    margin-bottom: 28px;

    padding: 28px;

    background: #181818;
    border: 1px solid #2b2b2b;
    border-radius: 18px;

    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.20);
}

.agency-page h2 {
    margin: 0 0 22px;

    font-size: 1.45rem;
    color: #f2cb05;

    padding-bottom: 12px;

    border-bottom: 1px solid #2f2f2f;
}


/* =========================================
   AGENCY DETAILS
========================================= */

.agency-page .agency-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 14px;
}

.agency-page .detail-row {
    display: flex;
    flex-direction: column;
    gap: 7px;

    padding: 18px;

    background: #111111;
    border: 1px solid #292929;
    border-radius: 12px;
}

.agency-page .detail-row strong {
    font-size: 0.83rem;

    text-transform: uppercase;
    letter-spacing: 0.5px;

    color: #9ca3af;
}

.agency-page .detail-row span {
    font-size: 1rem;
    line-height: 1.5;

    color: #ffffff;
}


/* =========================================
   DUTIES
========================================= */

.agency-duties p {
    margin: 0;

    line-height: 1.8;
    font-size: 1rem;

    color: #d6d6d6;
}


/* =========================================
   OFFICIAL WEBSITE
========================================= */

.agency-website p {
    margin: 0;
    color: #d6d6d6;
    line-height: 1.8;
    font-size: 1rem;
}

.agency-website a,
.agency-website a:link,
.agency-website a:visited {
    color: #d6d6d6;
    text-decoration: none;
}

.agency-website a:hover {
    color: #4c6fff;
    text-decoration: underline;
}

/* =========================================
   agency card link to internal
========================================= */

.agency-title-link,
.agency-title-link:link,
.agency-title-link:visited {
    color: inherit;
    text-decoration: none;
}

.agency-title-link:hover {
    color: #4c6fff;
}


/* Agency image link */

.agency-image-link {
    display: block;
    flex-shrink: 0;
}

.agency-image-link img {
    display: block;
    transition: transform 0.2s ease,
                opacity 0.2s ease;
}

.agency-image-link:hover img {
    transform: scale(1.03);
    opacity: 0.85;
}


/* =========================================
   AGENCY PAGE VEHICLES
========================================= */

.agency-page .agency-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(280px, 1fr)
    );
    gap: 20px;
}

.agency-page .agency-vehicle {
    margin: 0;
}

.agency-page .agency-vehicle img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 12px;
}

.agency-page .agency-vehicle figcaption {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #a8a8a8;
    text-align: center;
}


/* Mobile */

@media (max-width: 600px) {

    .agency-page .agency-vehicle-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .agency-page {
        padding: 25px 15px 50px;
    }

    .agency-header {
        flex-direction: column;
        align-items: flex-start;

        padding: 22px;
    }

    .agency-logo {
        width: 120px;
        height: 120px;
    }

    .agency-header h1 {
        font-size: 2rem;
    }

    .agency-page .agency-details {
        grid-template-columns: 1fr;
    }

    .agency-info,
    .agency-duties,
    .agency-page > section:not(.agency-header) {
        padding: 20px;
        border-radius: 14px;
    }

}

/* =========================================================
   Responsive / Media Queries
   ========================================================= */

/*
@media (max-width: 1300px) {
  body {
    zoom: 0.75;
  }
}
*/
	

/* =========================================================
   Navbar
   ========================================================= */

@media (min-width: 1201px) {
  .nav-top {
    grid-template-columns: 340px 1fr 320px;
  }
}

@media (max-width: 1200px) {


  .nav-top {
    grid-template-columns: 300px 1fr 260px;
    column-gap: 18px;
  }

  .desktop-links {
    grid-template-columns: repeat(4, 82px);
    column-gap: 18px;
  }

  .desktop-links > a,
  .desktop-links > .nav-dropdown {
    width: 82px;
  }

  .desktop-search {
    width: 260px;
  }
}

@media (max-width: 992px) {
  .navbar {
    padding: 14px 18px;
  }

  .logo {
    font-size: 28px;
  }

  .nav-top {
    grid-template-columns: 270px 1fr 220px;
    column-gap: 14px;
  }

  .desktop-links {
    grid-template-columns: repeat(4, 72px);
    column-gap: 10px;
  }

  .desktop-links > a,
  .desktop-links > .nav-dropdown {
    width: 72px;
  }

  .desktop-search {
    width: 220px;
  }
}

/* Switch to mobile nav on iPad/tablet size */
@media (max-width: 900px) {
  .nav-top {
    display: flex;
    justify-content: center;
    position: relative;
  }

  .menu-btn {
    display: block;
    position: absolute;
    left: 0;
    font-size: 28px;
  }

  .desktop-links,
  .desktop-search,
  .category-nav {
    display: none;
  }

  .logo {
    font-size: 28px;
  }

  .mobile-menu.show {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    padding: 16px;
    background: #111;
    border: 1px solid #252525;
    border-radius: 18px;
  }

  .mobile-menu a {
    padding: 14px;
    border-radius: 12px;
    background: #1a1a1a;
    font-weight: 800;
  }

  .mobile-search,
  .mobile-search input {
    width: 100%;
  }

  .mobile-search .dropdown {
    position: static;
    margin-top: 8px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 12px 14px;
  }

  .logo {
    font-size: 28px;
  }

  .menu-btn {
    font-size: 28px;
  }

  .mobile-menu.show {
    padding: 12px;
  }

  .mobile-menu a {
    padding: 12px;
    font-size: 15px;
  }
}


@media (max-width:768px){

    .logo-icon{
        width:42px;
        height:42px;
        display: none;
    }

    .logo-divider{
        display:none;
    }

    .logo-tagline{
        display:none;
    }

    .logo{
        font-size:1.8rem;
    }
}

/* =========================================================
   Agency Cards
   ========================================================= */

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

  .agency-card {
    margin: 12px;
  }

  .agency-top {
    display: flex;
    align-items: center;
  }

  .agency-top img {
    width: 100px;
    height: 100px;
  }

  .agency-details h2 {
    font-size: 24px;
  }

  .agency-details p {
    font-size: 15px;
  }

  .division-icon {
    width: 42px;
    height: 42px;
  }

  .divisions-content.open {
    display: block;
  }
}

@media (max-width: 1300px) {
  .agency-grid {
    zoom: 0.9;
  }
}	

/* =========================================================
   Hero
   ========================================================= */

@media (min-width: 768px) {
  .hero {
    padding: 80px 20px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 28px 16px;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1.1;
    margin-bottom: 10px;
  }

  .hero p {
    margin: 6px 0;
    font-size: 14px;
  }

  .hero .meta {
    margin-top: 6px;
    font-size: 13px;
  }
}

/* =========================================================
   Layout
   ========================================================= */

@media (min-width: 768px) {
  .content-grid {
    gap: 40px;
  }
}

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

  .sidebar {
    width: 100%;
    overflow: hidden;
  }

  .sidebar .card {
    padding: 18px;
    margin-bottom: 16px;
  }

  .sidebar-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 20px;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar-slider::-webkit-scrollbar {
    display: none;
  }

  .sidebar-slider::before,
  .sidebar-slider::after {
    content: "";
    flex: 0 0 10%;
  }

  .slide {
    flex: 0 0 75%;
    scroll-snap-align: center;
    transition: transform 0.35s ease, opacity 0.35s ease;
    opacity: 0.6;
    transform: scale(0.9);
  }

  .slide.active {
    transform: scale(1);
    opacity: 1;
  }
}

/* =========================================================
   Cards / Lists / Gallery
   ========================================================= */

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

@media (max-width: 600px) {
  .card-grid2,
  .gallery-container {
    grid-template-columns: 1fr;
  }

  .card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .card p {
    font-size: 14px;
    line-height: 1.6;
  }

  .clean-list li {
    margin-bottom: 8px;
  }
}

/* =========================================================
   Footer
   ========================================================= */

@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-desc {
    max-width: 320px;
    margin: 10px auto 0;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-bottom {
    text-align: center;
  }
}

/* =========================================================
   Misc
   ========================================================= */

@media (max-width: 500px) {
  #myInput {
    max-width: 60%;
    left: 0;
  }
}

@media (max-width: 375px) {
  table {
    table-layout: fixed;
  }
}

@media (min-width: 761px) {
  #lil-date {
    display: none;
  }

  .gallery {
    position: relative;
    overflow: visible;
  }

  .gallery img {
    width: 100%;
    max-width: 400px;
    transition: transform 0.3s ease;
    transform-origin: center center;
  }

  .gallery img:hover {
    transform: scale(1.6);
    position: relative;
    z-index: 999;
  }
}

@media (max-width: 760px) {
  #big-date {
    display: none;
  }
}


a { color: white; text-decoration: none; }
h3 { color: white; }

/* Full-screen homepage hero */
body {
    margin: 0;
}

.hero {
    min-height: calc(100vh - 90px) !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
}

.hero-inner {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 40px 32px;
}

/* =========================================
   FIX MOBILE NAVBAR AFTER DESKTOP GRID
   ========================================= */

@media (max-width: 900px) {

    .nav-top {
        display: flex;
        width: 100%;
        max-width: 100%;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .logo-link {
        display: flex;
        width: auto;
        height: auto;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
    }

    .menu-btn {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* Compact homepage sections at laptop/1280px widths; hero/nav/footer untouched. */
@media (min-width: 1025px) and (max-width: 1366px) {
  main .section:not(.hero) { max-width: 1060px; padding: 36px 22px 20px; }
  main .section:not(.hero) h2 { font-size: 27px; }
  main .section:not(.hero) .section-line { margin-bottom: 19px; }
  main .featured-grid { gap: 12px; }
  main .featured-grid .agency-card { min-height: 205px; padding: 13px; }
  main .featured-grid .agency-card h3 { font-size: 15px; }
  main .featured-grid .agency-card img { width: 190px; }
  main .featured-grid .agency-card a { padding: 8px 12px; }
}


/* Larger homepage hero on desktop, including 2048px displays.
   Only the homepage hero is affected; other sections remain unchanged. */
@media (min-width: 901px) {
  .hero-inner {
    width: min(92%, 1640px);
    max-width: 1640px;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 46%);
    gap: clamp(36px, 4vw, 90px);
    padding: clamp(48px, 5vw, 100px) 32px;
  }
  .hero h1 {
    font-size: clamp(50px, 3.8vw, 78px);
    max-width: 850px;
  }
  .hero p {
    font-size: clamp(18px, 1.15vw, 23px);
    max-width: 750px;
  }
  .hero-photo-slider {
    max-width: 760px;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 16px;
  }
  .hero-photo-slider img { object-fit: cover; }
}
