/*--------------------------------------------------------------
# Front / Welcome page - Design system and overrides
# Loaded after style.css in layouts/front.blade.php
--------------------------------------------------------------*/

:root {
  --front-primary: #03ab49;
  --front-primary-dark: #028a3a;
  --front-text: #1a1a1a;
  --front-text-secondary: #5c5c5c;
  --front-border: #e5e7eb;
  --front-bg-alt: #f8faf9;
  --front-card-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --front-card-shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.1);
  --front-radius: 12px;
}

/* Typography - lighter weight for readability on front */
body {
  font-weight: 600;
  color: var(--front-text);
  font-size: 16px;
}

#main h2,
.section-title h2 {
  font-weight: 700;
  font-size: clamp(26px, 4vw, 32px);
}

#main h3,
#main h4 {
  font-weight: 700;
}

/* Links - primary green, hover darker green (not red) */
a {
  color: var(--front-primary);
}

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

/* Buttons - primary and hover */
.btn-success,
.about-btn,
.get-started-btn,
.btn-cta-header,
.btn-reservation {
  background-color: var(--front-primary) !important;
  border-color: var(--front-primary) !important;
  color: #fff !important;
  font-weight: 600;
}

.btn-success:hover,
.about-btn:hover,
.get-started-btn:hover,
.btn-cta-header:hover,
.btn-reservation:hover {
  background-color: var(--front-primary-dark) !important;
  border-color: var(--front-primary-dark) !important;
  color: #fff !important;
}

.btn-outline-success {
  color: var(--front-primary) !important;
  border-color: var(--front-primary) !important;
}

.btn-outline-success:hover {
  background-color: var(--front-primary) !important;
  color: #fff !important;
  border-color: var(--front-primary) !important;
}

/* Skip link - visible on focus only */
.skip-link {
  position: absolute;
  top: -100px;
  right: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--front-primary);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--front-primary-dark);
  outline-offset: 2px;
}

/* --------------------------------------------------------------
   Header - modern (clean, education / center management)
   -------------------------------------------------------------- */
.header-modern {
  min-height: 68px;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--front-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header-modern .container {
  gap: 1rem;
}

.header-modern .logo img {
  max-height: 44px;
  width: auto;
  display: block;
}

.header-modern .navbar ul {
  gap: 0.25rem;
}

.header-modern .nav-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  color: var(--front-text);
  border-radius: 6px;
}

.header-modern .nav-link:hover,
.header-modern .nav-link.active {
  color: var(--front-primary);
  background: rgba(3, 171, 73, 0.08);
}

.header-modern .btn-cta-header {
  border-radius: 8px;
  padding: 0.5rem 1.25rem;
  font-size: 0.95rem;
}

#header.header-scrolled.header-modern {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------------------
   لوحة تحكم الطالب - شريط تنقل حديث (student-dashboard-nav)
   -------------------------------------------------------------- */
.student-dashboard-nav {
  background: linear-gradient(135deg, rgba(3, 171, 73, 0.08) 0%, rgba(3, 171, 73, 0.04) 100%);
  border-bottom: 1px solid var(--front-border);
  padding: 0.75rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.student-dashboard-nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.student-dashboard-nav-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--front-text);
}

.student-dashboard-nav-title i {
  color: var(--front-primary);
  font-size: 1.25rem;
}

.student-dashboard-nav-user {
  color: var(--front-text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
}

.student-dashboard-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.student-dashboard-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--front-text);
  background: #fff;
  border: 1px solid var(--front-border);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.student-dashboard-link i {
  font-size: 1.1rem;
  color: var(--front-primary);
  opacity: 0.9;
}

.student-dashboard-link:hover {
  color: var(--front-primary);
  background: rgba(3, 171, 73, 0.06);
  border-color: rgba(3, 171, 73, 0.3);
}

.student-dashboard-link.active {
  background: var(--front-primary);
  border-color: var(--front-primary);
  color: #fff;
}

.student-dashboard-link.active i {
  color: #fff;
  opacity: 1;
}

.student-dashboard-link:focus-visible {
  outline: 2px solid var(--front-primary);
  outline-offset: 2px;
}

