/*
Theme Name: SCATS Community
Theme URI: https://scats.org.au
Author: SCATS Australia
Description: Professional WordPress theme for SCATS Australia — Sri Lankan Study Centre for Technology & Social Welfare.
Version: 3.0.0
License: GNU General Public License v2 or later
Text Domain: scats-community
*/

/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
  --orange:      #E8791A;   /* Softened — SCATS logo centre colour */
  --blue:        #1A5EA8;
  --dark:        #1a1a2e;
  --text:        #3d3d3d;
  --muted:       #6b7280;
  --light:       #f5f7fa;
  --white:       #ffffff;
  --border:      #e4e8ef;
  --radius:      10px;
  --shadow:      0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.14);
  --transition:  all 0.3s ease;
  --container:   1160px;
  --font-head:   'Montserrat', sans-serif;
  --font-body:   'Open Sans', sans-serif;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--blue); }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  color: var(--dark);
  line-height: 1.2;
  font-weight: 700;
}
p { margin-bottom: 1rem; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.section-pad    { padding: 88px 0; }
.section-pad-sm { padding: 52px 0; }
.text-center    { text-align: center; }
.bg-light       { background: var(--light); }

.section-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-title { font-size: clamp(24px, 3.5vw, 40px); margin-bottom: 16px; }
.section-sub   { font-size: 16px; color: var(--muted); max-width: 580px; margin: 0 auto 44px; }
.divider       { width: 50px; height: 4px; background: var(--orange); border-radius: 3px; margin: 0 auto 28px; }
.divider.left  { margin-left: 0; }

/* ============================================================
   BUTTONS — consistent throughout
   Rule: orange btn = orange bg white text | hover = white bg orange text
         blue btn   = blue bg white text   | hover = white bg blue text
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-orange {
  background: var(--orange);
  color: #fff !important;
  border-color: var(--orange);
}
.btn-orange:hover {
  background: var(--white);
  color: var(--orange) !important;
  border-color: var(--orange);
}
.btn-blue {
  background: var(--blue);
  color: #fff !important;
  border-color: var(--blue);
}
.btn-blue:hover {
  background: var(--white);
  color: var(--blue) !important;
  border-color: var(--blue);
}
.btn-outline-white {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--orange) !important;
  border-color: var(--white);
}
.btn-lg { padding: 16px 40px; font-size: 15px; }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  background: var(--dark);
  color: rgba(255,255,255,0.78);
  font-family: var(--font-head);
  font-size: 12px;
  padding: 8px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-info { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.topbar-info a,
.topbar-info span {
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar-info a:hover { color: var(--orange); }
.topbar-info i { color: var(--orange); font-size: 11px; }
.topbar-social { display: flex; gap: 7px; }
.topbar-social a {
  width: 27px; height: 27px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65);
  font-size: 11px;
}
.topbar-social a:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
}

/* ============================================================
   HEADER
   ============================================================ */
#masthead {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}

/* Logo — fixed: no stretching */
.site-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo img,
.site-logo .custom-logo {
  height: 58px !important;
  width: auto !important;
  max-width: 68px;
  object-fit: contain !important;
}
.logo-text .logo-name {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
}
.logo-text .logo-tagline {
  font-size: 10px;
  color: #aaa;
  letter-spacing: 0.2px;
  margin-top: 3px;
}

/* Navigation */
#primary-navigation {
  display: flex;
  align-items: center;
  gap: 2px;
}
#primary-navigation .menu {
  display: flex;
  align-items: center;
  gap: 6px; /* Increased from 0 to provide breathing room between links */
}
#primary-navigation .menu > li { position: relative; }
#primary-navigation .menu > li > a {
  display: block;
  padding: 10px 18px; /* Increased padding from 9px 13px to increase menu item margins */
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  color: var(--dark);
  border-radius: 8px;
  transition: var(--transition);
}
#primary-navigation .menu > li > a:hover,
#primary-navigation .menu > li.current-menu-item > a,
#primary-navigation .menu > li.current_page_item > a {
  color: var(--orange);
  background: rgba(232,121,26,0.08);
}

