:root {
  --primary-blue: #0052cc;
  --hero-gradient: linear-gradient(135deg, #0061ff 0%, #0033aa 100%);
  --bg-light: #f8fafc;
  --white: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1);
  --radius: 12px;
  --transition: all 0.3s ease;
}

/* -----------------------------------
   BASE
----------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background: #f6f9fc;
  line-height: 1.7;
}

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

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

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 16px;
}

.section-padding {
  padding: 80px 0;
}

/* -----------------------------------
   HERO
----------------------------------- */
.guides-hero-alt {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.18), transparent 30%),
    var(--hero-gradient);
  color: var(--white);
  padding: 64px 0 72px;
}

.guides-hero-simple {
  max-width: 900px;
}

.guides-hero-main {
  max-width: 820px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.86);
}

.breadcrumb a {
  color: rgba(255,255,255,0.96);
}

.guides-hero-main h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.08;
  max-width: 800px;
  margin-bottom: 18px;
}

.hero-lead {
  max-width: 760px;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: var(--transition);
}

.hero-btn-primary {
  background: var(--white);
  color: var(--primary-blue);
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-btn-secondary {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(255,255,255,0.22);
}

.hero-btn-secondary:hover {
  background: rgba(255,255,255,0.16);
}

/* -----------------------------------
   MAIN CONTENT
----------------------------------- */
.guides-content {
  padding-top: 56px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.guides-main-column,
.guides-sidebar {
  min-width: 0;
}

.section-intro {
  margin-bottom: 24px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.section-kicker.light {
  color: rgba(255,255,255,0.78);
}

.section-intro h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 10px;
}

.section-intro p {
  color: var(--text-muted);
  max-width: 760px;
}

.guide-search-wrap {
  margin-bottom: 24px;
}

.guide-search-box {
  position: relative;
}

.guide-search-box i {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.guide-search-box input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 0 18px 0 46px;
  font-size: 0.96rem;
  background: var(--white);
  outline: none;
  transition: var(--transition);
}

.guide-search-box input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(0, 82, 204, 0.08);
}

.editorial-guide-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.editorial-guide-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.editorial-guide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.editorial-guide-left {
  flex: 1;
  min-width: 0;
}

.editorial-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 10px;
  background: #eef4ff;
  color: var(--primary-blue);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.editorial-guide-card h3 {
  font-size: 1.28rem;
  line-height: 1.3;
  margin-bottom: 10px;
}

.editorial-guide-card h3 a:hover {
  color: var(--primary-blue);
}

.editorial-guide-card p {
  color: var(--text-muted);
  margin-bottom: 14px;
  max-width: 760px;
}

.editorial-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.editorial-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.editorial-guide-right {
  flex-shrink: 0;
}

.read-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--primary-blue);
  color: var(--white);
  font-weight: 700;
  transition: var(--transition);
}

.read-btn:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

/* -----------------------------------
   SIDEBAR
----------------------------------- */
.guides-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-list a {
  color: var(--text-main);
  font-weight: 600;
  line-height: 1.5;
}

.sidebar-list a:hover {
  color: var(--primary-blue);
}

.soft-blue-card {
  background: linear-gradient(180deg, #f4f8ff 0%, #edf4ff 100%);
  border-color: #d9e7ff;
}

.soft-blue-card p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* -----------------------------------
   EMPTY STATE
----------------------------------- */
.empty-guides-message {
  display: none;
  text-align: center;
  background: var(--white);
  border: 1px dashed var(--border-color);
  border-radius: 20px;
  padding: 42px 20px;
  margin-top: 18px;
}

.empty-guides-message.show {
  display: block;
}

.empty-guides-message i {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 14px;
}

.empty-guides-message h3 {
  margin-bottom: 8px;
}

.empty-guides-message p {
  color: var(--text-muted);
}

/* -----------------------------------
   PAGINATION
----------------------------------- */
.guides-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination-btn,
.page-number {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border-color);
  background: var(--white);
  color: var(--text-main);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.pagination-btn:hover,
.page-number:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  transform: translateY(-1px);
}

.page-number.active {
  background: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
}

.pagination-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.pagination-hidden {
  display: none !important;
}

/* -----------------------------------
   RESPONSIVE
----------------------------------- */
@media (max-width: 1100px) {
  .content-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 64px 0;
  }

  .guides-hero-alt {
    padding: 52px 0 60px;
  }

  .guides-content {
    padding-top: 40px;
  }

  .sidebar-card,
  .editorial-guide-card {
    padding: 20px;
  }

  .editorial-guide-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .editorial-guide-right {
    width: 100%;
  }

  .read-btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .guides-hero-main h1 {
    font-size: 2rem;
  }

  .hero-lead {
    font-size: 0.98rem;
  }

  .section-intro h2 {
    font-size: 1.6rem;
  }

  .guides-pagination {
    gap: 10px;
  }

  .pagination-btn,
  .page-number {
    width: 100%;
    justify-content: center;
  }

  .pagination-numbers {
    width: 100%;
    justify-content: center;
  }
}