:root {
  --color-primary: #1f6e9a;
  --color-secondary: #E7AE27;
  --color-accent: #47A2D6;
  --color-bg: #f3f8fc;
  --color-surface: #ffffff;
  --color-text: #1c3442;
  --color-muted: #5d7280;
  --color-border: #cfdee8;

  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Lato", "Segoe UI", sans-serif;

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 5rem;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --radius-pill: 999px;

  --shadow-sm: 0 10px 24px rgba(19, 48, 68, 0.08);
  --shadow-md: 0 18px 42px rgba(19, 48, 68, 0.13);

  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background:
    radial-gradient(circle at 84% 10%, rgba(231, 174, 39, 0.16), transparent 35%),
    radial-gradient(circle at 14% 14%, rgba(71, 162, 214, 0.12), transparent 35%),
    repeating-linear-gradient(120deg,
      rgba(231, 174, 39, 0.03) 0 2px,
      transparent 2px 34px),
    linear-gradient(180deg, #f6fafd 0%, #f3f8fc 48%, #f8fcff 100%);
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 4.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(246, 251, 254, 0.9);
  border-bottom: 1px solid rgba(207, 222, 232, 0.8);
}

.header-inner {
  min-height: 86px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-5);
  align-items: center;
}

.brand {
  display: flex;
  gap: var(--space-1);
  align-items: center;
}

.brand img {
  width: auto;
  height: 65px;
  object-fit: contain;
}

.brand span {
  display: grid;
  line-height: 1.2;
}

.brand strong {
  font-family: var(--font-display);
  color: var(--color-secondary);
  font-size: 1.75rem;
}

.brand small {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.primary-nav {
  justify-self: end;
  display: flex;
  gap: var(--space-4);
}

.mobile-nav-cta,
.nav-toggle {
  display: none !important;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(207, 222, 232, 0.9);
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #1f6e9a;
}

.primary-nav a {
  padding: 0.28rem 0;
  font-weight: 700;
  color: #355464;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.primary-nav a:hover {
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.btn {
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 0.72rem 1.16rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(130deg, #E7AE27, #f1bb3f);
  border-color: rgba(29, 92, 126, 0.26);
  color: #173f56;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: rgba(231, 174, 39, 0.1);
  border-color: rgba(231, 174, 39, 0.45);
  color: #8e6710;
}

.btn-secondary:hover {
  background: rgba(231, 174, 39, 0.18);
}

.hero {
  position: relative;
  padding: 4.8rem 0 3.8rem;
  overflow: hidden;
}

.hero-deco {
  position: absolute;
  inset: auto -10% -140px -10%;
  height: 280px;
  border-radius: 50% 50% 0 0 / 42% 42% 0 0;
  background:
    linear-gradient(95deg, rgba(71, 162, 214, 0.18), rgba(231, 174, 39, 0.2)),
    #f1f6fb;
  z-index: 0;
}

.hero-motif {
  position: absolute;
  top: 88px;
  right: clamp(20px, 6vw, 80px);
  display: grid;
  gap: 0.8rem;
  z-index: 0;
  opacity: 0.58;
}

.hero-motif svg {
  width: 28px;
  height: 28px;
  fill: rgba(71, 162, 214, 0.35);
}

.hero-motif svg:last-child {
  width: 18px;
  height: 18px;
  fill: rgba(231, 174, 39, 0.45);
  justify-self: end;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 800;
  color: #c9961a;
  margin: 0 0 var(--space-3);
}

h1,
h2,
h3 {
  margin: 0 0 var(--space-3);
  color: #173f56;
  line-height: 1.1;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 4.5vw, 4.4rem);
  text-wrap: balance;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.1vw, 3rem);
}

h3 {
  font-size: 1.28rem;
}

.hero-lead {
  width: min(800px, 100%);
  margin: 0 auto var(--space-5);
  color: #3a5868;
  font-size: 1.12rem;
}

.cta-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.justify-start {
  justify-content: start !important;
}

.hero-media-grid {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: 1.25fr 0.82fr;
  grid-template-areas:
    "main trust"
    "main side";
  gap: var(--space-3);
  align-items: stretch;
}

.hero-media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(207, 222, 232, 0.7);
}

.hero-media-main {
  grid-area: main;
  min-height: 430px;
}

