/* ============================================
   MedigapAdviser.com - Online Casino Illinois
   Navy (#1a237e) + Gold (#ffd700) + White
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; color: #222; background: #f8f9fa; line-height: 1.7; }
a { color: #1a237e; text-decoration: none; transition: color .2s; }
a:hover { color: #ffd700; }
img { max-width: 100%; height: auto; }
ul, ol { padding-left: 1.4em; }
table { border-collapse: collapse; width: 100%; }

/* --- Sticky Header --- */
.site-header { position: sticky; top: 0; z-index: 1000; background: #1a237e; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: .6rem 1rem; flex-wrap: wrap; }
.site-logo { font-size: 1.35rem; font-weight: 800; color: #ffd700; letter-spacing: .5px; }
.site-logo span { color: #fff; }
.header-badge { background: #ffd700; color: #1a237e; font-weight: 700; font-size: .75rem; padding: .2em .6em; border-radius: 4px; white-space: nowrap; }

/* --- Nav --- */
.main-nav ul { list-style: none; display: flex; gap: .2rem; flex-wrap: wrap; padding: 0; }
.main-nav a { color: #fff; padding: .45rem .75rem; border-radius: 4px; font-size: .92rem; font-weight: 600; display: block; }
.main-nav a:hover, .main-nav a.active { background: rgba(255,215,0,.18); color: #ffd700; }

/* Mobile menu toggle */
.menu-toggle { display: none; background: none; border: 2px solid #ffd700; color: #ffd700; font-size: 1.4rem; padding: .2rem .5rem; border-radius: 4px; cursor: pointer; }

/* --- Breadcrumbs --- */
.breadcrumbs { background: #eee; padding: .5rem 1rem; font-size: .85rem; }
.breadcrumbs-inner { max-width: 1200px; margin: 0 auto; }
.breadcrumbs a { color: #1a237e; }
.breadcrumbs span.sep { margin: 0 .4em; color: #999; }

/* --- Main Content --- */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.content-area { max-width: 860px; margin: 0 auto; }

/* --- Typography --- */
h1 { font-size: 2rem; color: #1a237e; margin-bottom: .6em; line-height: 1.25; }
h2 { font-size: 1.55rem; color: #1a237e; margin: 1.8em 0 .5em; padding-bottom: .25em; border-bottom: 3px solid #ffd700; }
h3 { font-size: 1.25rem; color: #1a237e; margin: 1.4em 0 .4em; }
h4 { font-size: 1.05rem; color: #333; margin: 1.2em 0 .3em; }
p { margin-bottom: 1em; }

/* --- Quick Summary / TOC Box --- */
.summary-box, .toc-box { background: #fff; border: 2px solid #1a237e; border-radius: 8px; padding: 1.2rem 1.5rem; margin: 1.5rem 0; }
.summary-box h2, .toc-box h2 { margin-top: 0; border: none; font-size: 1.2rem; }
.toc-box ol { padding-left: 1.2em; }
.toc-box li { margin-bottom: .35em; }
.toc-box a { font-weight: 600; }

/* --- Comparison Tables --- */
.table-wrap { overflow-x: auto; margin: 1.2rem 0; border-radius: 8px; box-shadow: 0 1px 6px rgba(0,0,0,.08); }
.comparison-table { min-width: 640px; background: #fff; }
.comparison-table thead { background: #1a237e; color: #fff; }
.comparison-table th { padding: .7rem .8rem; font-weight: 700; text-align: left; font-size: .9rem; }
.comparison-table td { padding: .65rem .8rem; border-bottom: 1px solid #e8e8e8; font-size: .9rem; vertical-align: middle; }
.comparison-table tbody tr:nth-child(even) { background: #f5f6ff; }
.comparison-table tbody tr:hover { background: #fffde7; }

/* --- Pros / Cons --- */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.2rem 0; }
.pros-box, .cons-box { border-radius: 8px; padding: 1rem 1.2rem; }
.pros-box { background: #e8f5e9; border-left: 5px solid #2e7d32; }
.cons-box { background: #fbe9e7; border-left: 5px solid #c62828; }
.pros-box h3, .cons-box h3 { margin-top: 0; font-size: 1.05rem; }
.pros-box ul, .cons-box ul { padding-left: 1.2em; margin: 0; }
.pros-box li::marker { color: #2e7d32; }
.cons-box li::marker { color: #c62828; }

/* --- Callout Boxes --- */
.callout { border-radius: 8px; padding: 1rem 1.2rem; margin: 1.2rem 0; font-size: .95rem; }
.callout-title { font-weight: 700; margin-bottom: .3em; font-size: 1rem; }
.callout-tip { background: #e8f5e9; border-left: 5px solid #2e7d32; }
.callout-tip .callout-title { color: #2e7d32; }
.callout-reminder { background: #fff8e1; border-left: 5px solid #f9a825; }
.callout-reminder .callout-title { color: #f57f17; }
.callout-bottom-line { background: #e3f2fd; border-left: 5px solid #1565c0; }
.callout-bottom-line .callout-title { color: #1565c0; }
.callout-warning { background: #fbe9e7; border-left: 5px solid #c62828; }
.callout-warning .callout-title { color: #c62828; }

/* --- Star Ratings (CSS-only) --- */
.star-rating { display: inline-flex; font-size: 1.2rem; color: #ddd; letter-spacing: 2px; position: relative; }
.star-rating::before { content: "\2605\2605\2605\2605\2605"; }
.star-rating .stars-fill { position: absolute; top: 0; left: 0; overflow: hidden; color: #ffd700; white-space: nowrap; }
.star-rating .stars-fill::before { content: "\2605\2605\2605\2605\2605"; }
/* Widths set inline: style="width:90%" for 4.5/5, etc. */

/* --- Author Bio Card --- */
.author-card { display: flex; gap: 1rem; background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 1.2rem; margin: 1.5rem 0; align-items: flex-start; }
.author-avatar { width: 70px; height: 70px; border-radius: 50%; background: #1a237e; color: #ffd700; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 700; flex-shrink: 0; }
.author-info h4 { margin: 0 0 .2em; color: #1a237e; }
.author-info .author-title { font-size: .85rem; color: #666; margin-bottom: .3em; }
.author-info p { font-size: .9rem; margin: 0; }

/* --- FAQ Accordion --- */
.faq-section { margin: 2rem 0; }
.faq-item { border: 1px solid #ddd; border-radius: 6px; margin-bottom: .5rem; background: #fff; overflow: hidden; }
.faq-question { width: 100%; background: none; border: none; padding: .9rem 1.1rem; font-size: 1rem; font-weight: 700; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: #1a237e; }
.faq-question::after { content: "+"; font-size: 1.3rem; font-weight: 700; transition: transform .2s; }
.faq-item.open .faq-question::after { content: "\2212"; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-answer { max-height: 600px; }
.faq-answer-inner { padding: 0 1.1rem 1rem; font-size: .95rem; }

/* --- Steps --- */
.steps-list { counter-reset: step-counter; list-style: none; padding: 0; }
.steps-list li { counter-increment: step-counter; padding: .8rem 0 .8rem 3.2rem; position: relative; border-bottom: 1px solid #eee; }
.steps-list li::before { content: counter(step-counter); position: absolute; left: 0; top: .7rem; width: 2.2rem; height: 2.2rem; background: #1a237e; color: #ffd700; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .95rem; }

/* --- CTA Button --- */
.cta-btn { display: inline-block; background: #ffd700; color: #1a237e; font-weight: 700; padding: .65rem 1.6rem; border-radius: 6px; font-size: 1rem; transition: background .2s, transform .1s; }
.cta-btn:hover { background: #ffca28; transform: translateY(-1px); color: #1a237e; }

/* --- Affiliate Disclosure --- */
.affiliate-disc { background: #fff8e1; border: 1px solid #ffe082; border-radius: 6px; padding: .7rem 1rem; font-size: .82rem; color: #6d4c00; margin: 1rem 0; }

/* --- Footer --- */
.site-footer { background: #1a237e; color: #ccc; padding: 2.5rem 1rem 1.5rem; margin-top: 3rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.footer-col h4 { color: #ffd700; margin-bottom: .6em; font-size: 1rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .35em; }
.footer-col a { color: #ccc; font-size: .9rem; }
.footer-col a:hover { color: #ffd700; }
.footer-responsible { grid-column: 1 / -1; text-align: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .85rem; }
.footer-responsible .badge-21 { display: inline-block; background: #ffd700; color: #1a237e; font-weight: 800; padding: .15em .5em; border-radius: 4px; margin-right: .4em; }
.footer-bottom { text-align: center; max-width: 1200px; margin: 1.5rem auto 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; color: #999; }

/* --- Last Updated --- */
.last-updated { font-size: .85rem; color: #888; margin-bottom: 1rem; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .main-nav ul { display: none; flex-direction: column; width: 100%; }
  .main-nav.open ul { display: flex; }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.3rem; }
  .pros-cons { grid-template-columns: 1fr; }
  .author-card { flex-direction: column; text-align: center; align-items: center; }
  .header-inner { gap: .5rem; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .site-logo { font-size: 1.1rem; }
  .comparison-table { font-size: .82rem; }
  .comparison-table th, .comparison-table td { padding: .5rem; }
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
