/* ============================================================
   1. ROOT VARIABLES & RESET (Rokomari Brand Theme)
   ============================================================ */
:root {
  /* Rokomari Color Palette */
  --primary: #F26522;       /* Rokomari Orange */
  --primary-hover: #D95516; 
  --secondary: #1D9B42;     /* Rokomari Green */
  --secondary-hover: #157E33;
  --accent: #E11D48;        /* Red for Promo badges/Discounts */
  
  /* Backgrounds & Surfaces */
  --bg-body: #F4F7F6;       
  --bg-surface: #ffffff;
  
  /* Text Colors */
  --text-main: #1A2238;     
  --text-muted: #555F76;
  --text-light: #8A94A6;
  
  /* Structural Elements */
  --border: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  
  /* Shadows & Transitions */
  --shadow-sm: 0 4px 6px -1px rgba(26, 34, 56, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(26, 34, 56, 0.08);
  --shadow-hover: 0 20px 25px -5px rgba(26, 34, 56, 0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
.container { max-width: 1260px; margin: 0 auto; padding: 0 16px; }
.site-main { max-width: 1260px; margin: 0 auto; padding: 24px 16px; }

/* ============================================================
   2. GLOBAL TYPOGRAPHY & BUTTONS
   ============================================================ */
h1, h2, h3, h4, h5, h6 { color: var(--text-main); font-weight: 700; line-height: 1.3; }
h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2rem 0 1rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin: 1.5rem 0 0.75rem; }
p { color: var(--text-muted); margin-bottom: 1rem; }

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-hover); }