.hero-media-side {
  grid-area: side;
  min-height: 200px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.hero-trust-card {
  grid-area: trust;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #ffffff, #f2f6fb);
  border: 1px solid rgba(207, 222, 232, 0.95);
  box-shadow: var(--shadow-sm);
  text-align: left;
  padding: var(--space-4);
}

.hero-trust-card h2 {
  font-size: 1.7rem;
  color: #c9961a;
}

.hero-trust-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: #426070;
  display: grid;
  gap: 0.48rem;
}

.section {
  padding: 3rem 0;
}

.mission {
  position: relative;
}

.mission::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(231, 174, 39, 0.55), transparent);
}

.pillar-grid {
  margin-top: var(--space-5);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.pillar-card {
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(231, 174, 39, 0.24), transparent 45%),
    #ffffff;
  border: 1px solid rgba(207, 222, 232, 0.9);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pillar-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: var(--space-3);
  background: linear-gradient(145deg, rgba(29, 92, 126, 0.15), rgba(231, 174, 39, 0.24));
}

.pillar-icon svg {
  width: 22px;
  height: 22px;
  fill: #c9961a;
}

.pillar-card p {
  margin: 0;
  color: #476474;
}

.arabic-school {
  position: relative;
  background:
    radial-gradient(circle at 10% 12%, rgba(231, 174, 39, 0.12), transparent 35%),
    radial-gradient(circle at 90% 84%, rgba(71, 162, 214, 0.1), transparent 34%),
    #f7fbfe;
  border-top: 1px solid rgba(207, 222, 232, 0.7);
  border-bottom: 1px solid rgba(207, 222, 232, 0.7);
}

.school-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: var(--space-4);
  align-items: stretch;
}

.school-content {
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  border: 1px solid rgba(207, 222, 232, 0.92);
  background: linear-gradient(160deg, #ffffff, #f4f8fc);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: var(--space-3);
  align-content: start;
}

.school-content .eyebrow {
  margin-bottom: 0;
}

.school-content h2 {
  margin-bottom: 0.4rem;
}

.school-lead {
  margin: 0;
  color: #3f6273;
  max-width: 60ch;
}

.school-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}

.school-pillar {
  border-radius: 13px;
  border: 1px solid rgba(71, 162, 214, 0.28);
  background: linear-gradient(150deg, #ffffff, #edf5fb);
  padding: 0.82rem 0.86rem;
}

.school-pillar h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: #1d5c7e;
}

.school-pillar p {
  margin: 0;
  font-size: 0.88rem;
  color: #4b6978;
}

.school-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.school-stats span {
  display: inline-flex;
  align-items: center;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1px solid rgba(231, 174, 39, 0.56);
  color: #8e6710;
  background: rgba(231, 174, 39, 0.14);
  padding: 0.36rem 0.7rem;
}

.school-content .btn-primary {
  width: fit-content;
}

.school-image {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 450px;
  box-shadow: var(--shadow-md);
}

.school-image img {
  width: 100%;
  height: 100%;
  min-height: 450px;
  object-fit: cover;
}

.prayer-times {
  position: relative;
  background:
    linear-gradient(180deg, rgba(246, 251, 254, 0), rgba(225, 240, 250, 0.22)),
    #f4f9fd;
}

.prayer-times::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 46px;
  background:
    radial-gradient(50% 100% at 50% 100%, rgba(231, 174, 39, 0.18), transparent 70%);
  pointer-events: none;
}

.prayer-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.prayer-band {
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  background:
    radial-gradient(circle at 10% 0%, rgba(231, 174, 39, 0.25), transparent 42%),
    linear-gradient(140deg, #1f6f9a 0%, #2f84b5 45%, #3c97cb 100%);
  color: #eef8fd;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.prayer-band .eyebrow {
  color: #e9f5fc;
}

.prayer-band h2,
.prayer-band p {
  color: #f7fbfe;
}

.prayer-intro {
  margin: 0;
  max-width: 42ch;
}

.prayer-tags {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.prayer-tags span {
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  padding: 0.35rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(231, 174, 39, 0.72);
  background: rgba(231, 174, 39, 0.24);
  color: #fff8e5;
}

.prayer-band .btn-primary {
  background: #E7AE27;
  border-color: rgba(255, 255, 255, 0.25);
  color: #173f56;
  width: fit-content;
}

.prayer-highlights {
  margin-top: auto;
  display: grid;
  gap: 0.72rem;
}

.prayer-highlight-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.72rem;
  align-items: start;
  border: 1px solid rgba(231, 174, 39, 0.52);
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(231, 174, 39, 0.16), rgba(255, 255, 255, 0.08));
  padding: 0.68rem 0.78rem;
}

