/* index-extra.css - moved from index.html inline styles to keep HTML clean and preserve responsiveness */
/* --- Responsive Spacing & Clean Layout Tweaks --- */

/* Keep the left column stacked and push the news card to the bottom */
/* Tighter spacing between timetable and reviews */
#class-timetable { padding-top: 2rem !important; padding-bottom: 1.25rem !important; }
#reviews-section { padding-top: 1.25rem !important; padding-bottom: 2rem !important; margin-top: 0 !important; }
@media (max-width: 767.98px) {
  #class-timetable { padding-top: 1rem !important; padding-bottom: .75rem !important; }
  #reviews-section { padding-top: .8rem !important; }
}
@media (min-width: 992px) {
  #class-timetable { padding-top: 2.5rem !important; }
}

/* Reserve space when a floating View more control is present */
.about-socials .card-body.has-view-more {
  padding-bottom: 3.2rem; /* make room for absolute-positioned control */
}

/* Ensure About tabs do not create internal scrollbars — allow panes to expand */
.about-tabs, .about-tabs .tab-content, .about-tabs .tab-pane {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}
.about-tabs .tab-pane .row {
  overflow: visible;
}

/* Reviews "View more" control */
.reviews-view-more { display: flex; justify-content: flex-end; margin-top: .75rem; }
.reviews-view-more a { font-weight: 700; color: var(--bs-primary); text-decoration: none; }
.reviews-view-more a:hover { text-decoration: underline; }
@media (max-width: 576px) { .reviews-view-more { justify-content: center; margin-top: .5rem; } }

/* Centered homepage hero (with side whitespace) */
.hero-banner {
  position: relative;
  display: flex;
  align-items: center; /* vertical center */
  justify-content: center; /* horizontal center */
  background-image: url('/img/carousel-images/WBi-new-banner1.webp');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 4rem 0;
  min-height: 360px;
  margin: 0 auto 1.5rem;
  max-width: 1140px;
  border-radius: 8px;
  overflow: hidden;
}
.hero-banner::before { content: ''; position:absolute; left:0; right:0; top:0; bottom:0; background: rgba(0,0,0,0.35); z-index:0; }
/* hide inline img when using CSS background for consistent sizing */
.hero-banner .hero-banner-img { display: none !important; }
.hero-banner .container, .hero-banner * { position: relative; z-index: 1; }
.hero-banner-content { position: relative; }
/* Move hero CTAs to the bottom of the hero banner */
.hero-cta {
  position: relative !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:1rem;
  padding-top:1rem;
  margin-top:1rem;
}

/* Ensure the hero content has extra bottom padding so text doesn't collide with CTAs */
.hero-banner-content .container { padding-bottom: 1rem; }

/* Slightly reduce bottom offset on very small screens */
@media (max-width: 576px) {
  .hero-cta { bottom: 0.45rem; gap: .5rem; }
  .hero-banner-content .container { padding-bottom: 0.8rem; }
}

/* Left-align hero text on desktop, center on small screens */
.hero-banner-content .container { max-width: 720px; margin: 0; text-align: center; }
/* Add vertical spacing so hero text sits lower and is visible under any header */
/* Small screens: moderate offset */
.hero-banner-content .container { padding-top: 8rem; }
/* Medium screens and up: larger offset */
@media (min-width: 768px) { .hero-banner-content .container { padding-top: 15rem; text-align: center; padding-left: 1rem; padding-right: 1rem; } }

/* Nudge the hero text slightly left on larger viewports to align with image focal point and add a big top offset */
@media (min-width: 992px) {
  .hero-banner-content .container { padding-top: 23rem; }
}

