@import url('./variables.css');

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--color-white);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-cream);
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
  border: 2px solid var(--color-cream);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-emerald);
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* ==========================================================================
   LAYOUT & CONTAINER
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-alt {
  background-color: var(--color-cream);
  background-image: radial-gradient(var(--color-gold-glow) 1px, transparent 1px);
  background-size: 32px 32px;
}

.section-cream {
  background-color: #FAF6ED;
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-emerald-soft);
  color: var(--color-emerald-dark);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  border: 1px solid rgba(0, 143, 104, 0.15);
}

.section-tag.gold {
  background-color: var(--color-gold-soft);
  color: #B8820B;
  border-color: rgba(242, 193, 78, 0.3);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(6, 42, 70, 0.06);
  background: rgba(255, 255, 255, 0.96);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform var(--transition-fast);
}

.brand-link:hover {
  transform: scale(1.02);
}

.brand-logo-img {
  height: 42px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-body);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-emerald);
  border-radius: 2px;
  transition: width var(--transition-normal);
}

.nav-link:hover {
  color: var(--color-emerald);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-emerald);
  font-weight: 700;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Primary & Secondary Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-emerald-light), var(--color-emerald));
  color: var(--color-white);
  box-shadow: var(--shadow-emerald);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #00ba88, var(--color-emerald-dark));
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 143, 104, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-navy);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  border-color: var(--color-emerald);
  color: var(--color-emerald);
  background: var(--color-emerald-soft);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, #FDD874, var(--color-gold));
  color: var(--color-navy);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #ffe08b, var(--color-gold-hover));
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(242, 193, 78, 0.45);
}

.btn-navy {
  background: var(--color-navy);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-navy:hover {
  background: var(--color-navy-surface);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 15px 32px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 14px;
  border-radius: var(--radius-sm);
}

/* Hamburger Menu Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
}

.hamburger span {
  width: 100%;
  height: 2.5px;
  background: var(--color-navy);
  border-radius: 4px;
  transition: all var(--transition-normal);
  transform-origin: left center;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(0px, -2px);
  background: var(--color-emerald);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(0px, 2px);
  background: var(--color-emerald);
}

/* Mobile Navigation Drawer */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 42, 70, 0.4);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--color-white);
  z-index: 999;
  padding: 88px 28px 40px 28px;
  box-shadow: -10px 0 30px rgba(6, 42, 70, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right var(--transition-smooth);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--color-emerald);
  padding-left: 6px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 80px 0 110px 0;
  background-color: #FCFAF6;
  background-image:
    radial-gradient(ellipse at top right, rgba(0, 143, 104, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(242, 193, 78, 0.09) 0%, transparent 60%);
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/islamic-pattern.svg');
  background-size: 80px 80px;
  opacity: 0.6;
  pointer-events: none;
}

/* Subtle decorative floating items */
.hero-crescent {
  position: absolute;
  top: 40px;
  left: 6%;
  width: 48px;
  height: 48px;
  opacity: 0.35;
  animation: floatSlow 6s ease-in-out infinite;
  pointer-events: none;
}

.hero-star {
  position: absolute;
  width: 20px;
  height: 20px;
  opacity: 0.4;
  pointer-events: none;
  animation: twinkle 4s ease-in-out infinite alternate;
}

.hero-star-1 {
  top: 90px;
  right: 12%;
  animation-delay: 0.5s;
}

.hero-star-2 {
  bottom: 120px;
  left: 10%;
  animation-delay: 1.2s;
}

.hero-star-3 {
  top: 220px;
  right: 48%;
  animation-delay: 2s;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 620px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-white);
  border: 1px solid var(--border-emerald);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-emerald-dark);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.hero-pill .dot {
  width: 8px;
  height: 8px;
  background: var(--color-emerald);
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.18;
  color: var(--color-navy);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-title .highlight-emerald {
  color: var(--color-emerald);
  position: relative;
  display: inline-block;
}

.hero-title .highlight-gold {
  color: #c9931b;
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-body);
  line-height: 1.68;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-features-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.hero-feature-item svg {
  color: var(--color-emerald);
  flex-shrink: 0;
}

/* Hero Smartphone Mockup Frame */
.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-phone-container {
  position: relative;
  width: 290px;
  height: 590px;
  background: #111827;
  border-radius: 46px;
  padding: 10px;
  box-shadow:
    0 25px 60px -15px rgba(6, 42, 70, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 0 40px rgba(0, 143, 104, 0.25);
  transition: transform var(--transition-smooth);
}

.hero-phone-container:hover {
  transform: translateY(-8px) rotate(-1deg);
}

.phone-screen,
.hero-phone-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 38px;
  overflow: hidden;
}

.phone-island,
.phone-dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 22px;
  background: #000000;
  border-radius: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.phone-island-cam,
.island-camera {
  width: 8px;
  height: 8px;
  background: #1e293b;
  border-radius: 50%;
}

.phone-island-sensor,
.island-sensor {
  width: 5px;
  height: 5px;
  background: #0f172a;
  border-radius: 50%;
}

.phone-screen-img,
.hero-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* AR Scanning Beam */
.ar-scanning-beam {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #00e5a3, #F2C14E, #00e5a3, transparent);
  box-shadow: 0 0 14px 2px rgba(0, 229, 163, 0.7);
  animation: scanBeam 4.5s ease-in-out infinite;
  z-index: 8;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-emerald);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 12;
  animation: floatCard 4s ease-in-out infinite alternate;
}

