/*!
Theme Name: iphoneflip
Theme URI: https://virtus-dizajn.com/
Author: Jurica Borković
Author URI: https://virtus-dizajn.com/
Description: iPhone flip theme designed by Jurica Borković.
Version: 1.0.0
Tested up to: 6.8.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: iphoneflip
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
Screenshot: https://virtus-dizajn.com/wp-content/themes/iphoneflip/screenshot.png

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

iphoneflip is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.
*/


/*===================== TABLE OF CONTENT =======================

1. CSS Variables & Base Styles
2. Reset
3. Body Style & Typography
4. Header Styles
5. Navigation
6. Mobile Responsive
7. Form Elements
8. Utilities
9. Footer Styles
10. Custom Components

=============================================================*/

/* ================================================================================== 
1. CSS Variables & Base Styles
===================================================================================== 

/* Eksplicitni dark mode klasa ako korisnik ručno izabere */
[data-theme="dark"] {
  --bg-body: #0f0f0f;
  --bg-header: rgba(20, 20, 20, 0.95);
  --bg-section: #1a1a1a;
  --bg-card: #242424;
  --accent: #0a84ff;
  --accent-soft: rgba(10, 132, 255, 0.15);
  --text-main: #f5f5f7;
  --text-muted: #a1a1a6;
  --border-soft: #424245;
}

/* ==================================================================================
    .footer-container {
        padding: 0 16px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
    
    .site-footer {
        padding: 32px 0;
        margin-top: 40px;
    }
/* ================================================================================== 
10. Custom Components & Additional Styles
===================================================================================== */

/* Hero Search Overrides 🔧
   - Compact centered pill layout
   - Limits max width so it doesn't span the whole page
   - Creates a unified white pill background and aligns heights
   - Stacks cleanly on mobile with full-width button
*/
.hero-search {
  margin-top: 18px;
  display: flex;
  justify-content: center; /* center the pill */
}

.hero-search-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 760px;
  background: var(--bg-card);
  border-radius: 14px;
  padding: 8px; /* small inner padding to create the pill look */
  box-shadow: 0 12px 40px rgba(13,13,13,0.06);
  border: 1px solid var(--border-soft);
}

.hero-search-form .search-input-wrapper {
  position: relative;
  flex: 1 1 auto;
  min-width: 220px;
  padding-left: 6px;
  padding-right: 6px;
}

.hero-search-form .search-input {
  width: 100%;
  padding-left: 44px; /* space for icon */
  padding-right: 12px;
  height: 48px;
  border-radius: 10px;
  border: none;
  background: transparent; /* let the pill background show */
  box-shadow: none;
  font-size: 1rem;
}

.hero-search-form .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--text-muted, #6e6e73);
  pointer-events: none;
}

.hero-search-form .btn {
  flex-shrink: 0;
  height: 48px;
  padding: 0 18px;
  border-radius: 10px;
  align-self: center;
}

.hero-search-form .search-input:focus {
  outline: none;
  box-shadow: none;
}

@media (max-width: 768px) {
  .hero-search-form {
    flex-direction: column;
    padding: 10px;
  }

  .hero-search-form .search-input,
  .hero-search-form .btn {
    height: 44px;
    width: 100%;
  }

  .hero-search-form .btn {
    margin-top: 8px;
  }

  .hero-search-form {
    box-shadow: none; /* simpler look on mobile */
    border-radius: 12px;
  }
}

