/* =========================================================================
   Design Components — Ravi Drall & Associates
   Centralizes all component styles; eliminates inline styles and inline JS.
   ========================================================================= */

:root {
  /* Brand accent palette — supplements ravidrall.css variables */
  --rd-navy:        #1a3353;
  --rd-red:         #e74c3c;
  --rd-red-dark:    #c0392b;
  --rd-text:        #555;
  --rd-text-light:  #888;
  --rd-text-muted:  #777;
  --rd-border:      #e0e0e0;
  --rd-bg-light:    #f5f7fa;
  --rd-bg-gray:     #f8f8f8;
  --rd-bg-subtle:   #f9f9f9;
  --rd-white:       #fff;
  --rd-star:        #f5a623;
  /* Spacing */
  --rd-radius-sm:   4px;
  --rd-radius-md:   6px;
  --rd-radius-pill: 30px;
  --rd-radius-circle: 50%;
  /* Shadows */
  --rd-shadow-sm: 0 4px 20px rgba(0,0,0,0.07);
  --rd-shadow-md: 0 8px 40px rgba(0,0,0,0.08);
}

/* =========================================================================
   About CTA Form Section
   ========================================================================= */

.about-cta-form {
  padding: clamp(60px, 8vw, 90px) 0;
  background: var(--rd-bg-light);
}

.acf-left {
  padding-right: clamp(0px, 3vw, 40px);
}

.acf-badge {
  display: inline-block;
  background: var(--rd-red);
  color: var(--rd-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: var(--rd-radius-sm);
  margin-bottom: 20px;
}

.acf-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: var(--rd-navy);
  line-height: 1.25;
  margin-bottom: 28px;
}

.acf-phone-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--rd-white);
  border-left: 4px solid var(--rd-red);
  padding: 18px 24px;
  box-shadow: var(--rd-shadow-sm);
  border-radius: var(--rd-radius-sm);
}

.acf-phone-icon {
  width: 50px;
  height: 50px;
  background: var(--rd-red);
  border-radius: var(--rd-radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--rd-white);
  font-size: 20px;
}

.acf-phone-label {
  display: block;
  font-size: 12px;
  color: var(--rd-text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.acf-phone-number {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  color: var(--rd-navy);
  text-decoration: none;
  transition: color 0.2s;
}
.acf-phone-number:hover { color: var(--rd-red); }

.acf-form-card {
  background: var(--rd-white);
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--rd-radius-md);
  box-shadow: var(--rd-shadow-md);
}

.acf-input-group {
  margin-bottom: 16px;
}
.acf-input-group--last { margin-bottom: 20px; }

.acf-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.acf-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--rd-border);
  border-radius: var(--rd-radius-sm);
  font-size: 14px;
  color: #333;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  background: transparent;
}
.acf-input:focus {
  border-color: var(--rd-navy);
  box-shadow: 0 0 0 3px rgba(26, 51, 83, 0.08);
}
textarea.acf-input { resize: vertical; }

.acf-submit {
  width: 100%;
  padding: 15px;
  background: var(--rd-red);
  color: var(--rd-white);
  border: none;
  border-radius: var(--rd-radius-sm);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: inherit;
}
.acf-submit:hover {
  background: var(--rd-navy);
  transform: translateY(-1px);
}
.acf-submit:active { transform: translateY(0); }

@media (max-width: 991px) {
  .acf-left { padding-right: 0; margin-bottom: 32px; }
}

/* =========================================================================
   Disclaimer Section
   ========================================================================= */

.about-disclaimer {
  padding: clamp(48px, 6vw, 70px) 0;
  background: var(--rd-white);
  border-top: 1px solid #eee;
}

.adis-card {
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--rd-border);
  height: 100%;
}
.adis-card--navy { border-left: 4px solid var(--rd-navy); }
.adis-card--red  { border-left: 4px solid var(--rd-red); }

