/*--------------------------------------------------------------
# Global Styles & Variables
--------------------------------------------------------------*/

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Poppins:wght@300;400;500;600&display=swap");

:root {
  --primary-red: #c41e3a;
  --accent-yellow: #f4c430;
  --text-dark: #1a1a1a;
  --text-muted: #6c757d;
  --bg-light: #ffffff;
  --transition-speed: 0.3s;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: clip;
}

body.modal-open,
html:has(body.modal-open) {
  overflow: hidden !important;
}

/* Container override for wide desktop layout */
.container {
  max-width: 92% !important;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed) ease;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/*--------------------------------------------------------------
# Navigation Menu & Header
--------------------------------------------------------------*/

#header {
  background: var(--bg-light);
  padding: 20px 0;
  z-index: 1000;
  transition:
    box-shadow var(--transition-speed) ease,
    padding var(--transition-speed) ease;
}

#header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  padding: 12px 0;
}

/* Logo */
.logo-img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-wrapper {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-script {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--primary-red);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.logo-sub {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  color: var(--text-dark);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-top: 2px;
}

/* Nav Links */
.navbar-nav {
  gap: 8px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark) !important;
  padding: 8px 16px !important;
  position: relative;
  transition: color var(--transition-speed) ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2.5px;
  background-color: var(--accent-yellow);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-speed) ease;
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link:hover {
  color: var(--primary-red) !important;
}

.nav-link.active {
  color: var(--text-dark) !important;
}

/* Right Icons */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-link {
  position: relative;
  font-size: 1.15rem;
  color: var(--text-dark);
  transition:
    color var(--transition-speed) ease,
    transform var(--transition-speed) ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.icon-link:hover {
  color: var(--primary-red);
  transform: translateY(-2px);
  background-color: rgba(196, 30, 58, 0.05);
}

.badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: #f4c430 !important;
  color: #1a1a1a !important;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  animation: popIn 0.4s ease-out;
}

/* Mobile Toggle */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  width: 1.4em;
  height: 1.4em;
}

/* Animations */
@keyframes popIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  70% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--bg-light);
    padding: 20px;
    margin-top: 15px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  }

  .navbar-nav {
    gap: 4px;
    margin-bottom: 16px;
  }

  .nav-link {
    padding: 10px 14px !important;
    border-radius: 8px;
  }

  .nav-link:hover {
    background-color: rgba(244, 196, 48, 0.08);
  }

  .nav-icons {
    justify-content: center;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
}

/*--------------------------------------------------------------
# Hero / Lawyer Section
--------------------------------------------------------------*/

.hero-section {
  padding-top: 140px;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden !important;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-light);
}

/* Left Content */
.hero-content {
  position: relative;
  z-index: 2;
}

/* Split Staggered Fade-In Animation — Left Content */
.hero-slide .hero-content>* {
  opacity: 0;
  transform: translateX(-35px);
}

.hero-slide.active .hero-content>* {
  animation: splitFadeInLeft 0.85s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-slide.active .hero-content>*:nth-child(1) {
  animation-delay: 0.12s;
}

.hero-slide.active .hero-content>*:nth-child(2) {
  animation-delay: 0.24s;
}

.hero-slide.active .hero-content>*:nth-child(3) {
  animation-delay: 0.36s;
}

.hero-slide.active .hero-content>*:nth-child(4) {
  animation-delay: 0.48s;
}

.hero-slide.active .hero-content>*:nth-child(5) {
  animation-delay: 0.60s;
}

@keyframes splitFadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-35px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Title */
.hero-title {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  font-weight: 400;
  color: var(--primary-red);
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1.1;
}

.title-number {
  font-size: 3.4rem;
}

.title-text {
  font-size: 3.4rem;
}

/* Gradient Accent Line */
.title-accent-line {
  width: 200px;
  height: 3px;
  background: linear-gradient(90deg,
      #8b5cf6 0%,
      #a855f7 20%,
      #f4c430 60%,
      #f97316 100%);
  border-radius: 2px;
  margin-bottom: 38px;
}

/* Qualifications List */
.qualifications-list {
  margin-bottom: 50px;
  max-width: 540px;
}

.qualifications-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.55;
}

.qualifications-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  background-color: var(--accent-yellow);
  border-radius: 50%;
}

/* Dual-item row (first line) */
.qualifications-list .dual-item {
  display: flex;
  gap: 35px;
  flex-wrap: wrap;
}

.qualifications-list .dual-item::before {
  display: none;
}

.qualifications-list .dual-item span {
  position: relative;
  padding-left: 22px;
}

.qualifications-list .dual-item span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  background-color: var(--accent-yellow);
  border-radius: 50%;
}

/* Gallery Slider */
.gallery-slider {
  display: flex;
  align-items: center;
  gap: 16px;
}

.slider-arrow {
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  flex-shrink: 0;
}

.slider-arrow:hover {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
  color: white;
  transform: scale(1.08);
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.25);
}

.slider-arrow:active {
  transform: scale(0.98);
}

.gallery-track-wrapper {
  overflow: hidden;
  width: 100%;
  max-width: 400px;
}

.gallery-track {
  display: flex;
  gap: 12px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item {
  flex: 0 0 auto;
  width: 120px;
  height: 110px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.gallery-item:hover img {
  transform: scale(1.12);
}

/* Right Visual — Split Stagger Fade-In from Right */
.hero-visual {
  position: relative;
  height: 660px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transform: translateX(40px) scale(0.97);
}

.hero-slide.active .hero-visual {
  animation: splitFadeInRight 0.95s cubic-bezier(0.25, 1, 0.5, 1) 0.25s forwards;
}

@keyframes splitFadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Background Pillar / Scale */
.hero-bg {
  position: absolute;
  right: -180px;
  bottom: -40px;
  width: 110%;
  height: 115%;
  z-index: 0;
  opacity: 0.85;
  pointer-events: none;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right bottom;
}

/* Person Wrapper */
.person-wrapper {
  position: relative;
  z-index: 2;
  width: 460px;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Person Image */
.person-img {
  position: relative;
  z-index: 2;
  max-height: 100%;
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.12));
  transform: translate(25px, -20px);
}

/* Bottom Fade to blend with white background (Disabled to fix white faded line at bottom of image) */
.person-fade {
  display: none !important;
}

.hero-section {
  padding-top: 140px;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden !important;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-light);
}

/*--------------------------------------------------------------
# Hero Carousel (Smooth Fade Overlay)
--------------------------------------------------------------*/

.hero-slides-wrapper {
  display: grid !important;
  grid-template-areas: "hero-slide-area" !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  overflow: hidden;
}

.hero-slide {
  grid-area: hero-slide-area !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
  overflow: hidden;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  z-index: 2;
}

