/* ===================================
   TCO Website - Main Stylesheet
   Albinayat Typical Contracting LLC
   =================================== */

/* Import Variables */
@import url('variables.css');

/* ===================================
   FONTS IMPORT
   =================================== */
/* Roboto Font للإنجليزي */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');
/* Tajawal Font للعربي */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

/* ===================================
   1. RESET & BASE STYLES
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-dark);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

/* Arabic Language */
[lang="ar"],
[dir="rtl"],
html[lang="ar"] body,
html[dir="rtl"] body {
  font-family: 'Tajawal', sans-serif !important;
}

[dir="rtl"] *,
[lang="ar"] * {
  font-family: 'Tajawal', sans-serif !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul,
ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition-fast);
}

/* ===================================
   2. TYPOGRAPHY
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

h1 {
  font-size: 48px;
}

h2 {
  font-size: 40px;
}

h3 {
  font-size: 32px;
}

h4 {
  font-size: 24px;
}

h5 {
  font-size: 20px;
}

h6 {
  font-size: 18px;
}

p {
  font-size: 17px;
  margin-bottom: var(--spacing-sm);
  color: var(--text-medium);
  line-height: 1.8;
}

/* ===================================
   3. CONTAINER & LAYOUT
   =================================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--spacing-xxl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title h2 {
  font-size: 40px;
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-green), var(--accent-gold));
  border-radius: 2px;
}

.section-title p {
  font-size: 19px;
  color: var(--text-medium);
  max-width: 700px;
  margin: var(--spacing-md) auto 0;
}

/* ===================================
   4. BUTTONS
   =================================== */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: var(--transition-medium);
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--primary-green);
  color: var(--white);
  border: 2px solid var(--primary-green);
}

