/*
Theme Name: HungryHop Blog
Theme URI: https://hungryhop.com
Author: HungryHop
Author URI: https://hungryhop.com
Description: Pixel-perfect WordPress theme for HungryHop blog page, converted from Figma design.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: hungryhop
*/

/* =============================================
   CSS VARIABLES
============================================= */
:root {
  --color-primary: #e37416;
  --color-primary-dark: #e37517;
  --color-bg: #fdfbfa;
  --color-bg-light: #f3f2f3;
  --color-bg-gray: #f5f5f5;
  --color-white: #ffffff;
  --color-text-dark: #141414;
  --color-text-body: #474d5d;
  --color-text-muted: #5b5b5b;
  --color-border: #ccc;
  --color-star: #FAA932;
  --font-primary: 'Open Sans', sans-serif;
  --font-secondary: 'Inter', sans-serif;
  --max-width: 1920px;
  --container-pad: 120px;
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  font-family: var(--font-primary);
  background: var(--color-white);
  color: var(--color-text-dark);
  font-size: 16px;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

/* =============================================
   LAYOUT
============================================= */
.hh-page {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--color-white);
  overflow-x: hidden;
}

.hh-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* =============================================
   HEADER / NAVBAR
============================================= */
.hh-header {
  background: var(--color-bg);
  height: 97px;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.hh-header__logo img {
  height: 67px;
  width: auto;
}

.hh-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hh-header__btn {
  background: #0e0e0e;
  border: 1px solid var(--color-border);
  border-radius: 25px;
  color: white;
  font-family: var(--font-primary);
  font-size: 13px;
  padding: 10px 20px;
  cursor: pointer;
}

.hh-header__cart img {
  width: 24px;
  height: 25px;
}

.hh-header__lang {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.hh-header__lang img {
  width: 28px;
  height: 28px;
}

.hh-header__lang span {
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--color-text-body);
}

/* =============================================
   HERO SECTION
============================================= */
.hh-hero {
  width: 100%;
  height: 620px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hh-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hh-hero__content {
  position: relative;
  z-index: 1;
  padding: 20px 187px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
}

.hh-hero__title {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 60px;
  color: white;
  letter-spacing: 1.28px;
  line-height: 57.6px;
  max-width: 869px;
  padding-top: 50px;
}

.hh-hero__subtitle {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 20px;
  color: white;
  letter-spacing: 0.48px;
  line-height: 29px;
}

.hh-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-dark);
  color: white;
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 16px;
  padding: 15px 20px;
  border-radius: 999px;
  text-transform: capitalize;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  align-self: flex-start;
}

/* =============================================
   FEATURED BLOGS SECTION
============================================= */
.hh-featured {
  background: var(--color-bg-light);
  width: 100%;
  padding: 40px var(--container-pad);
}

.hh-section-title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 38px;
  color: var(--color-primary);
  text-transform: capitalize;
  text-align: center;
  line-height: 62px;
  margin-bottom: 40px;
}

.hh-section-title--dark {
  color: var(--color-text-dark);
  text-align: left;
}

/* Featured: big card + small card row */
.hh-featured__row {
  display: flex;
  gap: 20px;
  align-items: stretch;
  justify-content: center;
  width: 100%;
}

/* Big Featured Blog Card */
.hh-blog-card--featured {
  background: white;
  border-radius: 16px;
  display: flex;
  gap: 20px;
  padding: 20px;
  flex: 1;
  /*min-width: 0;*/
  position: relative;
}

.hh-blog-card--featured .hh-blog-card__image {
  width: 810px;
  height: 478px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #6c6c6c;
}

.hh-blog-card--featured .hh-blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hh-blog-card--featured .hh-blog-card__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.hh-blog-card__title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 38px;
  color: var(--color-text-dark);
  line-height: normal;
  margin-bottom: 20px;
}

.hh-blog-card__excerpt {
  font-family: var(--font-primary);
  font-size: 21px;
  font-weight: 400;
  color: var(--color-text-body);
  line-height: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hh-blog-card__meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 20px;
}

.hh-blog-card__author {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.hh-blog-card__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  background: #b6b6b6;
  flex-shrink: 0;
}

.hh-blog-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hh-blog-card__author-name {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text-dark);
  line-height: 25px;
}

.hh-blog-card__date {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-body);
  line-height: 19px;
}

.hh-blog-card__stars {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hh-stars {
  display: flex;
  align-items: center;
}

.hh-stars svg {
  width: 24px;
  height: 24px;
}

.hh-reviews {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-text-muted);
  text-transform: capitalize;
  white-space: nowrap;
}

/* Pagination dots on featured card */
.hh-blog-card__pagination {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--color-bg-light);
  border-radius: 24px 0 16px 0;
  padding: 10px 10px 0 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 45px;
}

.hh-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #edebed;
}

.hh-dot--active {
  width: 33px;
  height: 15px;
  border-radius: 999px;
  background: var(--color-primary);
}

/* Small blog card */
.hh-blog-card--small {
  background: white;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 405px;
  height: auto;
  min-height: 420px;          /* fixed height */
  flex-shrink: 0;
  overflow: hidden;
}