.floating-badge.badge-top-left {
  top: 60px;
  left: -48px;
  animation-delay: 0s;
}

.floating-badge.badge-bottom-right {
  bottom: 80px;
  right: -52px;
  animation-delay: 1.5s;
}

.floating-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--color-emerald-soft);
  color: var(--color-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.floating-badge-icon.gold {
  background: var(--color-gold-soft);
  color: #B8820B;
}

.floating-badge-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.2;
}

.floating-badge-desc {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   ABOUT SMARTPRAY AR SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.about-text-content {
  display: flex;
  flex-direction: column;
}

.about-lead {
  font-size: 19px;
  font-weight: 600;
  color: var(--color-emerald-dark);
  line-height: 1.6;
  margin-bottom: 16px;
}

.about-paragraph {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 32px;
}

.about-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.about-card {
  background: var(--color-white);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.about-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-emerald);
  box-shadow: var(--shadow-md);
}

.about-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-emerald-soft);
  color: var(--color-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}

.about-card-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.about-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* About Visual Card on Right */
.about-visual-card {
  background: linear-gradient(135deg, #F9F7F1 0%, #F3EFE4 100%);
  border-radius: var(--radius-xl);
  padding: 28px;
  border: 1px solid rgba(242, 193, 78, 0.3);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.about-visual-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--color-emerald-soft) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.about-image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #ffffff;
  margin-bottom: 20px;
}

.about-character-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center center;
  transition: transform var(--transition-smooth);
}

.about-visual-card:hover .about-character-img {
  transform: scale(1.03);
}

.about-visual-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.about-visual-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-emerald);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.about-visual-desc {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--color-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-emerald);
  box-shadow: var(--shadow-lg);
}

.feature-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--color-emerald-soft);
  color: var(--color-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 22px;
  transition: all var(--transition-fast);
}

.feature-card:hover .feature-icon-box {
  background: var(--color-emerald);
  color: var(--color-white);
  transform: scale(1.06);
}

.feature-number {
  position: absolute;
  top: 28px;
  right: 28px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: rgba(6, 42, 70, 0.2);
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   HOW SMARTPRAY WORKS (TIMELINE)
   ========================================================================== */
.how-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  margin-top: 40px;
}

/* Connected Line */
.how-timeline::before {
  content: '';
  position: absolute;
  top: 45px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-emerald), var(--color-gold), var(--color-emerald));
  z-index: 1;
  opacity: 0.35;
}

.timeline-step {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px 22px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  z-index: 2;
  transition: all var(--transition-normal);
}

.timeline-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-emerald);
}

.step-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-white);
  border: 3px solid var(--color-emerald);
  color: var(--color-emerald);
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  box-shadow: 0 4px 14px rgba(0, 143, 104, 0.2);
  transition: all var(--transition-fast);
}

.timeline-step:hover .step-badge {
  background: var(--color-emerald);
  color: var(--color-white);
}

.step-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   SCREENSHOTS SECTION ("Explore SmartPray")
   ========================================================================== */
.screenshots-header-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.screenshots-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--color-white);
  color: var(--text-body);
  border: 1px solid var(--border-medium);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.filter-btn:hover {
  border-color: var(--color-emerald);
  color: var(--color-emerald);
}

.filter-btn.active {
  background: var(--color-emerald);
  color: var(--color-white);
  border-color: var(--color-emerald);
  box-shadow: var(--shadow-emerald);
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid var(--border-medium);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.carousel-nav-btn:hover {
  background: var(--color-emerald);
  color: var(--color-white);
  border-color: var(--color-emerald);
}

/* Horizontal Track */
.screenshots-track-container {
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 16px 8px 36px 8px;
  margin: 0 -8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-emerald) rgba(6, 42, 70, 0.08);
}

.screenshots-track {
  display: flex;
  gap: 28px;
  width: max-content;
}

/* Individual Smartphone Frame Card */
.screenshot-card {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal);
}

.screenshot-card:hover {
  transform: translateY(-8px);
}

.screenshot-device-frame {
  position: relative;
  width: 100%;
  height: 490px;
  background: #111827;
  border-radius: 36px;
  padding: 8px;
  box-shadow:
    0 20px 40px -12px rgba(6, 42, 70, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  cursor: pointer;
  overflow: hidden;
}

.screenshot-device-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
}

.screenshot-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.screenshot-overlay-hover {
  position: absolute;
  inset: 0;
  background: rgba(0, 143, 104, 0.65);
  backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
}

.screenshot-device-frame:hover .screenshot-overlay-hover {
  opacity: 1;
}

.screenshot-meta {
  margin-top: 14px;
  text-align: center;
}

.screenshot-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.screenshot-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   STUDENT & TEACHER SECTION
   ========================================================================== */
.stakeholders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.stakeholder-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 44px 38px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.stakeholder-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.stakeholder-card.student {
  border-top: 6px solid var(--color-emerald);
}

.stakeholder-card.teacher {
  border-top: 6px solid var(--color-navy);
}

