/* CASA Branding Custom Overrides */

:root {
  /* Color Palette */
  --casa-midnight-blue: #1B3A57;
  --casa-cool-sky: #BAD9DE;
  --casa-emerald-green: #207567;
  --casa-warm-gold: #D4A373;
  --casa-soft-beige: #F5F3F0;

  /* Text Colors - Improved Contrast */
  --casa-text-dark: #1B3A57;
  /* Same as midnight blue */
  --casa-text-body: #334155;
  /* Darker slate for better readability */
  --casa-text-muted: #475569;
  /* Slightly lighter but still readable */

  /* Fonts */
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Playfair Display', serif;
}

/* General Overrides */
body {
  font-family: var(--font-primary);
  color: var(--casa-text-body);
  background-color: var(--casa-soft-beige);
  font-size: 1.05rem;
  /* Increased base font size */
  line-height: 1.7;
  /* Increased line height */
}

/* Typography Utilities */
.text-balance {
  text-wrap: balance;
}

h1,
h2,
h3,
h4,
h5,
h6,
.sitename,
.logo h1 {
  font-family: var(--font-secondary);
  color: var(--casa-midnight-blue);
  line-height: 1.3;
}

a {
  color: var(--casa-emerald-green);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: var(--casa-warm-gold);
}

/* Header & Nav */
.header {
  background-color: #fff;
  /* Keeping header white for contrast, or could be soft beige */
}

/* Desktop Navigation Styles (1200px+) */
@media (min-width: 1200px) {
  .navmenu a {
    font-family: var(--font-primary);
    color: var(--casa-midnight-blue);
    transition: all 0.3s ease;
    border-radius: 50px;
    /* Rounded background */
    padding: 8px 20px;
    /* Adjust padding for pill shape */
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--casa-midnight-blue);
    /* Keep text dark for contrast on light bg */
    background-color: var(--casa-cool-sky);
    /* Light blue background on hover */
    transform: translateY(-2px);
    /* Slight lift animation */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* Soft shadow */
  }
}

/* Laptop Screen Adjustments (1200px - 1440px) */
@media (min-width: 1200px) and (max-width: 1440px) {
  .navmenu a {
    font-size: 14px;
    /* Slightly smaller text */
    padding: 8px 15px;
    /* Reduce padding */
  }

  .header .logo img {
    max-height: 50px;
    /* Adjust logo size if needed */
  }

  .btn-primary.hero-btn {
    font-size: 14px;
    padding: 8px 20px !important;
  }
}

/* Buttons */
.btn-primary,
.cta-btn.primary,
.discover-btn {
  background-color: var(--casa-emerald-green) !important;
  border-color: var(--casa-emerald-green) !important;
  color: #fff !important;
  font-family: var(--font-primary);
}

.btn-primary:hover,
.cta-btn.primary:hover,
.discover-btn:hover {
  background-color: var(--casa-midnight-blue) !important;
  border-color: var(--casa-midnight-blue) !important;
}

.btn-secondary,
.cta-btn.secondary {
  background-color: var(--casa-warm-gold) !important;
  border-color: var(--casa-warm-gold) !important;
  color: #fff !important;
  font-family: var(--font-primary);
}

.btn-secondary:hover,
.cta-btn.secondary:hover {
  background-color: var(--casa-midnight-blue) !important;
  border-color: var(--casa-midnight-blue) !important;
}

/* Sections */
.section-title h2 {
  color: var(--casa-midnight-blue);
}

.section-title p {
  color: var(--casa-emerald-green);
  /* Or midnight blue with opacity */
}

/* Hero Section */
.hero h1 {
  color: var(--casa-midnight-blue);
}

.hero p {
  color: var(--casa-midnight-blue);
}

/* Footer */
.footer {
  background-color: var(--casa-midnight-blue);
  color: #ffffff;
  padding: 60px 0 20px;
  font-family: var(--font-primary) !important;
}

.footer .footer-top {
  background-color: var(--casa-midnight-blue);
}

.footer .sitename {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-primary) !important;
}

.footer h4 {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-family: var(--font-primary) !important;
  text-transform: none;
}

.footer p,
.footer .footer-contact p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.5rem;
}

.footer .footer-contact strong {
  color: #ffffff;
}

.footer a {
  color: var(--casa-warm-gold);
  font-weight: 700;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #ffffff;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
}

.footer .footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.footer .social-links a:hover {
  background-color: var(--casa-warm-gold);
  color: #ffffff;
  transform: translateY(-3px);
}

.copyright {
  background-color: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.9);
  padding: 20px 0;
  margin-top: 40px;
}

.copyright .sitename {
  color: #ffffff;
}

.copyright a {
  color: var(--casa-warm-gold);
}

.copyright a:hover {
  color: var(--casa-cool-sky);
}

/* Feature Cards */
.feature-card {
  background-color: #fff;
}

.feature-icon {
  background-color: var(--casa-cool-sky);
  color: var(--casa-midnight-blue);
}

.feature-card.active .feature-icon {
  background-color: var(--casa-emerald-green);
  color: #fff;
}

/* Stats */
.metric-value {
  color: var(--casa-emerald-green);
  font-family: var(--font-secondary);
}

/* Badges */
.badge-accredited {
  background-color: var(--casa-warm-gold);
}

/* ========================================
   HERO SECTION REDESIGN
   ======================================== */

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(186, 217, 222, 0.4) 50%,
      rgba(212, 163, 115, 0.3) 100%);
}

/* Hero Text Styling */
.hero-headline {
  font-family: var(--font-secondary);
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--casa-midnight-blue);
}

.hero-subheadline {
  font-family: var(--font-primary);
  font-size: clamp(0.875rem, 2vw, 1.1rem);
  line-height: 1.7;
  color: var(--casa-midnight-blue);
  opacity: 0.9;
}

/* Hero Video */
.hero-video {
  min-height: 260px;
  /* Mobile Friendly Height */
}