/* Hero CTA buttons */
/* Hero components removed — hide hero-cta area */
.hero-cta { display: none !important; }
/* Hero CTA area: show components in a single horizontal row under the hero text */
.hero-cta { position: relative !important; left: auto !important; bottom: auto !important; transform: none !important; display:flex; flex-direction:row; align-items:center; justify-content:center; gap:1.25rem; padding-top:1rem; margin-top:1rem; flex-wrap:wrap; }
.hero-cta .btn { min-width: 140px; padding: .6rem .9rem; border-radius: 8px; font-weight:700; box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.hero-cta .btn.btn-primary { background: var(--bs-primary); color: #fff; border: none; }
.hero-cta .btn.btn-light { background: #fff; color: #111; border: none; }
/* ensure features row centers and wraps cleanly */
.hero-features { gap:1.25rem; }
.hero-stats { gap:0.9rem; }
.hero-newsletter { gap:0.5rem; }
@media (max-width: 576px) {
  .hero-cta { padding-top: .5rem; gap:.5rem; }
  .hero-features { flex-wrap:wrap; gap:.5rem; }
  .hero-stats { flex-direction:column; align-items:center; }
  .hero-newsletter { flex-direction:column; align-items:center; }
  .hero-cta .btn { width:100%; max-width:320px; }
}

/* Keep existing styles for other components */
/* About section video thumbnail size adjustment */
.about-video-thumb {
  width: 100%;
  height: auto;
  max-width: 120px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s;
}
.about-video-thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.about-video-thumb.active {
  transform: scale(1.05);
}

/* Card and section title adjustments */
.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
h2.display-6 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
h5.text-primary {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* General link and button styles */
a {
  transition: color 0.3s, background-color 0.3s;
}
a.btn-primary {
  background-color: var(--bs-primary);
  color: #fff;
}
a.btn-primary:hover {
  background-color: var(--bs-primary-dark);
}
a.btn-light {
  background-color: #fff;
  color: #111;
}
a.btn-light:hover {
  background-color: #f8f9fa;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 576px) {
  h2.display-6 {
    font-size: 1.75rem;
  }
  h5 {
    font-size: 1rem;
  }
  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  .about-video-card-inner {
    padding: 1rem;
  }
}

/* Adjustments for larger screens */
@media (min-width: 992px) {
  .hero-banner {
    padding: 5rem 0;
  }
  .hero-cta {
    flex-direction: row;
    justify-content: flex-start;
    gap: 1.5rem;
  }
  .hero-cta .btn {
    min-width: 160px;
    padding: 0.8rem 1.2rem;
  }
  .hero-features {
    justify-content: flex-start;
  }
  .hero-stats {
    justify-content: flex-start;
  }
}

/* Timetable inline styles moved here */
.timetable-intro {
  font-size: 1.15rem;
}
.timetable-time {
  font-size: 1.1rem;
}
.timetable-title {
  font-size: 1.25rem;
}
.timetable-desc {
  font-size: 1rem;
}
.timetable-venue {
  font-size: 0.98rem;
}

/* index-extra.css - moved from index.html inline styles to keep HTML clean and preserve responsiveness */
/* --- Responsive Spacing & Clean Layout Tweaks --- */

/* Carousel caption box: tighter on mobile, more breathing room on desktop */
.carousel-caption .hero-caption-box {
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  margin-bottom: 0;
}

/* Force all carousel caption text (and children) to white for visibility */
.homepage-swiper .carousel-caption,
.homepage-swiper .carousel-caption *,
.homepage-swiper .carousel-caption h1,
.homepage-swiper .carousel-caption h5,
.homepage-swiper .carousel-caption a.btn {
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.45) !important;
}

/* Remove top padding and fix right side gap for mobile carousel */
@media (max-width: 600px) and (orientation: portrait) {
  html, body {
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  .container-fluid.p-0.mb-4 {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  /* Add a clear separator and extra padding between header and carousel for mobile portrait only */
  #header-placeholder {
    border-bottom: 2.5px solid #e0e0e0;
    box-shadow: 0 4px 12px -6px rgba(0,0,0,0.10);
    margin-bottom: 1.2rem;
    background: #fff;
    z-index: 100;
    position: relative;
  }
  .homepage-carousel {
    margin-top: 1.2rem !important;
    padding-top: 1.2rem !important;
  }
  /* Add extra padding above carousel for separation */
  .homepage-swiper {
    padding-top: 3.8rem !important;
    margin-top: .5rem !important;
  }
  /* Make carousel images fully visible and responsive on mobile portrait */
  .homepage-swiper .carousel-image-container {
    width: 100vw !important;
    height: auto !important;
    max-width: 100vw !important;
    min-height: 0 !important;
    display: block !important;
    background: #111;
    margin: 0 auto !important;
    overflow: hidden;
    border-radius: 0 !important;
  }
  .homepage-swiper .carousel-img-fade {
    width: 100vw !important;
    height: auto !important;
    max-width: 100vw !important;
    object-fit: contain !important;
    display: block !important;
    background: #111;
    position: relative;
    z-index: 1;
    border-radius: 0 !important;
  }
  .swiper-slide {
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
  }
  .swiper-wrapper {
    margin: 0 !important;
    box-sizing: border-box !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
  }
}

/* Ensure fade overlay is always visible above the carousel images */
.homepage-carousel {
  width: 100vw;
  max-width: 100vw;
  aspect-ratio: 21/9;
  min-height: 420px;
  height: auto;
  position: relative;
  overflow: hidden;
  background: #111;
}
.homepage-swiper-fade-overlay {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: auto;
  width: 100vw;
  height: 340px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0.12) 60%, rgba(0,0,0,0.0) 100%);
  z-index: 10;
  pointer-events: none;
  display: block;
}
  .homepage-swiper .carousel-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100%;
    background: #111;
    overflow: hidden;
  }
  .homepage-swiper .carousel-img-fade {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    background: #111;
    display: block;
    margin: auto;
  }
@media (min-width: 768px) {
  .homepage-swiper-fade-overlay {
    height: 480px;
  }
  .homepage-swiper .carousel-image-container {
    width: 100vw;
    height: 480px;
    max-width: 100vw;
    max-height: 480px;
  }
  .homepage-swiper .carousel-img-fade {
    width: 100vw;
    height: 480px;
    max-width: 100vw;
    max-height: 480px;
    object-fit: cover !important;
  }
}
@media (max-width: 991.98px) {
  .homepage-carousel,
  .homepage-swiper .carousel-image-container {
    min-height: 320px;
  }
}
@media (max-width: 600px) {
  .homepage-carousel,
  .homepage-swiper .carousel-image-container {
    min-height: 220px;
  }
}

/* Remove fade overlay and image for text-only carousel */
.homepage-swiper .carousel-caption-only-text h1,
.homepage-swiper .carousel-caption-only-text h5,
.homepage-swiper .carousel-caption-only-text a.btn {
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.45) !important;
}