.stakeholder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.stakeholder-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.stakeholder-badge.student-badge {
  background: var(--color-emerald-soft);
  color: var(--color-emerald-dark);
}

.stakeholder-badge.teacher-badge {
  background: rgba(6, 42, 70, 0.08);
  color: var(--color-navy);
}

.stakeholder-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.stakeholder-card.student .stakeholder-icon {
  background: var(--color-emerald-soft);
  color: var(--color-emerald);
}

.stakeholder-card.teacher .stakeholder-icon {
  background: var(--color-navy-soft);
  color: var(--color-navy);
}

.stakeholder-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.stakeholder-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.stakeholder-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stakeholder-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.5;
}

.stakeholder-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

.stakeholder-card.student .stakeholder-check {
  background: var(--color-emerald);
  color: var(--color-white);
}

.stakeholder-card.teacher .stakeholder-check {
  background: var(--color-navy);
  color: var(--color-white);
}

/* ==========================================================================
   TECHNOLOGY SECTION
   ========================================================================== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.tech-card {
  background: var(--color-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tech-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-emerald);
  box-shadow: var(--shadow-md);
}

.tech-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-emerald-soft);
  color: var(--color-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.tech-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.tech-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   DOWNLOAD / CTA SECTION
   ========================================================================== */
.cta-box {
  background: linear-gradient(135deg, var(--color-navy) 0%, #083c66 50%, var(--color-emerald-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 64px 56px;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-pattern {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/islamic-pattern.svg');
  background-size: 80px 80px;
  opacity: 0.12;
  pointer-events: none;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 2;
}

.cta-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(242, 193, 78, 0.15);
  color: var(--color-gold);
  border: 1px solid rgba(242, 193, 78, 0.3);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 540px;
}

.cta-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cta-meta-info {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.cta-meta-info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* QR Code Card */
.cta-qr-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
  max-width: 270px;
  margin: 0 auto;
}

.qr-image-wrap {
  width: 170px;
  height: 170px;
  margin: 0 auto 16px auto;
  border-radius: 12px;
  background: #ffffff;
  padding: 8px;
  box-shadow: inset 0 0 0 1px rgba(6, 42, 70, 0.08);
}

.qr-image-wrap img {
  width: 100%;
  height: 100%;
}

.qr-caption-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.qr-caption-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   CREDITS & FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: 80px 0 36px 0;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand-logo {
  height: 44px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand-tagline {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 20px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  transition: all var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-emerald-light);
  padding-left: 4px;
}

.footer-credits-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 20px;
}

.footer-credits-item {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
  line-height: 1.5;
}

.footer-credits-item strong {
  color: #fff;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   MODAL DIALOGS (SCREENSHOT PREVIEW & TUTORIAL)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 42, 70, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-backdrop.open .modal-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-cream);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 10;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--color-emerald);
  color: #fff;
}

.modal-content-inner {
  padding: 40px;
}

/* Screenshot Preview in Modal */
.preview-modal-frame {
  max-width: 300px;
  margin: 0 auto 20px auto;
  border-radius: 36px;
  background: #111827;
  padding: 8px;
  box-shadow: var(--shadow-lg);
}

.preview-modal-frame img {
  width: 100%;
  border-radius: 28px;
  display: block;
}

/* Tutorial Steps Modal */
.tutorial-steps-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.tutorial-step-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--color-cream);
  border: 1px solid var(--border-subtle);
}

.tutorial-step-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--color-emerald);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tutorial-step-info h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.tutorial-step-info p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes floatSlow {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-12px) rotate(4deg);
  }
}

@keyframes floatCard {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-8px);
  }
}

@keyframes twinkle {
  0% {
    opacity: 0.2;
    transform: scale(0.85);
  }

  100% {
    opacity: 0.7;
    transform: scale(1.15);
  }
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

@keyframes scanBeam {
  0% {
    top: 12%;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    top: 88%;
    opacity: 0;
  }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Laptop & Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-features-list {
    justify-content: center;
  }

  .hero-mockup-wrapper {
    margin-top: 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .how-timeline::before {
    display: none;
  }

  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-buttons {
    justify-content: center;
  }

  .cta-meta-info {
    justify-content: center;
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {

  .nav-menu,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .about-cards-grid {
    grid-template-columns: 1fr;
  }

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

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

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-box {
    padding: 40px 24px;
  }

  .cta-title {
    font-size: 28px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .floating-badge.badge-top-left {
    left: -10px;
    top: 40px;
  }

  .floating-badge.badge-bottom-right {
    right: -10px;
    bottom: 40px;
  }

  .hero-phone-container {
    width: 250px;
    height: 510px;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .how-timeline {
    grid-template-columns: 1fr;
  }

  .floating-badge {
    padding: 8px 12px;
  }

  .floating-badge-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .floating-badge-title {
    font-size: 11px;
  }

  .floating-badge-desc {
    font-size: 10px;
  }
}

/* ==========================================================================
   SUBPAGE SPECIFIC STYLES (MULTI-PAGE SYSTEM)
   ========================================================================== */

/* Subpage Hero Header */
.page-header {
  position: relative;
  padding: 130px 0 60px 0;
  background: linear-gradient(135deg, rgba(6, 42, 70, 0.04) 0%, rgba(0, 143, 104, 0.08) 100%), var(--color-cream);
  border-bottom: 1px solid rgba(0, 143, 104, 0.12);
  overflow: hidden;
  text-align: center;
}

.page-header-pattern {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/islamic-pattern.svg');
  background-size: 320px;
  opacity: 0.35;
  pointer-events: none;
}

.page-header-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 143, 104, 0.15);
}

.breadcrumb a {
  color: var(--color-emerald);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-emerald-dark);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--color-gold);
  font-size: 12px;
}

.page-header-title {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.2;
  margin-bottom: 14px;
}

.page-header-subtitle {
  font-size: 17px;
  color: var(--text-body);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Home Overview Highlights */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.highlight-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 143, 104, 0.1);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-emerald), var(--color-gold));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(0, 143, 104, 0.3);
}

