@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@700;800;900&family=Almarai:wght@700;800&family=Readex+Pro:wght@600;700&display=swap');

/* ═══════════════════════════════════════════════
   TUHAN CONSTRUCTION — Main Stylesheet
   Corporate construction theme
═══════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', 'Montserrat', sans-serif;
  color: #2F353B;
  background: #fff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* ═══════════ SEO HIDDEN ═══════════ */
.seo-hidden {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  height: 1px !important;
  width: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* ═══════════ HEADER ═══════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 5%;
  background: transparent;
  transition: background 0.4s, box-shadow 0.4s;
}

.header.sticky {
  background: #fff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.header.sticky .menu a,
.header.sticky .extra a,
.header.sticky .hamburger {
  color: #2F353B;
}

/* ═══════════ HEADER BRAND LOCKUP (Top-Left Fixed) ═══════════ */
.header-logo,
.logo {
  display: flex;
  align-items: center;
  z-index: 1002;
}

.header-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  direction: ltr !important;
  transition: opacity 0.3s ease;
}

.header-brand-lockup:hover {
  opacity: 0.85;
}

.header-brand-icon {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  transition: filter 0.4s ease, transform 0.3s ease;
}

.header-brand-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  user-select: none;
}

.header-brand-ar {
  font-family: 'Cairo', 'Almarai', sans-serif !important;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  letter-spacing: 0;
  display: block;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

.header-brand-en {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  letter-spacing: 0.5px;
  display: block;
  margin-top: 1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

/* Sticky Header State: stays permanently visible with dark contrast */
.header.sticky .header-brand-icon {
  filter: brightness(0);
}

.header.sticky .header-brand-ar,
.header.sticky .header-brand-en {
  color: #2F353B;
  text-shadow: none;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.logo-text-fallback {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
}

.header.sticky .logo-text-fallback {
  color: #2F353B;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  z-index: 1001;
}

.header.sticky .hamburger {
  color: #2F353B;
}

.menu ul {
  display: flex;
  gap: 28px;
  align-items: center;
}

.menu ul a {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
  transition: color 0.3s, opacity 0.3s;
  text-transform: uppercase;
}

.menu ul a:hover {
  opacity: 0.75;
}

.header.sticky .menu ul a {
  color: #2F353B;
}

.extra {
  display: flex;
  align-items: center;
  gap: 16px;
}

.language-switcher {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 5px 14px;
  border-radius: 4px;
  transition: all 0.3s;
}

.language-switcher:hover {
  background: #fff;
  color: #2F353B;
}

.header.sticky .language-switcher {
  color: #2F353B;
  border-color: #2F353B;
}

.search-icon {
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.header.sticky .search-icon {
  color: #2F353B;
}

/* ═══════════ HERO VIDEO ═══════════ */
.video-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-container video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  z-index: 0;
}

.overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(12, 17, 24, 0.35) 0%, rgba(8, 11, 16, 0.6) 60%, rgba(5, 7, 10, 0.8) 100%);
  z-index: 1;
}

.header-spacer {
  width: 90px;
  visibility: hidden;
}

.middle-image {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -70%);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.middle-image img {
  width: 175px;
  max-width: 85vw;
  height: auto;
  opacity: 1;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}

/* EN slogan */
.slogan {
  position: absolute;
  z-index: 3;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.35;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.slogan-second-line {
  display: block;
}

.slogan .highlight {
  color: #C5A880;
}

/* AR slogan */
.slogan-wrapper {
  position: absolute;
  z-index: 3;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.slogan-line {
  display: block;
  font-size: clamp(1.4rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  font-family: 'Tajawal', sans-serif;
  line-height: 1.5;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.slogan-wrapper .highlight {
  color: #C5A880;
}

/* ═══════════ ABOUT / TUHAN SECTION ═══════════ */
.tuhan-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: url('/assets/tuhan-pattern-dark.png') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  background-color: #2F353B;
  padding: 100px 10%;
  color: #fff;
  gap: 40px;
}

.tuhan-content {
  width: 52%;
}

.tuhan-subtitle-about {
  font-size: 14px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 8px;
  margin-inline-start: 20px;
}

.tuhan-section h2 {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-top: 0;
  margin-bottom: 10px;
  margin-inline-start: 20px;
}

.tuhan-title-line {
  width: 60px;
  height: 4px;
  background-color: #fff;
  border-radius: 2px;
  margin: 10px 0 20px;
  margin-inline-start: 20px;
}

.tuhan-content p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 14px;
  text-align: justify;
  margin-inline-start: 20px;
  width: 95%;
}

.section-button {
  display: inline-block;
  margin-top: 30px;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  padding: 10px 24px;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  border-radius: 5px;
  transition: background 0.3s, color 0.3s, transform 0.3s;
  margin-inline-start: 20px;
}

.section-button:hover {
  background: #fff;
  color: #2F353B;
  transform: scale(1.05);
}

.tuhan-video {
  width: 48%;
  min-height: 440px;
  background: #1c2126;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
}

.tuhan-media {
  width: 44%;
  max-width: 500px;
  aspect-ratio: 4 / 3;
  background: #1c2126;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-shrink: 0;
}

.tuhan-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.tuhan-media:hover img {
  transform: scale(1.04);
}

.tuhan-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(47, 53, 59, 0.75) 100%);
  pointer-events: none;
}

.tuhan-media-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(47, 53, 59, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 14px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  z-index: 3;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

html[lang="ar"] .tuhan-media-badge {
  left: auto;
  right: 24px;
}

.tuhan-media-badge .badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(197, 168, 128, 0.2);
  color: #C5A880;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.tuhan-media-badge .badge-text {
  display: flex;
  flex-direction: column;
}

.tuhan-media-badge .badge-title {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  line-height: 1.3;
}

.tuhan-media-badge .badge-sub {
  font-size: 12px;
  color: #C5A880;
  letter-spacing: 0.5px;
}

.tuhan-video::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 10%, transparent 60%);
  z-index: 2;
  pointer-events: none;
}