/* Dynamic Down Arrow for parent elements containing dropdown nodes */
#primary-navigation .menu > li:has(.sub-menu) > a {
  padding-right: 32px; /* Ensure space for arrow layout overlay */
}
#primary-navigation .menu > li:has(.sub-menu) > a::after {
  content: "\f078";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 9px;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
  transition: var(--transition);
}
#primary-navigation .menu > li:has(.sub-menu):hover > a::after {
  transform: translateY(-50%) rotate(180deg);
  color: var(--orange);
}

/* Dropdown Sub-menu */
#primary-navigation .sub-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--white);
  min-width: 200px;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  border-top: 3px solid var(--orange);
  z-index: 999;
}
#primary-navigation .menu > li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#primary-navigation .sub-menu li a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--dark);
  border-bottom: 1px solid var(--border);
}
#primary-navigation .sub-menu li:last-child a { border-bottom: none; }
#primary-navigation .sub-menu li a:hover { color: var(--orange); padding-left: 22px; }

.nav-donate {
  margin-left: 10px !important;
  background: var(--orange) !important;
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-family: var(--font-head) !important;
}
.nav-donate:hover {
  background: var(--blue) !important;
  color: #fff !important;
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  width: 25px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ============================================================
   HERO SECTION
   White background, proper two-column layout, no dark gradient
   ============================================================ */
.hero {
  background: var(--white);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
/* Subtle decorative blobs — very light */
.hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,121,26,0.06) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,94,168,0.05) 0%, transparent 70%);
  bottom: -80px; left: -80px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Left column */
.hero-left { }

/* Badge — no bullet, no dot */
.hero-badge {
  display: inline-block;
  background: rgba(232,121,26,0.09);
  border: 1px solid rgba(232,121,26,0.25);
  color: var(--orange);
  padding: 7px 18px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(32px, 4.5vw, 56px);
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 900;
}
/* "Sri Lankan Community" stays on one line */
.hero-title .highlight {
  color: var(--orange);
  white-space: nowrap;
}

.hero-desc {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 36px;
  max-width: 480px;
}

/* Both buttons — consistent style */
.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-stat .number {
  display: block;
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
}
.hero-stat .label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  font-family: var(--font-head);
  letter-spacing: 0.3px;
}

/* Right column — two images */
.hero-right {
  position: relative;
}
.hero-img-main {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-img-main img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}
.hero-img-secondary {
  position: absolute;
  bottom: -22px;
  right: -22px;
  width: 160px;
  border-radius: 14px;
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: var(--shadow);
}
.hero-img-secondary img {
  width: 100%;
  height: 116px;
  object-fit: cover;
  display: block;
}
.hero-years-badge {
  position: absolute;
  top: 28px;
  left: -22px;
  background: var(--blue);
  color: white;
  padding: 16px 20px;
  border-radius: 14px;
  text-align: center;
  box-shadow: var(--shadow);
}
.hero-years-badge strong {
  display: block;
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}
.hero-years-badge span { font-size: 10.5px; opacity: 0.9; }

