/* css/style.css
   MARTCO-INTERLINK VENTURES LIMITED
   Dark-Elegant / Gold Accent – Modernized
   --------------------------------------------------
   Use this file as the single stylesheet for the site.
*/

/* -------------------------
   THEME VARIABLES
   /* GLOBAL MOBILE FIX *\/

   ------------------------- */
  html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  }
:root{
  /* colors */
  --bg-900: #031123;          /* deep navy */
  --bg-800: #081826;
  --panel:  #0b2433;
  --glass: rgba(255,255,255,0.04);
  --text-100: #f5f7f9;
  --text-300: #bfcbd6;
  --muted: #93a4b3;
  --accent: #d4af37;          /* gold accent chosen */
  --accent-2: rgba(212,175,55,0.12);
  --success: #3ad29f;

  /* layout */
  --container-w: 1200px;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-lg: 0 18px 48px rgba(2,8,23,0.6);
  --elev: 0 8px 30px rgba(2,8,23,0.55);

  /* typography */
  --ff-sans: "Inter", "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sz-base: 16px;
  --sz-h1: 56px;
  --sz-h2: 34px;
  --sz-h3: 20px;
  --line: 1.6;

  /* breakpoints */
  --bp-md: 992px;
  --bp-sm: 820px;
}

/* import font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

/* -------------------------
   RESET & BASE
   ------------------------- */
*,*::before,*::after{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--ff-sans);
  font-size:var(--sz-base);
  color:var(--text-100);
  background:linear-gradient(180deg,var(--bg-900),var(--bg-800));
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:var(--line);
}

/* helper container */
.container{
  max-width:var(--container-w);
  margin:0 auto;
  padding:0 20px;
}

/* small helpers */
.center{text-align:center}
.hidden{display:none!important}
.kicker{display:inline-block;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,0.03);color:var(--accent);font-weight:700;letter-spacing:0.4px}

/* links & buttons */
a{color:var(--text-100);text-decoration:none;transition:opacity .15s ease}
a:hover{opacity:.9}
.btn{
  display:inline-block;padding:12px 18px;border-radius:10px;background:linear-gradient(180deg,var(--accent), #b98f2d);
  color:#081422;font-weight:700;box-shadow:0 10px 30px rgba(0,0,0,0.45);text-decoration:none;
  transition:transform .16s ease, box-shadow .16s ease, opacity .12s ease;
}
.btn:hover{transform:translateY(-4px);box-shadow:0 18px 50px rgba(0,0,0,0.55)}
.btn.ghost{background:transparent;border:1px solid rgba(212,175,55,0.12);color:var(--text-100)}

/* focus & accessibility */
:focus{outline:3px solid rgba(212,175,55,0.12);outline-offset:3px;border-radius:8px}

/* -------------------------
   HEADER / NAVBAR (transparent over hero -> solid on scroll)
   ------------------------- */
header{
  position:fixed;inset:0 0 auto 0;z-index:120;
  background:transparent;backdrop-filter:blur(6px);
  transition:background .32s ease, box-shadow .32s ease, transform .28s ease;
}
header.scrolled{
  background:linear-gradient(180deg, rgba(2,10,18,0.85), rgba(2,10,18,0.7));
  box-shadow: 0 8px 26px rgba(0,0,0,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.02);
}

.nav-container, .header-container, .header-inner{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  max-width:var(--container-w);margin:0 auto;padding:14px 20px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent); /* your gold color */
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "Inter", sans-serif;
  text-decoration: none;
}

.logo:hover {
  color: #f5f7f9; /* light color on hover */
}


/* nav - support both .nav-links and .main-nav ul structures */
.nav-links, .main-nav ul{
  display:flex;gap:22px;align-items:center;list-style:none;padding:0;margin:0;
}
.nav-links a, .main-nav ul li a{
  color:var(--text-100);font-weight:600;padding:8px 12px;border-radius:8px;transition:background .12s ease,color .12s ease,transform .12s;
}
.nav-links a:hover, .main-nav ul li a:hover{background:rgba(255,255,255,0.02);color:var(--accent);transform:translateY(-2px)}
.nav-links a.active, .main-nav ul li a.active{background:linear-gradient(180deg, rgba(212,175,55,0.06), rgba(212,175,55,0.03));color:var(--accent)}

/* search / actions */
.header-actions{display:flex;align-items:center;gap:12px}
.search-field{display:flex;align-items:center;background:rgba(255,255,255,0.02);padding:8px;border-radius:10px;border:1px solid rgba(255,255,255,0.02)}
.search-field input{background:transparent;border:0;color:var(--text-100);padding:6px 8px;min-width:180px}

