/* ===================================================
   جمعية ود الخيرية - نظام التصميم الجديد
   =================================================== */

@import url("https://fonts.cdnfonts.com/css/dubai");
@import url("https://fonts.cdnfonts.com/css/sukar");
@import url("https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;500;600;700&family=Noto+Sans+Arabic:wght@300;400;500;600;700&display=swap");

/* --- Variables --- */
:root {
  --primary: #2e4056;
  --primary-light: #3e526a;
  --primary-dark: #202d3d;
  --secondary: #577c8d;
  --tertiary: #c7d9e5;
  --gold: #c8a84b;
  --gold-light: #e0c06a;
  --red: #d64045;
  --white: #ffffff;
  --off-white: #f5efea;
  --gray-50: #f1f5f9;
  --gray-100: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --text: #1e293b;
  --text-muted: #475569;
  --shadow-sm: 0 2px 8px rgba(46, 64, 86, 0.08);
  --shadow-md: 0 8px 30px rgba(46, 64, 86, 0.14);
  --shadow-lg: 0 20px 60px rgba(46, 64, 86, 0.2);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Dubai", "Noto Sans Arabic", sans-serif;
  direction: rtl;
  background: var(--off-white);
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5 {
  font-family: "Sukar", "Noto Naskh Arabic", serif;
  font-weight: 700;
  line-height: 1.4;
  color: var(--primary);
}
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}
h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}
h3 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
}
h4 {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

/* --- Utilities --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-pad {
  padding: 64px 0 96px;
}
.text-center {
  text-align: center;
}
.text-white {
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--primary);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 168, 75, 0.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-green {
  background: #22c55e;
  color: var(--white);
  border-color: #22c55e;
}
.btn-green:hover {
  background: #16a34a;
  border-color: #16a34a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);
}
.btn-donate {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
  font-size: 1.05rem;
  padding: 16px 40px;
}
.btn-donate:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(46, 64, 86, 0.3);
}

/* --- Section Title --- */
.section-title {
  text-align: center;
  margin-bottom: 64px;
}
.section-title .eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary);
  background: rgba(87, 124, 141, 0.1);
  border: 1px solid rgba(87, 124, 141, 0.3);
  padding: 4px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.section-title h2 {
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}
.section-title h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
  margin: 12px auto 0;
}
.section-title p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ===================================================
   TOP BAR
   =================================================== */
.top-bar {
  background: var(--primary-dark);
  padding: 8px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.top-bar-left a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.top-bar-left a:hover {
  color: var(--secondary);
}
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.top-bar-right .social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.top-bar-right .social-links a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  transition: var(--transition);
}
.top-bar-right .social-links a:hover {
  background: var(--gold);
  color: var(--primary);
}
.top-bar-right .employee-login {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 4px 12px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  transition: var(--transition);
}
.top-bar-right .employee-login:hover {
  background: var(--gold);
  color: var(--primary);
}

/* ===================================================
   NAVBAR
   =================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  box-shadow: 0 2px 20px rgba(30, 33, 85, 0.2);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(46, 64, 86, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.nav-logo img {
  height: 60px;
  width: auto;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-logo-text span:first-child {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}
.nav-logo-text span:last-child {
  font-size: 0.8rem;
  color: var(--white);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-item {
  position: relative;
  overflow: visible !important;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover,
.nav-item:hover > .nav-link {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold);
}
.nav-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s;
}
.nav-item:hover > .nav-link svg {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: none;
  border: 1px solid var(--gray-100);
  z-index: 1000;
  overflow: visible !important;
}
.dropdown.dropdown-large {
  /* Removed overflow-y to prevent clipping of nested submenus */
  min-width: 280px;
}

.nav-item:hover > .dropdown {
  display: block;
  animation: dropdownIn 0.3s ease;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown a {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--text);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-50);
  transition: var(--transition);
}

.dropdown a svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  opacity: 0.7;
  transition: var(--transition);
  flex-shrink: 0;
}

.dropdown a:hover svg {
  color: var(--gold);
  opacity: 1;
  transform: translateX(-3px);
}
.dropdown a:first-child {
  border-top-right-radius: var(--radius);
  border-top-left-radius: var(--radius);
}
.dropdown a:last-child {
  border-bottom: none;
  border-bottom-right-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
}
.dropdown a:hover {
  background: var(--gray-50);
  color: var(--primary);
  padding-right: 28px;
}

/* Hover Bridge: Prevents dropdown from closing when moving mouse from link to menu */
.dropdown::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

/* Two-column Dropdown */
.dropdown.two-columns {
  display: none;
  min-width: 480px;
  grid-template-columns: 1fr 1fr;
  padding: 12px;
  gap: 4px;
}

.nav-item:hover > .dropdown.two-columns {
  display: grid;
}

.dropdown.two-columns a {
  border-bottom: none;
  border-radius: var(--radius-sm);
}

.dropdown-submenu {
  position: relative;
  overflow: visible !important;
}
.dropdown-submenu > a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}
.dropdown-submenu-content {
  position: absolute;
  top: 0;
  right: 100%;
  margin-right: 0;
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: none;
  border: 1px solid var(--gray-100);
  z-index: 9999 !important; /* Maximum priority */
}
.dropdown-submenu:hover > .dropdown-submenu-content {
  display: block !important;
  animation: slideInRTL 0.25s ease;
}