@media (min-width: 992px) {
  .hero-video {
    min-height: 420px;
    /* Desktop Height */
  }
}

/* Hero Buttons */
.hero-btn {
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  border: 2px solid transparent;
}

.hero-btn.btn-primary {
  background-color: var(--casa-emerald-green) !important;
  color: white !important;
  border-color: var(--casa-emerald-green) !important;
}

.hero-btn.btn-primary:hover {
  background-color: var(--casa-midnight-blue) !important;
  border-color: var(--casa-midnight-blue) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(27, 58, 87, 0.3);
}

.hero-btn.btn-outline-secondary {
  background-color: white !important;
  color: var(--casa-midnight-blue) !important;
  border-color: var(--casa-midnight-blue) !important;
}

.hero-btn.btn-outline-secondary:hover {
  background-color: var(--casa-warm-gold) !important;
  color: white !important;
  border-color: var(--casa-warm-gold) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 163, 115, 0.3);
}

/* Video Card */
.video-montage-box {
  position: relative;
  transition: transform 0.3s ease;
}

.video-montage-box:hover {
  transform: translateY(-5px);
}

/* ========================================
   GRADUATE HERO & CARDS STYLES (Ported)
   ======================================== */

.grad-hero-headline {
  font-family: "Playfair Display", serif;
  color: var(--casa-midnight-blue);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  /* Fluid sizing for better balance */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: normal;
  /* Replaced balance with normal for more consistent wrapping across devices */
}

