/* ===========================================================
   AL-QOSIMIYYAH MODEL SCHOOL — shared site stylesheet
   Brand colors pulled from the existing index.css:
     --maroon:      #800020  (primary)
     --maroon-mid:  #b03060  (accent / hover states)
   =========================================================== */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --maroon: #800020;
  --maroon-dark: #5c0017;
  --maroon-mid: #b03060;
  --gold: #d9a441;
  --gold-dark: #c08a2c;
  --cream: #faf7f4;
  --ink: #2b1c1f;
  --grey: #6b6266;
  --border: #ece4e6;
  --radius: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================== NAV ===================== */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
nav .logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}
nav .logo-link img {
  height: 44px;
}
nav .logo-text {
  line-height: 1.15;
}
nav .logo-text strong {
  display: block;
  font-size: 14px;
  color: var(--maroon);
  font-weight: 700;
}
nav .logo-text span {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--grey);
}

nav ul {
  display: flex;
  gap: 26px;
}
nav ul li a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition:
    color 0.2s,
    border-color 0.2s;
}
nav ul li a:hover,
nav ul li.active a {
  color: var(--maroon);
  border-bottom-color: var(--maroon);
}

nav .nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.btn-portal {
  background: var(--maroon);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 8px;
  transition: background 0.2s;
}
.btn-portal:hover {
  background: var(--maroon-dark);
}

#menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 20px;
  cursor: pointer;
  color: var(--maroon);
  touch-action: manipulation;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition:
    transform 0.15s,
    background 0.2s,
    box-shadow 0.2s;
}
.btn-gold {
  background: var(--gold);
  color: #2b1c1f;
}
.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid #fff;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}
.btn-maroon {
  background: var(--maroon);
  color: #fff;
}
.btn-maroon:hover {
  background: var(--maroon-dark);
  transform: translateY(-2px);
}
.btn-block {
  width: 100%;
  text-align: center;
}

/* ===================== PAGE HERO (inner pages) ===================== */
.page-hero {
  background: linear-gradient(
    135deg,
    var(--maroon) 0%,
    var(--maroon-dark) 100%
  );
  color: #fff;
  padding: 56px 0 46px;
}
.page-hero h1 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 8px;
}
.page-hero .crumb {
  font-size: 13px;
  opacity: 0.8;
}
.page-hero .crumb a {
  color: #fff;
  opacity: 0.85;
}
.page-hero .crumb a:hover {
  text-decoration: underline;
}

/* ===================== SECTION HELPERS ===================== */
.section {
  padding: 64px 0;
}
.section-tight {
  padding: 40px 0;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--maroon-mid);
  margin-bottom: 8px;
}
.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.section-sub {
  font-size: 15px;
  color: var(--grey);
  max-width: 640px;
  margin-bottom: 40px;
}
.section-title-center {
  text-align: center;
}
.section-sub-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ===================== CARDS / GRIDS ===================== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.icon-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: left;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.icon-card:hover {
  box-shadow: 0 12px 30px rgba(128, 0, 32, 0.1);
  transform: translateY(-4px);
}
.icon-card .ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--maroon);
  font-size: 19px;
  margin-bottom: 14px;
}
.icon-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
.icon-card p {
  font-size: 13.5px;
  color: var(--grey);
}

.stat-bar {
  background: var(--maroon);
  padding: 28px 0;
}
.stat-bar .grid-4 {
  text-align: center;
}
.stat-bar .stat-num {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}
.stat-bar .stat-label {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
}

/* ===================== NEWS CARDS ===================== */
.news-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.news-card:hover {
  box-shadow: 0 14px 34px rgba(128, 0, 32, 0.12);
  transform: translateY(-4px);
}
.news-card .thumb {
  position: relative;
  height: 170px;
  overflow: hidden;
}
.news-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-card .date-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--maroon);
  color: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
  line-height: 1.1;
}
.news-card .date-badge .d {
  font-size: 15px;
  font-weight: 700;
  display: block;
}
.news-card .date-badge .m {
  font-size: 10px;
  text-transform: uppercase;
}
.news-card .body {
  padding: 16px 18px 20px;
}
.news-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}
.news-card p {
  font-size: 13px;
  color: var(--grey);
}