.adis-heading {
  font-size: 22px;
  font-weight: 800;
  color: var(--rd-navy);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.adis-body {
  font-size: 15px;
  color: var(--rd-text);
  line-height: 1.9;
  text-align: justify;
  margin: 0;
}

.adis-dropcap {
  float: left;
  font-size: 48px;
  font-weight: 900;
  line-height: 0.75;
  margin-right: 8px;
  margin-top: 8px;
}
.adis-dropcap--navy { color: var(--rd-navy); }
.adis-dropcap--red  { color: var(--rd-red); }

/* =========================================================================
   About Clients Section
   ========================================================================= */

.about-clients {
  padding: clamp(48px, 6vw, 70px) 0;
  background: var(--rd-bg-subtle);
  border-top: 1px solid #eee;
}

.acli-title-wrap {
  text-align: center;
  margin-bottom: 40px;
}

.acli-icon-row {
  display: inline-block;
  margin-bottom: 12px;
}

.acli-icon {
  fill: var(--rd-red);
  margin-right: 6px;
  vertical-align: middle;
}

.acli-heading {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: var(--rd-navy);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0;
}

.acli-rule {
  width: 60px;
  height: 3px;
  background: var(--rd-red);
  margin: 14px auto 0;
  border: none;
  display: block;
}

.acli-text-wrap {
  max-width: 920px;
  margin: 0 auto;
}

.acli-text {
  font-size: 15px;
  color: var(--rd-text);
  line-height: 1.9;
  margin-bottom: 20px;
  text-align: justify;
}
.acli-text:last-child { margin-bottom: 0; }

/* =========================================================================
   Blog Page — Editorial Grid
   ========================================================================= */

.bl-section {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--rd-bg-light);
}

/* ── Section header ── */
.bl-header {
  text-align: center;
  margin-bottom: 48px;
}

/* ── Category filter bar ── */
.bl-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  border-bottom: 2px solid var(--rd-border);
  margin-bottom: 52px;
}
.bl-filter__link {
  display: inline-block;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 700;
  color: #999;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}
.bl-filter__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--rd-red);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.bl-filter__link:hover { color: var(--rd-navy); }
.bl-filter__link:hover::after { transform: scaleX(1); }
.bl-filter__link.is-active { color: var(--rd-navy); }
.bl-filter__link.is-active::after { transform: scaleX(1); }
.bl-filter__count {
  font-size: 11px;
  margin-left: 3px;
  opacity: 0.6;
}

/* ── Empty state ── */
.bl-empty {
  text-align: center;
  padding: 72px 0;
}
.bl-empty i { font-size: 48px; color: #ddd; display: block; margin-bottom: 20px; }
.bl-empty h4 { color: #aaa; margin-bottom: 16px; }
.bl-empty a { color: var(--rd-navy); font-weight: 600; text-decoration: none; }
.bl-empty a:hover { text-decoration: underline; }

/* ── Post grid ── */
.bl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

/* ── Base card ── */
.bl-card {
  background: var(--rd-white);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.bl-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  transform: translateY(-5px);
}

/* ── Image area ── */
.bl-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
}
.bl-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms ease;
}
.bl-card:hover .bl-card__img-wrap img { transform: scale(1.07); }

/* Read-more hover overlay */
/* Full-area transparent link over the image */
.bl-card__img-link {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 3;
}

.bl-card__overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26, 51, 83, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}
.bl-card:hover .bl-card__overlay { opacity: 1; }
.bl-card__overlay span {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid rgba(255,255,255,0.7);
  padding: 8px 22px;
}