@keyframes slideInRTL {
  from { opacity: 0; transform: translateX(15px); }
  to { opacity: 1; transform: translateX(0); }
}
.dropdown-submenu-content a:first-child {
  border-top-right-radius: var(--radius);
  border-top-left-radius: var(--radius);
}
.dropdown-submenu:last-child > a {
  border-bottom: none;
  border-bottom-right-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(
      135deg,
      rgba(46, 64, 86, 0.75) 0%,
      rgba(87, 124, 141, 0.65) 100%
    ),
    url("https://images.unsplash.com/photo-1536856136534-bb679c52a9aa?q=80&w=2070&auto=format&fit=crop")
      center/cover no-repeat fixed;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 80% at 20% 50%,
    rgba(199, 217, 229, 0.15) 0%,
    transparent 70%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(87, 124, 141, 0.2);
  border: 1px solid rgba(87, 124, 141, 0.4);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 30px;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.2;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
.hero h1 span {
  color: var(--gold);
}
.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 40px;
  margin-left: auto;
  margin-right: auto;
  max-width: 650px;
}
.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  animation: bounce 2s infinite;
}
.hero-scroll svg {
  width: 20px;
  height: 20px;
}
.hero-shapes {
  position: absolute;
  left: -5%;
  top: 0;
  bottom: 0;
  width: 55%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.12;
}
.hero-shapes svg {
  width: 100%;
  height: 100%;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* Hero Swiper Fixes */
.hero-swiper {
  width: 100%;
  height: 80vh;
  min-height: 600px;
  position: relative;
  overflow: hidden;
}
.hero-swiper .swiper-slide {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
}
.hero-swiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: var(--white);
  opacity: 0.5;
  transition: var(--transition);
}
.hero-swiper .swiper-pagination-bullet-active {
  width: 40px;
  border-radius: 6px;
  background: var(--gold);
  opacity: 1;
}
.hero-swiper .swiper-pagination {
  bottom: 40px !important;
  z-index: 10;
}


/* ===================================================
   STATS
   =================================================== */
.stats {
  background: var(--primary);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 100% at 50% 50%,
    rgba(199, 217, 229, 0.08) 0%,
    transparent 70%
  );
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  position: relative;
  z-index: 1;
}
.stat-card {
  text-align: center;
  padding: 32px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}
.stat-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}
.stat-icon {
  width: 56px;
  height: 56px;
  background: rgba(87, 124, 141, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.stat-icon svg {
  width: 28px;
  height: 28px;
  color: var(--secondary);
}
.stat-number {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
  font-family: "Noto Sans Arabic", sans-serif;
}
.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ===================================================
   ABOUT
   =================================================== */
.about {
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-muted);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  cursor: pointer;
}
.tab-btn:hover {
  background: var(--gray-100);
  color: var(--primary);
  border-color: var(--gray-300);
}
.tab-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.tab-content {
  display: none;
  min-height: 220px;
}
.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}
.tab-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1.1rem;
  line-height: 1.8;
  font-style: normal !important;
  text-align: justify;
}
.tab-content * {
  font-style: normal !important;
}
.about-image-wrap {
  position: relative;
}
.about-image-wrap img {
  border-radius: var(--radius-lg);
  width: 100%;
  object-fit: cover;
  height: 480px;
  box-shadow: var(--shadow-lg);
}
.about-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--gold);
  color: var(--primary);
  padding: 20px 28px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about-badge .years {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}
.about-badge .years-label {
  font-size: 0.8rem;
  font-weight: 600;
}

/* ===================================================
   PROGRAMS
   =================================================== */
.programs {
  background: var(--gray-50);
}
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.program-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}
.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.program-card-img {
  height: 220px;
  background: var(--primary);
  position: relative;
  overflow: hidden;
}
.program-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.program-card:hover .program-card-img img {
  transform: scale(1.06);
}
.program-card-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--secondary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}
.program-card-body {
  padding: 24px;
}
.program-card-body h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}
.program-card-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.program-card-body a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--primary);
  transition: var(--transition);
}
.program-card-body a:hover {
  gap: 12px;
  color: var(--secondary);
}

/* ===================================================
   DONATION
   =================================================== */
.donation {
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary) 100%
  );
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.donation::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 80% at 30% 50%,
    rgba(87, 124, 141, 0.1) 0%,
    transparent 70%
  );
}
.donation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.donation-heading {
  color: var(--white);
  margin-bottom: 16px;
}
.donation-text-desc {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  font-size: 1.05rem;
}
.donation-ways {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.donation-way {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  cursor: pointer;
}
.donation-way:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--gold);
}
.donation-way-icon {
  width: 48px;
  height: 48px;
  background: rgba(200, 168, 75, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.donation-way-icon svg {
  width: 24px;
  height: 24px;
  color: var(--gold);
}
.donation-way-text h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 4px;
}
.donation-way-text p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  margin: 0;
}
.sms-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.sms-box h3 {
  color: var(--gold);
  margin-bottom: 20px;
}
.sms-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sms-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.sms-num {
  width: 36px;
  height: 36px;
  background: var(--gold);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.sms-item p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.7;
}

