/*
Theme Name: Hariri High School II
Theme URI: https://www.hhs2.edu.lb/
Author: HHS2 Web Team
Description: Custom WordPress theme for Hariri High School II in Beirut, Lebanon.
Version: 3.0.0
Text Domain: hhs2
*/

:root {
  --hhs-navy: #003B86;
  --hhs-green: #0F8D2A;
  --hhs-white: #FFFFFF;
  --hhs-soft: #F6F8FA;
  --hhs-border: #E8EEF5;
  --hhs-text: #2C3440;
  --hhs-muted: #667085;
  --shadow-sm: 0 2px 5px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 15px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--hhs-text);
  background-color: var(--hhs-soft);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Libre Baskerville', Georgia, serif;
  color: var(--hhs-navy);
  font-weight: 700;
  line-height: 1.3;
}

[dir="rtl"] body {
  font-family: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
  font-family: 'Noto Naskh Arabic', serif;
}

.container {
  width: 92%;
  max-width: 1240px;
  margin: 0 auto;
}

/* Header & Utility Bar */
.utility-bar {
  background: var(--hhs-navy);
  color: var(--hhs-white);
  padding: 8px 0;
  font-size: 0.85rem;
}

.utility-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.utility-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.utility-link {
  color: #E8EEF5;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.utility-link:hover {
  color: var(--hhs-green);
}

.header {
  background: var(--hhs-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-text h1 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--hhs-navy);
  font-weight: 800;
}

.logo-text p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--hhs-muted);
}

.nav-list {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--hhs-text);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-item:hover > .nav-link {
  color: var(--hhs-green);
  background: var(--hhs-border);
}

/* Submenu Dropdown */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--hhs-white);
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  border-radius: 10px;
  padding: 10px 0;
  list-style: none;
  margin: 0;
  border: 1px solid var(--hhs-border);
  z-index: 1100;
}

.nav-item:hover .submenu {
  display: block;
}

.submenu-link {
  display: block;
  padding: 8px 20px;
  color: var(--hhs-text);
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.submenu-link:hover {
  background: var(--hhs-border);
  color: var(--hhs-green);
  padding-left: 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-apply {
  background-color: var(--hhs-green);
  color: var(--hhs-white);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.2s ease;
}

.btn-apply:hover {
  background-color: #0B6B1F;
}

.btn-primary {
  background-color: var(--hhs-green);
  color: var(--hhs-white);
  border: none;
}

.btn-primary:hover {
  background-color: #0B6B1F;
}

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

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

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }

.card {
  background: var(--hhs-white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--hhs-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Footer */
.footer {
  background: var(--hhs-navy);
  color: #E8EEF5;
  padding: 60px 0 30px 0;
}

.footer h3, .footer h4 {
  color: var(--hhs-white);
}

.footer-link {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--hhs-green);
}