/* Category chip */
.bl-card__cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--rd-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 2px;
  text-decoration: none;
  z-index: 4;
  transition: background 0.2s;
}
.bl-card__cat:hover { background: var(--rd-navy); color: #fff; }

/* ── Card body ── */
.bl-card__body {
  padding: 22px 22px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bl-card__meta {
  font-size: 11px;
  color: var(--rd-text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.bl-card__meta i { color: var(--rd-red); font-size: 9px; }

.bl-card__title {
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 700;
  color: var(--rd-navy);
  line-height: 1.45;
  margin-bottom: 10px;
}
.bl-card__title a { color: inherit; text-decoration: none; transition: color 0.2s; }
.bl-card__title a:hover { color: var(--rd-red); }

.bl-card__excerpt {
  font-size: 13.5px;
  color: var(--rd-text-muted);
  line-height: 1.75;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

/* ── Card footer ── */
.bl-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  border-top: 1px solid #f0f0f0;
  margin-top: 16px;
}

.bl-card__read {
  font-size: 11px;
  font-weight: 700;
  color: var(--rd-red);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s, color 0.2s;
}
.bl-card__read:hover { gap: 10px; color: var(--rd-navy); }
.bl-card__read i { font-size: 9px; }

.bl-card__author {
  display: flex;
  align-items: center;
  gap: 7px;
}
.bl-card__author img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.bl-card__author-name {
  font-size: 11px;
  font-weight: 600;
  color: #666;
}

/* ── Featured card (first post) — horizontal 2-col span ── */
.bl-card--featured {
  grid-column: span 2;
  flex-direction: row;
}
.bl-card--featured .bl-card__img-wrap {
  width: 50%;
  aspect-ratio: unset;
  flex-shrink: 0;
  border-radius: 0;
}
.bl-card--featured .bl-card__body {
  padding: 28px 28px 20px;
  justify-content: center;
}
.bl-card--featured .bl-card__title {
  font-size: clamp(17px, 1.8vw, 21px);
  margin-bottom: 12px;
}
.bl-card--featured .bl-card__excerpt {
  -webkit-line-clamp: 4;
  font-size: 14.5px;
  margin-bottom: 16px;
  flex: unset;
}
.bl-card--featured .bl-card__footer {
  border: none;
  padding: 0 28px 24px;
  margin-top: 0;
}

/* ── Pagination ── */
.bl-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.bl-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  border: 1px solid var(--rd-border);
  border-radius: 3px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  background: var(--rd-white);
}
.bl-pagination__link:hover,
.bl-pagination__link.is-active {
  background: var(--rd-navy);
  color: #fff;
  border-color: var(--rd-navy);
}
.bl-pagination__dots {
  min-width: 40px;
  text-align: center;
  color: #bbb;
  font-size: 14px;
}
.bl-pagination-info {
  text-align: center;
  margin-top: 14px;
  font-size: 12px;
  color: #aaa;
  letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 991px) {
  .bl-grid { grid-template-columns: repeat(2, 1fr); }
  .bl-card--featured {
    grid-column: span 2;
    flex-direction: column;
  }
  .bl-card--featured .bl-card__img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .bl-card--featured .bl-card__footer { padding: 0 22px 20px; }
}
@media (max-width: 639px) {
  .bl-grid { grid-template-columns: 1fr; }
  .bl-card--featured { grid-column: span 1; }
  .bl-filter {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Media / Gallery infinite scroll helpers */
.media-load-spinner {
  display: inline-block;
  width: 36px;
  height: 36px;
  border: 3px solid #e0e0e0;
  border-top-color: var(--rd-red, #e74c3c);
  border-radius: 50%;
  animation: mediaSpin 0.7s linear infinite;
}
@keyframes mediaSpin { to { transform: rotate(360deg); } }
.media-all-loaded {
  text-align: center;
  color: #aaa;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

/* Legacy compat — keep for homepage blog preview cards */
.blog-empty-state {
  text-align: center;
  padding: 60px 0;
}
.blog-empty-icon { font-size: 48px; color: #ddd; margin-bottom: 20px; display: block; }
.blog-empty-title { color: #999; }
.blog-pagination-ellipsis { padding: 0 6px; color: #999; }

/* =========================================================================
   Reviews Grid Section
   ========================================================================= */

.reviews-grid-section {
  padding: clamp(72px, 8vw, 120px) 0 clamp(56px, 7vw, 90px);
  background-color: var(--rd-bg-gray);
}

.rev-card-text {
  margin-bottom: 25px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--rd-text);
}

.rev-author-img {
  width: 80px;
  height: 80px;
  border-radius: var(--rd-radius-circle);
  object-fit: cover;
}

.rev-designation {
  color: var(--ravidrall-base, #05013c);
  margin-bottom: 8px;
}

.rev-stars {
  display: flex;
  gap: 3px;
}
.rev-star         { font-size: 13px; }
.rev-star--filled { color: var(--rd-star); }
.rev-star--empty  { color: #ddd; }

.rev-bottom-bar {
  background: var(--rd-bg-gray);
  border-radius: var(--rd-radius-sm);
  padding: 8px 16px;
  margin-top: 5px;
  font-size: 13px;
  color: var(--rd-text-light);
}

/* =========================================================================
   CTA Section
   ========================================================================= */

.cta-section { padding-block: 0; }

.cta-section__overlay {
  background: #19223a;
  padding: clamp(60px, 8vw, 100px) 0;
}

.cta-section__title {
  color: var(--rd-white);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.3;
}

.cta-section__text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 15px;
  max-width: 62ch;
}
.cta-section__text--last { margin-bottom: 30px; }

.cta-section__image { text-align: center; }
.cta-section__image img { max-width: 100%; height: auto; }

@media (max-width: 991px) {
  .cta-section__image { margin-top: 32px; }
}

/* =========================================================================
   Stats Counter Section
   ========================================================================= */

.stats-counter {
  padding: clamp(60px, 8vw, 80px) 0;
  background: #0c1e34;
  position: relative;
  overflow: hidden;
}

.stats-counter__overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 30, 52, 0.88);
  pointer-events: none;
}

.stats-counter__inner {
  position: relative;
  z-index: 1;
}

.stats-counter__item {
  padding: 20px;
  text-align: center;
  margin-bottom: 30px;
}

.stats-counter__icon-wrap {
  width: 70px;
  height: 70px;
  background: rgba(231, 76, 60, 0.15);
  border: 2px solid var(--rd-red);
  border-radius: var(--rd-radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  transition: transform 0.3s, background 0.3s;
}
.stats-counter__item:hover .stats-counter__icon-wrap {
  transform: scale(1.08);
  background: rgba(231, 76, 60, 0.25);
}

.stats-counter__icon {
  font-size: 28px;
  color: var(--rd-red);
}

.stats-counter__num {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 800;
  color: var(--rd-white);
  line-height: 1;
  margin-bottom: 8px;
}

.stats-counter__label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

/* =========================================================================
   Why Individuals Section — improved card design
   ========================================================================= */

.why-individuals {
  padding: clamp(60px, 8vw, 80px) 0;
  background: var(--rd-bg-gray);
}

.wi-sec-title {
  text-align: center;
  margin-bottom: 50px;
}

.wi-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.3;
}

.wi-subtitle {
  font-size: 18px;
  color: #666;
  font-weight: 400;
  margin: 0;
}

.wi-card {
  background: var(--rd-white);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.07);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  height: 100%;
  margin-bottom: 28px;
  border: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.wi-card:hover {
  border-color: var(--rd-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.wi-card__icon {
  width: 56px;
  height: 56px;
  background: var(--rd-red);
  border-radius: var(--rd-radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--rd-white);
  font-size: 22px;
  transition: background 0.25s;
}
.wi-card:hover .wi-card__icon { background: var(--rd-navy); }

.wi-card__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #222;
  line-height: 1.3;
}

.wi-card__text {
  color: #666;
  line-height: 1.65;
  margin: 0;
  font-size: 15px;
}

/* =========================================================================
   Why Choose Ravi Drall Section
   ========================================================================= */

.why-choose-ravi__sec-title {
  text-align: center;
  margin-bottom: 40px;
}

.why-choose-ravi__main-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
  color: var(--rl-ink, #111213);
}

.why-choose-ravi__desc {
  font-size: 16px;
  color: var(--rl-mute, #6b6b6b);
  line-height: 1.8;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.why-choose-ravi__card {
  padding: 28px;
  height: 100%;
  margin-bottom: 28px;
}

.why-choose-ravi__card-title {
  font-size: 20px;
  font-weight: 600;
  color: #222;
  margin-bottom: 14px;
  line-height: 1.3;
}

.why-choose-ravi__card-text {
  color: #666;
  line-height: 1.8;
  margin: 0;
  font-size: 15px;
}

/* =========================================================================
   About One Section — Balanced Split Layout
   ========================================================================= */

.about-one {
  padding: clamp(72px, 8vw, 110px) 0;
  background: #fff;
}

/* ── Left: image composition ── */
.ao-img-wrap {
  position: relative;
  padding-bottom: 72px;
  padding-right: 24px;
}

.ao-img-main {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 3 / 4;
  width: 100%;
}
.ao-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 600ms ease;
}
.ao-img-wrap:hover .ao-img-main img { transform: scale(1.03); }

/* Secondary image — bottom-left, overlapping */
.ao-img-secondary {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 52%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  border: 4px solid #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
  z-index: 2;
}
.ao-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Experience badge — bottom-right, overlapping */
.ao-img-badge {
  position: absolute;
  bottom: 18px;
  right: 0;
  width: 108px;
  height: 108px;
  background: var(--rd-red);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 8px 28px rgba(231, 76, 60, 0.38);
  text-decoration: none;
}
.ao-img-badge__num {
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  display: block;
}
.ao-img-badge__text {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.35;
  margin-top: 4px;
  display: block;
}

/* Thin red accent line — left edge of main image */
.ao-img-main::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 0;
  width: 3px;
  height: 80%;
  background: var(--rd-red);
  z-index: 2;
}

/* ── Right: content ── */
.ao-content {
  padding-left: clamp(0px, 2vw, 24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.ao-content__text {
  font-size: 15.5px;
  color: var(--rd-text);
  line-height: 1.8;
  margin-bottom: 28px;
}

.ao-areas-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--rd-navy);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ao-areas-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rd-border);
}

/* 3-column tag grid */
.ao-areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px 10px;
  margin-bottom: 32px;
}

.ao-area-tag {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  color: #444;
  line-height: 1.4;
  padding: 6px 10px;
  background: var(--rd-bg-light);
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}
.ao-area-tag:hover {
  background: #fde8e6;
  color: var(--rd-red);
}
.ao-area-tag i {
  color: var(--rd-red);
  font-size: 9px;
  flex-shrink: 0;
  margin-top: 3px;
}

/* Responsive */
@media (max-width: 991px) {
  .ao-img-wrap { padding-right: 0; margin-bottom: 60px; }
  .ao-content  { padding-left: 0; }
  .ao-areas-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .ao-areas-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .ao-area-tag   { font-size: 12px; padding: 5px 8px; }
  .ao-img-badge  { width: 88px; height: 88px; }
  .ao-img-badge__num { font-size: 24px; }
}

/* =========================================================================
   Topbar inline style fix
   ========================================================================= */
.topbar-one__right p { margin: 0; }

/* =========================================================================
   Pagination info strip
   ========================================================================= */
.post-pagination-info {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: #999;
}

/* =========================================================================
   Homepage Media Presence Section
   ========================================================================= */

.mp-section {
  padding: clamp(72px, 8vw, 50px) 0;
  background: #0d1b2e;
  position: relative;
  overflow: hidden;
}

/* Subtle diagonal stripe texture */
.mp-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 40px,
    rgba(255,255,255,0.018) 40px,
    rgba(255,255,255,0.018) 41px
  );
  pointer-events: none;
}

/* Section header — white text on dark */
.mp-section .sec-title__tagline { color: rgba(255,255,255,0.55) !important; }
.mp-section .sec-title__tagline svg path { fill: var(--rd-red) !important; }
.mp-section .sec-title__title { color: #fff !important; }
.mp-section .sec-title__title span {
  color: var(--rd-red) !important;
  font-style: italic;
}

/* 3-column uniform grid */
.mp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* Each cell */
.mp-item {
  position: relative;
  overflow: hidden;
  background: #1a2a3d;
  aspect-ratio: 4 / 3;
  display: block;
  text-decoration: none;
}

.mp-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 550ms ease, filter 350ms ease;
  filter: brightness(0.88);
}
.mp-item:hover img {
  transform: scale(1.07);
  filter: brightness(0.65);
}

/* Permanent bottom gradient */
.mp-item__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 15, 30, 0.88) 0%,
    rgba(5, 15, 30, 0.25) 45%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
}

/* Category badge — top left, always visible */
.mp-item__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--rd-red);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  z-index: 3;
  line-height: 1.4;
}

/* Caption block — bottom, always visible */
.mp-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px 16px;
  z-index: 2;
  transform: translateY(4px);
  transition: transform 300ms ease;
}
.mp-item:hover .mp-item__caption { transform: translateY(0); }