/* ===================================================
   NEWS
   =================================================== */
.news {
  background: var(--white);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.news-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--gray-100);
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.news-card:hover .news-card-img img {
  transform: scale(1.07);
}
.news-card-date {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.news-card-body {
  padding: 24px;
}
.news-card-body h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-body p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-body a.read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.news-card-body a.read-more:hover {
  color: var(--gold);
  gap: 10px;
}
.news-all-btn {
  text-align: center;
  margin-top: 16px;
}

/* ===================================================
   BACK TO TOP
   =================================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--gold);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--primary);
  color: var(--gold);
  transform: translateY(-5px);
}

/* ===================================================
   ANIMATIONS
   =================================================== */
.gallery {
  background: var(--gray-50);
}
/* --- High-End Gallery Grid System --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

/* Hero Item Patterns for Masonry look */
.gallery-item:nth-child(5n + 1) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(46, 64, 86, 0.9) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateY(10px);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay span {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Responsive Masonry */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 240px;
    }
    .gallery-item:nth-child(5n + 1) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
    }
}

/* ===================================================
   CTA BANNER
   =================================================== */
.cta-banner {
  background: var(--primary);
  padding: 80px 0;
  color: var(--white);
}
.cta-banner h2 {
  color: var(--white);
  margin-bottom: 12px;
}
.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}
.btn-cta-dark {
  background: var(--secondary);
  color: var(--white);
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-cta-dark:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ===================================================
   PARTNERS
   =================================================== */
.partners {
  background: var(--white);
  padding: 64px 0;
}
.partners-track {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;
}
.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}
.partner-logo-wrap {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 16px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-item:hover .partner-logo-wrap {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.partner-logo-wrap img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
}
.partner-name {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
}

/* ===================================================
   SPONSORS (Success Partners)
   =================================================== */
.sponsors {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  padding: 60px 0;
}
.sponsors-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.sponsors-logo {
  flex: 0 0 auto;
  width: 140px;
  height: 80px;
  background: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  padding: 16px;
}
.sponsors-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.7;
  transition:
    opacity 0.3s,
    transform 0.3s;
  /* Filter: grayscale(1) to make them blend, remove if true logos */
  filter: grayscale(1) contrast(1.2);
}
.sponsors-logo:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.sponsors-logo:hover img {
  opacity: 1;
  filter: grayscale(0);
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.footer-brand .logo-wrap img {
  height: 52px;
}
.footer-brand .logo-wrap span {
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.9;
  margin-bottom: 24px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--secondary);
  color: var(--white);
}
.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 2px;
  background: var(--secondary);
  border-radius: 1px;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul li a:hover {
  color: var(--secondary);
  padding-right: 4px;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.875rem;
}
.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 3px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}
.footer-bottom a {
  color: var(--secondary);
}

/* ===================================================
   MOBILE MENU OVERLAY
   =================================================== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  bottom: 0;
  width: 300px;
  background: var(--primary);
  z-index: 2000;
  padding: 80px 24px 40px;
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open {
  right: 0;
}
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}
.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mobile-nav-close {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
}
.mobile-nav a {
  display: block;
  padding: 14px 0;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
}
.mobile-nav a:hover {
  color: var(--gold);
  padding-right: 8px;
}
.mobile-nav .mobile-donate {
  display: block;
  margin-top: 24px;
  text-align: center;
  background: var(--gold);
  color: var(--primary);
  padding: 14px;
  border-radius: 50px;
  font-weight: 700;
}

/* Mobile Accordions */
.mobile-dropdown {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-dropdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  font-weight: 500;
  list-style: none; /* Hide default triangle */
  cursor: pointer;
  transition: var(--transition);
}
.mobile-dropdown summary::-webkit-details-marker {
  display: none;
}
.mobile-dropdown summary:hover {
  color: var(--gold);
  padding-right: 8px;
}
.mobile-dropdown[open] summary {
  color: var(--gold);
}
.mobile-dropdown[open] summary svg {
  transform: rotate(180deg);
}
.mobile-dropdown-content {
  padding-right: 16px;
  padding-bottom: 12px;
}
.mobile-dropdown-content a {
  padding: 8px 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: none;
}
.mobile-dropdown-content a:hover {
  color: var(--white);
  padding-right: 8px;
}
.mobile-dropdown-sub {
  margin-top: 8px;
  margin-bottom: 8px;
}
.mobile-dropdown-sub .sub-title {
  display: block;
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 4px;
  font-weight: 600;
}
.mobile-dropdown-sub a {
  padding-right: 12px;
  position: relative;
}
.mobile-dropdown-sub a::before {
  content: "•";
  position: absolute;
  right: 0;
  color: rgba(255, 255, 255, 0.3);
}

