/*
Theme Name:        FLA - Faculté de Langue Arabe
Theme URI:         https://fla.uca.ac.ma
Author:            Université Cadi Ayyad
Author URI:        https://www.uca.ma
Description:       Thème officiel de la Faculté de Langue Arabe, Lettres et Arts - كلية اللغة العربية وآدابها وفنونها. Thème académique bilingue (Arabe/Français) avec support RTL complet.
Version:           1.0.0
Requires at least: 6.0
Tested up to:      6.5
Requires PHP:      8.0
License:           GNU General Public License v2 or later
License URI:       http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       fla-theme
Tags:              rtl-language-support, arabic, university, academic, custom-menu, featured-images, translation-ready, full-width-template, two-columns, three-columns
*/

/* ===================================================
   TABLE OF CONTENTS
   1. CSS Variables & Reset
   2. Typography
   3. Layout & Grid
   4. Header & Navigation
   5. Hero / Slider
   6. Stats Band
   7. Sections & Cards
   8. News & Events
   9. Programs
   10. Departments
   11. Research
   12. President Section
   13. Student Life
   14. Partners
   15. Footer
   16. Sidebar & Widgets
   17. Single Post
   18. Pages
   19. Comments
   20. WooCommerce (optional)
   21. Responsive
   22. RTL Overrides
   23. Print
=================================================== */

/* ===== 1. CSS Variables & Reset ===== */
:root {
  --green-dark:   #1a4a2e;
  --green-mid:    #256b44;
  --green-light:  #3a8c5c;
  --gold:         #c9a227;
  --gold-light:   #e4c060;
  --cream:        #f8f4e9;
  --cream-dark:   #ede7d3;
  --navy:         #1a2744;
  --text-dark:    #1a1a1a;
  --text-mid:     #3d3d3d;
  --text-light:   #6b6b6b;
  --white:        #ffffff;
  --border:       #e0d9c6;
  --shadow-sm:    0 2px 10px rgba(0,0,0,0.06);
  --shadow:       0 4px 30px rgba(0,0,0,0.10);
  --shadow-lg:    0 12px 60px rgba(0,0,0,0.16);
  --radius-sm:    6px;
  --radius:       12px;
  --radius-lg:    20px;
  --transition:   all 0.3s ease;
  --font-arabic:  'Noto Sans Arabic', 'Amiri', Arial, sans-serif;
  --font-display: 'Amiri', 'Times New Roman', serif;
  --font-latin:   'Libre Baskerville', Georgia, serif;
  --font-ui:      'Noto Sans Arabic', Arial, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-arabic);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

/* ===== 2. Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  color: var(--green-dark);
  margin-bottom: 0.75em;
}
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; }

p { margin-bottom: 1.2em; line-height: 1.8; color: var(--text-mid); }
a { color: var(--green-mid); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--green-dark); text-decoration: underline; }

blockquote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.9;
  color: var(--text-mid);
  border-right: 4px solid var(--gold);
  padding: 16px 24px 16px 12px;
  margin: 24px 0;
  background: var(--cream);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

ul, ol { padding-right: 20px; margin-bottom: 1em; }
li { margin-bottom: 0.4em; }
img { max-width: 100%; height: auto; display: block; }
table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
th, td { padding: 12px 16px; border: 1px solid var(--border); text-align: right; }
th { background: var(--green-dark); color: var(--white); font-family: var(--font-display); }
tr:nth-child(even) { background: var(--cream); }
hr { border: none; border-top: 2px solid var(--border); margin: 30px 0; }

code, pre {
  font-family: 'Courier New', monospace;
  background: var(--cream);
  border-radius: 4px;
  font-size: 0.88em;
  direction: ltr;
  text-align: left;
}
code { padding: 2px 6px; }
pre { padding: 16px 20px; overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--border); }

/* ===== 3. Layout & Grid ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 32px; }
.container-lg { max-width: 1440px; margin: 0 auto; padding: 0 32px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.site-main { min-height: 60vh; }

.section { padding: 90px 0; }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); }
.section--dark { background: var(--green-dark); }
.section--white { background: var(--white); }

/* Section Headers */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  background: var(--cream);
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 30px;
  margin-bottom: 14px;
  border: 1px solid var(--cream-dark);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--green-dark);
  line-height: 1.3;
  margin-bottom: 14px;
}
.section-title span { color: var(--gold); }
.section-desc { color: var(--text-light); max-width: 580px; margin: 0 auto; line-height: 1.85; font-size: 0.93rem; }
.section-divider {
  width: 56px; height: 3px;
  background: linear-gradient(to right, var(--gold), var(--green-light));
  margin: 18px auto 0;
  border-radius: 2px;
}