.btn-primary:hover {
  background: var(--secondary-green);
  border-color: var(--secondary-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: white;
  color: var(--primary-green);
  border: 2px solid white;
}

.btn-secondary:hover {
  border: 2px solid white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.btn-gold {
  background: var(--accent-gold);
  color: var(--white);
  border: 2px solid var(--accent-gold);
}

.btn-gold:hover {
  background: transparent;
  color: var(--accent-gold);
}

/* ===================================
   5. HEADER & NAVIGATION
   =================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  box-shadow: none;
  transition: all 0.4s ease;
}

.header-main {
  padding: 8px 0;
  transition: all 0.4s ease;
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  position: relative;
}

.logo a {
  display: block;
  position: relative;
  height: 145px;
  width: 220px;
}

.logo-default {
  height: 145px;
  width: 220px;
  object-fit: fill;
  transition: all 0.3s ease;
  opacity: 1;
  visibility: visible;
}

.logo-scrolled {
  height: 145px;
  width: 220px;
  object-fit: fill;
  position: absolute;
  top: 0;
  left: 0;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.nav-menu {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.nav-menu a {
  font-size: 17px;
  font-weight: 500;
  color: white;
  position: relative;
  padding: 8px 0;
  transition: all 0.3s ease;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: var(--transition-fast);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent-gold);
}

.language-switcher {
  display: flex;
  gap: 5px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

.language-switcher button {
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
}

.language-switcher button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.language-switcher button.active {
  background: var(--accent-gold);
  color: white;
  border-color: var(--accent-gold);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  transition: var(--transition-fast);
  border-radius: 2px;
}

/* HEADER SCROLLED */
.header.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.header.scrolled .header-main {
  padding: 4px 0;
}

.header.scrolled .logo a {
  height: 100px;
}

.header.scrolled .logo-default {
  opacity: 0;
  visibility: hidden;
  height: 100px;
}

.header.scrolled .logo-scrolled {
  opacity: 1;
  visibility: visible;
  height: 100px;
}

.header.scrolled .nav-menu a {
  color: var(--text-dark);
}

.header.scrolled .nav-menu a::after {
  background: var(--primary-green);
}

.header.scrolled .nav-menu a:hover,
.header.scrolled .nav-menu a.active {
  color: var(--primary-green);
}

.header.scrolled .language-switcher {
  background: var(--gray-light);
}

.header.scrolled .language-switcher button {
  color: var(--text-medium);
  border-color: transparent;
}

.header.scrolled .language-switcher button.active {
  background: var(--primary-green);
  color: var(--white);
}

.header.scrolled .mobile-menu-toggle span {
  background: var(--text-dark);
}

/* HEADER INTERNAL */
.header-internal {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.header-internal .header-main {
  padding: 4px 0;
}

.header-internal .logo a {
  height: 100px;
}

.header-internal .logo img {
  height: 100px;
}

.header-internal .nav-menu a {
  color: var(--text-dark);
}

.header-internal .nav-menu a::after {
  background: var(--primary-green);
}

.header-internal .nav-menu a:hover,
.header-internal .nav-menu a.active {
  color: var(--primary-green);
}

.header-internal .language-switcher {
  background: var(--gray-light);
}

.header-internal .language-switcher button {
  color: var(--text-medium);
  border-color: transparent;
}

.header-internal .language-switcher button.active {
  background: var(--primary-green);
  color: var(--white);
}

.header-internal .mobile-menu-toggle span {
  background: var(--text-dark);
}

.header-internal.scrolled .header-main {
  padding: 4px 0;
}

.header-internal.scrolled .logo img {
  height: 100px;
}

/* ===================================
   6. HERO SECTION
   =================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 40px;
  line-height: 1.6;
  color: white;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
   7. FEATURES SECTION - 4 COLUMNS
   =================================== */
.features {
  background: var(--bg-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
}

.feature-card {
  background: var(--white);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-medium);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 36px;
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

.feature-card p {
  font-size: 16px;
  color: var(--text-medium);
  line-height: 1.7;
  margin-top: 8px;
}

/* ===================================
   8. SERVICES SECTION - 4 COLUMNS
   =================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-medium);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-content h3 {
  font-size: 20px;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

.service-content p {
  font-size: 15px;
  color: var(--text-medium);
  margin-bottom: var(--spacing-md);
  flex: 1;
}

.service-content .btn {
  margin-top: auto;
}

/* ===================================
   9. PROJECTS SECTION
   =================================== */
.projects {
  background: var(--bg-light);
}

/* Projects Grid - Using Grid for layout structure, center alignment handled by grid properties */
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-md);
}

/* Base Card Width matches Grid logic */
.projects-grid .project-card {
  /* 3 Columns Desktop: (100% - 2 * gap) / 3 */
  width: calc((100% - (2 * var(--spacing-md))) / 3);
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .projects-grid .project-card {
    /* 2 Columns Tablet: (100% - 1 * gap) / 2 */
    width: calc((100% - (1 * var(--spacing-md))) / 2);
  }
}

@media (max-width: 767px) {
  .projects-grid .project-card {
    /* 1 Column Mobile */
    width: 100%;
  }
}

.project-card {
  position: relative;
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.project-image {
  width: 100%;
  height: 100%;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--spacing-md);
  opacity: 0;
  transition: var(--transition-medium);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay h3 {
  color: var(--white);
  font-size: 22px;
  margin-bottom: var(--spacing-xs);
}

.project-overlay p {
  color: var(--white);
  font-size: 14px;
}

/* ===================================
   10. VIDEO SECTION
   =================================== */
.video-section {
  background: var(--gray-dark);
  color: var(--white);
}

.video-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===================================
   11. FAQ SECTION
   =================================== */
.faq {
  background: var(--bg-light);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  margin-bottom: var(--spacing-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition-fast);
}

.faq-question:hover {
  background: var(--gray-light);
}

.faq-question.active {
  background: var(--primary-green);
  color: var(--white);
}

.faq-icon {
  font-size: 20px;
  transition: var(--transition-fast);
}

.faq-question.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer.active {
  max-height: 500px;
}

.faq-answer-content {
  padding: var(--spacing-md);
  color: var(--text-medium);
  line-height: 1.7;
  border-top: 1px solid var(--gray-light);
}

/* ===================================
   12. OFFICES SECTION
   =================================== */
.offices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);

}

.office-card {
  background: var(--white);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-medium);
  border-top: 3px solid var(--primary-green);
}

.office-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--accent-gold);
}

.office-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--spacing-sm);
  background: var(--gray-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  font-size: 28px;
}

.office-card h3 {
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: var(--spacing-xs);
}

