/* Reset and Base Styles */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;line-height:1.6;color:#1a1a1a;background:#fafafa}

/* Typography */
h1{font-size:2.5rem;font-weight:700;line-height:1.2;margin-bottom:1rem;color:#0a0a0a}
h2{font-size:2rem;font-weight:600;line-height:1.3;margin-bottom:0.875rem;color:#0a0a0a}
h3{font-size:1.5rem;font-weight:600;line-height:1.4;margin-bottom:0.75rem;color:#1a1a1a}
h4{font-size:1.25rem;font-weight:600;line-height:1.4;margin-bottom:0.5rem;color:#1a1a1a}
p{font-size:1.125rem;margin-bottom:1rem;color:#2a2a2a}
a{color:#0066cc;text-decoration:none;transition:color 0.2s ease}
a:hover{color:#004999;text-decoration:underline}
a:focus{outline:2px solid #0066cc;outline-offset:2px}

/* Container */
.container{max-width:1200px;margin:0 auto;padding:0 1.5rem}
.narrow-container{max-width:800px;margin:0 auto;padding:0 1.5rem}

/* Header */
header{background:#fff;border-bottom:1px solid #e0e0e0;padding:1rem 0;position:sticky;top:0;z-index:100;box-shadow:0 2px 4px rgba(0,0,0,0.05)}
nav{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem}
.logo{font-size:1.5rem;font-weight:700;color:#0a0a0a}
.logo:hover{text-decoration:none}
.nav-links{display:flex;gap:2rem;list-style:none;align-items:center}
.nav-links a{font-size:1rem;font-weight:500;color:#2a2a2a}

/* Hero Section */
.hero{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:#fff;padding:4rem 0;text-align:center}
.hero h1{color:#fff;font-size:3rem;margin-bottom:1rem}
.hero p{font-size:1.375rem;color:#f0f0f0;margin-bottom:2rem}

/* Search Bar */
.search-container{max-width:600px;margin:0 auto 2rem;position:relative}
.search-input{width:100%;padding:1rem 3rem 1rem 1.5rem;font-size:1.125rem;border:2px solid #fff;border-radius:50px;background:#fff;color:#1a1a1a}
.search-input:focus{outline:none;box-shadow:0 0 0 3px rgba(255,255,255,0.3)}
.search-icon{position:absolute;right:1.5rem;top:50%;transform:translateY(-50%);width:24px;height:24px;pointer-events:none}

/* Categories Grid */
.categories{padding:3rem 0}
.section-title{text-align:center;margin-bottom:2rem}
.category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem;margin-bottom:3rem}
.category-card{background:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:2rem;text-align:center;transition:transform 0.2s,box-shadow 0.2s;cursor:pointer}
.category-card:hover{transform:translateY(-4px);box-shadow:0 8px 16px rgba(0,0,0,0.1)}
.category-card h3{margin-bottom:0.5rem;color:#667eea}
.category-card p{font-size:1rem;color:#5a5a5a;margin-bottom:0}
.category-icon{font-size:3rem;margin-bottom:1rem;display:block}

/* Top Questions List */
.top-questions{background:#fff;padding:3rem 0}
.question-list{list-style:none;max-width:800px;margin:0 auto}
.question-item{border-bottom:1px solid #e0e0e0;padding:1.5rem 0;transition:background 0.2s}
.question-item:hover{background:#f9f9f9;padding-left:1rem;margin-left:-1rem;margin-right:-1rem;padding-right:1rem}
.question-item a{display:flex;justify-content:space-between;align-items:center;font-size:1.25rem;font-weight:500;color:#1a1a1a}
.question-item a:hover{text-decoration:none}
.question-tag{display:inline-block;background:#667eea;color:#fff;padding:0.25rem 0.75rem;border-radius:4px;font-size:0.875rem;font-weight:500;margin-left:1rem}

/* Question Page */
.question-header{background:#fff;border-bottom:2px solid #667eea;padding:2rem 0;margin-bottom:2rem}
.question-title{margin-bottom:0.5rem}
.question-meta{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}
.breadcrumb{font-size:0.875rem;color:#5a5a5a}
.breadcrumb a{color:#0066cc}

/* Content Boxes */
.info-box{background:#fff;border-left:4px solid #667eea;padding:1.5rem;margin-bottom:2rem;border-radius:4px;box-shadow:0 2px 8px rgba(0,0,0,0.05)}
.info-box.hurry{border-left-color:#10b981;background:#f0fdf4}
.info-box.warning{border-left-color:#ef4444;background:#fef2f2}
.info-box.insight{border-left-color:#f59e0b;background:#fffbeb}
.info-box h4{margin-bottom:0.75rem;display:flex;align-items:center;gap:0.5rem}
.info-box p{margin-bottom:0.5rem;font-size:1.0625rem}
.info-box ul{margin-left:1.5rem;margin-bottom:0.5rem}
.info-box li{margin-bottom:0.5rem;font-size:1.0625rem}

/* Answer Section */
.answer-section{background:#fff;padding:2rem;margin-bottom:2rem;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,0.05)}
.answer-section h3{color:#667eea;margin-bottom:1rem}
.answer-example{background:#f8f9fa;padding:1.5rem;border-radius:6px;margin-bottom:1.5rem;border-left:3px solid #667eea}
.answer-example h4{color:#1a1a1a;margin-bottom:0.75rem}
.answer-example p{font-style:italic;color:#2a2a2a}

/* Navigation Buttons */
.question-nav{display:flex;justify-content:space-between;padding:2rem 0;gap:1rem;flex-wrap:wrap}
.btn{display:inline-block;padding:0.875rem 2rem;background:#667eea;color:#fff;border-radius:6px;font-weight:600;font-size:1rem;border:none;cursor:pointer;transition:background 0.2s,transform 0.1s;text-align:center}
.btn:hover{background:#5568d3;text-decoration:none;transform:translateY(-2px)}
.btn:active{transform:translateY(0)}
.btn-secondary{background:#6b7280;color:#fff}
.btn-secondary:hover{background:#4b5563}

/* Footer */
footer{background:#1a1a1a;color:#e0e0e0;padding:3rem 0 1.5rem;margin-top:4rem}
.footer-content{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:2rem;margin-bottom:2rem}
.footer-section h4{color:#fff;margin-bottom:1rem}
.footer-section ul{list-style:none}
.footer-section li{margin-bottom:0.5rem}
.footer-section a{color:#e0e0e0}
.footer-section a:hover{color:#fff}
.footer-bottom{text-align:center;padding-top:1.5rem;border-top:1px solid #333;font-size:0.875rem;color:#9ca3af}

/* Utility Classes */
.text-center{text-align:center}
.mt-1{margin-top:0.5rem}
.mt-2{margin-top:1rem}
.mt-3{margin-top:1.5rem}
.mb-1{margin-bottom:0.5rem}
.mb-2{margin-bottom:1rem}
.mb-3{margin-bottom:1.5rem}

/* Responsive */
@media(max-width:768px){
  h1{font-size:2rem}
  h2{font-size:1.75rem}
  .hero h1{font-size:2.25rem}
  .hero p{font-size:1.125rem}
  .nav-links{gap:1rem}
  .category-grid{grid-template-columns:1fr}
  .question-item a{flex-direction:column;align-items:flex-start}
  .question-tag{margin-left:0;margin-top:0.5rem}
  .question-nav{flex-direction:column}
  .btn{width:100%}
}

/* Content Page Styles */
.content-page{background:#fff;padding:3rem 0}
.content-section{margin-bottom:2.5rem}
.content-section h2{color:#667eea;margin-top:2rem}
.content-section ul,.content-section ol{margin-left:2rem;margin-bottom:1rem}
.content-section li{margin-bottom:0.5rem;font-size:1.0625rem}