/* Section white overrides */
.section--navy .section-title,
.section--dark .section-title { color: var(--white); }
.section--navy .section-desc,
.section--dark .section-desc { color: rgba(255,255,255,0.65); }
.section--navy .section-tag,
.section--dark .section-tag { background: rgba(255,255,255,0.08); color: var(--gold-light); border-color: rgba(255,255,255,0.1); }

/* ===== 4. Header & Navigation ===== */
/* Announce Bar */
.fla-announce-bar {
  background: var(--gold);
  color: var(--navy);
  text-align: center;
  padding: 9px 48px;
  font-size: 0.82rem;
  font-weight: 600;
  position: relative;
}
.fla-announce-bar a { color: var(--navy); text-decoration: underline; }
.fla-announce-close {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  font-size: 1.1rem; cursor: pointer;
  color: var(--navy);
  line-height: 1;
}

/* Top Bar */
.fla-topbar {
  background: var(--navy);
  color: var(--cream);
  font-size: 0.77rem;
  padding: 8px 0;
  border-bottom: 2px solid var(--gold);
}
.fla-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.fla-topbar__left { display: flex; gap: 20px; align-items: center; }
.fla-topbar__left a { color: var(--cream-dark); transition: color 0.2s; }
.fla-topbar__left a:hover { color: var(--gold); text-decoration: none; }
.fla-topbar__right { display: flex; gap: 14px; align-items: center; }

/* Language Switcher */
.fla-lang-switcher { display: flex; gap: 6px; }
.fla-lang-switcher a {
  color: var(--cream-dark);
  font-size: 0.73rem;
  padding: 2px 8px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 3px;
  transition: var(--transition);
}
.fla-lang-switcher a.active,
.fla-lang-switcher a:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

/* Social Links (topbar) */
.fla-topbar__socials { display: flex; gap: 8px; }
.fla-topbar__socials a {
  color: rgba(255,255,255,0.7);
  width: 26px; height: 26px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; transition: var(--transition);
}
.fla-topbar__socials a:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); text-decoration: none; }

/* Main Navbar */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}
#site-header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.12); }

.fla-navbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 32px; max-width: 1280px; margin: 0 auto; }

/* Logo */
.fla-logo { display: flex; align-items: center; gap: 14px; padding: 12px 0; text-decoration: none; flex-shrink: 0; }
.fla-logo__emblem {
  width: 56px; height: 56px;
  background: var(--green-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.fla-logo__emblem::before {
  content: '';
  position: absolute; inset: 4px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
}
.fla-logo__emblem svg { width: 32px; height: 32px; fill: var(--gold); position: relative; z-index: 1; }
.fla-logo__text { line-height: 1.2; }
.fla-logo__ar { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--green-dark); display: block; }
.fla-logo__fr { font-size: 0.65rem; color: var(--text-light); font-family: var(--font-latin); font-style: italic; display: block; margin-top: 2px; }

/* Primary Navigation */
#primary-navigation { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
#primary-navigation ul { display: flex; gap: 0; list-style: none; padding: 0; margin: 0; }
#primary-navigation > ul > li { position: relative; }
#primary-navigation > ul > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 22px 14px;
  font-size: 0.85rem; font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}
#primary-navigation > ul > li:hover > a,
#primary-navigation > ul > li.current-menu-item > a {
  color: var(--green-dark);
  border-bottom-color: var(--gold);
}

/* Dropdown */
#primary-navigation ul ul {
  position: absolute;
  top: 100%; right: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  border-top: 3px solid var(--gold);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 100;
  padding: 8px 0;
  list-style: none;
  flex-direction: column;
}
#primary-navigation ul li:hover > ul {
  opacity: 1; visibility: visible; transform: translateY(0);
}
#primary-navigation ul ul a {
  display: block;
  padding: 10px 20px;
  font-size: 0.82rem;
  color: var(--text-mid);
  border-right: 3px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}