.highlight-card:hover::before {
  opacity: 1;
}

.highlight-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(0, 143, 104, 0.1);
  color: var(--color-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.highlight-card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 10px;
}

.highlight-card-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.highlight-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-emerald);
  transition: gap var(--transition-fast);
}

.highlight-link:hover {
  gap: 12px;
  color: var(--color-emerald-dark);
}

/* Download Page Card Layout */
.download-hero-card {
  background: linear-gradient(135deg, var(--color-navy) 0%, #0c3e66 100%);
  border-radius: var(--radius-xl);
  padding: 48px;
  color: var(--color-white);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-2xl);
  position: relative;
  overflow: hidden;
  margin-bottom: 60px;
}

.download-hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/islamic-pattern.svg');
  opacity: 0.08;
  pointer-events: none;
}

.download-info-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0 32px 0;
}

.download-info-item {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.download-info-label {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.download-info-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-gold);
  margin-top: 2px;
}

.qr-box {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
  color: var(--color-navy);
  max-width: 280px;
  margin: 0 auto;
}

.qr-box img {
  width: 190px;
  height: 190px;
  margin: 0 auto 12px auto;
  border-radius: var(--radius-sm);
}

.qr-box p {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-navy);
}

.qr-box span {
  font-size: 11px;
  color: var(--text-muted);
}

/* Installation Steps */
.install-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.install-step-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  border: 1px solid rgba(0, 143, 104, 0.12);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--transition-base);
}

.install-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-emerald);
}

.install-step-num {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: rgba(0, 143, 104, 0.18);
}

.install-step-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: rgba(0, 143, 104, 0.1);
  color: var(--color-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.install-step-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.install-step-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* System Requirements Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 143, 104, 0.1);
  margin-top: 24px;
}

.specs-table th,
.specs-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}

.specs-table th {
  background: var(--color-cream);
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.specs-table td {
  font-size: 14.5px;
  color: var(--text-body);
}

.specs-table tr:last-child td {
  border-bottom: none;
}

/* FAQ Accordion / Cards */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.faq-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(0, 143, 104, 0.1);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.faq-card:hover {
  border-color: rgba(0, 143, 104, 0.3);
  box-shadow: var(--shadow-md);
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-question::before {
  content: 'Q';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(0, 143, 104, 0.12);
  color: var(--color-emerald);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.faq-answer {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 34px;
}

/* Screenshots Gallery Grid on screenshots.html */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.gallery-item {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid rgba(0, 143, 104, 0.1);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-emerald);
}

.gallery-phone-frame {
  width: 200px;
  height: 410px;
  background: #000;
  border-radius: 36px;
  padding: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  transition: transform var(--transition-base);
}

.gallery-item:hover .gallery-phone-frame {
  transform: scale(1.02);
}

.gallery-phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
}

.gallery-item-info {
  text-align: center;
  width: 100%;
}

.gallery-item-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-emerald);
  background: rgba(0, 143, 104, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}

.gallery-item-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.gallery-item-desc {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Responsive Overrides for Subpages */
@media (max-width: 991px) {
  .page-header-title {
    font-size: 34px;
  }

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

  .download-hero-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    text-align: center;
  }

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

  .install-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 600px) {
  .page-header {
    padding: 110px 0 40px 0;
  }

  .page-header-title {
    font-size: 28px;
  }

  .install-steps-grid {
    grid-template-columns: 1fr;
  }

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

  .gallery-phone-frame {
    width: 220px;
    height: 450px;
  }
}

/* ==========================================================================
   PORTAL THEME SYSTEM (INSPIRED BY REFERENCE BUT ISLAMIC & LUXURIOUS)
   ========================================================================== */

/* 1. TOP PANORAMIC HEADER BANNER */
.portal-header-banner {
  position: relative;
  width: 100%;
  min-height: 220px;
  background: url('../assets/images/smartpray-hero-banner.jpg') no-repeat center 35% / cover;
  border-bottom: 2px solid #EAB842;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.portal-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 42, 70, 0.88) 0%, rgba(6, 42, 70, 0.6) 45%, rgba(0, 143, 104, 0.35) 100%);
  pointer-events: none;
}

.portal-banner-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px 20px;
}

.portal-banner-logo {
  flex-shrink: 0;
  display: block;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(242, 193, 78, 0.6);
  transition: transform var(--transition-fast);
}

.portal-banner-logo:hover {
  transform: scale(1.03);
}

.portal-logo-img {
  height: 58px;
  width: auto;
}

