/* =========================================================
   TalentZiel — Blog & Insights Page
   ========================================================= */

:root {
  /* Colors */
  --color-navy: #0B1B42;
  --color-navy-dark: #081432;
  --color-blue: #1B5CFF;
  --color-blue-dark: #144BDB;
  --color-text-dark: #14213D;
  --color-text-body: #5B6478;
  --color-text-muted: #8A93A6;
  --color-bg-hero: #F8F7FC
  --color-bg-hero-2: #E7EEFC;
  --color-white: #FFFFFF;
  --color-border: #E7EAF1;
  --color-chip-bg: #FFFFFF;
  --color-chip-text: #4B5468;
  --color-blob: #DCE6FA;
  --color-blob-light: #E9EFFB;

  /* Typography */
  --font-heading: 'Fredoka', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-card: 0 10px 30px rgba(20, 33, 61, 0.08);
  --shadow-card-hover: 0 18px 40px rgba(20, 33, 61, 0.14);
  --shadow-header: 0 2px 16px rgba(20, 33, 61, 0.06);
  --shadow-search: 0 12px 30px rgba(20, 33, 61, 0.08);

  /* Layout */
  --container-width: 1400px;
  --header-height: 84px;
}

/* =========================================================
   Reset & Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text-body);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; margin: 0; padding: 0; }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-navy); margin: 0; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-blue);
  color: var(--color-white);
  padding: 12px 24px;
  font-size: 0.95rem;
  box-shadow: 0 8px 18px rgba(27, 92, 255, 0.28);
}

.btn-primary:hover {
  background: var(--color-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(27, 92, 255, 0.35);
}

/* =========================================================
   Header / Navbar
   ========================================================= */
#main-header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 100;
            transition: transform .3s ease-in-out,
                        background-color .3s ease;
        }

        .header-hidden {
            transform: translateY(-100%);
        }

        .header-scrolled {
            background: rgba(248, 247, 252, .95);
            backdrop-filter: blur(8px);
            box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1);
        }

        .material-symbols-outlined {
            font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
        }

/* =========================================================
   Hero Section
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-bg-hero) 0%, var(--color-bg-hero-2) 100%);
  padding: 10px 0 6px;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  background: var(--color-blob);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.hero-blob-left {
  width: 340px; height: 340px;
  left: -170px; top: 40px;
}

.hero-blob-right {
  width: 420px; height: 420px;
  right: -200px; bottom: -180px;
  background: var(--color-blob);
  opacity: 0.55;
}

.hero-blob-small-left {
  width: 26px; height: 26px;
  left: 10%; top: 18%;
  background: var(--color-blob-light);
}

.hero-blob-small-right {
  width: 34px; height: 34px;
  right: 22%; top: 46%;
  background: var(--color-blob-light);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  background: var(--color-white);
  color: var(--color-blue);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(20, 33, 61, 0.06);
  margin-bottom: 22px;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-navy);
  margin-bottom: 18px;
}

.text-accent { color: var(--color-blue); }

.hero-subtitle {
  max-width: 620px;
  font-size: 1.02rem;
  color: var(--color-text-body);
  margin-bottom: 34px;
}

/* Search bar */
.search-bar {
  width: 100%;
  max-width: 620px;
  display: flex;
  align-items: center;
  background: var(--color-white);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-search);
  padding: 6px 6px 6px 26px;
  margin-bottom: 40px;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-dark);
  background: transparent;
  padding: 12px 0;
}

.search-input::placeholder { color: var(--color-text-muted); }

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-blue);
  color: var(--color-white);
  border: none;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-btn:hover { background: var(--color-blue-dark); transform: scale(1.04); }

/* Topics filter */
.topics-filter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.topics-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-dark);
}