/* ===================================================
   ANIMATIONS
   =================================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s,
    transform 0.7s;
}
[data-aos="fade-right"] {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.7s,
    transform 0.7s;
}
[data-aos="fade-left"] {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.7s,
    transform 0.7s;
}
[data-aos].aos-animate {
  opacity: 1;
  transform: translate(0);
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-image-wrap {
    display: none;
  }
  .donation-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-item:nth-child(1) {
    grid-column: span 2;
  }
}
@media (max-width: 768px) {
  .section-pad {
    padding: 64px 0;
  }
  .nav-menu {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .mobile-nav {
    display: block;
  }
  .mobile-nav-overlay {
    display: block;
  }
  .top-bar-left span:last-child {
    display: none;
  }
  .hero {
    min-height: 55vh;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item:nth-child(1) {
    grid-column: span 2;
  }
  .cta-banner .container {
    flex-direction: column;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-btns {
    flex-direction: column;
  }
  .hero-btns .btn {
    width: 100%;
    justify-content: center;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item:nth-child(1) {
    grid-column: span 1;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================================
   THEME TOGGLE BUTTON
   =================================================== */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gold);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(15deg);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.theme-toggle .icon-sun {
  display: none;
}
.theme-toggle .icon-moon {
  display: block;
}

/* Logo switching for dark/light mode */
.logo-light {
  display: none;
}
.logo-dark {
  display: block;
}
[data-theme="light"] .logo-light {
  display: block;
}
[data-theme="light"] .logo-dark {
  display: none;
}