.grad-hero-subheadline {
  font-family: var(--font-primary);
  /* Sans-serif for cleaner contrast */
  color: var(--casa-emerald-green);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.grad-hero-description {
  color: var(--casa-midnight-blue);
  font-size: 1.15rem;
  line-height: 1.6;
  font-weight: 500;
  max-width: 90%;
  /* Improves readability length */
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.grad-hero-tagline {
  color: var(--casa-text-muted);
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.grad-hero-services {
  color: var(--casa-text-body);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 95%;
  /* Improves readability length */
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

@media (min-width: 992px) {

  .grad-hero-description,
  .grad-hero-services {
    margin-left: 0;
    margin-right: 0;
    text-wrap: pretty;
  }
}

.highlight-green {
  color: var(--casa-emerald-green) !important;
  display: inline-block;
  /* Helps keeps phrases together */
}

.grad-image-box {
  border: 1px solid rgba(27, 58, 87, 0.08);
  box-shadow: 0 20px 40px rgba(9, 30, 66, 0.08);
  border-radius: 20px;
}

/* Cards Section Styles */
.grad-cards-section {
  padding: 40px 0 80px;
  /* Adjusted padding */
}

.grad-info-card {
  background: #f0f7f5;
  /* Light Casa Green tint */
  border-radius: 24px;
  padding: 30px 25px;
  /* Reduced padding */
  border: 2px solid rgba(32, 117, 103, 0.2);
  box-shadow: 0 15px 45px rgba(9, 30, 66, 0.12);
  height: 100%;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.grad-info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(9, 30, 66, 0.18);
  border-color: var(--casa-emerald-green);
}

.grad-card-title {
  font-family: "Playfair Display", serif;
  color: var(--casa-midnight-blue);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--casa-emerald-green);
}

.grad-card-content {
  color: var(--casa-text-body);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.grad-card-content .text-center {
  margin-top: auto;
}

.grad-card-question {
  font-weight: 600;
  color: var(--casa-midnight-blue);
  font-size: 1.05rem;
  margin-bottom: 8px;
  text-wrap: balance;
  /* Prevents orphaned words */
  max-width: 100%;
  /* Slightly constrain width for better wrapping */
}

.grad-card-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 8px;
  color: var(--casa-text-body);
}

.grad-card-highlight {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--casa-midnight-blue);
  font-weight: 500;
  padding: 15px;
  background: rgba(255, 255, 255, 0.7);
  border-left: 4px solid var(--casa-emerald-green);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.grad-cta-btn {
  display: inline-block;
  background: var(--casa-emerald-green);
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(32, 117, 103, 0.25);
  text-align: center;
}

.grad-cta-btn:hover {
  background: var(--casa-midnight-blue);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(27, 58, 87, 0.3);
}

/* Responsive Styles for Grad Elements */
@media (max-width: 991px) {
  .grad-hero-headline {
    font-size: 2rem;
  }

  .grad-hero-subheadline {
    font-size: 1.5rem;
  }

  .grad-card-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .grad-hero-headline {
    font-size: 1.75rem;
  }

  .grad-hero-subheadline {
    font-size: 1.35rem;
  }

  .grad-info-card {
    padding: 25px 20px;
  }

  .grad-cta-btn {
    width: 100%;
    text-align: center;
  }
}

/* Headline Fix */
.grad-hero-headline {
  text-wrap: balance;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   UI/UX IMPROVEMENTS & UNIFICATION
   ======================================== */

/* 1. Unified Section Heading */
.section-heading {
  font-family: var(--font-secondary);
  color: var(--casa-midnight-blue);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
  text-wrap: normal;
}

@media (max-width: 768px) {
  .section-heading {
    font-size: 2rem;
  }
}

/* 2. Unified Primary Button (Replaces multiple button classes) */
.btn-casa-primary {
  display: inline-block;
  background: var(--casa-emerald-green) !important;
  color: #ffffff !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(32, 117, 103, 0.25);
  border: 2px solid var(--casa-emerald-green) !important;
  text-align: center;
  cursor: pointer;
}

.btn-casa-primary:hover {
  background: var(--casa-midnight-blue) !important;
  border-color: var(--casa-midnight-blue) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(27, 58, 87, 0.3);
}

/* 3. Ready Section Styles (Moved from inline) */
.ready-subtitle {
  color: var(--casa-emerald-green);
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

/* Step Buttons Container */
.step-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  justify-content: center;
  align-items: center;
  width: auto;
  margin-left: 0;
}

/* Secondary Button Style */
.btn-casa-secondary {
  background: var(--casa-emerald-green);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 12px rgba(32, 117, 103, 0.2);
}

.btn-casa-secondary:hover {
  background: var(--casa-midnight-blue);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(9, 30, 66, 0.3);
  text-decoration: none;
}

.ready-title {
  color: var(--casa-midnight-blue);
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.ready-step-icon {
  background: var(--casa-emerald-green);
  color: #fff;
  font-weight: 700;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

/* 4. Hero Padding Adjustment */
#hero .container.py-5 {
  padding-top: 80px !important;
  padding-bottom: 80px !important;
}

/* 5. How CASA Works - Step List Styles */
.casa-steps {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-grow: 1;
  gap: 12px;
}

.casa-step-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.step-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(32, 117, 103, 0.1);
  color: var(--casa-emerald-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--casa-midnight-blue);
  margin-bottom: 4px;
  font-family: var(--font-primary);
}

.step-content p {
  font-size: 0.95rem;
  color: var(--casa-text-body);
  margin-bottom: 0;
  line-height: 1.4;
}

/* Soften Global Shadows */
.casa-card,
.grad-info-card,
.journey-shell,
.casa-container {
  box-shadow: 0 10px 40px rgba(27, 58, 87, 0.08) !important;
  border: 1px solid rgba(27, 58, 87, 0.08) !important;
}

.casa-card:hover,
.grad-info-card:hover {
  box-shadow: 0 15px 50px rgba(27, 58, 87, 0.12) !important;
  transform: translateY(-4px);
}


/* Override to allow left alignment of hero headline on desktop - REMOVED */

/* ========================================
   NEW HERO REDESIGN (Split Layout)
   ======================================== */

.hero-split-wrapper {
  width: 100%;
  overflow: hidden;
  background-color: var(--casa-soft-beige);
}

.hero-row {
  --bs-gutter-x: 0;
  /* Remove gutter */
}

/* Left Panel (Green) */
.hero-green-panel {
  background-color: var(--casa-emerald-green);
  color: #fff;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px;
}

/* Right Panel (Media) */
.hero-media-panel {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  z-index: 1;
}

.hero-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* Curve Divider */
.hero-curve-divider {
  position: absolute;
  top: 0;
  left: -1px;
  /* Slight overlap to prevent gap */
  height: 100%;
  width: 15vw;
  /* Reduced from 30vw to 15vw to reveal more video */
  min-width: 100px;
  max-width: 200px;
  z-index: 3;
  pointer-events: none;
  color: var(--casa-emerald-green);
  /* Current color context */
}

.hero-curve-divider svg {
  height: 100%;
  width: 100%;
  display: block;
  fill: var(--casa-emerald-green);
  transform: scaleX(1.1);
}

/* Play Button */
.play-btn-wrapper {
  position: absolute;
  bottom: 8%;
  /* Near the bottom edge */
  left: 12vw;
  /* Adjust relative to curve width (15vw) */
  transform: translate(-50%, 0);
  z-index: 10;
}

@media (min-width: 992px) {
  .play-btn-wrapper {
    left: 8vw;
    /* Precise positioning for desktop near the curve tip */
  }
}

.btn-hero-play {
  width: 90px;
  height: 90px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--casa-emerald-green);
  font-size: 40px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.25);
  /* Stronger ring */
  transition: all 0.3s ease;
  padding-left: 6px;
}

.btn-hero-play:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 15px rgba(255, 255, 255, 0.3);
  color: var(--casa-midnight-blue);
}

/* Text Overrides for Green Panel */
.hero-green-panel .grad-hero-headline {
  color: var(--casa-soft-beige);
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

.hero-green-panel .grad-hero-subheadline {
  color: #ffffff;
  font-family: var(--font-secondary);
  font-style: italic;
  text-transform: none;
  font-size: 1.5rem;
  opacity: 1;
  text-align: left;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
  margin-left: 0;
}

.hero-green-panel .grad-hero-description,
.hero-green-panel .grad-hero-services,
.hero-green-panel p {
  color: var(--casa-soft-beige);
  text-align: left;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100%;
}

.hero-green-panel .highlight-green {
  color: var(--casa-warm-gold) !important;
  /* Brand Accent for key words */
}

.hero-green-panel strong {
  font-weight: 600;
  color: var(--casa-soft-beige);
}

/* Specific styling for 'one-stop concierge' matching image */
.hero-green-panel .concierge-text {
  font-family: var(--font-secondary);
  font-style: italic;
  font-size: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  display: block;
  font-weight: 400;
  color: var(--casa-soft-beige);
  text-align: left;
}

/* Responsive adjustments */
/* Laptop Screen Adjustments (1200px - 1440px) - Ensure consistent text wrapping */
@media (min-width: 992px) and (max-width: 1440px) {
  .hero-green-panel {
    padding: 60px 40px;
  }

  .hero-green-panel .grad-hero-headline {
    font-size: 2.3rem;
    /* Fixed size for better laptop consistency */
    line-height: 1.2;
    word-spacing: 0.02em;
  }

  .hero-green-panel .grad-hero-subheadline {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-green-panel .grad-hero-description {
    font-size: 1.05rem;
    line-height: 1.65;
  }

  .hero-green-panel .concierge-text {
    font-size: 1.3rem;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .hero-green-panel .grad-hero-services {
    font-size: 0.95rem;
    line-height: 1.65;
  }
}

/* Tablet and Mobile Responsive adjustments */
@media (max-width: 991px) {
  .hero-curve-divider {
    display: none;
    /* Hide curve on mobile/tablet vertical layout */
  }

  .hero-green-panel {
    padding: 50px 20px;
    text-align: left;
    /* Keep left aligned as requested */
  }

  .hero-green-panel .grad-hero-headline,
  .hero-green-panel .grad-hero-subheadline,
  .hero-green-panel .grad-hero-description,
  .hero-green-panel .grad-hero-services,
  .hero-green-panel .concierge-text {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-media-panel {
    min-height: 400px;
    /* Increased height for better video visibility on mobile */
  }

  .play-btn-wrapper {
    top: 50%;
    left: 50%;
    bottom: auto;
    /* Reset bottom */
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 576px) {
  .hero-media-panel {
    min-height: 300px;
    /* Slightly smaller on very small screens */
  }

  .btn-hero-play {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
}


/* ========================================
   ABOUT PAGE STYLES (Moved from about.php)
   ======================================== */
/* Utility Classes used in About Page */
.text-casa-blue {
  color: var(--casa-midnight-blue);
}

.text-casa-green {
  color: var(--casa-emerald-green);
}

.bg-casa-green {
  background-color: var(--casa-emerald-green) !important;
}

.bg-casa-green-light {
  background-color: rgba(32, 117, 103, 0.1);
}

.highlight-green {
  color: var(--casa-emerald-green);
}

.border-casa-green {
  border-color: var(--casa-emerald-green) !important;
}

/* Hero */
.about-hero-section {
  padding: 120px 0 80px;
  background: radial-gradient(circle at top right, rgba(186, 217, 222, 0.4), transparent 50%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 1), transparent 50%);
  background-color: #fdfdfd;
}

/* Cards */
.casa-disconnect-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #ffffff;
  border-radius: 20px;
  padding: 30px 25px;
  box-shadow: 0 10px 30px rgba(9, 30, 66, 0.05);
  height: 100%;
}

.casa-disconnect-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(9, 30, 66, 0.12) !important;
  border-color: rgba(32, 117, 103, 0.3);
}

.casa-feature-card {
  transition: all 0.3s ease;
  background: #ffffff;
  border-radius: 20px;
  padding: 30px 25px;
  border: 1px solid rgba(27, 58, 87, 0.12);
  box-shadow: 0 10px 30px rgba(9, 30, 66, 0.05);
  height: 100%;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.transition-all {
  transition: all 0.3s ease;
}

.casa-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(9, 30, 66, 0.12);
  border-color: rgba(32, 117, 103, 0.3);
}

@media (max-width: 768px) {
  .about-hero-section {
    padding: 60px 0;
  }
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(32, 117, 103, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--casa-emerald-green);
  transition: all 0.3s ease;
  margin: 0 auto 1.5rem;
}

.casa-feature-card:hover .icon-wrapper,
.casa-disconnect-card:hover .icon-wrapper {
  background: var(--casa-emerald-green);
  color: #ffffff;
}

.journey-img-wrapper {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 5px solid rgba(32, 117, 103, 0.2);
  /* Soft Emerald Ring */
  box-shadow: 0 0 0 2px var(--casa-emerald-green);
  /* Outer thin ring */
  transition: all 0.3s ease;
}

.casa-feature-card:hover .journey-img-wrapper {
  border-color: transparent;
  box-shadow: 0 0 0 4px var(--casa-emerald-green);
}

/* USA Map Background */
#graduate-journey {
  position: relative;
  background: var(--casa-soft-beige);
  padding-top: 90px;
  padding-bottom: 90px;
  overflow: hidden;
}

#graduate-journey::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  background-image: url("assets/img/us-map.png");
  /* ← Update your correct path */
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.07;
  /* soft subtle watermark style */
  pointer-events: none;
  z-index: 0;
}

/* keep content above map */
#graduate-journey .container,
#graduate-journey .journey-shell {
  position: relative;
  z-index: 2;
}


#graduate-journey {
  background: var(--casa-soft-beige);
  padding-top: 70px;
  padding-bottom: 70px;
}