#primary-navigation ul ul a:hover {
  background: var(--cream);
  color: var(--green-dark);
  border-right-color: var(--gold);
  padding-right: 26px;
}

/* Navbar CTA */
.fla-nav-cta {
  background: var(--green-dark);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.fla-nav-cta:hover {
  background: var(--green-mid);
  color: var(--white) !important;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Hamburger */
.fla-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.fla-hamburger span { width: 24px; height: 2px; background: var(--text-dark); border-radius: 2px; display: block; transition: var(--transition); }
.fla-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.fla-hamburger.active span:nth-child(2) { opacity: 0; }
.fla-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.fla-mobile-nav {
  display: none;
  position: fixed; inset: 0;
  background: var(--white);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  overflow-y: auto;
}
.fla-mobile-nav.open { transform: translateX(0); }
.fla-mobile-nav__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--cream-dark);
  background: var(--green-dark);
}
.fla-mobile-nav__header span { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--white); }
.fla-mobile-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--white); }
.fla-mobile-nav ul { list-style: none; padding: 0; }
.fla-mobile-nav ul li a {
  display: block; padding: 14px 24px;
  font-size: 0.95rem; color: var(--text-dark);
  border-bottom: 1px solid var(--cream);
  font-weight: 500; text-decoration: none;
}
.fla-mobile-nav ul li a:hover { background: var(--cream); color: var(--green-dark); }
.fla-mobile-nav ul ul { padding-right: 20px; background: var(--cream); }
.fla-mobile-nav ul ul a { font-size: 0.85rem; color: var(--text-mid); }

/* ===== 5. Hero / Slider ===== */
.fla-hero {
  position: relative;
  height: 88vh;
  min-height: 580px;
  overflow: hidden;
}
.fla-hero__slides { position: relative; width: 100%; height: 100%; }
.fla-hero__slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.9s ease;
  display: flex; align-items: center;
}
.fla-hero__slide.active { opacity: 1; }

.fla-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.06); transition: transform 8s ease;
}
.fla-hero__slide.active .fla-hero__bg { transform: scale(1); }

/* Default gradient BGs (replaced by ACF images in production) */
.fla-hero__bg--1 { background: linear-gradient(135deg, #1a4a2e 0%, #256b44 45%, #1a2744 100%); }
.fla-hero__bg--2 { background: linear-gradient(135deg, #1a2744 0%, #2a3f6b 45%, #1a4a2e 100%); }
.fla-hero__bg--3 { background: linear-gradient(135deg, #2d1a0e 0%, #5c3518 45%, #1a4a2e 100%); }

.fla-hero__pattern {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='rgba(201,162,39,0.1)' stroke-width='.8'%3E%3Cpolygon points='40,5 55,20 55,40 40,55 25,40 25,20'/%3E%3Ccircle cx='40' cy='32' r='10'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.fla-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}
.fla-hero__content {
  position: relative; z-index: 2;
  max-width: 680px;
  padding: 0 60px;
  color: var(--white);
  animation: heroSlideIn 1.2s ease forwards;
}
.fla-hero__slide:not(.active) .fla-hero__content { animation: none; opacity: 0; }
@keyframes heroSlideIn { from{opacity:0;transform:translateX(30px)} to{opacity:1;transform:translateX(0)} }

.fla-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,162,39,0.18);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 0.77rem; padding: 5px 16px;
  border-radius: 30px; margin-bottom: 22px;
  font-family: var(--font-display);
}
.fla-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700; line-height: 1.25;
  margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  color: var(--white);
}
.fla-hero__subtitle {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 34px;
}
.fla-hero__buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.fla-hero__dots {
  position: absolute; bottom: 36px; right: 60px;
  z-index: 3; display: flex; gap: 10px;
}
.fla-hero__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer; transition: var(--transition);
  border: 2px solid transparent;
}
.fla-hero__dot.active { background: var(--gold); transform: scale(1.3); border-color: rgba(255,255,255,0.4); }

.fla-hero__scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 5px;
  color: rgba(255,255,255,0.55); font-size: 0.68rem; letter-spacing: 2px;
  animation: heroBounce 2s ease-in-out infinite;
}
.fla-hero__scroll svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
@keyframes heroBounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ===== 6. Stats Band ===== */
.fla-stats {
  background: var(--green-dark);
  padding: 50px 0;
  position: relative; overflow: hidden;
}
.fla-stats::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/svg%3E");
}
.fla-stats__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.fla-stat {
  text-align: center; padding: 22px;
  border-left: 1px solid rgba(255,255,255,0.08);
}
.fla-stat:last-child { border-left: none; }
.fla-stat__icon { font-size: 1.5rem; margin-bottom: 10px; display: block; }
.fla-stat__number {
  font-family: 'Playfair Display', var(--font-display);
  font-size: 2.6rem; font-weight: 700;
  color: var(--gold); line-height: 1; display: block;
}
.fla-stat__label { color: rgba(255,255,255,0.7); font-size: 0.78rem; margin-top: 8px; display: block; line-height: 1.4; }