[data-theme="light"] .theme-toggle {
  background: rgba(44, 45, 75, 0.08);
  border-color: rgba(44, 45, 75, 0.15);
  color: var(--primary);
}
[data-theme="light"] .theme-toggle:hover {
  background: rgba(44, 45, 75, 0.15);
}
[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}
[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

/* ===================================================
   LIGHT MODE OVERRIDES
   =================================================== */

/* --- Top Bar --- */
[data-theme="light"] .top-bar {
  background: var(--gray-50);
  color: var(--text-muted);
  border-bottom: 1px solid var(--gray-100);
}
[data-theme="light"] .top-bar-left a {
  color: var(--text-muted);
}
[data-theme="light"] .top-bar-right .social-links a {
  background: rgba(44, 45, 75, 0.08);
  color: var(--text-muted);
}
[data-theme="light"] .top-bar-right .social-links a:hover {
  background: var(--gold);
  color: var(--white);
}
[data-theme="light"] .top-bar-right .employee-login {
  color: var(--primary);
  border-color: var(--primary);
}
[data-theme="light"] .top-bar-right .employee-login:hover {
  background: var(--primary);
  color: var(--white);
}

/* --- Navbar --- */
[data-theme="light"] .navbar {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
}
[data-theme="light"] .nav-logo-text span:first-child {
  color: var(--primary);
}
[data-theme="light"] .nav-link {
  color: var(--text);
}
[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-item:hover > .nav-link {
  background: var(--gray-50);
  color: var(--gold);
}
[data-theme="light"] .hamburger span {
  background: var(--primary);
}

/* --- Hero --- */
[data-theme="light"] .hero {
  background:
    linear-gradient(
      135deg,
      rgba(248, 250, 252, 0.88) 0%,
      rgba(241, 245, 249, 0.82) 50%,
      rgba(248, 250, 252, 0.85) 100%
    ),
    url("https://images.unsplash.com/photo-1536856136534-bb679c52a9aa?q=80&w=2070&auto=format&fit=crop")
      center/cover no-repeat fixed;
}
[data-theme="light"] .hero::before {
  background:
    radial-gradient(
      ellipse 60% 80% at 20% 50%,
      rgba(200, 168, 75, 0.08) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 60% at 80% 20%,
      rgba(44, 45, 75, 0.05) 0%,
      transparent 60%
    );
}
[data-theme="light"] .hero h1 {
  color: var(--primary);
  text-shadow: none;
}
[data-theme="light"] .hero p {
  color: var(--text-muted);
}
[data-theme="light"] .hero-badge {
  background: rgba(44, 45, 75, 0.06);
  border-color: rgba(44, 45, 75, 0.15);
  color: var(--primary);
}
[data-theme="light"] .hero-scroll {
  color: var(--text-muted);
}
[data-theme="light"] .btn-outline {
  color: var(--primary);
  border-color: var(--primary);
}
[data-theme="light"] .btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* --- Stats --- */
[data-theme="light"] .stats {
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
[data-theme="light"] .stats::before {
  background: radial-gradient(
    ellipse 80% 100% at 50% 50%,
    rgba(200, 168, 75, 0.04) 0%,
    transparent 70%
  );
}
[data-theme="light"] .stat-card {
  background: var(--gray-50);
  border-color: var(--gray-100);
}
[data-theme="light"] .stat-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
}
[data-theme="light"] .stat-icon {
  background: rgba(200, 168, 75, 0.1);
}
[data-theme="light"] .stat-number {
  color: var(--primary);
}
[data-theme="light"] .stat-label {
  color: var(--text-muted);
}

/* --- Donation --- */
[data-theme="light"] .donation {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
[data-theme="light"] .donation::before {
  background: radial-gradient(
    ellipse 60% 80% at 30% 50%,
    rgba(200, 168, 75, 0.06) 0%,
    transparent 70%
  );
}
[data-theme="light"] .donation-heading {
  color: var(--primary);
}
[data-theme="light"] .donation-text-desc {
  color: var(--text-muted);
}
[data-theme="light"] .donation-way {
  background: var(--white);
  border-color: var(--gray-100);
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .donation-way:hover {
  background: var(--gray-50);
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
}
[data-theme="light"] .donation-way-icon {
  background: rgba(87, 124, 141, 0.12);
}
[data-theme="light"] .donation-way-text h4 {
  color: var(--primary);
}
[data-theme="light"] .donation-way-text p {
  color: var(--text-muted);
}
[data-theme="light"] .sms-box {
  background: var(--white);
  border-color: var(--gray-100);
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .sms-box h3 {
  color: var(--primary);
}
[data-theme="light"] .sms-item {
  border-bottom-color: var(--gray-100);
}
[data-theme="light"] .sms-item p {
  color: var(--text-muted);
}
[data-theme="light"] .tab-content p {
  color: var(--text-muted);
  font-style: normal;
  text-align: justify;
  line-height: 1.8;
}
[data-theme="light"] .btn-donate {
  background: var(--gold);
  color: var(--primary);
  border-color: var(--gold);
}
[data-theme="light"] .btn-donate:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--white);
}

/* --- CTA Banner --- */
[data-theme="light"] .cta-banner {
  background: var(--primary);
}
[data-theme="light"] .cta-banner h2 {
  color: var(--white);
}
[data-theme="light"] .cta-banner p {
  color: rgba(255, 255, 255, 0.8);
}
[data-theme="light"] .btn-cta-dark {
  background: var(--gold);
  color: var(--primary);
}
[data-theme="light"] .btn-cta-dark:hover {
  background: var(--gold-light);
}

/* --- Footer --- */
[data-theme="light"] .footer {
  background: var(--gray-50);
  color: var(--text-muted);
  border-top: 1px solid var(--gray-100);
}
[data-theme="light"] .footer-brand .logo-wrap span {
  color: var(--primary);
}
[data-theme="light"] .footer-social a {
  background: rgba(44, 45, 75, 0.06);
  color: var(--text-muted);
}
[data-theme="light"] .footer-social a:hover {
  background: var(--secondary);
  color: var(--white);
}
[data-theme="light"] .footer-col h4 {
  color: var(--primary);
}
[data-theme="light"] .footer-col ul li a {
  color: var(--text-muted);
}
[data-theme="light"] .footer-col ul li a:hover {
  color: var(--secondary);
}
[data-theme="light"] .footer-contact-item {
  color: var(--text-muted);
}
[data-theme="light"] .footer-bottom {
  border-top-color: var(--gray-100);
  color: var(--gray-500);
}

/* --- Mobile Nav --- */
[data-theme="light"] .mobile-nav {
  background: var(--white);
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .mobile-nav-close {
  background: var(--gray-50);
  color: var(--primary);
}
[data-theme="light"] .mobile-nav a {
  color: var(--text);
  border-bottom-color: var(--gray-100);
}
[data-theme="light"] .mobile-nav a:hover {
  color: var(--secondary);
}
[data-theme="light"] .mobile-nav .mobile-donate {
  background: var(--secondary);
  color: var(--white);
}
[data-theme="light"] .mobile-dropdown {
  border-bottom-color: var(--gray-100);
}
[data-theme="light"] .mobile-dropdown summary {
  color: var(--text);
}
[data-theme="light"] .mobile-dropdown-content a {
  color: var(--text-muted);
  border-bottom-color: var(--gray-50);
}
[data-theme="light"] .mobile-dropdown-content a:hover {
  color: var(--secondary);
}
[data-theme="light"] .mobile-dropdown-sub .sub-title {
  color: var(--primary);
}

/* --- News Card Date Badge --- */
[data-theme="light"] .news-card-date {
  background: var(--secondary);
  color: var(--white);
}
[data-theme="light"] .news-card-body a.read-more {
  color: var(--primary);
}

/* --- Back to Top --- */
[data-theme="light"] .back-to-top {
  background: var(--primary);
  color: var(--white);
}
[data-theme="light"] .back-to-top:hover {
  background: var(--secondary);
  color: var(--white);
}

/* --- Newsletter (if present) --- */
[data-theme="light"] .newsletter {
  background: var(--primary);
}

/* --- Smooth Transition for Theme Switch --- */
[data-theme="light"],
[data-theme="light"] .navbar,
[data-theme="light"] .top-bar,
[data-theme="light"] .hero,
[data-theme="light"] .stats,
[data-theme="light"] .donation,
[data-theme="light"] .footer,
[data-theme="light"] .mobile-nav {
  transition:
    background 0.4s ease,
    color 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

/* --- Inner Page Styles --- */
.inner-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
  padding: 60px 0;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.inner-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.05;
    pointer-events: none;
}

.inner-header h1 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Dubai', sans-serif;
}

.breadcrumb a {
  color: var(--gold-light);
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--white);
  text-decoration: underline;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.breadcrumb-item::after {
  content: "←";
  opacity: 0.4;
}

.breadcrumb-item:last-child {
    color: var(--white);
    font-weight: 500;
}

.breadcrumb-item:last-child::after {
  display: none;
}


.inner-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 50px;
  align-items: start;
}

.inner-layout.full-width {
    grid-template-columns: 1fr;
}

/* Sidebar Styling */
.inner-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}

.sidebar-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--gray-50);
  position: relative;
}