@media (max-width: 991px) {
  .student-dashboard-nav-inner {
    justify-content: flex-start;
  }
  .student-dashboard-nav-links {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .student-dashboard-nav-links::-webkit-scrollbar {
    height: 4px;
  }
  .student-dashboard-nav-links::-webkit-scrollbar-thumb {
    background: var(--front-border);
    border-radius: 4px;
  }
  .student-dashboard-link {
    flex-shrink: 0;
    padding: 0.45rem 0.85rem;
    font-size: 0.9rem;
  }
  .student-dashboard-link span {
    display: inline;
  }
}

@media (max-width: 576px) {
  .student-dashboard-nav-title {
    font-size: 1rem;
  }
  .student-dashboard-nav-title .student-dashboard-nav-user {
    display: none !important;
  }
}

/* Focus visible for keyboard users */
a:focus-visible,
button:focus-visible,
.nav-link:focus-visible,
.btn:focus-visible,
.tabs .nav-link:focus-visible,
#portfolio-flters li:focus-visible {
  outline: 2px solid var(--front-primary);
  outline-offset: 2px;
}

#main:focus {
  outline: none;
}

/* --------------------------------------------------------------
   Hero - modern full-width (education / center management)
   -------------------------------------------------------------- */
.hero-modern {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  overflow: hidden;
  background: none;
}

.hero-modern .hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9f4 50%, #e8f5ee 100%);
  z-index: 0;
}

.hero-modern .hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(3, 171, 73, 0.06) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(3, 171, 73, 0.04) 0%, transparent 45%);
  pointer-events: none;
}

.hero-modern .hero-inner {
  position: relative;
  z-index: 1;
}

.hero-modern .hero-content {
  max-width: 640px;
  margin: 0 auto;
}

.hero-modern .hero-logo {
  max-height: 120px;
  width: auto;
  margin-bottom: 1.5rem;
  display: block;
}

.hero-modern .hero-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--front-primary);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.hero-modern .hero-divider {
  width: 60px;
  height: 3px;
  background: var(--front-primary);
  margin: 0 auto 1.25rem;
  border-radius: 2px;
  opacity: 0.9;
}

.hero-modern .hero-tagline {
  font-size: 1.1rem;
  color: var(--front-text-secondary);
  margin: 0 0 1.75rem;
  line-height: 1.5;
  font-weight: 500;
}

.hero-modern .hero-cta {
  margin-top: 0.5rem;
}

.hero-modern .hero-btn {
  border-radius: var(--front-radius);
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
}

@media (max-width: 991px) {
  .hero-modern {
    min-height: 0;
    padding: 3rem 0;
  }
  .hero-modern .hero-logo {
    max-height: 64px;
  }
}

@media (max-width: 576px) {
  .hero-modern {
    padding: 2rem 0;
  }
  .hero-modern .hero-title {
    font-size: 1.5rem;
  }
  .hero-modern .hero-tagline {
    font-size: 1rem;
  }
}

/* Counts section - neutral background, cards stand out */
.counts {
  background: var(--front-bg-alt) !important;
  padding-top: 80px;
  padding-bottom: 80px;
}

.counts .count-box {
  background: #fff;
  box-shadow: var(--front-card-shadow);
  border-radius: var(--front-radius);
  border: 1px solid var(--front-border);
}

.counts .count-box i {
  background: #fff !important;
  color: var(--front-primary) !important;
  border: 2px solid var(--front-border);
}

.counts .count-box span {
  color: var(--front-primary) !important;
  font-weight: 700;
}

.counts .count-box p {
  color: var(--front-text-secondary);
}

/* --------------------------------------------------------------
   الإحصائيات - تخطيط حديث (counts-modern)
   -------------------------------------------------------------- */
.counts-modern {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.counts-modern-grid {
  margin-top: 0;
}

.counts-modern-card {
  background: #fff;
  border-radius: var(--front-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  border: 1px solid var(--front-border);
  box-shadow: var(--front-card-shadow);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
  position: relative;
}

.counts-modern-card:hover {
  box-shadow: var(--front-card-shadow-hover);
  transform: translateY(-2px);
}

.counts-modern-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--front-border);
  color: var(--front-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.counts-modern-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--front-primary);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.counts-modern-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--front-text);
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 991px) {
  .counts-modern {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .counts-modern-card {
    padding: 1.5rem 1.25rem;
  }
  .counts-modern-number {
    font-size: 2rem;
  }
}

/* Section backgrounds - alternate white / light */
#main .tabs {
  background: #fff;
}

