/* =========================================================
   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: 15px;
  padding-top: 0px;	
  /*padding-bottom: 50px;	*/
}

.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;
  aspect-ratio: 16 / 9;
}

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

.notice {
  background: #eef2ff;
  border-left: 5px solid #4c6fff;
  padding: 10px;
  margin: 10px;
}

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

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

.sidebar li {
  line-height: 1.6;
}


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

.agency-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* Change to 2 for double column */
    gap: 24px;
    max-width: 100%;
    margin: 0 auto;
    padding: 5px;
	  /*align-items: start; test add*/
}
 /*  -- for single card pages, not grid -- remove agency grid on html and use this instead --
.agency-card {
  background: white;
  border-radius: 18px;
  padding: 1px;
  margin: 20px auto 40px;
  max-width: 900px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.30);
  overflow: hidden;
  font-family: Arial, sans-serif;
  
}
*/

 
.agency-card {
    background: white;
    border-radius: 18px;
    margin: 0;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    line-height: normal;
}

.agency-title {
  text-align: center;
  margin: 0;
  padding: 20px 20px 10px;
  color: #002b5c;
}

.agency-top {
  display: flex;
  gap: 22px;
  padding: 22px;
  align-items: center;
}

.agency-top img {
  width: 130px;
  height: 130px;
  object-fit: contain;
}

.agency-details h2 {
  margin: 0 0 12px;
  color: #002b5c;
}

.agency-details p {
  margin: 8px 0;
}

.mobile-section {
  border-top: 1px solid #ddd;
}

/* Duties section */

.section-heading {
  margin: 0;
  padding: 18px 22px 0px;
  color: #002b5c;
  font-size: 20px;
  font-weight: bold;
}

.duties-content {
  padding: 0 22px 0px;
  min-height: 70px;
}

/* Divisions dropdown */

.arrow-icon {
    width: 16px;
    height: 16px;
    transition: transform .3s ease;
}

.arrow-icon.open {
    transform: rotate(90deg);
}

.section-toggle {
  width: 100%;
  background: #fff;
  border: none;
  padding: 18px 22px;
  font-size: 20px;
  font-weight: bold;
  color: #002b5c;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

/* Desktop = always visible */

.divisions-content {
  display: none;
  padding: 0 22px 20px;
}

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

/* Division rows */

.division-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #ddd;
}

.division-item:last-child {
  border-bottom: none;
}

.division-icon {
  width: 75px;
  height: 75px;
  object-fit: contain;
  flex-shrink: 0;
}

.division-info {
  flex: 1;
}

.division-name {
  display: block;
  font-weight: bold;
  color: #002b5c;
  margin-bottom: 4px;
}

/* Nested */
.nested-divisions {
	position: relative;
	margin-top: 22px;
	
	padding: 0px 0 0 24px;
	border-left: 3px solid #f2cb05;
}

.nested-heading {
	margin: 0 0 14px;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #666;
}

.nested-division-item {
	position: relative;
	
	gap: 16px;
	padding: 16px;
	background: #f7f8fc;
	border: 1px solid #e1e4ec;
	border-radius: 10px;
}

/* Horizontal connector from the hierarchy line */
.nested-division-item::before {
	content: "";
	position: absolute;
	top: 27px;
	left: -26px;
	width: 24px;
	height: 3px;
	background: #f2cb05;
}

.nested-division-icon {
	width: 65px;
	height: 65px;
	object-fit: contain;
	flex-shrink: 0;
}

.nested-division-info {
	
	min-width: 0;
}

.nested-division-name {
	display: block;
	margin-bottom: 3px;
	font-size: 1.05rem;
	font-weight: 700;
	color: #222;
}

.parent-label {
	display: block;
	margin-bottom: 12px;
	font-size: 0.78rem;
	font-weight: 600;
	color: #4c6fff;
}

.nested-division-info p {
	margin: 7px 0;
	line-height: 1.45;
}

@media (max-width: 600px) {
	.nested-divisions {
		margin-left: 0;
		
	}

	.nested-division-item {
		flex-direction: column;
	}

	.nested-division-icon {
		width: 55px;
		height: 55px;
	}
}

/* Website Button */

.visit-link {
  display: block;
  margin: 18px 22px;
  padding: 14px;
  border: 1px solid #c9d8ee;
  border-radius: 12px;
  color: #0066cc;
  font-weight: bold;
  text-decoration: none;
  transition: .2s;
}

.visit-link:hover {
  background: #f5f9ff;
}



/* About Section */

.about-box {
  margin: 18px 22px 22px;
  background: #f2f8ff;
  border: 1px solid #c9d8ee;
  border-radius: 12px;
  padding: 16px;
}

.about-box h3 {
  margin-top: 0;
  color: #002b5c;
}

