/* ============================================
Reset & Base Styles
============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
}

html, body{
  width: 100%;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

/* ============================================
Global Container
Use this class to wrap sections with fixed width
============================================ */
.container {
  max-width: 1388px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #0a2342;
  /* or use #222 if preferred */
  text-align: center;
  margin-bottom: 20px;
}


/* ===== Fixed, always-on-top header ===== */
:root { --header-h: 88px; } /* adjust if your header is taller/shorter */

header,
.site-header {
  position: fixed;        /* stays on top always */
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  width: 100%;
  background: #eff5ff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: 10000;
  transition: background .3s ease, box-shadow .3s ease;
  isolation: isolate;     /* prevents stacking issues */
}

/* Push page content below header */
body { padding-top: var(--header-h); }

/* Layout inside header */
.header-container {
  max-width: 1398px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  height: 100%;
}

/* Logo */
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0088cc;
  letter-spacing: 0.5px;
}
.logo img {
  display: block;
  object-fit: contain;
  max-height: 60px; /* keep logo controlled */
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a {
  font-weight: 500;
  color: #333;
  position: relative;
  text-decoration: none;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0%;
  background: #0088cc;
  transition: width .3s;
}
.nav-links a:hover::after {
  width: 100%;
}

/* Responsive header height for tablets/phones */
@media (max-width: 768px) {
  :root { --header-h: 72px; }
  .logo img { max-height: 48px; }
}

/* ============================================
Auth Buttons & Profile
============================================ */
.auth-buttons {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.auth-buttons button,
.auth-buttons a {
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 500;
  background: transparent;
  border: 1px solid #0088cc;
  color: #0088cc;
  transition: all 0.3s ease;
  text-decoration: none;
}

.auth-buttons .signup {
  background: #0088cc;
  color: white;
}

.auth-buttons button:hover,
.auth-buttons a:hover {
  opacity: 0.9;
}

/* ================================
Profile Dropdown (Animated & Styled)
================================= */

.profile-dropdown {
  position: relative;
}

.profile-toggle {
  background: none;
  border: none;
  color: #0088cc;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.profile-toggle:hover {
  background-color: rgba(0, 136, 204, 0.05);
}

/* Dropdown Menu */
.profile-menu {
  position: absolute;
  top: 110%;
  right: 0;
  background-color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
}

.profile-menu a {
  padding: 12px 18px;
  color: #333;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #eee;
}

.profile-menu a:hover {
  background-color: #f4faff;
  color: #0088cc;
}

.profile-menu a:last-child {
  border-bottom: none;
}

/* Show dropdown */
.profile-dropdown.show .profile-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ============================================
Hamburger Menu (Mobile)
============================================ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 3px;
  background-color: #333;
  transition: all 0.3s ease;
}

/* ============================================
Mobile Menu
============================================ */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100%;
  background: white;
  transition: right 0.4s ease;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  gap: 2rem;
  z-index: 999;
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.1);
}

.mobile-menu.show {
  right: 0;
}

.mobile-menu a {
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
}

.mobile-menu .auth-buttons {
  flex-direction: column;
  gap: 1rem;
}

.close-btn {
  font-size: 1.8rem;
  font-weight: bold;
  align-self: flex-end;
  background: none;
  color: #333;
}