.prayer-highlight-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(231, 174, 39, 0.22);
}

.prayer-highlight-icon svg {
  width: 18px;
  height: 18px;
  fill: #fff0c8;
}

.prayer-highlight-item strong {
  display: block;
  margin: 0;
  color: #fff3d4;
  font-size: 0.95rem;
}

.prayer-highlight-item p {
  margin: 0.08rem 0 0;
  color: #e8f4fb;
  font-size: 0.86rem;
}

.prayer-panel {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(207, 222, 232, 0.9);
  background: linear-gradient(165deg, #ffffff, #f4f8fc);
  box-shadow: var(--shadow-sm);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.prayer-embed-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(71, 162, 214, 0.28);
  background: #fff;
}

.prayer-iframe {
  width: 100%;
  height: 620px;
  border: 0;
  display: block;
}

.prayer-embed-fallback {
  margin: 0;
  color: #507181;
  font-size: 0.92rem;
}

.prayer-embed-fallback a {
  color: #8e6710;
  font-weight: 700;
}

.resources {
  position: relative;
  background:
    radial-gradient(circle at 12% 16%, rgba(71, 162, 214, 0.09), transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(231, 174, 39, 0.12), transparent 35%),
    #f6fbfe;
  border-top: 1px solid rgba(207, 222, 232, 0.7);
  border-bottom: 1px solid rgba(207, 222, 232, 0.7);
}

.resources::before {
  content: "";
  position: absolute;
  top: 34px;
  right: clamp(16px, 7vw, 86px);
  width: 88px;
  height: 88px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Cpath d='M58 10c-2.6-.9-5.4-1.3-8.2-1.3-17.5 0-31.8 14.3-31.8 31.8s14.3 31.8 31.8 31.8c10.1 0 19.1-4.7 24.9-12.1-2.9 1.1-6 1.7-9.3 1.7-15.2 0-27.5-12.3-27.5-27.5 0-9 4.3-16.9 10.9-21.9 2.8-2.1 5.9-3.7 9.2-4.5z' fill='%231f6e9a' fill-opacity='.28'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.86;
  filter: drop-shadow(0 3px 8px rgba(31, 110, 154, 0.16));
  pointer-events: none;
}

.resources::after {
  content: "";
  position: absolute;
  top: 28px;
  right: clamp(4px, 5.2vw, 86px);
  width: 30px;
  height: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.6l2.3 6.1 6.1 2.3-6.1 2.3-2.3 6.1-2.3-6.1-6.1-2.3 6.1-2.3L12 1.6z' fill='%23E7AE27' fill-opacity='.74'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.9;
  pointer-events: none;
}

.resources-top {
  margin-top: var(--space-5);
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: var(--space-3);
  align-items: stretch;
}

.resources-hero-image {
  margin: 0;
  min-height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.resources-hero-image img {
  width: 100%;
  min-height: 290px;
  object-fit: cover;
}

.resource-spotlight {
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, #ffffff, #edf3f8);
  border: 1px solid rgba(207, 222, 232, 0.95);
  box-shadow: var(--shadow-sm);
  padding: var(--space-4);
  display: grid;
  align-content: start;
  min-height: 290px;
}

.resource-spotlight .eyebrow {
  margin-bottom: 0.7rem;
}

.resource-spotlight h3 {
  font-size: 1.8rem;
  margin-bottom: 0.55rem;
  color: #c9961a;
}

.resource-spotlight p {
  margin: 0;
  color: #486775;
}

.resource-spotlight a {
  margin-top: 1rem;
  display: inline-flex;
  width: fit-content;
  padding: 0.55rem 0.72rem;
  border-radius: 9px;
  border: 1px solid rgba(231, 174, 39, 0.55);
  background: rgba(231, 174, 39, 0.14);
  color: #8e6710;
  font-weight: 700;
}

.resources-grid {
  margin-top: var(--space-3);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.resource-card {
  background: linear-gradient(160deg, #ffffff, #f3f7fc);
  border: 1px solid rgba(207, 222, 232, 0.9);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  min-height: 170px;
}

.resource-card h3 {
  color: #1b4e6a;
}

.resource-card p {
  margin: 0;
  color: #4a6877;
}

.resource-card-accent {
  background: linear-gradient(150deg, #fff9ea, #e9f4fb);
  border-color: rgba(231, 174, 39, 0.42);
}

.blog-section {
  position: relative;
}

.blog-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 8%, rgba(231, 174, 39, 0.12), transparent 34%),
    radial-gradient(circle at 92% 90%, rgba(71, 162, 214, 0.1), transparent 32%);
  pointer-events: none;
}

.blog-grid {
  margin-top: var(--space-5);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  position: relative;
  z-index: 1;
}

.blog-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(207, 222, 232, 0.9);
  overflow: hidden;
  background: linear-gradient(160deg, #ffffff, #f3f8fc);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-card-image {
  margin: 0;
  min-height: 210px;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.blog-card-body {
  padding: var(--space-4);
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.blog-card-body h3 {
  margin: 0;
  font-size: 1.3rem;
  color: #1b4e6a;
}

.blog-card-body p {
  margin: 0;
  color: #4a6877;
}

.community-cta {
  padding-top: 3.8rem;
}

.cta-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-5);
}

.community-image {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 360px;
  box-shadow: var(--shadow-md);
  height: 100%;
}

.community-image img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.action-card {
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  background:
    radial-gradient(circle at 92% 0%, rgba(231, 174, 39, 0.28), transparent 40%),
    linear-gradient(140deg, #16567a, #2b7fb0 46%, #47A2D6 100%);
  box-shadow: var(--shadow-md);
}

.action-card .eyebrow,
.action-card h2,
.action-card p {
  color: #f3f9fe;
}

.action-grid {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-2);
}

.action-item {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(231, 174, 39, 0.58);
  background: linear-gradient(145deg, rgba(231, 174, 39, 0.18), rgba(255, 255, 255, 0.08));
  padding: 0.82rem 0.9rem;
  display: grid;
  gap: 0.2rem;
}

.action-item strong {
  color: #fff2cc;
}

.action-item span {
  color: #e4f2fa;
  font-size: 0.94rem;
}

.action-item:hover {
  background: rgba(255, 255, 255, 0.16);
}

.contact-strip {
  padding: 2.5rem 0 0;
}

.contact-inner {
  border-radius: var(--radius-md);
  border: 1px solid rgba(207, 222, 232, 0.9);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  padding: var(--space-4) var(--space-5);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: var(--space-4);
}

.contact-socials-wrap {
  min-width: 0;
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.68rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #ffffff !important;
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(9, 27, 40, 0.14);
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.social-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 24px rgba(9, 27, 40, 0.2);
  filter: saturate(1.08);
}

.social-icon-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.social-icon-facebook {
  background: #1877f2;
}

.social-icon-facebook svg {
  width: 22px;
  height: 22px;
}

.social-icon-whatsapp {
  background: #25d366;
}

.social-icon-whatsapp svg {
  width: 23px;
  height: 23px;
}

.contact-label {
  margin: 0 0 0.28rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-muted);
}

.contact-inner a,
.contact-inner p {
  margin: 0;
  color: #314c5d;
  font-weight: 600;
}

.soci-page .section {
  position: relative;
}

.soci-hero {
  padding: 4.2rem 0 3.2rem;
}

.soci-hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: var(--space-5);
  align-items: center;
}

.soci-hero-content {
  max-width: 62ch;
}

.soci-hero-content h1 {
  margin-bottom: var(--space-4);
}

.soci-hero-lead {
  margin: 0 0 var(--space-4);
  color: #3f6071;
  font-size: 1.06rem;
}

.soci-hero-media {
  margin: 0;
  min-height: 390px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.soci-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

.soci-values {
  background:
    radial-gradient(circle at 8% 10%, rgba(231, 174, 39, 0.12), transparent 36%),
    radial-gradient(circle at 90% 82%, rgba(71, 162, 214, 0.12), transparent 36%),
    #f7fbfe;
  border-top: 1px solid rgba(207, 222, 232, 0.74);
  border-bottom: 1px solid rgba(207, 222, 232, 0.74);
}

.soci-value-grid {
  margin-top: var(--space-5);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.soci-value-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(207, 222, 232, 0.92);
  background: linear-gradient(155deg, #ffffff, #f2f7fb);
  box-shadow: var(--shadow-sm);
  padding: var(--space-4);
}

.soci-value-icon {
  font-size: 1.5rem;
}

.soci-value-card h3 {
  margin-top: 0.65rem;
}

.soci-value-card p {
  margin: 0;
  color: #486777;
}

.soci-section-note {
  margin: var(--space-4) 0 0;
  border-radius: var(--radius-md);
  border: 1px solid rgba(231, 174, 39, 0.44);
  background: rgba(231, 174, 39, 0.12);
  color: #6c5416;
  padding: 0.9rem 1rem;
  font-weight: 700;
}

.soci-benefits h2 {
  max-width: 22ch;
}

.soci-benefits-image {
  margin: var(--space-4) 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(207, 222, 232, 0.9);
}

.soci-benefits-image img {
  width: 100%;
  min-height: 280px;
  object-fit: cover;
}

.soci-benefit-cards {
  margin-top: var(--space-3);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.soci-benefit-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(71, 162, 214, 0.28);
  background: linear-gradient(160deg, #ffffff, #edf6fb);
  padding: var(--space-4);
}

.soci-benefit-card h3 {
  color: #1f6e9a;
}

.soci-benefit-card p {
  margin: 0;
  color: #4f6f7f;
}

.soci-form-section {
  padding-top: 2.6rem;
}

.soci-form-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-5);
}

.soci-form-copy p {
  color: #466676;
}

.soci-process-list {
  margin: var(--space-4) 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.75rem;
  color: #365668;
  font-weight: 700;
}

.soci-form-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(207, 222, 232, 0.92);
  background: linear-gradient(160deg, #ffffff, #f4f9fc);
  box-shadow: var(--shadow-md);
  padding: var(--space-5);
}

.soci-form {
  display: grid;
  gap: var(--space-3);
}

.soci-form[hidden] {
  display: none !important;
}

.soci-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.soci-form-grid label {
  display: grid;
  gap: 0.4rem;
}

.soci-form-grid label span {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5a7280;
  font-weight: 700;
}

.soci-form-grid input {
  border: 1px solid rgba(31, 110, 154, 0.22);
  border-radius: 11px;
  height: 44px;
  padding: 0 0.78rem;
  font: inherit;
  color: #24485a;
  background: #fff;
}

.soci-form-grid input[type="file"] {
  padding: 0.58rem 0.68rem;
}

.soci-form-grid input:focus-visible {
  outline-color: rgba(71, 162, 214, 0.58);
}

.soci-form-full {
  grid-column: 1 / -1;
}

.soci-form-full small {
  color: #6a7f8a;
  font-size: 0.82rem;
}

.soci-form-error {
  margin: 0;
  color: #b32020;
  font-weight: 700;
}

.soci-form-success,
.soci-form-error-banner {
  margin: 0 0 var(--space-3);
  border-radius: 11px;
  padding: 0.7rem 0.85rem;
  font-weight: 700;
}

.soci-form-success {
  border: 1px solid rgba(20, 115, 79, 0.28);
  background: rgba(20, 115, 79, 0.1);
  color: #14734f;
}

.soci-form-error-banner {
  border: 1px solid rgba(179, 32, 32, 0.24);
  background: rgba(179, 32, 32, 0.08);
  color: #9f2323;
}

.soci-form .btn.is-loading,
.soci-form .btn[aria-busy="true"] {
  opacity: 0.82;
  cursor: wait;
  pointer-events: none;
}

.soci-thankyou {
  display: grid;
  gap: var(--space-3);
}

.soci-thankyou[hidden] {
  display: none !important;
}

.soci-thankyou h3 {
  color: #14734f;
}

.soci-thankyou p {
  margin: 0;
  color: #3d5f70;
}

.soci-quote {
  border-radius: var(--radius-md);
  border: 1px solid rgba(231, 174, 39, 0.45);
  background: linear-gradient(160deg, rgba(231, 174, 39, 0.14), rgba(255, 255, 255, 0.76));
  padding: var(--space-4);
}

.soci-quote-ref {
  margin-bottom: 0.55rem;
  color: #7d5b09 !important;
  font-weight: 700;
}

.soci-arabic {
  margin: 0 0 0.72rem;
  font-size: 1.65rem;
  line-height: 1.8;
  color: #1d3e56 !important;
}

.soci-mail-example {
  border-radius: 13px;
  border: 1px solid rgba(207, 222, 232, 0.9);
  background: #ffffff;
  padding: 1rem;
}

.soci-contact-mini {
  display: grid;
  gap: 0.55rem;
}

.soci-contact-mini .contact-socials {
  margin-top: 0.25rem;
}

.donazioni-page .section {
  position: relative;
}

.donazioni-hero {
  padding: 4.2rem 0 3.4rem;
}

.donazioni-hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: var(--space-5);
  align-items: start;
}

.donazioni-hero-content {
  max-width: 64ch;
}

.donazioni-hero-lead {
  margin: 0 0 var(--space-4);
  color: #3f6071;
  font-size: 1.06rem;
}

.donazioni-hero-side {
  display: grid;
  gap: var(--space-3);
}

.donazioni-hero-media {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--shadow-md);
}