/* Culture label strip */
.hero-culture-strip {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.culture-dot {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}
.culture-dot::before {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-aus::before   { background: #00843D; }
.dot-sl::before    { background: var(--orange); }
.dot-multi::before { background: var(--blue); }

/* ============================================================
   MISSION STRIP — Blue bg, white text
   ============================================================ */
.mission-strip { background: var(--blue); }
.mission-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.mission-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 24px;
  border-right: 1px solid rgba(255,255,255,0.14);
  transition: var(--transition);
}
.mission-item:last-child { border-right: none; }
.mission-item:hover { background: rgba(0,0,0,0.1); }
.mission-icon {
  width: 46px; height: 46px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.mission-item h4 {
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 2px;
}
.mission-item p {
  color: rgba(255,255,255,0.78);
  font-size: 12px;
  margin: 0;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 68px;
  align-items: center;
}
.about-img-wrap { position: relative; }
.about-img-main { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img-main img { width: 100%; height: 460px; object-fit: cover; }
.about-img-secondary {
  position: absolute;
  bottom: -24px; right: -24px;
  width: 170px; border-radius: 14px;
  overflow: hidden; border: 4px solid var(--white);
  box-shadow: var(--shadow);
}
.about-img-secondary img { width: 100%; height: 120px; object-fit: cover; }
.about-yr-badge {
  position: absolute;
  top: 28px; left: -20px;
  background: var(--orange);
  color: white; padding: 14px 18px;
  border-radius: 12px; text-align: center;
  box-shadow: var(--shadow);
}
.about-yr-badge strong {
  display: block;
  font-size: 30px; font-weight: 900;
  line-height: 1; font-family: var(--font-head);
}
.about-yr-badge span { font-size: 11px; opacity: 0.9; }

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 26px 0 32px;
}
.about-feature { display: flex; align-items: flex-start; gap: 12px; }
.feat-icon {
  width: 40px; height: 40px;
  background: rgba(232,121,26,0.1);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0; color: var(--orange);
}
.feat-text h5 { font-size: 13.5px; font-weight: 700; margin-bottom: 2px; }
.feat-text p  { font-size: 12.5px; color: var(--muted); margin: 0; }

/* ============================================================
   STATS
   ============================================================ */
.stats-section {
  background: linear-gradient(135deg, var(--blue) 0%, var(--dark) 100%);
}
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.stat-item {
  text-align: center;
  padding: 52px 26px;
  border-right: 1px solid rgba(255,255,255,0.09);
}
.stat-item:last-child { border-right: none; }
.stat-icon   { font-size: 36px; margin-bottom: 12px; display: block; }
.stat-number {
  display: block;
  font-family: var(--font-head);
  font-size: 50px; font-weight: 900;
  color: var(--orange); line-height: 1;
}
.stat-label  { display: block; font-size: 13px; color: rgba(255,255,255,0.68); margin-top: 8px; }

/* ============================================================
   PROGRAMS
   ============================================================ */
.programs-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.program-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.program-thumb { position: relative; overflow: hidden; height: 202px; }
.program-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.program-card:hover .program-thumb img { transform: scale(1.06); }
.program-cat {
  position: absolute; top: 13px; left: 13px;
  background: var(--orange); color: white;
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 3px 11px; border-radius: 50px;
  font-family: var(--font-head);
}
.program-body { padding: 22px; }
.program-body h3 { font-size: 16.5px; margin-bottom: 8px; }
.program-body p  { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.program-progress { margin-bottom: 14px; }
.progress-meta {
  display: flex; justify-content: space-between;
  font-size: 11.5px; font-weight: 700;
  font-family: var(--font-head); margin-bottom: 7px;
}
.progress-bar  { height: 6px; background: var(--border); border-radius: 6px; overflow: hidden; }
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), #ffb347);
  border-radius: 6px;
}
.program-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.program-footer .prog-link {
  font-size: 12.5px; font-weight: 700; color: var(--orange);
  font-family: var(--font-head);
}

/* ============================================================
   DONATE CTA — Blue bg, orange buttons
   ============================================================ */
.donate-cta {
  background: linear-gradient(135deg, var(--blue) 0%, #0d3d7a 100%);
  position: relative;
  overflow: hidden;
}
.donate-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 50%, rgba(232,121,26,0.12), transparent 55%);
}
.donate-cta-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr auto;
  gap: 48px; align-items: center;
}
.donate-cta h2 { font-size: clamp(22px,3.5vw,36px); color: white; margin-bottom: 10px; }
.donate-cta p  { color: rgba(255,255,255,0.85); font-size: 15.5px; margin-bottom: 22px; }
.donate-amounts { display: flex; gap: 10px; flex-wrap: wrap; }
.amount-btn {
  padding: 9px 20px;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 50px;
  color: white; font-family: var(--font-head);
  font-weight: 700; font-size: 14px;
  cursor: pointer; background: transparent;
  transition: var(--transition);
}
.amount-btn:hover,
.amount-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
}
.donate-cta-right { text-align: center; }
.donate-secure { display: block; color: rgba(255,255,255,0.6); font-size: 11.5px; margin-top: 10px; font-family: var(--font-head); }