.mobile-section:last-child {
    margin-top: auto;
}
/* local cards */
  .card-grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
  align-items: start;
}

.state-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  transition: .25s ease;
}

.state-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(0,0,0,.18);
}

.state-card details {
  width: 100%;
}

.state-card summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  background: #121212;
  color: #f2cb05;
}

.state-card a {
  text-decoration: none;
}

.state-card summary::-webkit-details-marker {
  display: none;
}

.state-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.state-header h3 {
  margin: 0;
  font-size: 22px;
}

.city-count {
  background: #4c6fff;
  color: White;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 700;
}

.city-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.city-list li {
  border-bottom: 1px solid #eee;
}

.city-list li:last-child {
  border-bottom: none;
}

.city-list a {
  display: block;
  padding: 14px 20px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: .2s;
}

.city-list a:hover {
  background: #f7f9ff;
  color: #4c6fff;
  padding-left: 28px;
}

.state-card details[open] summary {
  border-bottom: 3px solid #f2cb05;
}

/* =========================================================
   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;
  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;
}

.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 {
    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;
  }
}


.hero {
  text-align: center;
  background: #f2cb05;
  color: black;
  max-width: 100%;
  line-height: 1.35;
  border-bottom: 15px solid #4c6fff;
}

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

.hero p a{
  color: #4c6fff;
  text-decoration: none;
}

.hero p a:hover{
  color: black;
  text-decoration: none;
}


/* =========================================================
   Cards & Grids
   ========================================================= */

.card {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #ddd;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.wide-card {
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #ddd;
  max-width: 600px;
}




/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 16px;
  background: #0511F2;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
}

.btn:hover {
  background: #f2cb05;
  color: black;
}

.btn {
  display: block;
  text-align: center;
  padding: 12px;
  margin-top: 12px;
  border-radius: 8px;
}

.btn:hover {
  background: #f2cb05;
  color: black;
}


/* =========================================================
   Lists & Notes
   ========================================================= */

.clean-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.clean-list li a{
  margin-bottom: 10px;
  color: #4c6fff;
  text-decoration: none;
}

.clean-list li a:hover {
  color: #f2cb05;
}

.toggle-link {
  color: #4da3ff;
  text-decoration: underline;
  cursor: pointer;
  font-size: 18px;
}

.list-wrapper {
  display: none;
  margin-top: 15px;
}

.notes-wrapper {
  display: none;
  margin-top: 5px;
}

.note {
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 5px;
}


/* =========================================================
   Tables
   ========================================================= */

#myInput {
  background-image: url('/css/searchicon.png'); 
  background-position: 10px 12px; 
  background-repeat: no-repeat; 
  width: 100%; 
  font-size: 16px; 
  padding: 12px 20px 12px 40px; 
  border: 1px solid #ddd; 
  margin-bottom: 12px; 
}

.table-wrap table {
  border-collapse: collapse;
  margin-left: auto;
  margin-right: auto;
  min-width: 100%;
  border: 3px solid;
}

.table-wrap th,
.table-wrap td {
  padding: 14px;
  border: 2px solid black;
}

thead {
	background-color: black;
	color: white;
}

td a {
  font-weight: 600;
  color: black;
  text-decoration: none;
}

td a:hover {
  color: #f2cb05;
}

th {
  text-align: left;
}

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

.image-grid img {
  width: 100%;
  border-radius: 10px;
}

.gallery-item img {
  width: 100%;
  /* height: 100%; */
  object-fit: cover;
  transition: transform 0.5s ease;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 17, 242, 0.6); 
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-weight: bold;
}

.footer-container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.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;
}


/* =========================================================
   Images & Gallery
   ========================================================= */

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  aspect-ratio: 3 / 2; 
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.overlay {
	flex-direction: column;
	gap: 8px; 
}

.gallery-item:hover .overlay {
  opacity: 1;
}


/* =========================================================
   Legacy Search List
   ========================================================= */

#myUL {
  display: none;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

#myUL li a {
  border: 1px solid #ddd; 
  margin-top: -1px; 
  background-color: #f6f6f6; 
  padding: 12px; 
  text-decoration: none; 
  font-size: 18px; 
  color: black; 
  display: block; 
}

#myUL li a:hover:not(.header) {
  background-color: #eee; 
}


/* =========================================================
   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 {
  color: #4c6fff;
  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 {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 70px;
    color: #f5f5f5;
}

.agency-page > section {
    width: 100%;
}


/* =========================================
   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
   ========================================================= */


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

@media (min-width: 1201px) {
  .desktop-search {
    width: 320px;
  }
}