.sidebar-title::after {
    content: "";
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-list li a {
  display: block;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
  background: var(--gray-50);
  border-right: 4px solid transparent;
}

.sidebar-list li a:hover,
.sidebar-list li.active a {
  background: rgba(200, 168, 75, 0.1);
  color: var(--primary);
  border-right-color: var(--secondary);
  font-weight: 700;
  padding-right: 25px;
}

.sidebar-promo {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    padding: 35px;
    color: var(--white);
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.sidebar-promo::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(200,168,75,0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.sidebar-promo h3, 
.sidebar-promo p, 
.sidebar-promo .btn {
    position: relative;
    z-index: 1;
}

.sidebar-promo h3 {
    color: var(--gold-light);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.sidebar-promo p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Content Card Styling */
.inner-content-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 60px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}

/* Typography Engine - Ultra-Robust Normalization */
.typography {
    color: var(--text);
    line-height: 1.8;
    font-size: 1rem !important;
}

.typography p, 
.typography div,
.typography span, 
.typography font,
.typography li,
.typography td,
.typography tr {
    font-size: 1rem !important;
    line-height: 1.8 !important;
}

/* Headings within content must be clearly larger */
.typography h2 { font-size: 1.8rem !important; margin: 30px 0 15px !important; }
.typography h3 { font-size: 1.5rem !important; margin: 25px 0 12px !important; }
.typography h4 { font-size: 1.2rem !important; margin: 20px 0 10px !important; }

/* Global Inner Header Title - Ensuring massive distinction */
.inner-header h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

.typography p {
    margin-bottom: 25px;
}

.typography ul, .typography ol {
    margin-bottom: 30px;
    padding-right: 20px;
}

.typography li {
    margin-bottom: 12px;
    position: relative;
}

.typography ul li::before {
    content: "•";
    color: var(--secondary);
    position: absolute;
    right: -20px;
    font-weight: 800;
}

.typography blockquote {
    margin: 40px 0;
    padding: 30px 40px;
    background: var(--gray-50);
    border-right: 6px solid var(--secondary);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--primary);
    border-radius: var(--radius-sm);
}

.typography img {
    border-radius: var(--radius);
    margin: 30px 0;
    box-shadow: var(--shadow-sm);
}

/* Light/Dark Mode Adjustments for Inner Pages - Forced Light for Content Area per User Request */
[data-theme="dark"] .sidebar-widget,
[data-theme="dark"] .inner-content-card,
[data-theme="dark"] .nav-card,
[data-theme="dark"] .form-card {
  background: var(--white) !important; 
  border-color: var(--gray-100) !important;
}

[data-theme="dark"] .sidebar-title,
[data-theme="dark"] .form-section-header h3 {
  color: var(--primary) !important;
  border-bottom-color: var(--gray-50) !important;
}

[data-theme="dark"] .sidebar-list li a {
  background: var(--gray-50) !important;
  color: var(--text-muted) !important;
}

[data-theme="dark"] .sidebar-list li a:hover,
[data-theme="dark"] .sidebar-list li.active a {
  background: rgba(200, 168, 75, 0.1) !important;
  color: var(--primary) !important;
}

[data-theme="dark"] .typography,
[data-theme="dark"] .form-label,
[data-theme="dark"] .nav-card h3,
[data-theme="dark"] .nav-card h4,
[data-theme="dark"] .nav-card p {
    color: var(--text) !important; 
}

[data-theme="dark"] .typography h2, 
[data-theme="dark"] .typography h3, 
[data-theme="dark"] .typography h4 {
    color: var(--primary) !important;
}

[data-theme="dark"] .typography blockquote {
    background: var(--gray-50) !important;
    color: var(--primary) !important;
}


/* --- Custom Modern Grid System --- */
.items-grid {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
    margin-top: 30px;
}

[class*="col-"] {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 992px) {
    .col-lg-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
    .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-lg-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

.nav-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-50);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}

/* --- Premium Modern Pagination (Final Unified Fix) --- */
.pagination-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 60px !important;
    padding: 24px 0 !important;
    flex-wrap: wrap;
    gap: 10px;
    direction: rtl !important;
}

/* Structural bypass for legacy tables */
.pagination-container table,
.pagination-container tbody,
.pagination-container tr,
.pagination-container td {
    display: flex !important;
    flex-wrap: wrap;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

/* --- Contact Page Specifics --- */
.contact-methods-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-method-item {
    display: flex;
    gap: 15px;
}

.contact-icon-box {
    width: 50px;
    height: 50px;
    background: rgba(200, 168, 75, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    flex-shrink: 0;
}

.contact-method-text h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--primary);
}

.contact-method-text p {
    margin: 0;
    color: var(--text-muted);
}