#graduate-journey .section-title p {
  color: var(--casa-emerald-green);
  font-size: 1.25rem;
  /* Increased from 18px */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Shell card */
.journey-shell {
  border-radius: 28px;
  background: #ffffff;
  padding: 28px 20px 30px;
  border: 1px solid rgba(27, 58, 87, 0.12);
}

/* Progress bar (desktop) */
.journey-progress {
  position: relative;
  height: 6px;
  margin: 0 6% 12px;
}

.journey-progress-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(186, 217, 222, 0.6);
  /* cool sky tint */
}

.journey-progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  /* controlled via JS */
  border-radius: 999px;
  background: linear-gradient(90deg,
      var(--casa-emerald-green),
      var(--casa-warm-gold));
  transition: width 0.4s ease;
}

/* Steps */
.journey-step {
  border-radius: 20px;
  padding: 24px 20px;
  /* Increased padding */
  background: #ffffff;
  border: 1px solid transparent;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* Increased gap */
  align-items: center;
  /* center icon + text horizontally */
  text-align: center;
  /* center all text */
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease;
}

.journey-step h3 {
  font-size: 1.35rem;
  /* Increased size */
  font-weight: 700;
  color: var(--casa-midnight-blue);
  text-align: center;
  margin-bottom: 0.5rem;
}

.journey-step p {
  font-size: 1rem;
  /* Increased size */
  line-height: 1.6;
  color: var(--casa-midnight-blue);
  margin-bottom: 0;
  text-align: center;
}

/* Icon */
.journey-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(186, 217, 222, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--casa-midnight-blue);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

/* Hover + active state */
.journey-step:hover,
.journey-step.is-active {
  background: var(--casa-soft-beige);
  border-color: rgba(32, 117, 103, 0.25);
  /* emerald border */
  box-shadow: 0 16px 35px rgba(9, 30, 66, 0.12);
  transform: translateY(-4px);
}