/* Dot Indicators */
.hero-indicators {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(196, 30, 58, 0.25);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-dot:hover,
.hero-dot.active {
  background: var(--primary-red);
  border-color: var(--primary-red);
  transform: scale(1.25);
}

/*--------------------------------------------------------------
# Gallery Slider Component
--------------------------------------------------------------*/

/* (Slider JS logic will be added in Step 4) */

/* Responsive */
@media (max-width: 1199px) {

  .hero-title,
  .title-number,
  .title-text {
    font-size: 2.8rem;
  }
}

@media (max-width: 991px) {
  .hero-section {
    padding-top: 120px;
    padding-bottom: 50px;
  }

  .hero-title,
  .title-number,
  .title-text {
    font-size: 2.4rem;
  }

  .title-accent-line {
    width: 160px;
    margin-bottom: 30px;
  }

  .hero-visual {
    height: 480px;
    margin-top: 50px;
  }

  .person-wrapper {
    width: 340px;
    height: 420px;
    align-items: center;
  }

  .person-img {
    transform: translate(20px, -25px);
  }

  .hero-bg {
    right: -60px;
    width: 100%;
    opacity: 0.6;
  }

  .qualifications-list {
    max-width: 100%;
  }

  .hero-indicators {
    bottom: 12px;
  }
}

@media (max-width: 576px) {

  .hero-title,
  .title-number,
  .title-text {
    font-size: 2rem;
  }

  .title-accent-line {
    width: 140px;
  }

  .gallery-track-wrapper {
    max-width: 240px;
  }

  .gallery-item {
    width: 96px;
    height: 84px;
  }

  .slider-arrow {
    width: 38px;
    height: 38px;
  }

  .person-wrapper {
    width: 280px;
    height: 360px;
    align-items: center;
  }

  .person-img {
    transform: translate(15px, -20px);
  }
}

/*--------------------------------------------------------------
# Affiliations & Partners Section
--------------------------------------------------------------*/

.affiliations-section {
  background-color: var(--bg-light);
  overflow: hidden;
  position: relative;
}

/* Section Header */
.section-subtitle {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.text-dark-gray {
  color: var(--text-dark);
}

.text-red {
  color: var(--primary-red);
}

.header-icon-line {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.line-gradient {
  height: 2px;
  flex: 1;
}

.line-gradient.left {
  background: linear-gradient(to left, rgba(111, 45, 168, 0.5), transparent);
}

.line-gradient.right {
  background: linear-gradient(to right, rgba(244, 196, 48, 0.7), transparent);
}

/* Journalist Section Heading Theme Modifier */
.section-heading--journal .text-accent,
.section-heading--journal .text-maroon {
  color: #8b1115 !important;
}

.section-heading--journal .icon-scale svg {
  stroke: #8b1115 !important;
}

.section-heading--journal .line-gradient.left {
  background: linear-gradient(to left, rgba(139, 17, 21, 0.55), transparent) !important;
}

.section-heading--journal .line-gradient.right {
  background: linear-gradient(to right, rgba(244, 196, 48, 0.75), transparent) !important;
}

/* Shared Password Visibility Toggle Component */
.password-field-wrapper {
  position: relative !important;
  width: 100%;
  display: block;
}

.password-field-wrapper .form-control,
.password-field-wrapper input.password-toggle-input {
  padding-right: 2.85rem !important; /* ensure input text never flows under eye button */
}

.password-field-wrapper .btn-toggle-password,
.btn-toggle-password {
  position: absolute !important;
  right: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #64748b !important;
  cursor: pointer !important;
  z-index: 5 !important;
  font-size: 1.15rem !important;
  line-height: 1 !important;
  transition: color 0.2s ease !important;
}

.password-field-wrapper .btn-toggle-password:hover,
.password-field-wrapper .btn-toggle-password:focus,
.btn-toggle-password:hover,
.btn-toggle-password:focus {
  color: var(--primary-red, #c41e3a) !important;
  outline: none !important;
}

.icon-scale {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Panel Member Background & Wrapper */
.panel-member-wrapper {
  position: relative;
  overflow: hidden;
}

.panel-member-bg-img {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 580px;
  width: 45%;
  height: auto;
  max-height: 95%;
  object-fit: contain;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.panel-member-wrapper .section-header,
.panel-member-wrapper .marquee-container {
  position: relative;
  z-index: 1;
}



/* Infinite Marquee */
.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}

.marquee-row {
  display: flex;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.marquee-content {
  display: flex;
  gap: 50px;
  padding-right: 50px;
  align-items: center;
}

/* Panel Member Marquee Items */
.marquee-item {
  flex-shrink: 0;
  width: 320px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 16px 24px;
  transition: transform 0.3s ease;
  position: relative;
}

.marquee-item::after {
  content: '';
  position: absolute;
  right: -25px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 70px;
  background: linear-gradient(180deg, transparent 0%, #f4c430 30%, #f4c430 70%, transparent 100%);
  border-radius: 2px;
  pointer-events: none;
}

.marquee-item:hover {
  transform: translateY(-4px);
}

.marquee-item img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.marquee-item:hover img {
  transform: scale(1.15);
}

/*--------------------------------------------------------------
# Book Preview Section Utilities
--------------------------------------------------------------*/
.cursor-pointer {
  cursor: pointer;
}

.transition-all {
  transition: all 0.3s ease;
}

.book-shadow-effect {
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15) !important;
}

/* Thumbnail Hover Effects */
.thumbnail-item:hover .thumbnail-box:not(.active-border) {
  border-color: #adb5bd !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pdf-protected-canvas {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* 3D Page Turn Animations */
.turn-next {
  animation: turnNext 0.6s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

.turn-prev {
  animation: turnPrev 0.6s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

@keyframes turnNext {
  0% {
    transform: perspective(1500px) rotateY(0deg);
    opacity: 1;
  }

  49% {
    transform: perspective(1500px) rotateY(-90deg) scale(0.95);
    opacity: 0.2;
  }

  51% {
    transform: perspective(1500px) rotateY(90deg) scale(0.95);
    opacity: 0.2;
  }

  100% {
    transform: perspective(1500px) rotateY(0deg);
    opacity: 1;
  }
}

@keyframes turnPrev {
  0% {
    transform: perspective(1500px) rotateY(0deg);
    opacity: 1;
  }

  49% {
    transform: perspective(1500px) rotateY(90deg) scale(0.95);
    opacity: 0.2;
  }

  51% {
    transform: perspective(1500px) rotateY(-90deg) scale(0.95);
    opacity: 0.2;
  }

  100% {
    transform: perspective(1500px) rotateY(0deg);
    opacity: 1;
  }
}

/* CSS Keyframes for Marquee */
@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes scrollRight {
  0% {
    transform: translateX(-50%);
  }

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

.row-left-to-right .marquee-content {
  animation: scrollRight var(--marquee-duration, 35s) linear infinite;
  will-change: transform;
}

.row-right-to-left .marquee-content {
  animation: scrollLeft var(--marquee-duration, 35s) linear infinite;
  will-change: transform;
}

/* Pause on hover for smooth interactivity */
.marquee-row:hover .marquee-content {
  animation-play-state: paused;
}

/* Logo strips: continuous branding tracks remain running at comfortable visible velocity */
@media (prefers-reduced-motion: reduce) {
  .row-left-to-right .marquee-content,
  .row-right-to-left .marquee-content,
  .corporate-marquee .marquee-content,
  .marquee-content {
    animation-play-state: running;
  }
}

/* Pagination dots */
.sec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  margin: 0 6px;
  transition: all 0.3s ease;
}

.sec-dot.active {
  background: var(--primary-red);
  width: 22px;
  border-radius: 10px;
}

/* Corporate Appointments Marquee & Ring Styling */
.corporate-marquee .marquee-content {
  animation-duration: var(--marquee-duration, 85s);
}

.corporate-item {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ring-border {
  position: relative;
  width: 210px;
  height: 210px;
  --ring-radius: 103px;
  border-radius: 50%;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ring-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid var(--ring-color);
  -webkit-mask-image: conic-gradient(from 70deg,
      transparent 0deg,
      transparent 40deg,
      #000 40deg,
      #000 360deg);
  mask-image: conic-gradient(from 70deg,
      transparent 0deg,
      transparent 40deg,
      #000 40deg,
      #000 360deg);
  pointer-events: none;
}

.ring-border:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.ring-border::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background-color: var(--ring-color);
  border-radius: 50%;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) rotate(70deg) translateY(calc(-1 * var(--ring-radius))) !important;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.logo-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-inner img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

@media (max-width: 991px) {
  .marquee-item {
    width: 260px;
    height: 115px;
  }

  .ring-border {
    width: 170px;
    height: 170px;
    --ring-radius: 83px;
  }
}

@media (max-width: 576px) {
  .marquee-item {
    width: 200px;
    height: 90px;
  }

  .ring-border {
    width: 140px;
    height: 140px;
    --ring-radius: 68px;
  }
}

/*--------------------------------------------------------------
# Interactive Media Gallery Section
--------------------------------------------------------------*/
.interactive-gallery-section {
  position: relative;
  z-index: 20 !important;
  /* Sits in front of stats section background elements */
  background-color: var(--bg-light, #ffffff);
  padding: 60px 0 80px 0;
  color: var(--text-dark, #1a1a1a);
}

/* Toggle Pill Header */
.gallery-toggle-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.gallery-toggle-pill {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 6px 8px;
  display: inline-flex;
  gap: 8px;
  border: 1px solid #e4e4e7;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.gallery-toggle-btn {
  border: none;
  background: transparent;
  color: #71717a;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 12px 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-toggle-btn svg {
  fill: currentColor;
  width: 18px;
  height: 18px;
  transition: fill 0.3s ease;
}

.gallery-toggle-btn.active {
  background-color: #dc2626;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

.gallery-toggle-btn.active svg {
  fill: #ffffff;
}

/* Main Gallery Grid - Scaled up for high-impact prominent layout */
.gallery-container-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  max-width: 1350px;
  width: 100%;
  margin: 0 auto;
}

/* --- PHOTOS VIEW STYLING (EXHIBIT VINTAGE PAPER CARD) --- */

.photo-featured-wrapper {
  position: relative;
  width: 100%;
}

.exhibit-card-frame {
  position: relative;
  background-color: #f7f3ea;
  border: 1px solid #e2d7c5;
  padding: 16px 18px 18px 18px;
  border-radius: 8px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.05);
}

.exhibit-card-header {
  text-align: center;
  padding-bottom: 10px;
}

.exhibit-header-title {
  color: #6b5c50;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.exhibit-photo-container {
  position: relative;
  width: 100%;
  border: 1.5px solid #262626;
  border-radius: 2px;
  overflow: hidden;
  background-color: #000000;
}

.exhibit-photo-container img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  display: block;
  transition: opacity 0.25s ease;
}

.paperclip-icon {
  position: absolute;
  top: -14px;
  right: 55px;
  z-index: 15;
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.22));
  pointer-events: none;
}

.exhibit-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 14px;
}

.exhibit-meta-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.exhibit-title {
  font-family: var(--font-serif);
  font-weight: 700;
  color: #2d241e;
  font-size: 1.15rem;
  margin: 0;
  line-height: 1.2;
}

.exhibit-location {
  color: #78695c;
  font-size: 0.78rem;
  font-family: var(--font-sans);
  font-weight: 500;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.exhibit-badge {
  border: 1.5px solid #d6c9b5;
  background: #faf7f2;
  border-radius: 12px;
  padding: 3px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #4a3d33;
  font-family: monospace;
}

/* Photo 2x2 Paper Card Thumbnails Grid */
.photo-thumbs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.photo-thumb-item.exhibit-thumb {
  position: relative;
  cursor: pointer;
  background-color: #f7f3ea;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #e2d7c5;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.photo-thumb-item.exhibit-thumb:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.photo-thumb-item.exhibit-thumb.active {
  border-color: #6b1526;
  box-shadow: 0 0 0 2px #6b1526, 0 10px 24px rgba(0, 0, 0, 0.15);
}

.thumb-photo-border {
  border: 1px solid #262626;
  border-radius: 2px;
  overflow: hidden;
}

.thumb-photo-border.maroon-frame,
.photo-thumb-item.thumb-maroon-border .thumb-photo-border {
  border: 2.5px solid #881337 !important;
}

.photo-thumb-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* Push Pin Dots */
.push-pin-dot {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

.push-pin-dot.pin-red {
  background: radial-gradient(circle at 35% 35%, #ef4444 0%, #b91c1c 100%);
  border: 1px solid #991b1b;
}

.push-pin-dot.pin-blue {
  background: radial-gradient(circle at 35% 35%, #3b82f6 0%, #1d4ed8 100%);
  border: 1px solid #1e40af;
}

.push-pin-dot.pin-maroon {
  background: radial-gradient(circle at 35% 35%, #9f1239 0%, #4c0519 100%);
  border: 1px solid #881337;
}


/* --- VIDEOS VIEW STYLING --- */

/* Filmstrip Perforations Texture */
.filmstrip-frame {
  position: relative;
  background-color: #0d0d0d;
  padding: 14px 40px;
  /* Generous padding for film perforations */
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  border: 2px solid #1a1a1a;
  /* Filmstrip sprocket holes texture */
  background-image:
    repeating-linear-gradient(to bottom, #d4d4d8 0px, #d4d4d8 12px, transparent 12px, transparent 26px),
    repeating-linear-gradient(to bottom, #d4d4d8 0px, #d4d4d8 12px, transparent 12px, transparent 26px);
  background-size: 16px 100%;
  background-position: 12px 0, calc(100% - 12px) 0;
  background-repeat: repeat-y;
}

/* Main Featured Video */
.video-featured-wrapper {
  position: relative;
  width: 100%;
}

.video-featured-frame video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background-color: #000000;
  border-radius: 2px;
  transition: opacity 0.2s ease;
}

/* Main Video Play Button Overlay */
.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 10;
}

.video-play-overlay:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(255, 255, 255, 0.7);
}

.video-play-overlay svg {
  width: 32px;
  height: 32px;
  fill: #dc2626;
  margin-left: 5px;
}

/* Video 2x2 Thumbnails Grid */
.video-thumbs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.video-thumb-item {
  position: relative;
  cursor: pointer;
  background-color: #0d0d0d;
  padding: 8px 22px;
  /* Film holes left & right */
  border-radius: 4px;
  border: 2px solid #1a1a1a;
  background-image:
    repeating-linear-gradient(to bottom, #d4d4d8 0px, #d4d4d8 8px, transparent 8px, transparent 18px),
    repeating-linear-gradient(to bottom, #d4d4d8 0px, #d4d4d8 8px, transparent 8px, transparent 18px);
  background-size: 10px 100%;
  background-position: 6px 0, calc(100% - 6px) 0;
  background-repeat: repeat-y;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-thumb-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.video-thumb-item.active {
  border-color: #ef4444;
  box-shadow: 0 0 0 2.5px #dc2626;
}

.video-thumb-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

/* Small Red Play Button for Video Thumbnails */
.thumb-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(3px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

.thumb-play-overlay svg {
  width: 18px;
  height: 18px;
  fill: #dc2626;
  margin-left: 2px;
}

/* --- REFLEX CAMERA MONITOR & LABELED VIDEO GRID STYLING --- */

.reflex-gallery-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  max-width: 1350px;
  width: 100%;
  margin: 0 auto;
  padding-left: 24px;
  /* Space for offset lens */
}

.reflex-monitor-wrapper {
  position: relative;
  width: 100%;
}

/* 3D Optical Lens Component (Offset Left Edge) */
.reflex-3d-lens {
  position: absolute;
  left: -32px;
  top: 48px;
  z-index: 25;
  width: 72px;
  height: 72px;
  pointer-events: none;
}

.lens-outer-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #4b5563 0%, #111827 70%, #000000 100%);
  border: 3px solid #374151;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), inset 0 2px 4px rgba(255, 255, 255, 0.2);
  padding: 6px;
}

.lens-mid-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1f2937 0%, #030712 100%);
  border: 2px solid #111827;
  padding: 5px;
}

.lens-inner-glass {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3b82f6 0%, #1e3a8a 60%, #090d16 100%);
  box-shadow: inset 0 0 10px rgba(59, 130, 246, 0.6);
  overflow: hidden;
}

.lens-glass-reflection {
  position: absolute;
  top: 15%;
  left: 20%;
  width: 45%;
  height: 30%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 50%;
  transform: rotate(-25deg);
}

/* Monitor Casing Unit */
.reflex-monitor-unit {
  position: relative;
  background: linear-gradient(180deg, #1f242d 0%, #14171d 100%);
  border: 4px solid #0f1115;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.reflex-top-bezel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 10px 8px 10px;
}

.bezel-screw {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #4b5563 0%, #1f2937 100%);
  border: 1px solid #111827;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.bezel-label {
  color: #9ca3af;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
}

.reflex-screen-container {
  position: relative;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  background-color: #000000;
  border: 1.5px solid #000000;
}

.reflex-screen-container video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* HUD Technical Overlays */
.reflex-hud-overlay {
  position: absolute;
  z-index: 15;
  pointer-events: none;
  font-family: monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.reflex-hud-overlay.top-left {
  top: 14px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rec-dot {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 8px #ef4444;
  animation: pulse-rec 1.5s infinite;
}

@keyframes pulse-rec {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.rec-text {
  color: #ef4444;
  letter-spacing: 0.1em;
}

.reflex-hud-overlay.top-right {
  top: 14px;
  right: 16px;
}

.reflex-hud-overlay.bottom-left {
  bottom: 14px;
  left: 16px;
  color: #9ca3af;
}

/* Reticle Box with Center Play Overlay */
.reflex-play-reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 15;
  cursor: pointer;
}

.reticle-box {
  width: 48px;
  height: 38px;
  border: 1px dashed rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(2px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.reflex-play-reticle:hover .reticle-box {
  transform: scale(1.08);
  border-color: #ffffff;
}

.play-icon-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-icon-circle svg {
  width: 14px;
  height: 14px;
  margin-left: 2px;
}

.reflex-bottom-bezel {
  text-align: center;
  padding-top: 8px;
}

.reflex-brand-text {
  color: #d1d5db;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.3em;
}

/* Right 2x2 Labeled Video Cards Grid */
.video-thumbs-grid-labeled {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.video-thumb-card-item {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.25s ease;
}

.video-thumb-card-item:hover {
  transform: translateY(-4px);
}

.video-card-thumb-frame {
  position: relative;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid #111827;
  background-color: #0b0d11;
  padding: 6px 18px;
  /* Generous padding for filmstrip sprocket holes */
  background-image:
    repeating-linear-gradient(to bottom, #d1d5db 0px, #d1d5db 6px, transparent 6px, transparent 14px),
    repeating-linear-gradient(to bottom, #d1d5db 0px, #d1d5db 6px, transparent 6px, transparent 14px);
  background-size: 8px 100%;
  background-position: 5px 0, calc(100% - 5px) 0;
  background-repeat: repeat-y;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.video-thumb-card-item.red-highlight-card .video-card-thumb-frame,
.video-thumb-card-item.active .video-card-thumb-frame {
  border: 2px solid #881337 !important;
  box-shadow: 0 0 0 2px #881337, 0 8px 20px rgba(136, 19, 55, 0.35);
}

.video-card-thumb-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 2px;
  border: 1px solid #000000;
}

.card-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: rgba(136, 19, 55, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.card-play-overlay svg {
  width: 14px;
  height: 14px;
  fill: #ffffff;
  margin-left: 2px;
}

.video-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.video-card-title {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  line-height: 1.25;
}

.video-card-time {
  font-size: 0.72rem;
  color: #6b7280;
  font-weight: 500;
  font-family: monospace;
}


/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
  .gallery-container-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 576px) {
  .interactive-gallery-section {
    padding: 40px 0 60px 0;
  }

  .gallery-toggle-btn {
    padding: 8px 18px;
    font-size: 0.8rem;
  }

  .filmstrip-frame {
    padding: 10px 24px;
  }

  .video-thumb-item {
    padding: 6px 14px;
  }
}

/*--------------------------------------------------------------
# Global Scroll Reveal Animation (Slow 1.2s Entrance)
--------------------------------------------------------------*/
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/*--------------------------------------------------------------
# Stats Counter & Professional Endorsement Section
--------------------------------------------------------------*/
.stats-endorsement-section {
  position: relative;
  z-index: 1 !important;
  padding: 80px 0 100px 0;
  background-color: var(--bg-light, #ffffff);
  overflow: visible;
  /* Allows overlapping background graphic between sections */
}

/* Background Overlapping Red Concentric Circles SVG */
.bg-red-circle-wrapper {
  position: absolute;
  top: -140px;
  /* Overlaps seamlessly between bottom of Gallery & top of Stats */
  left: -140px;
  width: 540px;
  height: 540px;
  pointer-events: none;
  z-index: -1 !important;
  /* Sits strictly behind gallery container & frames */
  overflow: visible;
}

.bg-red-circle-svg {
  width: 100%;
  height: 100%;
}

/* Soft Purple Glow Background */
.bg-purple-glow {
  position: absolute;
  top: 10%;
  left: -5%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(233, 213, 255, 0.45) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Watermark Quote Marks on Background */
.bg-quote-watermark {
  position: absolute;
  font-family: var(--font-serif);
  font-size: 260px;
  line-height: 1;
  color: #f3e8ff;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.bg-quote-watermark.left {
  left: 2%;
  top: 35%;
}

.bg-quote-watermark.right {
  right: 3%;
  bottom: 18%;
}

/* Stat Cards - Strictly NO full border outline, ONLY minimal L-shaped dashed corner brackets */
.stat-card {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 34px 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: none !important;
  /* Strictly no full border outline */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

/* Minimal L-Shaped Dashed Corner Brackets */
.stat-corner-bracket {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.stat-corner-bracket.top-left {
  top: 6px;
  left: 6px;
  border-top: 2.5px dashed #f87171;
  border-left: 2.5px dashed #f87171;
}

.stat-corner-bracket.top-right {
  top: 6px;
  right: 6px;
  border-top: 2.5px dashed #f87171;
  border-right: 2.5px dashed #f87171;
}

.stat-corner-bracket.bottom-left {
  bottom: 6px;
  left: 6px;
  border-bottom: 2.5px dashed #f87171;
  border-left: 2.5px dashed #f87171;
}

.stat-corner-bracket.bottom-right {
  bottom: 6px;
  right: 6px;
  border-bottom: 2.5px dashed #f87171;
  border-right: 2.5px dashed #f87171;
}

.stat-number-wrapper {
  font-family: var(--font-sans);
  font-size: 2.6rem;
  font-weight: 700;
  color: #dc2626;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #4b5563;
  text-transform: uppercase;
}

/* Endorsement Oval Quote Card */
.endorsement-card-wrapper {
  position: relative;
  max-width: 820px;
  margin: 40px auto 0 auto;
}

.endorsement-card {
  position: relative;
  background: #ffffff;
  border-radius: 120px;
  padding: 50px 70px;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
  border: 1px solid #f3f4f6;
  /* Gold/yellow arched border along top edge */
  border-top: 3.5px solid #facc15;
}

.endorsement-quote-icon {
  position: absolute;
  top: 28px;
  left: 48px;
  width: 32px;
  height: 32px;
  opacity: 0.25;
}

.endorsement-quote-icon svg {
  fill: #9ca3af;
  width: 100%;
  height: 100%;
}

.endorsement-header {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #374151;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.endorsement-quote {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.65;
  color: #1f2937;
  margin-bottom: 28px;
  transition: opacity 0.2s ease;
}

.endorsement-author-block {
  transition: opacity 0.2s ease;
}

.endorsement-author {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 2px;
}

.endorsement-role {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #6b7280;
}

/* Endorsement Controls (< • ━ • >) */
.endorsement-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.endorsement-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid #e5e7eb;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.endorsement-nav-btn:hover {
  border-color: #dc2626;
  color: #dc2626;
  transform: scale(1.08);
}

.endorsement-nav-btn svg {
  width: 20px;
  height: 20px;
  fill: #6b7280;
  transition: fill 0.2s ease;
}

.endorsement-nav-btn:hover svg {
  fill: #dc2626;
}

.endorsement-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.endorsement-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #d1d5db;
  cursor: pointer;
  transition: all 0.3s ease;
}

.endorsement-dot.active {
  width: 24px;
  border-radius: 10px;
  background-color: #dc2626;
}

/*--------------------------------------------------------------
# Footer Section
--------------------------------------------------------------*/
.site-footer {
  background-color: #ffffff;
  padding: 30px 0 24px 0;
  font-family: var(--font-sans);
}

.footer-location-row {
  gap: 8px;
}

.location-pin-icon {
  width: 18px;
  height: 18px;
  fill: #dc2626;
}

.location-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #dc2626;
}

.footer-divider-line {
  height: 1.5px;
  background-color: #ef4444;
  width: 100%;
  opacity: 0.8;
}

.copyright-text {
  font-size: 0.82rem;
  color: #dc2626;
  font-weight: 500;
}

.follow-text {
  font-size: 0.82rem;
  color: #dc2626;
  font-weight: 600;
}

.social-btn {
  width: 32px;
  height: 32px;
  background-color: #dc2626;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-btn:hover {
  background-color: #b91c1c;
  transform: translateY(-2px);
}

.social-btn svg {
  width: 16px;
  height: 16px;
  fill: #ffffff;
}

/* Responsive for Endorsement & Footer */
@media (max-width: 768px) {
  .endorsement-card {
    border-radius: 40px;
    padding: 36px 24px;
  }

  .endorsement-quote-icon {
    top: 16px;
    left: 20px;
  }

  .endorsement-quote {
    font-size: 1.05rem;
  }

  .bg-red-circle-wrapper {
    width: 300px;
    height: 300px;
    top: -80px;
    left: -80px;
  }
}

/*--------------------------------------------------------------
# Book Page - Hero Section
--------------------------------------------------------------*/

.book-hero-section {
  background-image: url('../img/hero sec- book.png');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
  width: 100%;
  min-height: 480px;
  padding-top: 170px;
  padding-bottom: 70px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #ffffff;
}

.book-hero-content {
  position: relative;
  z-index: 5;
  margin-left: 8%;
  max-width: 360px;
}

.book-hero-logo img {
  max-width: 270px;
  width: 100%;
  height: auto;
}

.publications-badge-wrapper {
  display: flex;
  align-items: center;
}

.publications-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #fce7f3 0%, #f3e8ff 100%);
  color: #831843;
  padding: 8px 20px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid rgba(219, 39, 119, 0.25);
  box-shadow: 0 4px 14px rgba(219, 39, 119, 0.08);
}

.publications-pill-badge i.bi {
  font-size: 0.95rem;
  color: #9d174d;
}

.book-hero-description {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4b5563;
  font-weight: 400;
  margin: 0;
}

/*--------------------------------------------------------------
# Journalist Page - Hero Section
--------------------------------------------------------------*/

.journalist-hero-section {
  background-color: #ffffff;
  background-image: linear-gradient(to right, #ffffff 0%, #ffffff 32%, rgba(255, 255, 255, 0.96) 46%, rgba(255, 255, 255, 0.6) 65%, rgba(255, 255, 255, 0) 85%), url('../img/Journalist/Journalist-hero-section.jpeg');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  width: 100%;
  min-height: 420px;
  padding-top: 125px;
  padding-bottom: 50px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.journalist-hero-content {
  position: relative;
  z-index: 5;
  margin-left: 6%;
  max-width: 460px;
}

.journalist-hero-logo img {
  max-width: 260px;
  width: 100%;
  height: auto;
  display: block;
}

.editorial-badge-wrapper {
  display: flex;
  align-items: center;
}

.editorial-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #fcedeb;
  color: #7b181e;
  padding: 6px 18px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(123, 24, 30, 0.15);
  box-shadow: 0 2px 10px rgba(123, 24, 30, 0.06);
}

.editorial-pill-badge i.bi {
  font-size: 0.95rem;
  color: #7b181e;
}

.journalist-hero-description {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: #475569;
  font-weight: 500;
  margin: 0;
  max-width: 440px;
}

/*--------------------------------------------------------------
# Journalist Page - Journals I Publish With & Action Cards
--------------------------------------------------------------*/
.journals-publish-section {
  position: relative;
  background-color: #ffffff;
  padding: 60px 0 35px 0;
  overflow: hidden;
}

.decorative-red-corner {
  position: absolute;
  top: 0;
  right: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  max-width: 50%;
}

.decorative-red-img {
  display: block;
  max-height: 520px;
  width: auto;
  object-fit: contain;
  object-position: top right;
  opacity: 0.92;
}

/* Partner Logos Row */
.partner-logos-wrapper {
  position: relative;
  z-index: 2;
  padding: 8px 0;
}

/* Journals Publish Section Marquee */
.journals-publish-section .marquee-container {
  padding: 24px 0 28px 0;
  position: relative;
  z-index: 2;
}

.journals-publish-section .marquee-item {
  width: 340px;
  height: 150px;
  padding: 14px 28px;
}

.journals-publish-section .marquee-item img {
  max-width: 250px;
  max-height: 115px;
  object-fit: contain;
  transform: scale(1.15);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.04));
  transition: transform 0.3s ease;
}

.journals-publish-section .marquee-item:hover img {
  transform: scale(1.22);
}

/* Action Cards */
.action-card {
  position: relative;
  border-radius: 1rem;
  background-color: #fef9e7;
  border: 1px solid #f0dfaa;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -6px rgba(185, 28, 28, 0.08), 0 6px 16px -4px rgba(212, 175, 55, 0.12);
}

/* Folded Corner Badge */
.folded-corner-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  pointer-events: none;
  z-index: 5;
}

.corner-fold-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/*--------------------------------------------------------------
# Journalist Page - Featured Articles List Section
--------------------------------------------------------------*/
.featured-articles-section {
  position: relative;
  background-color: #ffffff;
  padding: 15px 0 35px 0;
  overflow: hidden;
}

/* Background Decorative Sweeping Wireframe */
.featured-bg-accent {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
  max-width: 480px;
}

.featured-vector-img {
  display: block;
  max-height: 700px;
  width: auto;
  object-fit: contain;
  object-position: top left;
  opacity: 0.95;
}

/* Search Bar & Sort Dropdown */
.search-sort-bar {
  position: relative;
  z-index: 2;
  margin-bottom: 1.75rem !important;
}

.search-input-wrapper {
  position: relative;
}

.search-input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.05rem;
  pointer-events: none;
}

.featured-search-input {
  width: 100%;
  height: 50px;
  padding-left: 48px;
  padding-right: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #1e293b;
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.featured-search-input:focus {
  border-color: #f4c430;
  box-shadow: 0 0 0 3px rgba(244, 196, 48, 0.2);
  outline: none;
}

.featured-search-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

/* Sort Dropdown */
.sort-dropdown-btn {
  height: 50px;
  padding: 0 24px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background-color: #ffffff;
  color: #1e293b;
  font-size: 0.94rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.sort-dropdown-btn:hover,
.sort-dropdown-btn:focus {
  border-color: #cbd5e1;
  background-color: #f8fafc;
  color: #0f172a;
}

.sort-dropdown-btn::after {
  display: none;
  /* Hide default bootstrap caret */
}

/* Section Title */
.featured-section-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.5px;
  margin-bottom: 2.25rem;
}

/* Article Card Stack with Luxurious Spacing */
.featured-articles-list {
  display: flex;
  flex-direction: column;
  gap: 44px;
  position: relative;
  z-index: 2;
}

.article-card-item {
  position: relative;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.05));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.article-card-item:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 12px 30px rgba(139, 17, 21, 0.1));
}

.article-card-inner {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #edf0f5;
  overflow: hidden;
}

/* Desktop Chevron & Maroon Frame */
@media (min-width: 992px) {
  .article-card-inner {
    border-radius: 18px 0 0 18px;
    clip-path: polygon(0% 0%,
        calc(100% - 150px) 0%,
        100% 50%,
        calc(100% - 150px) 100%,
        0% 100%);
  }

  .card-maroon-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 3;
    background: #8b1115;
    border-top-left-radius: 18px;
    clip-path: polygon(0% 0%,
        calc(100% - 150px) 0%,
        100% 50%,
        calc(100% - 14px) 50%,
        calc(100% - 150px) 8px,
        0% 8px);
  }
}

/* Card Content Grid - Enlarged Dimensions */
.article-card-content {
  display: grid;
  grid-template-columns: 140px 160px 1fr 245px;
  align-items: center;
  min-height: 185px;
  position: relative;
  z-index: 2;
}

/* Col 1: Date & Quill */
.col-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px 16px;
  border-right: 1.5px solid #f2b4ba;
  height: 82%;
  margin: auto 0;
}

.article-date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
}

.date-day {
  font-size: 3.35rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -1.5px;
}

.date-month-year {
  font-size: 0.8rem;
  font-weight: 700;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
  line-height: 1.25;
  text-align: center;
}

.quill-icon-wrapper {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quill-feather-img {
  width: 52px;
  height: auto;
  max-height: 58px;
  object-fit: contain;
  display: block;
}

/* Col 2: Author Profile */
.col-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  text-align: center;
}

.author-avatar-wrapper {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  padding: 2px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.11);
  margin-bottom: 8px;
  overflow: hidden;
}

.author-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.author-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.25;
  text-align: center;
  margin-top: 4px;
}

/* Col 3: Details */
.col-details {
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-tag-group {
  margin-bottom: 8px;
}

.article-category-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #eab308;
  color: #b45309;
  background-color: #fefce8;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tag-divider {
  color: #eab308;
  font-size: 0.8rem;
  line-height: 1;
}

.article-source-text {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

.article-title {
  font-size: 1.48rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 5px 0 8px 0;
  color: #111827;
}

.article-title-link {
  color: #111827;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-title-link:hover {
  color: #8b1115;
}

.article-snippet {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
  max-width: 680px;
}

/* Col 4: Action Button */
.col-action {
  padding-right: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-read-article {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: #c58d24;
  color: #ffffff !important;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 11px 22px;
  min-width: 140px;
  border-radius: 9px;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(197, 141, 36, 0.28);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-read-article:hover {
  background-color: #b07d1f;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(197, 141, 36, 0.38);
}

/* Section Footer View More Button */
.featured-footer-action {
  margin-top: 48px;
  text-align: center;
}

.btn-view-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: #8b1115;
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 600;
  padding: 13px 44px;
  border-radius: 12px;
  border: none;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(139, 17, 21, 0.25);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.btn-view-more:hover {
  background-color: #700d10;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(139, 17, 21, 0.35);
}

/*--------------------------------------------------------------
# Journalist Page - Articles By Our Contributors Section
--------------------------------------------------------------*/
.contributors-section {
  position: relative;
  background-color: #ffffff;
  padding: 30px 0 25px 0;
  overflow: hidden;
}

/* Background Decorative Curve (Bottom Right) */
.contributors-bg-accent {
  position: absolute;
  bottom: -40px;
  right: -20px;
  pointer-events: none;
  z-index: 0;
  max-width: 480px;
}

.contributors-vector-img {
  display: block;
  max-height: 580px;
  width: auto;
  object-fit: contain;
  object-position: bottom right;
  opacity: 0.95;
}

/* Section Title with increased spacing to move cards down */
.contributors-section-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.5px;
  margin-bottom: 95px;
}

/* 4-Column Grid - Generous Spacing Between Contributors */
.contributors-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 260px));
  justify-content: center;
  gap: 48px;
  position: relative;
  z-index: 2;
}

/* Card Styling with Bolder Gradient Border & Elongated Height */
.contributor-card {
  position: relative;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 88px 18px 30px 18px;
  min-height: 365px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 3px solid transparent;
  background: linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, #8b5cf6 0%, #a855f7 35%, #eab308 100%) border-box;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contributor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(139, 92, 246, 0.16);
}

/* Floating Portrait - Enlarged Dimensions */
.contributor-avatar-wrapper {
  position: absolute;
  top: -65px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 130px;
  border-radius: 26px;
  border: 3.5px solid #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  background: #ffffff;
}

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

/* Contributor Meta */
.contributor-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.25;
}

.contributor-role {
  font-size: 0.72rem;
  font-weight: 700;
  color: #eab308;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 5px;
  display: block;
}

.contributor-institution {
  font-size: 0.82rem;
  color: #4b5563;
  font-weight: 500;
  margin-top: 5px;
  display: block;
}

/* Details Row */
.contributor-details-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  margin-top: 22px;
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 500;
}

/* Tag Chevron Action Button */
.btn-contributor-article {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 180px;
  height: 42px;
  background-color: #8b1115;
  color: #ffffff !important;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none !important;
  margin-top: 20px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(139, 17, 21, 0.2);
}

.btn-contributor-article:hover {
  background-color: #700d10;
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(139, 17, 21, 0.3);
}

/*--------------------------------------------------------------
# Books Catalog Section
--------------------------------------------------------------*/
.books-catalog-section {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  padding-top: 50px;
  padding-bottom: 90px;
}

/* Background Decorative Elements */
.bg-deco {
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* Paper vector starts below the filter top controls */
.bg-deco-top-right {
  top: 130px;
  right: -20px;
  max-width: 320px;
  opacity: 0.95;
}

/* Leaf branch positioned centrally behind shelf items (Enlarged & Clear) */
.bg-deco-leaf {
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 680px;
  width: 100%;
  opacity: 0.55;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.05));
}

/* Paper vector at bottom left */
.bg-deco-bottom-left {
  bottom: 0;
  left: -20px;
  max-width: 320px;
  opacity: 0.95;
}

/* Background Bookshelf Illustration SVG (Decoupled pure background) */
.shelf-background-svg {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  /* Sits behind cards and shelf elements */
  pointer-events: none;
  user-select: none;
  width: 450px;
  max-width: 90%;
  opacity: 0.85;
}

/* Filter Tabs & Animations */
.catalog-filter-btn {
  background-color: #ffffff;
  color: #4b5563;
  border: 1.5px solid #e5e7eb;
  border-radius: 30px;
  padding: 8px 18px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.catalog-filter-btn:hover {
  border-color: #e02b70;
  color: #e02b70;
  background-color: rgba(224, 43, 112, 0.04);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(224, 43, 112, 0.15);
}

.catalog-filter-btn.active {
  background-color: #e02b70;
  color: #ffffff;
  border-color: #e02b70;
  box-shadow: 0 6px 18px rgba(224, 43, 112, 0.3);
  transform: scale(1.04);
}

.catalog-filter-btn:active {
  transform: scale(0.96);
}

/* Search Bar */
.catalog-search-wrapper {
  min-width: 280px;
  max-width: 380px;
  width: 100%;
}

.search-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.95rem;
  z-index: 5;
  pointer-events: none;
}

.catalog-search-input {
  border-radius: 30px;
  padding: 9px 20px 9px 42px;
  border: 1.5px solid #e5e7eb;
  font-size: 0.88rem;
  color: #374151;
  background-color: #ffffff;
  transition: all 0.25s ease;
}

.catalog-search-input:focus {
  border-color: #e02b70;
  box-shadow: 0 0 0 3px rgba(224, 43, 112, 0.15);
  outline: none;
}

.catalog-search-input::placeholder {
  color: #9ca3af;
}

/* Bookshelf Items List */
.bookshelf-list {
  position: relative;
  z-index: 2;
}

/* Staggered Card Entrance Animation */
@keyframes cardStaggerFadeIn {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }

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

.bookshelf-item-row {
  position: relative;
  z-index: 3;
  padding-bottom: 10px;
  animation: cardStaggerFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Custom Wooden Shelf Asset Container (Figma Specs: width 1280px / height 99px) */
.wooden-shelf-container {
  width: 100%;
  max-width: 1280px;
  height: 99px;
  position: relative;
  margin-top: -35px;
  z-index: 2;
}

.wooden-shelf-img {
  width: 100%;
  max-width: 1280px;
  height: 99px;
  display: block;
  object-fit: fill;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.18));
}

/* Book Cover Styling & Alignment directly on Wooden Shelf Board & Brackets */
.book-cover-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-left: 104px;
  margin-bottom: 0;
  transform: translateY(40px);
  z-index: 4;
}

.book-cover-card {
  width: 160px;
  height: 245px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  opacity: 1;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  z-index: 3;
}

.book-cover-card:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3) !important;
}

/* Cover Variants */
.cover-kids {
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.arabic-book-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #1f2937;
}

.arabic-author {
  font-size: 0.72rem;
  color: #6b7280;
}

/* Fallback Book Cover (No Image Available) */
.cover-navy {
  background: linear-gradient(140deg, #182848 0%, #0b1426 100%);
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  opacity: 1;
}

.book-placeholder-text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  line-height: 1.35;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  padding: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.book-placeholder-sub {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.5px;
}

/* Hide legacy bracket overlay since image-Photoroom.png includes native brackets */
.shelf-stand-bracket {
  display: none !important;
}

/* Details Box Container with Clean White Background for High Readability */
.book-details-box {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 18px 24px;
  border-radius: 12px;
  position: relative;
  z-index: 5;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.04);
  max-width: 340px;
  width: 100%;
}

.catalog-category-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e02b70;
  display: inline-flex;
  align-items: center;
}

.btn-favorite-heart {
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.25s ease, transform 0.25s ease;
}

.btn-favorite-heart:hover {
  color: #e02b70;
  transform: scale(1.15);
}

.book-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
}

.book-sub-desc {
  font-size: 0.84rem;
  color: #4b5563;
  font-weight: 500;
}

.stars-gold {
  color: #fbbf24;
  font-size: 0.88rem;
}

.rating-number {
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
}

.reviews-count {
  font-size: 0.8rem;
  color: #4b5563;
  font-weight: 500;
}

.btn-show-details {
  background-color: #e02b70;
  color: #ffffff;
  border: none;
  border-radius: 25px;
  padding: 8px 22px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(224, 43, 112, 0.25);
}

.btn-show-details:hover {
  background-color: #c41e5e;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(224, 43, 112, 0.35);
}

/* Row 5 Prominent Enlarged Illustration Card */
.row-illustration-card {
  max-width: 520px;
  margin-bottom: -20px;
  position: relative;
  z-index: 3;
}

.row-illustration-img {
  width: 380px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.1));
}

