/*
 * ============================================================
 *  COMPACT RESPONSIVE OVERRIDES — Puducherry Police Website
 *  Loaded LAST to override all framework / theme CSS.
 *  NO PHP logic changes — CSS only.
 * ============================================================
 */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap');

/* ─── ROOT VARIABLES ─── */
:root {
  --font-body: 'Roboto', 'Open Sans', Arial, sans-serif;
  --fs-h1: 28px;
  --fs-h2: 22px;
  --fs-h3: 18px;
  --fs-h4: 16px;
  --fs-body: 15px;
  --fs-small: 13px;
  --fs-menu: 16px;
  --lh: 1.4;
  --section-pad: 25px;
  --card-pad: 14px;
  --gap: 14px;
  --btn-pad: 8px 16px;
  --btn-radius: 6px;
  --btn-fs: 14px;
  --primary: #2476BC;
  --primary-dark: #1a5b91;
}

/* ─── GLOBAL TYPOGRAPHY ─── */
body {
  font-family: var(--font-body) !important;
  font-size: var(--fs-body) !important;
  line-height: var(--lh) !important;
}

h1, .font-50 { font-size: var(--fs-h1) !important; line-height: var(--lh) !important; }
h2, .font-36 { font-size: var(--fs-h2) !important; line-height: var(--lh) !important; }
h3, .font-28 { font-size: var(--fs-h3) !important; line-height: var(--lh) !important; }
h4, .font-22 { font-size: var(--fs-h4) !important; line-height: var(--lh) !important; }
h5 { font-size: 15px !important; line-height: var(--lh) !important; }
h6 { font-size: 14px !important; line-height: var(--lh) !important; }
p { line-height: var(--lh) !important; font-size: var(--fs-body) !important; }

/* ─── TOP BAR ─── */
.top-bar {
  font-size: 13px !important;
}
.top-bar-content {
  padding: 3px 20px !important;
}
.india-flag {
  width: 24px !important;
  height: 16px !important;
}
.gov-text {
  font-size: 13px !important;
}
.font-btn {
  font-size: 13px !important;
  padding: 1px 4px !important;
}

/* ─── HEADER / BANNER LOGO (Flush Fit - Zero White Above/Below) ─── */
.header-middle {
  background-color: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
  border: none !important;
}
.header-middle .container-fluid,
.header-middle .row,
.header-middle [class*="col-"] {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
  border: none !important;
}
.header-middle .widget {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
  border: none !important;
  overflow: hidden !important;
  background: transparent !important;
}
.header-middle .widget a {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
  border: none !important;
  outline: none !important;
  text-decoration: none !important;
}
.header-middle .widget img,
.police-banner {
  display: block !important;
  margin: 0 auto !important;
  padding: 0 !important;
  vertical-align: top !important;
  border: none !important;
  outline: none !important;
  line-height: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  image-rendering: -webkit-optimize-contrast;
}
/* If banner image fails to load, collapse its container */
.police-banner[src=""],
.police-banner:not([src]) {
  display: none !important;
}
.top-bar {
  margin-bottom: 0 !important;
  border-bottom: none !important;
}
.header-nav,
.header-nav-wrapper {
  margin-top: 0 !important;
  border-top: none !important;
  padding-top: 0 !important;
}
#containershead {
  max-width: 98% !important; /* Matches expanded header width */
  margin: 0 auto !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}
@media (max-width: 767px) {
  #menuzord {
    width: 100% !important;
    max-width: 100% !important;
  }
}
@media (min-width: 768px) {
  #menuzord {
    width: auto !important;
    max-width: none !important;
    float: none !important;
  }
  .menuzord-menu {
    float: none !important;
    margin: 0 auto !important;
    justify-content: center !important;
  }
}

