@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
  /* KFS Colors */
  --primary: #205daa;
  --primary-light: #3275d0;
  --primary-dark: #123d75;
  --accent: #d4a843;
  --accent-light: #f0cc6b;
  
  /* Light Theme Colors */
  --bg-light: #f8f9fa;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.95);
  --text: #212529;
  --text-muted: #6c757d;
  --border: #e9ecef;
  
  /* Utilities */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

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

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--bg-light);
  color: var(--text);
  direction: rtl;
  line-height: 1.7;
  overflow-x: hidden;
}

/* === Scrollbar === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* === Utility === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-title {
  font-size: 2.2rem; font-weight: 800; text-align: center;
  margin-bottom: 12px; color: var(--primary-dark);
}
.section-subtitle {
  text-align: center; color: var(--text-muted); font-size: 1.1rem;
  margin-bottom: 48px; max-width: 700px; margin-inline: auto;
}
.accent-line {
  width: 60px; height: 4px; background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: 2px; margin: 0 auto 16px;
}
section { padding: 80px 0; position: relative; }

/* === NAV === */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: var(--bg-glass); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border); transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}
.nav-logo { display:flex; align-items:center; gap:12px; text-decoration:none; }
.nav-logo img {
  height: 50px;
}
.nav-logo span { font-size:1.2rem; font-weight:800; color:var(--primary-dark); }

.nav-links { display:flex; gap:28px; list-style:none; }
.nav-links a {
  color: var(--text); text-decoration:none; font-weight:600;
  font-size:1rem; transition: var(--transition); position:relative;
}
.nav-links a::after {
  content:''; position:absolute; bottom:-6px; right:0; width:0; height:3px;
  background: var(--primary); transition: var(--transition); border-radius: 2px;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width:100%; }

.nav-toggle { display:none; background:none; border:none; color:var(--text); font-size:1.5rem; cursor:pointer; }

/* === HERO === */
.hero {
  min-height: 80vh; display:flex; align-items:center;
  position:relative; overflow:hidden; padding-top:80px;
  background: linear-gradient(135deg, #eef2f3 0%, #ffffff 100%);
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; right: 0; width: 100%; height: 100%;
  background: url('assets/images/campus-hero.png') no-repeat center center/cover;
  opacity: 0.08;
  z-index: 0;
}
.hero .container { position:relative; z-index:1; text-align:center; }

.hero-badge {
  display:inline-flex; align-items:center; gap:8px;
  background: rgba(32, 93, 170, 0.1); border:1px solid rgba(32, 93, 170, 0.2);
  padding: 8px 24px; border-radius: 999px; font-size:0.95rem; font-weight: 600;
  color: var(--primary); margin-bottom:24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem); font-weight:900;
  line-height:1.2; margin-bottom:24px; color: var(--primary-dark);
}
.hero p {
  font-size:1.2rem; color:var(--text-muted); max-width:800px;
  margin: 0 auto 40px; line-height:1.8; font-weight: 500;
}