/* nav toggle (mobile) */
.nav-toggle{display:none;background:transparent;border:0;color:var(--text-100);font-size:22px;padding:8px;cursor:pointer}
/* -------------------------
   HERO (large, modern, responsive)
   ------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 90vh;
  padding-top: 86px; /* space for fixed header */
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

/* Background slides */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .9s ease, transform .9s ease;
}
.hero-slider .slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Soft vignette overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,10,18,0.36), rgba(2,10,18,0.56));
  z-index: 1;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 20px;
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.hero-left {
  flex: 1;
  min-width: 0;
}

.hero-right {
  flex: 0 0 420px;
  max-width: 38%;
}

/* Text styles */
.hero h1 {
  font-size: clamp(28px, 4.4vw, 52px);
  margin: 0 0 12px;
  font-weight: 800;
  color: var(--text-100);
  line-height: 1.1;
}

.hero p.lead {
  margin: 0 0 18px;
  color: var(--text-300);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.6;
}

.hero .kicker {
  margin-bottom: 14px;
  font-size: 16px;
  color: var(--accent);
  font-weight: 600;
}

/* Hero image */
.hero-figure img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 6px solid rgba(255,255,255,0.03);
  display: block;
  height: auto;
  object-fit: cover;
}

/* CTA buttons */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* -------------------------
   RESPONSIVE
   ------------------------- */
@media (max-width: 992px) {
  .hero {
    height: auto;
    min-height: 80vh;
  }
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  .hero-left, .hero-right {
    width: 100%;
    max-width: 100%;
  }
  .hero-right {
    order: -1; /* put image above text on mobile */
  }
  .hero h1 {
    font-size: clamp(26px, 6vw, 42px);
  }
  .hero p.lead {
    font-size: 16px;
  }
}

/* -------------------------
   SECTION BASE
   ------------------------- */
section {
  padding: 64px 0;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.section-header {
  max-width: 840px;
  margin-bottom: 22px;
  text-align: center;
}

h2.section-title {
  font-size: var(--sz-h2);
  margin: 0 0 8px;
  color: var(--text-100);
}

p.section-sub {
  color: var(--muted);
  margin: 0 auto;
  max-width: 640px;
}

/* -------------------------
   SERVICES / CARDS
   ------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.02);
  box-shadow: var(--elev);
  transition: transform .18s ease, box-shadow .18s ease;
}

.service-card .media {
  height: 220px;
  overflow: hidden;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.2, .9, .2, 1);
}

.service-card .body {
  padding: 18px;
}

.service-card h3 {
  margin: 0 0 8px;
  color: var(--text-100);
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card:hover img {
  transform: scale(1.06);
}

/* -------------------------
   PROJECT GALLERY
   ------------------------- */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.project-card {
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  box-shadow: var(--elev);
  transition: transform .18s;
}

.project-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.project-card .meta {
  padding: 12px;
  text-align: center;
}

.project-card h4 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--text-100);
}

.project-card p {
  margin: 0;
  color: var(--muted);
}

.project-card:hover {
  transform: translateY(-10px);
}

/* -------------------------
   OFFERINGS GRID
   ------------------------- */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.offer-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding: 18px;
  border-radius: 12px;
  box-shadow: var(--elev);
  transition: transform .16s;
  text-align: center;
}

.offer-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--accent-2);
  color: var(--accent);
  margin: 0 auto 12px;
}

.offer-card h4 {
  margin: 0 0 8px;
  color: var(--text-100);
}

.offer-card p {
  margin: 0;
  color: var(--muted);
}

.offer-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 60px rgba(2, 8, 23, 0.65);
}

/* -------------------------
   METRICS / COUNTERS
   ------------------------- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.metric {
  padding: 20px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.006));
  text-align: center;
  box-shadow: var(--elev);
}

.metric .value, .counter {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 6px;
}

.metric .label {
  color: var(--muted);
  font-weight: 600;
}

/* -------------------------
   RESPONSIVE FIXES
   ------------------------- */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .offer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid,
  .project-gallery,
  .offer-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 48px 16px;
  }

  .service-card .media {
    height: 180px;
  }

  .project-card img {
    height: 180px;
  }
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
  background-color: #0d0d0d;
  color: #fff;
  padding: 100px 20px;
  text-align: center;
}