/* ===== 7. Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.88rem;
  transition: var(--transition); cursor: pointer;
  border: 2px solid transparent; text-decoration: none;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); color: var(--navy); box-shadow: 0 6px 20px rgba(201,162,39,0.4); }
.btn-secondary { background: var(--green-dark); color: var(--white); border-color: var(--green-dark); }
.btn-secondary:hover { background: var(--green-mid); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); color: var(--white); }
.btn-outline-green { background: transparent; color: var(--green-dark); border-color: var(--green-dark); }
.btn-outline-green:hover { background: var(--green-dark); color: var(--white); }
.btn-sm { padding: 8px 18px; font-size: 0.8rem; }
.btn-lg { padding: 16px 36px; font-size: 0.96rem; }

/* ===== 8. News & Events ===== */
/* News Grid */
.fla-news__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.fla-news__main {
  border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-lg);
  cursor: pointer; position: relative;
}
.fla-news__main-img {
  height: 400px; position: relative; overflow: hidden;
  background: var(--green-dark);
}
.fla-news__main-img .fla-img-inner {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.5s ease;
}
.fla-news__main:hover .fla-img-inner { transform: scale(1.05); }
.fla-news__main-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}
.fla-news__main-content { position: absolute; bottom: 0; right: 0; left: 0; padding: 28px; color: var(--white); }
.news-badge { display: inline-block; background: var(--gold); color: var(--navy); font-size: 0.68rem; font-weight: 700; padding: 3px 12px; border-radius: 3px; margin-bottom: 10px; }
.fla-news__main-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1.4; margin-bottom: 8px; color: var(--white); }
.fla-news__main-meta { font-size: 0.76rem; opacity: 0.7; }

/* News list */
.fla-news__list { display: flex; flex-direction: column; gap: 14px; }
.fla-news-card {
  background: var(--white); border-radius: var(--radius-sm);
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; transition: var(--transition); cursor: pointer;
  border: 1px solid var(--border);
}
.fla-news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--gold-light); }
.fla-news-card__img { width: 110px; flex-shrink: 0; background: var(--green-dark); position: relative; overflow: hidden; }
.fla-news-card__img .fla-img-inner { position: absolute; inset: 0; background-size: cover; background-position: center; }
.fla-news-card__body { padding: 16px; flex: 1; }
.fla-news-card__cat { font-size: 0.67rem; color: var(--green-mid); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.fla-news-card__title { font-family: var(--font-display); font-size: 0.97rem; font-weight: 700; color: var(--text-dark); line-height: 1.45; margin-bottom: 7px; }
.fla-news-card__date { font-size: 0.71rem; color: var(--text-light); }

/* Events / Agenda */
.fla-event-card {
  background: var(--white); border-radius: var(--radius-sm);
  padding: 22px; box-shadow: var(--shadow);
  display: flex; gap: 18px; align-items: flex-start;
  transition: var(--transition); border-right: 4px solid transparent;
}
.fla-event-card:hover { border-right-color: var(--gold); transform: translateX(-4px); box-shadow: var(--shadow-lg); }
.fla-event-card__date {
  background: var(--green-dark); color: var(--white);
  border-radius: 10px; padding: 12px 14px;
  text-align: center; flex-shrink: 0; min-width: 64px;
}
.fla-event-card__day { font-size: 2rem; font-weight: 700; line-height: 1; display: block; font-family: 'Playfair Display', serif; }
.fla-event-card__month { font-size: 0.68rem; text-transform: uppercase; opacity: 0.8; display: block; margin-top: 2px; }
.fla-event-card__cat { font-size: 0.68rem; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.fla-event-card__title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text-dark); line-height: 1.4; margin-bottom: 7px; }
.fla-event-card__loc { font-size: 0.76rem; color: var(--text-light); }