/* ─── NAVIGATION BAR ─── */
.header-nav-wrapper,
.header-nav-wrapper .container-fluid {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
#menuzord {
  min-height: auto !important;
  padding: 0 !important;
}
.menuzord-menu > li {
  padding: 0 !important;
}
.menuzord-menu > li > a {
  font-size: var(--fs-menu) !important;
  padding: 10px 10px 8px !important;
  line-height: 1.3 !important;
}
.header-nav .menuzord-menu > li > a {
  padding: 10px 10px 8px !important;
}
.menuzord-menu > li.emergency-item > a {
  padding: 4px 10px !important;
  font-size: 13px !important;
}

/* Nav dropdown compact */
.menuzord-menu .dropdown li a {
  padding: 6px 15px !important;
  font-size: 14px !important;
}

/* Google translate in nav */
.translate-box select,
.translate-box .goog-te-gadget-simple {
  font-size: 13px !important;
  padding: 4px 10px !important;
}

/* ─── HERO CAROUSEL ─── */
.carousel, .carousel.slide {
  margin: 0 !important;
  padding: 0 !important;
}
.carousel-inner {
  overflow: hidden !important;
}
.carousel-inner .carousel-item img {
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  width: 100% !important;
  display: block !important;
}
/* Collapse carousel if images don't load */
.carousel-item img[src=""],
.carousel-item img:not([src]) {
  display: none !important;
}
.custom-arrow {
  width: 38px !important;
  height: 38px !important;
}
.carousel-icon-text {
  font-size: 22px !important;
}
.carousel-indicators li {
  width: 10px !important;
  height: 10px !important;
}

/* ─── HELPLINE MARQUEE ─── */
.helpline-bar,
.main-content > div[style*="display: flex"][style*="box-shadow"] {
  font-size: 15px !important;
}
.helpline-bar .helpline-label,
.main-content > div[style*="display: flex"] > div[style*="background-color:#e7520c"] {
  padding: 6px 14px !important;
  font-size: 15px !important;
}
.main-content > div[style*="display: flex"] marquee {
  font-size: 15px !important;
}

/* ─── SECTION PADDING OVERRIDES ─── */
.pt-30 { padding-top: 20px !important; }
.pb-30 { padding-bottom: 20px !important; }
.pt-40 { padding-top: 20px !important; }
.pb-40 { padding-bottom: 20px !important; }
.pt-50 { padding-top: 25px !important; }
.pb-50 { padding-bottom: 25px !important; }
.pt-70 { padding-top: 30px !important; }
.pb-70 { padding-bottom: 25px !important; }
.mt-30 { margin-top: 16px !important; }
.mb-30 { margin-bottom: 16px !important; }
.mt-40 { margin-top: 20px !important; }
.mb-40 { margin-bottom: 20px !important; }
.mt-50 { margin-top: 25px !important; }
.mb-50 { margin-bottom: 25px !important; }

section {
  padding-top: var(--section-pad) !important;
  padding-bottom: var(--section-pad) !important;
}

/* ─── SERVICES SECTION BACKGROUND (original class had all styles commented out) ─── */
.ifet-blue-bacground {
  background: linear-gradient(135deg, #0a1628 0%, #132d50 50%, #1a3a5c 100%) !important;
  padding-top: 15px !important;
  padding-bottom: 15px !important;
}

/* ─── "OUR SERVICES" SECTION ─── */
.compact-services-heading {
  font-size: 24px !important;
  margin-bottom: 12px !important;
}
.toggle-container {
  margin: 12px 0 !important;
}
.toggle-btn {
  font-size: 14px !important;
  padding: 8px 20px !important;
  border-radius: 10px !important;
}

/* Service items compact */
#citizenServices .icon-container,
#policeServices .icon-container {
  height: 55px !important;
  width: 55px !important;
}
#citizenServices .icon-container img,
#policeServices .icon-container img {
  height: 32px !important;
  width: 32px !important;
}
#citizenServices .icon-container i,
#policeServices .icon-container i {
  font-size: 24px !important;
  color: #ffffff !important;
}
#citizenServices h5,
#policeServices h5 {
  font-size: 13px !important;
  margin-top: 4px !important;
}
#citizenServices .service-item,
#policeServices .service-item {
  margin: 5px !important;
}
#citizenServices .row,
#policeServices .row {
  gap: 6px !important;
}