.tuhan-video::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to bottom, transparent 0%, #2F353B 100%);
  z-index: 2;
  pointer-events: none;
  opacity: 0.7;
}

.tuhan-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* RTL adjustments */
html[lang="ar"] .tuhan-content {
  direction: rtl !important;
  text-align: right !important;
}

html[lang="ar"] .tuhan-content h2,
html[lang="ar"] .tuhan-content p {
  direction: rtl !important;
  text-align: right !important;
}

html[lang="ar"] .tuhan-content .tuhan-title-line {
  margin-right: 0 !important;
}

/* ═══════════ STATISTICS ═══════════ */
.statistics-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 10%;
  background: rgba(240, 240, 240, 0.7);
  text-align: center;
  overflow: hidden;
}

.stat {
  flex: 1;
  position: relative;
  padding: 0 20px;
}

.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(47, 53, 59, 0.2);
}

.stat-icon {
  font-size: 50px;
  display: block;
  margin-bottom: 12px;
  color: #2F353B;
}

.stat-number {
  font-size: 52px;
  font-weight: 700;
  color: #2F353B !important;
  margin: 5px 0;
}

.stat p {
  font-size: 18px;
  max-width: 200px;
  margin: 0 auto;
  line-height: 1.5;
  color: #2F353B;
}

/* ═══════════ VISION 2030 SECTION ═══════════ */
.vision-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 10%;
  background: #fff;
  gap: 40px;
  overflow: hidden;
}

.vision-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.vision-image img {
  width: 100%;
  transition: transform 0.4s;
}

.vision-image img:hover {
  transform: scale(1.04);
}

.vision-content {
  flex: 1;
  color: #2F353B;
}

.vision-content .section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.vision-content .section-title::before {
  content: 'SAUDI VISION 2030';
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #008000;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.vision-content p {
  font-size: 16px;
  line-height: 1.7;
}

.animated-image {
  position: absolute;
  right: -150px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 1s ease;
}

.animated-image img {
  max-width: 150px;
}

.animated-image.active {
  right: 0;
  opacity: 1;
}

/* ═══════════ SECTORS CAROUSEL ═══════════ */
.sectors-section {
  padding: 60px 10%;
  background: #F9F9F9;
  overflow: hidden;
}

.section-subtitle {
  font-size: 14px;
  color: #686C5E;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 4px;
  display: block;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  color: #2F353B;
  margin-top: 5px;
  margin-bottom: 30px;
  font-family: 'Montserrat', 'Tajawal', sans-serif;
}

.sectors-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.sectors-carousel {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: continuous-slide 28s linear infinite;
  will-change: transform;
}

@keyframes continuous-slide {
  0% {
    transform: translateX(0);
  }


  100% {
    transform: translateX(calc(-50% - 10px));
  }
}

