/*
 Theme Name:   Hello Elementor Child
 Template:     hello-elementor
 Version:      1.0
*/

/* --- Filter Bar: Three Columns --- */
.cc-filters-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
    margin-bottom: 2.7rem;
    justify-items: stretch;
    align-items: start;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    z-index: 10;
}
.cc-filter-group {
    position: relative;
    width: 100%;
    justify-self: stretch;
}

/* Pill Button Style */
.cc-filter-btn {
    width: 100%;
    background: #fff;
    color: #16113A !important;
    border: none;
    border-radius: 999px;
    padding: 0.63em 0;
    font-weight: 600;
    font-size: 1.08em;
    cursor: pointer;
    transition: border 0.18s, color 0.18s, background 0.18s;
    box-shadow: none;
    outline: none;
    text-align: center;
    margin-bottom: 0;
}
.cc-filter-btn:hover {
    color: #fff !important;
    background: #16113A !important;
    transition: all 0.2s ease-in-out;
}
.cc-filter-btn.active,
.cc-filter-btn:focus {
    border-color: #16113A !important;
    background: !important;
    color: #fff !important;
}

/* Dropdown Card - aligned below button */
.cc-filter-dropdown {
    display: none;
    position: absolute;
    left: 0;
    top: 110%;
    width: 100%;
    min-width: 260px;
    background: #fff;
    border-radius: 19px;
    box-shadow: 0 6px 34px 0 rgba(44,52,66,.12);
    border: 1.5px solid #e9e9ed;
    z-index: 50;
    padding: 0.65rem 0 0.7rem 0;
}

/* Show dropdown only when open */
.cc-filter-group.open .cc-filter-dropdown {
    display: block;
}

