/* ============================================
   AL HADI SCHOOL - MODERN ATTRACTIVE DESIGN
   ============================================ */

:root {
  --paper: #faf8f3;
  --paper-dark: #f0ece3;
  --ink: #1a1208;
  --ink-faded: #5a4d3a;
  --ink-light: #8a7d6a;
  --accent: #8b2e0a;
  --accent-light: #c45a30;
  --gold: #c9922a;
  --border: #d4c9b0;
  --shadow: rgba(26, 18, 8, 0.08);
  --gradient-start: #8b2e0a;
  --gradient-end: #6a0dad;
}

body.dark-mode {
  --paper: #12100e;
  --paper-dark: #1e1c18;
  --ink: #f5f0e8;
  --ink-faded: #c4b89a;
  --ink-light: #a09070;
  --accent: #c45a30;
  --accent-light: #e07040;
  --gold: #e0b040;
  --border: #3a3028;
  --shadow: rgba(0, 0, 0, 0.3);
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  transition: background-color 0.4s, color 0.4s;
  overflow-x: hidden;
}

/* ── ANIMATED BACKGROUND ── */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(139, 46, 10, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(106, 13, 173, 0.03) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
}

/* ── NAVIGATION ── */
nav {
  border-bottom: 1.5px solid var(--border);
  padding: 12px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: rgba(250, 248, 243, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  transition: background-color 0.4s, border-color 0.4s;
}
body.dark-mode nav {
  background: rgba(18, 16, 14, 0.95);
}

.logo-box { display: flex; align-items: center; gap: 12px; }
.school-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  box-shadow: 0 2px 8px var(--shadow);
}
.logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

nav ul { list-style: none; display: flex; gap: 28px; align-items: center; }
nav ul li a {
  text-decoration: none;
  color: var(--ink-faded);
  font-family: 'Crimson Text', serif;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
}
nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}
nav ul li a:hover, nav ul li a.active {
  color: var(--accent);
}
nav ul li a:hover::after, nav ul li a.active::after {
  width: 100%;
}

#darkBtn {
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  background: transparent;
  color: var(--ink);
  margin-left: 10px;
  transition: all 0.2s;
}
#darkBtn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

/* ── SCHOOL INFO BAR ── */
.school-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 40px;
  background: linear-gradient(135deg, var(--accent), var(--gradient-end));
  color: white;
  font-family: 'Crimson Text', serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  flex-wrap: wrap;
  gap: 8px;
}
.info-left, .info-right {
  white-space: nowrap;
  font-weight: 600;
}

/* ── MARQUEE ── */
.marquee-wrapper {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #6a0dad, #8b2e0a);
  position: relative;
  overflow: hidden;
}
.marquee {
  flex: 1;
  overflow: hidden;
  height: 48px;
  line-height: 48px;
  position: relative;
}
.marquee p {
  position: absolute;
  white-space: nowrap;
  margin: 0;
  left: 0;
  animation: marqueeMove 35s linear infinite;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: white;
}
@keyframes marqueeMove {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-150%); }
}
.marquee-btn {
  background: rgba(255,255,255,0.2);
  border: 1.5px solid rgba(255,255,255,0.4);
  color: white;
  padding: 6px 18px;
  font-family: 'Crimson Text', serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  margin: 4px 12px;
  border-radius: 4px;
}
.marquee-btn:hover {
  background: white;
  color: var(--accent);
}

/* ── HERO SECTION ── */
.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 40px 80px;
  text-align: center;
  position: relative;
}
.hero .badge {
  display: inline-block;
  border: 1.5px solid var(--border);
  padding: 6px 24px;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 36px;
  font-family: 'Crimson Text', serif;
  background: var(--paper);
  border-radius: 30px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
  animation: fadeInUp 0.8s ease both;
}
.hero h1 span {
  color: var(--accent);
  display: block;
}
.hero .location {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 24px;
  color: var(--ink-light);
  margin-bottom: 32px;
  letter-spacing: 0.04em;
  animation: fadeInUp 0.8s 0.2s ease both;
}
.hero .divider {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 32px auto;
  position: relative;
  animation: fadeInUp 0.8s 0.3s ease both;
}
.hero .divider::before {
  content: "✦";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  padding: 0 10px;
  color: var(--gold);
  font-size: 14px;
}
.hero .tagline {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 28px;
  color: var(--ink-faded);
  max-width: 600px;
  margin: 0 auto 36px;
  animation: fadeInUp 0.8s 0.4s ease both;
}
.hero .description {
  font-size: 19px;
  color: var(--ink-light);
  max-width: 620px;
  margin: 0 auto 48px;
  line-height: 1.8;
  animation: fadeInUp 0.8s 0.5s ease both;
}
.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s 0.6s ease both;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: 'Crimson Text', serif;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--ink);
  transition: left 0.3s;
  z-index: -1;
}
.btn:hover {
  color: var(--paper);
}
.btn:hover::before {
  left: 0;
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--paper);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(139, 46, 10, 0.3);
}
.btn.primary::before { display: none; }
.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 46, 10, 0.4);
}

