
:root {
  --orange: #ff7b00;
  --light-grey: #f4f4f4;
  --mid-grey: #e2e2e2;
  --text-grey: #666666;
  --dark-grey: #444444;
  --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--light-grey); color: var(--dark-grey); }

/* Blog page header nav color override */

.blog-page header nav a {
  color: #5a5a5a;          /* dark grey */
  font-weight: 600;
}

.blog-page header nav a:hover {
  color: #ff7b00;         /* orange on hover */
}

/* Optional: active blog link highlighted */
.blog-page header nav a[href*="intro.html"] {
  color: #ff7b00;
}

/* HERO */
.blog-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  padding: 6rem 6% 4rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
}

.blog-hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-top: 25px;
}

.blog-hero h1 span { color: var(--orange); }

.featured-image {
  width: 280px;
  height: 180px;
  border-radius: 18px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-thumb {
  height: 180px;
  overflow: hidden;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s ease;
}

.blog-card:hover .blog-thumb img {
  transform: scale(1.05);
}



.blog-hero p {
  max-width: 520px;
  margin-top: 1.2rem;
  line-height: 1.7;
  color: var(--text-grey);
}

.blog-search {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

.blog-search input {
  flex: 1;
  padding: 0.9rem 1.2rem;
  border-radius: 30px;
  border: 1px solid var(--mid-grey);
  outline: none;
}

.blog-search button {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 0.9rem 1.8rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
}

/* FEATURED STRIP */
.featured-strip {
  margin-top: 3rem;
  background: var(--white);
  border-radius: 24px;
  padding: 2rem 2.5rem;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.featured-image {
  width: 280px;
  height: 180px;
  border-radius: 18px;
  background: var(--mid-grey);
}

.featured-content h3 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.featured-content p {
  color: var(--text-grey);
  margin-bottom: 1rem;
}

.featured-content a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
}

/* MAIN GRID */
.blog-section {
  padding: 4rem 6% 5rem;
}

.blog-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.blog-filters button {
  background: var(--white);
  border: 1px solid var(--mid-grey);
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
}

.blog-filters button.active {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
  transition: 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
}

.blog-thumb {
  height: 180px;
  background: var(--mid-grey);
}

.blog-body {
  padding: 1.6rem;
}

.blog-meta {
  font-size: 0.8rem;
  color: var(--text-grey);
  margin-bottom: 0.6rem;
}

.blog-body h4 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.blog-body p {
  font-size: 0.95rem;
  color: var(--text-grey);
  line-height: 1.6;
}

.blog-body a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
}

/* NEWSLETTER */
.newsletter {
  margin-top: 5rem;
  background: linear-gradient(135deg, #ffffff, #f3f3f3);
  padding: 3rem 2rem;
  border-radius: 28px;
  text-align: center;
}

.newsletter h3 {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

.newsletter p {
  color: var(--text-grey);
  margin-bottom: 1.5rem;
}

.newsletter input {
  padding: 0.9rem 1.2rem;
  border-radius: 30px;
  border: 1px solid var(--mid-grey);
  width: 260px;
  max-width: 90%;
}

.newsletter button {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 0.9rem 1.8rem;
  border-radius: 30px;
  margin-left: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

/* =========================================================
   BLOG PAGE - RESPONSIVE
   Desktop design remains unchanged
   ========================================================= */


/* ================= TABLET ================= */

@media (max-width: 900px) {

  .blog-hero {
    grid-template-columns: 1fr;

    padding: 4rem 6% 3rem;

    gap: 2rem;
  }

  .featured-strip {
    flex-direction: column;

    align-items: flex-start;
  }

  .featured-image {
    width: 100%;
    max-width: 500px;
  }

}


/* ================= MOBILE ================= */

@media (max-width: 768px) {

  /* ---------------------------------------------------------
     GENERAL
     --------------------------------------------------------- */

  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }


  /* ---------------------------------------------------------
     BLOG HERO
     --------------------------------------------------------- */

  .blog-hero {
    display: block;

    padding: 70px 1.2rem 2.5rem;

    text-align: center;
  }

  .blog-hero h1 {
    font-size: 2rem;

    line-height: 1.25;
  }

  .blog-hero p {
    max-width: 100%;

    margin: 1rem auto 0;

    font-size: .9rem;

    line-height: 1.65;
  }


  /* ---------------------------------------------------------
     BLOG SEARCH
     --------------------------------------------------------- */

  .blog-search {
    display: flex;

    flex-direction: column;

    width: 100%;

    gap: .7rem;

    margin-top: 1.5rem;
  }

  .blog-search input {
    width: 100%;

    box-sizing: border-box;

    padding: .85rem 1.1rem;

    font-size: .9rem;
  }

  .blog-search button {
    width: 100%;

    padding: .85rem 1.2rem;

    font-size: .9rem;
  }


  /* ---------------------------------------------------------
     FEATURED ARTICLE
     --------------------------------------------------------- */

  .featured-strip {
    display: flex;

    flex-direction: column;

    align-items: stretch;

    width: 100%;

    box-sizing: border-box;

    margin-top: 2rem;

    padding: 1rem;

    gap: 1.2rem;

    border-radius: 18px;
  }


  .featured-image {
    width: 100%;

    max-width: none;

    height: 190px;

    border-radius: 14px;
  }


  .featured-content {
    width: 100%;
  }

  .featured-content h3 {
    font-size: 1.3rem;

    line-height: 1.35;

    margin-bottom: .55rem;
  }

  .featured-content p {
    font-size: .88rem;

    line-height: 1.6;

    margin-bottom: .8rem;
  }

  .featured-content a {
    font-size: .85rem;
  }


  /* ---------------------------------------------------------
     BLOG SECTION
     --------------------------------------------------------- */

  .blog-section {
    padding: 2.8rem 1rem 4rem;
  }


  /* ---------------------------------------------------------
     BLOG FILTERS
     --------------------------------------------------------- */

  .blog-filters {
    display: flex;

    flex-wrap: nowrap;

    overflow-x: auto;

    gap: .6rem;

    margin-bottom: 1.8rem;

    padding-bottom: .5rem;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
  }

  .blog-filters::-webkit-scrollbar {
    display: none;
  }


  .blog-filters button {
    flex: 0 0 auto;

    white-space: nowrap;

    padding: .55rem 1rem;

    font-size: .8rem;
  }


  /* ---------------------------------------------------------
     BLOG GRID
     --------------------------------------------------------- */

  .blog-grid {
    display: grid;

    grid-template-columns: 1fr;

    gap: 1.2rem;

    width: 100%;
  }


  /* ---------------------------------------------------------
     BLOG CARD
     --------------------------------------------------------- */

  .blog-card {
    width: 100%;

    border-radius: 17px;
  }

  .blog-card:hover {
    transform: none;
  }


  /* ---------------------------------------------------------
     BLOG IMAGE
     --------------------------------------------------------- */

  .blog-thumb {
    width: 100%;

    height: 190px;
  }

  .blog-thumb img {
    width: 100%;

    height: 100%;

    object-fit: cover;
  }


  /* ---------------------------------------------------------
     BLOG CONTENT
     --------------------------------------------------------- */

  .blog-body {
    padding: 1.2rem;
  }

  .blog-meta {
    font-size: .72rem;

    line-height: 1.4;

    margin-bottom: .5rem;
  }

  .blog-body h4 {
    font-size: 1.05rem;

    line-height: 1.4;

    margin-bottom: .6rem;
  }

  .blog-body p {
    font-size: .85rem;

    line-height: 1.6;
  }

  .blog-body a {
    font-size: .85rem;

    margin-top: .8rem;
  }


  /* ---------------------------------------------------------
     NEWSLETTER
     --------------------------------------------------------- */

  .newsletter {
    width: 100%;

    box-sizing: border-box;

    margin-top: 3rem;

    padding: 2rem 1rem;

    border-radius: 20px;
  }

  .newsletter h3 {
    font-size: 1.35rem;

    line-height: 1.35;
  }

  .newsletter p {
    font-size: .85rem;

    line-height: 1.6;

    margin-bottom: 1.2rem;
  }

  .newsletter input {
    width: 100%;

    max-width: none;

    box-sizing: border-box;

    padding: .85rem 1rem;

    font-size: .85rem;

    margin-bottom: .7rem;
  }

  .newsletter button {
    width: 100%;

    margin-left: 0;

    padding: .85rem 1rem;

    font-size: .85rem;
  }

}


/* ================= SMALL MOBILE ================= */

@media (max-width: 480px) {

  .blog-hero {
    padding: 60px 1rem 2rem;
  }

  .blog-hero h1 {
    font-size: 1.7rem;
  }

  .blog-hero p {
    font-size: .83rem;
  }


  .featured-strip {
    padding: .85rem;

    margin-top: 1.5rem;

    border-radius: 16px;
  }

  .featured-image {
    height: 160px;

    border-radius: 12px;
  }

  .featured-content h3 {
    font-size: 1.15rem;
  }

  .featured-content p {
    font-size: .82rem;
  }


  .blog-section {
    padding: 2.3rem .8rem 3.5rem;
  }


  .blog-filters {
    gap: .5rem;
  }

  .blog-filters button {
    padding: .5rem .85rem;

    font-size: .74rem;
  }


  .blog-thumb {
    height: 165px;
  }


  .blog-body {
    padding: 1rem;
  }

  .blog-body h4 {
    font-size: .98rem;
  }

  .blog-body p {
    font-size: .8rem;
  }


  .newsletter {
    margin-top: 2.5rem;

    padding: 1.7rem .9rem;

    border-radius: 17px;
  }

  .newsletter h3 {
    font-size: 1.2rem;
  }

  .newsletter p {
    font-size: .8rem;
  }

}

/* =========================================================
   BLOG PAGE - MOBILE HAMBURGER MENU
   Desktop header remains unchanged
   ========================================================= */

@media (max-width: 768px) {

  /* Keep header above the blog content */
  .blog-page header {
    position: relative;
    z-index: 100;
  }

  /* SHOW HAMBURGER */
  .blog-page .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 42px;
    height: 42px;

    padding: 0;
    margin: 0;

    background: transparent;
    border: none;

    cursor: pointer;

    position: relative;
    z-index: 1001;
  }

  /* Hamburger lines */
  .blog-page .menu-toggle span {
    display: block;

    width: 25px;
    height: 2px;

    margin: 3px 0;

    background: #555;
    border-radius: 2px;

    transition: .3s ease;
  }


  /* MOBILE NAVIGATION */

  .blog-page .nav-menu {
    display: none;

    position: absolute;

    top: 100%;
    left: 0;
    right: 0;

    width: 100%;

    background: #ffffff;

    padding: 1rem 0;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);

    z-index: 1000;
  }


  /* JS adds this class when hamburger is clicked */

  .blog-page .nav-menu.active {
    display: flex;

    flex-direction: column;

    align-items: stretch;
  }


  /* MOBILE NAV LINKS */

  .blog-page .nav-menu a {
    display: block;

    width: 100%;

    box-sizing: border-box;

    padding: .9rem 1.5rem;

    color: #555 !important;

    text-decoration: none;

    font-size: .95rem;

    font-weight: 600;

    text-align: left;
  }


  .blog-page .nav-menu a:hover {
    color: #ff7b00 !important;

    background: rgba(255, 123, 0, 0.06);
  }


  /* HAMBURGER → X */

  .blog-page .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .blog-page .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .blog-page .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 480px) {

  .blog-page .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .blog-page .menu-toggle span {
    width: 23px;
  }

  .blog-page .nav-menu a {
    padding: .85rem 1.2rem;
    font-size: .9rem;
  }

}