/* Responsive for mobile/tablet */
@media (max-width: 900px) {
    .cc-filters-bar { max-width: 100%; }
    .cc-filter-dropdown { min-width: 180px; }
    .cc-filter-btn { font-size: 1em; }
}
@media (max-width: 600px) {
    .cc-filters-bar {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    .cc-filter-btn {
        font-size: 0.97em;
    }
}

/* Search Bar (not functional yet) */
.cc-filter-search-wrap {
    padding: 0.75rem 1.15rem 0.5rem 1.15rem;
    border-bottom: 1px solid #f1f1f5;
}
.cc-filter-search {
    width: 100%;
    padding: 0.49em 1em;
    border-radius: 7px;
    border: 1.2px solid #e9e9ed;
    font-size: 1.07em;
    background: #fafbfc;
    color: #2d2e36;
    outline: none;
    font-weight: 400;
    margin-bottom: 0;
}

/* Term List Style */
.cc-filter-options {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 210px;
    overflow-y: auto;
}
.cc-filter-option {
    padding: 0;
}
.cc-radio {
    display: flex;
    align-items: center;
    font-size: 15px!important;
    font-weight: 500;
    padding: 0.55em 1.13em;
    cursor: pointer;
    gap: 0.7em;
    transition: background 0.14s;
    border-radius: 8px;
}
.cc-radio:hover {
    background: #f7f7fa;
}
.cc-radio input[type="radio"] {
    display: none;
}
.cc-radio-custom {
    width: 21px;
    height: 21px;
    border: 2.1px solid #bfc1c9;
    border-radius: 100%;
    display: inline-block;
    background: #fff;
    position: relative;
    transition: border 0.15s, background 0.15s;
    margin-right: 0.7em;
}
.cc-radio input[type="radio"]:checked + .cc-radio-custom {
    background: #16113A;
    border-color: #16113A;
}
.cc-radio input[type="radio"]:checked + .cc-radio-custom:after {
    content: '';
    display: block;
    width: 11px;
    height: 11px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    left: 3.3px;
    top: 3.3px;
}

/* Actions Row */
.cc-filter-actions {
    border-top: 1px solid #ececf0;
    margin-top: 1.05em;
    padding: 0.85em 1.1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5em;
    width: 100%;
    background: transparent;
    min-height: 60px; /* Keeps action bar bottom-aligned */
    box-sizing: border-box;
}

.cc-clear,
.cc-cancel {
    background: none !important;
    border: none !important;
    color: #28303d !important;
    font-size: 15px !important;
    cursor: pointer !important;
    border-radius: 0 !important;
    padding: 0 !important;
    font-weight: 400 !important;
    box-shadow: none !important;
    min-width: unset !important;
    text-align: left !important;
    transition: color 0.14s;
    line-height: 1.1;
    display: inline;
    height: auto !important;
}

.cc-clear:hover,
.cc-cancel:hover {
    color: #16113A !important;
    text-decoration: underline !important;
    background: none !important;
}

.cc-save {
    background: #16113A !important;
    color: #fff !important;
    border: none !important;
    padding: 0.45em 2em !important;
    border-radius: 24px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    font-size: 1em !important;
    box-shadow: 0 2px 10px #0001 !important;
    min-width: 84px !important;
    text-align: center !important;
    display: inline-block !important;
    transition: background 0.18s, color 0.18s !important;
    line-height: 1.1;
    height: auto !important;
}

.cc-save:hover {
    background: #231e59 !important;
    color: #fff !important;
}

/* Make "Clear" and "Cancel" look like links */
.cc-clear,
.cc-cancel {
    background: none !important;
    border: none !important;
    color: #28303d !important;
    font-size: 15px !important;
    cursor: pointer !important;
    border-radius: 0 !important;
    padding: 0 !important;
    font-weight: 400 !important;
    box-shadow: none !important;
    min-width: unset !important;
    text-align: left !important;
    transition: color 0.14s;
    line-height: 1.1;
    display: inline;
    height: auto !important;
}

.cc-clear:hover,
.cc-cancel:hover {
    color: #16113A !important;
    text-decoration: underline !important;
    background: none !important;
}

.cc-save {
    background: #16113A !important;
    color: #fff !important;
    border: none !important;
    padding: 0.45em 2em !important;
    border-radius: 24px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    font-size: 1em !important;
    box-shadow: 0 2px 10px #0001 !important;
    min-width: 84px !important;
    text-align: center !important;
    display: inline-block !important;
    transition: background 0.18s, color 0.18s !important;
    line-height: 1.1;
    height: auto !important;
}

.cc-save:hover {
    background: #231e59 !important;
    color: #fff !important;
}

/* Main Pagination Container */
.elementor-pagination {
    display: flex
;
    justify-content: center;
    align-items: center;
    gap: 1.15rem;
    background: #fff;
    border-radius: 18px;
    box-shadow: 3px 0px 18px 0 rgba(22, 17, 58, 0.18);
    padding: 1rem 2.2rem;
    margin-top: 2.5rem;
    font-family: inherit;
    font-size: 1.17em;
}

/* Page Number Info */
.elementor-pagination__text {
  font-weight: 600;
  color: #16113A;
  margin: 0 1rem;
}

/* Arrow Buttons */
.elementor-pagination .elementor-pagination__item {
  border: none;
  background: none;
  color: #16113A;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.22em;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
}

.elementor-pagination .elementor-pagination__item:hover,
.elementor-pagination .elementor-pagination__item:focus {
  background: #fcbc03;
  color: #fff;
}

.elementor-pagination .elementor-pagination__item.elementor-disabled,
.elementor-pagination .elementor-pagination__item[disabled] {
  color: #b8b9be;
  background: #fafbfc;
  cursor: not-allowed;
}

/* Remove underline on page buttons */
.elementor-pagination .elementor-pagination__item a {
  text-decoration: none !important;
}

/* (Optional) Add a little shadow to active page */
.elementor-pagination .elementor-pagination__item.elementor-active {
  background: #16113A;
  color: #fff;
  box-shadow: 0 2px 6px #0001;
}

/* Make sure the text info (like "1 of 136") is styled nicely */
.elementor-pagination__text {
  font-weight: bold;
  font-size: 1.11em;
  color: #16113A;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .elementor-pagination {
    padding: 0.65rem 0.6rem;
    font-size: 1em;
  }
  .elementor-pagination .elementor-pagination__item {
    width: 32px;
    height: 32px;
    font-size: 1em;
  }
}

