/* assets/css/style.css */

:root {
  --blue: #243E90;
  --blue-dark: #102B68;
  --green: #62A51B;
  --orange: #F28C00;
  --gold: #F2C300;
  --red: #E51B2B;
  --white: #ffffff;
  --light: #f6f8fb;
  --gray: #667085;
  --dark: #1f2937;

  --radius: 18px;
  --shadow: 0 12px 30px rgba(16, 43, 104, 0.10);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Cairo", sans-serif;
  background: var(--white);
  color: var(--dark);
  line-height: 1.7;
}

body.rtl {
  direction: rtl;
  font-family: "Cairo", "Inter", sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  width: 100%;
  display: block;
}

.container {
  width: min(1180px, 92%);
  margin: auto;
}

/* Top Bar */

.top-bar {
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
}

.top-bar-content {
  min-height: 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.top-info,
.top-social {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.top-social a {
  font-weight: 600;
  opacity: 0.9;
}

/* Header */

.main-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 18px rgba(0, 0, 0, 0.05);
}

.header-content {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo img {
  width: 135px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 700;
}

.main-nav a {
  color: var(--dark);
  position: relative;
  transition: 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blue);
}

.main-nav a.active::after,
.main-nav a:hover::after {
  content: "";
  height: 3px;
  background: var(--blue);
  border-radius: 20px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: none;
  background: var(--blue);
  color: white;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 22px;
  cursor: pointer;
}

/* Hero */

.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.95), rgba(255,255,255,0.78)),
    url("../images/hero.jpg") center/cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  background: rgba(98, 165, 27, 0.10);
  border-radius: 50%;
  top: -140px;
  right: -120px;
}

.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  background: rgba(242, 140, 0, 0.12);
  border-radius: 50%;
  bottom: -190px;
  left: -140px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-text {
  max-width: 820px;
  text-align: center;
  margin: auto;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  color: var(--blue);
  font-weight: 800;
  margin-bottom: 12px;
}

.hero h2 {
  color: var(--green);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  margin-bottom: 16px;
}

.hero p {
  color: var(--dark);
  font-size: 18px;
  max-width: 760px;
  margin: 0 auto 30px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 14px;
  font-weight: 800;
  color: white;
  box-shadow: var(--shadow);
  transition: 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-green {
  background: var(--green);
}

.btn-blue {
  background: var(--blue);
}

.btn-orange {
  background: var(--orange);
}

.btn-gold {
  background: var(--gold);
  color: var(--blue-dark);
}

/* Sections */

.section {
  padding: 82px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 42px;
}

.section-title span,
.section-label {
  color: var(--orange);
  font-weight: 800;
  display: inline-block;
  margin-bottom: 8px;
}

.section-title h2 {
  color: var(--blue);
  font-size: 34px;
  font-weight: 800;
}

/* About */

.about-section {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.about-text h2 {
  color: var(--blue);
  font-size: 34px;
  margin-bottom: 18px;
}

.about-text p {
  color: var(--gray);
  margin-bottom: 18px;
}

.read-more {
  color: var(--orange);
  font-weight: 800;
}

.about-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--green);
}

.about-card h3 {
  color: var(--blue);
  margin-bottom: 18px;
}

.about-card ul {
  list-style: none;
}

.about-card li {
  padding: 9px 0;
  border-bottom: 1px solid #e5e7eb;
}

.about-card li::before {
  content: "✓";
  color: var(--green);
  font-weight: 900;
  margin-inline-end: 8px;
}

/* Domains */

.domains-section {
  background: var(--light);
}

.domains-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.domain-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow);
  border-bottom: 5px solid var(--blue);
  transition: 0.3s;
}

.domain-card:hover {
  transform: translateY(-8px);
}

.domain-card .icon {
  font-size: 34px;
  margin-bottom: 12px;
}

.domain-card h3 {
  color: var(--blue);
  font-size: 17px;
  margin-bottom: 8px;
}

.domain-card p {
  color: var(--gray);
  font-size: 14px;
}

.domain-card.green {
  border-color: var(--green);
}

.domain-card.gold {
  border-color: var(--gold);
}

.domain-card.orange {
  border-color: var(--orange);
}

.domain-card.red {
  border-color: var(--red);
}

.domain-card.blue {
  border-color: var(--blue);
}

/* Projects */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.3s;
}

.project-card:hover {
  transform: translateY(-7px);
}

.project-card img {
  height: 210px;
  object-fit: cover;
  background: #e5e7eb;
}

.project-content {
  padding: 22px;
}

.project-content h3 {
  color: var(--blue);
  margin-bottom: 10px;
}

.project-content p {
  color: var(--gray);
  margin-bottom: 14px;
}

.project-content a {
  color: var(--orange);
  font-weight: 800;
}

/* Festival */

.festival-section {
  padding: 50px 0;
  background: var(--light);
}

.festival-box {
  background:
    linear-gradient(135deg, rgba(36,62,144,0.96), rgba(16,43,104,0.98)),
    url("../images/festival.jpg") center/cover no-repeat;
  color: white;
  border-radius: 26px;
  padding: 42px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow);
}

.festival-text span {
  color: var(--gold);
  font-weight: 800;
}

.festival-text h2 {
  font-size: 32px;
  margin: 10px 0 14px;
}

.festival-text p {
  opacity: 0.95;
  margin-bottom: 22px;
}

.festival-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.festival-items div {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  font-weight: 800;
}

/* Stats */

.stats-section {
  padding: 42px 0;
  background: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.stat-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-item strong {
  display: block;
  font-size: 42px;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item span {
  color: var(--blue);
  font-weight: 800;
}

/* Partners */

.partners-section {
  background: var(--light);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.partners-grid div {
  background: white;
  border-radius: 16px;
  padding: 26px 12px;
  text-align: center;
  color: var(--blue);
  font-weight: 900;
  box-shadow: var(--shadow);
}

/* Footer */

.main-footer {
  background: var(--blue-dark);
  color: white;
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr 1.1fr;
  gap: 32px;
}

.footer-brand img {
  width: 140px;
  background: white;
  padding: 8px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.main-footer h4 {
  color: var(--gold);
  margin-bottom: 16px;
}

.main-footer a,
.main-footer p {
  display: block;
  color: rgba(255,255,255,0.88);
  margin-bottom: 8px;
  font-size: 14px;
}

.newsletter {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.newsletter input {
  flex: 1;
  border: none;
  border-radius: 10px;
  padding: 12px;
}

.newsletter button {
  border: none;
  background: var(--orange);
  color: white;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  padding: 18px;
  margin-top: 40px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}

/* RTL Adjustments */

body.rtl .main-nav a.active::after,
body.rtl .main-nav a:hover::after {
  left: 0;
  right: 0;
}

body.rtl .hero {
  background:
    linear-gradient(270deg, rgba(255,255,255,0.95), rgba(255,255,255,0.78)),
    url("../images/hero.jpg") center/cover no-repeat;
}

/* Responsive */

@media (max-width: 1100px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow);
  }

  .main-nav.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .domains-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  .top-bar-content {
    justify-content: center;
    text-align: center;
  }

  .top-info,
  .top-social {
    justify-content: center;
  }

  .about-grid,
  .festival-box {
    grid-template-columns: 1fr;
  }

  .domains-grid,
  .projects-grid,
  .stats-grid,
  .partners-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: 620px;
  }
}

@media (max-width: 560px) {
  .header-content {
    min-height: 78px;
  }

  .logo img {
    width: 105px;
  }

  .domains-grid,
  .projects-grid,
  .stats-grid,
  .partners-grid,
  .footer-grid,
  .festival-items {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}