﻿* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: #eff3ff;
  color: #111827;
}

header {
  width: 100%;
  background-color: #0a2470;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page {
  max-width: 960px;
  margin: 32px auto;
  padding: 0 16px;
}

.site-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.3rem;
}

/* اسم الموقع في الهيدر: بدون خط تحت في جميع الصفحات */
.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-title a:hover,
.site-title a:focus,
.site-title a:active {
  text-decoration: none;
  opacity: 0.95; /* لمسة خفيفة عند الهوفر بدل الخط */
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.main-nav a {
  text-decoration: none;
  color: #e5e7eb;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.12);
}

.breadcrumb {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 16px 0;
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.breadcrumb li::after {
  content: "›";
  margin: 0 4px;
  color: #9ca3af;
}

.breadcrumb li:last-child::after {
  content: "";
}

.breadcrumb a {
  color: #0a2470;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  font-weight: 600;
  color: #111827;
}

.section-nav {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.section-nav-title {
  font-weight: 600;
  margin-bottom: 6px;
  color: #111827;
}

.section-nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.section-nav-list li {
  margin: 0;
}

.section-nav-list a {
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #dde5ff;
  color: #0a2470;
  background-color: #eff6ff;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.section-nav-list a:hover,
.section-nav-list a:focus {
  border-color: #0a2470;
  color: #0a2470;
  background-color: #d6e4ff;
}

.main-card,
.card,
.holidays-section,
.faq-section {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  padding: 20px;
  margin-top: 24px;
}

.today-next-section {
  display: grid;
  gap: 1.5rem;
}

h1 {
  font-size: 1.7rem;
  margin-bottom: 0.75rem;
}

.lead {
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.today-box {
  background-color: #e0ebff;
  border-left: 4px solid #0a2470;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 2rem;
}

.today-label {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: #0a2470;
}

.today-date {
  font-weight: 600;
  margin-top: 4px;
}

.today-status {
  color: #374151;
  margin-top: 4px;
}

.upcoming-section h2,
.next-holidays-home h2 {
  margin-top: 0;
}

.holiday-list {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.holiday-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #e5e7eb;
}

.holiday-list li .date {
  font-weight: 600;
}

.more-link {
  display: inline-block;
  background-color: #0a2470;
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 16px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.more-link:hover,
.more-link:focus {
  opacity: 0.9;
}

.holidays-section h2,
.faq-section h2 {
  font-size: 1.3rem;
  margin: 0 0 10px;
}

.holidays-section p,
.holidays-lead,
.faq-intro {
  margin-bottom: 16px;
  color: #4b5563;
  line-height: 1.6;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: 8px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
}

.holidays-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 0.95rem;
}

.holidays-table th,
.holidays-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.holidays-table td:first-child {
  white-space: nowrap;
}

.holidays-table thead th {
  background-color: #e0ebff;
  color: #0a2470;
  font-weight: 700;
}

.holidays-table tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

.faq-item {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}

.faq-item h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}

.faq-item p {
  margin: 0;
  color: #4b5563;
  line-height: 1.7;
}

.site-footer {
  text-align: center;
  color: #6b7280;
  font-size: 0.85rem;
  margin-top: 24px;
}

/* Cookie Banner styles */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 960px;
  background-color: #111827;
  color: #f9fafb;
  padding: 14px 16px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.5);
  font-size: 0.9rem;
  display: none; /* hidden by default, shown by JS */
  z-index: 1000;
}

.cookie-banner a {
  color: #93c5fd;
  text-decoration: underline;
}

.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.9rem;
}

.cookie-btn-primary {
  background-color: #10b981;
  color: #022c22;
  font-weight: 600;
}

.cookie-btn-secondary {
  background-color: transparent;
  color: #e5e7eb;
  border: 1px solid #4b5563;
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
