/* =========================================
   الثانوية التأهيلية الفرح الحرة
   Modern Moroccan Luxury Design
   ========================================= */

/* --- CSS Variables --- */
:root {
  --emerald: #0d4a2e;
  --emerald-light: #1a6b42;
  --emerald-dark: #072a1a;
  --gold: #c9a84c;
  --gold-light: #dfc06a;
  --gold-dark: #a88a34;
  --ivory: #faf8f2;
  --cream: #f5f0e6;
  --sand: #ede4d3;
  --navy: #1a1a2e;
  --charcoal: #2d2d3a;
  --text-dark: #1a1a2e;
  --text-body: #3a3a4a;
  --text-muted: #7a7a8a;
  --text-light: #faf8f2;
  --white: #ffffff;
  --border: rgba(201,168,76,0.2);
  --border-light: rgba(0,0,0,0.06);
  --shadow: 0 4px 30px rgba(26,26,46,0.06);
  --shadow-lg: 0 12px 50px rgba(26,26,46,0.12);
  --shadow-gold: 0 4px 30px rgba(201,168,76,0.15);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-body: 'Almarai', sans-serif;
  --font-heading: 'Markazi Text', serif;
}

/* --- Moroccan Pattern (CSS-only zellige) --- */
.moroccan-pattern {
  background-image:
    linear-gradient(30deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%, var(--gold)),
    linear-gradient(150deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%, var(--gold)),
    linear-gradient(30deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%, var(--gold)),
    linear-gradient(150deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%, var(--gold)),
    linear-gradient(60deg, rgba(201,168,76,0.45) 25%, transparent 25.5%, transparent 75%, rgba(201,168,76,0.45) 75%, rgba(201,168,76,0.45)),
    linear-gradient(60deg, rgba(201,168,76,0.45) 25%, transparent 25.5%, transparent 75%, rgba(201,168,76,0.45) 75%, rgba(201,168,76,0.45));
  background-size: 40px 70px;
  background-position: 0 0, 0 0, 20px 35px, 20px 35px, 0 0, 20px 35px;
  opacity: 0.04;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  line-height: 1.9;
  background: var(--ivory);
  direction: rtl;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}

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

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

ul { list-style: none; }

::selection {
  background: var(--gold);
  color: var(--white);
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* --- Section Styles --- */
.section {
  padding: 110px 0;
  position: relative;
}

.section-heading {
  text-align: center;
  margin-bottom: 70px;
}

.section-heading h2 {
  font-size: 3.2rem;
  color: var(--text-dark);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

/* Moroccan-inspired ornamental divider */
.section-heading .ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.section-heading .ornament::before,
.section-heading .ornament::after {
  content: '';
  width: 60px;
  height: 1px;
  background: var(--gold);
}

.section-heading .ornament span {
  font-size: 1.2rem;
  color: var(--gold);
  line-height: 1;
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: rgba(13,74,46,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0 28px;
  transition: var(--transition);
  border-bottom: 1px solid rgba(201,168,76,0.15);
}

.navbar.scrolled {
  background: rgba(7,42,26,0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

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

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: 0.02em;
}

.navbar-brand:hover {
  color: var(--gold);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

.navbar-menu a {
  color: rgba(250,248,242,0.75);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 400;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  right: 16px;
  left: 16px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: var(--transition);
  border-radius: 1px;
}

.navbar-menu a:hover {
  color: var(--text-light);
}

.navbar-menu a:hover::after {
  transform: scaleX(1);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold-light);
  border-radius: 2px;
  transition: var(--transition);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(7,42,26,0.92) 0%,
    rgba(13,74,46,0.80) 40%,
    rgba(26,26,46,0.85) 100%
  );
}

/* Moroccan arch frame overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 30px;
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  padding: 0 40px;
}

.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--gold-light);
  padding: 8px 28px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 28px;
  line-height: 1.6;
  color: var(--text-light);
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.6rem;
  color: var(--gold-light);
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
}

.hero-scroll {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll span {
  display: block;
  width: 28px;
  height: 46px;
  border: 2px solid rgba(201,168,76,0.4);
  border-radius: 14px;
  position: relative;
}

.hero-scroll span::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--gold-light);
  border-radius: 50%;
  animation: scrollDot 2s infinite;
}

@keyframes scrollDot {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 26px; }
}

/* Corner ornaments */
.hero-corner {
  position: absolute;
  width: 80px;
  height: 80px;
  z-index: 2;
  opacity: 0.3;
}

.hero-corner::before,
.hero-corner::after {
  content: '';
  position: absolute;
  background: var(--gold);
}

.hero-corner--tl { top: 40px; right: 40px; }
.hero-corner--tl::before { top: 0; right: 0; width: 40px; height: 1px; }
.hero-corner--tl::after { top: 0; right: 0; width: 1px; height: 40px; }

.hero-corner--tr { top: 40px; left: 40px; }
.hero-corner--tr::before { top: 0; left: 0; width: 40px; height: 1px; }
.hero-corner--tr::after { top: 0; left: 0; width: 1px; height: 40px; }

.hero-corner--bl { bottom: 40px; right: 40px; }
.hero-corner--bl::before { bottom: 0; right: 0; width: 40px; height: 1px; }
.hero-corner--bl::after { bottom: 0; right: 0; width: 1px; height: 40px; }

.hero-corner--br { bottom: 40px; left: 40px; }
.hero-corner--br::before { bottom: 0; left: 0; width: 40px; height: 1px; }
.hero-corner--br::after { bottom: 0; left: 0; width: 1px; height: 40px; }

/* =========================================
   Director Section
   ========================================= */
.director-section {
  background: var(--white);
}

.director-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--ivory);
  border-radius: var(--radius-lg);
  padding: 70px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.director-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold), var(--emerald));
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.director-card .quote-mark {
  font-size: 7rem;
  font-family: var(--font-heading);
  color: var(--gold);
  opacity: 0.2;
  line-height: 0.6;
  margin-bottom: 20px;
  display: block;
}