.donazioni-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.donazioni-quote-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(231, 174, 39, 0.45);
  background: linear-gradient(160deg, rgba(231, 174, 39, 0.15), rgba(255, 255, 255, 0.82));
  padding: var(--space-4);
}

.donazioni-quote-ref {
  margin: 0 0 0.42rem;
  color: #7d5b09;
  font-weight: 700;
}

.donazioni-arabic {
  margin: 0 0 0.6rem;
  font-size: 1.45rem;
  line-height: 1.7;
  color: #1d3e56;
}

.donazioni-quote-card p {
  margin: 0;
  color: #3e5f71;
}

.donazioni-steps {
  background:
    radial-gradient(circle at 9% 8%, rgba(71, 162, 214, 0.1), transparent 38%),
    radial-gradient(circle at 91% 88%, rgba(231, 174, 39, 0.12), transparent 38%),
    #f7fbfe;
  border-top: 1px solid rgba(207, 222, 232, 0.75);
  border-bottom: 1px solid rgba(207, 222, 232, 0.75);
}

.donazioni-step-grid {
  margin-top: var(--space-5);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.donazioni-step-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(207, 222, 232, 0.9);
  background: linear-gradient(155deg, #ffffff, #f3f8fc);
  box-shadow: var(--shadow-sm);
  padding: var(--space-4);
}

.donazioni-step-card span {
  display: inline-flex;
  margin-bottom: 0.8rem;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #7d5b09;
  border-radius: 999px;
  border: 1px solid rgba(231, 174, 39, 0.54);
  background: rgba(231, 174, 39, 0.14);
  padding: 0.26rem 0.62rem;
}

.donazioni-step-card h3 {
  margin: 0 0 0.4rem;
}

.donazioni-step-card p {
  margin: 0;
  color: #496878;
}

.donazioni-details-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-5);
  align-items: stretch;
}