.hero-buttons { display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }
.btn-primary, .btn-outline {
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:14px 36px; border-radius:8px; font-family:'Tajawal';
  font-size:1.1rem; font-weight:700; text-decoration:none;
  transition: var(--transition); cursor:pointer; min-width: 180px;
}
.btn-primary {
  background: var(--primary);
  color:#fff; border:none; box-shadow: var(--shadow);
}
.btn-primary:hover { transform:translateY(-2px); box-shadow: var(--shadow-lg); background: var(--primary-light); }
.btn-outline {
  background: transparent; color:var(--primary);
  border:2px solid var(--primary);
}
.btn-outline:hover { background:var(--primary); color:#fff; }

/* === VISION & MISSION === */
.vision-mission-grid { display:grid; grid-template-columns: 1fr 1fr; gap:40px; }
.vm-card {
  background: var(--bg-card); border:1px solid var(--border);
  border-radius:var(--radius); padding:40px; box-shadow:var(--shadow-sm);
  transition: var(--transition);
}
.vm-card:hover { transform:translateY(-4px); box-shadow:var(--shadow); border-color:var(--primary-light); }
.vm-icon {
  width:72px; height:72px; border-radius:16px; margin-bottom:24px;
  display:flex; align-items:center; justify-content:center;
  font-size:2rem;
  background: rgba(32, 93, 170, 0.08); color: var(--primary);
}
.vm-card h3 { font-size:1.6rem; font-weight:800; margin-bottom:16px; color:var(--primary-dark); }
.vm-card p { font-size:1.1rem; color:var(--text-muted); line-height:1.9; }

/* === TABLES (FACULTY & TAs) === */
.table-container {
  overflow-x: auto;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 40px;
}
.styled-table {
  width: 100%;
  border-collapse: collapse;
}
.styled-table thead tr {
  background-color: var(--primary);
  color: #ffffff;
  text-align: right;
}
.styled-table th {
  padding: 18px 24px;
  font-weight: 700;
  font-size: 1.1rem;
}
.styled-table td {
  padding: 16px 24px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
}
.styled-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.styled-table tbody tr:nth-of-type(even) {
  background-color: #f8f9fa;
}
.styled-table tbody tr:last-of-type {
  border-bottom: none;
}
.styled-table tbody tr:hover {
  background-color: rgba(32, 93, 170, 0.04);
}

/* === PROGRAM SECTIONS (Features, Board, etc.) === */
.program-sections-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(300px,1fr)); gap:24px; }
.p-section-card {
  background: var(--bg-card); border:1px solid var(--border);
  border-radius:var(--radius); padding:32px; text-align:center;
  transition: var(--transition); box-shadow: var(--shadow-sm);
  display: block; text-decoration: none; color: inherit;
}
.p-section-card:hover { transform:translateY(-6px); border-color:var(--primary); box-shadow: var(--shadow); }
.p-section-icon {
  width:64px; height:64px; border-radius:50%; margin:0 auto 20px;
  display:flex; align-items:center; justify-content:center;
  font-size:1.8rem; background: var(--bg-light); border: 1px solid var(--border);
}
.p-section-card h3 { font-size:1.3rem; font-weight:800; margin-bottom:10px; color: var(--primary-dark); }
.p-section-card p { font-size:0.95rem; color:var(--text-muted); line-height:1.7; }
.p-section-card .arrow { margin-top: 16px; color: var(--primary); font-weight: bold; }

/* === CONTACT / FOOTER === */
.footer {
  background: var(--primary-dark);
  padding:48px 0 24px; text-align:center; color: rgba(255,255,255,0.8);
}
.footer p { font-size:0.95rem; margin-bottom: 16px; }
.footer-links { display:flex; justify-content:center; gap:24px; flex-wrap:wrap; }
.footer-links a { color:rgba(255,255,255,0.9); text-decoration:none; font-size:0.9rem; transition:var(--transition); font-weight: 500; }
.footer-links a:hover { color:var(--accent); }

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(30px); }
  to { opacity:1; transform:translateY(0); }
}
.animate-in { animation: fadeInUp 0.6s ease forwards; }

/* === RESPONSIVE === */
@media (max-width:768px) {
  .nav-links { display:none; position:absolute; top:80px; right:0; width:100%;
    background:var(--bg-card); flex-direction:column; padding:24px;
    gap:16px; border-bottom:1px solid var(--border); box-shadow: var(--shadow);
  }
  .nav-links.active { display:flex; }
  .nav-toggle { display:block; color: var(--primary-dark); }
  .vision-mission-grid { grid-template-columns:1fr; }
  .hero h1 { font-size:2rem; }
  section { padding:60px 0; }
  .section-title { font-size:1.8rem; }
  .strategies-grid { grid-template-columns:1fr; }
  .program-switcher { padding: 8px 16px; font-size: 0.9rem; }
  .switcher-links { gap: 12px; }
}

/* === PROGRAM SWITCHER === */
.program-switcher {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.9);
  padding: 8px 24px;
  font-size: 0.95rem;
}
.program-switcher .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.switcher-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.switcher-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  padding: 4px 8px;
  border-radius: 4px;
}
.switcher-links a:hover, .switcher-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* Navbar offset for switcher */
.navbar {
  top: 40px;
}
@media (max-width: 768px) {
  .navbar { top: auto; position: relative; }
  .nav-links { top: 100%; }
}

/* === STRATEGIES PAGE === */
.strategy-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 100px 0 60px;
  margin-top: 40px;
}
@media (max-width: 768px) { .strategy-hero { margin-top: 0; } }
.strategy-hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; }
.strategy-hero .section-subtitle { color: rgba(255,255,255,0.8); margin-bottom: 0; }

.strategy-intro {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text);
  margin-top: -30px;
  position: relative;
  z-index: 10;
  text-align: center;
}

.strategies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.strategy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.strategy-card:hover { box-shadow: var(--shadow); border-color: var(--primary-light); }
.s-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  background: rgba(32, 93, 170, 0.08);
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
}
.strategy-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; color: var(--primary-dark); }
.strategy-card p { font-size: 1rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }

.btn-read-more {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}
.btn-read-more:hover { color: var(--primary-dark); text-decoration: underline; }

.s-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  border-top: 1px dashed var(--border);
}

.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 48px; }

.btn-download-pdf {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--primary);
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.btn-download-pdf:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