.director-card p {
  font-size: 1.15rem;
  line-height: 2.2;
  color: var(--text-body);
  margin-bottom: 20px;
  white-space: pre-line;
}

.director-name {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.director-name-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
}

.director-name h4 {
  font-size: 1.3rem;
  color: var(--emerald);
}

.director-name span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* =========================================
   News Section
   ========================================= */
.news-section {
  background: var(--cream);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 36px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
}

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

.news-card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: var(--transition);
}

.news-card:hover .news-card-image {
  transform: scale(1.03);
}

.news-card-image-wrapper {
  overflow: hidden;
}

.news-card-body {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-body h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
  color: var(--text-dark);
  line-height: 1.5;
}

.news-card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.9;
  flex: 1;
  margin-bottom: 20px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
}

.read-more:hover {
  color: var(--emerald);
  gap: 14px;
}

.read-more::after {
  content: '\2190';
  font-size: 1.3rem;
  transition: var(--transition);
}

/* =========================================
   School Life Section
   ========================================= */
.school-life-section {
  background: var(--white);
}

.school-life-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.club-card {
  background: var(--ivory);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

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

.club-card:hover::before {
  transform: scaleX(1);
}

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

.club-icon {
  font-size: 3.2rem;
  margin-bottom: 24px;
  display: block;
}

.club-card h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
  color: var(--emerald);
}

.club-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 20px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(201,168,76,0.3);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(201,168,76,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--gold-dark);
  border: 2px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--emerald);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.btn-emerald {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
  color: var(--gold-light);
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(13,74,46,0.3);
}

/* =========================================
   About Section
   ========================================= */
.about-section {
  background: linear-gradient(160deg, var(--emerald-dark), var(--emerald), var(--emerald-light));
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

/* Decorative zellige-inspired pattern overlay */
.about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(201,168,76,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201,168,76,0.06) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(201,168,76,0.05) 0%, transparent 40%);
  pointer-events: none;
}

.about-section .section-heading h2 {
  color: var(--text-light);
}

.about-section .ornament::before,
.about-section .ornament::after {
  background: var(--gold-light);
}

.about-section .ornament span {
  color: var(--gold-light);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.25rem;
  line-height: 2.4;
  white-space: pre-line;
  position: relative;
  z-index: 1;
  color: rgba(250,248,242,0.9);
}

/* =========================================
   Gallery Section
   ========================================= */
.gallery-section {
  background: var(--white);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 10px 28px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--emerald);
  color: var(--gold-light);
  border-color: var(--emerald);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13,74,46,0.4) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-gold);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(7,42,26,0.95);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  border: 2px solid rgba(201,168,76,0.3);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  left: 32px;
  font-size: 1.8rem;
  color: var(--gold-light);
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  transition: var(--transition);
}

.lightbox-close:hover {
  background: rgba(201,168,76,0.2);
}

/* =========================================
   Videos Section
   ========================================= */
.videos-section {
  background: var(--cream);
}