/* ============================================
Responsive Header
============================================ */
@media (max-width: 992px) {

  nav,
  .auth-buttons {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ============================================
Hero Section Banner
============================================ */
.listing-banner-v2 {
  padding: 2rem 1rem;
  background: linear-gradient(120deg, #f0f8ff 0%, #ffffff 100%);
  overflow: hidden;
}

.hero-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.banner-left {
  flex: 1 1 500px;
}

.banner-right {
  flex: 1 1 500px;
  text-align: center;
}

.banner-right img {
  max-width: 83%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.welcome-text {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.banner-heading {
  font-size: 2.5rem;
  color: #222;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.banner-desc {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.5rem;
  max-width: 500px;
}

.banner-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  max-width: 480px;
}

.banner-form input {
  flex: 1 1 auto;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 30px;
  font-size: 1rem;
  outline: none;
}

.banner-form button {
  padding: 12px 20px;
  border: none;
  background-color: #0088cc;
  color: #fff;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.banner-form button:hover {
  background-color: #006ba1;
}

/* Responsive */
@media (max-width: 768px) {
  .listing-banner-v2 .container {
    flex-direction: column;
    text-align: center;
  }

  .banner-left,
  .banner-right {
    flex: 1 1 100%;
  }

  .banner-heading {
    font-size: 2rem;
  }

  .banner-form {
    flex-direction: column;
  }

  .banner-form input,
  .banner-form button {
    width: 100%;
  }
}

/* ============================
POPULAR GROUNDS SECTION
============================ */
.popular-grounds {
  background-color: #ffffff;
  padding: 30px 0;
}

.section-subtext {
  font-size: 1rem;
  color: #555;
  max-width: fit-content;
  margin: 0 auto 25px;
  line-height: 1.6;
  text-align: center;
}

.grounds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ground-meta i {
  transition: transform 0.2s ease;
}

.ground-card:hover .ground-meta i {
  transform: scale(1.2);
}

.ground-card-link {
  text-decoration: none;
  color: inherit;
}

.ground-card:nth-child(n+5):nth-child(-n+8) {
  background-color: #f9fbfd;
}

.ground-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ground-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 123, 255, 0.12);
}

.ground-image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.ground-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ground-card:hover .ground-image {
  transform: scale(1.05);
}

.ground-content-box {
  padding: 16px 18px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ground-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0d6efd;
  margin-bottom: 10px;
  line-height: 1.3;
  max-height: 2.6em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ground-meta p {
  font-size: 0.9rem;
  margin: 5px 0;
  color: #555;
  display: flex;
  align-items: flex-start;
  line-height: 1.4;
}

.ground-meta i {
  margin-right: 6px;
  color: #0d6efd;
  font-size: 0.9rem;
  min-width: 16px;
  margin-top: 2px;
}

.ground-Content {
  font-size: 0.9rem;
  color: #444;
  margin-top: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  min-height: 3em;
}

/* View All Button */
.view-all-wrapper {
  text-align: center;
  margin-top: 40px;
}

.view-all-btn {
  display: inline-block;
  background-color: #0d6efd;
  color: white;
  padding: 10px 24px;
  border-radius: 5px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s ease;
}

.view-all-btn:hover {
  background-color: #004bb1;
}

/* Responsive Layout */
@media (max-width: 992px) {
  .grounds-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ground-image-wrapper {
    height: 180px;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

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

  .ground-image-wrapper {
    height: 160px;
  }

  .section-title {
    font-size: 1.6rem !important;
  }

  .ground-title {
    font-size: 1rem;
  }
}

/* ======================
FOOTER
====================== */
.site-footer {
  background-color: #121b25;
  color: #ddd;
  padding: 20px 20px 30px;
  font-size: 15px;
  border-top: 3px solid #0d6efd;
}

.footer-icon {
  padding-right: 10px;
}

.footer-col:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-col h4 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
}

.footer-col p {
  line-height: 1.6;
  color: #ccc;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #0d6efd;
}

footer .social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 10px;
}

footer .social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 10px;
}

footer .social-icons a {
  width: 50px;
  height: 50px;
  display: flex;
  font-size: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #0d6efd;
  transition: all 0.3s ease;
}

/* Reset icon color on hover to white by default */
footer .social-icons a:hover {
  transform: scale(1.15);
  color: #fff;
}

/* Specific full background brand colors on hover */
footer .social-icons a:hover:nth-child(1) {
  background: #1877f2;
  /* Facebook */
}

footer .social-icons a:hover:nth-child(2) {
  background: radial-gradient(circle at 30% 30%, #feda75, #d62976, #962fbf);
  /* Instagram */
}

footer .social-icons a:hover:nth-child(3) {
  background: #000000;
  /* X / Twitter */
}

footer .social-icons a:hover:nth-child(4) {
  background: #ff0000;
  /* YouTube */
}

footer .social-icons a:hover:nth-child(5) {
  background: #0077b5;
  /* LinkedIn */
}

footer .social-icons a:hover:nth-child(6) {
  background: #000000;
  /* Threads */
}


.footer-form input,
.footer-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
}

.footer-form button {
  background-color: #0d6efd;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s;
}

.footer-form button:hover {
  background-color: #004bb1;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  font-size: 16px;
  border-top: 1px solid #333;
  margin-top: 30px;
  color: #aaa;
}

.footer-contact-info a:hover {
  color: #ffffff;
}

/* Responsive */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ============================
Move to Top Button
============================ */
#moveToTopBtn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  width: 50px;
  height: 50px;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
}

#moveToTopBtn svg {
  transform: rotate(-90deg);
}

#moveToTopBtn circle {
  fill: none;
  stroke-width: 4;
  stroke: #ddd;
}

#moveToTopBtn #progress {
  stroke: #0d6efd;
  stroke-dasharray: 126;
  /* 2πr = 2π×20 */
  stroke-dashoffset: 126;
  transition: stroke-dashoffset 0.2s ease;
}

#moveToTopBtn span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #0d6efd;
  font-weight: 600;
  font-size: 12px;
}

/* ============================
Popular Location Section
============================ */

.popular-Locations-section {
  padding: 20px 20px;
  background-color: #f9fbfe;
}

.Location-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.25), transparent);
  border-radius: 20px;
  opacity: 0;
  transition: 0.3s ease;
}

.Location-card:hover::after {
  opacity: 1;
}

.Location-masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-auto-rows: 260px;
  gap: 24px;
}

.Location-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  display: block;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.Location-card:hover {
  transform: scale(1.03);
}

.Location-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-radius: 20px;
}

.Location-card:hover img {
  transform: scale(1.05);
}

