/*
Theme Name: Custom Auto Theme
Author: System
Version: 1.0
*/

:root {
  --color-primary: #F9A825;
  --color-primary-light: #FFFDE7;
  --color-accent: #283593;
  --color-dark: #F57F17;
  --color-text: #1a1a1a;
  --color-bg-alt: #FFFDF0;
  --font-main: 'Open Sans', system-ui, sans-serif;
}
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-main); color: var(--color-text); background: #fff; display: flex; flex-direction: column; min-height: 100vh; font-size: 1rem; line-height: 1.7; }
main { flex: 1; display: flex; flex-direction: column; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
ul { padding-left: 1.5rem; }
li { margin-bottom: 0.35rem; }

/* === HEADER: minimal_centered === */
.site-header { background: #fff; border-bottom: 3px solid var(--color-primary); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; flex-direction: column; align-items: center; padding: 0.7rem 1.5rem; gap: 0.4rem; }
.logo { font-size: 1.7rem; font-weight: 900; color: var(--color-accent); letter-spacing: -1px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.main-nav { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.main-nav a { color: var(--color-text); font-weight: 600; font-size: 0.93rem; padding: 0.25rem 0; transition: color 0.2s; }
.main-nav a:hover { color: var(--color-primary); text-decoration: none; }
.btn { display: inline-block; padding: 0.6rem 1.4rem; border-radius: 6px; font-weight: 700; font-size: 0.93rem; cursor: pointer; transition: background 0.2s, transform 0.15s; border: none; }
.btn-nav { background: var(--color-primary); color: #fff; }
.btn-nav:hover { background: var(--color-dark); text-decoration: none; transform: translateY(-1px); color: #fff; }
.btn-primary { background: var(--color-primary); color: #fff; padding: 0.75rem 1.8rem; font-size: 1rem; border-radius: 8px; }
.btn-primary:hover { background: var(--color-dark); text-decoration: none; color: #fff; transform: translateY(-1px); }
.btn-accent { background: var(--color-accent); color: #fff; padding: 0.75rem 1.8rem; font-size: 1rem; border-radius: 8px; }
.btn-accent:hover { background: #1a237e; text-decoration: none; color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--color-accent); border: 2px solid var(--color-accent); padding: 0.6rem 1.4rem; border-radius: 8px; }
.btn-outline:hover { background: var(--color-accent); color: #fff; text-decoration: none; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.3rem; }
.burger span { display: block; width: 26px; height: 3px; background: var(--color-accent); border-radius: 2px; transition: all 0.2s; }

/* === HERO: minimal_announce === */
.hero { background: var(--color-bg-alt); border-bottom: 1px solid #e8e0c0; }
.hero-strip { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 0 0.5rem; flex-wrap: wrap; }
.hero-strip-logo { font-size: 1.6rem; font-weight: 900; color: var(--color-accent); letter-spacing: -0.5px; }
.hero-strip-tagline { font-size: 1rem; font-weight: 600; color: var(--color-text); margin-left: 1rem; }
.hero-strip-right { display: flex; align-items: center; }
.hero-subtitle-row { font-size: 0.92rem; color: #666; padding-bottom: 1rem; }

/* === ABOUT: split_image_text === */
.section-about { padding: 0; overflow: hidden; }
.about-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 340px; }
.about-split-img { position: relative; overflow: hidden; background: var(--color-accent); display: flex; align-items: center; justify-content: center; }
.about-split-img.has-bg-image { background-size: cover; background-position: center; }
.about-split-img .bg-overlay { position: absolute; inset: 0; background: rgba(40,53,147,0.4); }
.about-split-img-fallback { position: relative; z-index: 1; }
.about-split-img-fallback svg { width: 80px; height: 80px; opacity: 0.5; }
.about-split-text { background: var(--color-primary-light); padding: 3rem 2.5rem; display: flex; flex-direction: column; justify-content: center; gap: 1.25rem; }
.about-split-text h2 { font-size: 1.55rem; font-weight: 800; color: var(--color-accent); line-height: 1.2; }
.about-split-text p { color: var(--color-text); font-size: 0.97rem; }
.about-points { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.about-points li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.93rem; }
.about-points li::before { content: "→"; color: var(--color-primary); font-weight: 700; flex-shrink: 0; margin-top: 0.1rem; }

/* === ARTICLES: editorial_rows === */
.section-articles { padding: 3.5rem 0; background: #fff; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { font-size: 2rem; font-weight: 900; color: var(--color-accent); }
.section-header p { font-size: 1rem; color: #555; margin-top: 0.5rem; }
.editorial-rows { display: flex; flex-direction: column; }
.editorial-row { display: grid; grid-template-columns: 60px 1fr 1fr; gap: 0 1.5rem; align-items: start; padding: 1.75rem 0; border-bottom: 1px solid #e8e0c0; }
.editorial-row:last-child { border-bottom: none; }
.editorial-row-num { font-size: 2.8rem; font-weight: 900; color: var(--color-primary); line-height: 1; }
.editorial-row-title { padding-top: 0.2rem; }
.editorial-row-title a { font-size: 1.2rem; font-weight: 800; color: var(--color-accent); line-height: 1.3; text-decoration: none; }
.editorial-row-title a:hover { color: var(--color-primary); }
.editorial-row-right { display: flex; flex-direction: column; gap: 0.75rem; padding-top: 0.2rem; }
.editorial-row-teaser { font-size: 0.95rem; color: #444; line-height: 1.6; }
.editorial-row-link { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 700; font-size: 0.9rem; color: var(--color-primary); text-decoration: none; }
.editorial-row-link:hover { color: var(--color-dark); text-decoration: none; }

/* === TIPS === */
.section-tips { padding: 3rem 0; background: var(--color-bg-alt); }
.section-tips h2 { font-size: 1.7rem; font-weight: 900; color: var(--color-accent); text-align: center; margin-bottom: 2rem; }
.home-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.tip-card { background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 2px 12px rgba(0,0,0,0.07); display: flex; flex-direction: column; gap: 0.75rem; transition: transform 0.2s, box-shadow 0.2s; }
.tip-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.tip-card-num { font-size: 2rem; font-weight: 900; color: var(--color-primary); line-height: 1; }
.tip-card h3 { font-size: 1rem; font-weight: 800; color: var(--color-accent); }
.tip-card p { font-size: 0.9rem; color: #555; line-height: 1.6; }

/* === STATS === */
.section-stats { padding: 2rem 0; background: var(--color-accent); }
.stats-strip { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-num { font-size: 2.2rem; font-weight: 900; color: var(--color-primary); display: block; }
.stat-label { font-size: 0.88rem; color: rgba(255,255,255,0.8); }

/* === TESTIMONIALS === */
.section-testimonials { padding: 3rem 0; background: #fff; }
.section-testimonials h2 { font-size: 1.7rem; font-weight: 900; color: var(--color-accent); text-align: center; margin-bottom: 2rem; }
.home-testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-card { background: var(--color-primary-light); border-radius: 12px; padding: 1.75rem 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; border-top: 4px solid var(--color-primary); transition: transform 0.2s; }
.testimonial-card:hover { transform: translateY(-2px); }
.testimonial-quote-mark { font-size: 3rem; line-height: 0.8; color: var(--color-primary); font-weight: 900; }
.testimonial-text { font-size: 0.95rem; color: #444; line-height: 1.6; font-style: italic; }
.testimonial-author { font-size: 0.85rem; font-weight: 700; color: var(--color-accent); }

/* === NEWSLETTER === */
.section-newsletter { padding: 3.5rem 0; background: var(--color-primary); }
.newsletter-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.newsletter-inner h2 { font-size: 1.8rem; font-weight: 900; color: #fff; margin-bottom: 0.75rem; }
.newsletter-inner p { color: rgba(255,255,255,0.9); margin-bottom: 1.5rem; font-size: 0.97rem; }
.newsletter-form { display: flex; flex-direction: column; gap: 0.75rem; }
.newsletter-form input { padding: 0.75rem 1rem; border-radius: 8px; border: none; font-size: 0.97rem; font-family: var(--font-main); outline: none; }
.newsletter-form input:focus { box-shadow: 0 0 0 3px rgba(255,255,255,0.4); }
.newsletter-form button { background: var(--color-accent); color: #fff; padding: 0.8rem 1.5rem; border: none; border-radius: 8px; font-weight: 700; font-size: 1rem; cursor: pointer; font-family: var(--font-main); transition: background 0.2s, transform 0.15s; }
.newsletter-form button:hover { background: #1a237e; transform: translateY(-1px); }
.newsletter-form-row { display: flex; gap: 0.75rem; }
.newsletter-form-row input { flex: 1; }

/* === DISCLAIMER BLOCK === */
.site-disclaimer { background: var(--color-bg-alt); border-top: 1px solid #e8e0c0; padding: 1.25rem 0; }
.site-disclaimer p { font-size: 0.82rem; color: #888; text-align: center; line-height: 1.5; max-width: 800px; margin: 0 auto; }

/* === FOOTER: stacked_full === */
.site-footer { background: var(--color-accent); color: #fff; }
.footer-row { display: flex; justify-content: center; align-items: center; padding: 1.1rem 1.5rem; border-top: 1px solid rgba(255,255,255,0.15); }
.footer-row:first-child { border-top: none; padding-top: 1.5rem; }
.footer-row:last-child { padding-bottom: 1.5rem; }
.footer-logo a { font-size: 1.5rem; font-weight: 900; color: var(--color-primary); text-decoration: none; letter-spacing: -0.5px; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: rgba(255,255,255,0.85); font-size: 0.9rem; text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover { color: var(--color-primary); text-decoration: none; }
.footer-disclaimer { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-align: center; max-width: 700px; line-height: 1.5; }
.footer-copy { font-size: 0.82rem; color: rgba(255,255,255,0.5); text-align: center; }

/* === HAS-BG-IMAGE === */
.has-bg-image { background-size: cover; background-position: center; background-repeat: no-repeat; }
.bg-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }

/* === ARTICLE BANNER: hero_wide === */
.article-banner { background: var(--color-primary); padding: 5rem 0; text-align: center; }
.article-banner h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 900; color: #fff; line-height: 1.2; max-width: 760px; margin: 0 auto 1rem; }
.article-banner-tag { display: inline-block; background: rgba(255,255,255,0.25); color: #fff; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: 0.3rem 0.9rem; border-radius: 999px; margin-bottom: 1rem; }
.article-banner-meta { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.article-banner-meta span { font-size: 0.88rem; color: rgba(255,255,255,0.85); }

/* === ARTICLE LAYOUT (no aside) === */
.article-wrap { padding: 3rem 0 2rem; }
.article-layout { max-width: 760px; margin: 0 auto; }
article h2 { font-size: 1.4rem; font-weight: 800; color: var(--color-accent); margin: 2rem 0 0.75rem; }
article h3 { font-size: 1.1rem; font-weight: 700; color: var(--color-accent); margin: 1.5rem 0 0.5rem; }
article p { margin-bottom: 1.1rem; color: var(--color-text); }
article ul, article ol { margin-bottom: 1.1rem; }
article li { margin-bottom: 0.4rem; }

/* === TIP BLOCK: full_bg === */
.tip-block { background: var(--color-primary); color: #fff; padding: 1.5rem 2rem; border-radius: 12px; margin: 2rem 0; }
.tip-block * { color: #fff; }
.tip-block p { margin-bottom: 0.5rem; }
.tip-block p:last-child { margin-bottom: 0; }
.tip-block-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.8) !important; margin-bottom: 0.5rem; display: block; }

/* === ARTICLE IMAGES === */
.article-top-image { margin: 0 0 2rem; border-radius: 12px; overflow: hidden; }
.article-top-image img { width: 100%; height: auto; display: block; }
.article-inline-img { margin: 2rem 0; border-radius: 10px; overflow: hidden; }
.article-inline-img img { width: 100%; height: auto; display: block; }
.article-inline-img figcaption { font-size: 0.82rem; color: #888; padding: 0.5rem 0 0; text-align: center; }

/* === RELATED ARTICLES === */
.related-articles { margin: 2.5rem 0 1.5rem; }
.related-articles h3 { font-size: 1.1rem; font-weight: 800; color: var(--color-accent); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--color-primary); }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.related-card { background: var(--color-bg-alt); border-radius: 10px; padding: 1.2rem; border-left: 4px solid var(--color-primary); transition: transform 0.2s; }
.related-card:hover { transform: translateY(-2px); }
.related-card h4 { font-size: 0.97rem; font-weight: 700; color: var(--color-accent); margin-bottom: 0.4rem; }
.related-card h4 a { color: inherit; text-decoration: none; }
.related-card h4 a:hover { color: var(--color-primary); text-decoration: none; }
.related-card p { font-size: 0.85rem; color: #666; line-height: 1.5; margin: 0; }

/* === NEWSLETTER CTA === */
.newsletter-cta { background: var(--color-bg-alt); border-radius: 12px; padding: 2rem; margin: 2rem 0; text-align: center; border: 2px solid var(--color-primary); }
.newsletter-cta h3 { font-size: 1.2rem; font-weight: 800; color: var(--color-accent); margin-bottom: 0.5rem; }
.newsletter-cta p { font-size: 0.93rem; color: #555; margin-bottom: 1.25rem; }
.newsletter-cta .newsletter-form { max-width: 440px; margin: 0 auto; }

/* === ARTICLE DISCLAIMER === */
.article-disclaimer { background: #f7f7f7; border-radius: 8px; padding: 1.25rem 1.5rem; margin-top: 2rem; border-left: 3px solid #ccc; }
.article-disclaimer p { font-size: 0.83rem; color: #888; line-height: 1.6; margin: 0; }

/* === POLICY PAGE === */
.policy-page { display: grid; grid-template-columns: 240px 1fr; gap: 3rem; padding: 3rem 0 4rem; align-items: start; }
.policy-sidebar { position: sticky; top: 120px; }
.policy-sidebar nav { background: var(--color-bg-alt); border-radius: 10px; padding: 1.5rem; }
.policy-sidebar h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--color-accent); margin-bottom: 1rem; }
.policy-sidebar a { display: block; font-size: 0.9rem; color: #444; padding: 0.35rem 0; text-decoration: none; border-bottom: 1px solid #e8e0c0; transition: color 0.2s; }
.policy-sidebar a:last-child { border-bottom: none; }
.policy-sidebar a:hover { color: var(--color-primary); text-decoration: none; }
.policy-content h1 { font-size: 1.9rem; font-weight: 900; color: var(--color-accent); margin-bottom: 0.5rem; }
.policy-content h2 { font-size: 1.25rem; font-weight: 800; color: var(--color-accent); margin: 2rem 0 0.75rem; padding-top: 1rem; border-top: 1px solid #e8e0c0; }
.policy-content p { margin-bottom: 1rem; font-size: 0.96rem; color: var(--color-text); line-height: 1.8; }
.policy-content ul { margin-bottom: 1rem; }
.policy-content li { font-size: 0.95rem; color: var(--color-text); margin-bottom: 0.4rem; }
.policy-date { font-size: 0.85rem; color: #888; margin-bottom: 1.5rem; }
.policy-contact { background: var(--color-primary-light); border-radius: 8px; padding: 1.25rem; margin-top: 1rem; }
.policy-contact p { margin: 0; }

/* === SUCCESS PAGE === */
.success-page { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 5rem 1.5rem; text-align: center; }
.success-icon { font-size: 4rem; margin-bottom: 1rem; }
.success-page h1 { font-size: 2.2rem; font-weight: 900; color: var(--color-accent); margin-bottom: 0.75rem; }
.success-page p { font-size: 1rem; color: #555; max-width: 480px; margin-bottom: 2rem; line-height: 1.7; }

/* === 404 PAGE === */
.page-404 { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 5rem 1.5rem; text-align: center; }
.page-404-number { font-size: clamp(6rem, 15vw, 10rem); font-weight: 900; color: var(--color-primary); line-height: 1; margin-bottom: 0.5rem; }
.page-404 h1 { font-size: 1.8rem; font-weight: 800; color: var(--color-accent); margin-bottom: 0.75rem; }
.page-404 p { font-size: 1rem; color: #555; max-width: 460px; margin-bottom: 2rem; }
.page-404-btns { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* === COOKIE BANNER === */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--color-accent); color: #fff; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; z-index: 999; }
.cookie-banner p { font-size: 0.88rem; color: rgba(255,255,255,0.9); flex: 1; margin: 0; }
.cookie-banner a { color: var(--color-primary); }
.cookie-banner-btn { background: var(--color-primary); color: #fff; border: none; padding: 0.5rem 1.2rem; border-radius: 6px; font-weight: 700; cursor: pointer; font-family: var(--font-main); font-size: 0.9rem; white-space: nowrap; }

/* === COOKIE PAGE === */
.cookie-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 2rem 0; }
.cookie-card { background: var(--color-bg-alt); border-radius: 10px; padding: 1.5rem; border-top: 4px solid var(--color-primary); }
.cookie-card h3 { font-size: 1rem; font-weight: 800; color: var(--color-accent); margin-bottom: 0.6rem; }
.cookie-card p { font-size: 0.88rem; color: #555; line-height: 1.6; margin: 0; }
.cookie-card-badge { display: inline-block; background: var(--color-primary); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; margin-bottom: 0.6rem; }

/* === TERMS PAGE === */
.terms-block { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid #e8e0c0; }
.terms-block:last-child { border-bottom: none; }
.terms-num { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-primary); margin-bottom: 0.4rem; }
.terms-block h2 { font-size: 1.2rem; font-weight: 800; color: var(--color-accent); margin-bottom: 0.75rem; }
.terms-page { max-width: 760px; margin: 0 auto; padding: 3rem 0 4rem; }
.terms-header { margin-bottom: 2.5rem; }
.terms-header h1 { font-size: 2rem; font-weight: 900; color: var(--color-accent); margin-bottom: 0.5rem; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .about-split { grid-template-columns: 1fr; }
  .about-split-img { min-height: 200px; }
  .policy-page { grid-template-columns: 1fr; }
  .policy-sidebar { position: static; }
  .home-testimonials { grid-template-columns: 1fr 1fr; }
  .cookie-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .editorial-row { grid-template-columns: 50px 1fr; }
  .editorial-row-right { grid-column: 2; }
  .home-tips { grid-template-columns: 1fr; }
  .home-testimonials { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .hero-strip { flex-direction: column; text-align: center; }
  .hero-strip-tagline { margin-left: 0; }
  .stats-strip { gap: 1.5rem; }
  .newsletter-form-row { flex-direction: column; }
  .cookie-cards { grid-template-columns: 1fr; }
  .terms-page { padding: 2rem 0 3rem; }
  .article-banner { padding: 3rem 0; }
}
@media (max-width: 600px) {
  .burger { display: flex; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 1rem 1.5rem; box-shadow: 0 4px 12px rgba(0,0,0,0.1); gap: 0.75rem; border-top: 2px solid var(--color-primary); z-index: 99; }
  .main-nav.open { display: flex; }
  .header-inner { position: relative; }
}
