:root {
  --brand-primary: #008fe2;
  --brand-primary-deep: #006fb1;
  --brand-accent: #ffd32a;
  --brand-ink: #18324a;
  --brand-muted: #5d6f80;
  --brand-surface: #ffffff;
  --brand-surface-soft: #f4f9fc;
  --brand-border: rgba(0, 143, 226, 0.12);
  --brand-shadow: 0 18px 45px rgba(15, 54, 86, 0.12);
  --brand-radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body,
body *:not(.bi),
button,
input,
textarea,
select,
.btn,
.navmenu a,
.cookie-consent,
.swal2-popup,
.swal2-title,
.swal2-html-container {
  font-family: "Josefin Sans", sans-serif !important;
}

body {
  background:
    radial-gradient(circle at top left, rgba(255, 211, 42, 0.14), transparent 28%),
    linear-gradient(180deg, #fffefb 0%, #f7fbff 100%);
  color: var(--brand-ink);
  line-height: 1.65;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.display-4 {
  color: var(--brand-ink);
  font-weight: 700;
  letter-spacing: 0.02em;
}

p,
li,
span,
label {
  color: var(--brand-muted);
}

section[id] {
  scroll-margin-top: 96px;
}

.header {
  background: rgba(0, 143, 226, 0.2);
  backdrop-filter: blur(7px);
  box-shadow: 0 12px 30px rgba(0, 71, 111, 0.1);
}

.logo img {
  height: 56px;
  width: 56px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.navmenu ul {
  align-items: center;
  gap: 14px;
}

.navmenu a {
  /*border: 1px solid rgba(255, 255, 255, 0.28);*/
  /*background: rgba(255, 255, 255, 0.08);*/
  padding: 10px 14px;
  /*border-radius: 999px;*/
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.navmenu a:hover,
.navmenu a:focus {
  border-bottom: 1px solid white;
  color: var(--brand-accent);
  /*box-shadow: 0 10px 24px rgba(255, 211, 42, 0.32);*/
  transform: translateY(-1px);
}

#hero {
  min-height: 100vh;
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(9, 42, 68, 0.07), rgba(0, 143, 226, 0.03));
  pointer-events: none;
}

#hero .content {
  position: relative;
  z-index: 2;
}

#hero .btn {
  border: none;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--brand-accent), #ffe58a);
}

#hero .btn:hover {
  color: #0f2536;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 35px rgba(9, 28, 44, 0.16);
  color: #f5f9ff;
  backdrop-filter: blur(10px);
}

.hero-badge span {
  color: inherit;
}

.front-essentials {
  position: relative;
  margin-top: -72px;
  padding: 0 0 32px;
  z-index: 3;
}

.front-essentials .section-shell {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  box-shadow: var(--brand-shadow);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.front-essentials .section-shell::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 143, 226, 0.12), transparent 68%);
  pointer-events: none;
}

.front-essentials .section-shell::after {
  content: "";
  position: absolute;
  left: 40px;
  bottom: -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 211, 42, 0.14), transparent 70%);
  pointer-events: none;
}

.front-essentials .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--brand-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.front-essentials .lead {
  max-width: 740px;
  margin-bottom: 0;
  color: var(--brand-muted);
}

.essential-card {
  height: 100%;
  padding: 20px;
  background: linear-gradient(180deg, #ffffff, #f6fbff);
  /*border: 1px solid var(--brand-border);*/
  border-radius: 2px;
  box-shadow: 0 14px 34px rgba(11, 74, 117, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.essential-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(11, 74, 117, 0.12);
  border-color: rgba(0, 143, 226, 0.25);
}

.essential-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
}

.essential-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 143, 226, 0.14), rgba(255, 211, 42, 0.18));
  color: var(--brand-primary);
  font-size: 1.5rem;
}

.essential-card h3,
.essential-card p,
.essential-stat strong,
.essential-stat span {
  color: inherit;
}

.essential-card p {
  margin-bottom: 0;
  font-size: 1.02rem;
}

.essential-stat {
  margin-top: 18px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 143, 226, 0.1);
}

.essential-stat strong {
  font-size: 1.1rem;
  line-height: 1.2;
  color: var(--brand-primary);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.essential-stat span {
  color: var(--brand-muted);
  font-size: 0.95rem;
}

#about,
#testimonials,
#portfolio,
#blog,
#contact {
  padding-top: 80px;
}

#about h2,
#testimonials h2,
#portfolio h2,
#blog h2,
#contact h2,
.ngo-header h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 18px;
}

.about-img,
.contact-card,
.timeline-card,
.objective-card,
.gallery-item,
.impact-box,
.cookie-card {
  border-radius: 24px !important;
}

.about-img {
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--brand-shadow);
}

.ngo-content {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 251, 255, 0.95));
  padding: 28px;
  border: 1px solid var(--brand-border);
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(8, 62, 97, 0.07);
}

.ngo-highlight {
  margin-top: 14px !important;
}

.timeline-card {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-deep));
  box-shadow: 0 18px 36px rgba(0, 111, 177, 0.2);
}

.timeline-card h5,
.timeline-card p,
.timeline-icon i {
  color: inherit;
}

.timeline-icon {
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.18);
}