/* Keyframes for Hero Entrance & Catalog Animations */
@keyframes fadeInUpHero {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes slideDownHeroBadge {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }

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

/* Apply Entrance Animations to Hero Elements */
.book-hero-section .publications-pill-badge {
  animation: slideDownHeroBadge 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.book-hero-section .book-hero-logo {
  animation: fadeInUpHero 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

.book-hero-section .book-hero-description {
  animation: fadeInUpHero 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

/* Responsive adjustments */
@media (max-width: 768px) {

  .bg-deco-top-right,
  .bg-deco-bottom-left {
    max-width: 180px;
  }

  .bg-deco-leaf {
    max-width: 340px !important;
    opacity: 0.35 !important;
  }

  .catalog-search-wrapper {
    max-width: 100%;
  }

  .row-illustration-card {
    max-width: 280px;
  }

  .row-illustration-img {
    width: 260px;
  }

  .book-cover-wrap {
    margin-left: 0;
    margin-bottom: -28px;
  }
}

/*--------------------------------------------------------------
# Book Details Page Styles
--------------------------------------------------------------*/

.book-details-hero-section {
  position: relative;
  padding: 135px 0 95px 0;
  background-color: #ffffff;
  background-image:
    radial-gradient(circle at 86% 22%, rgba(254, 240, 138, 0.45) 0%, rgba(253, 224, 71, 0.18) 180px, transparent 340px),
    url('../img/book-details-background/bg-%20book%20details01.png');
  background-repeat: no-repeat, no-repeat;
  background-position: top right, top left;
  background-size: 530px 550px, 400px auto;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

/* Book Section Flourish Divider (Replaces zigzag separator) */
.book-flourish-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 16px;
  width: 100%;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

.book-flourish-img {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  aspect-ratio: 10 / 1;
  margin: 0 auto;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.book-flourish-img.is-revealed {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 991.98px) {
  .book-flourish-divider {
    padding: 32px 14px;
  }
  .book-flourish-img {
    max-width: 480px;
  }
}

@media (max-width: 575.98px) {
  .book-flourish-divider {
    padding: 28px 12px;
  }
  .book-flourish-img {
    max-width: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .book-flourish-img {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ===== Left Column: Book Image ===== */
.book-showcase-wrapper {
  perspective: 1200px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  overflow: hidden;
}

.book-3d-mockup {
  position: relative;
  transition: transform 0.4s ease, filter 0.4s ease;
  transform: none;
  transform-origin: center center;
}

.book-3d-mockup:hover {
  transform: translateY(-8px);
  filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.24));
}

.book-mockup-img {
  width: 60%;
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 35px rgba(0, 0, 0, 0.18));
  border-radius: 4px;
}

/* ===== Middle Column: Product Info ===== */
.bd-info-col {
  margin-left: 0;
}

@media (max-width: 991px) {
  .bd-info-col {
    margin-left: 0;
  }
}

.bd-info-col {
  margin-left: -180px;
}

@media (max-width: 991px) {
  .bd-info-col {
    margin-left: 0;
  }
}

.badge-bestseller {
  background-color: #fde8e8;
  color: var(--primary-red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 6px 14px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-fav-toggle {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  transition: transform 0.2s ease, color 0.2s ease;
  line-height: 1;
}

.btn-fav-toggle:hover {
  transform: scale(1.15);
  color: var(--primary-red);
}

.book-main-title {
  font-family: var(--font-sans);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
}

.book-arabic-title {
  font-family: "Playfair Display", Georgia, serif, sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: #8e9baf;
  direction: rtl;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.book-credits {
  font-size: 0.95rem;
  color: #6c757d;
  font-weight: 500;
}

.accent-author-name {
  color: var(--primary-red);
  font-weight: 600;
}

/* Meta Info Grid */
.book-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 480px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.meta-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

.book-footer-meta {
  font-size: 0.88rem;
  color: #94a3b8;
  font-weight: 500;
}

/* ===== Right Column: Purchase Card Box (مكبر) ===== */
.purchase-card-box {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  border: 1px solid #f1f5f9;
  position: relative;
  z-index: 5;
}

/* Tabs Switcher */
.purchase-tabs-switcher {
  background-color: #f1f3f5;
  border-radius: 14px;
  gap: 6px;
  padding: 4px;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.tab-btn.active {
  background-color: #ffffff;
  color: var(--text-dark);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Pricing Area */
.pricing-area {
  margin-bottom: 28px;
}

.main-price-text {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
  letter-spacing: -1px;
}

.price-duration-note {
  font-size: 1rem;
  color: #16a34a;
  font-weight: 600;
  margin-top: 6px;
}

.green-dot {
  font-size: 0.7rem;
  color: #16a34a;
}

/* Action Buttons */
.btn-rent-buy-action {
  background-color: var(--primary-red);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 24px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.25);
  transition: all 0.3s ease;
}

.btn-rent-buy-action:hover {
  background-color: #a81730;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.35);
}

.btn-add-to-cart-action {
  background-color: #fef08a;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 24px;
  border-radius: 50px;
  border: 1px solid #facc15;
  transition: all 0.3s ease;
}

.btn-add-to-cart-action:hover {
  background-color: #fde047;
  color: var(--text-dark);
  transform: translateY(-2px);
}

/* Card Footer Actions */
.card-footer-actions {
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}

.card-action-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
  padding: 6px 0;
}

.card-action-btn:hover {
  color: var(--primary-red);
}

.card-action-btn i {
  font-size: 1.1rem;
}

/*--------------------------------------------------------------
# Book Story Section
--------------------------------------------------------------*/
.book-story-section {
  overflow: visible !important;
}

/* More Magic Section Card Hover */
.book-card-hover {
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.book-card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.book-story-section {
  position: relative;
  z-index: 1;
  /* Elevate slightly to rest on top of hero background, but under hero text/zigzag */
}

/* The stack of books background bleeding into hero */
.book-story-section::before {
  content: "";
  position: absolute;
  top: -150px;
  right: 0;
  width: 100%;
  height: calc(100% + 150px);
  background-image: url('../img/book-details-background/bg-%20book%20details02.png');
  background-repeat: no-repeat;
  background-position: top right;
  background-size: 650px auto;
  z-index: -1;
  pointer-events: none;
}

/* Soft yellow radial glow on the left */
.book-story-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 10% 50%, rgba(253, 224, 71, 0.20) 0%, transparent 600px);
  z-index: -2;
  pointer-events: none;
}

.story-book-image {
  transform: translateX(200px);
}

@media (max-width: 991px) {
  .story-book-image {
    transform: translateX(0);
  }
}

/*--------------------------------------------------------------
# Profile Authentication & Dropdown Styles
--------------------------------------------------------------*/
.profile-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.profile-menu {
  min-width: 240px;
  border-radius: 1rem;
  padding: 0.5rem 0;
  margin-top: 10px;
  /* Fix dropdown cutting off the screen edge */
  right: 0 !important;
  left: auto !important;
}

.profile-menu .dropdown-item {
  padding: 0.5rem 1.5rem;
  font-size: 0.95rem;
  transition: all 0.2s ease-in-out;
}

.profile-menu .dropdown-item:hover {
  background-color: #f8f9fa;
  transform: translateX(3px);
}

.profile-photo {
  object-fit: cover;
  border: 3px solid #fff;
}

/* Modal Auth Styles */
.auth-view {
  transition: opacity 0.3s ease-in-out;
}

.auth-view.d-none {
  opacity: 0;
  display: none !important;
}

.auth-view.active-view {
  opacity: 1;
  display: block !important;
}

.btn-auth-submit {
  background-color: var(--primary-red) !important;
  border: none !important;
  color: white !important;
  transition: all 0.2s ease-in-out;
}

.btn-auth-submit:hover {
  background-color: #a0182f !important;
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
  transform: translateY(-2px);
}

#authModal .modal-content {
  background-color: #ffffff;
}

#authModal .form-control {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
}

#authModal .form-control:focus {
  background-color: #fff;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 0.25rem rgba(196, 30, 58, 0.15);
}

.switch-view-btn {
  cursor: pointer;
}

/*--------------------------------------------------------------
# Cart Page Custom Enhancements
--------------------------------------------------------------*/
.cart-page-wrapper {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  background-image: radial-gradient(circle at 86% 22%, rgba(254, 240, 138, 0.55) 0%, rgba(253, 224, 71, 0.22) 180px, transparent 340px);
  background-repeat: no-repeat;
  background-position: top right;
  background-size: 530px 550px;
}


/* Decreased Size Cart Item Box */
.cart-item-card {
  padding: 1rem 1.25rem !important;
  /* Decreased padding from p-4 to tighter padding */
  border: 1px solid #e9d5ff !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192, 132, 252, 0.15) !important;
}

.cart-item-card .cart-item-img {
  width: 90px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
}

.cart-item-card .cart-item-delete {
  width: 32px !important;
  height: 32px !important;
  margin: 0.5rem !important;
  padding: 0 !important;
}

.cart-item-card .cart-item-label {
  font-size: 0.7rem !important;
  padding: 0.25rem 0.65rem !important;
  margin-bottom: 0.5rem !important;
}

.cart-item-card .cart-item-title {
  font-size: 1.05rem !important;
  font-weight: 700;
  margin-bottom: 0.25rem !important;
}

.cart-item-card .cart-item-author {
  font-size: 0.8rem !important;
  margin-bottom: 0.75rem !important;
}

.cart-item-card .quantity-control {
  padding: 2px 4px;
}

.cart-item-card .qty-btn-minus,
.cart-item-card .qty-btn-plus {
  font-size: 1.1rem !important;
  padding: 0 0.5rem !important;
  line-height: 1;
}

.cart-item-card .qty-value {
  font-size: 0.9rem !important;
  padding: 0 0.35rem !important;
}

.cart-item-card .cart-item-price {
  font-size: 1.15rem !important;
}

/* Bottom Right Corner Cart SVG Illustration */
.cart-bottom-right-svg {
  position: absolute;
  bottom: 10px;
  right: 15px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

.cart-bottom-right-svg img {
  max-width: 220px;
  height: auto;
}

@media (max-width: 768px) {
  .cart-item-card {
    padding: 0.85rem !important;
  }

  .cart-item-card .cart-item-img {
    width: 75px;
    height: 95px;
  }

  .cart-bottom-right-svg img {
    max-width: 140px;
  }

  .cart-bg-yellow-circle {
    width: 280px;
    height: 280px;
  }
}

/*--------------------------------------------------------------
# Profile Badge & Modal System (Matching User Reference Design)
--------------------------------------------------------------*/
#profileModal .modal-dialog {
  max-width: 960px;
}

#profileModal .modal-content {
  border-radius: 24px;
  border: none;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.18);
  position: relative;
}

.profile-gradient-banner {
  background: linear-gradient(90deg, #ef4444 0%, #f97316 35%, #eab308 65%, #8b5cf6 100%);
  border-radius: 22px;
  padding: 2.25rem 2.75rem;
  color: #ffffff;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  box-shadow: 0 12px 30px -5px rgba(239, 68, 68, 0.28);
  margin-bottom: 0.5rem;
}

.profile-avatar-wrapper {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  cursor: pointer;
}

.profile-avatar-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  background-color: #ffffff;
}

.profile-avatar-upload-icon {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background-color: #ffffff;
  color: #1f2937;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.profile-avatar-wrapper:hover .profile-avatar-upload-icon {
  transform: scale(1.15);
  background-color: #f3f4f6;
  color: #d1122a;
}

.profile-user-name {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.profile-member-since {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

/* Background Illustration (pana.svg) */
.profile-pana-illustration {
  position: absolute;
  top: 10px;
  right: -15px;
  width: 440px;
  height: auto;
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
}

@media (max-width: 991px) {
  .profile-pana-illustration {
    display: none;
  }
}

/* Profile Navigation Tabs */
.profile-nav-tabs {
  border-bottom: none !important;
  position: relative;
  z-index: 2;
  gap: 0.75rem;
  margin-top: 3.5rem;
  margin-bottom: 2rem;
  background: transparent;
}

.profile-nav-tabs .nav-link {
  position: relative;
  border: none !important;
  background: transparent !important;
  color: #4b5563;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.15rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0 !important;
}

.profile-nav-tabs .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3.5px;
  background: transparent;
  transition: all 0.2s ease;
  border-radius: 2px;
}

.profile-nav-tabs .nav-link:hover {
  color: #111827;
}

.profile-nav-tabs .nav-link.active {
  color: #111827 !important;
  font-weight: 700;
}

.profile-nav-tabs .nav-link.active::after {
  background: linear-gradient(90deg, #fbc02d 0%, #7b1fa2 100%);
}

/* Library Section Header */
.library-header-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.library-icon-badge {
  background-color: #fef9c3;
  color: #ca8a04;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.library-subtitle {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* Book Rental Card */
.library-book-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.25rem 1rem 1rem 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.library-book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08);
}

.library-days-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  z-index: 2;
}

.library-days-badge.yellow-badge {
  background-color: #eab308;
  color: #ffffff;
}

.library-days-badge.expired-badge {
  background-color: #e2e8f0;
  color: #64748b;
}

.library-cover-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.library-cover-container .library-book-cover {
  margin-bottom: 0;
  transition: transform 0.3s ease;
}

.library-read-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  border-radius: 12px;
}

.library-book-card:hover .library-cover-container .library-book-cover {
  transform: scale(1.05);
}

.library-book-card:hover .library-read-overlay {
  opacity: 1;
  visibility: visible;
}

.btn-reading-hover {
  background-color: #d1122a;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 1.25rem;
  border-radius: 20px;
  border: none;
  box-shadow: 0 4px 14px rgba(209, 18, 42, 0.4);
  transform: translateY(8px);
  transition: transform 0.25s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.library-book-card:hover .btn-reading-hover {
  transform: translateY(0);
}

.btn-reading-hover:hover {
  background-color: #b91c1c;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(185, 28, 28, 0.5);
}

.library-book-cover {
  height: 175px;
  width: 100%;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

.library-book-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.2rem;
  text-align: center;
}

.library-book-author {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 1rem;
  text-align: center;
}

.library-progress-section {
  margin-top: auto;
}

.library-progress-bar {
  height: 6px;
  border-radius: 10px;
  background-color: #f3f4f6;
  overflow: hidden;
}

.library-progress-fill {
  height: 100%;
  background-color: #eab308;
  border-radius: 10px;
}

.btn-rent-again {
  background-color: #d1122a;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 8px;
  border: none;
  padding: 0.5rem 1rem;
  width: 100%;
  transition: background-color 0.2s ease;
}

.btn-rent-again:hover {
  background-color: #b91c1c;
  color: #ffffff;
}

/*--------------------------------------------------------------
# 3D Slow-Motion Page Flip Animation for Reader
--------------------------------------------------------------*/
#pdf-spread-container {
  perspective: 1800px;
  transform-style: preserve-3d;
}

.book-shadow-effect {
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 1s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Next Page Flip Animation (Slow Motion) */
.book-shadow-effect.turn-next {
  animation: pageFlipNextSlow 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Previous Page Flip Animation (Slow Motion) */
.book-shadow-effect.turn-prev {
  animation: pageFlipPrevSlow 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pageFlipNextSlow {
  0% {
    transform: rotateY(0deg) scale(1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }

  50% {
    transform: rotateY(-32deg) scale(0.94) translateY(-8px);
    box-shadow: -25px 25px 40px rgba(0, 0, 0, 0.2);
  }

  100% {
    transform: rotateY(0deg) scale(1) translateY(0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }
}

@keyframes pageFlipPrevSlow {
  0% {
    transform: rotateY(0deg) scale(1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }

  50% {
    transform: rotateY(32deg) scale(0.94) translateY(-8px);
    box-shadow: 25px 25px 40px rgba(0, 0, 0, 0.2);
  }

  100% {
    transform: rotateY(0deg) scale(1) translateY(0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }
}

/* Wishlist Cover Hover & Animation Effects */
.wishlist-cover-box {
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.35s ease, border-color 0.35s ease !important;
  cursor: pointer;
}

.wishlist-cover-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12) !important;
  border-color: #fbc02d !important;
}

.wishlist-cover-box img {
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.wishlist-cover-box:hover img {
  transform: scale(1.07);
}

/*--------------------------------------------------------------
# Join Authors Page Styles
--------------------------------------------------------------*/
.join-authors-main-page {
  position: relative;
  padding-top: 115px;
  padding-bottom: 25px;
  background-color: #ffffff;
  overflow: hidden;
}

.ambient-glow-top-right {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(254, 240, 138, 0.22) 0%, rgba(253, 230, 138, 0.1) 40%, rgba(255, 255, 255, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-bottom-right {
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.16) 0%, rgba(192, 132, 252, 0.08) 40%, rgba(255, 255, 255, 0) 70%);
  filter: blur(90px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.join-authors-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #fdeeed;
  color: #7b181e;
  border: 1px solid rgba(254, 202, 202, 0.6);
  padding: 5px 16px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.title-gradient-underline {
  width: 360px;
  max-width: 100%;
  height: 5.5px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f59e0b 0%, #ec4899 40%, #8b5cf6 75%, #3b82f6 100%);
  filter: blur(0.4px);
  margin: 8px auto 28px auto;
  display: block;
}

.title-gradient-underline-left {
  margin: 8px auto 28px 0 !important;
}

.join-authors-card {
  background-color: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 26px;
  padding: 42px 36px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.035);
  max-width: 560px;
  width: 100%;
}

.author-form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 9px;
}

.author-input-field {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background-color: #f8fafc;
  color: #1e293b;
  font-size: 0.96rem;
  transition: all 0.2s ease;
}

.author-input-field:focus {
  background-color: #ffffff;
  border-color: #e11d48;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
  outline: none;
}

.author-input-field::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.author-select-field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 10px;
  padding-right: 40px;
  cursor: pointer;
}

.author-country-select {
  width: 170px;
  max-width: 100%;
}

.author-illustration-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-left: 0;
}

.author-illustration-img {
  max-width: 640px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.06));
  transition: transform 0.3s ease;
}

.author-illustration-img:hover {
  transform: translateY(-4px);
}

.author-textarea-field {
  height: auto !important;
  padding: 16px 18px !important;
  resize: none !important;
  min-height: 175px;
  line-height: 1.6;
}

.author-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 20px;
  background-color: #ffffff;
  min-height: 255px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.author-dropzone:hover,
.author-dropzone.drag-over {
  border-color: #e11d48;
  background-color: #fef2f2;
}

.dropzone-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #fee2e2;
  color: #7b181e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
  transition: transform 0.2s ease;
}

.author-dropzone:hover .dropzone-icon-circle {
  transform: scale(1.08);
}

.dropzone-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.dropzone-subtitle {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0;
}

/*--------------------------------------------------------------
# Law Page Styles (General & Desktop)
--------------------------------------------------------------*/
.text-brand-blue {
  color: #2237C6 !important;
}

.law-hero-viewport {
  margin-top: 70px;
  height: calc(100vh - 70px);
  max-height: calc(100vh - 40px);
  min-height: 480px;
}

@media (min-width: 992px) {
  .law-hero-viewport {
    margin-top: 76px;
    height: calc(100vh - 76px);
    max-height: calc(100vh - 45px);
    min-height: 560px;
  }
}

.hero-bottom-overlay {
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.95) 0%,
      rgba(0, 0, 0, 0.70) 35%,
      rgba(0, 0, 0, 0.22) 70%,
      rgba(0, 0, 0, 0) 100%);
}

.person-img-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.person-cutout {
  width: 130%;
  max-width: 130%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom center;
  transform: translateY(0);
  transform-origin: bottom center;
  transition: transform 0.25s ease;
  pointer-events: none;
  display: block;
  margin-bottom: 0;
}

.person-card:hover .person-cutout {
  transform: scale(1.02);
}

.law-person-name {
  font-family: 'Oswald', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: clamp(13px, 1.4vw, 24px);
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-align: left;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.9);
  margin: 0;
}

