
:root {
  /* ===== COLORS ===== */

  /* Primary Brand */
  --color-primary: #171482;

  /* Secondary (Accent - Orange) */
  --color-secondary: #F7931E;

  /* Supporting Colors */
  --color-success: #02A95C;
  --color-warning: #FBD459;
  --color-light: #F3F8F6;

  /* Neutrals */
  --color-dark: #1a1a1a;
  --color-gray: #6c757d;
  --color-border: #e5e7eb;
  --color-white: #ffffff;

  /* ===== TYPOGRAPHY ===== */

  --font-primary: "Jost", sans-serif;

  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-md: 18px;
  --font-size-lg: 22px;
  --font-size-xl: 28px;
  --font-size-2xl: 36px;
  --font-size-3xl: 48px;

  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* ===== SPACING ===== */

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;

  /* ===== BORDER RADIUS ===== */

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 20px;
  --radius-pill: 50px;

  /* ===== SHADOWS ===== */

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);

  /* ===== TRANSITIONS ===== */

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  color: var(--color-dark);
  background-color: var(--color-white);
  font-optical-sizing: auto;
  line-height: 1.6;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  font-weight: 300;
}

/* HEADINGS */
h1, h2, h3, h4, h5 {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
}

/* LINKS */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--color-secondary);
}

/* SECTION BACKGROUNDS */
.bg-light-custom {
  background-color: var(--color-light);
}

.btn-primary {
  background-color: var(--color-primary);
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  font-weight: var(--font-weight-medium);
  transition: var(--transition-normal);
}

.btn-primary:hover {
  background-color: #0f0c5c;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

#headerWrapper {
  position: sticky;
  top: 0;
  z-index: 999;
}

/* HEADER EFFECT */
#mainHeader {
  transition: var(--transition-normal);
  padding: 10px 0px;
}
#headerWrapper.scrolled #mainHeader {
  box-shadow: var(--shadow-md);
}

/* #headerWrapper.scrolled .topbar {
  transform: translateY(-100%);
  transition: 0.3s;
} */

#mainHeader.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  background-color: #ffffff;
}

/*#mainHeader::after {*/
/*  content: "";*/
/*  position: absolute;*/
/*  bottom: 0;*/
/*  left: 0;*/
/*  width: 100%;*/
/*  height: 5px;*/

/*  background: linear-gradient(*/
/*    to right,*/
/*    var(--color-primary),*/
/*    var(--color-secondary),*/
/*    var(--color-success),*/
/*    var(--color-warning)*/
/*  );*/
/*}*/

/* NAV LINKS */
.nav-link {
  color: #333;
  transition: 0.3s;
}

.nav-link:hover {
  color: var(--primary-color);
}

/* DROPDOWN */
.dropdown-menu {
  border-radius: 10px;
}

.dropdown-item:hover {
  background-color: #f5f7fb;
  color: var(--primary-color);
}

.main-nav .nav-item {
  transition: transform 0.2s ease;
}

.main-nav .nav-item:hover {
  transform: translateY(-1px);
}

/* ================= NAVBAR ================= */
.main-nav .nav-link {
  position: relative;
  font-weight: var(--font-weight-medium);
  font-size: 16px;
  color: var(--color-dark);
  padding: 8px 4px;
  transition: var(--transition-normal);
}

/* HOVER COLOR */
.main-nav .nav-link:hover {
  color: var(--color-primary);
}

/* UNDERLINE ANIMATION */
.main-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background-color: var(--color-secondary);
  transition: width 0.3s ease;
}

.main-nav .nav-link:hover::after {
  width: 100%;
}

/* ACTIVE LINK */
.main-nav .nav-link.active {
  color: var(--color-primary);
}

.main-nav .nav-link.active::after {
  width: 100%;
}

/* ================= DROPDOWN ================= */
.navbar .dropdown-menu {
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.25s ease;
  margin-top: -5px;
  z-index: 99999;
}

.nav-item.dropdown:hover i {
  transform: rotate(180deg);
  transition: 0.3s;
}