/* ── SECTIONS ── */
section {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 40px;
  position: relative;
}
.section-rule {
  border: none;
  border-top: 1.5px solid var(--border);
  max-width: 900px;
  margin: 0 auto;
}
.section-label {
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-family: 'Crimson Text', serif;
  font-weight: 600;
}
h2 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 24px;
  line-height: 1.15;
}

/* ── FEATURE CARDS (HOME) ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.feature-card {
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(0);
  transition: transform 0.3s;
}
.feature-card:hover::before {
  transform: scaleX(1);
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px var(--shadow);
  border-color: var(--accent);
}
.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.feature-card p {
  font-size: 16px;
  color: var(--ink-light);
  line-height: 1.6;
}

/* ── PILLARS ── */
.pillars { counter-reset: pillar; }
.pillar-item {
  display: flex;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  transition: all 0.3s;
}
.pillar-item:hover {
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}
.pillar-item:last-child { border-bottom: none; }
.pillar-num {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 900;
  color: var(--paper-dark);
  line-height: 1;
  min-width: 60px;
  padding-top: 4px;
  transition: color 0.3s;
}
.pillar-item:hover .pillar-num {
  color: var(--accent);
}
.pillar-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.pillar-content p {
  color: var(--ink-light);
  font-size: 17px;
  line-height: 1.7;
}

/* ── STATS BAND ── */
.stats-band {
  background: linear-gradient(135deg, var(--ink), #2a2018);
  color: var(--paper);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(201, 146, 42, 0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}
.stats-band .inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.stat-item .num {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 2px 10px rgba(201, 146, 42, 0.3);
}
.stat-item .label {
  font-family: 'Crimson Text', serif;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.6);
  margin-top: 8px;
}

/* ── MESSAGES SECTION ── */
.messages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 48px;
}
.message-card {
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s;
  box-shadow: 0 4px 20px var(--shadow);
}
.message-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px var(--shadow);
}
.message-photo {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, var(--paper-dark), var(--border));
  position: relative;
  overflow: hidden;
}
.message-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s;
}
.message-card:hover .message-photo img {
  transform: scale(1.05);
}
.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--paper-dark), var(--border));
}
.photo-placeholder span {
  font-size: 100px;
  opacity: 0.4;
}
.message-content {
  padding: 32px;
}
.message-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}
.leader-name {
  font-family: 'Crimson Text', serif;
  font-size: 15px;
  color: var(--ink-light);
  margin-bottom: 16px;
  font-style: italic;
}
.message-text {
  font-family: 'Crimson Text', serif;
  font-size: 16px;
  color: var(--ink-faded);
  line-height: 1.8;
  margin-bottom: 20px;
}
.signature {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--accent);
  text-align: right;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* ── TESTIMONIALS ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.testimonial-card {
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  position: relative;
  transition: all 0.3s;
}
.testimonial-card::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 80px;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow);
}
.testimonial-text {
  font-style: italic;
  font-size: 17px;
  color: var(--ink-faded);
  line-height: 1.7;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}
.testimonial-author .name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.testimonial-author .role {
  font-size: 13px;
  color: var(--ink-light);
}