/* --- Malone Painting Project Badges --- */
.mp-badge-label {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 14px;
    color: #16113A;
    letter-spacing: .01em;
}
.mp-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 15px;
    font-size: 14px;
    font-weight: 500;
    margin-right: 0.45em;
    margin-bottom: 0.2em;
    line-height: 1.45;
    vertical-align: middle;
    letter-spacing: .02em;
}
.mp-badge--navy {
    background: #16113A;
    color: #fff;
}
.mp-badge--yellow {
    background: #fcbc03;
    color: #222b;
}
/* Stack on mobile */
@media (max-width: 600px) {
    .mp-badge { font-size: 14px; padding: 3px 12px; }
    .mp-badge-label { font-size: 14px; }
}


/* Project Heading */

.project-heading {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.project-heading .navy {
  color: #16113A; /* Malone Navy Blue */
}

.project-heading .yellow {
  color: #FCBC03; /* Malone Yellow */
}

/* ============================================================
   START OF SERVICES CPT CSS
   Styles for Service Hero, Body, Features, Gallery & Responsive
=============================================================== */

/* Root Variables */
:root {
  --malone-yellow: #fcbc03;
  --malone-purple: #16113A;
  --white: #ffffff;
  --gray-700: #444;
  --gray-800: #333;
}

/* -----------------------------------
   Gallery Title and Description (UNUSED FOR NOW)
------------------------------------ */
.service-gallery-title {
  color: var(--white) !important;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.service-gallery-title .highlighted-title {
  color: var(--malone-yellow) !important;
}

.service-gallery-desc {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--white) !important;
}

/* ============================================================
   SWIPER GALLERY: Malone Service Slider
=============================================================== */

.mp-service-gallery {
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mp-service-gallery .swiper-wrapper {
  display: flex;
}

.mp-service-gallery .swiper-slide {
  width: auto;
  flex-shrink: 0;
}

.mp-service-gallery .swiper-slide img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 9px;
  display: block;
}

/* Pagination dots always below the gallery */
.mp-service-gallery .swiper-pagination {
  margin-top: 21px;
  text-align: center;
  position: relative;
  bottom: auto;
}

.mp-service-gallery .swiper-pagination-bullet {
  background-color: #16113A;
  opacity: 0.3;
  width: 9px;
  height: 9px;
  margin: 0 4.5px;
  border-radius: 50%;
}

.mp-service-gallery .swiper-pagination-bullet-active {
  opacity: 1;
}

@media (max-width: 767px) {
  .mp-service-gallery .swiper-pagination {
    margin-top: 18px;
  }

  .mp-service-gallery .swiper-pagination-bullet {
    margin: 0 3px;
  }
}

/* -----------------------------------
   Service Hero Section
------------------------------------ */
.service-hero {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 20px;
  position: relative;
  z-index: 10;
}

.service-hero-title {
  font-size: 45px !important;
  font-weight: 900 !important;
  color: #16113A !important;
  line-height: 1.1 !important;
  position: relative;
  z-index: 20;
  font-family: "Jost", sans-serif;
  text-align: center !important;
  text-transform: uppercase !important;
}

.service-hero-title .highlighted-title {
  color: var(--malone-yellow) !important;
}

.service-hero-desc {
  font-size: 27px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--e-global-color-52b6d13);
  line-height: 1.1em;
  font-family: "Lato", sans-serif;
  text-align: center;
  padding-top: 6px !important;
}