.journey-step:hover .journey-icon,
.journey-step.is-active .journey-icon {
  background: var(--casa-emerald-green);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Membership text */
.journey-membership {
  text-align: center;
  font-size: 0.93rem;
  color: var(--casa-midnight-blue);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Pills */
.journey-pill {
  background: var(--casa-midnight-blue);
  color: #ffffff;
  padding: 13px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 10px 24px rgba(9, 30, 66, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.journey-pill:last-child {
  background: var(--casa-emerald-green);
}

.journey-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(9, 30, 66, 0.25);
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
  .journey-shell {
    border-radius: 20px;
    padding: 22px 16px 24px;
  }

  .journey-step {
    box-shadow: none;
    transform: none;
  }

  .journey-step+.journey-step {
    margin-top: 6px;
  }

  .journey-progress {
    display: none;
    /* hide top bar on small screens if you want */
  }
}

#casa-works {
  /* padding: 80px 0; */
  background: var(--casa-soft-beige);
}

.casa-container {
  background: #ffffff;
  border-radius: 28px;
  padding: 20px 30px 30px;
  border: 1px solid rgba(27, 58, 87, 0.12);
  box-shadow: 0 16px 45px rgba(9, 30, 66, 0.10);
}

/* Note: .casa-title is replaced by .section-heading but keeping for safety if used elsewhere */
.casa-title {
  font-family: "Playfair Display", serif;
  color: var(--casa-midnight-blue);
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
}

.casa-subtext {
  max-width: 900px;
  margin: 10px auto 25px;
  color: #4f5d6b;
  font-size: 1.05rem;
  line-height: 1.75;
  text-align: center;
  text-wrap: balance;
}

/* Two columns */
.casa-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 20px 20px;
  border: 1px solid rgba(27, 58, 87, 0.15);
  transition: 0.25s ease;
  height: 100%;
}

.casa-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(9, 30, 66, 0.15);
}

.casa-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(32, 117, 103, 0.15);
  color: var(--casa-emerald-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.casa-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin-bottom: 20px !important;
}

.casa-card-header .casa-icon {
  margin-bottom: 0;
}

.casa-card-title {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--casa-midnight-blue);
  font-weight: 600;
  margin-bottom: 0;
  text-align: left;
}

.casa-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.casa-list li {
  margin-bottom: 14px;
  line-height: 1.6;
  color: #4f5d6b;
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
}

.casa-list li strong {
  color: var(--casa-emerald-green) !important;
  font-weight: 600;
}

.casa-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--casa-emerald-green);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 9px;
}

.casa-footnote {
  margin-top: 24px;
  text-align: center;
  font-size: 0.9rem;
  color: #4f5d6b;
}

/* Banner CTA */
.casa-cta-box {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(32, 117, 103, 0.25);
  padding: 20px 24px;
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(32, 117, 103, 0.12);
  overflow: visible !important;
  text-align: center;
}

.casa-cta-header {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}

.casa-cta-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(32, 117, 103, 0.15);
  color: var(--casa-emerald-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.casa-cta-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--casa-midnight-blue);
  margin-bottom: 0;
}

.casa-cta-desc {
  margin: 0;
  color: #4f5d6b;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 1100px;
}

/* Note: .casa-cta-btn is replaced by .btn-casa-primary but keeping for safety if used elsewhere */
.casa-cta-btn {
  margin-left: auto;
  background: var(--casa-emerald-green);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  text-decoration: none;
  transition: 0.25s ease;
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  /* allow text to wrap */
  text-align: center;
  padding: 14px 24px;
}

.casa-cta-btn:hover {
  background: var(--casa-midnight-blue);
}

/* RESPONSIVE STYLES for CASA Works Section */

/* Base Section Styles */
#casa-works {
  padding: 60px 0;
}

.casa-container {
  background: #ffffff;
  border-radius: 24px;
  padding: 35px 40px 50px;
  box-shadow: 0 10px 40px rgba(27, 58, 87, 0.08);
  border: 1px solid rgba(27, 58, 87, 0.08);
}

.casa-subtext {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--casa-text-body);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   TABLET BREAKPOINT (768px - 991px)
   ======================================== */
@media (max-width: 991px) {
  #casa-works {
    padding: 50px 0;
  }

  .casa-container {
    padding: 40px 30px;
  }

  .section-heading {
    font-size: 2rem;
  }

  .casa-subtext {
    font-size: 1rem;
  }

  .casa-card {
    padding: 24px 20px;
  }

  .casa-card-title {
    font-size: 1.35rem;
  }

  .step-content h4 {
    font-size: 1rem;
  }

  .step-content p {
    font-size: 0.9rem;
  }

  .casa-membership-box {
    padding: 24px 20px;
  }

  .membership-price {
    font-size: 2.5rem;
  }

  .membership-label {
    font-size: 1rem;
  }

  .membership-desc {
    font-size: 0.9rem;
  }
}

/* ========================================
   MOBILE BREAKPOINT (576px - 767px)
   ======================================== */