.Location-name {
  position: absolute;
  bottom: 15px;
  left: 20px;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.Location-card.tall {
  grid-row: span 2;
}

.Location-card.wide {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .popular-Locations-section {
    padding: 20px 0 !important;
  }

  .Location-masonry-grid {
    grid-auto-rows: 200px;
  }

  .Location-card.tall {
    grid-row: span 1;
  }

  .Location-card.wide {
    grid-column: span 1;
  }

  .cta-section {
    padding: 20px !important;
  }

  .container {
    padding: 10px !important;
  }

  .listing-banner-v2::after {
    display: none;
  }
}

/* ========================
CTA Section Styling
========================= */
.cta-section {
  background-color: #f0f8ff;
  padding: 80px 20px;
  position: relative;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-text {
  flex: 1 1 50%;
  max-width: 600px;
}

.cta-text h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 20px;
}

.cta-text p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* CTA Button */
.cta-text .btn-primary {
  background-color: #0d6efd;
  color: #fff;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s ease;
  box-shadow: 0 6px 16px rgba(13, 110, 253, 0.2);
}

.cta-text .btn-primary:hover {
  background-color: #084298;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(13, 110, 253, 0.3);
}

.cta-image {
  flex: 1 1 40%;
  text-align: center;
}

.cta-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 480px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cta-row {
    flex-direction: column;
    text-align: center;
  }

  .cta-text,
  .cta-image {
    flex: 1 1 100%;
  }

  .cta-text h2 {
    font-size: 2rem;
  }

  .cta-text p {
    font-size: 1rem;
  }

  .cta-text .btn-primary {
    font-size: 0.95rem;
    padding: 10px 22px;
  }
}

/* ======================================
Category Slider
====================================== */

/* ===== Section ===== */
.Category-slider-section {
  position: relative;
  padding: 48px 0 56px;
  background: radial-gradient(1200px 420px at 50% -10%, rgba(255,255,255,.7), transparent 60%),
              #edf4ff;
  overflow: hidden;
  isolation: isolate;
}

.section-title{
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 800;
  color: #0a2342;
  text-align: center;
  margin: 0 0 24px;
}

/* ===== Swiper base ===== */
.cat-swiper{
  padding: 6px 0 10px;
}

.cat-swiper .swiper-wrapper{
  /* make autoplay perfectly smooth */
  transition-timing-function: linear !important;
}

.cat-swiper .swiper-slide{
  width: auto;           /* variable-size slides */
  max-width: 320px;
  padding: 6px;          /* spacing around card */
}

/* ===== Glassy card ===== */
.cat-card{
  display: block;
  min-width: 210px;
  padding: 18px 20px;
  border-radius: 14px;

  background: rgba(255,255,255,.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 12px 28px rgba(13,38,76,.12);

  color: #0a2342;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
  position: relative;
}

/* subtle neon rim */
.cat-card::before{
  content: "";
  position: absolute; inset: -1px;
  border-radius: 14px;
  padding: 1px;
  background: conic-gradient(from 160deg, rgba(45,116,255,.18), rgba(45,116,255,0) 25%, rgba(45,116,255,.18) 50%, rgba(45,116,255,0) 75%, rgba(45,116,255,.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; opacity: .6;
}

.cat-card:hover{
  transform: translateY(-6px);
  background: rgba(255,255,255,.82);
  box-shadow: 0 16px 34px rgba(13,38,76,.18);
  border-color: rgba(255,255,255,.85);
}

.cat-name{
  display:block;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: .2px;
  margin-bottom: 6px;
}

.cat-count{
  display:block;
  font-size: .98rem;
  color: #4a5568;
  opacity: .9;
}

/* edge fades (optional, purely visual) */
.cat-fade{
  position: absolute; top: 0; bottom: 0; width: 8%;
  pointer-events: none; z-index: 2;
}
.cat-fade--left{ left: 0; background: linear-gradient(90deg, #edf4ff, rgba(237,244,255,0)); }
.cat-fade--right{ right: 0; background: linear-gradient(270deg, #edf4ff, rgba(237,244,255,0)); }

/* responsive sizing */
@media (max-width: 768px){
  .cat-swiper .swiper-slide{ max-width: 260px; }
  .cat-card{ min-width: 180px; padding: 16px; }
}

/* accessibility: reduce motion */
@media (prefers-reduced-motion: reduce){
  .cat-swiper .swiper-wrapper{ transition-duration: 0ms !important; }
}

/* ================================
Inner Hero Banner
================================= */
.inner-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.3)), url(images/ground.jpg) no-repeat center center;
  background-size: cover;
  color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
}

.inner-hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 15px;
}

.inner-hero p {
  font-size: 18px;
  opacity: 0.95;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .inner-hero {
    padding: 60px 20px;
  }

  .inner-hero h1 {
    font-size: 30px;
  }

  .inner-hero p {
    font-size: 16px;
  }
}

/* ================================
Filter Bar (Manual CSS)
================================= */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: space-between;
  margin: 30px 0;
}

.custom-select {
  padding: 12px 15px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  min-width: 33%;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.custom-select:focus {
  border-color: #0d6efd;
  outline: none;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.2);
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 31%;
}

.search-box input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-box input:focus {
  border-color: #0d6efd;
  outline: none;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.2);
}

/* ================================
Search Suggestion Box (Manual)
================================= */
#suggestionsBox {
  background-color: #fff;
  border: 1px solid #ddd;
  max-height: 250px;
  overflow-y: auto;
  border-radius: 4px;
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
}