.mp-item__caption-text {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  line-height: 1.45;
  margin: 0;
}

/* Centred zoom icon — appears on hover */
.mp-item__zoom {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.65);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.72;
  transition: opacity 200ms ease, transform 300ms ease;
  backdrop-filter: blur(3px);
  z-index: 4;
  text-decoration: none;
}
.mp-item:hover .mp-item__zoom {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* "View All Media" button */
.mp-cta {
  text-align: center;
  margin-top: 40px;
}

.mp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: transparent;
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.35);
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s;
}
.mp-btn:hover {
  background: var(--rd-red);
  border-color: var(--rd-red);
  color: #fff;
  transform: translateY(-2px);
}
.mp-btn i { font-size: 11px; }

/* Responsive */
@media (max-width: 767px) {
  .mp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 479px) {
  .mp-grid { grid-template-columns: 1fr; }
  .mp-item { aspect-ratio: 16 / 9; }
}

/* =========================================================================
   Homepage Gallery — Mosaic Bento Grid
   ========================================================================= */

.hg-section {
  padding: clamp(72px, 8vw, 50px) 0;
  background: #fff;
}

.hg-section .sec-title {
  text-align: center;
  margin-bottom: 48px;
}

/* 6-image mosaic:
   [   1   ][2]     row 1
   [   1   ][3]     row 2
   [ 4 ][ 5 ][ 6 ]  row 3
*/
.hg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 230px 230px 220px;
  gap: 10px;
}