.homepage-carousel {
  min-height: 420px;
  aspect-ratio: 21/9;
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
  background: #111;
  position: relative;
}
@media (max-width: 991.98px) {
  .homepage-carousel {
    min-height: 320px;
    aspect-ratio: 16/9;
  }
}
@media (max-width: 600px) {
  .homepage-carousel {
    min-height: 220px;
    aspect-ratio: 4/3;
  }
}

/* Hero Banner Styles */
.hero-banner {
  height: 320px;
  min-height: unset;
  max-height: 320px;
  width: 100vw;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-banner-img {
  height: 320px;
  min-height: unset;
  max-height: 320px;
  width: 100vw;
  object-fit: cover;
  object-position: center 50%; /* Balanced view of top and bottom */
  filter: brightness(0.7);
  display: block;
}
@media (max-width: 600px) {
  .hero-banner,
  .hero-banner-img {
    height: 180px;
    max-height: 180px;
  }
}
.hero-banner {
  position: relative;
  width: 100vw;
  min-height: 420px;
  max-width: 100vw;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-banner-img {
  width: 100vw;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center 50%; /* Balanced view of top and bottom */
  filter: brightness(0.7);
  display: block;
}
.hero-banner-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.05) 100%);
  z-index: 2;
}
.hero-banner-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  color: #fff;
  text-align: center;
  width: 90vw;
  max-width: 900px;
  padding: 2rem 1rem;
}
.hero-banner-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  text-shadow: 0 4px 18px rgba(0,0,0,0.85), 0 1px 0 #222;
  color: #fff !important;
  text-shadow: 0 4px 18px rgba(0,0,0,0.45), 0 1px 0 #222;
}
.hero-banner-content h5 {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 2rem;
  text-shadow: 0 4px 18px rgba(0,0,0,0.85), 0 1px 0 #222;
  color: #fff !important;
  text-shadow: 0 4px 18px rgba(0,0,0,0.45), 0 1px 0 #222;
}
@media (max-width: 991.98px) {
  .hero-banner {
    min-height: 320px;
  }
  .hero-banner-img {
    min-height: 320px;
  }
  .hero-banner-content h1 {
    font-size: 2rem;
  }
}
@media (max-width: 600px) {
  .hero-banner {
    min-height: 220px;
  }
  .hero-banner-img {
    min-height: 220px;
  }
  .hero-banner-content h1 {
    font-size: 1.2rem;
  }
  .hero-banner-content h5 {
    font-size: 1rem;
  }
  .hero-banner-content .btn {
    font-size: 1rem;
    padding: 0.5rem 1.2rem;
  }
}
.hero-banner .btn i.fa-solid {
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}
/* Ensure hero buttons retain pill appearance and centered content */
.hero-banner .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hero-banner .inline-shuttlecock {
  width: 1.05em;
  height: 1.05em;
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
}
.hero-banner .inline-shuttlecock.me-2 {
  margin-right: .5rem;
}