.donazioni-bank-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(207, 222, 232, 0.92);
  background: linear-gradient(160deg, #ffffff, #f4f9fc);
  box-shadow: var(--shadow-md);
  padding: var(--space-5);
}

.donazioni-bank-card h2 {
  margin-bottom: var(--space-4);
}

.donazioni-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.52rem;
  margin-bottom: var(--space-4);
}

.donazioni-amounts span {
  border-radius: 999px;
  border: 1px solid rgba(231, 174, 39, 0.58);
  background: rgba(231, 174, 39, 0.14);
  color: #7e5b09;
  font-weight: 800;
  font-size: 0.86rem;
  padding: 0.38rem 0.7rem;
}

.donazioni-bank-list {
  margin: 0;
  display: grid;
  gap: 0.72rem;
}

.donazioni-bank-list div {
  border-radius: 12px;
  border: 1px solid rgba(207, 222, 232, 0.9);
  background: #ffffff;
  padding: 0.76rem 0.84rem;
}

.donazioni-bank-list dt {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #59707d;
  font-weight: 700;
}

.donazioni-bank-list dd {
  margin: 0.2rem 0 0;
  color: #254a5d;
  font-weight: 700;
}

.donazioni-bank-list .iban-value {
  font-family: "Courier New", Courier, monospace;
}