#suggestionsBox .list-group-item {
  cursor: pointer;
  padding: 10px 15px;
  font-size: 0.95rem;
  border-bottom: 1px solid #eee;
}

#suggestionsBox .list-group-item:hover {
  background-color: #f2f2f2;
  color: #0d6efd;
}

/* ================================
Grounds Grid and Cards
================================= */
.grounds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.ground-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

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

.ground-image-wrapper img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.ground-content-box {
  padding: 15px;
  flex-grow: 1;
}

.ground-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #222;
}

.ground-meta p {
  margin: 3px 0;
  font-size: 0.95rem;
  color: #555;
}

.ground-meta i {
  color: #0d6efd;
  margin-right: 6px;
}

/* ================================
Load More Button (Manual)
================================= */
.load-more {
  margin: 30px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

#loadMoreBtn {
  background-color: #0D6EFD;
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

#loadMoreBtn:hover {
  background-color: #084298;
  box-shadow: 0 6px 16px rgba(8, 66, 152, 0.3);
}

#loadMoreBtn:disabled {
  background-color: #a0c1f7;
  cursor: not-allowed;
}

/* ======================================================
Ground Detail Page Styles
====================================================== */

/* ------------------------
Hero Banner
------------------------ */
.ground-hero {
  background-size: cover;
  background-position: center;
  padding: 100px 20px;
  position: relative;
  color: #fff;
}

.ground-hero-overlay {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 40px;
  text-align: center;
  border-radius: 10px;
}

.ground-hero h1 {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 10px;
}

.ground-hero p {
  font-size: 18px;
  opacity: 0.95;
}

/* ------------------------
Main Layout
------------------------ */
.ground-detail-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1388px;
  margin: 40px auto;
  gap: 30px;
  padding: 0 20px;
}

.ground-detail-main {
  flex: 1 1 65%;
}

.ground-detail-sidebar {
  flex: 1 1 30%;
}

/* ------------------------
Tabs Navigation
------------------------ */
.ground-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.mt-4 {
  margin: 20px 0;
}

.ground-tab-button {
  background: #f0f0f0;
  border: 1px solid #ddd;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
  border-radius: 4px;
  transition: 0.3s;
}

.ground-tab-button:hover {
  background: #e2e2e2;
}

.ground-tab-button.active {
  background: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}

/* ------------------------
Tab Content Box
------------------------ */
.ground-tab-content {
  display: none;
  background: #fafafa;
  padding: 25px;
  border-radius: 6px;
  border: 1px solid #eaeaea;
  line-height: 1.7;
}

.ground-tab-content.active {
  display: block;
}

/* ------------------------
Info Boxes (Updated Overview)
------------------------ */
.ground-info-boxes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 25px;
}

.info-row {
  background: #fff;
  border: 1px solid #e4e4e4;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 15px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-row span {
  font-weight: 500;
  color: #222;
  word-break: break-word;
}

.info-row.clickable span {
  color: #0d6efd;
}

.info-row:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* ------------------------
Info List (Old fallback)
------------------------ */
.ground-info-list {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.ground-info-list li {
  margin-bottom: 10px;
  font-size: 15px;
}

.ground-info-list a {
  color: #0d6efd;
  text-decoration: none;
}

.ground-info-list a:hover {
  text-decoration: underline;
}

/* ------------------------
Gallery
------------------------ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ddd;
}

/* ------------------------
Sidebar Info Card
------------------------ */
.info-card {
  background: #f8f9fa;
  padding: 25px 20px;
  border-radius: 10px;
  margin-bottom: 25px;
  margin-top: 60px;
  border: 1px solid #e1e1e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.info-card h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #222;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============ Opening Hours Card Styles ============ */
.hours-card {
  margin-top: 18px;
  background: #ffffff;
  border: 1px solid #e9eef6;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(16, 24, 40, .06);
  overflow: hidden;
}

.hours-card .card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #eef2f7;
  background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
}

.hours-card .card-header i {
  color: #0d6efd;
}

.hours-card .card-header h3 {
  font-size: 18px;
  margin: 0;
  font-weight: 600;
  color: #0a2540;
}

.hours-card .tz {
  margin-left: auto;
  font-size: 12px;
  color: #6b7280;
}

.hours-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  font-size: 14px;
  color: #0a2540;
}

.hours-list li:nth-child(odd) {
  background: #fbfdff;
}

.hours-list .day {
  font-weight: 500;
}

.hours-list .time {
  font-variant-numeric: tabular-nums;
  color: #1f2937;
}

.hours-list li.today {
  background: #eef6ff;
  border-left: 3px solid #0d6efd;
}

.hours-note {
  padding: 8px 16px 14px;
  font-size: 12px;
  color: #6b7280;
  border-top: 1px dashed #e5e7eb;
}

/* ------------------------
Info List Inside Card
------------------------ */
.info-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 15px;
  line-height: 1.6;
}

