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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
:root {
  --rx-white: #ffffff;
  --rx-navy: #0a1e3d;
  --rx-blue: #2196F3;
  --rx-sky: #4fc3f7;
  --rx-ice: #e3f2fd;
  --rx-ghost: #f0f4f8;
  --rx-text: #1a2236;
  --rx-soft: #5c6b82;
  --rx-accent: #0d47a1;
  --rx-radius: 18px;
  --rx-radius-sm: 10px;
  --rx-shadow: 0 6px 32px rgba(10,30,61,0.10);
  --rx-font-h: 'Playfair Display', Georgia, serif;
  --rx-font-b: 'DM Sans', 'Segoe UI', sans-serif;
}
body { font-family: var(--rx-font-b); background: var(--rx-ghost); color: var(--rx-text); font-size: 16px; line-height: 1.7; }

/* NAV */
.rx-header { background: var(--rx-navy); position: sticky; top: 0; z-index: 200; }
.rx-nav { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; height: 64px; }
.rx-logo { font-family: var(--rx-font-h); font-size: 1.7rem; font-weight: 700; color: var(--rx-white); text-decoration: none; letter-spacing: -1px; }
.rx-logo em { font-style: normal; color: var(--rx-sky); }
.rx-links { display: flex; gap: 6px; list-style: none; }
.rx-links a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.85rem; font-weight: 500; padding: 6px 14px; border-radius: 50px; transition: 0.25s; }
.rx-links a:hover, .rx-links a.active { background: rgba(255,255,255,0.12); color: #fff; }
.rx-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.rx-burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }
.rx-mob { display: none; background: var(--rx-navy); padding: 12px 24px 20px; }
.rx-mob.open { display: block; }
.rx-mob a { display: block; color: rgba(255,255,255,0.8); text-decoration: none; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 0.95rem; }