html[lang="ar"] .sectors-carousel {
  animation: continuous-slide-rtl 28s linear infinite;
}

@keyframes continuous-slide-rtl {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(50% + 10px));
  }
}

.sector-block {
  flex: 0 0 300px;
  height: 500px;
  border-radius: 12px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.sector-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(11, 25, 44, 0.95) 0%, rgba(11, 25, 44, 0.7) 60%, transparent 100%);
  border-radius: 0 0 12px 12px;
}

.sector-content {
  position: absolute;
  bottom: 24px;
  left: 20px;
  right: 20px;
  z-index: 2;
  color: #fff;
}

html[lang="ar"] .sector-content {
  text-align: right;
  direction: rtl;
}

.sector-content .sector-subtitle {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #c89d3c;
  margin-bottom: 6px;
  font-weight: 600;
}

.sector-title-text {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
  color: #ffffff;
}

.sector-description {
  font-size: 13px;
  line-height: 1.5;
  color: #e2e8f0;
  opacity: 0.9;
}

/* ═══════════ PROJECTS SECTION ═══════════ */
.projects-section {
  padding: 60px 10%;
  background: #f4f4f4;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.project-box {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  height: 250px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease-in-out;
  transition-delay: var(--delay, 0s);
  cursor: pointer;
}

.project-box.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-box:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.project-box:hover .project-gradient {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.1));
}

.project-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 45%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.project-content {
  position: absolute;
  bottom: 12px;
  left: 18px;
  color: #fff;
  z-index: 2;
}

.project-name {
  font-size: 15px;
  font-weight: 700;
}

.sectors-button {
  display: block;
  margin: 36px auto 0;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  color: #2F353B;
  background: #fff;
  border: 2px solid #2F353B;
  border-radius: 5px;
  text-align: center;
  width: fit-content;
  transition: all 0.3s;
}

.sectors-button:hover {
  background: #2F353B;
  color: #fff;
  transform: scale(1.04);
}

/* ═══════════ NEWS SECTION ═══════════ */
.news-section {
  padding: 60px 10%;
  background: url('/assets/tuhan-pattern-light.png') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  background-color: #fbfbf9;
}

.news-subtitle {
  font-size: 14px;
  color: #686C5E;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 5px;
  display: block;
}

.news-title {
  font-size: 42px;
  font-weight: 700;
  color: #2F353B;
  margin-bottom: 30px;
  position: relative;
}

.news-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 5px;
  background: #2F353B;
  margin-top: 6px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.news-item {
  flex: 1;
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.news-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s;
}

.news-item img:hover {
  transform: scale(1.04);
}

.news-item h3 {
  margin: 14px 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: #2F353B;
  line-height: 1.4;
}

.read-more {
  font-size: 14px;
  color: #2F353B;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  transition: color 0.3s;
}

.read-more:hover {
  color: #686C5E;
}

.read-more i {
  transition: transform 0.3s;
}

.read-more:hover i {
  transform: translateX(5px);
}

.news-button {
  display: block;
  margin: 36px auto 0;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  color: #2F353B;
  background: #fff;
  border: 2px solid #2F353B;
  border-radius: 5px;
  text-align: center;
  width: fit-content;
  cursor: pointer;
  transition: all 0.3s;
}

.news-button:hover {
  background: #2F353B;
  color: #fff;
  transform: scale(1.04);
}

/* News Empty State */
.news-empty-state {
  width: 100%;
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 24px;
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.news-empty-state .empty-icon {
  width: 60px;
  height: 60px;
  line-height: 60px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(47, 53, 59, 0.08);
  color: #2F353B;
  font-size: 24px;
}

.news-empty-state h4 {
  font-size: 18px;
  font-weight: 700;
  color: #2F353B;
  margin: 0 0 6px;
}

.news-empty-state p {
  color: #64748b;
  font-size: 14px;
  max-width: 440px;
  margin: 0 auto;
}

/* News Modal */
.news-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.news-modal.active {
  opacity: 1;
  visibility: visible;
}

.news-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.news-modal-card {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 540px;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transform: scale(0.92) translateY(15px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.news-modal.active .news-modal-card {
  transform: scale(1) translateY(0);
}

.news-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: #2F353B;
  color: #ffffff;
}

.news-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-modal-title-wrap .modal-icon {
  font-size: 20px;
  color: #C5A880;
}

.news-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.news-modal-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s, transform 0.2s;
}

.news-modal-close:hover {
  color: #ffffff;
  transform: scale(1.15);
}

.news-form {
  padding: 22px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
}

.form-group label .required {
  color: #ef4444;
}

.form-group label .optional {
  font-size: 12px;
  color: #64748b;
  font-weight: 400;
}

.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2F353B;
  box-shadow: 0 0 0 3px rgba(47, 53, 59, 0.12);
}

