:root {
  --primary: #004D40;
  --primary-light: #00695C;
  --accent: #F6AD55;
  /* Gold/Orange */
  --bg-light: #F7FAFC;
  --text-dark: #2D3748;
  --text-gray: #718096;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  overflow-x: hidden;
  position: relative;
}

/* RAMADAN THEME: Global Decorations */
.ramadan-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.star-deco {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px 2px rgba(246, 173, 85, 0.4);
  animation: twinkle 3s infinite alternate;
  opacity: 0;
}

.lantern-deco {
  position: absolute;
  /* Keep it absolute inside the fixed BG container */
  top: -10px;
  width: 24px;
  height: 60px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid var(--accent);
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  animation: swing 3s ease-in-out infinite alternate;
  transform-origin: top center;
  z-index: 10;
  /* Make sure it's above some BG elements */
}

/* Lantern inner light */
.lantern-deco::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 12px;
  background: var(--accent);
  border-radius: 4px;
  box-shadow: 0 0 15px 4px var(--accent);
  animation: flicker 0.1s infinite alternate;
}

@keyframes flicker {
  from {
    opacity: 0.8;
  }

  to {
    opacity: 1;
  }
}

@keyframes twinkle {
  0% {
    opacity: 0.1;
    transform: scale(0.8);
  }

  100% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

@keyframes swing {
  from {
    transform: rotate(-5deg);
  }

  to {
    transform: rotate(5deg);
  }
}

/* Animations (Awesome UX) */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* Buttons */
.btn {
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all .3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

/* Custom Elements Hydration Shells (Prevents Layout Shift) */
eq-header {
  display: block;
  min-height: 80px;
}

eq-footer {
  display: block;
}

/* Header & Navigation */
header {
  background: var(--primary);
  padding: 20px 0;
  position: relative;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-size: 28px;
  font-weight: 600;
  color: #fff;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: all .3s;
  opacity: .95;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

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

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  transform: translateY(-2px);
}

/* Perfect alignment for the header */
header .container nav {
  display: flex;
  align-items: center;
}

.btn-nav-accent {
  background: var(--accent);
  color: var(--primary) !important;
  padding: 10px 22px !important;
  border-radius: 50px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(246, 173, 85, 0.2);
  text-decoration: none;
  font-size: 15px;
  line-height: 1;
}

.btn-nav-accent:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-nav-accent::after {
  display: none !important;
}

/* Menu Toggle (Mobile) */
.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.nav-links.show {
  display: flex;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    gap: 0;
    display: none;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    align-items: stretch;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }

  .nav-links li a {
    display: block;
    padding: 16px 20px;
  }

  .nav-links li:last-child {
    padding: 10px 20px 30px;
    border-bottom: none;
  }

  .btn-nav-accent {
    width: 100%;
    justify-content: flex-start;
    /* Match left alignment of other links */
    padding: 14px 20px !important;
    /* Perfect align with text above */
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 0;
  }
}

/* Footer */
footer {
  background: #2D3748;
  padding: 50px 0 30px;
  text-align: center;
  color: #CBD5E0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-links {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #CBD5E0;
  text-decoration: none;
  transition: color .3s;
}

.footer-links a:hover {
  color: #fff;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  color: #CBD5E0;
  font-size: 24px;
  transition: all .3s;
}

.social-links a:hover {
  color: #fff;
  transform: translateY(-3px);
}

.copyright {
  color: #E2E8F0;
  padding-top: 20px;
  border-top: 1px solid #4A5568;
}

@media (max-width:640px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}