/* Buttons (Default Orange) */
.btn-primary, .btn, .f-btn, .cards-load-more {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 99px; font-weight: 600; font-size: 0.95rem;
  border: none; cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 8px 16px rgba(242, 101, 34, 0.25); color: #fff; }

.btn, .cards-load-more { background: var(--secondary); color: #fff; }
.btn:hover, .cards-load-more:hover { background: var(--secondary-hover); transform: translateY(-2px); box-shadow: 0 8px 16px rgba(29, 155, 66, 0.25); color: #fff; }

/* STRICT Override for the middle "Coupons" Button -> Green */
/* STRICT Override for the middle "Coupons" Button -> Green */
a[href="#coupons"].btn-primary {
  background: var(--secondary) !important;
  color: #fff !important;
}
a[href="#coupons"].btn-primary:hover {
  background: var(--secondary-hover) !important;
  box-shadow: 0 8px 16px rgba(29, 155, 66, 0.25) !important;
  transform: translateY(-2px);
}

/* ============================================================
   3. HEADER & NAVIGATION
   ============================================================ */
.modern-header {
  background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px); 
  position: sticky; top: 0; z-index: 1200; padding: 12px 0; 
  box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--border);
}

.header-container {
  display: flex; align-items: center; justify-content: space-between; 
  gap: 24px; position: relative;
}

.header-logo img { height: 40px; width: auto; display: block; }

.header-search-wrapper { flex: 1; max-width: 600px; position: relative; }

.search-box input {
  width: 100%; padding: 12px 48px 12px 20px; border-radius: 99px;
  border: 1px solid var(--border); background: var(--bg-body); 
  font-family: inherit; font-size: 0.95rem;
}
.search-box input:focus { 
  outline: none; background: var(--bg-surface); border-color: var(--primary); 
  box-shadow: 0 0 0 4px rgba(242, 101, 34, 0.15); 
}

.search-icon-btn, .clear-btn {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  color: var(--text-light); font-size: 1.1rem; background: none; border: none;
}
.clear-btn { color: #ef4444; cursor: pointer; display: none; }

.search-results-dropdown {
  position: absolute; top: calc(100% + 12px); left: 0; width: 100%;
  background: var(--bg-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  border: 1px solid var(--border); max-height: 400px; overflow-y: auto; z-index: 2000; display: none; padding: 8px;
}
.result-item { display: flex; gap: 16px; padding: 12px; border-radius: var(--radius-sm); transition: var(--transition); color: var(--text-main); align-items: center; }
.result-item:hover { background: var(--bg-body); }
.result-item img { width: 56px; height: 56px; object-fit: contain; border-radius: var(--radius-sm); background: #fff; }
.result-info h4 { font-size: 0.95rem; margin: 0 0 4px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.result-info p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

.menu-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; align-items: center; }
.menu-links a { color: var(--text-main); font-weight: 600; font-size: 0.9rem; padding: 8px 12px; border-radius: var(--radius-sm); transition: var(--transition); }
.menu-links a:hover { background: rgba(242, 101, 34, 0.1); color: var(--primary); }
.hamburger { display: none; background: transparent; border: none; font-size: 1.5rem; color: var(--text-main); cursor: pointer; }

/* ============================================================
   4. HOME SECTIONS & HERO
   ============================================================ */
.home-hero { text-align: center; padding: 60px 16px 40px; }
.hero-lead { font-size: 1.15rem; max-width: 800px; margin: 0 auto 32px; color: var(--text-muted); }
.home-hero .btn-primary { margin: 8px; }

/* ============================================================
   5. HOME CARDS & CATEGORY CARDS 
   ============================================================ */
.cat-row {
  background: var(--bg-surface); border-radius: var(--radius-lg); padding: 24px;
  margin: 40px 0; box-shadow: var(--shadow-sm); border: 1px solid var(--border); position: relative; 
}
.cat-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.cat-header h3 { margin: 0; color: var(--primary); }
.cat-track-wrapper { overflow: hidden; position: relative; padding: 10px 0; }
.cat-track { display: flex; gap: 16px; transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); will-change: transform; }
.cat-item { flex: 0 0 calc((100% - 48px) / 4); max-width: calc((100% - 48px) / 4); }

.cat-btn {
  width: 48px; height: 48px; border-radius: 50%; background: var(--bg-surface);
  border: 1px solid var(--border); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  color: var(--text-main); display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: absolute; top: 55%; transform: translateY(-50%);
  z-index: 100; transition: var(--transition); font-size: 1.2rem;
}
.cat-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-50%) scale(1.1); }
.cat-btn.prev { left: -15px; } 
.cat-btn.next { right: -15px; }

.card {
  background: var(--bg-surface); border-radius: var(--radius-md); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  height: 100%; min-height: 480px; position: relative; overflow: hidden; transition: var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(242, 101, 34, 0.3); }

.card::before {
  content: "Promo"; position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff;
  font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 99px; z-index: 2; box-shadow: var(--shadow-sm);
}
.card .media { height: 220px; padding: 20px; background: #fff; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--bg-body); }
.card .media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.card .body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card .title { font-size: 1rem; line-height: 1.4; height: 44px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 8px; }
.card .meta { font-size: 0.8rem; color: var(--text-light); height: 18px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-bottom: 12px; }
.card .desc { font-size: 0.85rem; color: var(--text-muted); height: 60px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; flex-shrink: 0; }
.card .card-bottom { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--border); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card .discount-text { font-size: 0.85rem; font-weight: 700; color: var(--accent); line-height: 1.3; }
.card .btn { padding: 8px 16px; font-size: 0.85rem; border-radius: var(--radius-sm); }

.see-more-card {
  height: 100%; min-height: 480px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; background: linear-gradient(135deg, #FFF1EB, #FFF8F5);
  border: 2px dashed rgba(242, 101, 34, 0.4); border-radius: var(--radius-md); transition: var(--transition);
}
.see-more-card:hover { background: #FFF1EB; border-color: var(--primary); transform: translateY(-4px); }
.see-more-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 16px; }

#main[data-cards] .cards-area { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; padding: 32px 0; width: 100%; }
#main[data-cards] .card { min-height: auto; height: 100%; }

.category-link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; list-style: none; padding: 0; margin-top: 24px; }
.category-link-grid li { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm); transition: var(--transition); }
.category-link-grid li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.category-link-grid a { color: var(--text-main); font-weight: 600; display: flex; align-items: center; }

/* ============================================================
   6. ARTICLE & FAQ STYLING
   ============================================================ */
article, .page-content, .home-intro, .home-categories, .home-guide {
  background: var(--bg-surface); padding: 40px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-top: 32px;
}
.page-title {
  background: linear-gradient(135deg, var(--primary), #FF3B30); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; display: inline-block; position: relative; padding-bottom: 16px;
}
.page-title::after {
  content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 80px; height: 4px; background: var(--secondary); border-radius: 99px;
}
.ordered-list, .bullet-list { margin: 16px 0 24px 24px; color: var(--text-muted); }
.ordered-list li, .bullet-list li { margin-bottom: 12px; }

.faq-section { background: var(--bg-surface); padding: 80px 16px; margin: 60px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); width: 100% !important; }
.faq-section .container { max-width: 800px; margin: 0 auto; }
.faq-section h2 { text-align: center; margin-bottom: 16px; color: var(--primary); }
.faq-intro { text-align: center; color: var(--text-muted); margin-bottom: 40px; }
.faq-grid { display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: var(--bg-body); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; transition: var(--transition); }
.faq-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.faq-item summary { font-weight: 600; font-size: 1.05rem; color: var(--text-main); cursor: pointer; list-style: none; position: relative; padding-right: 32px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "▼"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 0.8rem; color: var(--text-light); transition: transform 0.3s ease; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(180deg); color: var(--primary); }
.faq-item[open] summary { color: var(--primary); }
.faq-body { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border); color: var(--text-muted); line-height: 1.7; }