/* ===================== CTA BANNER ===================== */
.cta-banner {
  background: linear-gradient(
    120deg,
    var(--maroon) 0%,
    var(--maroon-dark) 100%
  );
  border-radius: var(--radius);
  color: #fff;
  padding: 34px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.cta-banner h3 {
  font-size: 20px;
  margin-bottom: 4px;
}
.cta-banner p {
  font-size: 13.5px;
  opacity: 0.85;
}

/* ===================== CALENDAR EMBED ===================== */
.calendar-embed {
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
}
.calendar-embed iframe {
  display: block;
  width: 100%;
}
@media (max-width: 600px) {
  .calendar-embed iframe {
    height: 480px;
  }
}

/* ===================== FOOTER ===================== */
footer {
  background: var(--maroon-dark);
  color: rgba(255, 255, 255, 0.82);
  padding: 50px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 34px;
}
.footer-grid h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 14px;
}
.footer-grid p,
.footer-grid li,
.footer-grid a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}
.footer-grid li {
  margin-bottom: 9px;
}
.footer-grid a:hover {
  color: #fff;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-brand img {
  height: 38px;
}
.footer-brand strong {
  color: #fff;
  font-size: 15px;
}
.social-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.social-row a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.social-row a:hover {
  background: var(--gold);
  color: var(--ink);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  padding: 16px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

/* ===================== FILTER TABS (news/gallery) ===================== */
.filter-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.filter-tabs button {
  padding: 9px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--ink);
}
.filter-tabs button.active,
.filter-tabs button:hover {
  background: var(--maroon);
  color: #fff;
  border-color: var(--maroon);
}

/* ===================== GALLERY ===================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  border-radius: 0 25px 0 25px;
  /* aspect-ratio: 1/1; */
}
.g-item {
  position: relative;
  border: 1px solid #b03060;
  border-radius: 0 25px 0 25px;
  position: relative;
  height: 250px;
}

.gallery-grid .g-item {
  border-radius: 10px;
  overflow: hidden;
  border-radius: 0 20px 0 20px;
}
.gallery-grid {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

/* .gallery-grid .g-item:hover img {
  transform: scale(1.06);
} */

.g-item img {
  object-fit: cover;
  border-radius: 0 25px 0 25px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.img-front {
  opacity: 1;
  z-index: 2;
}

.img-bck {
  opacity: 0;
  z-index: 1;
  transform: scale(1.05);
}

.g-item:hover .img-front {
  opacity: 0;
}

.g-item:hover .img-bck {
  opacity: 1;
  transform: scale(1);
}
*/

/* ===================== FORMS ===================== */
.form-field {
  margin-bottom: 16px;
}
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--maroon-mid);
}
.form-banner {
  display: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  margin-bottom: 18px;
}
.form-banner.success {
  background: #e6f7ee;
  color: #1a7f4e;
}
.form-banner.error {
  background: #fde8e8;
  color: #9b1c1c;
}
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

/* ===================== ADMISSIONS STEPS ===================== */
.steps-row {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 40px 0 10px;
}
.steps-row::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.step {
  text-align: center;
  position: relative;
  z-index: 1;
  flex: 1;
}
.step .num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--maroon);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 12px;
}
.step h4 {
  font-size: 14px;
  margin-bottom: 3px;
}
.step p {
  font-size: 12px;
  color: var(--grey);
}

/* ===================== PORTAL PAGE ===================== */
.portal-hero {
  text-align: center;
}
.portal-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}
.portal-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 30px;
  width: 240px;
  text-align: center;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.portal-card:hover {
  box-shadow: 0 16px 36px rgba(128, 0, 32, 0.14);
  transform: translateY(-6px);
}
.portal-card .pic {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
}
.portal-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
.portal-card p {
  font-size: 12.5px;
  color: var(--grey);
  margin-bottom: 18px;
  min-height: 36px;
}