@media (max-width: 767px) {
  #casa-works {
    padding: 40px 0;
  }

  .casa-container {
    padding: 30px 20px;
    border-radius: 20px;
  }

  .section-heading {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .casa-subtext {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .casa-card {
    padding: 20px 16px;
  }

  .casa-icon {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }

  .casa-card-header {
    gap: 12px;
  }

  .casa-card-title {
    font-size: 1.25rem;
  }

  .casa-title {
    font-size: 1.75rem;
  }

  .step-icon-wrapper {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .step-content h4 {
    font-size: 0.95rem;
  }

  .step-content p {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  /* Ensure CTA box stacks nicely on mobile */
  .casa-cta-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    border-radius: 16px;
  }

  .casa-cta-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .casa-cta-title {
    margin-bottom: 8px;
    font-size: 1.1rem;
  }

  .casa-cta-desc {
    font-size: 0.875rem;
  }

  .casa-cta-btn {
    width: auto;
    min-width: 200px;
    margin-left: 0 !important;
    padding: 12px 24px;
    text-align: center;
    margin-top: 10px;
  }

  /* Mobile responsive styles for step buttons */
  .step-buttons {
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-left: 0;
  }

  .btn-casa-primary {
    width: 100%;
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .btn-casa-secondary {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
  }

  /* Membership Box Mobile */
  .casa-membership-box {
    padding: 20px 16px;
  }

  .membership-price {
    font-size: 2.25rem;
  }

  .membership-label {
    font-size: 0.95rem;
  }

  .membership-desc {
    font-size: 0.875rem;
  }
}

/* ========================================
   SMALL MOBILE BREAKPOINT (< 576px)
   ======================================== */
@media (max-width: 575px) {
  #casa-works {
    padding: 30px 0;
  }

  .casa-container {
    padding: 24px 16px;
    border-radius: 16px;
  }

  .section-heading {
    font-size: 1.5rem;
  }

  .casa-subtext {
    font-size: 0.9rem;
  }

  .casa-card {
    padding: 18px 14px;
  }

  .casa-icon {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }

  .casa-card-title {
    font-size: 1.15rem;
  }

  .step-icon-wrapper {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .step-content h4 {
    font-size: 0.9rem;
  }

  .step-content p {
    font-size: 0.85rem;
  }

  .btn-casa-primary {
    padding: 9px 18px;
    font-size: 0.875rem;
  }

  .membership-price {
    font-size: 2rem;
  }

  .membership-label {
    font-size: 0.9rem;
  }

  .casa-cta-title {
    font-size: 1rem;
  }

  .casa-cta-icon {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }
}

/* ========================================
   TOUCH DEVICE OPTIMIZATIONS
   ======================================== */
@media (hover: none) and (pointer: coarse) {

  /* Larger tap targets for mobile */
  .btn-casa-primary {
    min-height: 44px;
    padding: 12px 24px;
  }

  .step-buttons {
    gap: 12px;
  }
}

/* ========================================
   LANDSCAPE MOBILE OPTIMIZATION
   ======================================== */
@media (max-width: 767px) and (orientation: landscape) {
  #casa-works {
    padding: 30px 0;
  }

  .casa-container {
    padding: 25px 20px;
  }

  .section-heading {
    font-size: 1.65rem;
  }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */
@media (prefers-reduced-motion: reduce) {

  .casa-card,
  .casa-membership-box,
  .btn-casa-primary,
  .step-icon-wrapper {
    transition: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .casa-card {
    border: 2px solid var(--casa-midnight-blue);
  }

  .btn-casa-primary {
    border-width: 3px;
  }
}

/* ========================================
   SHARED & PARTNER PAGE STYLES
   (Consolidated from about, institutions, lifestyle, service)
   ======================================== */

/* --- Hero Sections --- */
.about-hero-section,
.inst-hero-section {
  padding: 120px 0 80px;
  background: radial-gradient(circle at top right, rgba(186, 217, 222, 0.4), transparent 50%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 1), transparent 50%);
  background-color: #fdfdfd;
}

@media (max-width: 768px) {

  .about-hero-section,
  .inst-hero-section {
    padding: 60px 0;
  }
}

/* --- Shared Card Styles --- */
.casa-feature-card,
.casa-disconnect-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px 25px;
  border: 1px solid rgba(27, 58, 87, 0.12);
  box-shadow: 0 10px 30px rgba(9, 30, 66, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  overflow: hidden;
  /* Added for cleaner hover effects */
}

.casa-feature-card p,
.casa-disconnect-card .card-text {
  font-weight: 600;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.casa-feature-card:hover,
.casa-disconnect-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(9, 30, 66, 0.12);
  border-color: rgba(32, 117, 103, 0.3);
}

/* --- Icon Wrappers --- */
.icon-wrapper,
.card-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(32, 117, 103, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--casa-emerald-green);
  transition: all 0.3s ease;
  margin: 0 auto 1.5rem;
  /* Centered by default */
}

/* Flex variant for disconnect card left-aligned icons */
.casa-disconnect-card .card-icon-wrapper {
  margin: 0;
  /* Override auto margin */
}

.casa-feature-card:hover .icon-wrapper,
.casa-feature-card:hover .card-icon-wrapper,
.casa-disconnect-card:hover .icon-wrapper,
.casa-disconnect-card:hover .card-icon-wrapper {
  background: var(--casa-emerald-green);
  color: #ffffff;
}

/* --- Typography Utility Overrides --- */
.text-casa-blue {
  color: var(--casa-midnight-blue);
}

.text-casa-green {
  color: var(--casa-emerald-green);
}

.text-casa-dark {
  color: #4f5d6b;
}

.bg-casa-green {
  background-color: var(--casa-emerald-green) !important;
}

.bg-casa-green-light {
  background-color: rgba(32, 117, 103, 0.1);
}

.highlight-green {
  color: var(--casa-emerald-green);
}

.border-casa-green {
  border-color: var(--casa-emerald-green) !important;
}

/* --- About Page Specifics --- */
.journey-img-wrapper {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 5px solid rgba(32, 117, 103, 0.2);
  /* Soft Emerald Ring */
  box-shadow: 0 0 0 2px var(--casa-emerald-green);
  /* Outer thin ring */
  transition: all 0.3s ease;
}

.casa-feature-card:hover .journey-img-wrapper {
  border-color: transparent;
  box-shadow: 0 0 0 4px var(--casa-emerald-green);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.transition-all {
  transition: all 0.3s ease;
}


/* --- Institutions Page Specifics --- */
.disconnect-item {
  transition: transform 0.2s ease;
}

.disconnect-item:hover {
  transform: translateY(-2px);
}

.casa-disconnect-card .card-title {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--casa-midnight-blue);
  margin-bottom: 8px;
  line-height: 1.3;
}

.casa-disconnect-card .card-text {
  color: #4f5d6b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  font-weight: 600;
}

/* --- Resident Perks Partners Specifics --- */
.partners-swiper {
  padding: 20px 0 60px;
}

.partners-swiper .swiper-slide {
  height: auto;
}

.partner-category-card {
  position: relative;
  width: 100%;
  height: 450px;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.card-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.partner-category-card:hover .card-img {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(9, 30, 66, 0.98) 0%, rgba(9, 30, 66, 0.85) 50%, rgba(9, 30, 66, 0.4) 80%, transparent 100%);
  padding: 40px 30px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.card-overlay .icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #ffffff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.card-overlay h4 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 1.5rem;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.card-overlay p {
  margin: 0 auto;
  font-size: 1rem;
  opacity: 1;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  font-weight: 600;
  max-width: 500px;
  line-height: 1.4;
}

/* Swiper Pagination */
.partners-swiper .swiper-pagination-bullet {
  background: var(--casa-emerald-green);
  opacity: 0.5;
  width: 12px;
  height: 12px;
}

.partners-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--casa-emerald-green);
}