/* Law Services Section 2 */
.law-services-section {
  background-color: #ffffff;
  padding: 5.5rem 0;
}

.law-heading-line {
  height: 2px;
  width: 90px;
  border-radius: 2px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .law-heading-line {
    width: 170px;
  }
}

@media (min-width: 1200px) {
  .law-heading-line {
    width: 220px;
  }
}

.law-heading-line.line-left {
  background: linear-gradient(to right, transparent, #F6C445, #2237C6);
}

.law-heading-line.line-right {
  background: linear-gradient(to right, #2237C6, #F6C445, transparent);
}

.scales-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2237C6;
}

.law-services-section .section-subtitle {
  font-family: var(--font-serif, "Playfair Display", Georgia, serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.service-circle-card {
  position: relative;
  width: 100%;
  max-width: 270px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.2rem 1.5rem;
  margin: 0 auto;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.service-circle-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 35px -8px rgba(34, 55, 198, 0.18), 0 6px 18px rgba(246, 196, 69, 0.12);
}

.service-circle-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #F6C445 0%, #2237C6 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: filter 0.35s ease;
}

.service-circle-card:hover::before {
  filter: drop-shadow(0 2px 6px rgba(34, 55, 198, 0.25));
}

.service-icon-badge {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  color: #2237C6;
  font-size: 1.5rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.service-circle-card:hover .service-icon-badge {
  transform: translateY(-3px) scale(1.1);
  color: #1a2fb5;
}

.service-icon-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, #F6C445 0%, #2237C6 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.service-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.service-circle-card:hover .service-card-title {
  color: #2237C6;
}

.service-card-desc {
  font-size: 0.84rem;
  line-height: 1.5;
  color: #6c757d;
  text-align: center;
  margin: 0 auto;
  max-width: 190px;
}

/* ======= Section 3: Law Consultation Cards ======= */
.law-consultation-section {
  position: relative;
  overflow: visible;
}

.law-consultation-section .law-heading-line.line-left {
  background: linear-gradient(to right, transparent, #c9a84c, #ffffff55);
}

.law-consultation-section .law-heading-line.line-right {
  background: linear-gradient(to right, #ffffff55, #c9a84c, transparent);
}

.consultation-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.75rem 1.6rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
}

.consultation-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.consultation-card-icon {
  font-size: 1.35rem;
  color: #c9a84c;
  margin-bottom: 0.65rem;
  display: block;
}

.consultation-card-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.consultation-card-desc {
  font-size: 0.875rem;
  color: #6c757d;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

.consultation-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: #444;
  text-decoration: none;
  text-transform: uppercase;
  border-top: 1px solid #f0f0f0;
  padding-top: 0.75rem;
  transition: color 0.2s ease;
  margin-top: auto;
}

.consultation-card-link:hover {
  color: #1a3cc7;
}

.consultation-card-link i {
  font-size: 0.7rem;
}

/* ======= Section 4: Why Clients Trust Aisha Law Chambers ======= */
.why-trust-section {
  background-color: #f8fafc;
  padding: 5rem 0;
  position: relative;
  overflow: visible;
}

.why-trust-container {
  width: 100%;
  max-width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.why-trust-row {
  row-gap: 2.5rem;
}

.why-trust-content-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.why-trust-header {
  margin-bottom: 2.25rem;
  text-align: left;
}

.why-trust-title-dark {
  font-family: inherit;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  margin: 0 0 0.25rem 0;
}

.why-trust-title-blue {
  font-family: inherit;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  color: #2237C6;
  line-height: 1.15;
  margin: 0;
}

.why-trust-boxes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
  padding: 0.75rem 0.25rem;
}

/* Tilted Double-Line Card (Entire Card, Frame, Text & Checkmarks Rotate Together) */
.why-trust-card-wrapper {
  position: relative;
  width: 100%;
  transition: transform 0.3s ease;
}

/* Left Card: Entire card (frame + content + text) tilts toward the LEFT (~ -8deg to -10deg) */
.why-trust-card-left {
  transform: rotate(-8deg);
}

/* Right Card: Entire card (frame + content + text) tilts toward the RIGHT (~ +8deg to +10deg) */
.why-trust-card-right {
  transform: rotate(8deg);
}

.why-trust-card-left:hover {
  transform: rotate(-9deg) translateY(-4px);
}

.why-trust-card-right:hover {
  transform: rotate(9deg) translateY(-4px);
}

/* ONE Double-Line Frame with Side Openings (Aligned with card) */
.open-double-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
}

/* Top Bracket (Double-line top and upper left & right corners) */
.frame-bracket-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 32%;
  border-top: 4.5px double #2237C6;
  border-left: 4.5px double #2237C6;
  border-right: 4.5px double #2237C6;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

/* Bottom Bracket (Double-line bottom and lower left & right corners) */
.frame-bracket-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 32%;
  border-bottom: 4.5px double #2237C6;
  border-left: 4.5px double #2237C6;
  border-right: 4.5px double #2237C6;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}

/* Content Card: clean white background, seamless rotation with wrapper */
.why-trust-card-content {
  position: relative;
  z-index: 5;
  background-color: #ffffff;
  border-radius: 18px;
  padding: 2.2rem 1.85rem;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(34, 55, 198, 0.05);
  transition: box-shadow 0.25s ease;
}

.why-trust-card-wrapper:hover .why-trust-card-content {
  box-shadow: 0 10px 30px rgba(34, 55, 198, 0.1);
}

/* Checklist Items */
.why-trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.why-trust-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.15rem;
}

.why-trust-item:last-child {
  margin-bottom: 0;
}

.trust-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #10b981;
  font-weight: 800;
  font-size: 1.1rem;
  margin-right: 0.85rem;
  flex-shrink: 0;
  line-height: 1;
}