/* ===================== HOME HERO ===================== */
.hero-home {
  background:
    linear-gradient(135deg, rgba(128, 0, 32, 0.93), rgba(92, 0, 23, 0.93)),
    url("images/sch1.jpg") center/cover;
  color: #fff;
  padding: 90px 0 100px;
}
.hero-home .hero-inner {
  max-width: 600px;
}
.hero-home h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero-home p {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 28px;
}
.hero-home .btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
@media (max-width: 860px) {
  .hero-home {
    padding: 60px 0 70px;
  }
  .hero-home h1 {
    font-size: 30px;
  }
}
@media (max-width: 480px) {
  .hero-home {
    padding: 50px 0 56px;
  }
  .hero-home h1 {
    font-size: 25px;
  }
  .hero-home p {
    font-size: 13.5px;
  }
}

/* ===================== HERO SLIDER (home) ===================== */
.hero-slider {
  position: relative;
  height: 480px;
  overflow: hidden;
  color: #fff;
}
.hero-slider .hs-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s ease-in-out;
}
.hero-slider .hs-slide {
  position: relative;
  min-width: 100%;
  height: 100%;
}
.hero-slider .hs-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slider .hs-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(128, 0, 32, 0.52),
    rgba(92, 0, 23, 0.35)
  );
}
.hero-slider .hs-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}
.hero-slider .hs-caption .container {
  max-width: 600px;
}
.hero-slider .hs-caption h1 {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
}
.hero-slider .hs-caption p {
  font-size: 15px;
  opacity: 0.92;
  margin-bottom: 24px;
}
.hero-slider .hs-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}
.hero-slider .hs-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}
.hero-slider .hs-dots span.active {
  background: var(--gold);
  transform: scale(1.2);
}
.hero-slider .hs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  border: none;
  font-size: 15px;
  transition: background 0.2s;
}
.hero-slider .hs-arrow:hover {
  background: rgba(255, 255, 255, 0.32);
}
.hero-slider .hs-arrow.prev {
  left: 18px;
}
.hero-slider .hs-arrow.next {
  right: 18px;
}
@media (max-width: 860px) {
  .hero-slider {
    height: 380px;
  }
  .hero-slider .hs-caption h1 {
    font-size: 27px;
  }
  .hero-slider .hs-arrow {
    display: none;
  }
}

/* ===================== TERM COUNTDOWN STRIP ===================== */
.countdown-strip {
  background: var(--maroon-dark);
}
.countdown-strip .cs-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 18px 0;
  flex-wrap: wrap;
  color: #fff;
}
.countdown-strip .cs-label {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}
.countdown-strip .cs-units {
  display: flex;
  gap: 18px;
}
.countdown-strip .cs-unit {
  text-align: center;
}
.countdown-strip .cs-unit .n {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
}
.countdown-strip .cs-unit .u {
  font-size: 10.5px;
  text-transform: uppercase;
  opacity: 0.75;
}