.hh-blog-card--small .hh-blog-card__image {
  width: 100%;
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  background: #6c6c6c;
  flex-shrink: 0;
}

.hh-blog-card--small .hh-blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* text body: fills remaining space, author pinned to bottom */
.hh-blog-card__body-small {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  margin-top: 20px;
}

.hh-blog-card--small .hh-blog-card__title {
  font-size: 18px;
  line-height: 25px;
  margin-bottom: 10px;     /* 10px gap between title and excerpt */
  /* max 2 lines, ellipsis after */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hh-blog-card--small .hh-blog-card__excerpt {
  font-size: 13px;
  line-height: 19px;
  /* max 3 lines, ellipsis after */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

/* Spacer pushes author to bottom */
.hh-blog-card__body-small .hh-spacer {
  flex: 1;
}

.hh-blog-card--small .hh-blog-card__author {
  width: 100%;
  margin-top: auto;
  padding-top: 12px;
  align-items: center;
}

/* =============================================
   BLOG CATEGORIES + GRID SECTION
============================================= */
.hh-no-posts {
  text-align: center;
  font-family: var(--font-primary);
  font-size: 18px;
  color: var(--color-text-body);
  padding: 60px 0;
  width: 100%;
}
.hh-blogs {
  background: var(--color-bg-light);
  width: 100%;
  padding: 0 var(--container-pad) 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.hh-blogs__title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 38px;
  color: var(--color-primary);
  text-transform: capitalize;
  line-height: 62px;
}

/* Category filter pills */
.hh-categories {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.hh-category-pill {
  display: inline-flex;
  align-items: center;
  padding: 16px 40px;
  border-radius: 999px;
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 16px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid #858585;
  background: #f7f7f7;
  color: #858585;
  transition: all 0.2s;
}

.hh-category-pill--active {
  background: #fcf2ea;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Blog grid: 4 columns */
.hh-blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}

.hh-blog-grid .hh-blog-card--small {
  flex: 1 1 calc(25% - 15px);
  width: calc(25% - 15px);
  max-width: 405px;
  height: auto;
  min-height: 420px;
}

.hh-blog-grid__row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* =============================================
   MEHKO / ARTICLE SECTION
============================================= */
.hh-article {
  background: var(--color-white);
  width: 100%;
  padding: 40px 187px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  padding-top: 100px !important;
}

.hh-article__title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 38px;
  color: var(--color-text-dark);
  text-align: center;
  line-height: 62px;
}

.hh-article__body {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  color: #121212;
  line-height: 19px;
  text-align: left;
  width: 100%;
}

.hh-article__banner {
  width: 100%;
  border-radius: 45px;
  overflow: hidden;
  aspect-ratio: 2568/1160;
}

.hh-article__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =============================================
   FAQ SECTION
============================================= */
.hh-faq {
  background: var(--color-bg);
  width: 100%;
  padding: 30px;
  position: relative;
  min-height: 600px;
}

.hh-faq__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.hh-faq__title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 38px;
  color: var(--color-text-dark);
  line-height: 62px;
}

.hh-faq__link {
  background: #73b000;
  color: white;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 16px;
  padding: 8px 24px;
  border-radius: 10px;
  white-space: nowrap;
}

.hh-faq__list {
  display: flex;
  flex-direction: column;
}

.hh-faq__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.hh-faq__question {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-text-body);
  line-height: 22.86px;
}

.hh-faq__icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* =============================================
   FOOTER
============================================= */
.hh-footer {
  background: var(--color-bg-gray);
  width: 100%;
  padding: 54px 0 0;
  position: relative;
}

.hh-footer__divider {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

.hh-footer__divider img {
  width: 128px;
  height: 54px;
}

.hh-footer__main {
  background: var(--color-bg-gray);
  padding: 54px 335px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px;
}

.hh-footer__brand {}

.hh-footer__logo {
  height: 84px;
  width: auto;
  margin-bottom: 20px;
}

.hh-footer__socials {
  display: flex;
  gap: 20px;
  align-items: center;
}

.hh-footer__socials img {
  width: 17px;
  height: 17px;
}

.hh-footer__col-title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text-body);
  line-height: 22.86px;
  margin-bottom: 16px;
}

.hh-footer__col-link {
  display: block;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-body);
  line-height: 22.86px;
  margin-bottom: 12px;
}

.hh-footer__apps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hh-footer__apps img {
  height: 35px;
  width: auto;
}

.hh-footer__bottom {
  border-top: 1px solid #c0c0c0;
  padding: 20px 335px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hh-footer__bottom-link {
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--color-text-body);
  line-height: 20px;
}

.hh-footer__copyright {
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--color-text-body);
  line-height: 20px;
  text-align: center;
}

/* =============================================
   RESPONSIVE — TABLET & MOBILE (index page)
============================================= */