/* ============================================================
   EVENTS
   ============================================================ */
.events-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.event-card {
  background: var(--white); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: var(--transition);
}
.event-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.event-thumb { position: relative; height: 175px; overflow: hidden; }
.event-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.event-card:hover .event-thumb img { transform: scale(1.06); }
.event-date-badge {
  position: absolute; top: 13px; right: 13px;
  background: var(--orange); color: white;
  text-align: center; padding: 8px 13px;
  border-radius: 10px; line-height: 1;
}
.event-date-badge .day   { display: block; font-family: var(--font-head); font-size: 24px; font-weight: 900; }
.event-date-badge .month { font-family: var(--font-head); font-size: 10.5px; font-weight: 700; opacity: 0.9; }
.event-body { padding: 20px; flex: 1; }
.event-meta {
  display: flex; gap: 12px;
  font-size: 11.5px; color: var(--muted);
  margin-bottom: 9px; flex-wrap: wrap;
}
.event-meta span { display: flex; align-items: center; gap: 4px; }
.event-meta i { color: var(--orange); }
.event-body h3 { font-size: 16px; margin-bottom: 7px; }
.event-body h3 a { color: var(--dark); }
.event-body h3 a:hover { color: var(--orange); }
.event-body p  { font-size: 13px; color: var(--muted); margin: 0; }
.event-footer {
  padding: 12px 20px; background: var(--light);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-head); font-size: 12.5px;
}
.event-footer strong { color: var(--dark); }
.event-footer a { color: var(--orange); font-weight: 700; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section { background: var(--light); }
.testimonials-grid     { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.testimonial-card {
  background: var(--white); border-radius: 14px;
  padding: 30px; box-shadow: var(--shadow);
  position: relative; transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.quote-icon {
  position: absolute; top: 14px; right: 18px;
  font-size: 58px; line-height: 1;
  font-family: Georgia, serif;
  color: var(--orange); opacity: 0.1;
}
.testimonial-stars { color: #f59e0b; font-size: 15px; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card blockquote {
  font-size: 14px; line-height: 1.8;
  color: #555; margin-bottom: 22px; font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  background: var(--blue); display: flex;
  align-items: center; justify-content: center;
  color: white; font-size: 18px; font-weight: 700;
  font-family: var(--font-head);
}
.author-info strong { display: block; font-size: 14px; font-weight: 700; }
.author-info span   { font-size: 12px; color: var(--orange); font-family: var(--font-head); }

/* ============================================================
   NEWS
   ============================================================ */
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.news-card {
  background: var(--white); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow); transition: var(--transition);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-thumb { height: 192px; overflow: hidden; }
.news-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.news-card:hover .news-thumb img { transform: scale(1.06); }
.news-body { padding: 20px; }
.news-meta { display: flex; gap: 10px; font-size: 11.5px; color: #aaa; margin-bottom: 9px; align-items: center; }
.news-cat  {
  background: rgba(232,121,26,0.1); color: var(--orange);
  font-weight: 700; padding: 2px 10px; border-radius: 50px;
  font-size: 10px; font-family: var(--font-head); letter-spacing: 0.5px;
}
.news-body h3 { font-size: 16px; margin-bottom: 8px; line-height: 1.4; }
.news-body h3 a { color: var(--dark); }
.news-body h3 a:hover { color: var(--orange); }
.news-body p  { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.read-more {
  font-size: 12.5px; font-weight: 700; color: var(--orange);
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-head);
}
.read-more::after { content: '→'; transition: transform 0.2s; }
.read-more:hover::after { transform: translateX(4px); }

/* ============================================================
   PARTNERS
   ============================================================ */
.partners-section { padding: 48px 0; background: var(--light); }
.partners-label {
  text-align: center; font-family: var(--font-head);
  font-size: 10.5px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: #c0c0c0; margin-bottom: 26px;
}
.partners-logos {
  display: flex; justify-content: center;
  align-items: center; gap: 44px; flex-wrap: wrap;
}
.partner-logo {
  font-family: var(--font-head); font-size: 16px;
  font-weight: 900; color: var(--blue); opacity: 0.35;
  transition: var(--transition);
}
.partner-logo:hover { opacity: 0.75; }

/* ============================================================
   NEWSLETTER — Blue bg
   ============================================================ */
.newsletter-section { background: var(--blue); padding: 52px 0; }
.newsletter-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 52px; align-items: center;
}
.newsletter-text h2 { color: white; font-size: 26px; margin-bottom: 8px; }
.newsletter-text p  { color: rgba(255,255,255,0.8); margin: 0; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input[type="email"] {
  flex: 1; padding: 13px 18px; border: none;
  border-radius: 50px; font-size: 14px;
  outline: none; font-family: var(--font-body);
}

/* ============================================================
   FOOTER — White bg, blue text
   ============================================================ */
.site-footer {
  background: var(--white);
  border-top: 3px solid var(--blue);
  color: var(--text);
}
.footer-top { padding: 64px 0 48px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}
.footer-logo-wrap {
  display: flex; align-items: center;
  gap: 12px; margin-bottom: 16px;
}
.footer-logo-wrap img {
  height: 54px !important;
  width: auto !important;
  object-fit: contain !important;
}
.footer-site-name {
  font-family: var(--font-head);
  font-size: 17px; font-weight: 900;
  color: var(--blue);
}
.footer-about p { font-size: 13px; line-height: 1.85; color: #555; margin-bottom: 16px; }
.footer-social  { display: flex; gap: 9px; }
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--blue); transition: var(--transition);
}
.footer-social a:hover { background: var(--orange); border-color: var(--orange); color: white; }

.footer-widget h4 {
  color: var(--blue);
  font-size: 15px; font-weight: 700;
  margin-bottom: 18px; padding-bottom: 11px;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.footer-widget h4::after {
  content: ''; position: absolute;
  bottom: -2px; left: 0;
  width: 32px; height: 2px;
  background: var(--orange); border-radius: 2px;
}
.footer-links li   { margin-bottom: 9px; }
.footer-links a {
  color: #555; font-size: 13px;
  display: flex; align-items: center; gap: 7px;
  transition: var(--transition);
}
.footer-links a::before { content: '›'; color: var(--orange); font-size: 16px; }
.footer-links a:hover   { color: var(--blue); padding-left: 4px; }
.footer-contact li {
  display: flex; align-items: flex-start;
  gap: 10px; margin-bottom: 11px;
  font-size: 13px; color: #555;
}
.footer-contact .icon { color: var(--orange); font-size: 13px; margin-top: 2px; flex-shrink: 0; }
.footer-contact a      { color: #555; }
.footer-contact a:hover { color: var(--blue); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  background: var(--light);
}
.footer-bottom-inner {
  display: flex; justify-content: space-between;
  align-items: center; font-size: 12px;
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom-inner p { color: #888; margin: 0; }
.footer-bottom-links   { display: flex; gap: 18px; }
.footer-bottom-links a { color: #aaa; font-size: 12px; }
.footer-bottom-links a:hover { color: var(--blue); }

/* ============================================================
   PAGE BANNER (inner pages)
   ============================================================ */
.page-banner {
  background: linear-gradient(135deg, var(--blue) 0%, var(--dark) 100%);
  padding: 60px 0; position: relative; overflow: hidden;
}
.page-banner h1 { color: white; font-size: clamp(24px,4vw,42px); margin-bottom: 10px; }
.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  color: rgba(255,255,255,0.65); font-size: 13px; flex-wrap: wrap;
}
.breadcrumb a      { color: rgba(255,255,255,0.65); }
.breadcrumb a:hover{ color: white; }
.breadcrumb .sep   { color: var(--orange); }

/* ============================================================
   CONTENT / SINGLE
   ============================================================ */
.content-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 44px; align-items: start; }
.main-content { min-width: 0; }
.entry-content h2, .entry-content h3 { margin: 1.4em 0 0.5em; }
.entry-content p  { margin-bottom: 1.1rem; }
.entry-content ul,
.entry-content ol { margin: 1rem 0 1.1rem 1.5rem; list-style: revert; }
.entry-content img { border-radius: var(--radius); margin: 1rem 0; }
.entry-content blockquote {
  border-left: 4px solid var(--orange);
  padding: 12px 18px; background: var(--light);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.4rem 0; font-style: italic; color: #555;
}

/* Sidebar */
.sidebar .widget {
  background: var(--white); border-radius: 14px;
  padding: 24px; box-shadow: var(--shadow); margin-bottom: 24px;
}
.sidebar .widget-title {
  font-size: 15px; font-weight: 700;
  color: var(--blue); margin-bottom: 15px;
  padding-bottom: 10px; border-bottom: 2px solid var(--border);
  position: relative;
}
.sidebar .widget-title::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 32px; height: 2px; background: var(--orange);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
#back-to-top {
  position: fixed; bottom: 26px; right: 26px;
  width: 42px; height: 42px;
  background: var(--orange); color: white;
  border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: var(--transition); z-index: 999;
}
#back-to-top.visible { opacity: 1; visibility: visible; }
#back-to-top:hover   { background: var(--blue); transform: translateY(-3px); }

/* ============================================================
   FORMS
   ============================================================ */
input[type="text"], input[type="email"], input[type="url"],
input[type="tel"], input[type="number"], textarea, select {
  width: 100%; padding: 11px 15px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 14px; color: var(--text);
  transition: var(--transition);
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,121,26,0.1);
}

/* Pagination */
.pagination { display: flex; gap: 7px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.pagination a,
.pagination span {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-weight: 700; font-size: 14px;
  border: 2px solid var(--border); color: var(--text); transition: var(--transition);
}
.pagination a:hover,
.pagination .current { background: var(--orange); border-color: var(--orange); color: white; }

/* WP */
.alignleft  { float: left; margin: .5em 1.5em .5em 0; }
.alignright { float: right; margin: .5em 0 .5em 1.5em; }
.aligncenter{ display: block; margin: .5em auto; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid       { grid-template-columns: 1fr; gap: 44px; }
  .hero-right      { display: none; }
  .hero            { padding: 60px 0; }
  .hero-left       { max-width: 100%; }
  .hero-desc       { max-width: 100%; }
  .about-grid      { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: 32px; }
  .mission-grid    { grid-template-columns: repeat(2,1fr); }
  .stats-grid      { grid-template-columns: repeat(2,1fr); }
  .stat-item       { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .donate-cta-inner{ grid-template-columns: 1fr; gap: 24px; }
  .newsletter-inner{ grid-template-columns: 1fr; gap: 24px; }
  .programs-grid,
  .events-grid     { grid-template-columns: repeat(2,1fr); }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  /* Topbar Clutter Management & Preventing Duplication Artifacts */
  .topbar-info { display: none; }
  .topbar-inner .topbar-social:nth-of-type(2),
  .topbar-info .topbar-social { 
    display: none !important; 
  }
  .topbar-inner {
    justify-content: center;
    padding: 2px 0;
  }

  /* Header Mobile view */
  .menu-toggle { display: flex; }
  .logo-name   { font-size: 15px; }
  .logo-tagline{ display: none; }

  #primary-navigation {
    position: fixed;
    top: 0; right: -100%;
    width: 82%; max-width: 290px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 22px 24px;
    box-shadow: -4px 0 28px rgba(0,0,0,0.13);
    transition: right 0.3s ease;
    z-index: 2000;
    overflow-y: auto;
  }
  #primary-navigation.open { right: 0; }
  #primary-navigation .menu {
    flex-direction: column;
    width: 100%; gap: 0;
  }
  #primary-navigation .menu > li { width: 100%; }
  #primary-navigation .menu > li > a {
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 14px 4px;
    font-size: 15px;
  }
  #primary-navigation .menu > li:has(.sub-menu) > a {
    padding-right: 14px; /* Reset padding override inside drawer overlay navigation */
  }
  #primary-navigation .menu > li:has(.sub-menu) > a::after {
    display: none !important; /* Turn off absolute icon injection on small views to prevent structural overlaps */
  }
  #primary-navigation .sub-menu {
    position: static; opacity: 1; visibility: visible;
    transform: none; box-shadow: none; border-top: none;
    padding-left: 14px;
  }
  .nav-donate {
    margin: 16px 0 0 0 !important;
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Hero — mobile first */
  .hero { padding: 44px 0 40px; }
  .hero-title   { font-size: clamp(26px, 7vw, 38px); }
  .hero-title .highlight { white-space: normal; } /* allow wrap on very small screens */
  .hero-desc     { font-size: 15px; margin-bottom: 28px; }
  .hero-buttons { gap: 10px; }
  .hero-buttons .btn { padding: 12px 22px; font-size: 13px; }
  .hero-stats   { gap: 20px; padding-top: 24px; }
  .hero-stat .number { font-size: 26px; }

  /* Mission */
  .mission-grid { grid-template-columns: 1fr; }
  .mission-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }

  /* Grids */
  .programs-grid,
  .events-grid,
  .news-grid,
  .testimonials-grid { grid-template-columns: 1fr; }

  /* About */
  .about-img-secondary,
  .about-yr-badge { display: none; }
  .about-features { grid-template-columns: 1fr; }

  /* Stats */
  .stats-grid  { grid-template-columns: repeat(2,1fr); }
  .stat-number { font-size: 38px; }
  .stat-item   { padding: 36px 18px; }

  /* Donate */
  .donate-cta-inner { text-align: center; }
  .donate-amounts   { justify-content: center; }

  /* Content */
  .content-wrap { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid     { grid-template-columns: 1fr; gap: 28px; }
  .footer-top      { padding: 44px 0 32px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: 8px; }

  /* Newsletter */
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { border-radius: 10px; }
  .newsletter-form .btn  { border-radius: 10px; justify-content: center; }
  .newsletter-inner { gap: 20px; }

  /* Padding */
  .section-pad     { padding: 54px 0; }
  .section-pad-sm { padding: 34px 0; }
  .page-banner    { padding: 40px 0; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE
   ============================================================ */
@media (max-width: 480px) {
  .container  { padding: 0 16px; }
  .hero-badge { font-size: 11px; padding: 6px 13px; }
  .hero-title { font-size: 26px; }
  .hero-stats { gap: 16px; }
  .hero-stat .number { font-size: 24px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-number { font-size: 32px; }
  .btn-lg { padding: 13px 22px; font-size: 13.5px; }
  .section-title { font-size: 22px; }
  .site-logo img { height: 48px !important; }
  .logo-name { font-size: 14px; }
  .donate-cta-inner { gap: 20px; }
  .programs-grid,
  .events-grid,
  .news-grid { grid-template-columns: 1fr; }
}