.portal-banner-text {
  color: #ffffff;
}

.portal-banner-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75), 0 0 25px rgba(242, 193, 78, 0.5);
  letter-spacing: -0.5px;
}

.portal-banner-tagline {
  font-size: 16.5px;
  font-weight: 600;
  color: #FEE7A4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
  letter-spacing: 0.2px;
}

/* 2. PORTAL NAVIGATION RIBBON */
.portal-nav-ribbon {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: linear-gradient(180deg, #FDE68A 0%, #F59E0B 45%, #D97706 100%);
  border-top: 1px solid #FEF3C7;
  border-bottom: 3px solid #92400E;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.portal-nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  position: relative;
}

.portal-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.portal-nav-tab {
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 700;
  color: #451A03;
  padding: 11px 22px;
  text-transform: capitalize;
  text-decoration: none;
  border-radius: 8px 8px 0 0;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  margin-top: 4px;
  display: inline-block;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
}

.portal-nav-tab:hover {
  background: rgba(255, 255, 255, 0.4);
  color: #000000;
  transform: translateY(-1px);
}

.portal-nav-tab.active {
  background: linear-gradient(180deg, #00A678 0%, #008F68 50%, #006D4F 100%);
  color: #ffffff !important;
  border: 2px solid #00533C;
  border-bottom: none;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* 3. ISLAMIC STAGE CONTAINER */
.portal-stage {
  position: relative;
  background: radial-gradient(ellipse at 50% 0%, #0C3E66 0%, #062A46 60%, #031726 100%);
  padding: 50px 0 70px 0;
  overflow: hidden;
  border-bottom: 4px solid var(--color-gold);
}

.portal-stage-pattern {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/islamic-pattern.svg');
  background-size: 320px;
  opacity: 0.08;
  pointer-events: none;
}

/* Side Curtains / Stage Drapery */
.stage-curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(180deg, rgba(242, 193, 78, 0.3) 0%, rgba(0, 143, 104, 0.4) 100%);
  opacity: 0.6;
}

.stage-curtain-left {
  left: 0;
  border-right: 3px solid rgba(242, 193, 78, 0.4);
  box-shadow: inset -20px 0 30px rgba(0, 0, 0, 0.5);
}

.stage-curtain-right {
  right: 0;
  border-left: 3px solid rgba(242, 193, 78, 0.4);
  box-shadow: inset 20px 0 30px rgba(0, 0, 0, 0.5);
}

/* 4. WELCOME PARCHMENT PLAQUE */
.welcome-parchment-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1060px;
  margin: 0 auto;
}

.welcome-ribbon-badge {
  text-align: center;
  position: relative;
  margin-bottom: -22px;
  z-index: 4;
}

.welcome-badge-inner {
  display: inline-block;
  background: linear-gradient(135deg, #008F68 0%, #005F45 100%);
  color: #ffffff;
  padding: 12px 48px;
  border-radius: var(--radius-sm);
  border: 2px solid #F2C14E;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  position: relative;
}

.welcome-bismillah {
  font-size: 15px;
  color: #FEE7A4;
  margin-bottom: 2px;
  letter-spacing: 1px;
}

.welcome-badge-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.welcome-parchment-box {
  background: #FFFDF8;
  border: 4px double #D49E24;
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45), inset 0 0 25px rgba(242, 193, 78, 0.1);
  padding: 56px 48px 44px 48px;
  position: relative;
}

/* 5. FLOATING INTERACTIVE WIDGETS (VISITORS COUNTER & AUDIO BGM) */
.portal-floating-widgets {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.portal-counter-box {
  background: linear-gradient(180deg, #FFFDEB 0%, #FEF3C7 100%);
  border: 2px solid #F59E0B;
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  font-size: 12.5px;
  color: #451A03;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 175px;
}

.counter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.counter-row-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.counter-row-value {
  font-weight: 800;
  font-size: 13.5px;
  color: #B91C1C;
}

.counter-row-value.online {
  color: #008F68;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.counter-pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #10B981;
  border-radius: 50%;
  display: inline-block;
  animation: counterLivePulse 1.8s infinite ease-in-out;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

@keyframes counterLivePulse {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.9);
  }
}

.counter-value-bump {
  animation: counterBumpAnim 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes counterBumpAnim {
  0% { transform: scale(1); }
  50% { transform: scale(1.22); color: #008F68; }
  100% { transform: scale(1); }
}

.portal-audio-btn {
  background: linear-gradient(180deg, #FDE68A 0%, #F59E0B 100%);
  border: 2px solid #B45309;
  border-radius: 10px;
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #78350F;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.portal-audio-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.portal-audio-btn.playing {
  background: linear-gradient(180deg, #A7F3D0 0%, #10B981 100%);
  border-color: #047857;
  color: #064E3B;
}

/* Responsive adjustments for Portal */
@media (max-width: 991px) {
  .portal-banner-title {
    font-size: 26px;
  }

  .portal-banner-tagline {
    font-size: 14px;
  }

  .welcome-parchment-box {
    padding: 44px 24px 32px 24px;
  }

  .welcome-badge-title {
    font-size: 22px;
  }

  .portal-nav-tab {
    padding: 9px 14px;
    font-size: 14px;
  }

  .stage-curtain {
    display: none;
  }
}

@media (max-width: 600px) {
  .portal-banner-container {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 20px 14px;
  }

  .portal-banner-title {
    font-size: 22px;
  }

  .portal-nav-links {
    gap: 4px;
  }

  .portal-nav-tab {
    padding: 8px 10px;
    font-size: 12.5px;
  }

  .welcome-badge-inner {
    padding: 10px 24px;
  }

  .welcome-badge-title {
    font-size: 18px;
  }

  .portal-floating-widgets {
    bottom: 12px;
    right: 12px;
    transform: scale(0.9);
    transform-origin: bottom right;
  }
}

/* ==========================================================================
   CREDIT PAGE SPECIFIC STYLES (MATCHING USER'S REFERENCE)
   ========================================================================== */
.credit-badge-container {
  text-align: center;
  margin: 36px 0 24px 0;
}

.credit-section-badge {
  display: inline-block;
  background: linear-gradient(180deg, #FDE68A 0%, #F59E0B 50%, #D97706 100%);
  border: 2px solid #78350F;
  border-radius: 8px;
  padding: 8px 36px;
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  color: #451A03;
  letter-spacing: 1.5px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
}

.scroll-cards-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.scroll-card {
  width: 300px;
  background: linear-gradient(180deg, #FFFDF8 0%, #FFF9EC 100%);
  border: 3px solid #D49E24;
  border-radius: 18px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), inset 0 0 18px rgba(242, 193, 78, 0.12);
  transition: all var(--transition-base);
  position: relative;
}

.scroll-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.45);
  border-color: #008F68;
}

.scroll-card-photo-frame {
  width: 170px;
  height: 220px;
  margin: 0 auto 16px auto;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid #EAB842;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(180deg, #0284C7 0%, #0369A1 100%);
  position: relative;
}

.scroll-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.scroll-card-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: #062A46;
  margin-bottom: 4px;
  line-height: 1.3;
}

.scroll-card-matric {
  font-size: 13.5px;
  font-weight: 700;
  color: #B45309;
  margin-bottom: 8px;
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  padding: 2px 10px;
  border-radius: 4px;
}

.scroll-card-role {
  font-size: 12.5px;
  color: #334155;
  line-height: 1.45;
  background: rgba(0, 143, 104, 0.08);
  border: 1px solid rgba(0, 143, 104, 0.2);
  border-radius: 6px;
  padding: 6px 10px;
  margin-bottom: 12px;
}

.scroll-card-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #008F68;
}

.scroll-card-social-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid #E2E8F0;
  box-shadow: var(--shadow-xs);
}

.thanks-box {
  background: #FFFDF8;
  border: 2px dashed #D49E24;
  border-radius: 14px;
  padding: 24px;
  margin-top: 24px;
  text-align: center;
}

.thanks-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.thanks-logo-badge {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  color: #062A46;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   REDESIGNED ABOUT & CONSULTATION SECTION
   ========================================================================== */
.about-consult-section {
  background: #FFFFFF;
  padding: 84px 0;
  position: relative;
  overflow: hidden;
}

.about-consultation-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "media header"
    "media details";
  gap: 32px 52px;
  align-items: start;
}

/* Left Column: Photo & Caption */
.about-consult-media {
  grid-area: media;
}

.about-consult-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.about-consult-img-frame {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(6, 42, 70, 0.12), 0 2px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 143, 104, 0.18);
  background: #062A46;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.about-consult-img-frame:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(6, 42, 70, 0.16), 0 0 0 2px rgba(242, 193, 78, 0.4);
}

.about-consult-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.about-consult-caption {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
  font-style: italic;
  padding: 0 4px;
}

.about-consult-caption .caption-icon {
  color: var(--color-emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Right Column: Header */
.about-consult-header {
  grid-area: header;
}

.about-consult-header .section-tag {
  margin-bottom: 12px;
  background: rgba(0, 143, 104, 0.08);
  color: var(--color-emerald-dark);
  border: 1px solid rgba(0, 143, 104, 0.16);
}

.about-consult-header .section-title {
  font-size: 32px;
  line-height: 1.28;
  margin-bottom: 18px;
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-weight: 800;
}

.about-consult-p1 {
  font-size: 16px;
  line-height: 1.72;
  color: var(--text-body);
  margin-bottom: 14px;
}

.about-consult-p2 {
  font-size: 15px;
  line-height: 1.7;
  color: #4A5568;
  margin-bottom: 6px;
}

/* Right Column: Details */
.about-consult-details {
  grid-area: details;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Consultation Card (Primary Highlight) */
.consultation-card {
  background: #FFFFFF;
  border-radius: 22px;
  padding: 24px 28px;
  border: 1.5px solid rgba(0, 143, 104, 0.22);
  border-left: 5px solid var(--color-emerald);
  box-shadow: 0 10px 30px rgba(6, 42, 70, 0.07), 0 2px 8px rgba(0, 143, 104, 0.04);
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.consultation-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(6, 42, 70, 0.1), 0 2px 8px rgba(0, 143, 104, 0.08);
}

.consult-card-top {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.consult-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 143, 104, 0.08);
  color: var(--color-emerald-dark);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 143, 104, 0.18);
}

.consult-person-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.consult-person-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 168, 122, 0.15), rgba(0, 143, 104, 0.08));
  color: var(--color-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(0, 143, 104, 0.22);
}

.consult-person-meta {
  flex: 1;
}

.consult-teacher-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 4px;
  line-height: 1.25;
}