/* ============================================================
   7. FOOTER & FLOATING BUTTONS
   ============================================================ */
.main-footer { background-color: #1A2238; color: #cbd5e1; margin-top: 120px; position: relative; }
.footer-container { max-width: 1260px; margin: 0 auto; padding: 0 16px; }
.footer-request-area {
  background: linear-gradient(135deg, #242D45, #1A2238); padding: 40px; border-radius: var(--radius-lg);
  margin-top: -60px; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5); border: 1px solid #3A435E; position: relative; z-index: 10;
}
.footer-request-area h2 { color: #fff; font-size: 1.5rem; margin-top: 0; margin-bottom: 24px; text-align: center; }
.footer-request-area h2 span { color: var(--primary); }
.footer-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; align-items: end; }
.f-group { display: flex; flex-direction: column; gap: 6px; }
.f-group label { font-size: 0.85rem; color: #94a3b8; font-weight: 500; }
.f-group input { background: #1A2238; border: 1px solid #475569; color: #fff; padding: 12px 16px; border-radius: var(--radius-sm); font-family: inherit; font-size: 0.95rem; transition: var(--transition); }
.f-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.2); }
.f-btn { height: 46px; width: 100%; }

.footer-content { padding: 80px 0 60px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.footer-col h3 { color: #fff; font-size: 1.15rem; margin-bottom: 24px; position: relative; display: inline-block; }
.footer-col h3::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 40px; height: 2px; background: var(--primary); }
.footer-about p, .footer-links a { color: #94a3b8; font-size: 0.9rem; margin-bottom: 24px; }
.social-links { display: flex; gap: 12px; }
.social-icon { width: 40px; height: 40px; background: #242D45; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; transition: var(--transition); }
.social-icon:hover { background: var(--primary); transform: translateY(-3px); }
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { display: flex; align-items: center; margin-bottom: 0; }
.footer-links a:hover { color: #fff; transform: translateX(4px); }
.footer-bottom { background: #0D121F; padding: 24px 0; text-align: center; border-top: 1px solid #242D45; font-size: 0.85rem; color: #64748b; }
.footer-bottom span { color: var(--primary); font-weight: 600; }

.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 1400; }
.wa-button { width: 56px; height: 56px; background: #25D366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: var(--shadow-md); transition: var(--transition); text-decoration: none;}
.wa-button:hover { transform: scale(1.1) rotate(5deg); box-shadow: var(--shadow-hover); }

.scroll-control { position: fixed; right: 24px; bottom: 100px; display: flex; flex-direction: column; gap: 10px; z-index: 1300; }
.scroll-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); color: var(--text-main); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: var(--transition); }
.scroll-btn.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.loading-spinner { display: flex; align-items: center; justify-content: center; min-height: 200px; width: 100%; }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--border); border-top-color: var(--primary); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   8. MOBILE RESPONSIVENESS (Media Queries)
   ============================================================ */
@media (max-width: 980px) {
  .cat-item { flex: 0 0 calc((100% - 32px) / 3); max-width: calc((100% - 32px) / 3); }
}

/* STRICT MOBILE HEADER FIX */
@media (max-width: 900px) {
  /* Force everything onto 1 line */
  .header-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important; 
  }
  
  .header-logo { flex: 0 0 auto !important; order: 1; }
  .header-logo img { height: 32px !important; width: auto; }
  
  .header-search-wrapper {
    flex: 1 1 auto !important;
    order: 2;
    min-width: 0 !important; /* Crucial: Allows search bar to shrink instead of breaking to new line */
    margin: 0 !important;
  }
  
  .search-box input {
    width: 100% !important;
    padding: 8px 32px 8px 12px !important;
    font-size: 13px !important;
  }

  .hamburger {
    flex: 0 0 auto !important;
    order: 3;
    display: flex !important; align-items: center; justify-content: center;
    width: 38px !important; height: 38px !important; border-radius: 8px;
    background: var(--bg-body) !important; margin: 0 !important;
  }

  /* Animated Mobile Menu Popup */
  .menu-links {
    position: absolute; top: calc(100% + 12px); left: 16px; right: 16px; width: auto;
    margin: 0; background: var(--bg-surface); flex-direction: column;
    padding: 0; border-radius: var(--radius-md); box-shadow: var(--shadow-md);
    border: 1px solid var(--border); z-index: 1500;
    
    /* Animation Setup */
    display: flex; opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); pointer-events: none;
  }

  .menu-links.active { 
    opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
  }
  
  .menu-links li { width: 100%; }
  .menu-links a {
    display: block; width: 100%; text-align: left; padding: 14px 20px; border-radius: 0;
    background: transparent; border-bottom: 1px solid var(--border);
  }
  .menu-links li:last-child a { border-bottom: none; }
  .cat-btn { display: none !important; }
}

@media (max-width: 768px) {
  .cat-row {
    margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); width: 100vw;
    padding: 24px 0; border-radius: 0; border-left: none; border-right: none;
  }
  .cat-header { padding: 0 16px; }
  .cat-track { padding-left: 16px; padding-right: 16px; }
  .cat-item { flex: 0 0 80vw; max-width: 80vw; min-width: 80vw; }

  article, .page-content, .home-intro, .home-categories, .home-guide { padding: 24px 16px; }
  .footer-request-area { margin-top: -40px; padding: 24px; }
  .card .desc { display: none; }
  .card { min-height: 380px; }
}