/* ===================== UPDATES: NEWS / EVENTS / VIDEO ===================== */
.updates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 22px;
  align-items: stretch;
}
.update-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
}
.update-card h3 {
  font-size: 15px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.update-card h3 i {
  color: var(--maroon);
}
.update-card .admission-box {
  background: var(--cream);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  margin-top: auto;
}
.update-card .admission-box .session {
  font-size: 18px;
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 4px;
}
.update-card .admission-box .tag {
  font-size: 12px;
  color: var(--grey);
}
.events-scroll {
  height: 190px;
  overflow: hidden;
  position: relative;
}
.events-scroll::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
}
.events-scroll .es-track {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.events-scroll.es-animate .es-track {
  animation: esScroll 14s linear infinite;
}
.events-scroll:hover .es-track {
  animation-play-state: paused;
}
@keyframes esScroll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}
.es-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
}
.es-item .es-date {
  background: var(--maroon);
  color: #fff;
  border-radius: 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 4px;
  line-height: 1.2;
}
.es-item p {
  font-size: 12.5px;
  color: var(--ink);
  margin: 0;
}
.video-embed {
  border-radius: 10px;
  overflow: hidden;
}
.video-embed iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}
@media (max-width: 900px) {
  .updates-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================== SCHOOL ANTHEM (about) ===================== */
.anthem-card {
  background: linear-gradient(
    150deg,
    var(--maroon) 0%,
    var(--maroon-dark) 100%
  );
  border-radius: var(--radius);
  color: #fff;
  padding: 40px;
}
.anthem-card .anthem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.anthem-card .stanza-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 12px;
}
.anthem-card p {
  font-size: 13.5px;
  line-height: 1.9;
  opacity: 0.92;
}
@media (max-width: 860px) {
  .anthem-card {
    padding: 28px 22px;
  }
  .anthem-card .anthem-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

/* ===================== PREFECTS (academics) ===================== */
.prefects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.prefect-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.prefect-card:hover {
  box-shadow: 0 12px 30px rgba(128, 0, 32, 0.1);
  transform: translateY(-4px);
}
.prefect-card img {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--cream);
  margin: 0 auto 14px;
}
.prefect-card h4 {
  font-size: 14.5px;
  margin-bottom: 4px;
}
.prefect-card .post {
  font-size: 12px;
  color: var(--maroon);
  font-weight: 600;
  margin-bottom: 2px;
}
.prefect-card .cls {
  font-size: 11.5px;
  color: var(--grey);
}
@media (max-width: 900px) {
  .prefects-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .prefects-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================== FLOATING WHATSAPP BUTTON ===================== */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  z-index: 3000;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  color: #fff;
}
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.55;
  animation: waPulse 2.2s ease-out infinite;
  z-index: -1;
}
@keyframes waPulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}
@media (max-width: 480px) {
  .wa-float {
    right: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;
    font-size: 23px;
  }
}

/* ===================== DAILY INSIGHTS ===================== */
.daily-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.daily-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent, var(--maroon));
  border-radius: var(--radius);
  padding: 22px 20px;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.daily-card:hover {
  box-shadow: 0 12px 30px rgba(128, 0, 32, 0.1);
  transform: translateY(-4px);
}
.daily-card .dc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.daily-card .dc-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--cream);
  color: var(--accent, var(--maroon));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.daily-card .dc-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--grey);
}
.daily-card .dc-text {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.55;
  min-height: 60px;
}
.daily-card .dc-ref {
  font-size: 11.5px;
  color: var(--accent, var(--maroon));
  font-weight: 600;
  margin-top: 10px;
  display: block;
}
.daily-card.dc-hadith {
  --accent: #8a00c4;
}
.daily-card.dc-verse {
  --accent: #0e8a5f;
}
.daily-card.dc-grammar {
  --accent: #b5860b;
}
.daily-card.dc-science {
  --accent: #1f6fb2;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  nav {
    padding: 14px 24px;
  }
  nav ul {
    gap: 16px;
  }
  nav ul li a {
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .daily-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 860px) {
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px 24px;
    gap: 4px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  }
  nav ul.mobile-open {
    display: flex;
  }
  nav ul li a {
    display: block;
    padding: 10px 4px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
  }
  nav ul li.active a {
    border-bottom: 1px solid var(--border);
  }
  #menu-btn {
    display: flex;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-row {
    flex-direction: column;
    gap: 24px;
  }
  .steps-row::before {
    display: none;
  }
  .cta-banner {
    flex-direction: column;
    text-align: center;
  }
  .page-hero h1 {
    font-size: 28px;
  }
}
@media (max-width: 480px) {
  nav {
    padding: 12px 16px;
  }
  nav .logo-link img {
    height: 36px;
  }
  nav .logo-text strong {
    font-size: 12px;
  }
  nav .logo-text span {
    font-size: 8px;
  }
  .page-hero {
    padding: 40px 0 34px;
  }
  .page-hero h1 {
    font-size: 24px;
  }
  .section {
    padding: 44px 0;
  }
  .section-title {
    font-size: 22px;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-grid .g-item {
    height: 130px;
  }
  .daily-grid {
    grid-template-columns: 1fr;
  }
  .portal-card {
    width: 100%;
  }
  .cta-banner {
    padding: 26px 22px;
  }
}