/* --------------------------------------------------------------
   من نحن - تخطيط حديث (tabs-modern)
   -------------------------------------------------------------- */
.tabs-modern .section-intro {
  color: var(--front-text-secondary);
  font-size: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.tabs-modern-nav-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.tabs-modern-nav {
  border: 0;
  padding: 0;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tabs-modern-nav .nav-item {
  flex: 0 0 auto;
}

.tabs-modern-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--front-radius);
  border: 1px solid var(--front-border);
  background: #fff;
  color: var(--front-text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.tabs-modern-nav .nav-link i {
  font-size: 1.35rem;
  padding: 0;
  margin: 0;
}

.tabs-modern-nav .nav-link:hover {
  border-color: var(--front-primary);
  color: var(--front-primary);
  background: rgba(3, 171, 73, 0.06);
}

.tabs-modern-nav .nav-link.active {
  background: var(--front-primary) !important;
  border-color: var(--front-primary) !important;
  color: #fff !important;
}

.tabs-modern-label-mobile {
  display: none;
}

@media (max-width: 991px) {
  .tabs-modern-label {
    display: none;
  }
  .tabs-modern-label-mobile {
    display: inline;
  }
  .tabs-modern-nav .nav-link {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

.tabs-modern-content {
  margin-top: 0;
}

.tabs-modern-pane {
  background: var(--front-bg-alt);
  border-radius: var(--front-radius);
  padding: 2rem;
  border: 1px solid var(--front-border);
}

.tabs-modern-text {
  text-align: right;
}

.tabs-modern-title,
.tabs-modern .tab-pane h4 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--front-text);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.tabs-modern .tab-pane h3.tabs-modern-title {
  font-size: 1.35rem;
}

.tabs-modern-body p,
.tabs-modern .tab-pane p {
  color: var(--front-text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.tabs-modern-body p:last-child,
.tabs-modern .tab-pane p:last-child {
  margin-bottom: 0;
}

.tabs-modern-img-wrap {
  border-radius: var(--front-radius);
  overflow: hidden;
  box-shadow: var(--front-card-shadow);
  background: #fff;
}

.tabs-modern-img {
  max-height: 320px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 991px) {
  .tabs-modern-pane {
    padding: 1.5rem;
  }
  .tabs-modern .tab-pane .col-lg-6 {
    text-align: center;
  }
  .tabs-modern-text {
    text-align: center;
  }
  .tabs-modern-img {
    max-height: 240px;
  }
}

/* --------------------------------------------------------------
   خدماتنا - تخطيط حديث (services-modern)
   -------------------------------------------------------------- */
.services-modern .section-intro {
  color: var(--front-text-secondary);
  font-size: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.services-modern-intro {
  margin-bottom: 2.5rem;
}

.services-modern-intro-inner {
  background: #fff;
  border-radius: var(--front-radius);
  padding: 2rem;
  border: 1px solid var(--front-border);
  box-shadow: var(--front-card-shadow);
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.services-modern-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--front-primary);
  margin-bottom: 1rem;
}

.services-modern-desc {
  color: var(--front-text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.services-modern-cta {
  border-radius: var(--front-radius);
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
}

.services-modern-grid {
  margin-top: 0;
}

.services-modern-card {
  background: #fff;
  border-radius: var(--front-radius);
  padding: 1.75rem;
  height: 100%;
  border: 1px solid var(--front-border);
  box-shadow: var(--front-card-shadow);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.services-modern-card:hover {
  box-shadow: var(--front-card-shadow-hover);
  border-color: rgba(3, 171, 73, 0.3);
}

.services-modern-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(3, 171, 73, 0.1);
  color: var(--front-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.services-modern-card-icon img {
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
}

.services-modern-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--front-text);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.services-modern-card-desc {
  font-size: 0.95rem;
  color: var(--front-text-secondary);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 991px) {
  .services-modern-intro-inner {
    padding: 1.5rem;
  }
  .services-modern-card {
    padding: 1.25rem;
  }
}

/* --------------------------------------------------------------
   المعلمين - تخطيط حديث (team-modern)
   -------------------------------------------------------------- */
.team-modern .section-intro {
  color: var(--front-text-secondary);
  font-size: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.team-modern-slider-wrap {
  margin-top: 0;
  padding-bottom: 2.5rem;
}

.team-modern-slider {
  overflow: hidden;
}

.team-modern-slider .swiper-wrapper {
  align-items: stretch;
}

.team-modern-slider .swiper-slide {
  height: auto;
  margin-bottom: 0;
}

.team-modern-card {
  background: #fff;
  border-radius: var(--front-radius);
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--front-border);
  box-shadow: var(--front-card-shadow);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.team-modern-card:hover {
  box-shadow: var(--front-card-shadow-hover);
  border-color: rgba(3, 171, 73, 0.3);
}

.team-modern-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--front-bg-alt);
}

.team-modern-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-modern-card-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 171, 73, 0.85);
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
  text-decoration: none;
  font-size: 1.75rem;
}

.team-modern-card-link:hover {
  color: #fff;
  opacity: 1;
}

.team-modern-card-link:focus-visible {
  opacity: 1;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.team-modern-card:hover .team-modern-card-link {
  opacity: 1;
}

.team-modern-card-info {
  padding: 1.25rem 1rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-modern-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--front-text);
  margin: 0 0 0.35rem 0;
  line-height: 1.3;
}

.team-modern-card-role {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--front-primary);
  display: block;
}

.team-modern-pagination {
  position: relative;
  margin-top: 1.5rem;
}

.team-modern-pagination .swiper-pagination-bullet {
  background: var(--front-border);
  opacity: 1;
  width: 10px;
  height: 10px;
  transition: background 0.2s ease;
}

.team-modern-pagination .swiper-pagination-bullet-active {
  background: var(--front-primary);
  transform: scale(1.2);
}

@media (max-width: 991px) {
  .team-modern-card-info {
    padding: 1rem;
  }
  .team-modern-card-name {
    font-size: 1rem;
  }
  .team-modern-card-role {
    font-size: 0.9rem;
  }
}

/* --------------------------------------------------------------
   فاعليتنا - تخطيط حديث (portfolio-modern)
   -------------------------------------------------------------- */
.portfolio-modern .section-intro {
  color: var(--front-text-secondary);
  font-size: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.portfolio-modern-filters-wrap {
  margin-bottom: 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
  text-align: center;
}

.portfolio-modern-filters {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.portfolio-modern-filters li {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--front-text);
  background: #fff;
  border: 1px solid var(--front-border);
  border-radius: var(--front-radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.portfolio-modern-filters li:hover {
  border-color: var(--front-primary);
  color: var(--front-primary);
  background: rgba(3, 171, 73, 0.06);
}

.portfolio-modern-filters li.filter-active {
  background: var(--front-primary);
  border-color: var(--front-primary);
  color: #fff;
}

.portfolio-modern-filters li:focus-visible {
  outline: 2px solid var(--front-primary);
  outline-offset: 2px;
}

.portfolio-modern .portfolio-item {
  margin-bottom: 1.5rem;
}

.portfolio-modern .portfolio-wrap {
  border-radius: var(--front-radius);
  overflow: hidden;
  border: 1px solid var(--front-border);
  box-shadow: var(--front-card-shadow);
  background: var(--front-bg-alt);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.portfolio-modern .portfolio-wrap::before {
  background: rgba(3, 171, 73, 0.75);
  opacity: 0;
}

.portfolio-modern .portfolio-wrap:hover {
  box-shadow: var(--front-card-shadow-hover);
  border-color: rgba(3, 171, 73, 0.3);
}

.portfolio-modern .portfolio-wrap:hover::before {
  opacity: 1;
}

.portfolio-modern .portfolio-wrap img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.portfolio-modern .portfolio-wrap .portfolio-info {
  padding: 1rem 1.25rem;
  align-items: center;
  justify-content: center;
}

.portfolio-modern .portfolio-wrap .portfolio-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.portfolio-modern .portfolio-wrap .portfolio-links a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.2s ease, color 0.2s ease;
}

.portfolio-modern .portfolio-wrap .portfolio-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.35);
}

.portfolio-modern-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--front-bg-alt);
  border-radius: var(--front-radius);
  border: 1px dashed var(--front-border);
}

.portfolio-modern-empty-text {
  color: var(--front-text-secondary);
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.portfolio-modern-empty-hint {
  color: var(--front-text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

.portfolio-modern-empty-hint a {
  color: var(--front-primary);
  font-weight: 600;
}

@media (max-width: 991px) {
  .portfolio-modern-filters {
    justify-content: flex-start;
  }
  .portfolio-modern .portfolio-wrap .portfolio-info h4 {
    font-size: 1rem;
  }
}

/* --------------------------------------------------------------
   تواصل معنا - تخطيط حديث (contact-modern)
   -------------------------------------------------------------- */
.contact-modern .contact-layer {
  background-image: none;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.contact-modern .section-intro {
  color: var(--front-text-secondary);
  font-size: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.contact-modern-grid {
  margin-top: 0;
}

.contact-modern-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-modern-card {
  background: #fff;
  border-radius: var(--front-radius);
  padding: 1.5rem;
  border: 1px solid var(--front-border);
  box-shadow: var(--front-card-shadow);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-modern-card:hover {
  box-shadow: var(--front-card-shadow-hover);
  border-color: rgba(3, 171, 73, 0.25);
}

.contact-modern-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--front-text);
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.3;
}

.contact-modern-card-title i {
  color: var(--front-primary);
  font-size: 1.35rem;
}

.contact-modern-card-desc {
  color: var(--front-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.contact-modern-card-desc:last-child,
.contact-modern-card-desc + .contact-modern-btn,
.contact-modern-card-desc + .contact-modern-social {
  margin-bottom: 0;
}

.contact-modern-btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  border-radius: var(--front-radius);
  margin-top: 0.25rem;
}

.contact-modern-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.contact-modern-social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(3, 171, 73, 0.1);
  color: var(--front-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.contact-modern-social-link:hover {
  background: var(--front-primary);
  color: #fff;
}

.contact-modern-social-link:focus-visible {
  outline: 2px solid var(--front-primary);
  outline-offset: 2px;
}

.contact-modern-link {
  color: var(--front-primary);
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}

.contact-modern-link:hover {
  color: var(--front-primary-dark);
  text-decoration: underline;
}

.contact-modern-card-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--front-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 0.5rem 0;
}

.contact-modern-card-item:last-child {
  margin-bottom: 0;
}

.contact-modern-card-item i {
  color: var(--front-primary);
  font-size: 1.2rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.contact-modern-card-item a {
  color: var(--front-primary);
  text-decoration: none;
}

.contact-modern-card-item a:hover {
  color: var(--front-primary-dark);
  text-decoration: underline;
}

.contact-modern-map-wrap {
  height: 100%;
  min-height: 260px;
}

.contact-modern .contact-map-responsive {
  height: 100% !important;
  min-height: 260px;
}

.contact-modern .contact-map-responsive iframe {
  min-height: 260px !important;
  border: 0;
}

@media (max-width: 991px) {
  .contact-modern .contact-layer {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .contact-modern-card {
    padding: 1.25rem;
  }
  .contact-modern-card-title {
    font-size: 1.05rem;
  }
  .contact-modern-map-wrap {
    min-height: 220px;
  }
  .contact-modern .contact-map-responsive,
  .contact-modern .contact-map-responsive iframe {
    min-height: 220px !important;
  }
}

#main #about,
#main .about.section-bg,
#main .team.section-bg {
  background: var(--front-bg-alt) !important;
  color: var(--front-text) !important;
}

#main .about.section-bg::before,
#main .team.section-bg::before {
  display: none;
}

#main .portfolio {
  background: #fff;
}

#main .contact .contact-layer {
  background: var(--front-bg-alt);
}

/* Contact section - dark text on light background (override style.css white text) */
#main .contact .info-box h3,
#main .branch-social h3,
#main .branch-social p,
#main .branch-info p {
  color: var(--front-text) !important;
}

#main .contact .info-box p {
  color: var(--front-text-secondary) !important;
}

#main .branch-info a {
  color: var(--front-primary) !important;
}

#main .branch-info a:hover {
  color: var(--front-primary-dark) !important;
}

#main .branch-social .social-links a {
  background: var(--front-border) !important;
  color: var(--front-primary) !important;
}

#main .branch-social .social-links a:hover {
  background: var(--front-primary) !important;
  color: #fff !important;
}