.office-card p {
  font-size: 15px;
  color: var(--text-medium);
}

/* ===================================
   OFFICES INTERACTIVE SECTION
   =================================== */
.offices-interactive {
  background: var(--bg-light);
}

.offices-layout {
  display: grid;
  grid-template-columns: 1fr 450px;
  gap: var(--spacing-xl);
  align-items: start;
  margin-top: var(--spacing-xl);
}

.offices-map-container {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 600px;
  position: sticky;
  top: 100px;
}

.map-wrapper {
  width: 100%;
  height: 100%;
}

.map-wrapper iframe {
  border: 0;
  border-radius: var(--radius-lg);
}

.map-info-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 25px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10;
  animation: slideInLeft 0.5s ease;
}

.map-info-content h3 {
  font-size: 22px;
  color: var(--primary-green);
  margin-bottom: 5px;
}

.map-info-content p {
  font-size: 14px;
  color: var(--text-medium);
  margin: 0;
}

.offices-cards-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.office-mini-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--white);
  border-radius: var(--radius-md);
  border-left: 4px solid transparent;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.3s ease;
}

.office-mini-card:hover {
  transform: translateX(-5px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--primary-green);
}

.office-mini-card.active {
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  border-left-color: var(--accent-gold);
  box-shadow: var(--shadow-lg);
}

.office-mini-card.active .office-card-content h4,
.office-mini-card.active .office-card-content p,
.office-mini-card.active .office-card-icon,
.office-mini-card.active .office-card-arrow {
  color: var(--white);
}

.office-card-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-light);
  border-radius: 50%;
  color: var(--primary-green);
  font-size: 22px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.office-mini-card.active .office-card-icon {
  background: rgba(255, 255, 255, 0.2);
}

.office-card-content {
  flex: 1;
}

.office-card-content h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.office-card-content p {
  font-size: 14px;
  color: var(--text-medium);
  margin: 0;
}

.office-card-arrow {
  color: var(--primary-green);
  font-size: 16px;
  transition: all 0.3s ease;
}

.office-mini-card:hover .office-card-arrow {
  transform: translateX(5px);
}

.view-all-offices {
  margin-top: var(--spacing-md);
  width: 100%;
  text-align: center;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===================================
   13. NEWS SECTION
   =================================== */
.news {
  background: var(--bg-light);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-medium);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.news-image {
  height: 220px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-content {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-meta {
  display: flex;
  gap: var(--spacing-sm);
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: var(--spacing-sm);
}

.news-content h3 {
  font-size: 20px;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

.news-content p {
  font-size: 16px;
  color: var(--text-medium);
  margin-bottom: var(--spacing-md);
  flex: 1;
}

.news-content .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ===================================
   PARTNERS SECTION
   =================================== */
.partners {
  background: var(--white);
  padding: var(--spacing-xxl) 0;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--spacing-lg);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.partner-item {
  text-align: center;
  padding: var(--spacing-md);
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  transition: var(--transition-medium);
  border: 2px solid transparent;
}

.partner-item:hover {
  filter: grayscale(0%);
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-green);
}

.partner-item img {
  max-height: 100px;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}

/* ===================================
   CALL TO ACTION SECTION
   =================================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  padding: var(--spacing-xxl) 0;
  text-align: center;
  color: var(--white);
}

.cta-section h2 {
  font-size: 40px;
  color: var(--white);
  margin-bottom: var(--spacing-sm);
}

.cta-section p {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--spacing-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  min-width: 200px;
}

/* ===================================
   15. FOOTER
   =================================== */
.footer {
  background: var(--gray-dark);
  color: var(--white);
  padding: var(--spacing-xxl) 0 var(--spacing-md);
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-about img {
  height: 70px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  margin-bottom: var(--spacing-md);
}

.footer-about img:hover {
  transform: scale(1.02);
}

.footer-about p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  font-size: 15px;
}

.footer-section h3 {
  color: var(--white);
  font-size: 20px;
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-gold);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  transition: var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
}

.footer-contact-item i {
  color: var(--accent-gold);
  font-size: 18px;
}

.footer-social {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition-fast);
}

.footer-social a:hover {
  background: var(--primary-green);
  transform: translateY(-3px);
}

/* FOOTER CERTIFICATIONS */
.footer-certifications {
  padding: var(--spacing-lg) 0 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--spacing-md);
}

