/* Root Variables */
:root {
  --color-primary: #FF6B35;
  --color-primary-dark: #E85A2A;
  --color-primary-light: #FF8C61;
  --color-bg: #ffffff;
  --color-surface: #f9fafb;
  --color-text: #111827;
  --color-text-secondary: #6b7280;
  --color-border: #e5e7eb;
}
[data-theme="dark"] {
  --color-bg: #111827;
  --color-surface: #1f2937;
  --color-text: #f9fafb;
  --color-text-secondary: #9ca3af;
  --color-border: #374151;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
[data-theme="dark"] header {
  background: rgba(17, 24, 39, 0.95);
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.25rem;
}
.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}
nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.3s;
}
nav a:hover, nav a.active {
  color: var(--color-primary);
}
.theme-toggle {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.3s;
  color: var(--color-text);
}
.theme-toggle:hover {
  background: var(--color-surface);
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-text);
}
/* Hero Section */
.hero {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: #111827;
  margin: 2rem auto;
  max-width: 1280px;
}
.hero-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  opacity: 0.5;
}
.hero-content {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #111827, rgba(17, 24, 39, 0.7));
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 1rem;
  background: var(--color-primary);
  color: white;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  width: fit-content;
  margin-bottom: 1rem;
}
.hero h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.hero p {
  color: #e5e7eb;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}
.hero-meta {
  display: flex;
  gap: 1rem;
  color: #d1d5db;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover {
  background: var(--color-primary-dark);
}
/* Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}
/* Post Card */
.post-card {
  background: var(--color-bg);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text);
  transition: box-shadow 0.3s, transform 0.3s;
}
.post-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}
.post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--color-surface);
}
.post-content {
  padding: 1.25rem;
}
.post-category {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.post-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
}
.post-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.post-card p {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.tag {
  background: var(--color-surface);
  color: var(--color-text);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
}
/* Footer */
footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  margin-top: 4rem;
  padding: 3rem 0;
}
.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-section h3 {
  margin-bottom: 1rem;
}
.footer-section ul {
  list-style: none;
}
.footer-section ul li {
  margin-bottom: 0.5rem;
}
.footer-section a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s;
}
.footer-section a:hover {
  color: var(--color-primary);
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}
/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sidebar-widget {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.5rem;
}
.sidebar-widget h3 {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.popular-post {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  text-decoration: none;
  color: var(--color-text);
}
.popular-post:last-child {
  margin-bottom: 0;
}
.popular-post-image {
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  object-fit: cover;
  flex-shrink: 0;
}
.popular-post h4 {
  font-size: 0.8125rem;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}
.popular-post p {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

/* Ensure text can shrink and wrap inside the sidebar column */
.popular-post > div {
  min-width: 0;
}
/* Two Column Layout */
.two-column {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  max-width: 1280px;
  margin: 2rem auto;
  padding: 0 1rem;
}
/* Section Title */
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem 0 1.5rem;
}
/* Article Content */
.article-content {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  overflow: hidden;
}
.article-header {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.article-body {
  padding: 3rem;
}
.article-body h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.article-body h2 {
  font-size: 1.75rem;
  margin: 2rem 0 1rem;
}
.article-body h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
}
.article-body p {
  margin-bottom: 1rem;
  line-height: 1.7;
}
.article-body ul, .article-body ol {
  margin: 1rem 0;
  padding-left: 2rem;
}
.article-body li {
  margin-bottom: 0.5rem;
}
/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 2rem;
}
.about-form {
  max-width: 1300px;
  margin: 2rem auto;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 2rem;
}
.two-cols {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 6px 20px;
  margin: 30px;
  gap: 25px;
}
.one-cols {
  display: grid;
  grid-template-columns: repeat(1, auto);
  gap: 6px 20px;
  margin: 30px;
  gap: 25px;
}
.two-cols li::marker {
  color: #FF6B35;
  font-size: 20px; 
}
.one-cols li::marker {
  color: #FF6B35;
  font-size: 20px; 
}
.about_button {
  background-color: rgba(255, 170, 0, 0.3);
  border: none;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 1rem;
  font-family: inherit;
}
.form-group textarea {
  resize: vertical;
  min-height: 150px;
}
/* Ad Spaces */
.ad-space-footer {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}
.ad-space-sidebar {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 80px;
}
.ad-space-content {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 3rem 0;
}
/* Responsive */
@media (max-width: 1024px) {
  .two-column {
    grid-template-columns: 1fr;
  }
  
  .ad-space-sidebar {
    position: static;
  }
}
@media (max-width: 768px) {
  nav ul {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .article-body {
    padding: 1.5rem;
  }
  
  .article-body h1 {
    font-size: 1.75rem;
  }
}
/* Mobile menu dropdown */
.mobile-menu {
  position: absolute;
  top: 64px;
  left: 1rem;
  right: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem;
  z-index: 60;
}
.mobile-menu ul { display:flex; flex-direction:column; gap:0.75rem; list-style:none; padding:0; margin:0; }
.mobile-menu a { color: var(--color-text); text-decoration:none; padding:0.5rem 0; display:block; }
.mobile-menu a.active { color: var(--color-primary); }
.mobile-menu.hidden { display: none; }
/* Utility Classes */
.hidden {
  display: none;
}
.flex {
  display: flex;
}
.items-center {
  align-items: center;
}
.gap-2 {
  gap: 0.5rem;
}