@media (max-width: 600px) {
  /* Stack Hero Buttons beautifully on phones */
  .home-hero .hero-text { display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .home-hero .btn-primary { width: 100%; max-width: 320px; margin: 0; }
}

@media (max-width: 480px) {
  .cat-track { padding-left: 7.5vw; padding-right: 7.5vw; }
  .cat-item { flex: 0 0 85vw; max-width: 85vw; min-width: 85vw; }
  #main[data-cards] .cards-area { grid-template-columns: 1fr; }
  .home-hero { padding: 40px 16px 20px; }
  .wa-button { width: 50px; height: 50px; font-size: 24px; }
}
.cat-track { display: flex; gap: 16px; transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); will-change: transform; }
.cat-item { flex: 0 0 calc((100% - 48px) / 4); max-width: calc((100% - 48px) / 4); }

.cat-btn {
  width: 48px; height: 48px; border-radius: 50%; background: var(--bg-surface);
  border: 1px solid var(--border); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  color: var(--text-main); display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: absolute; top: 55%; transform: translateY(-50%);
  z-index: 100; transition: var(--transition); font-size: 1.2rem;
}
.cat-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-50%) scale(1.1); }
.cat-btn.prev { left: -15px; } 
.cat-btn.next { right: -15px; }

.card {
  background: var(--bg-surface); border-radius: var(--radius-md); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  height: 100%; min-height: 480px; position: relative; overflow: hidden; transition: var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(242, 101, 34, 0.3); }

