:root {
    --bg: #f8fafc; /* Very light cool gray for page background */
    --content-bg: #ffffff;
    --text: #334155; /* Slate-700 */
    --text-dark: #0f172a; /* Slate-900 */
    --muted: #64748b; /* Slate-500 */
    --border: #e2e8f0; /* Slate-200 */
    
    /* Brand Colors */
    --brand: #0284c7; /* Sky-600 */
    --brand-hover: #0369a1; /* Sky-700 */
    --brand-dark: #0c4a6e; /* Sky-900 */
    
    --radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    --container: 1200px;
    --sidebar-width: 300px;
    --header-height: 72px;
    
    --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  }
  
  * { box-sizing: border-box; }
  
  /* REMOVED html/body height: 100% to fix sticky scrolling issues */
  body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
  }
  
  a { color: var(--brand); text-decoration: none; font-weight: 500; transition: color 0.2s; }
  a:hover { color: var(--brand-hover); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }
  
  .container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
  
  .skip-link {
    position: absolute; left: -999px; top: 1rem;
    background: var(--brand-dark); color: #fff;
    padding: 0.75rem 1rem; border-radius: var(--radius);
    z-index: 1000;
  }
  .skip-link:focus { left: 1rem; }
  
  /* --- Header --- */
  .site-header {
    position: sticky; 
    top: 0; 
    z-index: 999; /* High z-index ensures it stays on top */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: var(--header-height);
    width: 100%;
  }
  
  .header-row { display: flex; align-items: center; justify-content: space-between; height: 100%; }
  
  .brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
  .brand-logo { height: 50px; width: auto; }
  .brand-logo-mobile { display: none; height: 0px; }
  .brand-text { font-size: 1.25rem; font-weight: 800; color: var(--brand-dark); letter-spacing: -0.02em; line-height: 1; }
  
  .nav-toggle {
    display: none;
    background: transparent; border: 1px solid var(--border);
    border-radius: 8px; padding: 18px; cursor: pointer; color: var(--text);
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 24px; height: 2px; background: currentColor;
    position: relative;
  }
  .nav-toggle__bars::before { content: ""; position: absolute; top: -7px; left: 0; }
  .nav-toggle__bars::after { content: ""; position: absolute; top: 7px; left: 0; }
  
  /* --- Navigation --- */
  .site-nav { margin-left: auto; }
  .nav-list { display: flex; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 0; }
  
  .nav-item {
    position: relative; /* CRITICAL: Anchors the absolute submenu to this item */
  }
  
  .nav-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 0.5rem 0.9rem; border-radius: 99px;
    font-size: 0.9rem; font-weight: 600; color: var(--text-dark);
    background: transparent; border: none; cursor: pointer;
    transition: all 0.2s;
    text-decoration: none !important;
  }
  .nav-link:hover, .nav-item.open .nav-link { background: #f1f5f9; color: var(--brand); }
  
  .nav-cta { 
    background: var(--brand); color: white !important; 
    padding: 0.5rem 1.25rem; box-shadow: 0 2px 4px rgba(2,132,199,0.25); 
  }
  .nav-cta:hover { background: var(--brand-dark); transform: translateY(-1px); }
  
  .chev { font-size: 0.7em; opacity: 0.5; transition: transform 0.2s; }
  .nav-item.open .chev { transform: rotate(180deg); }
  
  /* --- Dropdowns --- */
  .submenu {
    display: none;
    position: absolute;
    top: 100%; 
    left: 0; /* Align to the left edge of the parent link */
    min-width: 240px; 
    background: white; 
    border: 1px solid var(--border);
    border-radius: 12px; 
    box-shadow: var(--shadow-lg);
    padding: 8px; 
    list-style: none; 
    margin: 10px 0 0; /* Slight offset */
    z-index: 100;
    animation: fadeIn 0.1s ease-out;
  }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
  
  .nav-item.open > .submenu { display: block; }
  
  .submenu li { display: block; width: 100%; }
  .submenu a { 
    display: block; padding: 10px 14px; 
    border-radius: 8px; color: var(--text); 
    font-size: 0.95rem; font-weight: 500;
  }
  .submenu a:hover { background: #f1f5f9; color: var(--brand); text-decoration: none; }
  
  /* --- Mobile Menu --- */
  @media (max-width: 920px) {
    .nav-toggle { display: block; }
    .brand-logo-mobile { display: block; height: 50px; width: auto; }
    .brand-logo { display: none; height: 0px; }
    .site-nav {
      display: none; position: absolute; top: 100%; left: 0; right: 0;
      background: white; border-bottom: 1px solid var(--border);
      padding: 16px; max-height: 85vh; overflow-y: auto;
      box-shadow: var(--shadow-lg);
    }
    body.nav-open .site-nav { display: block; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
    .nav-link { width: 100%; justify-content: space-between; padding: 12px; }
    .nav-link:hover { background: #f8fafc; }
    
    .submenu { 
      position: static; box-shadow: none; border: none; 
      width: 100%; background: #f8fafc; padding-left: 12px;
      margin: 0; display: none;
    }
    .nav-item.open .submenu { display: block; }
  }
  
  /* --- Layout Grid --- */
  .layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 28px 0 64px;
    align-items: start;
  }
  
  @media (min-width: 980px) {
    .layout {
      grid-template-columns: var(--sidebar-width) 1fr;
      gap: 24px;
    }
    
    .sidebar {
      order: -1; /* Move to visual left */
      position: sticky;
      top: calc(var(--header-height) + 20px); /* Stick below header */
      height: fit-content;
    }
  }
  
  /* --- Main Content --- */
  .prose {
    background: var(--content-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
  }
  
  /* Article Typography */
  .article-header { margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; }
  .article-title { 
    font-size: clamp(2rem, 3.5vw, 2.5rem); 
    line-height: 1.2; 
    color: var(--text-dark); 
    margin: 0 0 1rem; 
    letter-spacing: -0.02em; 
  }
  .article-meta { 
    display: flex; align-items: center; gap: 12px; 
    font-size: 0.95rem; color: var(--muted); font-weight: 500;
  }
  .author-avatar { 
    width: 32px; height: 32px; 
    background: #cbd5e1; border-radius: 50%; 
    display: inline-block; 
  }
  
  .prose h2 { 
    font-size: 1.75rem; color: var(--text-dark); 
    margin: 2.5rem 0 1.25rem; 
    padding-bottom: 0.5rem; border-bottom: 2px solid #f1f5f9; 
  }
  .prose h3 { font-size: 1.35rem; color: var(--text-dark); margin: 2rem 0 1rem; }
  .prose p { margin: 0 0 1.5rem; color: #475569; font-size: 1.05rem; }
  .prose ul, .prose ol { margin: 0 0 1.5rem 1rem; padding-left: 1.5rem; color: #475569; }
  .prose li { margin-bottom: 0.5rem; }
  
  /* Images: Clean, Centered */
  .prose img {
    border-radius: 8px;
    box-shadow: none; /* Removed shadow */
    border: none;
    max-width: 100%;
    height: auto;
    margin: 2.5rem auto 1rem; /* Center align with spacing */
    display: block;
  }
  .image {
    text-align: center; font-size: 0.9rem; color: var(--muted); 
    margin-top: -0.5rem; margin-bottom: 2rem; font-style: italic;
  }
  
  /* --- Breadcrumbs --- */
  .breadcrumbs { margin-bottom: 8px; }
  .breadcrumbs ol { 
    display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; 
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; 
    font-weight: 700; color: #94a3b8;
  }
  .breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
  .breadcrumbs a { color: #94a3b8; transition: color 0.2s; }
  .breadcrumbs a:hover { color: var(--brand); text-decoration: none; }
  .breadcrumbs [aria-current="page"] { color: var(--brand); }
  
  /* --- CTA Box (New Light Blue Theme) --- */
  .cta-box {
    margin-top: 3rem;
    background: #f0f9ff; /* Sky-50 */
    border-radius: 16px;
    padding: 32px;
    display: grid;
    gap: 32px;
    overflow: hidden;
    position: relative;
  }
  
  @media (min-width: 768px) {
    .cta-box { grid-template-columns: 200px 1fr; align-items: center; }
  }
  
  .cta-image { position: relative; z-index: 1; }
  .cta-image img {
    max-width: 100%; height: auto; border-radius: 6px;
    max-height: 400px; width: auto; margin: 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  }
  
  .cta-content { position: relative; z-index: 1; }
  .cta-content h3 {
    color: #0c4a6e; /* Sky-900 */
    margin: 0 0 12px; 
    font-size: 1.5rem; font-weight: 800; line-height: 1.25;
  }
  .cta-content p { color: #334155; font-size: 1.05rem; margin-bottom: 24px; }
  
  .cta-rating { 
    display: flex; align-items: center; gap: 8px; margin-bottom: 16px; 
    font-size: 0.9rem; font-weight: 700; color: #b45309; /* Amber-700 */
    background: #fffbeb; padding: 4px 12px; border-radius: 99px; width: fit-content;
  }
  .cta-stars { color: #f59e0b; letter-spacing: 2px; }
  
  .cta-btn {
    display: inline-block;
    background: var(--brand); 
    color: white;
    padding: 14px 28px; border-radius: 10px;
    font-weight: 700; font-size: 1.1rem;
    box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.3);
    transition: all 0.2s ease;
    text-decoration: none !important;
  }
  .cta-btn:hover { 
    transform: translateY(-2px); 
    color: white;
    box-shadow: 0 10px 15px -3px rgba(2, 132, 199, 0.4); 
  }
  
  /* --- Sidebar Components --- */
  .side-card {
    background: white; border: 1px solid var(--border); border-radius: 16px;
    padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow-sm);
  }
  .side-title { 
    font-size: 1.1rem; font-weight: 800; color: var(--text-dark);
    margin: 0 0 16px; border-bottom: 1px solid var(--border); padding-bottom: 12px; 
  }
  .side-search { display: flex; gap: 8px; }
  .side-search input { 
    flex: 1; padding: 10px; border: 1px solid var(--border); border-radius: 8px;
    background: #f8fafc;
  }
  .side-search button { 
    padding: 10px 16px; background: var(--brand); color: white; 
    border: none; border-radius: 8px; cursor: pointer; font-weight: 600;
  }

  .side-media{
    margin-top: 0;
    margin-bottom: 1rem;
  }

  .side-media img{
    border-radius: 8px;
    max-width: 200px;
    object-fit: contain;
    height: fit-content;
  }

  .sidebar-cta-btn {
    display: inline-block;
    background: var(--brand); 
    color: white;
    padding: 10px 20px; border-radius: 8px;
    font-weight: 700; font-size: 1rem;
    box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.3);
    transition: all 0.2s ease;
    text-decoration: none !important;
  }

  .sidebar-cta-btn:hover { 
    transform: translateY(-2px); 
    color: white;
    box-shadow: 0 10px 15px -3px rgba(2, 132, 199, 0.4); 
  }
  
  /* --- Footer --- */
  .site-footer {
    background: white; border-top: 1px solid var(--border); padding: 80px 0 40px;
    color: #64748b; font-size: 0.95rem;
  }
  .footer-grid {
    display: grid; grid-template-columns: repeat(1, 1fr); gap: 40px 20px; margin-bottom: 60px;
  }
  @media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
  
  .footer-col h4 { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin: 0 0 20px; text-transform: uppercase; }
  .footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
  .footer-col a { color: #64748b; font-weight: 500; transition: color 0.2s; }
  .footer-col a:hover { color: var(--brand); text-decoration: none; }
  
  .footer-bottom {
    border-top: 1px solid var(--border); padding-top: 32px;
    display: flex; flex-direction: column; align-items: center; gap: 16px;
    text-align: center;
  }

  .vmiddle{
    margin: 0px 5px 0px 0px!important;
    display: inline-block!important;
  }

  .home-content-container { max-width: 1200px; margin: 0 auto 30px; }
  /* --- HERO SECTION --- */

  .hero-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 80px 0 120px; /* Extra bottom padding for overlap */
    text-align: center;
    border-bottom: 1px solid var(--border);
  }
  .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 16px;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }
  .hero-subtitle {
    font-size: 1.25rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 32px;
  }
  .hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
  .hero-btn {
    padding: 14px 28px; border-radius: 99px; font-weight: 700; text-decoration: none; transition: transform 0.2s;
  }
  .hero-btn.primary { background: var(--brand); color: white; box-shadow: 0 4px 6px -1px rgba(2,132,199,0.3); }
  .hero-btn.primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
  .hero-btn.secondary { background: white; color: var(--text-dark); border: 1px solid var(--border); }
  .hero-btn.secondary:hover { background: #f8fafc; border-color: #cbd5e1; }
  
  /* --- FEATURE CARDS --- */
  .topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: -60px; /* Pull up over Hero */
    position: relative;
    z-index: 10;
    margin-bottom: 60px;
  }
  .topic-card {
    background: white; padding: 32px 24px; border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
    text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px;
    transition: all 0.2s;
  }
  .topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15);
    border-color: var(--brand);
    text-decoration: none;
  }
  .topic-icon {
    font-size: 2.5rem; width: 64px; height: 64px;
    background: #f0f9ff; border-radius: 50%;
    display: grid; place-items: center; color: var(--brand);
  }
  .topic-title { font-weight: 800; font-size: 1.25rem; color: var(--text-dark); margin: 0; }
  .topic-desc { font-size: 0.95rem; color: var(--muted); margin: 0; line-height: 1.5; }

  hr{
    border: 1px solid #f1f5f9;
    margin: 1rem 0;
  }

  .prose .clubcounty {
    font-weight: 700;
    font-size: 1.1rem;
  }

  h5, h4 {
    font-size: medium;
  }

  table.border {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: var(--content-bg, #ffffff);
  }
  
  table.border th,
  table.border td {
    border: 1px solid var(--border, #e2e8f0);
    padding: 0.75rem 1rem;
    vertical-align: middle;
  }
  
  /* Ensure empty cells still get borders correctly on desktop */
  table.border td.empty {
    border: none; 
  }
  
  /* Mobile Stacking */
  @media (max-width: 768px) {
    table.border, 
    table.border tbody, 
    table.border tr, 
    table.border td {
      display: block;
      width: 100%;
    }
    
    table.border tr {
      margin-bottom: 1.5rem;
      border: 1px solid var(--border, #e2e8f0);
      overflow: hidden; /* Keeps border-radius clean */
    }
    
    table.border td {
      border: none;
      border-bottom: 1px solid var(--border, #e2e8f0);
      text-align: center; /* Centers the content for better mobile readability */
    }
    
    table.border td:last-child {
      border-bottom: none;
    }
    
    /* Hide the empty spacer cells completely on mobile */
    table.border td.empty,
    table.border td:empty {
      display: none;
    }
  }