/* DROPDOWN ITEMS */
.dropdown-item {
  font-size: var(--font-size-sm);
  padding: 10px 20px;
  transition: var(--transition-fast);
  color: var(--color-dark);
}

.dropdown-item:hover {
  background-color: var(--color-light);
  color: var(--color-primary);
  padding-left: 24px; /* subtle slide effect */
}

/* ================= HOVER DROPDOWN (DESKTOP ONLY) ================= */
@media (min-width: 992px) {
  .nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* ================= TOPBAR ================= */

.topbar {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 14px;
  padding: 6px 0;
}

/* LEFT ITEMS */
.topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-white);
  text-decoration: none;
  transition: var(--transition-fast);
}

.topbar-item i {
  font-size: 13px;
}

/* HOVER */
.topbar-item:hover {
  color: var(--color-warning);
}

/* DIVIDER */
.divider {
  width: 1px;
  height: 14px;
  background-color: rgba(255,255,255,0.3);
}

/* ================= SOCIAL ICONS ================= */

.social-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-white);
  background-color: rgba(255,255,255,0.1);
  transition: var(--transition-normal);
  font-size: 13px;
}

/* HOVER EFFECT (IMPORTANT) */
.social-icon:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.topbar {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
  .topbar-left span {
    display: none;
  }

  .topbar {
    font-size: 11px;
  }
}

.hero-section {
  position: relative;
  color: var(--color-white);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* OVERLAY (VERY IMPORTANT) */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(24, 20, 130, 0.397),
    rgba(24, 20, 130, 0.253)
  );
}

/* CONTENT ABOVE OVERLAY */
.hero-section .container {
  position: relative;
  z-index: 2;
}

/* SUBTITLE */
.hero-subtitle {
  font-size: var(--font-size-sm);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-warning);
  font-weight: var(--font-weight-medium);
}

/* TITLE */
.hero-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  max-width: 700px;
  color: var(--color-white);
}

/* TEXT */
.hero-text {
  font-size: var(--font-size-md);
  color: rgba(255,255,255,0.9);
  max-width: 500px;
}

/* BUTTONS */
.btn-outline-light-custom {
  border: 2px solid var(--color-white);
  color: var(--color-white);
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  transition: var(--transition-normal);
}

.btn-outline-light-custom:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

/* BUTTON HOVER ENHANCE */
.hero-buttons .btn {
  transition: 0.3s;
}

.hero-buttons .btn:hover {
  transform: translateY(-3px);
}

.hero-buttons .btn-primary-custom{
  color: var(--color-warning);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-text {
    font-size: 14px;
  }

  .hero-section {
    text-align: center;
  }
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: var(--color-secondary);
  opacity: 0.2;
  filter: blur(100px);
}

/* SECTION BASE */
.about-section {
  background-color: var(--color-light);
}

/* SECTION HEADER */
.section-subtitle {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-secondary);
  font-weight: var(--font-weight-medium);
}

.section-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  max-width: 600px;
  margin: 0 auto;
}

.section-title.two{
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  max-width: 100%;
}

.section-text {
  max-width: 600px;
  color: var(--color-gray);
}

/* IMAGE */
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-image img {
  transition: transform 0.4s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

/* TEXT */
.about-heading {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
}

.about-description {
  color: var(--color-gray);
  margin-top: 10px;
}

/* FEATURES */
.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.feature-item i {
  font-size: 20px;
  color: var(--color-primary);
  background: rgba(23, 20, 130, 0.08);
  padding: 10px;
  border-radius: var(--radius-md);
}

/* FEATURE TEXT */
.feature-item h6 {
  margin-bottom: 4px;
  font-weight: var(--font-weight-semibold);
}

.feature-item p {
  font-size: var(--font-size-sm);
  color: var(--color-gray);
  margin: 0;
}

/* CARD */
.strategic-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

/* IMAGE */
.card-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* OVERLAY */
.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(23, 20, 130, 0.6),
    transparent
  );
  opacity: 0;
  transition: var(--transition-normal);
}