/* Upload dropzone */
.upload-area {
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  background: #f8fafc;
  transition: all 0.25s ease;
  position: relative;
}

.upload-area:hover,
.upload-area.drag-over {
  border-color: #2F353B;
  background: #f1f5f9;
}

.file-input-hidden {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.upload-icon {
  font-size: 32px;
  color: #C5A880;
  margin-bottom: 8px;
}

.upload-main-text {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 4px;
}

.upload-sub-text {
  font-size: 12px;
  color: #64748b;
}

.upload-preview-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  max-height: 200px;
}

.upload-preview-wrap img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.remove-preview-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  border: none;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.remove-preview-btn:hover {
  background: #ef4444;
  transform: scale(1.1);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.btn-cancel {
  padding: 10px 18px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-cancel:hover {
  background: #f1f5f9;
}

.btn-submit {
  padding: 10px 22px;
  border: none;
  background: #2F353B;
  color: #ffffff;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-submit:hover {
  background: #1c2126;
  transform: translateY(-1px);
}

.news-item {
  position: relative;
}

.news-item .delete-news-btn {
  position: absolute;
  top: 22px;
  right: 22px;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.2s ease;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.news-item:hover .delete-news-btn {
  opacity: 1;
  transform: scale(1);
}

.news-item .news-date-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #C5A880;
  margin-top: 10px;
  letter-spacing: 0.5px;
}

.news-item .news-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
  margin: 6px 0 12px;
}

/* RTL Support */
html[lang="ar"] .news-modal-header {
  direction: rtl;
}

html[lang="ar"] .news-form {
  direction: rtl;
  text-align: right;
}

html[lang="ar"] .modal-actions {
  flex-direction: row-reverse;
}

html[lang="ar"] .news-item .delete-news-btn {
  right: auto;
  left: 22px;
}

html[lang="ar"] .remove-preview-btn {
  right: auto;
  left: 8px;
}

/* ═══════════ PARTNERS / CLIENTS ═══════════ */
.partners-section {
  padding: 60px 10%;
  background: #ffffff;
  position: relative;
}

.partners-text {
  text-align: left;
  margin-bottom: 26px;
}

html[lang="ar"] .partners-text {
  text-align: right;
}

.clients-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px 32px;
  margin: 25px auto 35px;
  max-width: 1100px;
}

.client-logo-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.client-logo-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.09);
  border-color: #C5A880;
}

.client-logo-box img {
  height: 44px !important;
  max-height: 48px !important;
  max-width: 140px !important;
  width: auto !important;
  object-fit: contain !important;
  filter: grayscale(100%);
  opacity: 0.72;
  display: block !important;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.client-logo-box:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

.client-edit-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  background: #2F353B;
  color: #C5A880;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.25s ease;
  pointer-events: none;
}

html[lang="ar"] .client-edit-badge {
  right: auto;
  left: -6px;
}

.client-logo-box:hover .client-edit-badge {
  opacity: 1;
  transform: scale(1);
}

