/* ============================================
   VenkatAdda - Main Stylesheet
   Colors: Primary #1a8a5c | Dark #1a3a2a | Accent #5fd4a9
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: #333;
  background: #f9fafb;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #1a8a5c; text-decoration: none; transition: color 0.2s; }
a:hover { color: #147a4e; }
ul, ol { list-style: none; }

/* --- Skip Link (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: #1a3a2a;
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 4px 4px;
  z-index: 1000;
  font-size: 0.875rem;
}
.skip-link:focus {
  top: 0;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Site Header --- */
.site-header {
  background: #1a3a2a;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}
.logo:hover { color: #5fd4a9; }

/* --- Menu Toggle (Mobile) --- */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  color: #fff;
  font-size: 1.5rem;
  padding: 4px 10px;
  cursor: pointer;
  line-height: 1;
  transition: border-color 0.2s;
}
.menu-toggle:hover { border-color: #5fd4a9; }

/* --- Navigation --- */
nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
nav a {
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
nav a.active {
  color: #fff;
  background: #1a8a5c;
}
/* --- Page Header (Green Gradient Banner) --- */
.page-header {
  background: linear-gradient(135deg, #1a3a2a 0%, #1a8a5c 60%, #5fd4a9 100%);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}
.page-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.page-header p {
  margin-top: 8px;
  font-size: 1.1rem;
  opacity: 0.9;
}
/* --- Section --- */
.section {
  padding: 48px 0;
}

/* --- Grid Layouts --- */
.grid {
  display: grid;
  gap: 24px;
}
.content-sidebar {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}
/* --- Post / Article Content --- */
.post-content {
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.post-content h2 {
  font-size: 1.5rem;
  color: #1a3a2a;
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8f5ee;
}
.post-content h2:first-child { margin-top: 0; }
.post-content h3 {
  font-size: 1.25rem;
  color: #1a3a2a;
  margin: 24px 0 8px;
}
.post-content p {
  margin-bottom: 16px;
  color: #444;
}
.post-content ul,
.post-content ol {
  margin: 0 0 16px 24px;
  color: #444;
}
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li {
  margin-bottom: 6px;
  padding-left: 4px;
}
.post-content a { color: #1a8a5c; font-weight: 500; }
.post-content a:hover { text-decoration: underline; }
.post-content blockquote {
  border-left: 4px solid #5fd4a9;
  margin: 16px 0;
  padding: 12px 20px;
  background: #f0faf5;
  border-radius: 0 4px 4px 0;
  color: #555;
  font-style: italic;
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}
.post-content th,
.post-content td {
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  text-align: left;
}
.post-content th {
  background: #1a3a2a;
  color: #fff;
  font-weight: 600;
}
/* --- Sidebar --- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.widget {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.widget-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a3a2a;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid #5fd4a9;
}
.recent-list li,
.category-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}
.recent-list li:last-child,
.category-list li:last-child { border-bottom: none; }
.recent-list a,
.category-list a {
  color: #444;
  font-size: 0.9375rem;
  transition: color 0.2s, padding-left 0.2s;
}
.recent-list a:hover,
.category-list a:hover {
  color: #1a8a5c;
  padding-left: 4px;
}
/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  line-height: 1.5;
}
.btn-primary {
  background: #1a8a5c;
  color: #fff;
  border-color: #1a8a5c;
}
.btn-primary:hover {
  background: #147a4e;
  border-color: #147a4e;
  color: #fff;
  box-shadow: 0 2px 8px rgba(26, 138, 92, 0.3);
}
.btn-outline {
  background: transparent;
  color: #1a8a5c;
  border-color: #1a8a5c;
}
.btn-outline:hover {
  background: #1a8a5c;
  color: #fff;
}
/* --- Site Footer --- */
.site-footer {
  background: #1a3a2a;
  color: rgba(255, 255, 255, 0.8);
  padding: 48px 0 0;
  margin-top: 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 32px;
}
.footer-col h3,
.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col p { margin-bottom: 8px; font-size: 0.9375rem; }
.footer-col a { color: rgba(255, 255, 255, 0.7); font-size: 0.9375rem; }
.footer-col a:hover { color: #5fd4a9; }
.footer-col ul li { padding: 4px 0; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  padding: 20px 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
}
/* --- Responsive: Tablet (max-width: 960px) --- */
@media (max-width: 960px) {
  .content-sidebar {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Responsive: Mobile (max-width: 768px) --- */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #1a3a2a;
    padding: 8px 20px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  nav.active { display: flex; }
  nav a {
    padding: 10px 12px;
    width: 100%;
    border-radius: 4px;
  }

  .site-header .container { position: relative; }

  .page-header { padding: 32px 0; }
  .page-header h1 { font-size: 1.75rem; }

  .section { padding: 32px 0; }
  .post-content { padding: 20px; }
  .post-content h2 { font-size: 1.3rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* --- Responsive: Small Mobile (max-width: 480px) --- */
@media (max-width: 480px) {
  html { font-size: 15px; }
  .container { padding: 0 16px; }
  .page-header h1 { font-size: 1.5rem; }
  .post-content { padding: 16px; }
}