.topic-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.chip {
  background: var(--color-chip-bg);
  color: var(--color-chip-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 9px 22px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.chip:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
}

.chip.active {
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
  box-shadow: 0 8px 16px rgba(27, 92, 255, 0.25);
}

/* =========================================================
   Blog Section
   ========================================================= */
.blog-section {
  padding: 64px 0 96px;
  background: var(--color-white);
}

.category-section {
  margin-bottom: 64px;
}

.category-section:last-child { margin-bottom: 0; }

.category-header {
  margin-bottom: 28px;
  max-width: 760px;
}

.category-badge {
  display: inline-block;
  background: var(--color-bg-hero);
  color: var(--color-blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.category-intro {
  font-size: 0.98rem;
  color: var(--color-text-body);
  margin: 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}

.card-image-wrap { cursor: pointer; }
.card-title a { color: inherit; transition: color 0.2s ease; }
.card-title a:hover { color: var(--color-blue); }

.blog-card, .featured-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover, .featured-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .card-image { transform: scale(1.06); }

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-navy);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

.card-body { padding: 22px 22px 24px; }

.card-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.icon-cal { color: var(--color-text-muted); flex-shrink: 0; }

.card-title {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--color-text-body);
  margin-bottom: 16px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-blue);
  transition: gap 0.2s ease, color 0.2s ease;
}

.read-more svg { transition: transform 0.2s ease; }

.read-more:hover { gap: 10px; color: var(--color-blue-dark); }

/* Featured card (Success Stories) */
.featured-card {
  display: grid;
  grid-template-columns: 340px 1fr;
}

.featured-image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  overflow: hidden;
}

.featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-body {
  padding: 30px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-title {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 10px;
}

.no-results {
  text-align: center;
  color: var(--color-text-muted);
  padding: 40px 0;
  font-size: 0.95rem;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: #0F172A;
  color: white;
  padding-top: 96px;
  padding-bottom: 48px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

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

.footer-logo-img { width: 40px; height: 40px; object-fit: contain; }

.footer-logo-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: white;
}

.footer-tagline {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 2.5;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  color: white;
}

.social-icon:hover {
  background: var(--color-blue);
}

.footer-heading {
  color: white;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 32px;
  font-family: var(--font-heading);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin-bottom: 16px;
  font-size: 15px;
}

.footer-list a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-list a:hover {
  color: white;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: white;
}

.footer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
  margin-top: 80px;
}

.footer-bottom-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

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

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

.footer-bottom-links a:hover {
  color: white;
}

/* =========================================================
   Responsive — Laptop (1280px)
   ========================================================= */
@media (max-width: 1280px) {
  :root { --container-width: 1080px; }
}

/* =========================================================
   Responsive — Tablet (768px)
   ========================================================= */
@media (max-width: 900px) {
  .nav-list { gap: 22px; }
  .hero { padding: 12px 0 8px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-card { grid-template-columns: 1fr; display: grid; }
  .featured-image-wrap { aspect-ratio: 16 / 10; min-height: 0; }
  .header-cta { display: none; }

  /* Create unified grid layout for blog section */
  .blog-section .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
  .blog-grid {
    display: contents;
  }
  .blog-card {
    grid-column: span 1;
  }
  .featured-card {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  /* Footer responsive */
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

@media (max-width: 600px) {
  .container { padding: 0 24px; }

  /* Reset blog section to single column for mobile */
  .blog-section .container {
    display: block;
  }
  .blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .blog-card {
    grid-column: span 1;
  }
  .featured-card {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  /* Footer responsive */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 24px;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom-links {
    flex-direction: column;
    gap: 16px;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-header);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 99;
  }

  .main-nav.open { max-height: 320px; }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 16px;
  }

  .nav-list li { width: 100%; }
  .nav-link { display: block; padding: 12px 0; width: 100%; }
  .nav-link.active::after { display: none; }

  .header-cta { display: none; }
  .mobile-toggle { display: flex; }

  .hero { padding: 12px 0 8px; }
  .hero-title { font-size: 2.1rem; }
  .hero-subtitle { font-size: 0.95rem; }

  .featured-image-wrap { aspect-ratio: 16 / 9; min-height: 0; }
  .featured-body { padding: 24px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 36px;
  }
}

/* =========================================================
   Responsive — Mobile (375px)
   ========================================================= */
@media (max-width: 480px) {
  .container { padding: 0 18px; }

  .logo-tagline { display: none; }

  .hero-title { font-size: 1.7rem; }
  .eyebrow { font-size: 0.62rem; padding: 6px 14px; }

  .search-bar { padding: 5px 5px 5px 18px; }
  .search-input { font-size: 0.88rem; }

  .chip { padding: 8px 16px; font-size: 0.8rem; }

  .card-body { padding: 18px; }
  .featured-body { padding: 20px; }
  .featured-title { font-size: 1.2rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}