.hg-item {
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
}

.hg-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.hg-item:nth-child(2) { grid-column: 3;     grid-row: 1; }
.hg-item:nth-child(3) { grid-column: 3;     grid-row: 2; }
.hg-item:nth-child(4) { grid-column: 1;     grid-row: 3; }
.hg-item:nth-child(5) { grid-column: 2;     grid-row: 3; }
.hg-item:nth-child(6) { grid-column: 3;     grid-row: 3; }

.hg-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms ease;
}
.hg-item:hover img { transform: scale(1.07); }

/* Gradient overlay — subtle at rest, full on hover */
.hg-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 20, 40, 0.70) 0%,
    rgba(10, 20, 40, 0.10) 50%,
    transparent 100%
  );
  opacity: 0.45;
  transition: opacity 350ms ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.hg-item:hover .hg-item__overlay { opacity: 1; }
/* Zoom button resting state — icon always visible */
.hg-item__zoom { opacity: 0.8; }
.hg-item:hover .hg-item__zoom { opacity: 1; }

/* Zoom button */
.hg-item__zoom {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transform: scale(0.75) translateY(-8px);
  transition: transform 350ms ease, background 250ms ease;
  text-decoration: none;
  backdrop-filter: blur(2px);
}
.hg-item:hover .hg-item__zoom {
  transform: scale(1) translateY(0);
  background: rgba(255, 255, 255, 0.25);
}