/* CONTENT */
.card-content {
  padding: 20px;
}

.card-content h5 {
  font-weight: var(--font-weight-semibold);
  margin-bottom: 10px;
}

.card-content p {
  font-size: var(--font-size-sm);
  color: var(--color-gray);
}

/* HOVER EFFECTS */
.strategic-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.strategic-card:hover img {
  transform: scale(1.08);
}

.strategic-card:hover .image-overlay {
  opacity: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-primary);
  text-decoration: none;
  margin-top: 10px;
  transition: var(--transition-normal);
}

/* ICON */
.read-more i {
  transition: transform 0.3s ease;
}

/* HOVER EFFECT */
.read-more:hover {
  color: var(--color-secondary);
}

.read-more:hover i {
  transform: translateX(5px);
}

/* PARTNERS SLIDER */
.partners-section {
  background-color: var(--color-light);
}

/* SLIDER WRAPPER */
.partners-slider {
  overflow: hidden;
  position: relative;
}

/* TRACK */
.partners-track {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  /* width: max-content; */
  /* animation: scrollLogos 25s linear infinite; */
}

/* LOGO */
.partner-logo img {
  height: 50px;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: var(--transition-normal);
}

/* HOVER EFFECT */
.partner-logo img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* ANIMATION */
@keyframes scrollLogos {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.partners-slider::before,
.partners-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
}

.partners-slider::before {
  left: 0;
  background: linear-gradient(to right, var(--color-light), transparent);
}

.partners-slider::after {
  right: 0;
  background: linear-gradient(to left, var(--color-light), transparent);
}

.partners-slider:hover .partners-track {
  animation-play-state: paused;
}

@media (max-width: 768px) {
  .partners-track {
    gap: 30px;
  }

  .partner-logo img {
    height: 40px;
  }
}

.donate-section {
  position: relative;
  background: url('https://rcra-uganda.org/uploads/rcra-uganda.jpeg') center/cover no-repeat;
  padding: 50px 0;
  color: var(--color-white);
  text-align: center;
  overflow: hidden;
}

/* OVERLAY */
.donate-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(23, 20, 130, 0.9),
    rgba(23, 20, 130, 0.7)
  );
}

/* CONTENT */
.donate-section .container {
  position: relative;
  z-index: 2;
}

/* TEXT */
.donate-subtitle {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-warning);
  font-weight: var(--font-weight-medium);
}

.donate-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  max-width: 600px;
  margin: auto;
  color: var(--color-white);
}

.donate-text {
  max-width: 600px;
  color: rgba(255,255,255,0.9);
}

/* BUTTONS */
.donate-buttons .btn {
  transition: var(--transition-normal);
}

.donate-buttons .btn:hover {
  transform: translateY(-3px);
}

.donate-buttons .btn-primary-custom{
  color: var(--color-warning);
}

.donate-section::before {
  content: "";
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 250px;
  height: 250px;
  background: var(--color-secondary);
  opacity: 0.2;
  filter: blur(120px);
}

/* ================= FOOTER ================= */

.footer {
  background-color: var(--color-primary);
  color: rgba(255,255,255,0.85);
  padding-top: 60px;
}

/* TITLES */
.footer-title {
  color: var(--color-white);
  font-weight: var(--font-weight-bold);
}

.footer-heading {
  color: var(--color-white);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 15px;
}

/* TEXT */
.footer-text {
  font-size: var(--font-size-sm);
}

/* LINKS */
.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-secondary);
  padding-left: 5px;
}

/* CONTACT */
.footer-contact {
  list-style: none;
  padding: 0;
  font-size: var(--font-size-sm);
}

.footer-contact li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* SOCIAL ICONS */
.footer-social a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
  border-radius: 50%;
  margin-right: 6px;
  transition: var(--transition-normal);
}

.footer-social a:hover {
  background: var(--color-secondary);
  transform: translateY(-3px);
}