/* ─── POLICE STATION BUTTONS (nearby/know your PS) ─── */
.compact-ps-buttons {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
  padding: 10px 0 !important;
}
.compact-ps-buttons .animated-button1,
.compact-ps-buttons button {
  padding: 8px 18px !important;
  font-size: 14px !important;
  margin: 4px !important;
  height: auto !important;
  border-radius: 12px !important;
}

/* ─── HOME PAGE PORTAL BANNER SECTION (Compact & High-Visibility) ─── */
#logos-section,
.logos-compact-section {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
#logos-section .container,
.logos-compact-section .container,
.logos-container {
  max-width: 1360px !important;
  width: 96% !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
}
#logos-section .section-content,
.logos-compact-section .section-content {
  margin: 0 !important;
  padding: 0 !important;
}
#logos-section .row,
.logos-compact-section .row {
  margin: 0 !important;
}
#logos-section [class*="col-"],
.logos-compact-section [class*="col-"] {
  padding: 0 !important;
}

.logos-compact-section .owl-carousel-5col,
.logos-compact-section .owl-carousel-6col {
  margin: 0 auto !important;
}
.logos-compact-section .owl-stage {
  margin: 0 auto !important;
  display: flex !important;
  justify-content: center !important;
}

.owl-carousel-6col .item,
.owl-carousel-5col .item {
  padding: 4px 6px !important;
}
.owl-carousel-6col .service-block,
.owl-carousel-5col .service-block {
  background: #ffffff !important;
  border-radius: 12px !important;
  padding: 6px 10px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.25s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 118px !important;
  margin-bottom: 0 !important;
  overflow: hidden !important;
  border: 1px solid #e2e8f0 !important;
}
.owl-carousel-6col .service-block:hover,
.owl-carousel-5col .service-block:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12) !important;
  border-color: #2476BC !important;
}
.owl-carousel-6col .thumb,
.owl-carousel-5col .thumb {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.owl-carousel-6col .thumb a,
.owl-carousel-5col .thumb a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
}
.owl-carousel-6col .item img,
.owl-carousel-6col .thumb img,
.owl-carousel-5col .item img,
.owl-carousel-5col .thumb img {
  height: 104px !important;
  max-height: 104px !important;
  max-width: 100% !important;
  width: auto !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  transform: none !important;
  transition: transform 0.25s ease !important;
}
.owl-carousel-6col .service-block:hover .thumb img,
.owl-carousel-5col .service-block:hover .thumb img {
  transform: scale(1.03) !important;
}
.owl-carousel-6col .owl-dots,
.owl-carousel-5col .owl-dots {
  display: none !important;
  margin: 0 !important;
  height: 0 !important;
}

@media (max-width: 767px) {
  #logos-section,
  .logos-compact-section {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
  .owl-carousel-6col .service-block,
  .owl-carousel-5col .service-block {
    height: 96px !important;
    padding: 4px 6px !important;
  }
  .owl-carousel-6col .item img,
  .owl-carousel-6col .thumb img,
  .owl-carousel-5col .item img,
  .owl-carousel-5col .thumb img {
    height: 84px !important;
    max-height: 84px !important;
  }
}

/* ─── MISSION STATEMENT / VIDEO SECTION ─── */
.compact-mission-section {
  padding-top: 20px !important;
  padding-bottom: 15px !important;
}
.compact-mission-section .row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
}
.compact-mission-section .video-box-wrap,
.compact-mission-section .image-box-thum {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12) !important;
  min-height: 0 !important;
  height: auto !important;
}
.compact-mission-section iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-width: 100% !important;
  margin-top: 0 !important;
  border: none !important;
  border-radius: 8px !important;
}
.compact-mission-section .image-box-thum a {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
}
.compact-mission-section .campusimg,
.compact-mission-section .image-box-thum img {
  position: relative !important;
  z-index: 2 !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  width: 100% !important;
  border-radius: 8px !important;
}

