/* ==========================================================================
   CSR PAGE (csr.html) SPECIFIC STYLES
   ========================================================================== */

/* Hero Banner */
.csr-banner-section {
  padding: 4.5rem 0 3.5rem;
  background: linear-gradient(
    180deg,
    var(--color-primary-dark) 0%,
    #4a0d1a 100%
  );
  position: relative;
  overflow: hidden;
}

.csr-banner-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% -20%,
    rgba(255, 207, 51, 0.15),
    transparent 70%
  );
  pointer-events: none;
}

.csr-banner-title {
  font-size: 2.8rem;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.csr-banner-subtitle {
  font-size: 1.15rem;
  color: var(--color-cream);
  opacity: 0.9;
}

/* Section 1: Intro Split Row */
.csr-split-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.csr-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 207, 51, 0.12);
  color: var(--color-gold);
  border: 1.5px solid var(--color-gold);
  padding: 5px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 1rem;
  box-shadow: 0 0 12px rgba(255, 207, 51, 0.2);
}

.csr-main-title {
  font-size: 2rem;
  color: var(--color-gold-light);
  line-height: 1.35;
  margin-bottom: 1.25rem;
}

.csr-lead-desc {
  font-size: 1.1rem;
  color: var(--color-cream);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.csr-body-desc {
  font-size: 0.98rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* Reusing glowing decorative frame styles for consistency */
.csr-img-frame {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  padding: 8px;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    rgba(255, 207, 51, 0.7) 0%,
    rgba(255, 42, 75, 0.4) 50%,
    rgba(255, 140, 0, 0.7) 100%
  );
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.75),
    0 0 28px rgba(255, 207, 51, 0.35);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.csr-img-frame:hover {
  transform: translateY(-4px) scale(1.02);
}
.csr-aura-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  height: 95%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 207, 51, 0.35) 0%,
    rgba(255, 140, 0, 0.2) 50%,
    transparent 75%
  );
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}
.csr-display-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  position: relative;
  z-index: 1;
  border: 1.5px solid var(--color-gold);
}
.csr-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--color-gold);
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(255, 207, 51, 0.8));
}
.corner-tl {
  top: 4px;
  left: 4px;
  border-right: none;
  border-bottom: none;
  border-radius: 6px 0 0 0;
}
.corner-tr {
  top: 4px;
  right: 4px;
  border-left: none;
  border-bottom: none;
  border-radius: 0 6px 0 0;
}
.corner-bl {
  bottom: 4px;
  left: 4px;
  border-right: none;
  border-top: none;
  border-radius: 0 0 0 6px;
}
.corner-br {
  bottom: 4px;
  right: 4px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 6px 0;
}

/* Section 2: Associates Grid */
.csr-associates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.csr-associate-card {
  background: var(--color-surface-glass);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: all 0.35s ease;
  box-shadow: var(--shadow-sm);
}

.csr-associate-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-gold);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(255, 207, 51, 0.2);
}

.csr-associate-logo-box {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.25rem;
  background: rgba(36, 6, 13, 0.85);
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 15px rgba(255, 207, 51, 0.15);
}

.csr-associate-card h4 {
  font-size: 1.15rem;
  color: var(--color-gold-light);
  margin-bottom: 0.5rem;
}

.csr-associate-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Section 3: Map Overlay Design */
.csr-map-section {
  position: relative;
  width: 100%;
  padding: 5rem 0;
  overflow: hidden;
  background-color: var(--color-primary-dark);
}

.csr-map-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.csr-map-background iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(80%) contrast(1.2);
}

.csr-map-overlay-dark {
  position: absolute;
  inset: 0;
  background: rgba(
    25,
    4,
    9,
    0.88
  ); /* Heavy dark overlay to preserve readability */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.csr-map-foreground {
  position: relative;
  z-index: 10;
}

.csr-map-subtitle {
  text-align: center;
  color: var(--color-cream);
  max-width: 700px;
  margin: 0 auto 3.5rem;
  font-size: 1.05rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* CSS Grid for the provided map images */
.csr-layout-images-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.csr-layout-card {
  background: rgba(43, 5, 13, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.7),
    inset 0 0 20px rgba(255, 207, 51, 0.05);
  transition:
    transform 0.4s ease,
    border-color 0.4s ease;
  display: flex;
  flex-direction: column;
}

.csr-layout-card:hover {
  transform: translateY(-10px);
  border-color: var(--color-gold);
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.9),
    0 0 25px rgba(255, 207, 51, 0.3);
}

.csr-layout-img {
  width: 100%;
  height: 400px; /* Standardize height for the specific map aspect ratio */
  object-fit: contain; /* Keeps the layouts fully visible */
  background: #ffffff; /* Ensures dark ink lines in map1/2/3 jpegs are visible */
  border-radius: var(--radius-sm);
  border: 2px solid #20040a;
}

.csr-layout-caption {
  text-align: center;
  color: var(--color-gold-light);
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--color-border);
}

/* Section 4: Video Container */
.csr-video-container {
  max-width: 900px;
  margin: 2.5rem auto 0;
}

.csr-video-frame {
  position: relative;
  padding: 8px;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    rgba(255, 207, 51, 0.7) 0%,
    rgba(255, 42, 75, 0.4) 50%,
    rgba(255, 140, 0, 0.7) 100%
  );
  box-shadow:
    0 16px 45px rgba(0, 0, 0, 0.8),
    0 0 28px rgba(255, 207, 51, 0.25);
}

.csr-video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  z-index: 1;
  border: 1.5px solid var(--color-gold);
}

.csr-promo-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section 5: CTA */
.csr-cta-section {
  background: linear-gradient(
    135deg,
    rgba(43, 5, 13, 0.95) 0%,
    rgba(255, 42, 75, 0.2) 100%
  );
  border-top: 2px solid var(--color-border-gold);
  border-bottom: 2px solid var(--color-border-gold);
}

.csr-cta-content {
  max-width: 750px;
  margin: 0 auto;
}

.csr-cta-title {
  font-size: 2.2rem;
  color: var(--color-gold-light);
  margin-bottom: 1rem;
}

.csr-cta-desc {
  font-size: 1.1rem;
  color: var(--color-cream);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.csr-cta-btn {
  padding: 1rem 3rem;
  font-size: 1.1rem;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .csr-split-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .csr-text-content {
    order: 2;
  }
  .csr-media-col {
    order: 1;
  }
  .csr-layout-images-grid {
    grid-template-columns: 1fr 1fr;
  }
  .csr-layout-img {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .csr-banner-title {
    font-size: 2.2rem;
  }
  .csr-associates-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .csr-layout-images-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .csr-layout-img {
    height: auto;
    aspect-ratio: 4/5;
  }
  .csr-cta-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .csr-associates-grid {
    grid-template-columns: 1fr;
  }
  .csr-associate-card {
    padding: 1.5rem;
  }
}

.csr-associate-logo-img {
  max-width: 65%;
  max-height: 65%;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Optional: Add a drop shadow or filter if the logo needs to stand out against the dark background */
  /* filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.2)); */
}