.clients-empty-state {
  max-width: 600px;
  margin: 30px auto;
  padding: 36px 24px;
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.clients-empty-state .empty-icon {
  font-size: 38px;
  color: #C5A880;
  margin-bottom: 12px;
}

.clients-empty-state h4 {
  font-size: 19px;
  color: #2F353B;
  margin-bottom: 8px;
  font-weight: 700;
}

.clients-empty-state p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.client-add-btn {
  margin: 20px auto 0 !important;
}

.btn-danger {
  padding: 10px 20px;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, transform 0.15s;
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

/* ═══════════ CONTACT CTA ═══════════ */
.contact-section {
  text-align: center;
  padding: 80px 10%;
  background: #f8f8f8;
}

.contact-title {
  font-size: 48px;
  font-weight: 700;
  color: #111;
  font-family: 'Montserrat', 'Tajawal', sans-serif;
  margin-bottom: 15px;
}

.contact-description {
  font-size: 18px;
  color: #555;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-button {
  display: inline-block;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 5px;
  border: 2px solid #686C5E;
  transition: all 0.3s;
}

.contact-button.primary {
  background: #2F353B;
  color: #fff;
}

.contact-button.primary:hover {
  background: #fff;
  color: #2F353B;
}

.contact-button.secondary {
  background: transparent;
  color: #686C5E;
}

.contact-button.secondary:hover {
  background: #2F353B;
  color: #fff;
}

/* ═══════════ FOOTER ═══════════ */
.footer {
  background: #2F353B;
  color: #fff;
  padding: 50px 10% 20px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.footer-logo img {
  height: 55px;
  width: auto;
}

.footer-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  direction: ltr !important;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-brand-lockup:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.footer-brand-icon {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.footer-brand-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  user-select: none;
}

.footer-brand-ar {
  font-family: 'Cairo', 'Almarai', sans-serif !important;
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  letter-spacing: 0;
  display: block;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.footer-brand-en {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  letter-spacing: 0.5px;
  display: block;
  margin-top: 2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.address-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #C5A880;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.address-header i {
  font-size: 13px;
  color: #C5A880;
}

.footer-address {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-address .address-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #C5A880;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.footer-address .address-header i {
  font-size: 13px;
  color: #C5A880;
}

.footer-address .address-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.footer-menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  flex-direction: column;
}

.footer-menu ul li a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
}

.footer-menu ul li a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 18px;
  align-items: center;
}

.footer-social a {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.3s, transform 0.3s;
}

.footer-social a:hover {
  color: #fff;
  transform: scale(1.2);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fff;
}

/* ═══════════ MOBILE NAV ═══════════ */
@media (max-width: 900px) {
  .hamburger {
    display: block;
  }

  .menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(47, 53, 59, 0.97);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .menu.open {
    display: flex;
  }

  .menu ul {
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }

  .menu ul a {
    font-size: 20px;
    color: #fff !important;
  }

  .extra .search-icon {
    display: none;
  }
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 900px) {
  .tuhan-section {
    flex-direction: column;
    padding: 70px 6%;
  }

  .tuhan-content {
    width: 100%;
  }

  .tuhan-video {
    width: 100%;
    min-height: 320px;
    aspect-ratio: auto;
  }

  .tuhan-media {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 4 / 3;
    min-height: unset;
    margin: 15px auto 0;
  }

  .statistics-section {
    flex-wrap: wrap;
    gap: 30px;
    padding: 50px 6%;
  }

  .stat {
    width: 45%;
  }

  .stat:not(:last-child)::after {
    display: none;
  }

  .vision-section {
    flex-direction: column;
    padding: 50px 6%;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    flex-direction: column;
  }

  .sectors-carousel .sector-block {
    flex: 0 0 250px;
    height: 400px;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 30px;
  }

  .contact-title {
    font-size: 32px;
  }

  .slogan,
  .slogan-line {
    font-size: 1.3rem;
  }

  .tuhan-section h2 {
    font-size: 26px;
  }

  .middle-image img {
    width: 125px;
  }

  .header-brand-icon {
    height: 30px;
  }

  .header-brand-ar {
    font-size: 1.15rem;
  }

  .header-brand-en {
    font-size: 0.8rem;
  }

  .stat-number {
    font-size: 38px;
  }
}

/* ═══════════ ADMIN ACCESS CONTROL ═══════════ */
#open-news-modal-btn,
#open-client-modal-btn,
.delete-news-btn,
.client-edit-badge {
  display: none !important;
}

/* Visible ONLY when admin is authenticated */
body.is-admin #open-news-modal-btn,
body.is-admin #open-client-modal-btn {
  display: inline-flex !important;
}

body.is-admin .delete-news-btn {
  display: flex !important;
}

body.is-admin .client-edit-badge {
  display: flex !important;
}

/* Client logos interactive only for admin */
.client-logo-box {
  cursor: default !important;
}

body.is-admin .client-logo-box {
  cursor: pointer !important;
}

/* Admin Log Out navigation button */
.admin-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  line-height: 1.4;
  text-decoration: none;
}

.admin-logout-btn:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

.header.sticky .admin-logout-btn {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.4);
}

.header.sticky .admin-logout-btn:hover {
  background: #dc2626;
  color: #ffffff;
}

html[lang="ar"] .admin-logout-btn i {
  transform: rotate(180deg);
}