/*
Theme Name: KFU Landing Page
Author: جامعة الملك فيصل
Description: صفحة هبوط احترافية لبرنامج الدكتوراه المباشر
Version: 1.0
Text Domain: kfu-landing
*/

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

:root {
  --green-dark:  #003D28;
  --green:       #005C3B;
  --green-mid:   #007A4F;
  --green-light: #00A068;
  --gold:        #C8972B;
  --gold-light:  #E5B84A;
  --white:       #FFFFFF;
  --off:         #F5F2EC;
  --text:        #0D1F16;
  --text-mid:    #3A5244;
  --text-soft:   #7A9688;
  --border:      rgba(0,92,59,0.12);
  --radius:      16px;
  --shadow:      0 8px 40px rgba(0,60,38,0.13);
}

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

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ─── أنيميشن ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.25); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.fade-up  { animation: fadeUp  0.7s ease both; }
.scale-in { animation: scaleIn 0.6s ease both; }

/* ─── الصفحة الرئيسية ─── */
.landing-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Hero ─── */
.lp-hero {
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green) 45%, var(--green-mid) 100%);
  position: relative;
  overflow: hidden;
  padding: 64px 24px 80px;
  flex-shrink: 0;
}

.lp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(200,151,43,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(0,160,104,0.12) 0%, transparent 60%);
}

.lp-hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 72px;
  background: var(--off);
  clip-path: ellipse(55% 100% at 50% 100%);
}

/* النقاط الزخرفية */
.hero-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

/* الشعار */
.lp-logo {
  margin: 0 auto 32px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(200,151,43,0.5);
  box-shadow: 0 0 0 6px rgba(200,151,43,0.12), var(--shadow);
  animation: float 4s ease-in-out infinite;
}

.lp-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp-logo-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  color: var(--gold-light);
}

/* الشارة */
.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.90);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.lp-badge .dot {
  width: 7px; height: 7px;
  background: var(--gold-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* العنوان */
.lp-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
  animation: fadeUp 0.7s 0.2s ease both;
}

.lp-title .gold {
  color: var(--gold-light);
  display: block;
}

.lp-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.8;
  animation: fadeUp 0.7s 0.3s ease both;
}

/* إحصاءات Hero */
.hero-stats {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
  animation: fadeUp 0.7s 0.4s ease both;
}

.hstat {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 18px 28px;
  min-width: 120px;
  text-align: center;
  transition: background 0.3s;
}

.hstat:hover { background: rgba(255,255,255,0.16); }

.hstat-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 4px;
}

.hstat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.72);
  font-weight: 500;
}

/* ─── المحتوى الرئيسي ─── */
.lp-body {
  flex: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 24px;
  width: 100%;
}

/* ─── البطاقات ─── */
.lp-section-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 22px;
  background: linear-gradient(to bottom, var(--green), var(--gold));
  border-radius: 4px;
  flex-shrink: 0;
}

/* طريقة الدراسة */
.study-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}

.scard {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  border: 1.5px solid var(--border);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.scard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transform: scaleX(0);
  transition: transform 0.3s;
}

.scard:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.scard:hover::before { transform: scaleX(1); }

.scard-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.scard h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.scard p {
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* التخصصات */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}

.spec-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.3s;
}

.spec-item:hover {
  border-color: var(--green-mid);
  box-shadow: 0 4px 16px rgba(0,92,59,0.10);
  transform: translateX(-4px);
}

.spec-emoji {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.spec-item strong {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}

.spec-item span {
  font-size: 0.76rem;
  color: var(--text-soft);
}

/* شروط القبول */
.admit-list {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  border: 1.5px solid var(--border);
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admit-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admit-check {
  width: 28px; height: 28px;
  background: rgba(0,92,59,0.10);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 900;
  flex-shrink: 0;
}

.admit-item p {
  font-size: 0.9rem;
  color: var(--text-mid);
  font-weight: 600;
}

/* ─── زر CTA ─── */
.lp-cta-wrap {
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, var(--off) 70%, transparent);
  padding: 20px 24px 28px;
  z-index: 100;
}

.lp-cta {
  display: block;
  max-width: 860px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  background-size: 200% auto;
  color: var(--white);
  text-align: center;
  padding: 18px 32px;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 900;
  box-shadow: 0 8px 28px rgba(0,60,38,0.30);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.lp-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
  background-size: 200% auto;
  animation: shimmer 2.5s linear infinite;
}

.lp-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0,60,38,0.38);
  color: var(--white);
}

.lp-cta span { position: relative; z-index: 1; }

/* ─── فوتر بسيط ─── */
.lp-foot {
  text-align: center;
  padding: 20px 24px 40px;
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* ─── ريسبونسف ─── */
@media (max-width: 640px) {
  .study-cards { grid-template-columns: 1fr; }
  .spec-grid   { grid-template-columns: 1fr; }
  .hero-stats  { gap: 10px; }
  .hstat       { padding: 14px 18px; min-width: 100px; }
  .lp-logo     { width: 80px; height: 80px; }
}