/* ── GALLERY PREVIEW ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(26, 18, 8, 0.8));
  padding: 20px;
  color: white;
  font-size: 14px;
  transform: translateY(100%);
  transition: transform 0.3s;
}
.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

/* ── CTA SECTION ── */
.cta-section {
  background: linear-gradient(135deg, var(--accent), var(--gradient-end));
  padding: 80px 40px;
  text-align: center;
  color: white;
  border-radius: 16px;
  margin: 60px auto;
  max-width: 900px;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
}
.cta-section h2 {
  color: white;
  font-size: 42px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.cta-section p {
  font-size: 20px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
}
.cta-section .btn {
  border-color: white;
  color: white;
  position: relative;
  z-index: 1;
}
.cta-section .btn:hover {
  background: white;
  color: var(--accent);
}
.cta-section .btn::before { display: none; }

/* ── FOOTER ── */
footer {
  border-top: 1.5px solid var(--border);
  padding: 60px 40px 40px;
  text-align: center;
  background: var(--paper-dark);
  transition: background-color 0.4s;
}
footer .footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
}
footer .footer-sub {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--ink-light);
  margin-bottom: 32px;
}
footer .footer-links {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
footer .footer-links a {
  text-decoration: none;
  color: var(--ink-faded);
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: 'Crimson Text', serif;
  transition: color 0.2s;
}
footer .footer-links a:hover { color: var(--accent); }
footer .footer-domain {
  font-family: 'Crimson Text', serif;
  font-size: 17px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}
footer .copy {
  font-size: 14px;
  color: var(--ink-light);
  letter-spacing: 0.05em;
}

/* ── SOCIAL BUTTONS ── */
.social-btn {
  position: fixed;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: all 0.3s;
  z-index: 99;
}
.social-btn:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}
.social-btn.whatsapp { background: #25D366; bottom: 90px; }
.social-btn.facebook { background: #1877F2; bottom: 30px; }

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── GALLERY PAGE STYLES ── */
.gallery-upload-area {
  background: var(--paper-dark);
  border: 2px dashed var(--border);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  margin-bottom: 40px;
  transition: all 0.3s;
}
.gallery-upload-area:hover {
  border-color: var(--accent);
  background: rgba(139, 46, 10, 0.03);
}
.gallery-upload-area input[type="file"] {
  display: none;
}
.gallery-upload-label {
  cursor: pointer;
  display: block;
}
.gallery-upload-label .icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.gallery-upload-label p {
  font-size: 18px;
  color: var(--ink-faded);
}
.gallery-upload-label small {
  color: var(--ink-light);
}

.event-filter {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.event-filter button {
  padding: 8px 20px;
  border: 1.5px solid var(--border);
  background: var(--paper);
  color: var(--ink-faded);
  font-family: 'Crimson Text', serif;
  font-size: 14px;
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.3s;
}
.event-filter button:hover, .event-filter button.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.gallery-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.gallery-media-item {
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
}
.gallery-media-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px var(--shadow);
}
.gallery-media-item .media-container {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--paper-dark);
  position: relative;
  overflow: hidden;
}
.gallery-media-item .media-container img,
.gallery-media-item .media-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-media-item .media-info {
  padding: 16px;
}
.gallery-media-item .event-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent);
  color: white;
  font-size: 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.gallery-media-item .media-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--ink);
}
.gallery-media-item .media-date {
  font-size: 13px;
  color: var(--ink-light);
  margin-top: 4px;
}

/* ── NOTICE PAGE STYLES ── */
.notice-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'Crimson Text', serif;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 32px;
  transition: all 0.3s;
}
.notice-upload-btn:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.notice-item {
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  transition: all 0.3s;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.notice-item:hover {
  transform: translateX(8px);
  border-color: var(--accent);
}
.notice-date-box {
  min-width: 80px;
  text-align: center;
  padding: 12px;
  background: var(--paper-dark);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.notice-date-box .month {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.notice-date-box .day {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
}
.notice-date-box .year {
  font-size: 11px;
  color: var(--ink-light);
}
.notice-content {
  flex: 1;
}
.notice-content h4 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--ink);
}
.notice-content p {
  color: var(--ink-light);
  font-size: 16px;
  line-height: 1.6;
}
.notice-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.notice-actions .btn-view {
  padding: 6px 16px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  font-family: 'Crimson Text', serif;
  transition: all 0.2s;
}
.notice-actions .btn-view:hover {
  background: var(--accent-light);
}
.notice-actions .btn-download {
  padding: 6px 16px;
  background: var(--paper-dark);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  font-family: 'Crimson Text', serif;
  transition: all 0.2s;
}
.notice-actions .btn-download:hover {
  background: var(--border);
}
.notice-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: 8px;
}
.badge-new { background: var(--accent); color: white; }
.badge-important { background: orange; color: white; }
.badge-urgent { background: #dc3545; color: white; }

/* ── CONTACT PAGE STYLES ── */
.contact-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.contact-card {
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: all 0.3s;
}
.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px var(--shadow);
}
.contact-card .icon {
  font-size: 40px;
  margin-bottom: 16px;
}
.contact-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  margin-bottom: 12px;
}
.contact-card p {
  color: var(--ink-faded);
  font-size: 15px;
  line-height: 1.7;
}
.contact-card a {
  color: var(--accent);
  text-decoration: none;
}
.contact-card a:hover {
  text-decoration: underline;
}

