:root {
  --primary: #c8102e;
  --primary-dark: #a00d24;
  --secondary: #ffcd00;
  --text: #1a1a2e;
  --text-light: #555;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --border: #e0e0e0;
  --max-width: 1200px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
}

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.site-logo img { height: 36px; }

.nav-main { display: flex; gap: 1.5rem; align-items: center; }
.nav-main > a { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.nav-main > a:hover { color: var(--primary); }

.lang-switch { display: none !important; }

/* Language Dropdown */
.lang-dropdown {
  position: relative;
}
.lang-dropdown-btn {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  white-space: nowrap;
  user-select: none;
  font-family: inherit;
}
.lang-dropdown-btn:hover { background: var(--border); }
.lang-dropdown-btn::after { content: ' ▾'; font-size: 0.75rem; }
.lang-dropdown-menu {
  display: none !important;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 170px;
  z-index: 200;
  overflow: hidden;
}
/* Transparent bridge across the 6px gap so the menu stays open while moving the cursor down to it */
.lang-dropdown:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 8px;
}
.lang-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.lang-dropdown-menu a:last-child { border-bottom: none; }
.lang-dropdown-menu a:hover { background: var(--bg-alt); color: var(--primary); }
.lang-dropdown-menu a.current { background: var(--bg-alt); font-weight: 700; pointer-events: none; }
.lang-dropdown.open .lang-dropdown-menu { display: block !important; }
@media (hover: hover) {
  .lang-dropdown:hover .lang-dropdown-menu { display: block !important; }
}

/* Hero */
.hero {
  color: #fff;
  text-align: center;
  margin: 0;
  padding: 0;
}
.hero-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0;
  padding: 0;
  vertical-align: bottom;
}
.hero-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 1rem 1.5rem;
}
.hero h1 { font-size: 2rem; margin-bottom: 0.35rem; font-weight: 800; }
.hero p { font-size: 0.95rem; opacity: 0.92; max-width: 700px; margin: 0 auto 0.85rem; }
.hero .btn { background: var(--secondary); color: var(--text); padding: 0.5rem 1.5rem; border-radius: 6px; font-weight: 700; font-size: 0.9rem; display: inline-block; }
.hero .btn:hover { background: #e6b800; color: var(--text); }

/* Sections */
section { padding: 2.5rem 0; }
section:nth-child(even):not(.hero) { background: var(--bg-alt); }
.section-title { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.section-subtitle { color: var(--text-light); margin-bottom: 2rem; font-size: 1.1rem; }

/* Cards Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 1.25rem; }
.card-body h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.card-body p { color: var(--text-light); font-size: 0.9rem; }
.card-tag { display: inline-block; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 3px; padding: 0.15rem 0.5rem; font-size: 0.75rem; margin-top: 0.75rem; color: var(--text-light); }

/* Content Pages */
.content-page { padding: 3rem 0; }
.content-page h1 { font-size: 2.2rem; margin-bottom: 1rem; }
.content-page h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; color: var(--primary-dark); }
.content-page h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }
.content-page p { margin-bottom: 1rem; }
.content-page ul, .content-page ol { margin: 0.5rem 0 1.5rem 1.5rem; }
.content-page li { margin-bottom: 0.4rem; }
.content-page table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.content-page th, .content-page td { border: 1px solid var(--border); padding: 0.6rem 0.8rem; text-align: left; font-size: 0.9rem; }
.content-page th { background: var(--bg-alt); font-weight: 600; }

.btn-download {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  margin-top: 1rem;
}
.btn-download:hover { background: var(--primary-dark); color: #fff; }

/* Breadcrumb */
.breadcrumb { padding: 1rem 0; font-size: 0.85rem; color: var(--text-light); }
.breadcrumb a { color: var(--text-light); }
.breadcrumb span { margin: 0 0.4rem; }

/* Footer */
.site-footer {
  background: var(--text);
  color: #ccc;
  padding: 3rem 0 1.5rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { color: #fff; margin-bottom: 0.75rem; font-size: 1rem; }
.footer-col a { color: #aaa; display: block; margin-bottom: 0.4rem; font-size: 0.9rem; }
.footer-col a:hover { color: var(--secondary); }
.footer-bottom { border-top: 1px solid #333; padding-top: 1.5rem; text-align: center; font-size: 0.85rem; }

/* Ad placeholder */
.ad-slot { background: var(--bg-alt); border: 2px dashed var(--border); padding: 1.5rem; text-align: center; margin: 2rem 0; border-radius: 6px; color: var(--text-light); font-size: 0.85rem; }

/* Image placeholder */
.img-placeholder {
  background: var(--bg-alt);
  border: 2px dashed var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 2rem;
  color: var(--text-light);
  font-size: 0.9rem;
  text-align: center;
}

/* FAQ / Accordion */
.faq-item { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.faq-item summary { font-weight: 600; cursor: pointer; font-size: 1.05rem; }
.faq-item p { margin-top: 0.75rem; color: var(--text-light); }

/* Responsive */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .card-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-main {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 3px solid var(--primary);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 99;
  }
  .nav-main.open { display: flex; }
  .site-header { position: relative; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
