/*
Theme Name: SEO Insights Blog
Theme URI: https://seoinsights.co.in
Author: BABY NAIR
Description: SEO insights provides data-driven analytics, keyword tracking, and actionable audits to help users improve their search engine rankings and organic web traffic
Version: 1.3.1
Text Domain: seo-insights
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  line-height: 1.7;
  color: #333;
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: #1e73be;
}

button,
input {
  font: inherit;
}

.container {
  width: 94%;
  max-width: 1100px;
  margin: 0 auto;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ===== ACCESSIBILITY ===== */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== HEADER ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
}

.top-bar {
  background: #ff9200;
  min-height: 32px;
  color: #0A192F;
}

.top-bar-inner {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-date {
  font-size: 13px;
  font-weight: 600;
  color: #0A192F;
}

.header-search form {
  display: flex;
  margin: 0;
}

.header-search input[type="search"],
.header-search input[type="text"] {
  width: 170px;
  height: 28px;
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 2px 0 0 2px;
  background: #fff;
  color: #333;
}

.header-search input[type="submit"] {
  height: 28px;
  padding: 0 14px;
  border: 0;
  border-radius: 0 2px 2px 0;
  background: #62a844;
  color: #0A192F;
  cursor: pointer;
  font-weight: 700;
}

.header-middle {
  background: #fff;
  padding: 20px 0;
}

.header-middle-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 167px;
}

.site-branding {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}

.site-logo-link {
  display: block;
  line-height: 0;
}

.site-branding img {
  display: block;
  width: 300px;
  height: 167px;
  max-width: 100%;
  object-fit: contain;
}

.header-banner-widget {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.header-banner-item {
  width: 100%;
  max-width: 620px;
  margin: 0;
  border: 0;
  background: transparent;
}

.header-banner-item img {
  display: block;
  width: 100%;
  height: auto;
  margin-left: auto;
}

.header-banner-placeholder {
  width: 100%;
  max-width: 620px;
  min-height: 90px;
  padding: 20px;
  border: 1px dashed #777;
  background: #f5f5f5;
  color: #0A192F;
  text-align: center;
  font-size: 13px;
}

.site-title {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 700;
}

.site-title a {
  color: #0A192F;
}

/* ===== NAVIGATION ===== */
.main-nav {
  background: #63a947;
}

.primary-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu li {
  margin: 0;
}

.primary-menu li a {
  display: block;
  padding: 10px 14px;
  color: #0A192F;
  font-size: 16px;
  font-weight: 600;
}

.primary-menu li a:hover,
.primary-menu li.current-menu-item a,
.primary-menu li.current_page_item a {
  background: #4e9638;
  color: #0A192F;
  border-radius: 4px;
}

/* ===== MAIN LAYOUT ===== */
.main-content {
  float: left;
  width: 65%;
  padding: 20px 0;
}

.sidebar {
  float: right;
  width: 30%;
  padding: 20px 0;
}

/* ===== HOMEPAGE POSTS ===== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.post-item {
  border: 1px solid #eee;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.post-item .post-thumbnail {
  display: block;
  width: 100%;
  height: 190px;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid #ddd;
}

.post-item .post-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.post-title {
  font-size: 18px;
  line-height: 1.4;
  margin: 10px 0;
  color: #0A192F;
}

.post-title a {
  color: #0A192F;
}

.post-title a:hover {
  color: #1e73be;
}

.post-excerpt {
  color: #444;
  margin-bottom: 10px;
}

.post-meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #eee;
  color: #7a4100;
  font-size: 13px;
  line-height: 1.5;
}

.post-date {
  margin-right: 18px;
}

.post-author a {
  color: #7a4100;
  font-weight: 700;
}

.post-author a:hover {
  color: #0A192F;
  text-decoration: underline;
}

/* ===== SINGLE POST ===== */
.post-single {
  margin-bottom: 30px;
  padding-left: 10px;
  padding-right: 10px;
}

.post-single .post-title {
  font-size: 28px;
  line-height: 1.35;
  margin-bottom: 20px;
}

.post-content {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.85;
}

.post-content p {
  margin: 0 0 1.25em;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  line-height: 1.4;
  margin: 1.6em 0 0.7em;
  color: #333;
}

.post-content ul,
.post-content ol {
  margin: 0 0 1.25em 1.5em;
}

.post-content li {
  margin-bottom: 0.45em;
}

.post-content blockquote {
  margin: 1.4em 0;
  padding: 12px 18px;
  border-left: 4px solid #63a947;
  background: #f7f7f7;
}

.post-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 20px auto;
}