.card::before {
  content: "Promo"; position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff;
  font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 99px; z-index: 2; box-shadow: var(--shadow-sm);
}
.card .media { height: 220px; padding: 20px; background: #fff; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--bg-body); }
.card .media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.card .body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card .title { font-size: 1rem; line-height: 1.4; height: 44px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 8px; }
.card .meta { font-size: 0.8rem; color: var(--text-light); height: 18px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-bottom: 12px; }
.card .desc { font-size: 0.85rem; color: var(--text-muted); height: 60px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; flex-shrink: 0; }
.card .card-bottom { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--border); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card .discount-text { font-size: 0.85rem; font-weight: 700; color: var(--accent); line-height: 1.3; }
.card .btn { padding: 8px 16px; font-size: 0.85rem; border-radius: var(--radius-sm); }

.see-more-card {
  height: 100%; min-height: 480px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; background: linear-gradient(135deg, #FFF1EB, #FFF8F5);
  border: 2px dashed rgba(242, 101, 34, 0.4); border-radius: var(--radius-md); transition: var(--transition);
}
.see-more-card:hover { background: #FFF1EB; border-color: var(--primary); transform: translateY(-4px); }
.see-more-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 16px; }

#main[data-cards] .cards-area { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; padding: 32px 0; width: 100%; }
#main[data-cards] .card { min-height: auto; height: 100%; }

.category-link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; list-style: none; padding: 0; margin-top: 24px; }
.category-link-grid li { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm); transition: var(--transition); }
.category-link-grid li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.category-link-grid a { color: var(--text-main); font-weight: 600; display: flex; align-items: center; }

/* ============================================================
   6. ARTICLE & FAQ STYLING
   ============================================================ */
article, .page-content, .home-intro, .home-categories, .home-guide {
  background: var(--bg-surface); padding: 40px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-top: 32px;
}
.page-title {
  background: linear-gradient(135deg, var(--primary), #FF3B30); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; display: inline-block; position: relative; padding-bottom: 16px;
}
.page-title::after {
  content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 80px; height: 4px; background: var(--secondary); border-radius: 99px;
}
.ordered-list, .bullet-list { margin: 16px 0 24px 24px; color: var(--text-muted); }
.ordered-list li, .bullet-list li { margin-bottom: 12px; }

.faq-section { background: var(--bg-surface); padding: 80px 16px; margin: 60px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); width: 100% !important; }
.faq-section .container { max-width: 800px; margin: 0 auto; }
.faq-section h2 { text-align: center; margin-bottom: 16px; color: var(--primary); }
.faq-intro { text-align: center; color: var(--text-muted); margin-bottom: 40px; }
.faq-grid { display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: var(--bg-body); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; transition: var(--transition); }
.faq-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.faq-item summary { font-weight: 600; font-size: 1.05rem; color: var(--text-main); cursor: pointer; list-style: none; position: relative; padding-right: 32px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "▼"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 0.8rem; color: var(--text-light); transition: transform 0.3s ease; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(180deg); color: var(--primary); }
.faq-item[open] summary { color: var(--primary); }
.faq-body { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border); color: var(--text-muted); line-height: 1.7; }

/* ============================================================
   7. FOOTER & FLOATING BUTTONS
   ============================================================ */