.contact-map-mini {
    margin-top: 40px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

/* Standardized navigational elements (Unified for all legacy tags) */
.pagination-container a, 
.pagination-container span,
.pagination-container b,
.pagination-container strong,
.pagination-container font {
    min-width: 46px !important;
    height: 46px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 16px !important;
    border-radius: 12px !important;
    background: var(--white) !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    border: 1px solid var(--gray-100) !important;
    box-shadow: var(--shadow-sm) !important;
    margin: 4px !important;
    position: relative !important;
}

/* Interaction States */
.pagination-container a:hover {
    background: var(--gold) !important;
    color: var(--white) !important;
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-md) !important;
    border-color: var(--gold) !important;
    z-index: 10 !important;
}

/* Active Indicator */
.p-btn.active,
.pagination-container b,
.pagination-container strong,
.pagination-container .current,
.pagination-container font[color],
.pagination-container .active {
    background: var(--primary) !important;
    color: var(--white) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 6px 15px rgba(46, 64, 86, 0.3) !important;
    transform: scale(1.1) !important;
    z-index: 5 !important;
    pointer-events: none !important;
}

/* Localized RTL Arrows */
.pagination-container a[title*="Next"]::before, .pagination-container a[title*="التالي"]::before { content: '‹' !important; font-size: 1.6rem; }
.pagination-container a[title*="Prev"]::before, .pagination-container a[title*="السابق"]::before { content: '›' !important; font-size: 1.6rem; }
.pagination-container a:has(img):not(:has(text))::before { content: '›' !important; font-size: 1.5rem; }

[data-theme="dark"] .pagination-container a {
    background: var(--white) !important;
    color: var(--primary) !important;
}

/* Responsive */
@media (max-width: 992px) {
  .inner-layout {
    grid-template-columns: 1fr;
  }
  .inner-sidebar {
    order: 2;
  }
  .inner-content-card {
    order: 1;
    padding: 32px 24px;
  }
}

/* --- Pagination Styles --- */
.pagination-container {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.pagination {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

.pagination li a, .pagination li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--gray-100);
  color: var(--text);
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
}

.pagination li a:hover {
  background: var(--gray-50);
  color: var(--primary);
  border-color: var(--primary);
}

.pagination li.active span, .pagination li.active a {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.pagination li.disabled span {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--gray-50);
}

[data-theme="dark"] .pagination li a,
[data-theme="dark"] .pagination li span {
  background: var(--primary-light);
  border-color: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.8);
}

[data-theme="dark"] .pagination li.active span {
  background: var(--gold);
  color: var(--primary);
  border-color: var(--gold);
}

/* --- Form Styles --- */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(87, 124, 141, 0.1);
}

.form-control::placeholder {
  color: var(--gray-400);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

[data-theme="dark"] .form-control {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

[data-theme="dark"] .form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(181, 153, 107, 0.1);
}

/* --- Alert Styles --- */
.alert {
  padding: 16px 24px;
  border-radius: var(--radius);
  margin-bottom: 30px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.alert-danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

[data-theme="dark"] .alert-success {
  background: rgba(22, 101, 52, 0.2);
  color: #4ade80;
  border-color: rgba(22, 101, 52, 0.3);
}

[data-theme="dark"] .alert-danger {
  background: rgba(153, 27, 27, 0.2);
  color: #f87171;
  border-color: rgba(153, 27, 27, 0.3);
}

/* --- Contact Specific --- */
.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .contact-info-icon {
  background: rgba(181, 153, 107, 0.1);
  color: var(--gold);
}

.contact-info-content h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--primary);
}

[data-theme="dark"] .contact-info-content h4 {
  color: var(--gold);
}

.contact-info-content p, .contact-info-content a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.6;
}

.map-container {
  width: 100%;
  height: 350px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Table Styles --- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  background: var(--white);
  padding: 5px;
}

.custom-table, .dataTable {
  width: 100% !important;
  border-collapse: collapse !important;
  text-align: right !important;
  border: none !important;
}

.custom-table th, .dataTable thead th {
  background: var(--gray-50) !important;
  padding: 16px 20px !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  border-bottom: 2px solid var(--gray-100) !important;
  font-size: 0.95rem !important;
}

.custom-table td, .dataTable tbody td {
  padding: 16px 20px !important;
  border-bottom: 1px solid var(--gray-50) !important;
  color: var(--text) !important;
  font-size: 0.9rem !important;
}

.custom-table tbody tr:hover, .dataTable tbody tr:hover {
  background: rgba(87, 124, 141, 0.02) !important;
}