.donazioni-note {
  margin: var(--space-4) 0 0;
  color: #4a6878;
}

.donazioni-info-media {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-height: 100%;
}

.donazioni-info-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.donazioni-form-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-5);
}

.donazioni-form-copy p {
  color: #486777;
}

.donazioni-check-list {
  margin: var(--space-4) 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.7rem;
  color: #385a6c;
  font-weight: 700;
}

.donazioni-form-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(207, 222, 232, 0.92);
  background: linear-gradient(160deg, #ffffff, #f4f9fc);
  box-shadow: var(--shadow-md);
  padding: var(--space-5);
}

.donazioni-form {
  display: grid;
  gap: var(--space-3);
}

.donazioni-form[hidden] {
  display: none !important;
}

.donazioni-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.donazioni-form-grid label {
  display: grid;
  gap: 0.4rem;
}

.donazioni-form-grid label span {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5a7280;
  font-weight: 700;
}

.donazioni-form-grid input,
.donazioni-form-grid select,
.donazioni-form-grid textarea {
  border: 1px solid rgba(31, 110, 154, 0.22);
  border-radius: 11px;
  padding: 0.7rem 0.78rem;
  font: inherit;
  color: #24485a;
  background: #fff;
}

.donazioni-form-grid input,
.donazioni-form-grid select {
  height: 44px;
}