.ngo-objectives,
.impact-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(243, 250, 255, 0.92));
  border-radius: 30px;
  box-shadow: 0 20px 45px rgba(9, 64, 99, 0.07);
}

.donation-container {
  background:
    radial-gradient(circle at top right, rgba(255, 211, 42, 0.28), transparent 28%),
    linear-gradient(180deg, #fff9df 0%, #fffef7 100%) !important;
  border-radius: 32px;
}

.donation-hero {
  background: linear-gradient(135deg, #ffd32a, #ffdf66) !important;
  color: #16314b !important;
  box-shadow: 0 22px 48px rgba(214, 174, 0, 0.22);
}

.donation-hero h1,
.donation-hero p {
  color: #16314b !important;
}

.donation-impact {
  background: linear-gradient(180deg, rgba(255, 211, 42, 0.22), rgba(255, 248, 214, 0.72));
  border: 1px solid rgba(255, 211, 42, 0.5);
  border-radius: 26px;
  padding: 30px 22px;
  box-shadow: 0 20px 42px rgba(187, 154, 17, 0.12);
}

.donation-impact h2,
.donation-impact p,
.donation-impact strong {
  color: #17304a !important;
}

.donation-info {
  border: 1px solid rgba(0, 143, 226, 0.12);
  box-shadow: 0 22px 42px rgba(19, 59, 91, 0.08) !important;
}

.donate-button {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-deep)) !important;
  box-shadow: 0 16px 34px rgba(0, 111, 177, 0.18);
}

.donate-button:hover {
  background: linear-gradient(135deg, #0b78d1, #005b91) !important;
  color: #fff !important;
}

.objective-card,
.impact-box,
.contact-card,
.social-card {
  box-shadow: 0 18px 36px rgba(8, 62, 97, 0.09);
}

.contact-card,
.gallery-item,
.impact-box {
  border: 1px solid var(--brand-border);
}

.social-card {
  background: linear-gradient(135deg, var(--brand-primary), #18a5f3);
}

.social-card p,
.social-card h5 {
  color: #fff;
}

.contact-card form input,
.contact-card form textarea,
.form-floating-group input,
.form-floating-group textarea {
  background: #fff;
  border: 1px solid rgba(0, 143, 226, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.contact-card form input:focus,
.contact-card form textarea:focus,
.form-floating-group input:focus,
.form-floating-group textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.22rem rgba(0, 143, 226, 0.12);
}

.btn-submit,
.contact-card a.btn-submit,
.btn-accept {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-deep));
  color: #fff !important;
  border: none;
  box-shadow: 0 14px 28px rgba(0, 111, 177, 0.2);
}

.btn-submit:hover,
.contact-card a.btn-submit:hover,
.btn-accept:hover {
  background: linear-gradient(135deg, var(--brand-primary-deep), #005b91);
}

.cookie-consent {
  position: fixed;
  right: 24px;
  bottom: 24px;
  left: auto;
  transform: none;
  width: min(430px, calc(100% - 24px));
  display: grid;
  gap: 16px;
  padding: 18px 18px 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 66, 104, 0.12);
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(10, 42, 68, 0.16);
  backdrop-filter: blur(16px);
}

.cookie-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 211, 42, 0.2);
  color: #17304a;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cookie-copy h4 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: #17304a;
}

.cookie-consent p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #4f6171;
}

.cookie-consent a {
  color: var(--brand-primary);
  font-weight: 700;
}

.cookie-actions-inline {
  display: flex;
  justify-content: flex-start;
}

.btn-accept {
  padding: 12px 20px;
  border-radius: 999px;
}

.site-footer {
  margin-top: 48px;
  padding: 54px 0 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 211, 42, 0.12), transparent 24%),
    linear-gradient(180deg, #0d2f48 0%, #0a2436 100%);
  color: rgba(255, 255, 255, 0.85);
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.footer-brand img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.16);
}

.site-footer h3,
.site-footer h4,
.site-footer p,
.site-footer a {
  color: inherit;
}

.site-footer h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  color: #fff;
}

.site-footer h4 {
  margin-bottom: 14px;
  font-size: 1rem;
  color: #fff;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-links a:hover {
  color: #ffd32a;
  transform: translateX(2px);
}

.footer-note {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.74);
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 991px) {
  .navmenu ul {
    gap: 10px;
    border-radius: 20px;
    box-shadow: 0 18px 36px rgba(0, 71, 111, 0.24);
  }

  .front-essentials {
    margin-top: -34px;
  }

  .front-essentials .section-shell {
    padding: 24px;
  }

  .ngo-content {
    margin-top: 24px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  #hero {
    min-height: 92vh;
  }

  #hero .content {
    padding-top: 92px !important;
    padding-bottom: 48px !important;
  }

  .hero-badges {
    gap: 10px;
  }

  .hero-badge {
    width: 100%;
    justify-content: center;
  }

  .front-essentials {
    margin-top: -12px;
  }

  .front-essentials .section-shell {
    border-radius: 24px;
    padding: 22px 18px;
  }

  .essential-card,
  .ngo-content,
  .contact-card {
    padding: 20px;
  }

  .cookie-consent {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 16px;
    border-radius: 20px;
  }

  .site-footer {
    padding-top: 42px;
  }

  .footer-brand {
    flex-direction: column;
  }
}
