/*
Theme Name: IMPA Egypt
Theme URI: https://impa.gov.eg
Author: IMPA Development Team
Author URI: https://impa.gov.eg
Description: القالب الرسمي للهيئة العامة لتنفيذ المشروعات الصناعية والتعدينية - وزارة الصناعة
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: impa
Tags: rtl-language-support, custom-header, custom-menu, featured-images, full-width-template
*/

/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
  --primary: #005DAC;
  --primary-dark: #003366;
  --primary-light: #1084e0;
  --secondary: #EC2228;
  --accent: #3498db;
  --accent-purple: #667eea;
  --accent-purple-dark: #764ba2;
  --success: #27ae60;
  --warning: #f39c12;
  --text-dark: #2c3e50;
  --text-muted: #555555;
  --text-light: #7f8c8d;
  --bg-body: #f8f9fa;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 15px;
  --radius-lg: 25px;
  --radius-full: 9999px;
  --font-family: 'Segoe UI', Tahoma, Arial, 'Cairo', sans-serif;
}

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

html {
  direction: rtl;
  text-align: right;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1 0 auto;
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header-wrap {
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  background: #ffffff;
}

.main-header {
  background: #ffffff;
  color: #2c3e50;
  padding: 10px 30px;
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: #ffffff
}

.logo-area {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 100px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.3s ease;
}

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

.header-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  flex: 1;
}

.header-report-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.ht-main {
  font-size: 30px;
  font-weight: 800;
  color: #005DAC;
  line-height: 1.2;
  letter-spacing: 0.3px;
  animation: glow-pulse 1.6s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  0% {
    text-shadow: 0 2px 4px rgba(0, 93, 172, 0.35),
                  0 0 20px rgba(41, 128, 185, 0.45),
                  0 0 40px rgba(41, 128, 185, 0.25);
  }
  50% {
    text-shadow: 0 2px 4px rgba(0, 93, 172, 0.5),
                  0 0 30px rgba(41, 128, 185, 0.75),
                  0 0 60px rgba(41, 128, 185, 0.5);
  }
  100% {
    text-shadow: 0 2px 4px rgba(0, 93, 172, 0.35),
                  0 0 20px rgba(41, 128, 185, 0.45),
                  0 0 40px rgba(41, 128, 185, 0.25);
  }
}

.ht-sub {
  font-size: 16px;
  font-weight: 600;
  color: #2980b9;
}

.header-nav-container {
  max-width: 1400px;
  margin: 10px auto 0;
  display: flex;
  justify-content: center;
  position: relative;
}

.header-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding-bottom: 6px;
  list-style: none;
}

.header-links .hl,
.header-links li a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid #dce1e6;
  background: #f3f6f9;
  color: #2c3e50;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.header-links .hl:hover,
.header-links li a:hover {
  background: #005DAC;
  border-color: #005DAC;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 93, 172, 0.35);
  transform: translateY(-2px);
}