.consult-teacher-school {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-emerald-dark);
  font-size: 13.5px;
  font-weight: 600;
}

.consult-teacher-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-body);
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 143, 104, 0.12);
}

/* Secondary Card: Project Information */
.project-info-card {
  background: #FBF9F4;
  border-radius: 20px;
  padding: 20px 24px;
  border: 1px solid rgba(226, 232, 240, 0.88);
  box-shadow: 0 4px 16px rgba(6, 42, 70, 0.04);
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 42, 70, 0.06);
  color: var(--color-navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.project-session-tag {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.project-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-app-title {
  font-family: var(--font-heading);
  font-size: 16.5px;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 2px;
}

.project-institution-dept {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-body);
}

.project-institution-name {
  font-size: 13px;
  color: var(--text-muted);
}

.project-supervisor-box {
  background: #FFFFFF;
  border: 1px solid rgba(0, 143, 104, 0.15);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.supervisor-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-emerald);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.supervisor-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-navy);
}

/* Action Button */
.about-consult-action {
  margin-top: 6px;
}

/* Mobile & Tablet Stacking Responsiveness */
@media (max-width: 991px) {
  .about-consult-section {
    padding: 60px 0;
  }

  .about-consultation-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  /* Exact stacking order requested:
     1. Heading first
     2. Description
     3. Consultation photo & caption
     4. Consultation information
     5. Project information
     6. CTA button */
  .about-consult-header {
    order: 1;
  }

  .about-consult-media {
    order: 2;
  }

  .about-consult-details {
    order: 3;
    gap: 18px;
  }

  .about-consult-header .section-title {
    font-size: 26px;
  }

  .about-consult-img-frame {
    border-radius: 18px;
  }

  .consultation-card {
    padding: 20px 22px;
    border-radius: 18px;
  }

  .project-info-card {
    padding: 18px 20px;
    border-radius: 18px;
  }
}