.main-footer { background-color: #1A2238; color: #cbd5e1; margin-top: 120px; position: relative; }
.footer-container { max-width: 1260px; margin: 0 auto; padding: 0 16px; }
.footer-request-area {
  background: linear-gradient(135deg, #242D45, #1A2238); padding: 40px; border-radius: var(--radius-lg);
  margin-top: -60px; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5); border: 1px solid #3A435E; position: relative; z-index: 10;
}
.footer-request-area h2 { color: #fff; font-size: 1.5rem; margin-top: 0; margin-bottom: 24px; text-align: center; }
.footer-request-area h2 span { color: var(--primary); }
.footer-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; align-items: end; }
.f-group { display: flex; flex-direction: column; gap: 6px; }
.f-group label { font-size: 0.85rem; color: #94a3b8; font-weight: 500; }
.f-group input { background: #1A2238; border: 1px solid #475569; color: #fff; padding: 12px 16px; border-radius: var(--radius-sm); font-family: inherit; font-size: 0.95rem; transition: var(--transition); }
.f-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.2); }
.f-btn { height: 46px; width: 100%; }

.footer-content { padding: 80px 0 60px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.footer-col h3 { color: #fff; font-size: 1.15rem; margin-bottom: 24px; position: relative; display: inline-block; }
.footer-col h3::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 40px; height: 2px; background: var(--primary); }
.footer-about p, .footer-links a { color: #94a3b8; font-size: 0.9rem; margin-bottom: 24px; }
.social-links { display: flex; gap: 12px; }
.social-icon { width: 40px; height: 40px; background: #242D45; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; transition: var(--transition); }
.social-icon:hover { background: var(--primary); transform: translateY(-3px); }
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { display: flex; align-items: center; margin-bottom: 0; }
.footer-links a:hover { color: #fff; transform: translateX(4px); }
.footer-bottom { background: #0D121F; padding: 24px 0; text-align: center; border-top: 1px solid #242D45; font-size: 0.85rem; color: #64748b; }
.footer-bottom span { color: var(--primary); font-weight: 600; }

.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 1400; }
.wa-button { width: 56px; height: 56px; background: #25D366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: var(--shadow-md); transition: var(--transition); text-decoration: none;}
.wa-button:hover { transform: scale(1.1) rotate(5deg); box-shadow: var(--shadow-hover); }

.scroll-control { position: fixed; right: 24px; bottom: 100px; display: flex; flex-direction: column; gap: 10px; z-index: 1300; }
.scroll-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); color: var(--text-main); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: var(--transition); }
.scroll-btn.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.loading-spinner { display: flex; align-items: center; justify-content: center; min-height: 200px; width: 100%; }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--border); border-top-color: var(--primary); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   8. MOBILE RESPONSIVENESS (Media Queries)
   ============================================================ */
@media (max-width: 980px) {
  .cat-item { flex: 0 0 calc((100% - 32px) / 3); max-width: calc((100% - 32px) / 3); }
}

/* STRICT MOBILE HEADER FIX */
@media (max-width: 900px) {
  /* Force everything onto 1 line */
  .header-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px; 
  }
  
  .header-logo { flex: 0 0 auto; order: 1; }
  .header-logo img { height: 32px !important; width: auto; }
  
  .header-search-wrapper {
    flex: 1 1 auto;
    order: 2;
    min-width: 0; /* Crucial: Allows search bar to shrink instead of breaking to new line */
    margin: 0;
  }
  
  .search-box input {
    width: 100%;
    padding: 8px 32px 8px 12px;
    font-size: 13px;
  }

  .hamburger {
    flex: 0 0 auto;
    order: 3;
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 8px;
    background: var(--bg-body); margin: 0 !important;
  }

  /* Animated Mobile Menu Popup */
  .menu-links {
    position: absolute; top: calc(100% + 12px); left: 16px; right: 16px; width: auto;
    margin: 0; background: var(--bg-surface); flex-direction: column;
    padding: 0; border-radius: var(--radius-md); box-shadow: var(--shadow-md);
    border: 1px solid var(--border); z-index: 1500;
    
    /* Animation Setup */
    display: flex; opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); pointer-events: none;
  }

  .menu-links.active { 
    opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
  }
  
  .menu-links li { width: 100%; }
  .menu-links a {
    display: block; width: 100%; text-align: left; padding: 14px 20px; border-radius: 0;
    background: transparent; border-bottom: 1px solid var(--bg-body);
  }
  .menu-links li:last-child a { border-bottom: none; }
  .cat-btn { display: none !important; }
}

@media (max-width: 768px) {
  .cat-row {
    margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); width: 100vw;
    padding: 24px 0; border-radius: 0; border-left: none; border-right: none;
  }
  .cat-header { padding: 0 16px; }
  .cat-track { padding-left: 16px; padding-right: 16px; }
  .cat-item { flex: 0 0 80vw; max-width: 80vw; min-width: 80vw; }

  article, .page-content, .home-intro, .home-categories, .home-guide { padding: 24px 16px; }
  .footer-request-area { margin-top: -40px; padding: 24px; }
  .card .desc { display: none; }
  .card { min-height: 380px; }
}

@media (max-width: 600px) {
  /* Stack Hero Buttons beautifully on phones */
  .home-hero .hero-text { display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .home-hero .btn-primary { width: 100%; max-width: 320px; margin: 0; }
}

@media (max-width: 480px) {
  .cat-track { padding-left: 7.5vw; padding-right: 7.5vw; }
  .cat-item { flex: 0 0 85vw; max-width: 85vw; min-width: 85vw; }
  #main[data-cards] .cards-area { grid-template-columns: 1fr; }
  .home-hero { padding: 40px 16px 20px; }
  .wa-button { width: 50px; height: 50px; font-size: 24px; }
}