/* Section-bg and all descendants - ensure dark text on light background */
#main .section-bg,
#main .section-bg .section-title,
#main .section-bg .section-title h2,
#main .section-bg .section-title p,
#main .section-bg .content,
#main .section-bg .content h3,
#main .section-bg .content h4 {
  color: var(--front-text) !important;
}

#main .section-bg .content p {
  color: var(--front-text-secondary) !important;
}

/* Cards - unified radius and shadow */
.icon-box,
.portfolio-wrap,
.counts .count-box,
.testimonial-wrap .member {
  border-radius: var(--front-radius);
  box-shadow: var(--front-card-shadow);
  transition: box-shadow 0.25s ease;
}

.icon-box:hover,
.portfolio-wrap:hover {
  box-shadow: var(--front-card-shadow-hover);
}

/* Tabs - active state clear */
.tabs .nav-link.active {
  background: var(--front-primary) !important;
  color: #fff !important;
  border-color: var(--front-primary) !important;
}

.tabs .nav-link:hover:not(.active) {
  color: var(--front-primary);
  border-color: var(--front-primary);
}

/* Contact section - card style for each block */
.branch-social .container,
.branch-info .container {
  background: #fff;
  border-radius: var(--front-radius);
  box-shadow: var(--front-card-shadow);
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--front-border);
}