/* ==========================================================================
   KAD IMBASAN SMARTPRAY AR SECTION
   ========================================================================== */
.flashcards-section {
  background: linear-gradient(180deg, #FAFCFA 0%, #F3F9F6 50%, #EBF5F0 100%);
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  border-top: 1px solid rgba(0, 143, 104, 0.1);
  border-bottom: 1px solid rgba(0, 143, 104, 0.1);
}

.flashcards-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(0, 143, 104, 0.06) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.8;
}

.flashcards-section .section-header {
  position: relative;
  z-index: 1;
  margin-bottom: 48px;
}

.flashcards-section .section-title {
  font-size: clamp(23px, 4.2vw, 36px);
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.flashcards-subtitle-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(0, 143, 104, 0.1) 0%, rgba(242, 193, 78, 0.15) 100%);
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 143, 104, 0.22);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.flashcards-subtitle-pill .dot {
  width: 6px;
  height: 6px;
  background: var(--color-emerald);
  border-radius: 50%;
  display: inline-block;
}

.flashcards-subtitle-pill .dot.gold {
  background: var(--color-gold);
}

.flashcards-intro-text {
  max-width: 780px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  color: #3B5262;
}

/* Side-by-Side Large Preview Cards */
.flashcards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
  margin-bottom: 64px;
}

.flashcard-card {
  background: var(--color-white);
  border-radius: 24px;
  border: 1px solid rgba(0, 143, 104, 0.16);
  box-shadow: 0 10px 30px rgba(6, 42, 70, 0.06), 0 1px 3px rgba(6, 42, 70, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all var(--transition-normal);
  position: relative;
}

.flashcard-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(6, 42, 70, 0.12), 0 0 0 1px rgba(0, 143, 104, 0.28);
}

/* Card Header Banner */
.flashcard-card-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(6, 42, 70, 0.06);
}

.flashcard-card.card-male .flashcard-card-header {
  background: linear-gradient(90deg, rgba(0, 143, 104, 0.08) 0%, rgba(0, 143, 104, 0.02) 100%);
}

.flashcard-card.card-female .flashcard-card-header {
  background: linear-gradient(90deg, rgba(235, 77, 138, 0.08) 0%, rgba(235, 77, 138, 0.02) 100%);
}

.flashcard-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.flashcard-card.card-male .flashcard-badge {
  background: #008F68;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 143, 104, 0.3);
}

.flashcard-card.card-female .flashcard-badge {
  background: #D83B76;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(216, 59, 118, 0.3);
}

.flashcard-meta-tag {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Flashcard Image Frame (Strict Aspect Ratio & Visual Quality) */
.flashcard-media-wrapper {
  padding: 16px 16px 8px 16px;
  position: relative;
  background: #F8FBF9;
}

.flashcard-image-box {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(6, 42, 70, 0.1);
  background: #0a1f2e;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 4px 16px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.flashcard-preview-img {
  width: 100%;
  height: auto;
  display: block;
  /* Exactly preserves original aspect ratio (1024 / 723 = ~1.416) */
  aspect-ratio: 1024 / 723;
  object-fit: contain;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.flashcard-image-box:hover .flashcard-preview-img {
  transform: scale(1.025);
}

.flashcard-overlay-hint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 42, 70, 0.75) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.flashcard-image-box:hover .flashcard-overlay-hint {
  opacity: 1;
}

.flashcard-hint-badge {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-navy);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-heading);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: translateY(6px);
  transition: transform 0.25s ease;
}