.info-list i {
  font-size: 16px;
  color: #0d6efd;
  margin-top: 3px;
  width: 20px;
  text-align: center;
}

.info-label {
  font-weight: bold;
  min-width: 60px;
  flex-shrink: 0;
}

.info-list a {
  color: #000;
  text-decoration: none;
  word-break: break-word;
}

.info-list a:hover {
  text-decoration: underline;
}

/* ------------------------
Sidebar Action Buttons
------------------------ */
.action-buttons a {
  display: block;
  padding: 14px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  border-radius: 6px;
  text-decoration: none;
  margin-bottom: 12px;
  transition: 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn-green {
  background: #28a745;
  color: #fff;
}

.btn-green:hover {
  background: #218838;
  transform: translateY(-2px);
}

.btn-blue {
  background: #0d6efd;
  color: #fff;
  display: block;
  padding: 14px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  border-radius: 6px;
  text-decoration: none;
  margin-bottom: 12px;
  transition: 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn-blue:hover {
  background: #084298;
  transform: translateY(-2px);
}

/* ------------------------
Responsive
------------------------ */
@media (max-width: 992px) {
  .ground-detail-container {
    flex-direction: column;
    gap: 20px;
    padding: 0 !important;
  }

  .ground-tab-button{
    max-width: 90% !important;
    width: 100%;
    margin: auto;
  }

  .ground-hero h1 {
    font-size: xx-large !important;
  }

  .ground-tabs {
    flex-direction: column;
  }

  .info-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-row span {
    margin-top: 6px;
  }

  .info-card {
    margin-top: 0 !important;
  }
}

/* ------------------------
Lightbox Preview
------------------------ */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease;
}

.lightbox-overlay img:hover {
  transform: scale(1.02);
}

/* ============================================================
Booking Tab
============================================================ */

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.booking-form .form-group {
  display: flex;
  flex-direction: column;
}

.booking-form label {
  margin-bottom: 5px;
  font-weight: 600;
}

.booking-form input,
.booking-form select {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

/* ===============================
About Us Page Styles
================================== */

.about-section-container {
  max-width: 1140px;
  margin: auto;
  padding: 60px 20px;
}

/* ===========================
Our Mission Section Style
=========================== */
.mission-block {
  padding: 80px 20px;
  background-color: #f1f3f5;
}

.mission-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  gap: 40px;
}

.mission-left {
  flex: 1 1 45%;
  text-align: center;
}

.mission-left img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  filter: drop-shadow(2px 4px 6px black);
  animation: float 3s ease-in-out infinite;
}

.mission-right {
  flex: 1 1 50%;
}

.mission-right h2 {
  font-size: 32px;
  color: #0d6efd;
  font-weight: 700;
  margin-bottom: 20px;
}

.mission-right .mission-highlight {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
}

.mission-right p {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 14px;
}

/* Floating image animation */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .mission-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .mission-left,
  .mission-right {
    flex: 1 1 100%;
  }

  .why-sgh-title {
    font-size: x-large !important;
  }
}

/* ================================
Why Choose SportGroundsHub Section
— Grid version (tablet-friendly)
================================ */
.why-sgh-section {
  background-color: #f9fbfe;
  padding: 80px 20px;
  text-align: left;
}

.why-sgh-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center !important;
  color: #111;
  margin-bottom: 50px;
}
.why-sgh-title span { color: #0d6efd; }

.why-sgh-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* === GRID LAYOUT (replaces flex) === */
.why-sgh-features {
  display: grid;                       /* switched from flex → grid */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;                           /* card spacing */
  align-items: stretch;                /* make cards equal height per row */
}

/* ================================
Card Design & Hover Animation
================================ */
.why-sgh-card {
  position: relative;
  overflow: hidden;
  background-color: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  height: 100%;                        /* stretch inside grid cell */
  display: flex;                       /* keep inner content tidy */
  flex-direction: column;
}

/* Animated BG Layer */
.why-sgh-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #0D6EFD;
  z-index: 0;
  transform: translateY(-100%);
}

/* Slide In/Out states (toggle with JS if you use it) */
.why-sgh-card.hover-in::before { animation: slideInFromTop 0.5s forwards; }
.why-sgh-card.hover-out::before { animation: slideOutToBottom 0.5s forwards; }

.why-sgh-card .why-sgh-icon .fas {
  font-size: 22px;
  background-color: #ffffff;
  color: #0d6efd;
  width: 50px; height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
  border: 2px solid #0d6efd;
  margin-bottom: 18px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

@keyframes slideInFromTop { from { transform: translateY(-100%); } to { transform: translateY(0%); } }
@keyframes slideOutToBottom { from { transform: translateY(0%); } to { transform: translateY(100%); } }

/* Content stays on top */
.why-sgh-icon,
.why-sgh-card h4,
.why-sgh-card p { position: relative; z-index: 1; }

/* Hover Elevation */
.why-sgh-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.08);
}