/* -----------------------------------
   Services Hero Breakpoints
------------------------------------ */

@media (max-width: 767px) {
  .service-hero-title {
    font-family: "Jost", sans-serif !important;
    font-weight: 600 !important;
    font-size: 36px !important;
    line-height: 1 !important;
    text-align: center;
    text-transform: none !important;
  }

  h1.service-hero-title {
    color: white !important;
    font-size: 36px !important;
  }

  .service-hero-desc {
    font-family: "Lato", sans-serif !important;
    font-size: 18px !important;
    text-align: center;
    line-height: 1.2em;
    color: white !important;
    text-transform: none !important;
    font-weight: normal !important;
    padding: 0px;	
  }

  .focused-title {
    font-family: "Jost", sans-serif !important;
    font-size: 36px !important;
    line-height: 1em;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .service-hero-title {
    color: #ffffff !important;
  }
.service-hero-desc {
    color: #ffffff!important;
  }
}

/* -----------------------------------
   Service Body Section
------------------------------------ */
.service-body {
  padding: 40px 20px;
  max-width: 880px;
  margin: 0 auto;
}

.focused-title {
  font-size: 45px !important;
  font-weight: 700;
  text-align: center;
  color: var(--malone-purple) !important;
  margin-bottom: 1rem;
  line-height: 1em;
  font-family: "Jost", sans-serif;
}

.focused-title .highlighted-title {
  color: var(--malone-yellow) !important;
}

.service-summary {
  font-size: 1.125rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-family: "Lato", sans-serif;
}

.service-features {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 2rem;
  color: var(--gray-800);
  font-family: "Lato", sans-serif;
}

.service-features li {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

/* ============================================================
   END OF SERVICES CPT CSS
=============================================================== */

/* -----------------------------------
   Related Projects and Locations
------------------------------------ */
.related-projects-list,
.locations-served {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
  font-family: "Lato", sans-serif;
}

.related-projects-list li,
.locations-served li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.related-projects-list a {
  color: var(--malone-purple);
  text-decoration: underline;
}

.related-projects-list a:hover {
  color: var(--malone-yellow);
}


/* -----------------------------------
   Project Gallery Overflow - 3 Columns Mobile
------------------------------------ */
.project-gallery-overflow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.project-gallery-overflow img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 6px;
}

.project-gallery-overflow > * {
  flex: 1 1 calc(33.333% - 10px);
  max-width: calc(33.333% - 10px);
  box-sizing: border-box;
}

@media (max-width: 360px) {
  .project-gallery-overflow > * {
    flex: 1 1 calc(50% - 9px);
    max-width: calc(50% - 9px);
  }
}

/* --- Mobile: show only 3 thumbs in Project CPT loop --- */
@media (max-width: 600px){
  /* hide the 4th (and beyond) real thumbs, keep the +X tile */
  .project-gallery-overflow .pg-thumb:nth-child(n+4):not(.overflow-tile){
    display:none;
  }

  /* 3-up layout math (adjust gap value if you change it) */
  .project-gallery-overflow > *{
    flex: 0 0 calc((100% - 16px) / 3);  /* 2 gaps of 8px = 16px */
    max-width: calc((100% - 16px) / 3);
  }

  /* Thumbnail Size Mobile */
  .project-gallery-overflow .pg-thumb {
    width: 72px !important;
    height: 72px !important;
  }
}

/* ============================================================
   LOCATION ARCHIVE CPT CSS
=============================================================== */

/* Location Archive + Single Page Hero */
.location-archive-hero {
  text-align: center;
  padding: 60px 20px;
}
.location-archive-hero .page-title {
  font-size: 2.5rem;
  font-weight: 800;
}
.location-archive-hero .page-subtitle {
  font-size: 1.2rem;
  color: #555;
}

/* Location Grid Container */
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* Location Card */
.location-card {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  padding-top: 100%; /* Makes it square */
  box-shadow: 3px 3px 6px 1px rgba(0, 0, 0, 0.45);
  z-index: 0;
}
.location-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #16113A 0%, rgba(22, 17, 58, 0.7) 0%, rgba(22, 17, 58, 0) 18%);
  z-index: 1;
}
.location-card:hover {
  transform: scale(1.02);
  box-shadow: 0 9px 18px rgba(0, 0, 0, 0.21);
  filter: brightness(0.85);
  background-color: #16113A;
}