/* ─── ENHANCED MISSION STATEMENT CARD ─── */
.police-mission-card {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 60%, #eef4fc 100%);
  border: 1px solid #d4e0ee;
  border-left: 6px solid #002e6e;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 46, 110, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}
.police-mission-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 46, 110, 0.12), 0 4px 10px rgba(0, 0, 0, 0.04);
}
.police-mission-card .mission-watermark {
  position: absolute;
  right: 15px;
  bottom: -25px;
  font-size: 190px;
  color: #002e6e;
  opacity: 0.035;
  pointer-events: none;
  z-index: 1;
  transform: rotate(-8deg);
  line-height: 1;
}
.police-mission-card .police-mission-inner {
  position: relative;
  z-index: 2;
  padding: 26px 32px;
}
.police-mission-card .police-mission-header {
  display: flex;
  align-items: center;
  gap: 16px;
}
.police-mission-card .mission-badge-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #002e6e 0%, #0a4da2 100%);
  color: #ffd043;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 6px 16px rgba(0, 46, 110, 0.22);
  flex-shrink: 0;
}
.police-mission-card .mission-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #c28807;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.police-mission-card .mission-title {
  font-size: 20px;
  font-weight: 800;
  color: #0b2240;
  margin: 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: 'Open Sans', 'Segoe UI', Roboto, sans-serif;
  line-height: 1.3;
}
.police-mission-card .mission-divider {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #002e6e 0%, #ffd043 35%, #dbe5f1 70%, transparent 100%);
  border-radius: 2px;
  margin: 16px 0 20px 0;
}
.police-mission-card .mission-quote-container {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.police-mission-card .mission-quote-icon {
  font-size: 28px;
  color: #002e6e;
  opacity: 0.25;
  line-height: 1;
  margin-top: 3px;
  flex-shrink: 0;
}
.police-mission-card .mission-text-content {
  flex: 1;
}
.police-mission-card .mission-para {
  font-size: 15.5px;
  line-height: 1.85;
  color: #2d3e50;
  text-align: justify;
  margin-bottom: 14px;
  font-weight: 450;
}
.police-mission-card .mission-para:last-child {
  margin-bottom: 0;
}
.police-mission-card .mission-signature {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
  padding-top: 10px;
}
.police-mission-card .mission-signature-block {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.police-mission-card .mission-sig-line {
  width: 170px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #c28807 40%, #002e6e 100%);
  margin-bottom: 8px;
  border-radius: 2px;
}
.police-mission-card .mission-signatory {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 16.5px;
  line-height: 1.4;
  color: #002e6e;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.police-mission-card .mission-sig-prefix {
  font-family: 'Open Sans', 'Segoe UI', Roboto, sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #c28807;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-right: 7px;
  align-self: center;
}
.police-mission-card .mission-sig-title {
  font-weight: 700;
  font-style: italic;
  color: #0b2545;
  margin-right: 2px;
}
.police-mission-card .mission-sig-state {
  font-weight: 600;
  color: #002e6e;
  margin-left: 5px;
}

@media (max-width: 768px) {
  .police-mission-card .police-mission-inner {
    padding: 18px 18px;
  }
  .police-mission-card .mission-badge-icon {
    width: 42px;
    height: 42px;
    font-size: 19px;
  }
  .police-mission-card .mission-title {
    font-size: 16px;
  }
  .police-mission-card .mission-quote-icon {
    font-size: 22px;
  }
  .police-mission-card .mission-para {
    font-size: 14px;
    line-height: 1.75;
    text-align: left;
  }
  .police-mission-card .mission-signature {
    margin-top: 16px;
  }
  .police-mission-card .mission-sig-line {
    width: 130px;
  }
  .police-mission-card .mission-signatory {
    font-size: 14px;
  }
  .police-mission-card .mission-sig-prefix {
    font-size: 10px;
    margin-right: 5px;
  }
}

/* ─── ACHIEVEMENTS SECTION ─── */
.compact-achievements .section-title {
  margin-bottom: 20px !important;
}
.compact-achievements .section-title h2 {
  font-size: 20px !important;
  padding-bottom: 6px !important;
}
.compact-achievements .section-title p {
  font-size: 13px !important;
}
.compact-achievements .btn-year-tab {
  padding: 4px 16px !important;
  font-size: 13px !important;
  border-radius: 16px !important;
}
.compact-achievements .panel-title a {
  padding: 10px 15px !important;
  font-size: 14px !important;
}
.compact-achievements .panel-body {
  padding: 15px !important;
}
.compact-achievements .panel-body img {
  height: 140px !important;
  object-fit: cover !important;
}
.compact-achievements .panel-body h5 {
  font-size: 14px !important;
  margin-top: 5px !important;
}
.compact-achievements .panel-body p {
  font-size: 12px !important;
}
.compact-achievements .panel {
  margin-bottom: 6px !important;
}

/* ─── NEWS & GALLERY SECTION ─── */
.testiviedeo-bg1 {
  padding-top: 25px !important;
  padding-bottom: 25px !important;
}
.testiviedeo-bg1 .card {
  padding: 20px !important;
  margin-top: 20px !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}
.testiviedeo-bg1 .card .me-3 {
  min-width: 100% !important;
  margin-right: 0 !important;
  margin-bottom: 20px !important;
}
.testiviedeo-bg1 .card img {
  width: 100% !important;
  height: 460px !important; /* Large desktop height (approx 35-50% size increase) */
  object-fit: cover !important;
  border-radius: 8px !important;
  transition: transform 0.3s ease !important;
}
.testiviedeo-bg1 .card:hover img {
  transform: scale(1.01) !important;
}
.testiviedeo-bg1 .card h6.fw-bold {
  font-size: 18px !important;
  margin-top: 10px !important;
  color: #1a3a5c !important;
}
.testiviedeo-bg1 .card p {
  font-size: 14.5px !important;
  color: #4a5568 !important;
  line-height: 1.6 !important;
}
.testiviedeo-bg1 h2 {
  font-size: 20px !important;
}

/* Tablet Responsive news image */
@media (max-width: 992px) {
  .testiviedeo-bg1 .card img {
    height: 340px !important;
  }
}

/* Mobile Responsive news image */
@media (max-width: 576px) {
  .testiviedeo-bg1 .card img {
    height: 220px !important;
  }
}
.testimonialvideo {
  margin-bottom: 8px !important;
}
.btn-dp {
  font-size: 13px !important;
  padding: 4px 12px !important;
}

/* Notice board / gallery cards */
.notice-card {
  margin-bottom: 8px !important;
}
.notice-card h3 {
  font-size: 14px !important;
  margin-top: 4px !important;
}
.notice-card img {
  max-height: 120px !important;
  object-fit: cover !important;
}

/* ─── CARDS (GLOBAL) ─── */
.card, .panel {
  border-radius: 8px !important;
}

/* ─── BUTTONS (GLOBAL) ─── */
.btn {
  padding: var(--btn-pad) !important;
  font-size: var(--btn-fs) !important;
  border-radius: var(--btn-radius) !important;
}

/* ─── ANIMATED BUTTONS (compact) ─── */
.animated-button, .animated-button1, .animated-button2,
.animated-button3, .animated-button4, .animated-button5,
.animated-button6, .animated-button7, .animated-button8,
.animated-button9, .animated-button10 {
  padding: 10px 20px !important;
  margin: 6px !important;
  font-size: 14px !important;
  letter-spacing: 1.5px !important;
}

/* ─── ICON CONTAINERS (GLOBAL) ─── */
.icon-container {
  padding: 10px !important;
  margin-bottom: 6px !important;
}
.icon-container i {
  font-size: 28px !important;
}

/* ─── IMAGES ─── */
img {
  max-width: 100%;
  height: auto;
}
.img-fullwidth {
  object-fit: cover;
}

/* ─── FOOTER ─── */
footer#footer {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
footer#footer .container {
  padding-bottom: 0 !important;
  padding-top: 10px !important;
}
footer .widget {
  margin-bottom: 10px !important;
  padding-bottom: 0 !important;
}
footer .widget-title {
  font-size: 16px !important;
  margin-bottom: 8px !important;
  padding-bottom: 6px !important;
}
footer .list li {
  padding: 4px 0 !important;
}
footer .list li a {
  font-size: 13px !important;
}
/* ─── FOOTER CONTACT SECTION ─── */
.footer-contact-section {
  padding: 0 15px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Horizontal divider above the cards */
.footer-contact-divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0.15) 80%,
    transparent
  );
  margin: 6px 0 12px 0 !important;
}