.certifications-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}

.certification-item {
  padding: 5px;
  text-align: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.certification-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.certification-item:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.certification-item img {
  max-height: 80px;
  margin: 0 auto;
  object-fit: contain;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* Form Select Styling */
.form-control select,
select.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-md);
  font-size: 17px;
  color: var(--text-dark);
  background-color: var(--white);
  transition: var(--transition-fast);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-control select:focus,
select.form-control:focus {
  border-color: var(--primary-green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 160, 65, 0.1);
}

.form-control select option {
  padding: 10px;
}

/* ===================================
   WhatsApp FAB
   =================================== */
.whatsapp-fab {
  position: fixed;
  bottom: 30px;
  left: 30px;
  right: auto;
  width: 50px;
  height: 50px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9998;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.whatsapp-fab:hover {
  background: #128C7E;
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* RTL: قلب أماكن الواتساب / الطلوع لفوق */
html[dir="rtl"] .whatsapp-fab {
  right: 30px;
  left: auto;
}

html[dir="rtl"] .scroll-top-btn {
  left: 30px;
  right: auto;
}

/* ===================================
   Scroll to Top Button
   =================================== */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  left: auto;
  width: 50px;
  height: 50px;
  background: var(--primary-green);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: all 0.3s ease;
}

.scroll-top-btn:hover {
  background: var(--secondary-green);
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-top-btn.show {
  display: flex;
}

/* ===================================
   CAREER PAGE STYLES
   =================================== */

/* Career Hero Internal */
.hero-internal {
  padding: var(--spacing-xxl) 0;
  background: var(--bg-light);
}

/* Career Intro Grid */
.career-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
  margin-top: var(--spacing-xl);
}

.career-intro-text {
  padding-right: var(--spacing-lg);
}

.career-highlights {
  list-style: none;
  padding: 0;
}

.career-highlights li {
  position: relative;
  padding-left: 35px;
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
  color: var(--text-medium);
}

.career-highlights li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--primary-green);
  font-size: 18px;
}

.career-intro-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.career-intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Jobs Section */
.career-jobs {
  background: var(--white);
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.job-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: var(--transition-medium);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.job-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-green);
}

.job-card h3 {
  font-size: 22px;
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
}

.job-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: var(--spacing-md);
}

.job-location i {
  color: var(--primary-green);
}

.job-summary {
  font-size: 16px;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
}

.job-requirements {
  list-style: none;
  padding: 0;
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  flex: 1;
}

.job-requirements li {
  position: relative;
  padding-left: 25px;
  margin-bottom: var(--spacing-xs);
  font-size: 15px;
  color: var(--text-medium);
  line-height: 1.6;
}

.job-requirements li::before {
  content: '\f101';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-size: 14px;
}

/* Job Actions - الأزرار في آخر الكارت */
.job-actions {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: auto;
  flex-wrap: wrap;
}

/* Application Form */
.career-application {
  background: var(--bg-light);
}

.career-form {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: var(--spacing-xs);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-md);
  font-size: 16px;
  color: var(--text-dark);
  background-color: var(--white);
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 160, 65, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  align-items: flex-start;
}

.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-xs);
  font-size: 14px;
  color: var(--text-medium);
  cursor: pointer;
}

.form-privacy input[type="checkbox"] {
  margin-top: 3px;
  cursor: pointer;
}

/* Employee Benefits - خاص بصفحة الكاريير فقط */
.benefits {
  background: var(--bg-light);
}

.benefits .benefits-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  justify-content: center;
  margin-top: var(--spacing-xl);
}

.benefits .benefit-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-medium);
  flex: 0 0 calc(33.333% - var(--spacing-lg));
  max-width: calc(33.333% - var(--spacing-lg));
}

.benefits .benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.benefits .benefit-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 36px;
  transition: var(--transition-medium);
}

.benefits .benefit-card:hover .benefit-icon {
  transform: scale(1.1);
}