.donazioni-form-grid textarea {
  resize: vertical;
  min-height: 120px;
}

.donazioni-form-grid input:focus-visible,
.donazioni-form-grid select:focus-visible,
.donazioni-form-grid textarea:focus-visible {
  outline-color: rgba(71, 162, 214, 0.58);
}

.donazioni-form-full {
  grid-column: 1 / -1;
}

.donazioni-form-grid small {
  color: #6a7f8a;
  font-size: 0.82rem;
}

.donazioni-checkbox {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.donazioni-checkbox input {
  margin-top: 0.28rem;
  width: 18px;
  height: 18px;
}

.donazioni-checkbox span {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
}

.donazioni-form .btn.is-loading,
.donazioni-form .btn[aria-busy="true"] {
  opacity: 0.82;
  cursor: wait;
  pointer-events: none;
}

.donazioni-thankyou {
  display: grid;
  gap: var(--space-3);
}

.donazioni-thankyou[hidden] {
  display: none !important;
}

.donazioni-thankyou h3 {
  color: #14734f;
}

.donazioni-thankyou p {
  margin: 0;
  color: #3d5f70;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.58rem 0.88rem;
  background: linear-gradient(145deg, #17a363, #0f8a53);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(13, 104, 63, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.38);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(13, 104, 63, 0.34);
}

.whatsapp-float-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
}

.whatsapp-float-icon svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.whatsapp-float-text {
  font-weight: 700;
  font-size: 0.86rem;
}

.site-footer {
  margin-top: var(--space-6);
  border-top: 1px solid rgba(207, 222, 232, 0.8);
  background: #e4edf4;
}

.footer-inner {
  min-height: 140px;
  padding: var(--space-5) 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-5);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.footer-brand img {
  width: auto;
  height: 65px;
  object-fit: contain;
}

.footer-brand p {
  margin: 0;
  font-weight: 700;
  color: #335261;
}

.footer-nav {
  display: flex;
  justify-self: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-nav a {
  color: #486675;
  font-weight: 700;
}

.footer-nav a:hover {
  color: var(--color-secondary);
}

.footer-meta {
  text-align: right;
}

.footer-meta p {
  margin: 0.2rem 0;
  color: #587885;
}

.footer-meta span {
  margin-left: 0.36rem;
}

.footer-meta .credit-link {
  color: var(--color-accent);
  font-weight: 600;
}

.footer-meta .credit-link:hover {
  color: var(--color-secondary);
}

.fade-up {
  animation: fadeUp 500ms ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-header.is-scrolled {
  background: rgba(246, 251, 254, 0.97);
  box-shadow: 0 12px 28px rgba(19, 48, 68, 0.14);
  border-bottom-color: rgba(207, 222, 232, 0.95);
}

.has-motion .reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  will-change: transform, opacity;
}

.has-motion .reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

:focus-visible {
  outline: 3px solid rgba(231, 174, 39, 0.62);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1180px) {
  .container {
    width: min(var(--container), calc(100% - 3rem));
  }
}

@media (max-width: 1040px) {

  .header-inner,
  .school-layout,
  .prayer-layout,
  .cta-grid,
  .soci-hero-grid,
  .soci-form-layout,
  .donazioni-hero-grid,
  .donazioni-details-grid,
  .donazioni-form-layout,
  .contact-inner,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-media-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "side"
      "trust";
  }

  .pillar-grid {
    grid-template-columns: 1fr;
  }

  .school-pillars {
    grid-template-columns: 1fr;
  }

  .resources-top,
  .resources-grid,
  .blog-grid,
  .soci-value-grid,
  .soci-benefit-cards,
  .soci-form-grid,
  .donazioni-step-grid,
  .donazioni-form-grid {
    grid-template-columns: 1fr;
  }

  .prayer-iframe {
    height: 560px;
  }

  .primary-nav {
    justify-self: start;
    flex-wrap: wrap;
  }

  .footer-meta {
    text-align: left;
  }

  .soci-hero-media,
  .soci-hero-media img {
    min-height: 300px;
  }

  .soci-form-card {
    padding: var(--space-4);
  }

  .donazioni-info-media img {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 1.5rem);
  }

  .hero {
    padding: 3.4rem 0 2.6rem;
  }

  .section {
    padding: 2.4rem 0;
  }

  .hero-media-main {
    min-height: 290px;
  }

  .hero-media-side {
    min-height: 160px;
  }

  .school-content,
  .prayer-band,
  .soci-form-card,
  .donazioni-form-card,
  .action-card {
    padding: var(--space-4);
  }

  .school-image,
  .school-image img {
    min-height: 280px;
  }

  .community-image,
  .community-image img {
    min-height: 260px;
  }

  .resources::before,
  .resources::after,
  .hero-motif {
    display: none;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    padding: 0.52rem 0.68rem;
  }

  .whatsapp-float-text {
    display: none;
  }

  .prayer-iframe {
    height: 460px;
  }

  .soci-arabic {
    font-size: 1.35rem;
    line-height: 1.6;
  }

  .donazioni-arabic {
    font-size: 1.25rem;
    line-height: 1.55;
  }
}