.official-card {
  background: linear-gradient(135deg, var(--paper), var(--paper-dark));
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  transition: all 0.3s;
}
.official-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow);
  border-color: var(--accent);
}
.official-card .role-badge {
  display: inline-block;
  padding: 4px 16px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 20px;
  margin-bottom: 12px;
}
.official-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 8px;
}
.official-card .phone {
  font-size: 16px;
  color: var(--accent);
  font-weight: 600;
}
.official-card .email {
  font-size: 14px;
  color: var(--ink-light);
  margin-top: 4px;
}

/* ── PORTAL / ACCOUNT STYLES ── */
.portal-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 32px;
}
.portal-tabs button {
  padding: 14px 32px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: 'Crimson Text', serif;
  font-size: 16px;
  color: var(--ink-light);
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.portal-tabs button:hover {
  color: var(--accent);
}
.portal-tabs button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.portal-panel {
  display: none;
}
.portal-panel.active {
  display: block;
}

.auth-box {
  max-width: 420px;
  margin: 0 auto;
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}
.auth-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  text-align: center;
  margin-bottom: 24px;
  color: var(--accent);
}
.auth-box input, .auth-box select, .auth-box textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Crimson Text', serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.2s;
}
.auth-box input:focus, .auth-box select:focus, .auth-box textarea:focus {
  border-color: var(--accent);
}
.auth-box button[type="submit"] {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'Crimson Text', serif;
  font-size: 17px;
  cursor: pointer;
  transition: all 0.3s;
}
.auth-box button[type="submit"]:hover {
  background: var(--accent-light);
}
.auth-box .switch-link {
  text-align: center;
  margin-top: 16px;
  font-size: 15px;
  color: var(--ink-light);
}
.auth-box .switch-link a {
  color: var(--accent);
  cursor: pointer;
}

.dashboard-card {
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}
.dashboard-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--accent);
}

.complaint-form textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Crimson Text', serif;
  font-size: 16px;
  resize: vertical;
  margin-bottom: 12px;
}
.complaint-form button {
  padding: 10px 24px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  font-family: 'Crimson Text', serif;
  font-size: 15px;
  cursor: pointer;
}

.complaint-item {
  background: var(--paper-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}
.complaint-item .complaint-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.complaint-item .complaint-type {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 12px;
  background: var(--accent);
  color: white;
}
.complaint-item .complaint-status {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 12px;
}
.status-pending { background: #fff3cd; color: #856404; }
.status-resolved { background: #d4edda; color: #155724; }
.complaint-item p {
  color: var(--ink-faded);
  font-size: 15px;
}
.complaint-item .reply {
  margin-top: 10px;
  padding: 10px;
  background: var(--paper);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  font-size: 14px;
  color: var(--ink-light);
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}
.modal-box {
  background: var(--paper);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--paper-dark);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  background: var(--accent);
  color: white;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav ul { display: none; }
  .hero { padding: 60px 24px 40px; }
  .hero h1 { font-size: clamp(32px, 10vw, 48px); }
  .messages-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  section { padding: 60px 24px; }
  .cta-section { padding: 60px 24px; margin: 40px 24px; }
  .cta-section h2 { font-size: 32px; }
  footer { padding: 48px 24px 32px; }
  .school-info-bar { flex-direction: column; align-items: center; text-align: center; padding: 10px 20px; }
  .info-left, .info-right { white-space: normal; width: 100%; text-align: center; }
  .logo-text { font-size: 11px; }
  .school-logo { width: 40px; height: 40px; }
  .social-btn { width: 44px; height: 44px; font-size: 20px; right: 12px; }
  .social-btn.whatsapp { bottom: 70px; }
  .social-btn.facebook { bottom: 18px; }
  h2 { font-size: 32px; }
  .contact-grid-2x2 { grid-template-columns: 1fr; }
  .gallery-media-grid { grid-template-columns: 1fr; }
  .notice-item { flex-direction: column; }
  .notice-date-box { min-width: auto; width: 100%; }
  .portal-tabs { flex-wrap: wrap; }
  .portal-tabs button { padding: 10px 20px; font-size: 14px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .stats-band .inner { gap: 24px; }
  .stat-item .num { font-size: 40px; }
}


/* ── FORM TABLE INPUT STYLES ── */
.form-table input,
.form-table select,
.form-table textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  border: none;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  padding: 6px 8px;
  font-family: 'Crimson Text', serif;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  outline: none;
  box-shadow: none;
  -webkit-appearance: auto;
  appearance: auto;
}
.form-table input:focus,
.form-table select:focus,
.form-table textarea:focus {
  border-bottom-color: var(--accent);
  background: rgba(139, 46, 10, 0.03);
}
.form-table select {
  cursor: pointer;
}

/* ── EID MUBARAK BANNER ── */
.eid-banner {
  position: relative;
  background: linear-gradient(135deg, #1a3a2a, #2d5a3a, #1a3a2a);
  padding: 60px 40px;
  text-align: center;
  overflow: hidden;
  margin: 0 auto;
  max-width: 900px;
  border-radius: 16px;
  border: 2px solid var(--gold);
  box-shadow: 0 8px 40px rgba(201, 146, 42, 0.2);
}
.eid-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(201, 146, 42, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(139, 46, 10, 0.15) 0%, transparent 50%);
  pointer-events: none;
}
.eid-stars {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  overflow: hidden;
}
.eid-star {
  position: absolute;
  color: var(--gold);
  font-size: 20px;
  animation: eidTwinkle 2s ease-in-out infinite;
  opacity: 0;
}
.eid-star:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.eid-star:nth-child(2) { top: 20%; right: 15%; animation-delay: 0.3s; font-size: 16px; }
.eid-star:nth-child(3) { top: 60%; left: 8%; animation-delay: 0.6s; font-size: 14px; }
.eid-star:nth-child(4) { top: 70%; right: 10%; animation-delay: 0.9s; }
.eid-star:nth-child(5) { top: 40%; left: 5%; animation-delay: 1.2s; font-size: 12px; }
.eid-star:nth-child(6) { top: 30%; right: 8%; animation-delay: 1.5s; font-size: 18px; }
.eid-star:nth-child(7) { top: 80%; left: 20%; animation-delay: 0.4s; font-size: 15px; }
.eid-star:nth-child(8) { top: 10%; left: 50%; animation-delay: 0.7s; font-size: 13px; }
.eid-star:nth-child(9) { top: 85%; right: 25%; animation-delay: 1.1s; font-size: 17px; }
.eid-star:nth-child(10) { top: 50%; right: 5%; animation-delay: 1.8s; font-size: 11px; }

@keyframes eidTwinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.2); }
}