.trust-text {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
}

/* Right Column: Illustration */
.why-trust-illustration-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}

.why-trust-blob-backdrop {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(34, 55, 198, 0.14) 0%, rgba(219, 234, 254, 0.6) 60%, transparent 80%);
  border-radius: 50%;
  filter: blur(32px);
  pointer-events: none;
  z-index: 1;
}

.why-trust-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.06));
}

/* ========================================
   NFBF PARTY
   ======================================== */

/* Root Accent Variables */
:root {
  --nfbf-primary-gold: #facc15;
  --nfbf-primary-gold-hover: #eab308;
  --nfbf-dark-bg: #1c1c1e;
}

/* Hero & Navigation Compatibility */
#header .navbar-collapse.collapse,
.navbar-expand-lg .navbar-collapse.collapse {
  visibility: visible !important;
}

@media (min-width: 992px) {
  #header .navbar-collapse.collapse,
  .navbar-expand-lg .navbar-collapse.collapse {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  #header .navbar-nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

@media (max-width: 991.98px) {
  #header .navbar-collapse.collapse:not(.show),
  .navbar-expand-lg .navbar-collapse.collapse:not(.show) {
    display: none !important;
  }

  #header .navbar-collapse.collapse.show,
  .navbar-expand-lg .navbar-collapse.collapse.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* Sections */
.section-gold-underline,
.nfbf-section-gold-underline {
  height: 3.5px;
  width: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #facc15 0%, #fde047 60%, transparent 100%);
}

/* Membership */
.flip-digit-card {
  perspective: 1000px;
  -webkit-perspective: 1000px;
}

.flap-fold-top {
  transform-origin: bottom;
  -webkit-transform-origin: bottom;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}

.flap-unfold-bottom {
  transform-origin: top;
  -webkit-transform-origin: top;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  transform: rotateX(90deg);
  -webkit-transform: rotateX(90deg);
}

@keyframes flipTopDown {
  0% {
    transform: rotateX(0deg);
  }

  100% {
    transform: rotateX(-90deg);
  }
}

@keyframes flipBottomDown {
  0% {
    transform: rotateX(90deg);
  }

  100% {
    transform: rotateX(0deg);
  }
}

/* Cards */
.selectable-card,
.nfbf-selectable-card {
  position: relative;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  user-select: none;
}

.selectable-card:hover,
.nfbf-selectable-card:hover {
  border-color: #facc15;
  box-shadow: 0 4px 12px -2px rgba(250, 204, 21, 0.15);
  transform: translateY(-1px);
}

.selectable-card.is-selected,
.nfbf-selectable-card.is-selected {
  border-color: #facc15 !important;
  background-color: #fffdf0 !important;
  box-shadow: 0 0 0 2px #facc15, 0 4px 14px -2px rgba(250, 204, 21, 0.25) !important;
}

.selectable-pill,
.nfbf-selectable-pill {
  border: 1px solid #e2e8f0;
  background-color: #f8fafc;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  user-select: none;
}

.selectable-pill:hover,
.nfbf-selectable-pill:hover {
  border-color: #facc15;
  background-color: #ffffff;
}

.selectable-pill.is-selected,
.nfbf-selectable-pill.is-selected {
  border-color: #facc15 !important;
  background-color: #fffdf0 !important;
  box-shadow: 0 0 0 1.5px #facc15 !important;
}

.checkbox-pill-option,
.nfbf-checkbox-pill-option {
  border: 1px solid #e2e8f0;
  background-color: #f8fafc;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  user-select: none;
}

.checkbox-pill-option:hover,
.nfbf-checkbox-pill-option:hover {
  border-color: #facc15;
  background-color: #ffffff;
}

.checkbox-pill-option.is-checked,
.nfbf-checkbox-pill-option.is-checked {
  border-color: #facc15 !important;
  background-color: #fffdf0 !important;
  box-shadow: 0 0 0 1.5px #facc15 !important;
}

/* Membership Form */
.form-input-control,
.nfbf-form-input-control {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background-color: #f8fafc;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #1e293b;
  outline: none;
  transition: all 0.2s ease-in-out;
}

.form-input-control:focus,
.nfbf-form-input-control:focus {
  border-color: #facc15 !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.25) !important;
}

.form-input-control::placeholder,
.nfbf-form-input-control::placeholder {
  color: #94a3b8;
}

#membershipApplicationForm input[type="date"]::-webkit-calendar-picker-indicator,
.nfbf-form-input-control[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.3) sepia(1) saturate(5) hue-rotate(5deg);
  cursor: pointer;
}

#membershipApplicationForm input[type="radio"],
#membershipApplicationForm input[type="checkbox"] {
  accent-color: #facc15 !important;
}

.is-invalid-field,
.nfbf-is-invalid-field {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
}

/* Buttons */
.nfbf-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  color: #030712 !important;
  background-color: #facc15;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.nfbf-btn-primary:hover {
  background-color: #eab308;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 767.98px) {
  .flip-digit-card {
    border-radius: 0.75rem;
  }
}