/* Row as a flex container */
.footer-contact-row {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 0 !important; /* Using Bootstrap padding instead of gap */
}

/* Column wrapper */
.footer-contact-col {
  display: flex !important;
  padding-bottom: 12px !important;
}

/* Contact card - small size */
.footer-contact-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: center !important;
  width: 100% !important;
  padding: 12px 14px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: all 0.3s ease !important;
}
.footer-contact-card:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  transform: translateY(-2px) !important;
  border-color: rgba(36, 118, 188, 0.35) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

/* Circular icon - small size */
.footer-contact-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  flex-shrink: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  margin-bottom: 8px !important;
  transition: all 0.3s ease !important;
}
.footer-contact-card:hover .footer-contact-icon {
  background: #2476BC !important;
  border-color: transparent !important;
  transform: scale(1.05) !important;
}
.footer-contact-icon i {
  font-size: 15px !important;
  color: #ffffff !important;
  line-height: 1 !important;
}

/* Title - small size */
.footer-contact-title {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  margin: 0 0 4px 0 !important;
  letter-spacing: 0.3px !important;
}

/* Content text - small size */
.footer-contact-text {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.7) !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

/* Links */
.footer-contact-link {
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none !important;
  transition: color 0.25s ease !important;
  border-bottom: 1px solid transparent !important;
}
.footer-contact-link:hover {
  color: #2476BC !important;
  border-bottom-color: #2476BC !important;
  text-decoration: none !important;
}