/* ===== 9. Programs ===== */
.fla-prog-tabs { display: flex; gap: 0; margin-bottom: 44px; border-bottom: 2px solid var(--cream-dark); overflow-x: auto; }
.fla-prog-tab {
  padding: 13px 26px; font-size: 0.86rem; font-weight: 600;
  color: var(--text-light); cursor: pointer; white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: var(--transition); background: none; border-top: none; border-right: none; border-left: none;
}
.fla-prog-tab.active { color: var(--green-dark); border-bottom-color: var(--gold); }
.fla-prog-tab:hover { color: var(--green-mid); }

.fla-prog-card {
  border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition);
  border: 1px solid var(--border); background: var(--white);
}
.fla-prog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold-light); }
.fla-prog-card__top {
  height: 140px; background: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.fla-prog-card__top::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='20' r='15' fill='none' stroke='rgba(201,162,39,0.15)' stroke-width='1'/%3E%3C/svg%3E");
}
.fla-prog-card__icon { font-size: 3.2rem; position: relative; z-index: 1; }
.fla-prog-card__level {
  position: absolute; top: 12px; left: 12px;
  background: var(--gold); color: var(--navy);
  font-size: 0.66rem; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
}
.fla-prog-card__body { padding: 22px; }
.fla-prog-card__title { font-family: var(--font-display); font-size: 1.08rem; font-weight: 700; color: var(--green-dark); margin-bottom: 9px; line-height: 1.4; }
.fla-prog-card__desc { font-size: 0.81rem; color: var(--text-light); line-height: 1.7; margin-bottom: 14px; }
.fla-prog-card__meta { display: flex; gap: 14px; flex-wrap: wrap; }
.fla-prog-card__meta span { font-size: 0.73rem; color: var(--text-light); display: flex; align-items: center; gap: 4px; }
.fla-prog-card__meta span::before { content: '●'; font-size: 0.35rem; color: var(--gold); }

/* ===== 10. Departments ===== */
.fla-dept-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center; transition: var(--transition); cursor: pointer;
}
.fla-dept-card:hover { background: rgba(255,255,255,0.12); border-color: var(--gold); transform: translateY(-5px); }
.fla-dept-card__icon {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; font-size: 1.9rem;
  border: 2px solid var(--gold);
}
.fla-dept-card__name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; line-height: 1.4; }
.fla-dept-card__name-fr { font-size: 0.72rem; color: rgba(255,255,255,0.45); font-family: var(--font-latin); font-style: italic; margin-bottom: 12px; }
.fla-dept-card__count { font-size: 0.76rem; color: var(--gold-light); }