/* Compact Rented Status Row & Hero Alignment */
.rented-status-bar {
  background-color: #fef9e7;
  border: 1px solid #f0dfaa;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.82rem;
  line-height: 1.35;
  min-height: 38px;
}

.rented-status-bar .rented-read-link {
  color: var(--primary-red, #8b1115);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
  font-size: 0.82rem;
}

.rented-status-bar .rented-read-link:hover {
  color: #700d10;
  text-decoration: underline;
}

.rent-disabled-hint {
  font-size: 0.78rem;
  color: #64748b;
  text-align: center;
  margin-top: 4px;
}

@media (min-width: 992px) {
  .purchase-card-box {
    min-height: 520px;
  }
  .book-details-hero-row {
    align-items: flex-start !important;
  }
}


/* =============================================================
   CONTACT PAGE MODERN REDESIGN
   ============================================================= */
.contact-eyebrow {
  color: var(--primary-red, #8b1115);
  font-size: 0.85rem;
  letter-spacing: 2px;
  font-weight: 700;
}

.contact-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.1rem, 3.8vw, 2.9rem);
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
}

.contact-title-highlight {
  color: var(--primary-red, #8b1115);
  position: relative;
  display: inline-block;
}

.contact-hero-ornament {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.5rem;
}

.contact-hero-ornament-line {
  height: 2px;
  width: 32px;
  background: linear-gradient(90deg, #c58d24, #8b1115);
  border-radius: 9999px;
}

.contact-info-card {
  background: linear-gradient(150deg, #7b181e 0%, #4a0d11 100%);
  color: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(123, 24, 30, 0.2);
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.contact-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fbc02d;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.contact-info-item:hover .contact-icon-circle {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

.contact-link {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: #fbc02d;
  text-decoration: underline;
  opacity: 1;
}

.contact-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-social-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.contact-social-btn:hover,
.contact-social-btn:focus-visible {
  background: #ffffff;
  color: #8b1115;
  transform: translateY(-2px);
}

.contact-form-card {
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid #f1f5f9;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
}

.contact-input {
  border: 1.5px solid #e2e8f0;
  border-radius: 0.65rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: #fdfefe;
}

.contact-input:focus {
  border-color: #8b1115 !important;
  box-shadow: 0 0 0 0.25rem rgba(139, 17, 21, 0.15) !important;
  background-color: #ffffff;
}

.contact-submit-btn {
  background-color: var(--primary-red, #8b1115) !important;
  border: none !important;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-submit-btn:hover:not(:disabled) {
  background-color: #720e12 !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(139, 17, 21, 0.25) !important;
}

.contact-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.contact-success-card {
  animation: contactFadeIn 0.4s ease forwards;
}

.contact-success-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  border: 2px solid #a7f3d0;
}

.contact-quick-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  height: 100%;
}

.contact-quick-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.contact-quick-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(139, 17, 21, 0.08);
  color: #8b1115;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

@keyframes contactFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-fade-in {
  animation: contactFadeIn 0.5s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
  .contact-fade-in,
  .contact-success-card,
  .contact-quick-card,
  .contact-submit-btn,
  .contact-icon-circle {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