.video-wrapper {
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.video-wrapper .video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-wrapper .video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* =========================================
   Links Section
   ========================================= */
.links-section {
  background: var(--white);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

.link-card {
  background: var(--ivory);
  border-radius: var(--radius);
  padding: 36px;
  transition: var(--transition);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold), var(--emerald));
  border-radius: 0 var(--radius) var(--radius) 0;
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
  border-color: var(--border);
}

.link-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text-dark);
  padding-right: 16px;
}

.link-card .link-url {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 20px;
  direction: ltr;
  text-align: right;
  padding-right: 16px;
}

.link-card .btn {
  align-self: flex-start;
  margin-top: auto;
  margin-right: 16px;
}

/* =========================================
   Contact Section
   ========================================= */
.contact-section {
  background: linear-gradient(160deg, var(--navy), var(--charcoal));
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 10% 90%, rgba(201,168,76,0.06) 0%, transparent 40%);
  pointer-events: none;
}

.contact-section .section-heading h2 {
  color: var(--text-light);
}

.contact-section .ornament::before,
.contact-section .ornament::after {
  background: var(--gold);
}

.contact-section .ornament span {
  color: var(--gold);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.contact-item-icon {
  font-size: 1.4rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 14px;
  flex-shrink: 0;
  color: var(--gold-light);
}

.contact-item-text h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--text-light);
}

.contact-item-text p {
  opacity: 0.7;
  font-size: 0.95rem;
}

.contact-item-text a {
  color: var(--gold-light);
}

.contact-item-text a:hover {
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 22px;
  border-radius: 12px;
  border: 1px solid rgba(201,168,76,0.15);
  background: rgba(255,255,255,0.04);
  color: white;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.35);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(201,168,76,0.05);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.1);
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form .btn-gold {
  padding: 16px 44px;
  font-size: 1rem;
  align-self: flex-start;
}

.map-container {
  margin-top: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  height: 320px;
  border: 1px solid rgba(201,168,76,0.15);
  position: relative;
  z-index: 1;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* =========================================
   Footer
   ========================================= */
.footer {
  background: var(--emerald-dark);
  color: rgba(250,248,242,0.6);
  padding: 70px 0 30px;
  border-top: 1px solid rgba(201,168,76,0.15);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer h4 {
  color: var(--gold-light);
  font-size: 1.4rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.footer-links a {
  display: block;
  padding: 7px 0;
  color: rgba(250,248,242,0.5);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold-light);
  padding-right: 10px;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid rgba(201,168,76,0.1);
  padding-top: 28px;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(250,248,242,0.4);
}

/* =========================================
   Single Page / Article
   ========================================= */
.article {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 28px 80px;
}

.article h1 {
  font-size: 2.6rem;
  margin-bottom: 16px;
}

.article-meta {
  color: var(--text-muted);
  margin-bottom: 36px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-meta::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--gold);
}

.article-image {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

.article-content {
  font-size: 1.1rem;
  line-height: 2.2;
}

.article-content p {
  margin-bottom: 20px;
}

/* =========================================
   List Page
   ========================================= */
.list-page {
  padding: 120px 28px 80px;
}

.list-page h1 {
  font-size: 2.6rem;
  margin-bottom: 48px;
  text-align: center;
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 992px) {
  .section { padding: 80px 0; }
  .section-heading h2 { font-size: 2.6rem; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero::after { inset: 20px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer h4::after { right: auto; }
  .director-card { padding: 48px 32px; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .navbar-menu {
    position: fixed;
    top: 76px;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(7,42,26,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 28px;
    gap: 4px;
    transform: translateX(100%);
    transition: var(--transition);
    overflow-y: auto;
  }

  .navbar-menu.open { transform: translateX(0); }

  .navbar-menu a {
    padding: 16px 22px;
    font-size: 1.05rem;
    border-radius: 12px;
  }

  .navbar-menu a::after { display: none; }

  .hero-content h1 { font-size: 1.6rem; }
  .hero-content p { font-size: 1.2rem; }
  .hero::after { display: none; }
  .hero-corner { display: none; }

  .news-grid { grid-template-columns: 1fr; }
  .school-life-grid { grid-template-columns: 1fr; }
  .links-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .section-heading { margin-bottom: 48px; }
  .section-heading h2 { font-size: 2.2rem; }
  .about-content { font-size: 1.05rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .container { padding: 0 20px; }
  .hero-content h1 { font-size: 1.4rem; }
  .section-heading h2 { font-size: 1.9rem; }
}

/* --- Utilities --- */
.hidden { display: none !important; }
.text-center { text-align: center; }