/* ===== 11. Research ===== */
.fla-research-card { border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.fla-research-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.fla-research-card__header { padding: 28px; background: var(--green-dark); color: var(--white); position: relative; overflow: hidden; }
.fla-research-card__header::after { content: ''; position: absolute; bottom: -30px; left: -30px; width: 100px; height: 100px; background: rgba(255,255,255,0.05); border-radius: 50%; }
.fla-research-card__icon { font-size: 2.4rem; margin-bottom: 12px; display: block; }
.fla-research-card__title { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; line-height: 1.4; color: var(--white); }
.fla-research-card__body { padding: 22px; background: var(--white); }
.fla-research-card__desc { font-size: 0.82rem; color: var(--text-light); line-height: 1.7; margin-bottom: 14px; }
.fla-research-card__link { color: var(--green-mid); font-size: 0.81rem; font-weight: 700; display: flex; align-items: center; gap: 6px; transition: gap 0.2s; text-decoration: none; }
.fla-research-card__link:hover { gap: 10px; color: var(--green-dark); text-decoration: none; }

/* ===== 12. President Section ===== */
.fla-president__inner { display: grid; grid-template-columns: 1fr 1.5fr; gap: 70px; align-items: center; }
.fla-president__photo {
  width: 100%; aspect-ratio: 3/4; max-width: 340px;
  margin: 0 auto; border-radius: var(--radius-lg);
  overflow: hidden; background: linear-gradient(135deg, var(--green-dark), var(--navy));
  box-shadow: var(--shadow-lg); position: relative;
}
.fla-president__photo img { width: 100%; height: 100%; object-fit: cover; }
.fla-president__badge {
  position: absolute; bottom: -18px; right: 24px;
  background: var(--gold); color: var(--navy);
  padding: 14px 22px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.fla-president__badge .name { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; display: block; }
.fla-president__badge .title { font-size: 0.7rem; margin-top: 3px; display: block; }
.fla-president__quote {
  font-family: var(--font-display);
  font-size: 1.18rem; color: var(--text-mid);
  line-height: 1.9; margin: 22px 0;
  padding-right: 22px;
  border-right: 4px solid var(--gold);
  background: none;
}

/* ===== 13. Student Life ===== */
.fla-student-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.fla-student-tile { padding: 46px 34px; position: relative; overflow: hidden; cursor: pointer; transition: var(--transition); }
.fla-student-tile:hover { transform: scale(1.02); z-index: 1; }
.fla-student-tile::before { content: ''; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='20' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/svg%3E"); transition: opacity 0.3s; }
.fla-student-tile:hover::before { opacity: 2; }
.fla-student-tile:nth-child(1) { background: var(--green-dark); }
.fla-student-tile:nth-child(2) { background: var(--navy); }
.fla-student-tile:nth-child(3) { background: var(--green-mid); }
.fla-student-tile__icon { font-size: 3rem; margin-bottom: 18px; display: block; }
.fla-student-tile__title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--white); margin-bottom: 12px; line-height: 1.3; }
.fla-student-tile__desc { font-size: 0.82rem; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 22px; }
.fla-student-tile__link { color: var(--gold-light); font-size: 0.81rem; font-weight: 700; display: flex; align-items: center; gap: 7px; text-decoration: none; }
.fla-student-tile__link:hover { color: var(--white); text-decoration: none; }

/* ===== 14. Partners ===== */
.fla-partners { padding: 60px 0; background: var(--cream-dark); border-top: 1px solid var(--border); }
.fla-partners__title { text-align: center; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 3px; color: var(--text-light); margin-bottom: 34px; }
.fla-partners__logos { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; }
.fla-partner-logo {
  background: var(--white); border-radius: var(--radius-sm);
  padding: 12px 26px; border: 1px solid var(--border);
  color: var(--text-light); font-size: 0.81rem; font-weight: 600;
  transition: var(--transition); cursor: pointer;
}
.fla-partner-logo:hover { border-color: var(--gold); color: var(--green-dark); box-shadow: var(--shadow); }

/* ===== 15. Footer ===== */
.fla-footer { background: var(--green-dark); color: var(--white); position: relative; overflow: hidden; }
.fla-footer::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='rgba(201,162,39,0.05)' stroke-width='1'%3E%3Cpolygon points='40,5 55,20 55,40 40,55 25,40 25,20'/%3E%3C/g%3E%3C/svg%3E");
}
.fla-footer__body { padding: 68px 0 48px; position: relative; }
.fla-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }

.fla-footer__brand-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.fla-footer__brand-logo .emblem {
  width: 50px; height: 50px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.fla-footer__brand-logo .emblem svg { width: 26px; height: 26px; fill: var(--gold); }
.fla-footer__brand-logo .name .ar { font-family: var(--font-display); font-size: 0.97rem; font-weight: 700; color: var(--white); display: block; }
.fla-footer__brand-logo .name .fr { font-size: 0.64rem; color: rgba(255,255,255,0.45); font-style: italic; display: block; }
.fla-footer__brand p { font-size: 0.8rem; color: rgba(255,255,255,0.6); line-height: 1.8; margin-bottom: 18px; }
.fla-footer__socials { display: flex; gap: 8px; }
.fla-footer__socials a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65); font-size: 0.78rem;
  transition: var(--transition); text-decoration: none;
}
.fla-footer__socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