/* ================= BOTTOM BAR ================= */

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding: 15px 0;
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.7);
}

.footer-bottom a{
  color: white;
}

/* BREADCRUMB */
.breadcrumb-section {
  background: linear-gradient(
      rgba(23, 20, 130, 0.85),
      rgba(23, 20, 130, 0.85)
    ),
    url('https://rcra-uganda.org/uploads/rcra-uganda.jpeg') center/cover no-repeat;

  padding: 100px 0 80px;
  color: var(--color-white);
  text-align: center;
}

.breadcrumb-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
}

.breadcrumb-nav {
  margin-top: 10px;
  font-size: var(--font-size-sm);
}

.breadcrumb-nav a {
  color: rgba(255,255,255,0.8);
}

.breadcrumb-nav .active {
  color: var(--color-warning);
}

.about-page-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-page-image img {
  transition: transform 0.4s ease;
}

.about-page-image:hover img {
  transform: scale(1.05);
}

.mission-card {
  background: var(--color-white);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: var(--transition-normal);
}

.mission-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.mission-card h5 {
  color: var(--color-primary);
  margin-bottom: 10px;
}
.section-title.two{
  width: 100%;
}

.history-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.4s ease;
}

.history-image:hover {
  transform: scale(1.04);
}

.history-block img{
  width: 100%;
}

/* CATEGORY TITLE */
.partner-category-title {
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  text-align: center;
}

/* CARD */
.partner-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

/* LOGO */
.partner-card img {
  max-height: 50px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition-normal);
}

/* HOVER EFFECT */
.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.partner-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.partner-category {
  position: relative;
}

.partner-category:not(:last-child)::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-secondary);
  margin: 40px auto 0;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .partner-card {
    height: 80px;
    padding: 15px;
  }

  .partner-card img {
    max-height: 40px;
  }
}

/* VOLUNTEER */
.benefit-box i {
  font-size: 28px;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.volunteer-form {
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* INPUTS */
.form-control {
  border-radius: var(--radius-sm);
  padding: 12px;
  border: 1px solid var(--color-border);
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: none;
}

.contact-card {
  background: var(--color-white);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.contact-card i {
  font-size: 28px;
  color: var(--color-primary);
  margin-bottom: 10px;
}

/* FORM */
.contact-form {
  background: var(--color-white);
  padding: 35px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* MAP */
.contact-map {
  height: 100%;
  min-height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* WRAPPER */
.login-wrapper {
  font-family: var(--font-primary);
}

/* LEFT SIDE */
.login-left {
  background: linear-gradient(
      rgba(24, 20, 130, 0.267),
      rgba(24, 20, 130, 0.226)
    ),
    url('https://images.pexels.com/photos/36631775/pexels-photo-36631775.jpeg') center/cover no-repeat;

  align-items: center;
  justify-content: center;
}

.login-content {
  max-width: 400px;
  color: var(--color-white);
}

.login-content h2{
  color: var(--color-white);
}

/* RIGHT CARD */
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--color-white);
  padding: 35px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* INPUT */
.form-control {
  padding: 12px;
  border-radius: var(--radius-sm);
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: none;
}

/* PASSWORD ICON */
.toggle-password {
  position: absolute;
  right: 15px;
  top: 38px;
  cursor: pointer;
  color: var(--color-gray);
}

/* MOBILE */
@media (max-width: 768px) {
  .login-card {
    margin: 20px;
  }
}

/* REGISTER SPECIFIC */
.login-card small a {
  color: var(--color-primary);
  text-decoration: none;
}

.login-card small a:hover {
  color: var(--color-secondary);
}

.error-404 {
  min-height: 80vh;
  background: linear-gradient(
    135deg,
    #F3F8F6,
    #ffffff
  );
}

.error-code {
  font-size: 120px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.error-title {
  font-size: 28px;
  font-weight: 600;
  margin-top: 10px;
}

.error-text {
  max-width: 500px;
  color: #666;
  margin-top: 10px;
}