/* Address: allow natural wrapping */
.footer-contact-address {
  max-width: 260px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Email: keep on one line on larger screens */
.footer-contact-email {
  white-space: nowrap !important;
}

/* ─── RESPONSIVE: Tablets & Small Desktops ─── */
@media (max-width: 991px) {
  .footer-contact-card {
    padding: 10px 10px !important;
  }
  .footer-contact-title {
    font-size: 15px !important;
  }
  .footer-contact-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    margin-bottom: 6px !important;
  }
  .footer-contact-icon i {
    font-size: 13px !important;
  }
  .footer-contact-text {
    font-size: 12px !important;
  }
}

/* ─── RESPONSIVE: Small Tablets (col-sm-6 kicks in) ─── */
@media (max-width: 767px) {
  .footer-contact-divider {
    margin: 6px 0 10px 0 !important;
  }
  .footer-contact-card {
    padding: 10px 10px !important;
  }
  .footer-contact-title {
    font-size: 14px !important;
  }
  .footer-contact-text {
    font-size: 12px !important;
  }
}

/* ─── RESPONSIVE: Mobile (<576px) ─── */
@media (max-width: 575px) {
  .footer-contact-col {
    padding-bottom: 8px !important;
  }
  .footer-contact-card {
    padding: 10px 10px !important;
  }
  .footer-contact-title {
    font-size: 14px !important;
  }
  .footer-contact-text {
    font-size: 12px !important;
  }
  .footer-contact-email {
    white-space: normal !important;
    word-break: break-all !important;
  }
  .footer-contact-address {
    max-width: 100% !important;
  }
  .footer-contact-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    margin-bottom: 5px !important;
  }
  .footer-contact-icon i {
    font-size: 13px !important;
  }
}


/* ─── FOOTER BOTTOM BAR ─── */
.footer-bottom {
  padding: 6px 10px !important;
}
.footer-bottom p {
  font-size: 13px !important;
  margin: 2px 0 !important;
}