.post-single > .post-meta {
  color: #7a4100;
}

/* ===== SIDEBAR ===== */
.sidebar .widget {
  margin-bottom: 25px;
  padding: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
}

.sidebar .widget-title {
  margin: 0;
  padding: 10px 15px;
  background: #63a947;
  color: #0A192F;
  font-size: 16px;
  font-weight: 700;
}

/* FOLLOW ME */
.follow-widget .social-widget {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px;
}

.social-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: opacity .2s ease, transform .2s ease;
}

.social-icon:hover {
  color: #fff;
  opacity: .85;
  transform: translateY(-1px);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.facebook { background: #1877f2; }
.twitter { background: #000; }
.linkedin { background: #0a66c2; }
.rss { background: #f26522; }
.instagram { background: #c13584; }
.medium { background: #000; }
.threads { background: #000; }
.bluesky { background: #1185fe; }

/* NEWSLETTER */
.newsletter-content {
  padding: 15px;
  color: #333;
  font-size: 14px;
}

.newsletter-content p {
  margin: 0 0 12px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.newsletter-form input[type="email"] {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #999;
  border-radius: 3px;
  background: #fff;
  color: #222;
}

.newsletter-form button {
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 3px;
  background: #63a947;
  color: #0A192F;
  font-weight: 700;
  cursor: pointer;
}

.newsletter-form button:hover {
  background: #4e9638;
}

.newsletter-content small {
  display: block;
  margin-top: 10px;
  color: #444;
  line-height: 1.5;
}

/* Popular / Latest */
.popular-latest-tabs {
  padding: 15px !important;
}

.tab-buttons {
  display: flex;
  margin-bottom: 15px;
}

.tab-buttons button {
  flex: 1;
  padding: 8px;
  background: #f0f0f0;
  color: #333;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}

.tab-buttons button.active {
  background: #63a947;
  color: #0A192F;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-post {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.tab-post:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.tab-post a {
  color: #333;
  font-size: 14px;
}

.tab-post a:hover {
  color: #1e73be;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #ff8c00;
  color: #0A192F;
  padding: 20px 0;
  clear: both;
}

.site-footer .container {
  text-align: center;
}

.footer-links {
  margin-bottom: 10px;
}

.footer-links a {
  color: #0A192F;
  margin: 0 10px;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

.copyright {
  font-size: 14px;
}

/* ===== COMMENTS ===== */
.comments-area {
  margin: 35px 10px 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.comments-title {
  margin-bottom: 20px;
}

.comment-list {
  margin: 0 0 25px 20px;
  padding-left: 20px;
}

.comment-list li {
  margin-bottom: 15px;
}

.comment-body {
  margin-bottom: 18px;
}

/* WordPress comment form */
.comment-form input,
.comment-form textarea {
  max-width: 100%;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #999;
  border-radius: 3px;
  font-family: inherit;
}

.comment-form .submit {
  width: auto;
  padding: 9px 18px;
  border: 0;
  background: #63a947;
  color: #0A192F;
  cursor: pointer;
  border-radius: 3px;
  font-weight: 700;
}

.comment-form .submit:hover {
  background: #4e9638;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .top-bar-inner {
    padding: 6px 0;
    flex-direction: column;
    gap: 6px;
  }

  .header-search {
    width: 100%;
  }

  .header-search form {
    width: 100%;
  }

  .header-search input[type="search"],
  .header-search input[type="text"] {
    width: 100%;
  }

  .header-middle {
    padding: 15px 0;
  }

  .header-middle-inner {
    min-height: 0;
    flex-direction: column;
    gap: 15px;
  }

  .site-branding {
    width: 100%;
    justify-content: flex-start;
  }

  .site-branding img {
    width: 260px;
    height: auto;
  }

  .header-banner-widget {
    width: 100%;
    justify-content: stretch;
  }

  .header-banner-item,
  .header-banner-placeholder {
    max-width: 100%;
  }

  .main-content,
  .sidebar {
    float: none;
    width: 100%;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .primary-menu {
    flex-wrap: wrap;
    justify-content: center;
  }

  .primary-menu li a {
    padding: 9px 10px;
    font-size: 14px;
  }

  .post-single {
    padding-left: 10px;
    padding-right: 10px;
  }
}


.newsletter-success { font-weight: 700; }
.newsletter-error { font-weight: 700; }

.tab-empty { padding: 0 2px; color: #555; font-size: 14px; }