/* --- Service Providers Specifics --- */
.service-category-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.service-category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.service-img {
  transition: transform 0.5s ease;
}

.service-category-card:hover .service-img {
  transform: scale(1.05);
}

.service-content {
  position: relative;
}

.service-list {
  list-style: none;
  padding-left: 0;
  font-size: 1rem;
}

.service-list li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  color: var(--casa-midnight-blue);
  font-weight: 400;
}

.service-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--casa-emerald-green);
  font-weight: bold;
  font-size: 1.1em;
}

.purpose-card {
  transition: transform 0.3s ease;
  background-color: var(--casa-soft-beige);
}

.purpose-card .lead {
  color: var(--casa-midnight-blue);
  font-weight: 500;
}

.purpose-card:hover {
  transform: scale(1.02);
}

/* ========================================
   FAQ PAGE STYLES
   ======================================== */

/* FAQ Hero */
.faq-hero-section {
  padding: 100px 0 80px;
  background: radial-gradient(circle at top left, rgba(186, 217, 222, 0.4), transparent 50%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 1), transparent 50%);
  background-color: #fdfdfd;
}

/* FAQ Search */
.faq-search-wrapper .input-group {
  border: 1px solid rgba(0, 0, 0, 0.08);
  /* Subtle border */
  transition: all 0.3s ease;
}

.faq-search-wrapper .input-group:focus-within {
  box-shadow: 0 10px 30px rgba(32, 117, 103, 0.15) !important;
  border-color: rgba(32, 117, 103, 0.3);
  transform: translateY(-2px);
}

.faq-search-wrapper .input-group-text,
.faq-search-wrapper .form-control {
  background-color: #ffffff;
}

.faq-search-wrapper .form-control:focus {
  box-shadow: none;
}

/* Custom Accordion */
.custom-accordion .accordion-item {
  background: #ffffff;
  border: 1px solid rgba(27, 58, 87, 0.08);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.custom-accordion .accordion-item:hover {
  box-shadow: 0 10px 25px rgba(9, 30, 66, 0.08) !important;
  border-color: rgba(32, 117, 103, 0.2);
}

.custom-accordion .accordion-button {
  background: #ffffff;
  color: var(--casa-midnight-blue);
  padding: 24px 30px;
  font-size: 1.1rem;
  box-shadow: none !important;
  /* Remove bootstrap default focus shadow */
  border-radius: 0;
}

.custom-accordion .accordion-button:not(.collapsed) {
  background-color: rgba(186, 217, 222, 0.15);
  /* Very light teal/sky tint */
  color: var(--casa-emerald-green);
  font-weight: 700;
}

.custom-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23207567'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transition: transform 0.3s ease;
}


.custom-accordion .accordion-body {
  padding: 20px 35px 35px;
  /* Increased padding */
  font-size: 1.05rem;
  /* Larger text */
  line-height: 1.8;
  /* More breathing room */
  color: #374151;
  /* Darker, higher contrast text (Gray-700) */
  letter-spacing: 0.01em;
}

/* Category Title decoration */
.faq-category-title {
  position: relative;
  padding-left: 20px;
}

.faq-category-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 24px;
  background-color: var(--casa-emerald-green);
  border-radius: 4px;
}

/* ========================================
   TERMS OF SERVICE / LEGAL PAGE STYLES
   ======================================== */

.terms-hero-section {
  padding: 100px 0 80px;
  background: radial-gradient(circle at top left, rgba(186, 217, 222, 0.4), transparent 50%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 1), transparent 50%);
  background-color: #fdfdfd;
}

.terms-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #374151;
  /* Dark gray for readability */
}

.terms-content h3 {
  margin-top: 40px;
  margin-bottom: 20px;
  position: relative;
  padding-left: 15px;
}

/* Accent mark for legal headers */
.terms-content h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 70%;
  background-color: var(--casa-emerald-green);
  border-radius: 4px;
}

.terms-content p {
  margin-bottom: 20px;
}

/* --- Membership Box Styles --- */
.casa-membership-box {
  border: 1px solid rgba(32, 117, 103, 0.25);
  border-radius: 20px;
  padding: 24px 20px;
  background: #fff;
  margin-top: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.casa-membership-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(32, 117, 103, 0.15);
}

.membership-price {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--casa-midnight-blue);
  line-height: 1;
  font-family: var(--font-primary);
}

.membership-label {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  color: var(--casa-midnight-blue);
  margin-top: 12px;
  line-height: 1.3;
  font-weight: 700;
  text-transform: none;
}

.membership-desc {
  font-size: 0.95rem;
  color: #4f5d6b;
  line-height: 1.7;
  font-weight: 400;
}

@media (min-width: 768px) {
  .border-end-md {
    border-right: 1px solid rgba(0, 0, 0, 0.1);
  }
}

/* --- Institutions CTA Redesign --- */
.cta-box-institutions {
  border: 2px solid rgba(32, 117, 103, 0.25);

  border-radius: 40px;
  padding: 60px 50px;
  background: #ffffff;
  /* max-width: 1200px; */
  margin: 0 auto;
}