@media (max-width: 1040px) {
  .site-header {
    position: sticky;
  }

  .header-inner {
    min-height: 74px;
    grid-template-columns: auto 1fr auto;
    gap: 0.8rem;
    position: relative;
  }

  .brand img {
    height: 52px;
  }

  .nav-toggle {
    display: inline-flex !important;
    grid-column: 3;
    justify-self: end;
    margin-left: auto;
  }

  .header-cta {
    display: none;
  }

  .primary-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 74px;
    width: 100vw;
    max-height: calc(100vh - 74px);
    overflow: auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 1rem 1rem 1.2rem;
    border-radius: 0;
    border-top: 1px solid rgba(207, 222, 232, 0.9);
    border-bottom: 1px solid rgba(207, 222, 232, 0.9);
    background: rgba(246, 251, 254, 0.98);
    box-shadow: var(--shadow-md);
  }

  .site-header.nav-open .primary-nav {
    display: flex;
  }

  .primary-nav a {
    width: 100%;
    padding: 0.5rem 0;
  }

  .mobile-nav-cta {
    display: inline-flex !important;
    margin-top: 0.35rem;
  }

  .footer-nav {
    justify-self: start;
    width: 100%;
    gap: 0.8rem 1rem;
  }

  .footer-inner {
    gap: var(--space-4);
  }
}

body.admin-bar .site-header {
  top: 32px;
}

body.admin-bar .primary-nav {
  top: 106px;
  max-height: calc(100vh - 106px);
}

.brand-logo .custom-logo-link,
.brand-logo .custom-logo {
  display: block;
}

.brand-logo .custom-logo {
  width: auto;
  height: 65px;
  object-fit: contain;
}

.primary-nav ul,
.footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: var(--space-4);
}

.primary-nav li,
.footer-nav li {
  margin: 0;
}

.blog-grid-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.blog-card-body h2 {
  margin: 0;
  font-size: 1.3rem;
  color: #1b4e6a;
}

.blog-more-link {
  margin-top: var(--space-4);
}

.single-post-wrap {
  max-width: 860px;
}

.single-post-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(207, 222, 232, 0.9);
  background: linear-gradient(160deg, #ffffff, #f3f8fc);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.2rem, 2.5vw, 2rem);
}

.single-post-thumb {
  margin: 0 0 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.single-post-thumb img {
  height: auto;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  color: #314c5d;
}

.entry-content a {
  color: #1f6e9a;
  text-decoration: underline;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 1.2rem;
}

.pagination-wrap {
  margin-top: var(--space-5);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(231, 174, 39, 0.45);
  background: rgba(231, 174, 39, 0.08);
  font-weight: 700;
  color: #8e6710;
  padding: 0 0.75rem;
}

.pagination .page-numbers.current {
  background: #e7ae27;
  color: #173f56;
  border-color: transparent;
}

.single-nav {
  margin-top: 1rem;
}

.single-nav .nav-links {
  display: grid;
  gap: 0.6rem;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  body.admin-bar .primary-nav {
    top: 120px;
    max-height: calc(100vh - 120px);
  }
}

@media (max-width: 1040px) {
  .primary-nav ul {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .blog-grid-list {
    grid-template-columns: 1fr;
  }

  .footer-nav ul {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {

  .footer-nav,
  .footer-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}