@media (max-width: 1200px) {


  .nav-top {
    grid-template-columns: 300px 1fr 260px;
    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: 1080px) {
  .featured-image {
    aspect-ratio: auto;
  }
}  

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

  .nav-top {
    grid-template-columns: 250px minmax(0, 1fr) 220px;
    gap: 12px;
  }

  .logo {
    font-size: 28px;
  }

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

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

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

/* Switch to mobile nav on iPad/tablet size */
@media (max-width: 900px) {
  .nav-top {
    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%;
  }

  .sidebar-slider .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);
  }
	
  .sidebar-slider .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;
  }
}

/* =========================================
   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%);
    }
}

/* Agency detail cards: prevent long content from expanding mobile grids */
.agency-page .agency-details {
    min-width: 0;
    width: 100%;
}
.agency-page .detail-row {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}
.agency-page .detail-row span,
.agency-page .detail-row a,
.agency-page .agency-website a {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.agency-page .role-long-details,
.agency-page .role-long-detail {
    min-width: 0;
    max-width: 100%;
}

/* Compact desktop content: keep navigation, footer and homepage hero unchanged. */
@media (min-width: 1025px) and (max-width: 1366px) {
  .content-grid { max-width: 1060px; grid-template-columns: 235px minmax(0, 1fr); gap: 22px; }
  .page { padding: 20px 16px; }
  .page h1 { font-size: 25px; }
  .section:not(.hero) { padding-top: 38px; padding-bottom: 32px; }
  .agency-grid { gap: 16px; }
  .agency-title { padding: 15px 15px 8px; font-size: 1.15rem; }
  .agency-top { gap: 14px; padding: 16px; }
  .agency-top img { width: 100px; height: 100px; }
  .section-heading { font-size: 18px; padding: 14px 16px 0; }
  .duties-content { padding-left: 16px; padding-right: 16px; min-height: 48px; }
}

/* Compact interior-page heroes on laptop-width screens.
   Homepage hero is controlled separately by index.css. */
@media (min-width: 1025px) and (max-width: 1366px) {
  body:not(.home) .hero {
    padding: 42px 20px;
    border-bottom-width: 9px;
  }
  body:not(.home) .hero h1 {
    font-size: clamp(28px, 2.8vw, 36px);
    line-height: 1.15;
    margin: 0 0 9px;
  }
  body:not(.home) .hero p {
    font-size: 15px;
    line-height: 1.45;
    margin: 5px 0;
  }
  body:not(.home) .hero .meta {
    font-size: 12px;
  }
}

/* 1280px refinement: smaller interior cover and sidebar only.
   Leaves navbar, footer, homepage hero and agency cards untouched. */
@media (min-width: 1025px) and (max-width: 1366px) {
  .content-grid {
    width: calc(100% - 32px);
    max-width: 970px;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
  }
  .content-grid > .sidebar { min-width: 0; }
  .content-grid > .sidebar .card {
    padding: 16px 12px;
  }
  .content-grid > .sidebar .card h3 { margin-top: 4px; }
  .content-grid > .content { min-width: 0; }
  .content-grid > .content > .featured-image {
    display: block;
    width: 100%;
    max-width: 650px;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-inline: auto;
  }
}

/* Compact agency.php detail layout at laptop desktop widths only. */
@media (min-width: 1025px) and (max-width: 1366px) {
  .agency-page {
    max-width: 900px;
    padding: 26px 18px 48px;
  }
  .agency-page .agency-header {
    gap: 20px;
    padding: 22px;
    margin-bottom: 20px;
    border-radius: 15px;
  }
  .agency-page .agency-logo {
    width: 115px;
    height: 115px;
    padding: 10px;
  }
  .agency-page .agency-header h1 {
    font-size: clamp(1.65rem, 2.6vw, 2.25rem);
  }
  .agency-page > section:not(.agency-header) {
    padding: 22px;
    margin-bottom: 20px;
    border-radius: 15px;
  }
  .agency-page h2 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
  }
  .agency-page .agency-details { gap: 11px; }
  .agency-page .detail-row { padding: 14px; gap: 5px; }
  .agency-page .agency-vehicle-grid { gap: 16px; }
}

/* 2026-10-13: 1280px desktop refinements for interior listing pages. */
@media (min-width: 1025px) and (max-width: 1366px) {
  .content-grid {
    max-width: 1080px;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
  }
  .content-grid > .sidebar .card { padding: 20px 16px; }
  /* Align photo credit to the actual centered image, not the whole column. */
  .content-grid > .content > .caption,
  .content-grid > .content > p.caption {
    width: 100%;
    max-width: 650px;
    margin: 6px auto 0;
    text-align: right;
  }
  .content-grid .agency-grid {
    zoom: 1;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .content-grid .agency-card { min-width: 0; }
  .content-grid .agency-top img { width: 115px; height: 115px; }
}