/* ================================
Custom Static Background Coloring
(kept as-is; works with grid too)
================================ */
.why-sgh-card:nth-child(1),
.why-sgh-card:nth-child(3),
.why-sgh-card:nth-child(6),
.why-sgh-card:nth-child(8) {
  background-color: #ffffff;
}
.why-sgh-card:nth-child(2),
.why-sgh-card:nth-child(4),
.why-sgh-card:nth-child(5),
.why-sgh-card:nth-child(7) {
  background-color: #d0e1ff;
}

/* ================================
Responsive Tweaks for Tablets/Phones
================================ */
/* Large desktops – slightly wider cards per row */
@media (min-width: 1200px) {
  .why-sgh-features {
    grid-template-columns: repeat(4, 1fr);   /* exact 4 per row on XL */
    gap: 30px;
  }
}

/* Tablets / small desktops */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .why-sgh-features {
    grid-template-columns: repeat(3, 1fr);   /* 3 per row */
    gap: 26px;
  }
}

/* Landscape tablets / large phones */
@media (min-width: 768px) and (max-width: 991.98px) {
  .why-sgh-features {
    grid-template-columns: repeat(2, 1fr);   /* 2 per row */
    gap: 24px;
  }
  .why-sgh-title { font-size: 30px; }
}

/* Phones */
@media (max-width: 767.98px) {
  .why-sgh-section { padding: 56px 16px; }
  .why-sgh-title { font-size: 28px; margin-bottom: 36px; }
  .why-sgh-features {
    grid-template-columns: 1fr;              /* 1 per row */
    gap: 18px;
  }
  .why-sgh-card { padding: 24px 20px; }
}

/* CTA */
.about-section-cta {
  background: #0d6efd;
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}

.about-section-cta h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.about-section-cta p {
  font-size: 18px;
  margin-bottom: 20px;
}

.about-cta-button {
  display: inline-block;
  padding: 12px 25px;
  background: #fff;
  color: #0d6efd;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}

.about-cta-button:hover {
  background: #e0e0e0;
}

/* Animations */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
Responsive - About Page
================================== */
@media (max-width: 992px) {

  .about-why-grid,
  .about-team-grid,
  .about-testimonial-grid {
    flex-direction: column;
    align-items: center;
  }

  .about-why-card,
  .about-team-card,
  .about-testimonial-card {
    width: 90%;
    max-width: 400px;
  }

  .about-hero-img {
    width: 80%;
    max-width: 250px;
  }

  .about-section-container {
    padding: 40px 15px;
  }
}

@media (max-width: 576px) {
  .about-hero-text h1 {
    font-size: 28px;
  }

  .about-section-mission h2,
  .about-section-why h2,
  .about-section-team h2,
  .about-section-testimonials h2,
  .about-section-cta h2 {
    font-size: 24px;
  }

  .about-section-cta p,
  .about-hero-text p {
    font-size: 16px;
  }

  .about-cta-button {
    padding: 10px 20px;
    font-size: 16px;
  }

  .about-why-card i {
    font-size: 24px;
  }
}

/* ===========================
Contact Page CSS Stylesheet (Colorful & Animated)
=========================== */

/* ----- Section Wrappers ----- */
.contact-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f0f4ff, #ffffff);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: rgba(13, 110, 253, 0.1);
  border-radius: 50%;
  z-index: 0;
}

.contact-container-fluid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

/* ----- Left Column: Info Section ----- */
.contact-info {
  flex: 1 1 45%;
  min-width: 280px;
  animation: fadeInLeft 1s ease forwards;
  opacity: 0;
}

.contact-info h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #0d6efd;
}

.contact-info p {
  color: #333;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.contact-info .info-block {
  margin-bottom: 20px;
}

.contact-info a {
  color: #0d6efd;
  text-decoration: none;
}

/* ----- Social Icons ----- */
.contact-info .social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.contact-info .social-icons a {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 20px;
  color: #0d6efd;
  transition: all 0.3s ease;
}

.contact-info .social-icons a:hover {
  transform: scale(1.15);
  background: rgba(13, 110, 253, 0.2);
  color: #000;
}

/* ----- Right Column: Form Section ----- */
.contact-form {
  flex: 1 1 45%;
  min-width: 280px;
  background: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  animation: fadeInRight 1s ease forwards;
  opacity: 0;
}

.contact-form h3 {
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 600;
  color: #0d6efd;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.2);
  outline: none;
}