.eid-moon {
  font-size: 64px;
  margin-bottom: 16px;
  display: inline-block;
  animation: eidMoonGlow 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(201, 146, 42, 0.6));
}
@keyframes eidMoonGlow {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(201, 146, 42, 0.6)); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 40px rgba(201, 146, 42, 0.9)); }
}

.eid-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 20px rgba(201, 146, 42, 0.4);
  animation: eidFadeInUp 1s ease both;
  position: relative;
  z-index: 1;
}
.eid-subtitle {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: clamp(18px, 3vw, 28px);
  color: rgba(245, 240, 232, 0.9);
  margin-bottom: 20px;
  animation: eidFadeInUp 1s 0.3s ease both;
  position: relative;
  z-index: 1;
}
.eid-message {
  font-size: 17px;
  color: rgba(245, 240, 232, 0.8);
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.8;
  animation: eidFadeInUp 1s 0.5s ease both;
  position: relative;
  z-index: 1;
}
.eid-date {
  display: inline-block;
  border: 1.5px solid var(--gold);
  padding: 8px 24px;
  border-radius: 30px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  animation: eidFadeInUp 1s 0.7s ease both;
  position: relative;
  z-index: 1;
}
.eid-lanterns {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}
.eid-lantern {
  position: absolute;
  font-size: 32px;
  animation: eidLanternSwing 4s ease-in-out infinite;
  transform-origin: top center;
  opacity: 0.7;
}
.eid-lantern:nth-child(1) { left: 5%; top: -5px; animation-delay: 0s; }
.eid-lantern:nth-child(2) { right: 8%; top: -5px; animation-delay: 1s; }
.eid-lantern:nth-child(3) { left: 15%; top: -5px; animation-delay: 2s; font-size: 24px; }
.eid-lantern:nth-child(4) { right: 18%; top: -5px; animation-delay: 0.5s; font-size: 28px; }

@keyframes eidLanternSwing {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

@keyframes eidFadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.eid-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
}
.eid-close-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: rotate(90deg);
}

/* Dark mode support */
body.dark-mode .eid-banner {
  background: linear-gradient(135deg, #0d1f14, #1a3a2a, #0d1f14);
  border-color: var(--gold);
}

@media (max-width: 768px) {
  .eid-banner { padding: 40px 24px; margin: 0 20px; }
  .eid-moon { font-size: 48px; }
  .eid-lantern { font-size: 24px; }
}