/* Large tablet / small desktop */
@media (max-width: 1200px) {
  :root {
    --container-pad: 48px;
  }

  .hh-hero__content {
    padding: 20px 48px;
  }

  .hh-hero__title {
    font-size: 44px;
    line-height: 1.15;
  }

  .hh-featured__row {
    flex-direction: column;
    align-items: stretch;
  }

  .hh-blog-card--featured {
    flex-direction: column;
  }

  .hh-blog-card--featured .hh-blog-card__image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .hh-blog-card--small {
    width: 100%;
    height: auto;
    min-height: 0;
  }

  .hh-blog-grid .hh-blog-card--small {
    flex: 1 1 calc(50% - 10px);
    width: calc(50% - 10px);
    max-width: none;
    height: auto;
  }

  .hh-article {
    padding: 40px 48px;
  }
}

/* Tablet */
@media (max-width: 992px) {
  :root {
    --container-pad: 32px;
  }

  .hh-hero {
    height: auto;
    min-height: 420px;
    padding: 48px 0;
  }

  .hh-hero__content {
    padding: 20px 32px;
    max-width: 100%;
  }

  .hh-hero__title {
    font-size: 36px;
    max-width: 100%;
  }

  .hh-hero__subtitle {
    font-size: 18px;
    line-height: 1.4;
  }

  .hh-section-title,
  .hh-blogs__title,
  .hh-article__title {
    font-size: 30px;
    line-height: 1.3;
    margin-bottom: 24px;
  }

  .hh-featured {
    padding: 32px var(--container-pad);
  }

  .hh-blog-card__title {
    font-size: 28px;
  }

  .hh-blog-card__excerpt {
    font-size: 18px;
    line-height: 1.4;
  }

  .hh-blog-card__meta {
    flex-wrap: wrap;
    gap: 16px;
  }

  .hh-blogs {
    padding: 0 var(--container-pad) 32px;
    gap: 28px;
  }

  .hh-category-pill {
    padding: 12px 28px;
    font-size: 14px;
  }

  .hh-article {
    padding: 32px var(--container-pad);
    gap: 28px;
  }

  .hh-article__banner {
    border-radius: 24px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --container-pad: 20px;
  }

  .hh-hero {
    min-height: 360px;
    padding: 32px 0;
  }

  .hh-hero__content {
    padding: 16px 20px;
    gap: 16px;
  }

  .hh-hero__title {
    font-size: 28px;
    letter-spacing: 0.5px;
  }

  .hh-hero__subtitle {
    font-size: 16px;
  }

  .hh-btn-primary {
    font-size: 14px;
    padding: 12px 18px;
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .hh-section-title,
  .hh-blogs__title,
  .hh-article__title {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 20px;
  }

  .hh-featured {
    padding: 24px var(--container-pad);
  }

  .hh-featured__row {
    gap: 16px;
  }

  .hh-blog-card--featured {
    padding: 16px;
    gap: 16px;
  }

  .hh-blog-card--featured .hh-blog-card__image {
    aspect-ratio: 4 / 3;
  }

  .hh-blog-card__title {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .hh-blog-card__excerpt {
    font-size: 15px;
    line-height: 1.45;
  }

  .hh-blog-card__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hh-blog-card__stars {
    width: 100%;
    justify-content: flex-start;
  }

  .hh-blog-card__pagination {
    position: static;
    margin-top: 12px;
    border-radius: 999px;
    padding: 8px 12px;
    height: auto;
    align-self: center;
  }

  .hh-blog-card--small {
    padding: 16px;
  }

  .hh-blog-card--small .hh-blog-card__image {
    height: 180px;
  }

  .hh-blogs {
    padding: 0 var(--container-pad) 24px;
    gap: 20px;
    align-items: stretch;
  }

  .hh-categories {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 4px;
    margin: 0 calc(-1 * var(--container-pad));
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
    scrollbar-width: none;
  }

  .hh-categories::-webkit-scrollbar {
    display: none;
  }

  .hh-category-pill {
    flex-shrink: 0;
    padding: 10px 20px;
    font-size: 13px;
  }

  .hh-blog-grid {
    flex-direction: column;
    gap: 16px;
  }

  .hh-blog-grid .hh-blog-card--small {
    flex: 1 1 100%;
    width: 100%;
  }

  .hh-article {
    padding: 24px var(--container-pad);
    gap: 20px;
  }

  .hh-article__body {
    font-size: 15px;
    line-height: 1.5;
  }

  .hh-article__banner {
    border-radius: 16px;
  }

  .hh-no-posts {
    font-size: 16px;
    padding: 40px 0;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .hh-hero {
    min-height: 300px;
    padding: 24px 0;
  }

  .hh-hero__title {
    font-size: 24px;
    padding-top: 80px;
  }

  .hh-hero__subtitle {
    font-size: 14px;
  }

  .hh-section-title,
  .hh-blogs__title,
  .hh-article__title {
    font-size: 22px;
  }

  .hh-blog-card__author-name {
    font-size: 16px;
  }

  .hh-blog-card--small .hh-blog-card__title {
    font-size: 16px;
  }

  .hh-category-pill {
    padding: 8px 16px;
    font-size: 12px;
  }
}