.fla-footer__col h4 {
  font-family: var(--font-display);
  font-size: 1rem; color: var(--gold-light);
  margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.fla-footer__col ul { list-style: none; padding: 0; }
.fla-footer__col ul li { margin-bottom: 9px; }
.fla-footer__col ul li a {
  font-size: 0.8rem; color: rgba(255,255,255,0.6);
  transition: var(--transition); display: flex; align-items: center; gap: 6px;
  text-decoration: none;
}
.fla-footer__col ul li a::before { content: '›'; color: var(--gold); font-size: 1.1rem; }
.fla-footer__col ul li a:hover { color: var(--white); padding-right: 4px; }

.fla-footer__contact-item { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 13px; }
.fla-footer__contact-item .icon { color: var(--gold); font-size: 1rem; margin-top: 2px; flex-shrink: 0; }
.fla-footer__contact-item p { font-size: 0.78rem; color: rgba(255,255,255,0.62); line-height: 1.5; margin: 0; }

.fla-footer__bottom { background: rgba(0,0,0,0.22); padding: 16px 0; position: relative; }
.fla-footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; font-size: 0.76rem; }
.fla-footer__bottom p { color: rgba(255,255,255,0.38); margin: 0; }
.fla-footer__bottom p a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
.fla-footer__bottom p a:hover { color: var(--gold); }
.fla-footer__bottom-links { display: flex; gap: 20px; }
.fla-footer__bottom-links a { color: rgba(255,255,255,0.38); font-size: 0.74rem; transition: color 0.2s; text-decoration: none; }
.fla-footer__bottom-links a:hover { color: var(--gold); }

/* ===== 16. Sidebar & Widgets ===== */
.content-sidebar-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
.sidebar .widget { margin-bottom: 36px; background: var(--cream); border-radius: var(--radius-sm); padding: 24px; border: 1px solid var(--border); }
.sidebar .widget-title { font-family: var(--font-display); font-size: 1.08rem; color: var(--green-dark); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--gold); }
.sidebar .widget ul { list-style: none; padding: 0; }
.sidebar .widget ul li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.sidebar .widget ul li a { color: var(--text-mid); font-size: 0.85rem; display: flex; justify-content: space-between; }
.sidebar .widget ul li a:hover { color: var(--green-dark); }
.widget_search input[type="search"] {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.88rem;
  font-family: var(--font-arabic); text-align: right;
}
.widget_search input[type="submit"] {
  width: 100%; margin-top: 8px; padding: 10px;
  background: var(--green-dark); color: var(--white);
  border: none; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 0.88rem; font-weight: 700;
  font-family: var(--font-display); transition: var(--transition);
}
.widget_search input[type="submit"]:hover { background: var(--green-mid); }

