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

:root {
  /* Sky Blue Theme */
  --primary: #0ea5e9;
  /* Sky Blue 500 */
  --primary-dark: #0284c7;
  /* Sky Blue 600 */
  --primary-light: #e0f2fe;
  /* Sky Blue 100 */
  --accent: #f59e0b;
  /* Amber/Gold for contrast */

  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #f8fafc;

  --bg-main: #f8fafc;
  --bg-card: #ffffff;

  --border-radius: 12px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Cairo', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  direction: rtl;
  /* Arabic Right-to-Left */
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  color: var(--primary-dark);
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header.site-header {
  background-color: var(--bg-card);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-bar {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 5px 0;
  font-size: 0.85rem;
}

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

.main-header {
  padding: 7px 0;
}

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

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

.logo-area img {
  height: 85px;
  max-width: 140px;
  object-fit: contain;
}

.logo-text h1 {
  font-size: 1.6rem;
  margin-bottom: 0px;
  color: var(--primary-dark);
}

.logo-text p {
  font-size: 0.95rem;
  margin-top: -5px;
  color: var(--text-muted);
}

/* Navigation */
nav.main-nav ul {
  display: flex;
  gap: 20px;
}

nav.main-nav ul li a {
  color: var(--text-main);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 10px 5px;
}

nav.main-nav ul li a:hover {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-dark);
  cursor: pointer;
}

/* Page Banner */
.page-banner {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 60px 0;
  text-align: center;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
  z-index: 1;
}

.page-banner .container {
  position: relative;
  z-index: 2;
}

.page-banner h1 {
  color: var(--text-light);
  font-size: 2.5rem;
  margin-bottom: 10px;
}

/* Cards Layout */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.card-img {
  height: 200px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-img img {
  transform: scale(1.05);
}

.card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.card-text {
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--primary-dark);
  color: white;
}

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

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

/* Sections */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.section-title p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  background-color: var(--text-main);
  color: var(--text-light);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-widget h4 {
  color: white;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-widget h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 3px;
  background-color: var(--accent);
}

.footer-widget ul li {
  margin-bottom: 10px;
}

.footer-widget ul li a {
  color: #cbd5e1;
}

.footer-widget ul li a:hover {
  color: var(--primary-light);
  padding-right: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Breadcrumbs */
.breadcrumbs {
  background-color: var(--primary-light);
  padding: 15px 0;
  margin-bottom: 40px;
}

.breadcrumbs ul {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
}

.breadcrumbs li::after {
  content: '/';
  margin-right: 10px;
  color: var(--text-muted);
}

.breadcrumbs li:last-child::after {
  content: '';
}

@media (max-width: 768px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    box-shadow: var(--shadow);
    padding: 20px;
  }

  nav.main-nav.active {
    display: block;
  }

  nav.main-nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .mobile-menu-btn {
    display: block;
  }
}

/* SUBPAGE BANNER */
.subpage-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #0077b6 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.subpage-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="%23ffffff" fill-opacity="0.05" fill-rule="evenodd"/%3E%3C/svg%3E');
  opacity: 0.8;
  z-index: 0;
}

.subpage-banner .container {
  position: relative;
  z-index: 1;
}

.subpage-banner h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.subpage-banner p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.breadcrumbs-wrapper {
  background-color: var(--light-bg);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01);
}

.breadcrumbs-clean ul {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px 15px;
  margin: 0;
}

.breadcrumbs-clean ul li {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.breadcrumbs-clean ul li:not(:last-child)::after {
  content: '/';
  margin-right: 10px;
  color: var(--text-light);
}

.breadcrumbs-clean ul li a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
}

.subpage-banner h1 {
  color: white !important;
}

.subpage-banner p {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Council Members CSS */
.members-container {
  padding: 40px 0;
}
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}
.member-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f0f4f8;
  display: flex; flex-direction: column;
  height: 100%;
}
.member-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  border-color: var(--primary-light);
}
.member-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  padding: 5px;
  border: 3px solid var(--primary-light);
  background: white;
  overflow: hidden;
}
.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.member-info h3 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
  font-weight: 700;
}
.member-role-container {
  margin-bottom: 15px;
  flex-grow: 1;
}
.member-role {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 5px;
  transition: all 0.3s ease;
}
.member-party {
  display: inline-block;
  padding: 5px 15px;
  background-color: #f1f5f9;
  color: #475569;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: auto;
}
.member-party.pam {
  background-color: #ecfdf5;
  color: #059669;
}
.member-party.uc {
  background-color: #fff7ed;
  color: #d97706;
}
.section-header {
  margin-bottom: 35px;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.section-header h2 {
  margin: 0;
  color: var(--primary-dark);
}
.badge {
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
}