/* Caption at bottom */
.hg-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 18px 14px;
  background: linear-gradient(to top, rgba(10,20,40,0.85) 0%, transparent 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transform: translateY(6px);
  opacity: 0;
  transition: opacity 350ms ease, transform 350ms ease;
}
.hg-item:hover .hg-item__caption {
  opacity: 1;
  transform: translateY(0);
}

/* View Gallery CTA */
.hg-cta {
  text-align: center;
  margin-top: 36px;
}

.hg-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--ravidrall-base, #05013c);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.25s, transform 0.2s;
  border-radius: 2px;
}
.hg-btn:hover {
  background: var(--rd-red);
  color: #fff;
  transform: translateY(-2px);
}
.hg-btn i { font-size: 12px; }

/* Responsive */
@media (max-width: 767px) {
  .hg-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px 180px 180px;
  }
  .hg-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
  .hg-item:nth-child(2) { grid-column: 1;     grid-row: 2; }
  .hg-item:nth-child(3) { grid-column: 2;     grid-row: 2; }
  .hg-item:nth-child(4) { grid-column: 1;     grid-row: 3; }
  .hg-item:nth-child(5) { grid-column: 2;     grid-row: 3; }
  .hg-item:nth-child(6) { display: none; }
}
@media (max-width: 479px) {
  .hg-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 140px 140px 140px;
  }
}

/* =========================================================================
   Reviews — Premium 3-column Card Redesign
   ========================================================================= */

/* Override layout.css left-align rule for homepage reviews */
.rev-section.reviews-grid-section .sec-title {
  text-align: center !important;
  margin-bottom: 25px;
}