/* Newsletter */
.newsletter {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: var(--space-20, 64px) 0;
  background: linear-gradient(135deg, var(--color-primary, var(--accent, #0071e3)), var(--color-secondary, #4b5df0));
  color: var(--color-text-inverse, #fff);
}

.newsletter .newsletter-content,
.newsletter-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.newsletter .newsletter-text,
.newsletter-text {
  max-width: 60%;
}

.newsletter-title,
.newsletter-subtitle {
  color: #fff;
}

.newsletter-title {
  font-size: var(--font-size-3xl, 2rem);
  font-weight: var(--font-weight-bold, 700);
  margin-bottom: var(--space-3, 12px);
}

.newsletter-subtitle {
  font-size: var(--font-size-lg, 1.125rem);
  opacity: 0.9;
}

.newsletter-form {
  flex-shrink: 0;
}

.newsletter .newsletter-input-wrapper,
.newsletter-input-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 400px;
}

.newsletter-input {
  flex: 1;
  border-radius: 999px;
  padding: 12px 18px;
  min-width: 260px;
  border: none;
  background: var(--color-background, rgba(255,255,255,0.95));
  color: var(--text-main, #1d1d1f);
  box-shadow: 0 8px 28px rgba(7,43,90,0.08);
}

.newsletter-input:focus {
  border-color: var(--color-background, transparent);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.newsletter .btn {
  border-radius: 999px;
}

.pagination-container { margin-bottom: 0; padding-bottom: 0; }
.content-layout { overflow: hidden; }

@media (max-width: 900px) {
  .newsletter .newsletter-text,
  .newsletter-text { max-width: 100%; }
  .newsletter .newsletter-input-wrapper,
  .newsletter-input-wrapper { width: 100%; justify-content: flex-end; }
  .newsletter-input { min-width: 160px; }
}

@media (max-width: 768px) {
  .newsletter .newsletter-content,
  .newsletter-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-8, 20px);
  }

  .newsletter .newsletter-input-wrapper,
  .newsletter-input-wrapper {
    flex-direction: column;
    max-width: none;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }

  .newsletter-input {
    width: 100%;
  }
}

/* Dark mode specifične boje */
@media (prefers-color-scheme: dark) {
  body {
    background: var(--bg-body);
    color: var(--text-main);
  }

  .hero {
    background: linear-gradient(135deg, #1a2a4a 0%, #142040 100%);
  }

  .feature-card,
  .stat-item,
  .deal-card {
    background: var(--bg-card);
    border-color: var(--border-soft);
  }

  .deal-card-image {
    background: #333333;
  }

  .section-subtitle,
  .feature-description,
  .footer-description {
    color: var(--text-muted);
  }

  .newsletter {
    background: linear-gradient(135deg, #0a3a7a 0%, #1a2a5a 100%);
  }

  .hero-search-form {
    background: var(--bg-card);
    border-color: var(--border-soft);
  }

  .hero-search-form .search-input {
    background: transparent;
    color: var(--text-main);
  }

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

  .newsletter-input {
    background: var(--bg-header);
    color: var(--text-main);
  }

  .hero-search-form .search-icon {
    color: var(--text-muted);
  }

  a {
    color: var(--accent);
  }

  .info-item {
    background: var(--accent-soft);
    color: var(--accent);
  }
}

[data-theme="dark"] body {
  background: var(--bg-body);
  color: var(--text-main);
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #1a2a4a 0%, #142040 100%);
}

[data-theme="dark"] .feature-card,
[data-theme="dark"] .stat-item,
[data-theme="dark"] .deal-card {
  background: var(--bg-card);
  border-color: var(--border-soft);
}

/* ================================================================================== 
4. Container & Grid
===================================================================================== */
/* .container {
  position: relative;
  width: 100%;
  max-width: 148rem;
  margin: 0 auto;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0 2rem;
}
.container-lg{
  max-width: 175rem;
}
.container-xl{
  max-width: 192rem;
  padding: 0;
}
.container-sm {
	max-width: 100rem;
} */

/* =======================================================================
   Deal Cards (featured deals grid)
   - Responsive grid
   - Card layout, image handling, hover + focus states
   - Uses theme variables where available
   ======================================================================= */

.deals-grid{
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 18px;
  align-items: stretch;
}

@media (min-width: 768px){
  .deals-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1024px){
  .deals-grid{
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.deal-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.deal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  border-color: var(--accent, #0071e3);
}

.deal-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-section);
}

.deal-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.deal-card-content {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.deal-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  height: 3rem;
}

.deal-card-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent, #0071e3);
  margin: 8px 0;
}

.deal-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: auto;
}

.deal-card-cta {
  padding: 0 16px 16px;
  margin-top: auto;
}

.deal-card-cta .btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--accent, #0071e3), #005bd6);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 113, 227, 0.25);
  transition: all 0.3s ease;
  border: none;
}

.deal-card:hover .deal-card-cta .btn {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 113, 227, 0.35);
  background: linear-gradient(120deg, #005bd6, var(--accent, #0071e3));
}

.deal-card:focus {
  outline: 3px solid rgba(0,113,227,0.12);
  outline-offset: 4px;
}

.deal-card-sub {
  color: var(--text-muted, #6e6e73);
  font-size: 0.9rem;
}

.deal-card-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.deal-card .btn {
  display: inline-block;
  padding: 9px 14px;
  font-size: 0.95rem;
  border-radius: 12px;
  background: var(--accent, #0071e3);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(0,113,227,0.10);
}

.deal-card .btn.view-deal {
  background: linear-gradient(120deg, var(--accent, #0071e3), #005bd6);
}

.deal-card .btn:hover {
  transform: translateY(-2px);
  filter: none;
}

.deal-card-info {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.info-item {
  background: var(--accent-soft, rgba(0,113,227,0.08));
  color: var(--accent, #0071e3);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.quality-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  background: var(--accent, #0071e3);
  color: #fff;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(13,13,13,0.10);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.quality-badge::before {
  content: '★';
  display: inline-block;
  font-size: 0.95rem;
  line-height: 1;
  margin-right: 4px;
}

.meta-seller {
  opacity: 0.95;
}

.meta-shipping {
  opacity: 0.95;
}

/* =======================================================================
   Header & Navigation
   ======================================================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.navbar-brand .brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.navbar-brand .brand-link img {
  height: 5rem;
  width: auto;
  object-fit: contain;
}

.brand-text {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar-link {
  position: relative;
  padding: 10px 0;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.navbar-link:hover {
  color: #0f5ed7;
}

.navbar-actions {
  display: none;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.hamburger-icon {
  font-size: 18px;
  line-height: 1;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  z-index: 140;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease, transform 0.3s ease;
}

.mobile-menu.active,
.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-content {
  animation: mobileMenuFadeIn 0.28s ease;
}

@keyframes mobileMenuFadeIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.mobile-menu-toggle .icon-close { display: none; }
.mobile-menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.mobile-menu-toggle[aria-expanded="true"] .icon-close { display: inline; }

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.no-scroll {
  overflow: hidden;
}



/* About page polish */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #eef4ff 0%, #f8fbff 100%);
  color: #0f172a;
}
.hero-title {
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.hero-subtitle {
  max-width: 640px;
  color: #475569;
  font-size: 1.05rem;
}
.hero-stats {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.stat-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}
.stat-value { font-weight: 800; font-size: 1.2rem; }
.stat-label { color: #64748b; font-size: 0.95rem; }

.features {
  padding: 72px 0;
  background: #f8fafc;
}
.features:nth-of-type(even) {
  background: #fff;
}
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
}
.section-title {
  font-size: clamp(1.8rem, 2.6vw, 2.2rem);
  margin-bottom: 8px;
}
.section-subtitle {
  color: #475569;
  font-size: 1rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.feature-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e0ecff;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.feature-title { font-size: 1.05rem; font-weight: 700; }
.feature-description { color: #475569; line-height: 1.55; }

@media (max-width: 768px) {
  .hero { padding: 60px 0 48px; }
  .hero-actions { width: 100%; }
}

/* iPhone Deals Finder - Homepage Specific Styles */

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky, 100);
  background-color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--color-border-light, #e5e7eb);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(20px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.navbar-brand .brand-link {
  display: flex;
  align-items: center;
  gap: var(--space-3, 10px);
  text-decoration: none;
  color: var(--color-text-primary, #0f172a);
  font-weight: 700;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff;
  font-size: var(--font-size-2xl, 18px);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.brand-text {
  font-size: var(--font-size-xl, 1rem);
  font-weight: var(--font-weight-bold, 700);
  letter-spacing: -0.01em;
}

.navbar-menu {
  display: none;
  align-items: center;
  gap: var(--space-8, 20px);
}

.navbar-link {
  position: relative;
  padding: 10px 0;
  color: var(--color-text-secondary, #0f172a);
  text-decoration: none;
  font-weight: var(--font-weight-medium, 600);
  transition: var(--transition-colors, color 0.2s ease), opacity 0.2s ease;
}

.navbar-link:hover {
  color: var(--color-text-primary, #0f172a);
}

.navbar-actions {
  display: none;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  font-size: var(--font-size-xl, 18px);
}

.hamburger-icon {
  font-size: 18px;
  line-height: 1;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--header-height-mobile, 64px);
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  background-color: var(--color-background, #fff);
  border-bottom: 1px solid var(--color-border, #e5e7eb);
  transform: translateY(-100%);
  transition: opacity 0.24s ease, visibility 0.24s ease, transform 0.3s ease;
  z-index: var(--z-fixed, 140);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-content {
  padding: var(--space-4, 16px);
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  color: var(--color-text-secondary, #0f172a);
  text-decoration: none;
  font-weight: var(--font-weight-medium, 700);
  border-bottom: 1px solid var(--color-border-light, #eef2f7);
  letter-spacing: -0.01em;
}

/* .mobile-menu-link::after {
  content: '\203A';
  font-size: 18px;
  color: #94a3b8;
  padding-left: 2rem;
} */

.mobile-menu-link:last-child {
  border-bottom: none;
}

.mobile-menu-link:hover {
  color: var(--color-text-primary, #0f172a);
}

.mobile-menu-cta {
  margin-top: 6px;
}

.mobile-menu-cta .btn {
  width: 100%;
  justify-content: center;
  border-radius: 12px;
  padding: 14px;
  font-weight: 700;
  background: linear-gradient(120deg, #0ea5e9, #2563eb);
  color: #fff;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25);
}

@media (min-width: 1024px) {
  .navbar-menu {
    display: flex;
  }
}

@media (max-width: 1023px) {
  .navbar-menu {
    display: none;
  }

  .navbar-actions {
    display: flex;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .navbar {
    height: 60px;
    padding: 0 16px;
  }

  .brand-text {
    font-size: 0.95rem;
  }

  .header {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid #e5e7eb;
  }
}

/* Footer */
.footer {
  background-color: var(--color-gray-900);
  color: var(--color-gray-300);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand .brand-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  color: var(--color-text-inverse);
}

.footer-description {
  color: var(--color-gray-400);
  line-height: var(--line-height-relaxed);
}

.footer-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-inverse);
  margin-bottom: var(--space-4);
}

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

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  color: var(--color-gray-400);
  text-decoration: none;
  transition: var(--transition-colors);
}

.footer-links a:hover {
  color: var(--color-text-inverse);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-gray-800);
}

.footer-copyright {
  color: var(--color-gray-400);
  font-size: var(--font-size-sm);
}

.footer-social {
  display: flex;
  gap: var(--space-6);
}

.social-link {
  color: var(--color-gray-400);
  text-decoration: none;
  transition: var(--transition-colors);
}

.social-link:hover {
  color: #1877f2;
}

/* Navbar social icon */
.navbar-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #6e6e73);
  padding: 6px;
  border-radius: 8px;
  transition: color 0.2s ease;
  text-decoration: none;
}

.navbar-social-link:hover {
  color: #1877f2;
}

@media (max-width: 1023px) {
  .navbar-social-link { display: none; }
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-up-delay-1 {
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.animate-fade-in-up-delay-2 {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.animate-fade-in-up-delay-3 {
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* Header stacking & mobile menu offset */
:root {
  --header-height-mobile: 64px;
}

@media (max-width: 640px) {
  :root {
    --header-height-mobile: 60px;
  }
}

.header {
  z-index: 300; /* keep header above mobile menu */
}

.mobile-menu {
  top: var(--header-height-mobile, 64px);
  height: calc(100% - var(--header-height-mobile, 64px));
}

/* =======================================================================
   Guides — Archive & Single
   ======================================================================= */

/* Breadcrumb */
.guides-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted, #6e6e73);
  margin-bottom: 16px;
}
.guides-breadcrumb a {
  color: var(--text-muted, #6e6e73);
  text-decoration: none;
}
.guides-breadcrumb a:hover { color: var(--accent, #0071e3); }

/* Hero overrides for guides */
.guides-hero { padding-bottom: 48px; }

/* Archive grid */
.guides-archive {
  padding: 48px 0 80px;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
}
@media (min-width: 640px) {
  .guides-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .guides-grid { grid-template-columns: repeat(3, 1fr); }
}
.guides-grid--small {
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 640px) {
  .guides-grid--small { grid-template-columns: repeat(3, 1fr); }
}

/* Guide card */
.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-soft, #e5e7eb);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
  border-color: var(--accent, #0071e3);
}
.guide-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-section, #f8fafc);
}
.guide-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.guide-card:hover .guide-card-image img {
  transform: scale(1.04);
}
.guide-card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.guide-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted, #6e6e73);
}
.guide-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}
.guide-card-title a {
  color: var(--text-main, #1d1d1f);
  text-decoration: none;
}
.guide-card-title a:hover { color: var(--accent, #0071e3); }
.guide-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted, #6e6e73);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.guide-card-cta {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent, #0071e3);
  text-decoration: none;
  margin-top: auto;
}
.guide-card-cta:hover { text-decoration: underline; }

/* Pagination */
.guides-pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.guides-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border-soft, #e5e7eb);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main, #1d1d1f);
  text-decoration: none;
  background: var(--bg-card, #fff);
  transition: all 0.2s ease;
}
.guides-pagination .page-numbers:hover,
.guides-pagination .page-numbers.current {
  background: var(--accent, #0071e3);
  border-color: var(--accent, #0071e3);
  color: #fff;
}

.guides-empty {
  text-align: center;
  color: var(--text-muted, #6e6e73);
  padding: 48px 0;
}

/* Single guide */
.guide-hero {
  padding: 48px 0 36px;
  background: linear-gradient(135deg, #eef4ff 0%, #f8fbff 100%);
}
.guide-title { margin-bottom: 16px; }
.guide-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.875rem;
  color: var(--text-muted, #6e6e73);
}
.guide-author,
.guide-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.guide-featured-image {
  padding: 32px 0 0;
  background: #f8fafc;
}
.guide-featured-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}
.guide-content-section {
  padding: 48px 0;
}
.guide-content {
  max-width: 780px;
}
.wysiwyg-content h2 { font-size: 1.5rem; font-weight: 700; margin: 32px 0 12px; }
.wysiwyg-content h3 { font-size: 1.2rem; font-weight: 700; margin: 24px 0 10px; }
.wysiwyg-content p  { line-height: 1.7; margin-bottom: 18px; color: var(--text-main, #1d1d1f); }
.wysiwyg-content ul,
.wysiwyg-content ol { padding-left: 24px; margin-bottom: 18px; line-height: 1.7; }
.wysiwyg-content img { max-width: 100%; border-radius: 12px; margin: 16px 0; }
.wysiwyg-content a { color: var(--accent, #0071e3); }
.guide-back {
  padding: 0 0 32px;
}
.guide-back-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent, #0071e3);
  text-decoration: none;
}
.guide-back-link:hover { text-decoration: underline; }

.guides-related {
  padding: 48px 0 72px;
  background: var(--bg-section, #f8fafc);
  border-top: 1px solid var(--border-soft, #e5e7eb);
}
.guides-related .section-title {
  margin-bottom: 28px;
}

.mobile-menu-scrim {
  inset: 0;
  top: 0;
  height: 100%;
}