.contact-form button {
  background: #0d6efd;
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.contact-form button:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

/* ----- Map Section ----- */
.map-section {
  width: 100%;
  height: 400px;
  padding: 0;
}

.map-container {
  width: 100%;
  height: 100%;
  filter: grayscale(100%) contrast(90%) opacity(0.9);
  border: 5px solid #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
}

/* ----- Responsive Styles ----- */
@media (max-width: 768px) {
  .contact-container-fluid {
    flex-direction: column;
  }

  .contact-section {
    padding: 0 !important;
  }

  .contact-info,
  .contact-form {
    flex: 1 1 100%;
    padding: 10px !important;
  }
}

/* ----- Animations ----- */
@keyframes fadeInLeft {
  0% {
    transform: translateX(-30px);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeInRight {
  0% {
    transform: translateX(30px);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ====================================================================== */
/* Blog Page CSS */
/* ====================================================================== */

/* ================================
Blog Categories Section
================================ */
.blog-categories {
  padding: 30px 0;
  /* Top & bottom spacing */
  text-align: center;
  /* Center align heading and chips */
}

/* Section title styling */
.blog-categories .section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #1a1a1a;
  /* Dark heading color */
}

/* Chip container: flex wrap for responsiveness */
.Category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  /* Space between chips */
  justify-content: center;
}

/* Individual chip button */
.Category-chips .chip {
  border: 1px solid #d0d7e2;
  /* Light gray border */
  background-color: #ffffff;
  /* White background */
  color: #1a1a1a;
  /* Default text color */
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 30px;
  /* Fully rounded pill */
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Hover effect for chip */
.Category-chips .chip:hover {
  background-color: #e6f0ff;
  /* Light blue hover */
  border-color: #3b82f6;
  /* Primary blue border on hover */
  color: #3b82f6;
  /* Primary blue text on hover */
}

/* Active chip (selected Category) */
.Category-chips .chip.active {
  background-color: #3b82f6;
  /* Primary blue background */
  border-color: #3b82f6;
  color: #ffffff;
  /* White text */
}

/* =========================================
Blog Grid Section
- 3 column responsive layout
========================================= */
.blog-grid-section {
  padding: 30px 0;
}

/* Section title consistent with other headings */
.blog-grid-section .section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #1a1a1a;
}

/* Grid layout for blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

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

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

/* Blog card styling */
.blog-card {
  background: #ffffff;
  border: 1px solid #e9eef6;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(16, 24, 40, 0.06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.10);
}

/* Media block */
.blog-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #f4f7fb;
}

.blog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Category badge */
.blog-media .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  background: #3b82f6;
  border-radius: 999px;
}

/* Blog content */
.blog-content {
  padding: 16px;
}

.blog-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #101828;
}

.blog-title a {
  color: inherit;
  text-decoration: none;
}

.blog-title a:hover {
  color: #3b82f6;
}

/* Excerpt text */
.blog-excerpt {
  color: #475467;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 12px;
}

/* Meta info */
.blog-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #667085;
}

.blog-meta .dot {
  opacity: 0.6;
}

/* =========================================
Load More Section
- Centered button with spinner Location
- Matches rounded buttons & blue theme
========================================= */
.blog-load-more {
  padding: 40px 0;
  /* vertical spacing around the button */
}

/* Wrapper to center the CTA elements */
.load-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  /* space between button and small note */
}

/* Primary button */
.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  /* space between text and spinner */
  padding: 12px 22px;
  /* touch-friendly target */
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  /* white text */
  background: #3b82f6;
  /* primary blue */
  border: 1px solid #3b82f6;
  /* matching border */
  border-radius: 999px;
  /* pill shape */
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 6px 16px rgba(59, 130, 246, .25);
  /* soft blue glow */
}

/* Hover/active Locations */
.load-more-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(59, 130, 246, .28);
  background: #2f76ef;
  /* a bit darker on hover */
}

.load-more-btn:active {
  transform: translateY(0);
}

/* Disabled Location (when loading or no more posts) */
.load-more-btn:disabled {
  opacity: .65;
  cursor: not-allowed;
  box-shadow: none;
}

/* Spinner circle (hidden by default; shown when .is-loading is applied) */
.load-more-btn .btn-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .5);
  /* faint ring */
  border-top-color: #ffffff;
  /* visible top for rotation */
  display: none;
  /* hidden normally */
  animation: lm-spin 0.9s linear infinite;
}

/* When loading, show spinner and dim label slightly */
.load-more-btn.is-loading .btn-spinner {
  display: inline-block;
}

.load-more-btn.is-loading .btn-label {
  opacity: .9;
}

/* Small helper text under button */
.load-more-note {
  font-size: 14px;
  color: #667085;
  /* muted */
  margin: 0;
}

/* Keyframes for spinner rotation */
@keyframes lm-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Utility: hide cards until revealed */
.blog-card.is-hidden {
  display: none;
}

/* =========================================
Newsletter Subscribe CTA
- Matches your rounded cards, soft shadow, blue accents
- Responsive inline form with EmailId + button
========================================= */
.blog-newsletter {
  padding: 30px 0;
  /* vertical spacing around the section */
}

/* Card wrapper: white panel with subtle border and shadow */
.nl-card {
  background: #ffffff;
  /* white card */
  border: 1px solid #e9eef6;
  /* subtle border to match site cards */
  border-radius: 16px;
  /* rounded corners */
  box-shadow: 0 6px 24px rgba(16, 24, 40, 0.06);
  /* soft shadow */
  padding: 28px;
  /* inner spacing */
  display: grid;
  /* grid for content + form */
  grid-template-columns: 1.2fr 1fr;
  /* more space for copy */
  gap: 24px;
}

@media (max-width: 992px) {
  .nl-card {
    grid-template-columns: 1fr;
    /* stack on tablet/mobile */
  }
}

/* Copy block */
.nl-title {
  font-size: 26px;
  font-weight: 800;
  color: #101828;
  /* dark heading */
  margin: 0 0 8px;
}