/* Location Name */
.location-name {
  position: absolute;
  bottom: 16px;
  left: 16px;
  color: #fcbc03;
  font-size: 1.25rem;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

/* Clickable Overlay */
.location-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* Related Grid Styling for Locations */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.related-card {
  background: #f9f9f9;
  border-radius: 9px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  text-align: center;
}

.related-card:hover {
  background-color: #16113A;
  transform: translateY(-4px);
  color: #fff;
}

.related-card h4 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  color: #fcbc03;
}

.related-card.demo-card {
  opacity: 0.85;
  filter: grayscale(20%);
}
.related-card.demo-card h4 {
  font-style: italic;
}

/*Related Services by Location Pillbox Style*/

.cc-service-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 1rem 0;
    justify-content: center;
    text-align: center;
}

.cc-service-pill {
    display: inline-block;
    padding: 8px 16px;
    background-color: #16113A; 
    color: #ffffff;
    border-radius: 9999px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
    border: 1px solid #d1d5db;
    text-align: center;
}

.cc-service-pill:hover {
    background-color: #FCBC03;
    color: #16113A;
}

/* -----------------------------------
   Location Hero Section (Mirrored from Service)
------------------------------------ */
.location-hero {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 20px;
  position: relative;
  z-index: 10;
}

.location-hero-title {
  font-size: 45px !important;
  font-weight: 900 !important;
  color: white !important;
  line-height: 1.1 !important;
  position: relative;
  z-index: 20;
  font-family: "Jost", sans-serif;
  text-align: left !important;
  text-transform: uppercase !important;
}

.location-hero-title .highlighted-title {
  color: var(--malone-yellow) !important;
}

.location-hero-desc {
  font-size: 23px;
  font-weight: normal;
  /*text-transform: uppercase;*/
  color: white;
  line-height: 1.4em;
  font-family: "Lato", sans-serif;
  text-align: left;
  padding-top: 0px !important;
}

/* Mobile Responsive */
@media (max-width: 767px) {
  .location-hero-title {
    font-family: "Jost", sans-serif !important;
    font-weight: 600 !important;
    font-size: 36px !important;
    line-height: 1 !important;
    text-align: center !important;
    text-transform: none !important;
    color: white !important;
    margin-top: 0px;
  }

  .location-hero-desc {
    font-family: "Lato", sans-serif !important;
    font-size: 18px !important;
    text-align: center;
    line-height: 1.2em;
    color: white !important;
    text-transform: none !important;
    font-weight: normal !important;
    padding: 0px;
    margin-top: -9px !important;
  }

  .focused-title {
    font-family: "Jost", sans-serif !important;
    font-size: 36px !important;
    line-height: 1em;
  }
}

/* ============================================================
   END OF LOCATIONS CPT CSS
=============================================================== */

/* ============================================================
   AREAS WE SERVE SECTION - Clean & Optimized CSS
=============================================================== */

/* Global box-sizing for layout consistency */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent horizontal overflow globally */
html, body {
  overflow-x: hidden;
}

/* Scrollable List Container */
.cc-locations-scroll-list {
  max-height: 495px;
  overflow-y: auto;
  padding: 9px;
  position: relative;
  background: none;
  box-shadow: none;
  width: 100%;
}

/* Location Item Wrapper */
.cc-location-item-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px;
  margin-bottom: 3px;
  border-radius: 0;
  background: #e9e9e9;
  transition: background 0.3s ease;
  width: 100%;
}