.benefits .benefit-card h3 {
  font-size: 20px;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

.benefits .benefit-card p {
  font-size: 16px;
  color: var(--text-medium);
  line-height: 1.7;
  margin: 0;
}

/* ===================================
   RESPONSIVE - TABLET
   =================================== */
@media (max-width: 1024px) {
  .container {
    padding: 0 15px;
  }

  .logo a {
    height: 110px;
    width: 140px;
  }

  .logo-default,
  .logo-scrolled {
    height: 110px;
    width: 140px;
  }

  .header.scrolled .logo a {
    height: 90px;
  }

  .header.scrolled .logo-default,
  .header.scrolled .logo-scrolled {
    height: 90px;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .offices-layout {
    grid-template-columns: 1fr;
  }

  .offices-map-container {
    height: 450px;
    position: relative;
    top: 0;
  }

  .offices-cards-container {
    order: -1;
  }

  .career-intro-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .career-intro-text {
    padding-right: 0;
  }

  .career-intro-image {
    max-height: 400px;
  }

  .jobs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits .benefit-card {
    flex: 0 0 calc(33.333% - var(--spacing-lg));
    max-width: calc(33.333% - var(--spacing-lg));
  }
}

/* ===================================
   RESPONSIVE - MOBILE
   =================================== */
@media (max-width: 768px) {

  body,
  p {
    font-size: 16px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 24px;
  }

  .section-title h2 {
    font-size: 32px;
  }

  .section-title p {
    font-size: 17px;
  }

  .logo a {
    height: 90px;
    width: 120px;
  }

  .logo-default,
  .logo-scrolled {
    height: 90px;
    width: 120px;
  }

  .header.scrolled .logo a {
    height: 75px;
  }

  .header.scrolled .logo-default,
  .header.scrolled .logo-scrolled {
    height: 75px;
  }

  .header-main {
    padding: 10px 0;
  }

  .header.scrolled .header-main {
    padding: 8px 0;
  }

  .mobile-menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    transition: right 0.4s ease;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu a {
    color: var(--text-dark);
    font-size: 16px;
    width: 100%;
    padding: var(--spacing-sm);
    border-bottom: 1px solid var(--gray-light);
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .language-switcher {
    width: 100%;
    background: var(--gray-light);
    justify-content: center;
    margin-top: var(--spacing-sm);
  }

  .language-switcher button {
    color: var(--text-dark);
  }

  .hero {
    height: 70vh;
    min-height: 500px;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .features-grid,
  .services-grid,
  .projects-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .offices-map-container {
    height: 350px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  .whatsapp-fab,
  .scroll-top-btn {
    bottom: 20px;
    width: 45px;
    height: 45px;
    font-size: 22px;
  }

  .whatsapp-fab {
    left: 20px;
  }

  .scroll-top-btn {
    right: 20px;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

  .partner-item img {
    max-height: 80px;
  }

  .career-intro-grid {
    grid-template-columns: 1fr;
  }

  .career-intro-image {
    max-height: 300px;
  }

  .jobs-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .career-form {
    padding: var(--spacing-lg);
  }

  .benefits .benefit-card {
    flex: 0 0 calc(50% - var(--spacing-lg));
    max-width: calc(50% - var(--spacing-lg));
  }

  .benefits .benefit-icon {
    width: 70px;
    height: 70px;
    font-size: 30px;
  }

  .benefits .benefit-card h3 {
    font-size: 18px;
  }

  .benefits .benefit-card p {
    font-size: 15px;
  }
}


/* Responsive Grid for 4-Card Sections */
.grid-responsive-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

@media (max-width: 992px) {
  .grid-responsive-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .grid-responsive-4 {
    grid-template-columns: 1fr;
  }
}


/* Responsive Grid for 3-Card Sections */
.grid-responsive-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 992px) {
  .grid-responsive-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .grid-responsive-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {

  body,
  p {
    font-size: 15px;
  }


  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 28px;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .section-title p {
    font-size: 16px;
  }

  .logo a {
    height: 75px;
    width: 100px;
  }

  .logo-default,
  .logo-scrolled {
    height: 75px;
    width: 100px;
  }

  .header.scrolled .logo a {
    height: 65px;
  }

  .header.scrolled .logo-default,
  .header.scrolled .logo-scrolled {
    height: 65px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 14px;
  }

  .partners-grid {
    grid-template-columns: 1fr;
  }

  .career-highlights li {
    padding-left: 30px;
    font-size: 15px;
  }

  .job-card {
    padding: var(--spacing-md);
  }

  .job-card h3 {
    font-size: 20px;
  }

  .career-form {
    padding: var(--spacing-md);
  }

  .benefits .benefit-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ===================================
   VENDOR REGISTRATION STYLES
   =================================== */
.vendor-form {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .vendor-form {
    padding: var(--spacing-md);
  }
}

/* ===================================
   PARTNERS SECTION STYLES
   =================================== */
.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}

.partner-item {
  width: 140px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.partner-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.partner-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: all 0.3s ease;
}

/* ===================================
   GLOBAL IMAGE-TEXT ROW
   =================================== */
.img-text-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.img-col img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  object-fit: contain;
}

@media (max-width: 992px) {
  .img-text-row {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .img-col {
    order: 1;
    width: 100%;
  }

  .text-col {
    order: 2;
    width: 100%;
  }
}

/* ===================================
   VISION GRID (FORCE 3-COL or 1-COL)
   =================================== */
.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1065px) {
  .vision-grid {
    grid-template-columns: 1fr;
  }

  .vision-grid>div {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .vision-grid>div h3,
  .vision-grid>div p {
    text-align: center;
  }
}

/* ===================================
   DISTINGUISH GRID (5 Cols -> 2 Cols -> 1 Col)
   =================================== */
.distinguish-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

@media (max-width: 992px) {
  .distinguish-grid {
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
  }

  /* Center the 5th item in the last row */
  .distinguish-grid>div:nth-child(5) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 8px);
    /* Half width minus half gap */
  }
}

@media (max-width: 576px) {
  .distinguish-grid {
    grid-template-columns: 1fr;
  }

  .distinguish-grid>div:nth-child(5) {
    grid-column: auto;
    width: 100%;
  }
}

/* Footer Certifications Mobile Sizing */
@media (max-width: 576px) {
  .certification-item {
    width: 60px;
    height: 60px;
    padding: 3px;
  }
}

/* ===================================
   NEWS GRID LAYOUT
   =================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Strict 3 columns */
  gap: 32px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-medium);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.news-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  /* Enforce 16:9 ratio */
  overflow: hidden;
  position: relative;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Cover container without distortion */
  transition: var(--transition-slow);
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* Large Screen Adjustments */
@media (min-width: 1500px) {
  .certifications-grid {
    gap: 48px;
  }
}

/* ===================================
   PARTNERS SECTION
   =================================== */
.partners-grid {
  display: flex;
  flex-direction: column;
  /* Mobile: Vertical */
  align-items: center;
  gap: 32px;
  margin-top: 24px;
}

.partner-item {
  width: 160px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.partner-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: all 0.3s ease;
}

.partner-item:hover img {
  transform: scale(1.1);
}

/* Tablet (>= 768px) */
@media (min-width: 768px) {
  .partners-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
  }

  .partner-item {
    /* Approx 3 items per row accounting for gaps */
    width: 30%;
    max-width: 220px;
    height: 120px;
  }
}

/* Large Screens Adjustments (>= 1024px) */
@media (min-width: 1024px) {
  .partners-grid {
    flex-wrap: nowrap;
    /* Force one row */
    gap: 60px;
  }

  .partner-item {
    width: 180px;
    height: 120px;
  }
}

/* ===================================
   CONTACT INFO GRID
   =================================== */
.contact-info-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 48px;
  grid-template-columns: 1fr;
  /* Default Mobile: 1 Column */
}

@media (min-width: 768px) {
  .contact-info-grid {
    grid-template-columns: repeat(2, 1fr);
    /* Tablet: 2 Columns */
  }
}

@media (min-width: 1024px) {
  .contact-info-grid {
    grid-template-columns: repeat(4, 1fr);
    /* Desktop: 4 Columns */
  }
}

/* ===================================
   MEDIA & PRESS SECTION
   =================================== */
.media-press-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 64px;
  padding: 40px 0;
}

.media-item {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 200px;
  height: 120px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.media-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(46, 125, 50, 0.15);
  border-color: var(--primary-green);
}

.media-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: all 0.4s ease;
}

.media-item:hover img {
  transform: scale(1.05);
}