.nl-text {
  margin: 0;
  color: #475467;
  /* muted paragraph */
  font-size: 15px;
  line-height: 1.6;
}

/* Form layout */
.nl-form {
  display: grid;
  align-content: center;
  /* vertically center within card */
}

/* Inline fields wrapper (EmailId + button side by side) */
.nl-fields {
  display: grid;
  grid-template-columns: 1fr auto;
  /* input grows, button auto width */
  gap: 10px;
}

/* EmailId input styling */
.nl-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-size: 15px;
  color: #101828;
  background: #ffffff;
  border: 1px solid #d0d7e2;
  /* light border */
  border-radius: 12px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

/* Focus Location for accessibility */
.nl-input:focus {
  border-color: #3b82f6;
  /* primary blue */
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
  /* focus ring */
}

/* Submit button styling */
.nl-btn {
  height: 46px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  background: #3b82f6;
  /* primary blue */
  border: 1px solid #3b82f6;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 6px 16px rgba(59, 130, 246, .25);
  /* soft glow */
}

/* Hover/active Locations */
.nl-btn:hover {
  background: #2f76ef;
  /* slightly darker on hover */
  box-shadow: 0 10px 22px rgba(59, 130, 246, .28);
  transform: translateY(-1px);
}

.nl-btn:active {
  transform: translateY(0);
}

/* Small privacy note */
.nl-note {
  margin: 8px 2px 0;
  font-size: 13px;
  color: #667085;
}

/* Honeypot field (anti-bot) kept accessible for screen readers) */
.nl-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =========================================
Simple Blog Detail Page
- Clean, minimal structure
- No styling for .container (you already have it)
========================================= */

/* ---- Header: title + meta ---- */
.bdp-header {
  padding: 28px 0 10px;
  /* compact top spacing */
}

.bdp-title {
  margin: 0 0 10px;
  font-size: 32px;
  /* simple, readable title size */
  line-height: 1.2;
  font-weight: 800;
  color: #101828;
  /* dark heading */
}

/* Meta: avatar + small text line */
.bdp-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bdp-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  /* circular avatar */
  object-fit: cover;
}

.bdp-meta-text {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #667085;
  /* muted meta text */
  font-size: 14px;
}

.bdp-author {
  font-weight: 700;
  color: #344054;
}

.bdp-dot {
  opacity: 0.6;
}

/* ---- Cover image ---- */
.bdp-cover {
  padding: 6px 0 18px;
}

.bdp-figure {
  margin: 0;
  border-radius: 12px;
  /* soft corner radius */
  overflow: hidden;
  border: 1px solid #e9eef6;
  /* subtle outline */
  box-shadow: 0 4px 14px rgba(16, 24, 40, .06);
  /* soft shadow */
  display: inline-block;
  /* shrink wrap to image size */
}

.bdp-figure img {
  display: block;
  height: auto;
  width: auto;
  /* keep original image width */
  max-width: 100%;
  /* prevent overflow on small screens */
  object-fit: contain;
  /* show full image without cropping */
}

/* ---- Article body ---- */
.bdp-body {
  padding: 6px 0 26px;
}

.bdp-article {
  max-width: 900px;
  /* readable line length */
  color: #1a1a1a;
  font-size: 16px;
  line-height: 1.75;
}

.bdp-lead {
  font-size: 18px;
  color: #475467;
  margin: 0 0 12px;
  line-height: 1.8;
}

.bdp-article h2 {
  font-size: 24px;
  margin: 20px 0 8px;
  color: #101828;
  font-weight: 800;
}

.bdp-article p {
  margin: 0 0 12px;
  color: #344054;
}

.bdp-article ul {
  padding-left: 20px;
  margin: 8px 0 12px;
}

.bdp-article li {
  margin: 6px 0;
}

/* ---- Bottom row: tags + share ---- */
.bdp-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* tags left, share right */
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #e9eef6;
  /* divider */
  margin-top: 10px;
  flex-wrap: wrap;
  /* wrap on small screens */
}

/* Tag pills */
.bdp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bdp-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  /* pill shape */
  background: #fff;
  color: #3b82f6;
  /* primary blue text */
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
}

.bdp-tag:hover {
  background: #eff6ff;
}

/* Share links */
.bdp-share {
  display: flex;
  gap: 10px;
}

.bdp-share-link {
  font-size: 14px;
  font-weight: 700;
  color: #3b82f6;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: background .2s ease, border-color .2s ease;
}

.bdp-share-link:hover {
  background: #eff6ff;
  border-color: #3b82f6;
}

/* ---- Prev/Next nav (optional) ---- */
.bdp-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.bdp-nav-link {
  color: #3b82f6;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: background .2s ease, border-color .2s ease;
}

.bdp-nav-link:hover {
  background: #eff6ff;
  border-color: #3b82f6;
}

/* ---- Small screen tweaks ---- */
@media (max-width: 640px) {
  .bdp-title {
    font-size: 26px;
  }

  .bdp-article {
    font-size: 15px;
  }

  .bdp-article h2 {
    font-size: 22px;
  }
}