/* Review truncation helper */
.review-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 4.5em;
  position: relative;
}
.review-text.expanded {
  display: block;
  max-height: none;
  -webkit-line-clamp: unset;
  overflow: visible;
  text-overflow: unset;
}
.see-more {
  color: #007bff;
  cursor: pointer;
  font-size: 0.95em;
  margin-left: 8px;
  text-decoration: underline;
}

/* --- About video responsive tweaks (moved from inline <style>) --- */
@media (max-width: 991.98px) and (orientation: landscape) {
  .about-video-container {
    margin-bottom: 3rem !important;
  }
  #about-video-selector {
    margin-bottom: 2.2rem !important;
  }
  .about-text-section {
    margin-top: 2.2rem !important;
  }
  .about-text-col {
    margin-top: 0 !important; /* override previous large margins */
  }
}
/* Responsive About Us video full width and aspect ratio - always fills container */
.about-video-inner.ratio {
  width: 100% !important;
  max-width: 100vw;
  position: relative !important;
  overflow: hidden !important;
}
#about-main-video.video-player-item {
  position: absolute !important;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  background: #111 !important;
}
@media (min-width: 992px) {
  #video-player-container {
    max-width: 1100px !important;
  }
}

/* Use the jumpsmash-social.png as the icon for the hero "See Socials" button without changing HTML */
.hero-banner .btn.btn-light.btn-lg::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 28px;
  margin-right: .5rem;
  vertical-align: middle;
  background-image: url('../img/jumpsmash-social.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
/* If an inline <img> exists use that instead; ensure consistent sizing */
.hero-banner .btn-icon {
  width: 28px;
  height: 28px;
  vertical-align: middle;
}

/* Reduce excessive top spacing and padding for About column */
.about-text-col {
  margin-top: 0 !important; /* override previous large margins */
}
/* Make the dark rounded box more compact */
.about-text-col .rounded.bg-dark {
  padding: 1rem !important;
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
}
@media (min-width: 768px) {
  .about-text-col .rounded.bg-dark {
    padding: 1.5rem !important;
  }
}
/* Reduce vertical space inside tab panes */
.about-text-col .tab-content .tab-pane {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.about-text-col .tab-content .tab-pane p {
  margin-bottom: 0.6rem !important;
}
/* Tighten nav pills spacing inside the compact box */
.about-text-col .nav.nav-pills {
  margin-bottom: 0.5rem !important;
}

/* Hide Reviews link inside About nav (keeps HTML unchanged) */
.about-text-col .nav a[href="reviews.html"] {
  display: none !important;
}
/* Further compact the About box */
.about-text-col .rounded.bg-dark {
  padding: .5rem .8rem !important;
  min-height: 0 !important;
}
/* Smaller nav pills and spacing */
.about-text-col .nav.nav-pills {
  margin-bottom: .4rem !important;
}
.about-text-col .nav-link {
  padding: .3rem .6rem !important;
  font-size: .85rem !important;
}
/* Compact tab content */
.about-text-col .tab-content .tab-pane {
  padding-top: .25rem !important;
  padding-bottom: .25rem !important;
}
.about-text-col .tab-content .tab-pane p {
  margin-bottom: .4rem !important;
  font-size: .95rem !important;
}
/* Reduce About container bottom padding further */
.container-fluid.p-5:first-of-type {
  padding-top: 1.6rem !important;
  padding-bottom: .4rem !important;
}
/* Reduce gap around the video selector */
#about-video-selector { margin-top: .6rem !important; margin-bottom: .6rem !important; }
/* Ensure the About section has no extra bottom margin */
.container-fluid.p-5:first-of-type {
  margin-bottom: 0 !important;
}

/* Reduce bottom spacing specifically for the About section (first container-fluid.p-5) */
.container-fluid.p-5:first-of-type {
  padding-top: 2.5rem !important;
  padding-bottom: 1.25rem !important;
}
/* Tighten spacing inside the about text column */
.about-text-col {
  margin-bottom: 0 !important;
}
.about-text-col .about-text-section {
  margin-bottom: 0.75rem !important;
}
.about-text-col .rounded.bg-dark {
  padding-bottom: 0.9rem !important;
}
.about-text-col .tab-content .tab-pane p {
  margin-bottom: 0.5rem !important;
}
/* Ensure small screens still have enough breathing room */
@media (max-width: 767.98px) {
  .container-fluid.p-5:first-of-type {
    padding-bottom: 1rem !important;
  }
  .about-text-col .rounded.bg-dark {
    padding-bottom: 0.6rem !important;
  }
}

/* Extra compact mode for About section (stronger overrides) */
.container-fluid.p-5:first-of-type {
  padding-top: 0.8rem !important;
  padding-bottom: 0.15rem !important;
}
.about-text-col .rounded.bg-dark {
  padding: .3rem .5rem !important;
}
.about-text-col .nav-link {
  padding: .2rem .45rem !important;
  font-size: .8rem !important;
}
.about-text-col .tab-content .tab-pane {
  padding-top: .1rem !important;
  padding-bottom: .1rem !important;
}
.about-text-col .tab-content .tab-pane p {
  margin-bottom: .25rem !important;
  font-size: .9rem !important;
  line-height: 1.2 !important;
}
.about-text-col .about-text-section { margin-bottom: .45rem !important; }
#about-video-selector { margin-top: .3rem !important; margin-bottom: .3rem !important; }
/* Prevent left video column from forcing excessive height */
.about-video-container {
  max-height: none !important;
  overflow: visible !important;
}
/* Slightly reduce hero banner content padding so page feels tighter */
.hero-banner-content { padding: 1.2rem .8rem !important; }

/* Restore font sizes to site defaults and reset line-height */
.about-text-col .nav-link {
  font-size: 1rem !important;
}
.about-text-col .tab-content .tab-pane p {
  font-size: 1rem !important;
  line-height: 1.5 !important;
  margin-bottom: 0.5rem !important;
}

/* Reduce outer heights so the About block doesn't remain tall */
.about-video-container {
  max-height: none !important;
  overflow: visible !important;
}
/* Ensure the About row columns are top-aligned (prevent equal-height stretching) */
.container-fluid.p-5:first-of-type > .row {
  align-items: flex-start !important;
}

/* Prevent About box from stretching to match the video height */
.about-text-col,
.about-text-col .rounded.bg-dark {
  height: auto !important;
  min-height: 0 !important;
}
.about-text-col {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  align-self: flex-start !important;
  padding-bottom: 0 !important;
}
.about-text-col .rounded.bg-dark {
  align-self: flex-start !important;
  flex: 0 0 auto !important; /* do not grow to fill available height */
  padding-bottom: .6rem !important;
  display: block !important;
}
/* Ensure surrounding columns don't force equal heights */
.container-fluid.p-5:first-of-type > .row > [class*="col-"] {
  height: auto !important;
}

/* Final overrides: ensure About row columns don't stretch and tabs are equal-width & centered */
.container-fluid.p-5 > .row.gx-5 {
  align-items: flex-start !important;
  align-content: flex-start !important;
}
/* Ensure columns use natural height */
.container-fluid.p-5 > .row.gx-5 > [class*="col-"] {
  height: auto !important;
  min-height: 0 !important;
}
/* Prevent the dark box from growing to fill column */
.about-text-col .rounded.bg-dark {
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  flex: 0 0 auto !important;
}
/* Remove extra bottom padding that can create blank space */
.about-text-col { padding-bottom: 0 !important; }
/* Make nav pills equal width and centered on medium+ screens */
@media (min-width: 768px) {
  .about-text-col .nav.nav-pills {
    display: flex !important;
    justify-content: center !important; /* center the group */
  }
  .about-text-col .nav.nav-pills .nav-item {
    flex: 1 1 0 !important; /* equal widths */
    text-align: center !important;
  }
  .about-text-col .nav.nav-pills .nav-link {
    display: inline-block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}
/* On small screens keep normal stacked pills */
@media (max-width: 767.98px) {
  .about-text-col .nav.nav-pills .nav-item { flex: none !important; }
  .about-text-col .nav.nav-pills .nav-link { width: auto !important; }
}
/* Extra safeguard: collapse any unexpected tall empty space inside the dark box */
.about-text-col .rounded.bg-dark > .tab-content { overflow: hidden; }
/* Bottom-align About box to match WBi TV video height */
@media (min-width: 768px) {
  /* Let the row stretch to the tallest column (video) */
  .container-fluid.p-5 > .row.gx-5 {
    align-items: stretch !important;
  }
  /* Make the about text column a vertical flex container */
  .about-text-col {
    display: flex !important;
    flex-direction: column !important;
  }
  /* Push the dark info box to the bottom of the column */
  .about-text-col .rounded.bg-dark {
    margin-top: auto !important;
    /* ensure it doesn't grow */
    flex: 0 0 auto !important;
  }
}

/* Redesigned About Section Styles */
#about { background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%); }
.about-video-card { border: none; border-radius: .75rem; overflow: hidden; }
.about-video-card .about-video-card-inner { background: #000; }
.about-video-card video { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-video-meta { background: transparent; }
.thumb-img { width: 84px; height: 48px; object-fit: cover; border-radius: 4px; }
.about-content h2 { color: #111; }
.about-content .feature i { color: #ff5a2d; } /* accent color */
.stats-row .h3 { font-weight: 700; color: #111; }
.about-tabs .nav-pills .nav-link { border-radius: 9999px; padding: .45rem .85rem; }
.about-tabs .tab-content { background: #fff; border-radius: .5rem; }
.about-tabs .tab-pane p { margin: 0; }
.about-tabs { border-radius: .75rem; padding: .15rem; }
@media (min-width: 992px) {
  .about-content { padding-left: 1rem; }
  .thumb-img { width: 96px; height: 54px; }
}
@media (max-width: 767.98px) {
  .about-video-card { margin-bottom: 1rem; }
  .thumb-img { width: 64px; height: 40px; }
  .about-content h2 { font-size: 1.25rem; }
}

/* About section visual refinements: alignment, tab card, and pill styling */
.about-content { text-align: left !important; }
@media (max-width: 767.98px) {
  .about-content { text-align: center !important; }
}

/* Create a subtle card around the tabs to separate them from content */
.about-tabs {
  border: 1px solid rgba(20,20,20,0.06) !important;
  background: #fff !important;
  padding: .35rem !important;
  box-shadow: 0 6px 18px rgba(15,15,15,0.03) !important;
  border-radius: .75rem !important;
}

/* Tabs row: spacing and pill defaults */
.about-tabs .nav-pills {
  display: flex !important;
  gap: .5rem !important;
  padding: .5rem !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
}
.about-tabs .nav-pills .nav-link {
  background: transparent !important;
  color: #ff5a2d !important; /* brand accent */
  border: 1px solid rgba(0,0,0,0.04) !important;
  padding: .45rem .9rem !important;
  transition: all 160ms ease-in-out !important;
}
.about-tabs .nav-pills .nav-link:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 14px rgba(15,15,15,0.04) !important;
}
/* Active pill: filled with accent and clear border */
.about-tabs .nav-pills .nav-link.active {
  background: #ff5a2d !important;
  color: #fff !important;
  border-color: #ff5a2d !important;
  box-shadow: 0 8px 22px rgba(255,90,45,0.12) !important;
}

/* Tab content separation */
.about-tabs .tab-content {
  border-top: 1px solid rgba(0,0,0,0.06) !important;
  background: #fbfbfb !important;
  padding: 1rem !important;
  border-radius: 0 0 .5rem .5rem !important;
}
.about-tabs .tab-pane { text-align: left !important; }
.about-tabs .tab-pane p, .about-tabs .tab-pane ul { color: #6c757d !important; }

/* Slightly tighten spacing inside the card for compact look */
.about-tabs .nav-pills { margin-bottom: .5rem !important; }
/* Separator and spacing for about section left/right */
#about .row > .col-lg-5, #about .row > .col-lg-7 { position: relative; }
#about .col-lg-5 { padding-right: 2rem; }
#about .col-lg-7 { padding-left: 2rem; }
#about::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 2.2rem;
  bottom: 2.2rem;
  width: 1px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.06), rgba(0,0,0,0.02));
  transform: translateX(-50%);
  z-index: 1;
  display: block;
}
/* On smaller screens hide the vertical divider and reduce paddings */
@media (max-width: 991.98px) {
  #about::before { display: none; }
  #about .col-lg-5 { padding-right: .75rem; }
  #about .col-lg-7 { padding-left: .75rem; }
}

/* Style for moved announcements card */
.about-news .card { border-radius: .6rem; }
.about-news .card-body { padding: .8rem; }
.about-news .card-title { font-size: 1rem; }
/* Add vertical spacing between video selector and announcements */
.about-news { margin-top: 1.25rem !important; }
/* Make announcements stand out and increase gap from the video */
.about-video-card { margin-bottom: 0.25rem !important; }
.about-news { margin-top: 2.6rem !important; }
.about-news .card {
  border-left: 4px solid #ff5a2d !important; /* accent bar */
  box-shadow: 0 14px 36px rgba(15,15,15,0.06) !important;
  background: #fff !important;
}
.about-news .card-body { padding: 1rem !important; }
/* Keep the accent visible but less intrusive on small screens */
@media (max-width: 991.98px) {
  .about-news { margin-top: 1rem !important; }
  .about-news .card { border-left-width: 3px !important; }
}

/* Social follow card */
.social-card { border-left: 4px solid #0a66c2; }
.social-card .card-body { padding: .9rem !important; }
.social-card .social-embed { min-height: 120px; }
.social-card .js-load-facebook { min-width: 160px; }
@media (max-width: 767.98px) {
  .social-card .social-embed { min-height: 80px; }
  .social-card { margin-top: .6rem; }
}

/* Instagram widget iframe styles */
.insta-widget-iframe { width: 100%; height: 240px; border: none; overflow: hidden; border-radius: .5rem; }
@media (max-width: 767.98px) {
  .insta-widget-iframe { height: 160px; }
}

/* Static insta thumbnail grid styles */
.insta-grid { display: flex; gap: .5rem; }
.insta-grid a { flex: 1 1 0; overflow: hidden; display: block; }
.insta-grid img { width: 100%; height: 84px; object-fit: cover; display: block; }
@media (min-width: 768px) {
  .insta-grid img { height: 96px; }
}
@media (max-width: 575.98px) {
  .insta-grid img { height: 72px; }
}

/* Compact news-feed list styles inside About column */
.news-feed h6 { margin-bottom: .25rem; }
.news-items ul li a { color: #111; text-decoration: none; }
.news-items ul li a:hover { text-decoration: underline; }
.news-items .small { color: #6c757d; }