.header-links .hl.active,
.header-links li.current-menu-item a,
.header-links li.current_page_item a {
  background: linear-gradient(180deg, #1084e0 0%, #005DAC 100%);
  border-color: #005DAC;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 93, 172, 0.4);
}

.header-strip {
  height: 6px;
  flex-shrink: 0;
  background: linear-gradient(90deg,
    #005DAC 0%, #1a6fb5 20%, #EC2228 40%, #e67e22 55%,
    #EC2228 70%, #1a6fb5 90%, #005DAC 100%);
  background-size: 200% 100%;
  animation: strip-move 6s linear infinite;
}

@keyframes strip-move {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 26px;
  color: #005DAC;
  padding: 8px;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  background: linear-gradient(135deg, #0054a6 0%, #003366 100%);
  color: white;
  padding: 70px 20px;
  text-align: center;
  border-radius: var(--radius-md);
  margin: 25px auto;
  max-width: 1240px;
  box-shadow: 0 10px 35px rgba(0, 84, 166, 0.3);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 60%);
  pointer-events: none;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.35);
}

.hero-tag {
  font-size: 1.4rem;
  font-weight: 600;
  color: #64b5f6;
  margin-bottom: 15px;
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 850px;
  margin: 0 auto;
  line-height: 1.7;
  opacity: 0.95;
}

.hero-desc {
  font-size: 1.05rem;
  max-width: 850px;
  margin: 15px auto 0;
  line-height: 1.7;
  opacity: 0.85;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-title {
  text-align: center;
  font-size: 2.3rem;
  color: var(--text-dark);
  margin-bottom: 35px;
  font-weight: 700;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 70px;
  height: 4px;
  background: var(--primary);
  margin: 12px auto 0;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Mission & Vision
   ========================================================================== */
.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.mv-card {
  background: var(--bg-card);
  padding: 35px 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--primary);
}

.mv-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.mv-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.mv-title {
  color: var(--text-dark);
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.mv-text {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.05rem;
  text-align: justify;
}

/* ==========================================================================
   Core Services
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.service-card {
  background: var(--bg-card);
  padding: 30px 25px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

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

.service-icon {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.service-title {
  color: var(--text-dark);
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Statistics
   ========================================================================== */
.stats-section {
  background: white;
  padding: 50px 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin: 40px auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.stat-item {
  text-align: center;
  padding: 15px;
}

.stat-number {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.1;
}

.stat-item:nth-child(1) .stat-number { color: #3498db; }
.stat-item:nth-child(2) .stat-number { color: #27ae60; }
.stat-item:nth-child(3) .stat-number { color: #e74c3c; }
.stat-item:nth-child(4) .stat-number { color: #f39c12; }

.stat-label {
  color: var(--text-muted);
  font-size: 1.15rem;
  font-weight: 600;
}

/* ==========================================================================
   Search & Filter Bar
   ========================================================================== */
.search-filter-section {
  padding: 20px 0;
  margin-bottom: 30px;
}

.search-form-wrap {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.search-input {
  flex: 1;
  min-width: 280px;
  padding: 14px 24px;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  text-align: right;
  direction: rtl;
  background: white;
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(52, 152, 219, 0.2);
}

.search-btn {
  background: linear-gradient(45deg, #3498db, #2980b9);
  color: white;
  padding: 14px 30px;
  border: none;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.45);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid #cbd5e1;
  background: white;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 93, 172, 0.3);
}

/* ==========================================================================
   Projects Grid & Cards
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.15);
}

.project-photo-wrap {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background-color: #f1f5f9;
  position: relative;
}

.project-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

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

.project-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.project-id-badge {
  background: #e2e8f0;
  color: var(--text-dark);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
}

.project-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-status {
  background: #e8f5e8;
  color: #27ae60;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-status.planned {
  background: #fef3c7;
  color: #d97706;
}

.badge-status.completed {
  background: #dbeafe;
  color: #1d4ed8;
}

.badge-type {
  background: #e8f4fd;
  color: #3498db;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.project-title {
  color: var(--text-dark);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 18px;
}

/* Progress bar inside project card */
.project-progress-wrap {
  margin-bottom: 18px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.progress-track {
  width: 100%;
  height: 9px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #27ae60, #2ecc71);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

.btn-view-details {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  margin-top: auto;
}

.btn-view-details:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* ==========================================================================
   News Carousel & Grid
   ========================================================================== */
.news-carousel-container {
  position: relative;
  margin-bottom: 40px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 25px;
}

.news-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  min-height: 490px;
  transition: all 0.4s ease;
  position: relative;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.news-photo-wrap {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background-color: #f1f5f9;
  position: relative;
}

.news-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

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

.news-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.news-date {
  color: var(--text-light);
  background: #f1f5f9;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.news-category {
  background: #3498db;
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.news-title {
  font-size: 1.25rem;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 15px;
  flex: 1;
}

.news-summary {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.carousel-nav-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-nav-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 10px 28px rgba(102, 126, 234, 0.6);
}

.carousel-nav-prev { left: -15px; }
.carousel-nav-next { right: -15px; }

.carousel-status-pill {
  text-align: center;
  margin-top: 20px;
}

.carousel-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

/* ==========================================================================
   Leadership Team
   ========================================================================== */
.team-container {
  background: #f2f6fa;
  border-radius: var(--radius-md);
  padding: 35px 25px;
  margin-bottom: 40px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.team-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 25px 20px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all 0.3s ease;
}

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

.team-photo-wrap {
  width: 110px;
  height: 110px;
  margin: 0 auto 15px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #3498db;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.team-photo-placeholder {
  font-size: 3rem;
  color: #bdc3c7;
}

.team-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.team-title {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 12px;
  min-height: 40px;
}

.team-role-badge {
  background: #3498db;
  color: white;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
}

/* ==========================================================================
   Call To Action
   ========================================================================== */
.cta-banner {
  text-align: center;
  padding: 50px 25px;
  background: linear-gradient(135deg, #0054a6 0%, #003366 100%);
  color: white;
  border-radius: var(--radius-md);
  margin: 40px auto;
  max-width: 1240px;
  box-shadow: var(--shadow-md);
}

.cta-title {
  font-size: 2.2rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.cta-text {
  font-size: 1.15rem;
  margin-bottom: 30px;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 16px 36px;
  border-radius: var(--radius-full);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
}

.cta-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
  color: white;
}

/* ==========================================================================
   Modal Dialogs
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
  direction: rtl;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: white;
  border-radius: var(--radius-md);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(231, 76, 60, 0.4);
}

.modal-image-wrap {
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: #f8f9fa;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}

.modal-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 30px;
}

.modal-title {
  color: var(--text-dark);
  font-size: 1.8rem;
  margin-bottom: 15px;
  line-height: 1.35;
}

.modal-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 25px;
}

/* ==========================================================================
   Achievements Page (Accordion)
   ========================================================================== */
.achievements-header {
  background: linear-gradient(135deg, #0054a6 0%, #003366 100%);
  color: white;
  padding: 45px 25px;
  text-align: center;
  margin-bottom: 35px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.accordion-group {
  max-width: 900px;
  margin: 0 auto 30px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 25px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 2px solid #dee2e6;
  cursor: pointer;
  user-select: none;
}

.accordion-title {
  color: var(--text-dark);
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
}

.accordion-icon {
  font-size: 1.3rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  background: white;
}

.accordion-content.active {
  display: block;
}

.accordion-item {
  padding: 18px 25px;
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.2s ease;
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-item.highlight {
  background: #fff8e1;
}

.accordion-item-title {
  color: var(--text-dark);
  margin-bottom: 8px;
  font-size: 1.15rem;
  font-weight: 600;
}

.accordion-item-desc {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-hero {
  background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
  margin-bottom: 40px;
  border-radius: var(--radius-md);
}

.contact-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
  border-right: 5px solid var(--primary);
}

.contact-card.danger { border-right-color: #e74c3c; }
.contact-card.warning { border-right-color: #f39c12; }
.contact-card.success { border-right-color: #27ae60; }
.contact-card.purple { border-right-color: #9b59b6; }

.contact-card-title {
  color: var(--text-dark);
  margin-bottom: 20px;
  font-size: 1.6rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.contact-info-box {
  padding: 20px;
  background: #f8f9fa;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
}

.contact-info-label {
  color: #e74c3c;
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 700;
}

.contact-info-val {
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.6;
}

/* ==========================================================================
   Newsletter Subscription Box
   ========================================================================== */
.newsletter-box {
  background: linear-gradient(135deg, #005DAC 0%, #003366 100%);
  color: white;
  padding: 40px 25px;
  border-radius: var(--radius-md);
  text-align: center;
  margin-bottom: 45px;
  box-shadow: var(--shadow-md);
}

.newsletter-title {
  font-size: 1.8rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.newsletter-desc {
  font-size: 1.05rem;
  margin-bottom: 25px;
  opacity: 0.9;
}

.newsletter-form {
  max-width: 550px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter-input {
  flex: 1;
  min-width: 250px;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  border: none;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  text-align: right;
  direction: rtl;
}

.newsletter-btn {
  background: #f39c12;
  color: white;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-btn:hover {
  background: #e67e22;
  transform: translateY(-2px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: linear-gradient(135deg, #1a252f 0%, #2c3e50 50%, #34495e 100%);
  color: white;
  padding: 60px 0 25px;
  margin-top: auto;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

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

.footer-col-title {
  font-size: 1.4rem;
  color: #3498db;
  font-weight: 700;
  margin-bottom: 20px;
  border-bottom: 2px solid #3498db;
  padding-bottom: 8px;
  display: inline-block;
}

.footer-desc {
  color: #ecf0f1;
  line-height: 1.8;
  font-size: 0.95rem;
  text-align: justify;
}

.footer-links-list {
  list-style: none;
  padding: 0;
}

.footer-links-list li {
  margin-bottom: 12px;
}

.footer-links-list a {
  color: #ecf0f1;
  text-decoration: none;
  display: block;
  padding: 6px 0;
  border-right: 3px solid transparent;
  padding-right: 12px;
  transition: all 0.3s ease;
}

.footer-links-list a:hover {
  border-right-color: #3498db;
  color: #3498db;
  transform: translateX(-5px);
}

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

/* ==========================================================================
   Single Post & Page Content Styles
   ========================================================================== */
.single-article-wrap {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 40px 30px;
  margin: 30px auto;
  max-width: 900px;
}

.single-featured-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 25px;
  max-height: 420px;
  width: 100%;
}

.single-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #34495e;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content h2, 
.article-content h3 {
  color: var(--text-dark);
  margin: 30px 0 15px;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 992px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .ht-main {
    font-size: 22px;
  }

  .carousel-nav-btn {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  
  .carousel-nav-prev { left: 0; }
  .carousel-nav-next { right: 0; }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .mobile-menu-toggle {
    display: block;
    margin: 5px auto;
  }

  .header-links {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
  }

  .header-links.active {
    display: flex;
  }

  .header-links .hl,
  .header-links li a {
    width: 100%;
  }

  .modal-body {
    padding: 20px;
  }
}