.testimonials h2 {
  color: #d4af37;
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.testimonials .subtitle {
  max-width: 700px;
  margin: 0 auto 60px;
  color: #ccc;
  font-size: 1rem;
  line-height: 1.6;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: #1a1a1a;
  border-radius: 18px;
  padding: 40px 30px;
  position: relative;
  text-align: left;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
}

.testimonial-card .quote {
  font-size: 3rem;
  color: #d4af37;
  position: absolute;
  top: 10px;
  left: 25px;
  opacity: 0.3;
}

.testimonial-card p {
  font-size: 1rem;
  color: #ddd;
  line-height: 1.6;
  margin-bottom: 25px;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.client-info img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #d4af37;
}

.client-info h4 {
  font-size: 1.1rem;
  color: #fff;
  margin: 0;
}

.client-info span {
  font-size: 0.9rem;
  color: #bbb;
}

/* -------------------------
   KNOWLEDGE / BLOG CARDS
   ------------------------- */
.knowledge-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.blog-card{border-radius:12px;overflow:hidden;background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));box-shadow:var(--elev);transition:transform .16s}
.blog-card img{width:100%;height:170px;object-fit:cover}
.blog-body{padding:16px}
.blog-body h3{margin:0 0 8px;color:var(--text-100)}
.blog-body p{margin:0;color:var(--muted)}
.blog-card:hover{transform:translateY(-8px)}

/* -------------------------
   CONTACT / FORMS
   ------------------------- */
.contact-grid{display:grid;grid-template-columns:1fr 420px;gap:28px}
.form-card{padding:18px;border-radius:12px;background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));box-shadow:var(--elev)}
label{display:block;margin-bottom:6px;color:var(--text-100);font-weight:600}
input[type="text"], input[type="email"], input[type="tel"], textarea{
  width:100%;padding:12px;border-radius:10px;border:1px solid rgba(255,255,255,0.04);background:rgba(255,255,255,0.02);color:var(--text-100)
}
input:focus, textarea:focus{box-shadow:0 18px 48px rgba(3,8,15,0.55);border-color:var(--accent)}
textarea{min-height:140px;resize:vertical}

/* map */
.map-card iframe{width:100%;height:300px;border-radius:10px;border:0;display:block}

/* -------------------------
   FOOTER
   ------------------------- */
footer{
  background:linear-gradient(180deg,#02060a,#07101a);color:var(--text-100);padding:48px 0 28px;border-top:6px solid rgba(212,175,55,0.06)
}
.footer-inner{display:flex;gap:28px;align-items:flex-start;justify-content:space-between;max-width:var(--container-w);margin:0 auto;padding:0 20px}
.footer-col h4{margin:0 0 10px;color:var(--text-100)}
.footer-col p, .footer-col a{color:var(--muted);margin:6px 0;display:block}
.footer-bottom{text-align:center;padding-top:18px;color:rgba(255,255,255,0.44);font-size:14px}

/* -------------------------
   SCROLL REVEAL UTILITY
   ------------------------- */
.fade-in{opacity:0;transform:translateY(12px);transition:opacity .64s ease, transform .64s ease}
.fade-in.visible{opacity:1;transform:none}

/* small helpers */
.mt-4{margin-top:24px}
.center{text-align:center}
/* --- MOBILE RESPONSIVENESS FIX --- */
@media (max-width: 820px) {

  /* ===== NAVBAR ===== */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #061018; /* dark background */
    padding: 12px 20px;
    position: relative;
    z-index: 100;
  }

  /* Hide the nav links by default */
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-color: #061018;
    position: absolute;
    top: 60px; /* below navbar */
    left: 0;
    padding: 20px 0;
    gap: 10px;
  }

  /* Show menu when active */
  .nav-links.active {
    display: flex;
  }

  /* Navbar links styling */
  .nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 0;
    width: 100%;
    text-align: center;
    transition: background 0.3s;
  }

  .nav-links a:hover {
    background-color: #f9b81f;
    color: #061018;
  }

  /* Logo */
  .logo {
    font-size: 1.2rem;
    color: #f9b81f;
    font-weight: 700;
  }

  /* Hide search bar (optional) */
  .search-bar {
    display: none;
  }

  /* Hamburger icon */
  .menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 1.8rem;
    color: #f9b81f;
  }

  /* ===== HERO SECTION ===== */
  .hero {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    min-height: 70vh;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .hero-content p {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 90%;
    margin: 0 auto;
  }

  .hero img, .hero video {
    width: 100%;
    height: auto;
  }
}

/* -------------------------
   POLISH: micro interactions
   ------------------------- */
button, .btn, a{transition:all .16s ease}

/* -------------------------
   SOME OF OUR PROJECTS (Equal small images)
   ------------------------- */
.projects {
  text-align: center;
  padding: 80px 0;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* responsive layout */
  gap: 20px;
  margin-top: 30px;
}

.project-gallery img {
  width: 100%;
  height: 360px; /* ✅ adjust size here */
  object-fit: cover; /* crops neatly while keeping proportions */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
}

.projects .btn {
  margin-top: 30px;
}

.about-hero {
  min-height: 50vh;  /* reduce hero size */
}
.about-hero {
  min-height: 50vh;  /* reduce hero size */
}
.video-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
  height: 820px; /* ↓ Reduced height */
}