/* Hover state */
.cc-location-item-wrapper:hover {
  background: #fcbc03;
}

/* Location Link */
.cc-location-item {
  flex-grow: 1;
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  color: #16113A !important;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
  width: 100%;
}

/* Hover effect */
.cc-location-item:hover {
  color: #fff !important;
}

/* Learn More Button */
.cc-learn-more-btn {
  background: #fcbc03;
  color: #16113A !important;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  margin-left: 9px;
  white-space: nowrap;
  transition: background 0.3s ease;
}

.cc-learn-more-btn:hover {
  background: #16113A;
  color: #fff !important;
}

/* Custom Scrollbar */
.cc-locations-scroll-list::-webkit-scrollbar {
  width: 8px;
}
.cc-locations-scroll-list::-webkit-scrollbar-track {
  background: gray;
  border-radius: 20px;
}
.cc-locations-scroll-list::-webkit-scrollbar-thumb {
  background-color: #fcbc03;
  border-radius: 20px;
}
.cc-locations-scroll-list::-webkit-scrollbar-button {
  display: none;
}

/* Icon styling */
.cc-location-icon {
  margin-right: 8px;
  color: #16113A;
  transition: color 0.3s ease;
}
.cc-location-item:hover .cc-location-icon {
  color: #fff;
}

/* Map Container */
#cc-locations-map {
  width: 100%;
  height: 540px !important;
  border-radius: 9px;
}

/* ============================================================
   Responsive Styles for Areas We Serve
=============================================================== */
@media (max-width: 768px) {
  .cc-locations-scroll-list {
    max-height: 270px;
  }

  #cc-locations-map {
    height: 270px !important;
  }

  .cc-learn-more-btn {
    font-size: 10px !important;
    padding: 6px 6px !important;
  }

  .cc-location-item-wrapper {
    padding: 0;
    margin-bottom: 3px;
  }
}

/* ============================================================
   END OF AREAS WE SERVE SECTION CSS
=============================================================== */

/* ============================================================
   Blog Post Archive Styling with Filters and Pagination
=============================================================== */

/* BLOG ARCHIVE FILTER PILLBOXES (Match Project Filters) */
.cc-blog-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.cc-blog-filters .cc-filter-btn {
  display: inline-block;
  width: auto !important;            
  max-width: max-content !important; 
  flex: 0 0 auto !important;         
  padding: 10px 20px;
  background: #ffc107; /* Yellow default (same as Project filters) */
  color: #001c54;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px #16113A; 
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cc-blog-filters .cc-filter-btn:hover {
  background: #e0ac06;
  color: #001c54;
}

/* Active (Current Category) */
.cc-blog-filters .cc-filter-btn.active {
  background: #16113A;
  color: #ffffff;
  box-shadow: 0 4px #ffc107; /* Yellow dropshadow */
}

/* ============================================================
   BLOGPOST PAGINATION (Match Project Archive)
=============================================================== */
.cc-blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.cc-blog-pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  background: #ffffff;
  color: #001c54;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 2px #16113A;
  transition: all 0.3s ease;
}

.cc-blog-pagination .page-numbers:hover {
  background: #ffc107;
  color: #001c54;
  border-color: #ffc107;
}

.cc-blog-pagination .page-numbers.current {
  background: #16113A;
  color: #ffffff;
  border-color: #16113A;
  box-shadow: 0 2px #ffc107;
}

/* ================
   Tablet: Projects Gallery
================================ */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  /* 1) target **all** Elementor galleries */
  .e-gallery-grid {
    /* force 2 columns on tablet instead of 3 or 4 */
    grid-template-columns: repeat(2, 1fr) !important;
    /* if you’d like a tighter gap: */
    grid-gap: 36px !important;
  }

  /* 2) (optional) scope only to single‑project pages */
  body.single-project .e-gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