/* ===== 17. Single Post ===== */
.fla-post-header { padding: 60px 0 40px; background: var(--cream); margin-bottom: 50px; }
.fla-post-header__cat { color: var(--green-mid); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.fla-post-header__title { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; color: var(--green-dark); line-height: 1.3; margin-bottom: 20px; }
.fla-post-header__meta { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.fla-post-header__meta span { font-size: 0.78rem; color: var(--text-light); }
.fla-post-featured-img { margin-bottom: 40px; border-radius: var(--radius); overflow: hidden; }
.fla-post-featured-img img { width: 100%; max-height: 500px; object-fit: cover; }
.fla-post-content h2 { font-size: 1.7rem; margin-top: 2em; }
.fla-post-content h3 { font-size: 1.35rem; margin-top: 1.8em; }
.fla-post-content img { border-radius: var(--radius-sm); margin: 1.5em 0; }
.fla-post-tags { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.fla-post-tags a { display: inline-block; background: var(--cream); color: var(--text-mid); font-size: 0.78rem; padding: 4px 14px; border-radius: 20px; margin: 4px; border: 1px solid var(--border); }
.fla-post-tags a:hover { background: var(--green-dark); color: var(--white); text-decoration: none; }

/* Post Navigation */
.fla-post-nav { display: flex; justify-content: space-between; margin: 50px 0; gap: 20px; }
.fla-post-nav a { flex: 1; padding: 18px; background: var(--cream); border-radius: var(--radius-sm); border: 1px solid var(--border); transition: var(--transition); text-decoration: none; }
.fla-post-nav a:hover { background: var(--green-dark); color: var(--white); }
.fla-post-nav a:hover .fla-post-nav__title { color: var(--white); }
.fla-post-nav__label { font-size: 0.72rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.fla-post-nav__title { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; color: var(--green-dark); }

/* ===== 18. Pages ===== */
.fla-page-hero { background: var(--green-dark); color: var(--white); padding: 70px 0; text-align: center; position: relative; overflow: hidden; }
.fla-page-hero::before { content: ''; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='rgba(201,162,39,0.08)' stroke-width='1'%3E%3Cpolygon points='40,5 55,20 55,40 40,55 25,40 25,20'/%3E%3C/g%3E%3C/svg%3E"); }
.fla-page-hero h1 { color: var(--white); font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; position: relative; }
.fla-breadcrumb { display: flex; gap: 8px; justify-content: center; align-items: center; font-size: 0.78rem; color: rgba(255,255,255,0.6); flex-wrap: wrap; position: relative; }
.fla-breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.fla-breadcrumb a:hover { color: var(--gold); }
.fla-breadcrumb span.sep { color: rgba(255,255,255,0.3); }
.fla-breadcrumb span.current { color: var(--gold-light); }

.fla-page-content { padding: 70px 0; }

/* ===== 19. Comments ===== */
.fla-comments { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--border); }
.fla-comments h2 { font-family: var(--font-display); font-size: 1.4rem; color: var(--green-dark); margin-bottom: 28px; }
.comment { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 16px; background: var(--cream); }
.comment-author { font-weight: 700; color: var(--green-dark); }
.comment-date { font-size: 0.76rem; color: var(--text-light); }
.comment-body { margin-top: 10px; font-size: 0.88rem; }

/* Comment Form */
.fla-comment-form input, .fla-comment-form textarea {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-arabic); font-size: 0.88rem;
  text-align: right; direction: rtl;
  margin-bottom: 14px; transition: border-color 0.2s;
}
.fla-comment-form input:focus, .fla-comment-form textarea:focus { outline: none; border-color: var(--gold); }
.fla-comment-form textarea { min-height: 140px; resize: vertical; }

/* ===== 20. Forms ===== */
.fla-form input, .fla-form select, .fla-form textarea {
  width: 100%; padding: 11px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-arabic); font-size: 0.88rem; color: var(--text-dark);
  background: var(--white); text-align: right; direction: rtl;
  transition: border-color 0.2s; margin-bottom: 14px;
}
.fla-form input:focus, .fla-form select:focus, .fla-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,0.12); }
.fla-form label { font-size: 0.83rem; font-weight: 600; color: var(--text-dark); display: block; margin-bottom: 5px; }
.fla-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== 21. Utilities ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mt-auto { margin-top: auto; }
.mb-0 { margin-bottom: 0; }
.pb-0 { padding-bottom: 0; }
.pt-0 { padding-top: 0; }
.d-none { display: none; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }

/* Back to top */
#fla-back-top {
  position: fixed; bottom: 28px; left: 28px;
  width: 44px; height: 44px;
  background: var(--gold); color: var(--navy);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow); z-index: 500;
  transition: var(--transition); opacity: 0; visibility: hidden; transform: translateY(10px);
}
#fla-back-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#fla-back-top:hover { background: var(--gold-light); transform: translateY(-3px); }
#fla-back-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; }

/* Fade up animation */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }

/* ===== 22. Responsive ===== */
@media (max-width: 1100px) {
  .fla-footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .fla-stats__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  #primary-navigation { display: none; }
  .fla-hamburger { display: flex; }
  .fla-mobile-nav { display: block; }
  .fla-news__grid { grid-template-columns: 1fr; }
  .fla-news__main-img { height: 300px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .fla-president__inner { grid-template-columns: 1fr; gap: 40px; }
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .fla-student-grid { grid-template-columns: 1fr; }
  .fla-hero__content { padding: 0 28px; }
  .container { padding: 0 20px; }
  .section { padding: 66px 0; }
  .fla-prog-grid { grid-template-columns: repeat(2, 1fr); }
  .fla-agenda-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .fla-prog-grid { grid-template-columns: 1fr; }
  .fla-footer__grid { grid-template-columns: 1fr; }
  .fla-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .fla-hero { height: 78vh; }
  .fla-hero__buttons { flex-direction: column; }
  .fla-footer__bottom-inner { flex-direction: column; gap: 10px; text-align: center; }
  .fla-topbar__right { display: none; }
  .container { padding: 0 16px; }
  .section { padding: 50px 0; }
}

/* ===== 23. Print ===== */
@media print {
  #site-header, .fla-topbar, .fla-hero, .fla-stats, .fla-footer, #fla-back-top, .sidebar { display: none !important; }
  body { font-size: 12pt; color: black; }
  a { color: black; }
  h1, h2, h3 { color: black; }
}