.flashcard-image-box:hover .flashcard-hint-badge {
  transform: translateY(0);
}

/* Card Content Details */
.flashcard-card-body {
  padding: 16px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: var(--color-white);
}

.flashcard-content-label {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 8px;
  line-height: 1.3;
}

.flashcard-content-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
  flex-grow: 1;
}

.flashcard-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(6, 42, 70, 0.06);
}

.flashcard-btn-view {
  width: 100%;
}

.flashcard-card.card-male .flashcard-btn-view {
  background: linear-gradient(135deg, #00A678 0%, #008F68 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 143, 104, 0.28);
}

.flashcard-card.card-male .flashcard-btn-view:hover {
  background: linear-gradient(135deg, #00ba88 0%, #007555 100%);
  box-shadow: 0 8px 22px rgba(0, 143, 104, 0.38);
}

.flashcard-card.card-female .flashcard-btn-view {
  background: linear-gradient(135deg, #E04E85 0%, #C92A66 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(201, 42, 102, 0.28);
}

.flashcard-card.card-female .flashcard-btn-view:hover {
  background: linear-gradient(135deg, #eb5f94 0%, #b21e54 100%);
  box-shadow: 0 8px 22px rgba(201, 42, 102, 0.38);
}

/* ==========================================================================
   HOW IT WORKS 4-STEP HORIZONTAL SECTION
   ========================================================================== */
.flashcards-steps-panel {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(0, 143, 104, 0.16);
  padding: 40px 32px;
  box-shadow: 0 12px 36px rgba(6, 42, 70, 0.06);
  margin-bottom: 40px;
}

.flashcards-steps-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 36px auto;
}

.flashcards-steps-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-gold-soft);
  color: #B8820B;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(242, 193, 78, 0.35);
  margin-bottom: 10px;
}

.flashcards-steps-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-heading);
}

.flashcards-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
}

.flashcard-step-item {
  background: linear-gradient(180deg, #FCFDFD 0%, #F5FAF7 100%);
  border: 1px solid rgba(0, 143, 104, 0.14);
  border-radius: 18px;
  padding: 26px 20px 22px 20px;
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.flashcard-step-item:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 143, 104, 0.32);
  box-shadow: 0 10px 24px rgba(0, 143, 104, 0.1);
}

.flashcard-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.flashcard-step-num {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: #008F68;
  background: rgba(0, 143, 104, 0.1);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 143, 104, 0.2);
}

.flashcard-step-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00A678 0%, #008F68 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 143, 104, 0.25);
}

.flashcard-step-title {
  font-family: var(--font-heading);
  font-size: 17.5px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
  line-height: 1.35;
}

.flashcard-step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Bottom Highlight Message */
.flashcards-highlight-wrapper {
  position: relative;
  z-index: 1;
  text-align: center;
}

.flashcards-highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 249, 245, 0.95) 100%);
  border: 1.5px solid rgba(0, 143, 104, 0.3);
  box-shadow: 0 8px 24px rgba(0, 143, 104, 0.1), 0 2px 6px rgba(0, 0, 0, 0.04);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--color-navy);
  transition: all var(--transition-fast);
}

.flashcards-highlight-pill:hover {
  transform: translateY(-2px);
  border-color: var(--color-emerald);
  box-shadow: 0 12px 30px rgba(0, 143, 104, 0.16);
}

.flashcards-highlight-icon {
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Dedicated Flashcard Lightbox Modal Styles */
.modal-content.modal-flashcard-dialog,
.modal-container.modal-flashcard-dialog {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  max-width: 960px !important;
  width: 95% !important;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 143, 104, 0.2);
}

.modal-flashcard-img-container {
  background: #061826;
  border-radius: 16px;
  overflow: hidden;
  padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
  text-align: center;
}

.modal-flashcard-img {
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.modal-flashcard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

/* Responsive Media Queries for Kad Imbasan */
@media (max-width: 991px) {
  .flashcards-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
  }

  .flashcards-steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .flashcards-section {
    padding: 64px 0;
  }

  .flashcards-subtitle-pill {
    font-size: 13.5px;
    padding: 5px 16px;
  }

  .flashcards-intro-text {
    font-size: 15px;
  }

  .flashcard-card {
    border-radius: 20px;
  }

  .flashcard-card-header {
    padding: 14px 18px;
  }

  .flashcard-media-wrapper {
    padding: 12px 12px 6px 12px;
  }

  .flashcard-card-body {
    padding: 14px 18px 20px 18px;
  }

  .flashcard-content-label {
    font-size: 18px;
  }

  .flashcards-steps-panel {
    padding: 28px 18px;
    border-radius: 20px;
  }

  .flashcards-steps-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .flashcard-step-item {
    padding: 20px 16px;
  }

  .flashcards-highlight-pill {
    padding: 12px 20px;
    font-size: 14.5px;
    border-radius: 16px;
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}