:root {
    --primary-green: #355E3B; /* Rich Olive Green for organic depth */
    --secondary-green: #6CC4A1; /* Vibrant Mint Green for freshness */
    --accent-earthy: #E8B923; /* Warm Golden Ochre for quality and warmth */
    --text-dark: #2A2A2A; /* Deep Charcoal for readability */
    --bg-light: #FDFBF5; /* Soft Cream for a clean, natural backdrop */
    --font-size-base: 16px;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow-x: hidden; /* Prevent horizontal overflow at root level */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    transition: background-color 0.6s ease-in-out, color 0.6s ease-in-out;
    font-size: var(--font-size-base);
}

body[dir="rtl"] {
    text-align: right;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem clamp(1rem, 5vw, 2rem);
    background-color: var(--primary-green);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
    max-width: 100vw; /* Ensure no overflow */
    animation: fadeInHeader 0.8s ease-in-out;
}

@keyframes fadeInHeader {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo img {
    height: clamp(70px, 10vw, 70px);
    border-radius: 8px;
    object-fit: contain;
    max-width: 100%; /* Prevent image overflow */
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.logo img:hover {
    transform: scale(1.1) rotate(3deg);
    opacity: 0.92;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 3vw, 2rem);
    margin: 0;
    padding: 0;
}

.desktop-nav a {
    text-decoration: none;
    color: #ffffff;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    transition: color 0.3s ease, transform 0.3s ease;
}

.desktop-nav a:hover {
    color: var(--accent-earthy);
    transform: translateY(-3px);
}

#languageSelect {
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--secondary-green);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

#languageSelect:hover {
    border-color: var(--accent-earthy);
    box-shadow: 0 0 10px rgba(232, 185, 35, 0.4); /* Updated to use Golden Ochre RGB */
    transform: scale(1.05);
}








 .hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
  }

  .hamburger span {
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    width: 100%;
    display: block;
    transition: 0.3s;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Mobile nav menu styles */
  .mobile-nav {
    display: none;
    position: absolute;
    top: 70px;
    right: 20px;
    background: white;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    z-index: 999;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }

  .mobile-nav.active {
    display: block;
  }

  .mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mobile-nav a {
    color: #210A62;
    font-weight: 500;
    text-decoration: none;
  }

  /* Responsive: show hamburger only on small screens */
  @media (max-width: 768px) {
    .hamburger {
      display: flex;
    }

    .desktop-nav {
      display: none;
    }
  }
/* ============================
   CERT HERO INTRO
============================ */
.cert-hero {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
}

.cert-hero-overlay {
  background: linear-gradient(135deg, rgba(53,94,59,0.9), rgba(0,0,0,0.6));
  padding: 60px 25px;
  width: 100%;
  color: #fff;
}

.cert-badge {
  display: inline-block;
  background: rgba(232,185,35,0.15);
  color: #E8B923;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.cert-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 12px;
}

.cert-hero p {
  max-width: 720px;
  margin: auto;
  font-size: 16px;
  line-height: 1.7;
  color: #e6f2ea;
}

/* ============================
   CERT SECTION
============================ */
.cert-section {
  padding: 90px 20px;
  background: linear-gradient(to bottom, #f9fbf8, #ffffff);
  text-align: center;
}

.cert-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--primary-green);
  margin-bottom: 6px;
}

.cert-subtitle {
  font-size: 15px;
  color: #777;
  margin-bottom: 50px;
}

/* Grid */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 35px;
  max-width: 1100px;
  margin: auto;
}

/* Card */
.cert-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
}

.cert-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(53,94,59,0.1), rgba(108,196,161,0.1));
  opacity: 0;
  transition: 0.4s;
}

.cert-card:hover::before {
  opacity: 1;
}

.cert-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 22px 55px rgba(0,0,0,0.18);
}

/* Image */
.cert-img {
  background: linear-gradient(135deg, #eef7f0, #f7fbf8);
  padding: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cert-img img {
  max-height: 170px;
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
  background: #fff;
}

/* Info */
.cert-info {
  padding: 22px 18px 26px;
  text-align: center;
}

.cert-info h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #222;
}

.cert-info p {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.cert-info span {
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary-green);
  letter-spacing: 0.3px;
}

/* ============================
   MODAL (unchanged)
============================ */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.modal-content {
  max-width: 85%;
  max-height: 70%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.download-btn {
  background: #2e7d32;
  color: #fff;
  padding: 10px 22px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
}

.download-btn:hover {
  background: #256628;
}

.close {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 35px;
  color: #fff;
  cursor: pointer;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.modal-content {
  max-width: 85%;
  max-height: 70%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.download-btn {
  background: #2e7d32;
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
}

.download-btn:hover {
  background: #256628;
}

.close {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 35px;
  color: #fff;
  cursor: pointer;
}