.video-container video {
  width: 100%;
  height: 100%; /* make video fill the container */
  object-fit: cover; /* keeps the video properly cropped */
  display: block;
  border-radius: 16px;
}
.about-hero {
  background: linear-gradient(to bottom, #061018, #0b1a26); /* professional dark blue tone */
  color: #ffffff;
  height: 70vh; /* adjust to fit your preference */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('images/about-bg.jpg') center/cover no-repeat;
  opacity: 0.25; /* subtle overlay image */
  z-index: 0;
}

.about-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.about-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.about-hero p {
  font-size: 1.1rem;
  color: #d0d6dc;
  line-height: 1.6;
}
.page-hero {
  height: 75vh;
  background: linear-gradient(to bottom, rgba(6, 16, 24, 0.95), rgba(11, 26, 38, 0.98)),
              var(--bg-image) center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.page-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1rem;
  animation: fadeInDown 1s ease;
}

.page-hero p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #cdd6de;
  animation: fadeInUp 1.2s ease;
}

/* Optional animated gradient overlay for depth */
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,215,0,0.05), rgba(255,255,255,0.05));
  opacity: 0.2;
  z-index: 1;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-hero {
    height: 60vh;
  }

  .page-hero h1 {
    font-size: 2.2rem;
  }

  .page-hero p {
    font-size: 1rem;
  }
}
/* Universal Page Hero Section */
.page-hero {
  height: 75vh;
  background: linear-gradient(to bottom, rgba(6, 16, 24, 0.95), rgba(11, 26, 38, 0.98)),
              var(--bg-image) center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.page-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1rem;
  animation: fadeInDown 1s ease;
}

.page-hero p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #cdd6de;
  animation: fadeInUp 1.2s ease;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,215,0,0.05), rgba(255,255,255,0.05));
  opacity: 0.2;
  z-index: 1;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .page-hero {
    height: 60vh;
  }

  .page-hero h1 {
    font-size: 2.2rem;
  }

  .page-hero p {
    font-size: 1rem;
  }
}
/* 🌟 Universal Page Hero Section */
.page-hero {
  height: 75vh;
  background: linear-gradient(to bottom, rgba(6, 16, 24, 0.95), rgba(11, 26, 38, 0.98)),
              var(--bg-image) center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.page-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1rem;
  animation: fadeInDown 1s ease;
}

.page-hero p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #cdd6de;
  animation: fadeInUp 1.2s ease;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,215,0,0.05), rgba(255,255,255,0.05));
  opacity: 0.2;
  z-index: 1;
}

/* ✨ Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 📱 Responsive Design */
@media (max-width: 768px) {
  .page-hero {
    height: 60vh;
  }

  .page-hero h1 {
    font-size: 2.2rem;
  }

  .page-hero p {
    font-size: 1rem;
  }
}
.navbar {
  background:transparent;
  color: #fff;
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-links {
  display: flex;
  gap: 24px;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}
.nav-links a:hover {
  color: #f9b81f;
}

.menu-toggle {
  font-size: 28px;
  cursor: pointer;
  color: #f9b81f;
}
 /* When active, show it */
  .nav-menu.active {
    display: block;
    background: #f9b81f;
    position: absolute;
    top: 60px;
    right: 20px;
    width: 200px;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }

  .nav-menu a {
    display: block;
    padding: 10px;
    color: #1976D2;
  }

/* Show it only when screen width is below 900px (you can adjust this) */
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #0d0d0d;
    position: absolute;
    top: 60px;
    left: 0;
    text-align: center;
  }
  .nav-links.open {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}
.btn {
  display: inline-block;
  background-color: #1976D2; /* Ujenzi Bora blue */
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #1258a3;
  transform: translateY(-2px);
}

.cta-container {
  margin-top: 1.5rem;
  text-align: center;
}
/* ===== KNOWLEDGE SERIES ===== */
.knowledge-series {
  background: #f9f9f9; /* light gray background like Ujenzi Bora */
  padding: 80px 0;
}

.knowledge-series h2 {
  text-align: center;
  color: #1976D2; /* Ujenzi blue */
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.knowledge-series .intro {
  text-align: center;
  color: #555;
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.knowledge-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.knowledge-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.knowledge-card .content {
  padding: 20px;
}

.knowledge-card h3 {
  color: #1976D2;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.knowledge-card p {
  color: #666;
  line-height: 1.6;
  font-size: 0.98rem;
  margin-bottom: 1.2rem;
}

.knowledge-card .btn {
  display: inline-block;
  background-color: #1976D2;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.knowledge-card .btn:hover {
  background-color: #1258a3;
  transform: translateY(-3px);
}

/* Hover effect for the entire card */
.knowledge-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

