:root {
  --primary: #006c35;
  --gold: #c6a664;
  --light-green: #f0fdf4;
  --dark-card: #2d3748;
}

body {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  background-color: #ffffff;
  /* User requested white */
  overflow-x: hidden;
}

/* --- Utility Classes --- */
.text-primary-custom {
  color: var(--primary) !important;
}

.bg-primary-custom {
  background-color: var(--primary) !important;
}

.text-gold {
  color: var(--gold) !important;
}

.bg-gold {
  background-color: var(--gold) !important;
}

.bg-light-green {
  background-color: var(--light-green) !important;
}

/* Bootstrap Overrides to Remove Blue */
:root {
  --bs-primary: #006c35;
  --bs-primary-rgb: 0, 108, 53;
  --bs-link-color: #006c35;
  --bs-link-hover-color: #004d25;
  --bs-info: #c6a664;
  /* Map info to Gold as secondary/info */
  --bs-info-rgb: 198, 166, 100;
}

/* Force override common blue classes */
.text-primary {
  color: var(--primary) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.btn-primary:hover {
  background-color: #005a2b !important;
  border-color: #004a23 !important;
}

.btn-outline-primary {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.btn-outline-primary:hover {
  background-color: var(--primary) !important;
  color: white !important;
}

.text-info {
  color: var(--gold) !important;
}

.bg-info {
  background-color: var(--gold) !important;
}

.btn-gold {
  background-color: var(--gold);
  color: white;
  border: none;
}

.btn-gold:hover {
  background-color: #b08d4b;
  color: white;
}

.btn-outline-gold {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn-outline-gold:hover {
  background-color: var(--gold);
  color: #1f2937;
}

.section-header-line {
  width: 80px;
  height: 4px;
  background-color: var(--primary);
  margin: 1rem auto;
  border-radius: 2px;
}

/* --- Navbar --- */
.navbar {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  z-index: 1030;
}

.navbar.scrolled,
.navbar.solid-bg {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.nav-link {
  font-weight: 500;
  position: relative;
  margin: 0 0.5rem;
}

.navbar:not(.scrolled):not(.solid-bg) .nav-link,
.navbar:not(.scrolled):not(.solid-bg) .navbar-brand {
  color: white !important;
}

.navbar.scrolled .nav-link,
.navbar.solid-bg .nav-link {
  color: #4a5568 !important;
}

.navbar.scrolled .nav-link:hover,
.navbar.solid-bg .nav-link:hover {
  color: var(--gold) !important;
}

.navbar.scrolled .navbar-brand,
.navbar.solid-bg .navbar-brand {
  color: #1a202c !important;
}

/* --- Home View Styles --- */
/* --- Layout Standard --- */
.boxed-section {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 0.5rem;
  /* Spacing between sections - Reduced further as requested */
}

.hero-section {
  position: relative;
  height: auto;
  min-height: 400px;
  padding: 3rem 0;
  /* Reduced from 6rem */
  display: flex;
  margin-top: 1rem;
  align-items: center;
  /* overflow: hidden; Removed to fix cropping of quote icon */
  background-color: var(--light-green);
}

/* User overrides */
.detail-hero .display-3 {
  font-size: 20px !important;
}

/* --- Footer Styling --- */
footer.bg-dark {
  background-color: var(--dark-card) !important;
}

.footer-cta {
  background-color: #ffffff !important;
  color: var(--dark-card);
  border: 1px solid rgba(0, 108, 53, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-top: 1rem;
}

.footer-highlight-box {
  /* Class no longer needed, styles merged into footer-cta */
  padding: 0;
}

.footer-section-divider {
  display: none;
  /* Removed as we are splitting sections */
}


.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.badge-custom {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-right: 5px solid var(--gold) !important;
  border-radius: 1rem;
  position: relative;
}

.quote-icon {
  width: 60px;
  height: 60px;
  position: absolute;
  top: -30px;
  left: -30px;
  background-color: var(--primary);
  color: white;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Cards */
.focus-card {
  background: white;
  border-radius: 1rem;
}

.focus-icon-wrapper {
  width: 60px;
  height: 60px;
  background-color: var(--light-green);
  color: var(--primary);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}


/* SDGs */
.sdg-section {
  background-color: #006c35 !important;
  position: relative;
  overflow: hidden;
}

.sdg-pattern {
  position: absolute;
  top: -5%;
  left: -5%;
  opacity: 0.05;
  color: white;
  font-size: 30rem;
  z-index: 0;
}

.sdg-card {
  background: white;
  border-radius: 1rem;
  height: 100%;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  cursor: pointer;
  border: 4px solid transparent;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  /* For links */
  color: inherit;
  transition: all 0.3s ease;
}

.sdg-card:hover {
  border-color: #04391e;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  /* Blur shadow */
}

.sdg-icon-box {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(0, 108, 53, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

/* Removed sdg-overlay */

/* Report Cards */
.report-card {
  border-radius: 1rem;
  overflow: hidden;
  background: white;
  border: 1px solid #e2e8f0;
}

.report-header {
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, #004d25 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.report-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 12px 12px;
}

.report-content-icon {
  text-align: center;
}

.report-hover-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  /* Move to bottom */
  justify-content: center;
  padding-bottom: 10px;
  /* Add spacing from bottom */
  background: transparent;
  pointer-events: none;
  /* Let clicks pass through, but button needs pointer-events */
}

.report-hover-btn a {
  pointer-events: auto;
  /* margin-top: 100px; Removed to center x/y */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #f8f9fa;
  /* Ensure default is light */
  color: var(--primary);
}

.report-hover-btn a:hover {
  background-color: rgba(0, 0, 0, 0.8) !important;
  /* Light black/Dark hover */
  color: white !important;
}

/* --- Detail Page Specific Styles --- */
.detail-hero {
  background-color: transparent;
  border: none;
  margin: 0;
  padding: 3rem 0 4rem 0;
  /* Increased bottom padding */
  position: relative;
  overflow: hidden;
  min-height: auto;
  display: block;
  color: var(--dark-card);
}

.detail-hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  font-size: 20rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: var(--primary);
}

.initiative-card-detail {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.detail-content-card {
  /* margin-top: -3rem; Removed overlap */
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  background: white;
  z-index: 10;
  position: relative;
  overflow: hidden;
}

.kfu-role-box {
  background-color: var(--light-green);
  border-right: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-top: 2rem;
}

.d-none {
  display: none !important;
}

/* --- Carousel Styles --- */
.carousel-wrapper {
  position: relative;
  padding: 0 1rem;
}

.carousel-container {
  overflow-x: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
  padding: 1rem 0 2rem;
  /* Bottom padding for shadow/hover space */
}

.carousel-container::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  /* Ensure track is wide enough */
}

.carousel-item-custom {
  flex: 0 0 auto;
  width: 280px;
  /* Base width for mobile */
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .carousel-item-custom {
    width: 320px;
  }
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.carousel-nav-btn:hover {
  background-color: var(--primary);
  color: white;
}

.carousel-nav-btn.prev {
  right: -20px;
}

.carousel-nav-btn.next {
  left: -20px;
}

.carousel-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f1f5f9;
  color: #cbd5e1;
}

/* --- User Requested Overrides --- */
.hero-banner,
.detail-hero {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
  min-height: auto !important;
}

.detail-hero .lead {
  padding-bottom: 3rem !important;
}

.hero-banner h1,
.hero-banner h2,
.detail-hero h1,
.detail-hero h2,
.detail-hero .display-3 {
  font-size: 20px !important;
}

/* --- Sub-Page General Overrides --- */
body {
  background-color: #ffffff !important;
  /* Force white background on all pages */
}

/* Force smaller headings on sub-pages elements */
.sub-header,
.section-title,
.content-box h3,
.section-header h4 {
  font-size: 18px !important;
  /* Close to h5/h6 size */
}

.hero-banner p.h5 {
  font-size: 16px !important;
}