/* ─── INNER PAGE BANNER ─── */
.inner-header .container {
  padding-top: 25px !important;
  padding-bottom: 10px !important;
}
.inner-header h2.title {
  font-size: 22px !important;
}
.inner-header .breadcrumb {
  margin-top: 4px !important;
  font-size: 13px !important;
  padding: 4px 0 !important;
}

/* ─── FLOATING WIDGETS ─── */
/* Social sidebar (left) */
.social-icons {
  top: 50% !important;
  transform: translateY(-50%) !important;
}
.social-icons .icon {
  width: 46px !important;
  height: 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 0px 8px 8px 0px !important;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15) !important;
}
.social-icons .icon img {
  width: 28px !important;
  height: 28px !important;
}
.social-icons .icon span {
  font-size: 14px !important;
  padding: 0 16px !important;
  left: 45px !important;
  height: 46px !important;
}
.social-icons .icon:hover span {
  left: 51px !important;
}

/* Social icons (right) */
.social-icons1 a {
  width: 40px !important;
  height: 40px !important;
  font-size: 18px !important;
  border-radius: 8px 0px 0px 8px !important;
}

/* Emergency contact */
.emergency-contact-fixed {
  padding: 6px 12px !important;
  font-size: 12px !important;
  border-radius: 8px !important;
  bottom: 60px !important;
}
.emergency-contact-fixed strong {
  font-size: 12px !important;
}

/* ─── FORMS ─── */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  height: 40px !important;
  padding: 6px 12px !important;
  font-size: 14px !important;
  border-radius: var(--btn-radius) !important;
}
textarea.form-control {
  height: auto !important;
  min-height: 80px !important;
}
.form-group {
  margin-bottom: 10px !important;
}
label {
  margin-bottom: 4px !important;
  font-size: 14px !important;
}

/* ─── TABLES ─── */
.table > thead > tr > th,
.table > tbody > tr > td {
  padding: 8px 10px !important;
  font-size: 14px !important;
  vertical-align: middle !important;
}
.table-responsive {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

/* ─── SCROLLBAR SLIM ─── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}

/* ─── WIDGET LINE-BOTTOM ─── */
.line-bottom::after,
.text-line::after {
  width: 40px !important;
  height: 2px !important;
  bottom: -2px !important;
}

/* ─── SECTION TITLE ─── */
.section-title {
  margin-bottom: 16px !important;
}
.section-title h2 {
  font-size: 20px !important;
}

/* ─── LOGIN LOCK BOX ─── */
#policeServices .col-md-6[style*="padding: 40px"] {
  padding: 20px 15px !important;
}
#policeServices .fa-lock {
  font-size: 28px !important;
  margin-bottom: 8px !important;
}

/* =============================================================
 *  RESPONSIVE BREAKPOINTS
 * ============================================================= */

/* ─── DESKTOP LARGE (up to 1200px) ─── */
@media (max-width: 1200px) {
  .police-banner {
    max-height: 115px !important;
  }
  .carousel-inner .carousel-item img {
    height: auto !important;
    max-height: none !important;
  }
  .menuzord-menu > li > a {
    font-size: 14px !important;
    padding: 10px 7px 8px !important;
  }
}