.contact-map-responsive {
  border-radius: var(--front-radius);
  overflow: hidden;
  box-shadow: var(--front-card-shadow);
  border: 1px solid var(--front-border);
}

/* --------------------------------------------------------------
   الفوتر - تخطيط حديث (footer-modern)
   -------------------------------------------------------------- */
#footer.footer-modern {
  background: var(--front-bg-alt);
  color: var(--front-text);
  font-size: 0.95rem;
  border-top: 1px solid var(--front-border);
  padding: 0;
}

.footer-modern-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1rem 1.5rem;
}

.footer-modern-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--front-border);
  margin-bottom: 1.5rem;
}

.footer-modern-logo {
  display: block;
  flex-shrink: 0;
}

.footer-modern-logo img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-modern-name {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--front-text);
}

.footer-modern-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 1.25rem;
}

.footer-modern-nav a {
  color: var(--front-text-secondary);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.footer-modern-nav a:hover {
  color: var(--front-primary);
  background: rgba(3, 171, 73, 0.06);
}

.footer-modern-nav a:focus-visible {
  outline: 2px solid var(--front-primary);
  outline-offset: 2px;
}

.footer-modern-bottom {
  text-align: center;
}

.footer-modern-copy {
  color: var(--front-text-secondary);
  font-size: 0.9rem;
  margin: 0 0 0.5rem 0;
  line-height: 1.5;
}

.footer-modern-credits {
  color: var(--front-text-secondary);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.5;
}

.footer-modern-credits a {
  color: var(--front-primary);
  font-weight: 600;
  text-decoration: none;
}

.footer-modern-credits a:hover {
  color: var(--front-primary-dark);
  text-decoration: underline;
}

@media (max-width: 767px) {
  .footer-modern-inner {
    padding: 1.5rem 1rem 1.25rem;
  }
  .footer-modern-top {
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
  }
  .footer-modern-logo img {
    height: 40px;
  }
  .footer-modern-nav {
    gap: 0.25rem 0.75rem;
  }
  .footer-modern-nav a {
    font-size: 0.9rem;
  }
}

/* Back to top - use primary */
.back-to-top {
  background: var(--front-primary);
}

.back-to-top:hover {
  background: var(--front-primary-dark);
}

/* Navbar active link */
.navbar .active,
.navbar li:hover > a {
  color: var(--front-primary) !important;
}

/* Section title underline */
.section-title h2::after {
  background: var(--front-primary);
}

/* Team member job color */
.member-info span {
  color: var(--front-primary) !important;
}

/* Portfolio filter - keyboard focusable */
#portfolio-flters li {
  cursor: pointer;
}

#portfolio-flters li:focus {
  outline: none;
}