[data-theme="dark"] .table-responsive {
  background: var(--primary-light);
  border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .custom-table th, [data-theme="dark"] .dataTable thead th {
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--gold) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .custom-table td, [data-theme="dark"] .dataTable tbody td {
  color: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

/* DataTables Overrides */
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 20px;
    float: right !important;
}
.dataTables_wrapper .dataTables_filter input {
  border: 1px solid var(--gray-200) !important;
  border-radius: var(--radius-sm) !important;
  padding: 10px 16px !important;
  margin-right: 12px !important;
  font-family: inherit !important;
  min-width: 250px;
}

.dataTables_wrapper .dataTables_length {
    margin-bottom: 20px;
    float: left !important;
}

.dataTables_wrapper .dataTables_length select {
  border: 1px solid var(--gray-200) !important;
  border-radius: var(--radius-sm) !important;
  padding: 8px 12px !important;
  margin: 0 8px !important;
}

.dataTables_wrapper .dataTables_info {
    clear: both;
    padding-top: 20px !important;
    color: var(--text-muted) !important;
    font-size: 0.9rem;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 20px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 8px 16px !important;
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--gray-200) !important;
    margin: 0 4px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--primary) !important;
  color: white !important;
  border: 1px solid var(--primary) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--gray-100) !important;
    border-color: var(--gray-300) !important;
}

/* Modern Form Styles */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 40px;
  border: 1px solid var(--gray-100);
}

.form-section {
  margin-bottom: 40px;
}

.form-section:last-child {
  margin-bottom: 0;
}

.form-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-50);
}

.form-section-header i, .form-section-header svg {
  color: var(--secondary);
}

.form-section-header h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin: 0;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.form-grid.full-width {
  grid-template-columns: 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
}

.form-label span {
  color: var(--red);
  margin-right: 4px;
}

.form-control-modern {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  color: var(--primary);
  font-family: inherit;
  transition: var(--transition);
}

.form-control-modern:focus {
  outline: none;
  border-color: var(--secondary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(200, 168, 75, 0.1);
}

select.form-control-modern {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23C8A84B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  background-size: 18px;
  padding-left: 40px;
}

.radio-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 10px 0;
}

.custom-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.custom-option input {
  display: none;
}

.custom-box {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-300);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.custom-option input:checked + .custom-box {
  background: var(--secondary);
  border-color: var(--secondary);
}

.custom-box::after {
  content: '';
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 1px;
  transform: scale(0);
  transition: var(--transition);
}

.radio-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.custom-option {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  gap: 12px;
  position: relative;
  user-select: none;
}

.custom-option input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.custom-box {
  width: 22px;
  height: 22px;
  background: var(--bg-light);
  border: 2px solid var(--gray-200);
  border-radius: 4px;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.custom-option:hover .custom-box {
  border-color: var(--secondary);
}

.custom-option input:checked + .custom-box {
  background: var(--secondary);
  border-color: var(--secondary);
}

.custom-box::after {
  content: "";
  position: absolute;
  display: block;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46);
}

.custom-option input:checked + .custom-box::after {
  transform: rotate(45deg) scale(1);
}

/* Radio Specifics */
.radio-box {
  border-radius: 50%;
}

.radio-box::after {
  left: 6px;
  top: 6px;
  width: 6px;
  height: 6px;
  background: white;
  border: none;
  border-radius: 50%;
  transform: scale(0);
}

.custom-option input:checked + .radio-box::after {
  transform: scale(1);
}

/* Form Persistance Light overrides for inner pages */
[data-theme="dark"] .form-control-modern {
  background: var(--gray-50);
  border-color: var(--gray-200);
  color: var(--primary);
}

[data-theme="dark"] .form-control-modern:focus {
  border-color: var(--secondary);
  background: var(--white);
}

[data-theme="dark"] .custom-box {
    background: var(--white);
    border-color: var(--gray-300);
}

/* ===================================================
   NEWSLETTER GRID
   =================================================== */
.newsletter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.newsletter-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.newsletter-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.newsletter-card::before {
    content: "\f1c1"; /* Fontawesome PDF icon fallback if needed, or stick to SVG */
    font-family: "FontAwesome";
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 80px;
    color: var(--gray-50);
    opacity: 0.3;
    z-index: 0;
}

.newsletter-icon {
    width: 60px;
    height: 60px;
    background: rgba(200, 168, 75, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    position: relative;
    z-index: 1;
}

.newsletter-content {
    position: relative;
    z-index: 1;
}

.newsletter-content h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 800;
}

.newsletter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.newsletter-actions .btn {
    justify-content: center;
    padding: 12px;
    border-radius: 50px;
    font-weight: 700;
}

[data-theme="dark"] .newsletter-card {
    background: var(--gray-50);
    border-color: var(--gray-100);
}
[data-theme="dark"] .newsletter-content h3 {
    color: var(--primary);
}

/* ===================================================
   SURVEYS GRID
   =================================================== */
.survey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.survey-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.survey-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary);
    box-shadow: var(--shadow-lg);
}

.survey-card-icon {
    width: 80px;
    height: 80px;
    background: var(--gray-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    margin-bottom: 24px;
    transition: var(--transition);
}

.survey-card:hover .survey-card-icon {
    background: var(--secondary);
    color: var(--white);
    transform: scale(1.1);
}

.survey-card h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.4;
    font-weight: 800;
}

.survey-card .btn-participate {
    margin-top: auto;
    width: 100%;
    padding: 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    background: var(--gray-100);
    color: var(--primary);
    border: none;
    transition: var(--transition);
}

.survey-card:hover .btn-participate {
    background: var(--secondary);
    color: var(--white);
}

[data-theme="dark"] .survey-card {
    background: var(--gray-50);
}