/* ─── TABLET / LAPTOP (up to 992px) ─── */
@media (max-width: 992px) {
  .police-banner {
    max-height: 95px !important;
  }
  .carousel-inner .carousel-item img {
    height: auto !important;
    max-height: none !important;
  }
  .menuzord-menu > li > a {
    font-size: 14px !important;
  }
  .compact-mission-section .video-box-wrap,
  .compact-mission-section .image-box-thum {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    min-height: 0 !important;
  }
  .compact-mission-section iframe,
  .compact-mission-section .image-box-thum img {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  .compact-ps-buttons {
    gap: 10px !important;
  }
  footer .col-md-4 {
    margin-bottom: 10px !important;
  }
}

/* ─── TABLET PORTRAIT (up to 768px) ─── */
@media (max-width: 768px) {
  .police-banner {
    max-height: 75px !important;
  }
  .carousel-inner .carousel-item img {
    height: auto !important;
    max-height: none !important;
  }
  .top-bar-content {
    padding: 3px 10px !important;
    flex-direction: column !important;
    gap: 2px !important;
  }
  .top-left, .top-right {
    justify-content: center !important;
  }
  .menuzord-menu > li > a {
    padding: 8px 12px !important;
    font-size: 15px !important;
  }
  .compact-ps-buttons {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .compact-ps-buttons button,
  .compact-ps-buttons .animated-button1 {
    width: 90% !important;
    max-width: 300px !important;
  }
  .compact-mission-section .col-xs-12 {
    margin-bottom: 12px !important;
  }
  .compact-mission-section iframe {
    width: 100% !important;
    height: 200px !important;
    margin-top: 0 !important;
  }
  .testiviedeo-bg1 .col-md-8,
  .testiviedeo-bg1 .col-md-4 {
    margin-bottom: 15px !important;
  }
  .social-icons {
    display: none !important;
  }
  .social-icons1 {
    top: auto !important;
    bottom: 0 !important;
    right: 0 !important;
    flex-direction: row !important;
    left: 0 !important;
    justify-content: center !important;
    background: rgba(0,0,0,0.8) !important;
    padding: 4px !important;
    z-index: 99999 !important;
    transform: none !important;
  }
  .social-icons1 a {
    width: 28px !important;
    height: 28px !important;
    font-size: 14px !important;
    margin: 0 3px !important;
    border-radius: 50% !important;
  }
  .emergency-contact-fixed {
    bottom: 40px !important;
    font-size: 11px !important;
    padding: 5px 10px !important;
  }
  section {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }
  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* ─── MOBILE (up to 576px) ─── */
@media (max-width: 576px) {
  .police-banner {
    max-height: 60px !important;
  }
  .carousel-inner .carousel-item img {
    height: auto !important;
    max-height: none !important;
  }
  h1, .font-50 { font-size: 22px !important; }
  h2, .font-36 { font-size: 18px !important; }
  h3 { font-size: 16px !important; }
  h4 { font-size: 15px !important; }
  h5 { font-size: 14px !important; }
  p { font-size: 14px !important; }

  .top-bar {
    font-size: 11px !important;
  }
  .top-bar-content {
    padding: 2px 8px !important;
  }
  .compact-mission-section .video-box-wrap,
  .compact-mission-section .image-box-thum {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    min-height: 0 !important;
  }
  .compact-mission-section iframe,
  .compact-mission-section .image-box-thum img {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  .toggle-btn {
    padding: 6px 14px !important;
    font-size: 13px !important;
  }
  #citizenServices .icon-container,
  #policeServices .icon-container {
    height: 45px !important;
    width: 45px !important;
  }
  #citizenServices .icon-container img,
  #policeServices .icon-container img {
    height: 26px !important;
    width: 26px !important;
  }
  #citizenServices .icon-container i,
  #policeServices .icon-container i {
    font-size: 18px !important;
  }
  .compact-achievements .panel-body img {
    height: 120px !important;
  }
  .testiviedeo-bg1 .card img {
    max-height: 140px !important;
  }
  footer .horizontal-contact-widget .col-xs-12 {
    margin-bottom: 20px !important;
  }
  footer .horizontal-contact-widget .col-xs-12:last-child {
    margin-bottom: 0 !important;
  }
  .notice-card img {
    max-height: 100px !important;
  }
  .compact-ps-buttons button,
  .compact-ps-buttons .animated-button1 {
    font-size: 13px !important;
    padding: 6px 14px !important;
  }
  section {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
}

/* ─── PREVENT HORIZONTAL SCROLL ─── */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}
.main-content {
  overflow-x: hidden !important;
}
#wrapper {
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* ─── MISC UTILITY ─── */
.no-margin { margin: 0 !important; }
.no-padding { padding: 0 !important; }
.compact-gap { gap: var(--gap) !important; }