/* DIAGONAL HERO */
.rx-hero { background: linear-gradient(135deg, var(--rx-navy) 0%, #0d2e5c 50%, var(--rx-accent) 100%); padding: 72px 24px 100px; position: relative; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); }
.rx-hero::after { content: ''; position: absolute; top: -40%; right: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(79,195,247,0.15) 0%, transparent 70%); border-radius: 50%; }
.rx-hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.rx-hero-tag { display: inline-block; background: var(--rx-sky); color: var(--rx-navy); font-size: 0.7rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 5px 16px; border-radius: 50px; margin-bottom: 18px; }
.rx-hero h1 { font-family: var(--rx-font-h); font-size: clamp(2rem, 4.5vw, 3.4rem); color: #fff; line-height: 1.15; margin-bottom: 20px; }
.rx-hero-lead { color: rgba(255,255,255,0.78); font-size: 1.05rem; line-height: 1.8; max-width: 540px; margin-bottom: 24px; }
.rx-hero-author { display: flex; align-items: center; gap: 12px; }
.rx-hero-av { width: 42px; height: 42px; border-radius: 50%; background: var(--rx-sky); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--rx-navy); font-size: 1rem; flex-shrink: 0; }
.rx-hero-name { color: #fff; font-weight: 600; font-size: 0.9rem; }
.rx-hero-role { color: rgba(255,255,255,0.55); font-size: 0.78rem; }

.rx-hero-card { background: rgba(255,255,255,0.07); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--rx-radius); padding: 28px 24px; transform: rotate(2deg); transition: transform 0.4s; }
.rx-hero-card:hover { transform: rotate(0deg); }
.rx-hero-card h3 { font-family: var(--rx-font-h); color: var(--rx-sky); font-size: 1.05rem; margin-bottom: 14px; }
.rx-hero-fact { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.rx-hero-fact-ic { width: 32px; height: 32px; border-radius: 8px; background: rgba(79,195,247,0.15); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.rx-hero-fact p { color: rgba(255,255,255,0.72); font-size: 0.82rem; line-height: 1.55; }

/* MAIN LAYOUT */
.rx-main { max-width: 1200px; margin: -40px auto 0; padding: 0 24px 60px; display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; position: relative; z-index: 10; }

/* CONTENT */
.rx-card { background: var(--rx-white); border-radius: var(--rx-radius); padding: 36px 36px; box-shadow: var(--rx-shadow); margin-bottom: 28px; }
.rx-card h2 { font-family: var(--rx-font-h); font-size: 1.55rem; color: var(--rx-navy); margin-bottom: 14px; }
.rx-card p { color: var(--rx-soft); margin-bottom: 12px; font-size: 0.95rem; }

.rx-diag-block { background: var(--rx-white); border-radius: var(--rx-radius); box-shadow: var(--rx-shadow); margin-bottom: 28px; overflow: hidden; transform: rotate(-1deg); transition: transform 0.35s; }
.rx-diag-block:hover { transform: rotate(0); }
.rx-diag-block .inner { padding: 32px 36px; }
.rx-diag-block h2 { font-family: var(--rx-font-h); font-size: 1.4rem; color: var(--rx-navy); margin-bottom: 12px; }
.rx-diag-block p { color: var(--rx-soft); font-size: 0.93rem; margin-bottom: 10px; }

.rx-img-block { border-radius: var(--rx-radius); overflow: hidden; box-shadow: var(--rx-shadow); margin-bottom: 28px; }
.rx-img-block img { width: 100%; height: 320px; object-fit: cover; display: block; }
.rx-img-cap { background: var(--rx-white); padding: 12px 20px; font-size: 0.8rem; color: var(--rx-soft); font-style: italic; }

.rx-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--rx-blue); margin-bottom: 8px; }
.rx-title { font-family: var(--rx-font-h); font-size: 1.7rem; color: var(--rx-text); margin-bottom: 6px; }
.rx-sub { color: var(--rx-soft); font-size: 0.93rem; margin-bottom: 24px; }

/* HABIT GRID */
.rx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 28px; }
.rx-g-card { background: var(--rx-white); border-radius: var(--rx-radius); padding: 26px 22px; box-shadow: var(--rx-shadow); border-left: 4px solid var(--rx-blue); transition: transform 0.3s, box-shadow 0.3s; position: relative; }
.rx-g-card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(10,30,61,0.15); }
.rx-g-card.alt { border-left-color: var(--rx-sky); }
.rx-g-card.green { border-left-color: #4caf50; }
.rx-g-card.purple { border-left-color: #7c4dff; }
.rx-g-num { font-family: var(--rx-font-h); font-size: 2.6rem; font-weight: 700; color: var(--rx-ice); line-height: 1; margin-bottom: 4px; }
.rx-g-card h3 { font-family: var(--rx-font-h); font-size: 1.05rem; color: var(--rx-navy); margin-bottom: 8px; }
.rx-g-card p { font-size: 0.85rem; color: var(--rx-soft); line-height: 1.6; }
.rx-tag { display: inline-block; background: var(--rx-ice); color: var(--rx-accent); font-size: 0.68rem; font-weight: 600; padding: 3px 10px; border-radius: 50px; margin-top: 10px; }

/* HIGHLIGHT */
.rx-highlight { background: linear-gradient(135deg, var(--rx-navy), var(--rx-accent)); border-radius: var(--rx-radius); padding: 36px 36px; color: #fff; margin-bottom: 28px; position: relative; overflow: hidden; transform: rotate(1deg); transition: transform 0.35s; }
.rx-highlight:hover { transform: rotate(0); }
.rx-highlight::after { content: ''; position: absolute; right: -20px; top: -20px; width: 200px; height: 200px; background: radial-gradient(circle, rgba(79,195,247,0.2), transparent 70%); border-radius: 50%; }
.rx-highlight h3 { font-family: var(--rx-font-h); font-size: 1.35rem; margin-bottom: 12px; }
.rx-highlight p { font-size: 0.93rem; opacity: 0.88; line-height: 1.7; margin-bottom: 10px; }
.rx-highlight ul { margin: 12px 0 0 20px; }
.rx-highlight li { font-size: 0.88rem; opacity: 0.9; margin-bottom: 5px; }

/* INLINE INSERT (sidebar-like) */
.rx-insert { background: linear-gradient(135deg, var(--rx-ice), #c5e1fb); border-radius: var(--rx-radius); padding: 24px 22px; margin-bottom: 28px; transform: rotate(-1.5deg); transition: transform 0.3s; }
.rx-insert:hover { transform: rotate(0); }
.rx-insert h4 { font-family: var(--rx-font-h); color: var(--rx-accent); font-size: 1rem; margin-bottom: 8px; }
.rx-insert p { font-size: 0.85rem; color: var(--rx-soft); }

/* QUOTE */
.rx-quote { background: var(--rx-ice); border-radius: var(--rx-radius); padding: 28px 24px; text-align: center; margin-bottom: 28px; border-left: 5px solid var(--rx-blue); }
.rx-quote blockquote { font-family: var(--rx-font-h); font-size: 1.05rem; color: var(--rx-navy); font-style: italic; line-height: 1.55; margin-bottom: 8px; }
.rx-quote cite { font-size: 0.75rem; color: var(--rx-soft); font-style: normal; }

/* REC CARDS */
.rx-rec { display: flex; gap: 16px; background: var(--rx-white); border-radius: var(--rx-radius-sm); padding: 22px 20px; box-shadow: var(--rx-shadow); margin-bottom: 16px; align-items: flex-start; transition: transform 0.25s; }
.rx-rec:hover { transform: translateX(5px); }
.rx-rec-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--rx-ice); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.rx-rec h4 { font-family: var(--rx-font-h); font-size: 0.95rem; color: var(--rx-navy); margin-bottom: 5px; }
.rx-rec p { font-size: 0.83rem; color: var(--rx-soft); }

/* CONCLUSION */
.rx-conclusion { background: var(--rx-ice); border-radius: var(--rx-radius); padding: 36px 36px; border-left: 5px solid var(--rx-sky); margin-bottom: 28px; }
.rx-conclusion h3 { font-family: var(--rx-font-h); font-size: 1.35rem; color: var(--rx-navy); margin-bottom: 12px; }
.rx-conclusion p { color: var(--rx-soft); font-size: 0.93rem; margin-bottom: 10px; }

/* SIDEBAR */
.rx-side { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 22px; }
.rx-side-card { background: var(--rx-white); border-radius: var(--rx-radius); padding: 22px 18px; box-shadow: var(--rx-shadow); }
.rx-side-card h4 { font-family: var(--rx-font-h); font-size: 1rem; color: var(--rx-navy); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--rx-ice); }
.rx-side-item { display: flex; gap: 10px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--rx-ghost); text-decoration: none; color: inherit; transition: opacity 0.2s; }
.rx-side-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.rx-side-item:hover { opacity: 0.7; }
.rx-side-num { font-family: var(--rx-font-h); font-size: 1.6rem; font-weight: 700; color: var(--rx-ice); line-height: 1; flex-shrink: 0; width: 28px; }
.rx-side-t { font-size: 0.83rem; font-weight: 500; color: var(--rx-text); line-height: 1.45; }
.rx-side-cat { font-size: 0.7rem; color: var(--rx-blue); font-weight: 600; margin-top: 2px; }

.rx-tip { background: linear-gradient(135deg, var(--rx-ice), #c5e1fb); border-radius: var(--rx-radius-sm); padding: 16px; margin-bottom: 10px; }
.rx-tip-label { font-size: 0.66rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--rx-blue); margin-bottom: 4px; }
.rx-tip p { font-size: 0.82rem; color: var(--rx-text); }

.rx-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.rx-tags span { background: var(--rx-ghost); color: var(--rx-soft); border-radius: 50px; padding: 4px 12px; font-size: 0.75rem; font-weight: 500; transition: 0.2s; cursor: default; }
.rx-tags span:hover { background: var(--rx-ice); color: var(--rx-accent); }

.rx-nl { background: linear-gradient(135deg, var(--rx-navy), var(--rx-accent)); border-radius: var(--rx-radius); padding: 24px 18px; color: #fff; text-align: center; }
.rx-nl h4 { font-family: var(--rx-font-h); font-size: 1.05rem; margin-bottom: 6px; }
.rx-nl p { font-size: 0.8rem; opacity: 0.85; margin-bottom: 14px; }
.rx-nl input[type="email"] { width: 100%; padding: 10px 14px; border-radius: 50px; border: none; font-family: var(--rx-font-b); font-size: 0.85rem; margin-bottom: 8px; outline: none; }
.rx-nl button { width: 100%; padding: 10px; background: var(--rx-sky); color: var(--rx-navy); font-weight: 700; font-size: 0.85rem; border: none; border-radius: 50px; cursor: pointer; transition: 0.2s; }
.rx-nl button:hover { opacity: 0.85; }

/* COOKIE BANNER */
#cookie-toggle { display: none; }
.rx-cookie { position: fixed; bottom: 20px; right: 20px; background: var(--rx-navy); color: #fff; border-radius: var(--rx-radius); padding: 22px 20px; max-width: 360px; box-shadow: 0 8px 40px rgba(0,0,0,0.3); z-index: 9999; font-size: 0.82rem; line-height: 1.6; transition: 0.3s; }
#cookie-toggle:checked ~ .rx-cookie { display: none; }
.rx-cookie p { margin-bottom: 12px; }
.rx-cookie-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.rx-cookie-btns label, .rx-cookie-btns a { padding: 8px 16px; border-radius: 50px; font-size: 0.78rem; font-weight: 600; text-decoration: none; cursor: pointer; border: none; display: inline-block; text-align: center; min-width: 44px; min-height: 44px; line-height: 28px; }
.rx-cookie-accept { background: var(--rx-sky); color: var(--rx-navy); }
.rx-cookie-decline { background: rgba(255,255,255,0.12); color: #fff; }
.rx-cookie-link { color: var(--rx-sky) !important; background: none !important; text-decoration: underline !important; }

/* FOOTER */
.rx-footer { background: var(--rx-navy); color: rgba(255,255,255,0.65); padding: 48px 24px 24px; }
.rx-footer-inner { max-width: 1200px; margin: 0 auto; }
.rx-footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.rx-footer-brand .rx-logo { font-size: 1.6rem; }
.rx-footer-brand p { font-size: 0.83rem; margin-top: 10px; line-height: 1.65; max-width: 260px; }
.rx-footer-col h5 { color: #fff; font-size: 0.82rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }
.rx-footer-col a { display: block; color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.83rem; margin-bottom: 8px; transition: color 0.2s; }
.rx-footer-col a:hover { color: #fff; }
.rx-footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 18px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.rx-footer-copy { font-size: 0.78rem; }
.rx-footer-disclaimer { font-size: 0.72rem; opacity: 0.5; margin-top: 12px; max-width: 700px; line-height: 1.6; }
.rx-footer-legal { display: flex; gap: 16px; }
.rx-footer-legal a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 0.75rem; transition: color 0.2s; }
.rx-footer-legal a:hover { color: #fff; }

/* ARTICLE PAGE */
.rx-article-hero { background: linear-gradient(135deg, var(--rx-navy), var(--rx-accent)); padding: 60px 24px 80px; clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%); }
.rx-article-hero-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.rx-article-hero h1 { font-family: var(--rx-font-h); font-size: clamp(1.8rem, 3.5vw, 2.8rem); color: #fff; line-height: 1.2; margin-bottom: 16px; }
.rx-article-hero p { color: rgba(255,255,255,0.75); font-size: 1rem; max-width: 600px; margin: 0 auto; }
.rx-article-body { max-width: 800px; margin: -30px auto 60px; padding: 0 24px; position: relative; z-index: 10; }
.rx-article-body .rx-card { margin-bottom: 24px; }
.rx-article-body .rx-card h2 { font-size: 1.4rem; }

/* LEGAL PAGES */
.rx-legal { max-width: 800px; margin: 0 auto; padding: 48px 24px 60px; }
.rx-legal h1 { font-family: var(--rx-font-h); font-size: 2rem; color: var(--rx-navy); margin-bottom: 24px; }
.rx-legal h2 { font-family: var(--rx-font-h); font-size: 1.2rem; color: var(--rx-navy); margin: 24px 0 8px; }
.rx-legal p { color: var(--rx-soft); margin-bottom: 10px; font-size: 0.93rem; }

/* SUCCESS */
.rx-success { text-align: center; padding: 100px 24px; }
.rx-success h1 { font-family: var(--rx-font-h); font-size: 2.4rem; color: var(--rx-navy); margin-bottom: 16px; }
.rx-success p { color: var(--rx-soft); font-size: 1rem; margin-bottom: 24px; max-width: 500px; margin-left: auto; margin-right: auto; }
.rx-success a { display: inline-block; background: var(--rx-blue); color: #fff; padding: 12px 32px; border-radius: 50px; text-decoration: none; font-weight: 600; transition: 0.2s; min-height: 44px; }
.rx-success a:hover { background: var(--rx-accent); }

/* 404 */
.rx-404 { text-align: center; padding: 100px 24px; }
.rx-404 h1 { font-family: var(--rx-font-h); font-size: 5rem; color: var(--rx-navy); margin-bottom: 8px; }
.rx-404 p { color: var(--rx-soft); font-size: 1rem; margin-bottom: 28px; }
.rx-404-links { display: flex; flex-direction: column; gap: 10px; max-width: 400px; margin: 0 auto; }
.rx-404-links a { background: var(--rx-white); padding: 14px 20px; border-radius: var(--rx-radius-sm); box-shadow: var(--rx-shadow); text-decoration: none; color: var(--rx-navy); font-weight: 500; transition: 0.2s; min-height: 44px; }
.rx-404-links a:hover { background: var(--rx-ice); }

/* ANIMATIONS */
@keyframes rx-up { from { opacity:0; transform: translateY(28px); } to { opacity:1; transform: translateY(0); } }
.rx-anim { animation: rx-up 0.6s ease forwards; }
.rx-anim-2 { animation: rx-up 0.6s 0.15s ease both; }
.rx-anim-3 { animation: rx-up 0.6s 0.3s ease both; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .rx-hero-inner { grid-template-columns: 1fr; }
  .rx-hero-card { display: none; }
  .rx-main { grid-template-columns: 1fr; }
  .rx-side { position: static; }
  .rx-grid { grid-template-columns: 1fr; }
  .rx-footer-top { grid-template-columns: 1fr 1fr; }
  .rx-diag-block, .rx-highlight, .rx-insert, .rx-hero-card { transform: none !important; }
}
@media (max-width: 640px) {
  .rx-links { display: none; }
  .rx-burger { display: block; }
  .rx-hero { padding: 48px 16px 72px; }
  .rx-hero h1 { font-size: 1.7rem; }
  .rx-card, .rx-diag-block .inner { padding: 24px 18px; }
  .rx-highlight { padding: 26px 18px; }
  .rx-main { padding: 0 16px 40px; }
  .rx-footer-top { grid-template-columns: 1fr; gap: 24px; }
  .rx-footer-bottom { flex-direction: column; align-items: flex-start; }
}