.rev-section {
  padding: clamp(72px, 8vw, 110px) 0;
  background: linear-gradient(160deg, #f7f6f2 0%, #eef0f5 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle background watermark */
.rev-section::before {
  content: "\201C";
  position: absolute;
  top: -60px;
  left: -40px;
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-size: 600px;
  color: rgba(26, 51, 83, 0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.rev-section .sec-title {
  text-align: center;
  margin-bottom: 56px;
  position: relative;
}

/* 3-column grid */
.rev-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card */
.rev-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 28px 24px;
  box-shadow: 0 2px 20px rgba(26, 51, 83, 0.06);
  border-top: 3px solid transparent;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.rev-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(26, 51, 83, 0.12);
  border-top-color: var(--rd-red);
}

/* Decorative large quote mark */
.rev-card__quote-mark {
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-size: 72px;
  line-height: 0.6;
  color: var(--rd-red);
  display: block;
  margin-bottom: 20px;
  opacity: 0.25;
  user-select: none;
  transition: opacity 0.3s ease;
}
.rev-card:hover .rev-card__quote-mark { opacity: 0.45; }

/* Review body */
.rev-card__body {
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  line-height: 1.75;
  color: #3a3a3a;
  flex: 1;
  margin-bottom: 24px;
}

/* Stars row */
.rev-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 20px;
}
.rev-card__star {
  font-size: 14px;
}
.rev-card__star--on  { color: var(--rd-star); }
.rev-card__star--off { color: #d4d4d4; }

/* Divider */
.rev-card__divider {
  border: 0;
  border-top: 1px solid #eee;
  margin: 0 0 20px;
}

/* Author row */
.rev-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rev-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #f0f0f0;
}

.rev-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--rd-navy);
  margin: 0 0 2px;
  line-height: 1.3;
}

.rev-card__role {
  font-size: 12px;
  color: var(--rd-text-light);
  margin: 0;
  line-height: 1.4;
}

/* Source badge */
.rev-card__source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding: 4px 10px;
  background: #f5f5f5;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #666;
  letter-spacing: 0.04em;
  margin-left: auto;
  flex-shrink: 0;
}
.rev-card__source i {
  font-size: 12px;
  color: var(--rd-red);
}

/* Responsive */
@media (max-width: 991px) {
  .rev-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .rev-cards-grid { grid-template-columns: 1fr; gap: 16px; }
  .rev-section::before { font-size: 300px; }
}

/* =========================================================================
   Stats Counter — Elegant Redesign
   ========================================================================= */

.sc-section {
  padding: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0d1b2e 0%, #1a3353 60%, #0d1b2e 100%);
}

.sc-inner {
  display: flex;
  align-items: stretch;
  background: linear-gradient(135deg, #0d1b2e 0%, #1a3353 60%, #0d1b2e 100%);
  position: relative;
}

/* Subtle grid pattern overlay */
.sc-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Each stat cell */
.sc-item {
  flex: 1;
  padding: clamp(40px, 5vw, 64px) clamp(20px, 3vw, 40px);
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.3s ease;
}
.sc-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Vertical dividers between cells */
.sc-item + .sc-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

/* Background icon (decorative) */
.sc-item__bg-icon {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 64px;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

/* Icon above number */
.sc-item__icon {
  font-size: 28px;
  color: var(--rd-red);
  margin-bottom: 8px;
  line-height: 1;
  transition: transform 0.3s ease;
}
.sc-item:hover .sc-item__icon { transform: scale(1.15); }

/* Number */
.sc-item__num {
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin: 0;
  letter-spacing: -0.02em;
}

/* + suffix */
.sc-item__num .sc-plus {
  font-size: 0.55em;
  font-weight: 400;
  vertical-align: super;
  margin-left: 2px;
  color: var(--rd-red);
}

/* Thin underline accent under number */
.sc-item__accent {
  width: 32px;
  height: 2px;
  background: var(--rd-red);
  border-radius: 1px;
  margin: 10px auto 2px;
}

/* Label */
.sc-item__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  line-height: 1.4;
}

/* Responsive: 2×2 on tablet, stacked on mobile */
@media (max-width: 767px) {
  .sc-inner {
    flex-wrap: wrap;
  }
  .sc-item {
    flex: 0 0 50%;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .sc-item:nth-child(2n) .sc-item::before { display: none; }
  .sc-item + .sc-item::before { display: none; }
  .sc-item:nth-child(odd)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
  }
}
@media (max-width: 400px) {
  .sc-item { flex: 0 0 100%; }
  .sc-item:nth-child(odd)::after { display: none; }
}