.cta-heading-line {
  position: relative;
  width: 100%;
  max-width: 300px;
  height: 1px;
  background: rgba(0, 0, 0, 0.2);
  margin: 25px 0;
}

.cta-heading-line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 6px;
  background: var(--casa-midnight-blue);
  border-radius: 10px;
}

.btn-casa-partnership {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--casa-emerald-green);
  color: #ffffff;
  padding: 12px 30px;
  min-height: 60px;
  /* Ensures consistent size for single vs double lines */
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

.btn-casa-partnership:hover {
  background-color: var(--casa-midnight-blue);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(32, 117, 103, 0.2);
}

.btn-casa-partnership .btn-top {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}

.btn-casa-partnership .btn-bottom {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.9;
}

@media (max-width: 991px) {
  .cta-box-institutions {
    padding: 40px 25px;
    border-radius: 30px;
  }

  .cta-heading-line {
    margin: 20px auto;
  }
}

/* ========================================
   PARTNER OVERVIEW PAGE STYLES
   ======================================== */
.partner-hero {
  padding: 80px 0 60px;
  background-color: var(--casa-soft-beige);
}

.partner-network-title {
  font-family: var(--font-secondary);
  color: var(--casa-midnight-blue);
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.partner-network-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--casa-midnight-blue);
  border-radius: 2px;
}

.partner-intro-text {
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: center;
  color: var(--casa-text-body);
  font-size: 1.1rem;
  line-height: 1.7;
  text-wrap: balance;
}

.partner-grid-card {
  position: relative;
  height: 520px;
  border-radius: 30px;
  overflow: hidden;
  border: 2px solid var(--casa-emerald-green);
  box-shadow: 0 12px 40px rgba(27, 58, 87, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-grid-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 50px rgba(27, 58, 87, 0.12);
}

.partner-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: transform 0.5s ease;
}

.partner-grid-card:hover .partner-card-bg {
  transform: scale(1.05);
}

.partner-card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  /* Lighter white overlay for better image visibility */
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(3px);
  /* Reduced blur */
  text-align: center;
}

.partner-card-content h3 {
  font-family: var(--font-secondary);
  color: var(--casa-midnight-blue);
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.partner-card-content p {
  color: var(--casa-midnight-blue);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 20px;
  font-weight: 600;
  max-width: 580px;
}

.partner-examples {
  font-style: italic;
  font-size: 0.88rem;
  color: var(--casa-text-body);
  margin-bottom: 25px !important;
  opacity: 1;
  font-weight: 700 !important;
  line-height: 1.4;
  max-width: 580px;
  /* Balanced to ensure exactly two lines of text on standard screens */
  margin-left: auto;
  margin-right: auto;
}

.btn-partner-explore {
  background: var(--casa-emerald-green);
  color: #fff !important;
  padding: 12px 40px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(32, 117, 103, 0.2);
}

.btn-partner-explore:hover {
  background: var(--casa-midnight-blue);
  transform: scale(1.05);
}

.partner-bottom-cta {
  margin-top: 60px;
  text-align: center;
}

.btn-contact-fit {
  background: var(--casa-emerald-green);
  color: #fff !important;
  padding: 15px 45px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(32, 117, 103, 0.2);
}

.btn-contact-fit:hover {
  background: var(--casa-midnight-blue);
  transform: translateY(-3px);
}

@media (max-width: 991px) {
  .partner-grid-card {
    height: 480px;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .partner-network-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 576px) {
  .partner-hero {
    padding: 60px 0 40px;
  }

  .partner-intro-text {
    font-size: 0.95rem;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .partner-grid-card {
    height: auto;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    border-width: 6px;
    border-radius: 24px;
    margin-bottom: 25px;
  }

  .partner-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 35px 20px;
    background: rgba(255, 255, 255, 0.75);
  }

  .partner-card-content h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
  }

  .partner-card-content p {
    font-size: 0.95rem;
    margin-bottom: 15px;
  }

  .partner-examples {
    font-size: 0.85rem;
    margin-bottom: 20px !important;
  }

  .btn-partner-explore {
    padding: 12px 35px;
    font-size: 0.95rem;
    width: 100%;
    max-width: 240px;
  }
}

/* ========================================
   COOKIE BANNER
   ======================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -10px 40px rgba(27, 58, 87, 0.1);
  z-index: 9999;
  padding: 1.25rem 0;
  display: none;
  /* Hidden by default, shown by JS */
  border-top: 2px solid var(--casa-cool-sky);
  /* Subtle brand touch */
}

.cookie-banner.show {
  display: block;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.cookie-text {
  font-family: var(--font-primary);
  font-size: 0.825rem;
  color: var(--casa-midnight-blue);
  margin-bottom: 0;
  line-height: 1.6;
  max-width: 65%;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-cookie {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 10px 22px;
  border-radius: 4px;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  background-color: var(--casa-midnight-blue);
  color: #ffffff;
  white-space: nowrap;
}

.btn-cookie:hover {
  background-color: var(--casa-emerald-green);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(32, 117, 103, 0.2);
}

.btn-cookie-accept {
  background-color: var(--casa-emerald-green);
}

.btn-cookie:active {
  transform: translateY(0);
}

@media (max-width: 991px) {
  .cookie-banner {
    padding: 1.5rem 0;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .cookie-text {
    max-width: 100%;
    font-size: 0.85rem;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .btn-cookie {
    flex: 1;
    min-width: 140px;
    font-size: 0.8rem;
  }
}

/* Shift scroll-top button when cookie banner is active */
.cookie-banner-active .scroll-top {
  bottom: 90px !important;
}

@media (max-width: 991px) {
  .cookie-banner-active .scroll-top {
    bottom: 240px !important;
    /* Higher on mobile due to taller banner */
  }
}