/* ==========================================================================
   InstaPros Theme - Main Stylesheet
   @package InstaPros
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #DD2A7B;
  --color-secondary: #8134AF;
  --color-accent: #F58529;
  --color-yellow: #FEDA77;
  --color-ig-blue: #515BD4;
  --color-dark: #262626;
  --color-text: #262626;
  --color-text-light: #737373;
  --color-bg: #ffffff;
  --color-bg-alt: #fafafa;
  --color-border: #dbdbdb;
  --color-border-light: #efefef;
  --color-success: #00c853;
  --color-link: #00376b;
  --color-link-hover: #0095f6;
  --color-error: #ed4956;
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 60px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: 0.2s ease;
  --ig-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 20%, #dc2743 40%, #cc2366 60%, #bc1888 80%, #8134AF 100%);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: var(--color-link);
  transition: color var(--transition);
}

a:hover,
a:focus {
  color: var(--color-link-hover);
}

a:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ---------- Skip to Content ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-dark);
  color: #fff;
  padding: 12px 24px;
  z-index: 9999;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  min-height: 60px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-dark);
}

.site-logo img,
.custom-logo {
  height: 50px !important;
  width: auto !important;
  max-width: 200px;
  object-fit: contain;
}

.site-logo span {
  background: var(--ig-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-logo:hover span {
  -webkit-text-fill-color: initial;
  color: var(--color-dark);
}

/* ---------- Main Navigation ---------- */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  display: block;
  padding: 8px 16px;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-bg-alt);
  color: var(--color-dark);
}

/* Dropdown */
.menu-item-has-children {
  position: relative;
}

.menu-item-has-children > a::after {
  content: ' \25BE';
  font-size: 0.75rem;
}

.menu-item-has-children > .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  min-width: 200px;
  padding: 8px 0;
  z-index: 1001;
  list-style: none;
}

.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu {
  display: block;
}

.sub-menu li {
  margin: 0;
  padding: 0;
}

.sub-menu a {
  padding: 8px 20px;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  margin: 6px 0;
  transition: var(--transition);
  border-radius: 2px;
}

.menu-toggle:hover span {
  background: var(--color-primary);
}

/* ---------- Hero Section ---------- */
.hero {
  background: var(--color-bg-alt);
  padding: 60px 0 50px;
  text-align: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 32px;
  min-height: 520px;
}

.hero-content {
  order: -1;
  width: 100%;
  max-width: 720px;
}

.hero-image {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 720 / 400;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 16px;
  min-height: 120px;
  background: var(--ig-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 700px;
  margin: 0 auto 24px;
  line-height: 1.7;
  min-height: 120px;
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  min-height: 34px;
}

.hero-badges .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #dcfce7;
  color: #166534;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #bbf7d0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  min-height: 50px;
  min-width: 260px;
  justify-content: center;
  background: var(--ig-gradient);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  font-family: var(--font-primary);
  letter-spacing: 0.3px;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(225, 48, 108, 0.3);
  color: #fff;
}

.btn-primary:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* ---------- Content Section ---------- */
.content-section {
  padding: 60px 0;
}

.content-section.bg-alt {
  background: var(--color-bg-alt);
}

.content-section h2 {
  text-align: center;
  margin-bottom: 12px;
  position: relative;
}

.content-section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--ig-gradient);
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

/* ---------- Article Content ---------- */
.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 28px 0 12px;
}

.article-content p {
  margin-bottom: 16px;
  font-size: 1.02rem;
  line-height: 1.8;
}

.article-content ul,
.article-content ol {
  margin: 12px 0 16px 20px;
}

.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  margin-bottom: 8px;
  padding-left: 4px;
  color: var(--color-text-light);
}

.article-content a {
  color: var(--color-primary);
  font-weight: 500;
}

.article-content a:hover {
  text-decoration: underline;
}

.article-content img {
  border-radius: var(--radius-md);
  margin: 20px 0;
}

.article-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 16px 20px;
  margin: 20px 0;
  background: var(--color-bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--color-text);
}

/* ---------- Posts Grid ---------- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  margin-top: 30px;
}

.post-card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: none;
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.post-card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-card-content {
  padding: 20px;
}

.post-card-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.post-card-title a {
  color: var(--color-dark);
}

.post-card-title a:hover {
  color: var(--color-primary);
}

.post-card-meta {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-sep {
  color: var(--color-border);
}

.post-card-excerpt {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--color-ig-blue);
}

.read-more:hover {
  text-decoration: underline;
}

/* ---------- Pagination ---------- */
.pagination {
  margin-top: 40px;
  text-align: center;
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.93rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: all var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--color-ig-blue);
  color: #fff;
  border-color: var(--color-ig-blue);
}

.pagination .prev,
.pagination .next {
  font-weight: 600;
}

/* ---------- Features Grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: none;
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card h4 {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-card h4 .icon {
  font-size: 1.5rem;
}

.feature-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------- Comparison Table ---------- */
.table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

.comparison-table thead {
  background: var(--color-dark);
}

.comparison-table thead th {
  padding: 14px 20px;
  color: #fff;
  font-weight: 600;
  text-align: left;
  font-size: 0.95rem;
}

.comparison-table tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}

.comparison-table tbody tr:hover {
  background: var(--color-bg-alt);
}

.comparison-table td {
  padding: 12px 20px;
  font-size: 0.93rem;
}

.comparison-table .check {
  color: var(--color-success);
  font-weight: 700;
}

.comparison-table .cross {
  color: var(--color-error);
  font-weight: 700;
}

/* ---------- Steps / How-To ---------- */
.steps-list {
  max-width: 800px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.step-number {
  min-width: 48px;
  height: 48px;
  background: var(--color-ig-blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step-content p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

/* ---------- FAQ Section ---------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 16px 20px;
  background: var(--color-bg);
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-primary);
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--color-bg-alt);
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--color-ig-blue);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-question::after {
  content: '\2212';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 20px 16px;
  margin-bottom: 0;
}

/* ---------- Pros & Cons ---------- */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.pros-card,
.cons-card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.pros-card {
  border-top: 3px solid var(--color-success);
}

.cons-card {
  border-top: 3px solid var(--color-error);
}

.pros-card h3 {
  color: var(--color-success);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cons-card h3 {
  color: var(--color-error);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pros-card ul,
.cons-card ul {
  list-style: none;
}

.pros-card li,
.cons-card li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--color-text-light);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
  list-style: none;
}

.pros-card li:last-child,
.cons-card li:last-child {
  border-bottom: none;
}

.pros-card li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

.cons-card li::before {
  content: '\2717';
  position: absolute;
  left: 0;
  color: var(--color-error);
  font-weight: 700;
}

/* ---------- Software Info Box ---------- */
.software-info-box {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  margin: 30px 0;
  display: flex;
  gap: 30px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.software-info-box img {
  width: 120px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.software-info-details {
  flex: 1;
}

.software-info-details h3 {
  margin-bottom: 12px;
}

.software-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

.software-info-grid .label {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.9rem;
}

.software-info-grid .value {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* ---------- Page Header ---------- */
.page-header {
  margin-bottom: 30px;
}

.page-header h1 {
  text-align: center;
}

.page-featured-image {
  margin-bottom: 30px;
  text-align: center;
}

.page-featured-image img {
  display: inline-block;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* ---------- Single Post ---------- */
.entry-header {
  margin-bottom: 30px;
  text-align: center;
}

.entry-meta {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.entry-thumbnail {
  margin-bottom: 30px;
  text-align: center;
}

.entry-thumbnail img {
  display: inline-block;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.entry-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.tags-links {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.tags-links a {
  display: inline-block;
  padding: 3px 10px;
  background: var(--color-bg-alt);
  border-radius: 20px;
  font-size: 0.82rem;
  margin: 2px 4px 2px 0;
  transition: all var(--transition);
}

.tags-links a:hover {
  background: var(--color-ig-blue);
  color: #fff;
}

/* ---------- Post Navigation ---------- */
.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--color-border);
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 1;
}

.post-navigation .nav-next {
  text-align: right;
}

.nav-subtitle {
  display: block;
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-navigation a {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.98rem;
}

.post-navigation a:hover {
  color: var(--color-primary);
}

/* ---------- Comments ---------- */
.comments-area {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--color-border);
}

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

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}

.comment-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.comment-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.comment-author {
  font-weight: 600;
  color: var(--color-dark);
}

.comment-datetime {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.comment-content {
  color: var(--color-text-light);
  line-height: 1.7;
}

.comment-actions {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
}

.comment-actions a {
  color: var(--color-text-light);
}

.comment-actions a:hover {
  color: var(--color-primary);
}

/* ---------- Comment Form ---------- */
.comment-form .comment-form-comment,
.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-url {
  margin-bottom: 20px;
}

.comment-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: var(--color-text);
}

.comment-form .required {
  color: var(--color-error);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition);
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  border-color: var(--color-border);
  outline: none;
}

.comment-form textarea {
  resize: vertical;
  min-height: 120px;
}

.comment-form .form-submit {
  margin-top: 8px;
}

.comment-form .form-submit input[type="submit"] {
  display: inline-flex;
  align-items: center;
  padding: 12px 30px;
  background: var(--color-ig-blue);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-primary);
  transition: transform var(--transition), box-shadow var(--transition);
}

.comment-form .form-submit input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(56, 151, 240, 0.3);
}

/* ---------- Contact Form ---------- */
.contact-form-wrapper {
  margin-top: 40px;
}

.contact-form-wrapper h2 {
  text-align: left;
  margin-bottom: 24px;
}

.contact-form-wrapper h2::after {
  margin: 12px 0 0;
}

.contact-form {
  max-width: 680px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: var(--color-text);
}

.form-group .required {
  color: var(--color-error);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="url"]:focus,
.form-group textarea:focus {
  border-color: var(--color-border);
  outline: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-submit {
  margin-top: 8px;
}

/* ---------- Contact Success/Error Messages ---------- */
.contact-success,
.contact-errors {
  margin-bottom: 30px;
}

.contact-success-box {
  background: rgba(0, 200, 83, 0.06);
  border: 1px solid var(--color-success);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.contact-success-box h3 {
  color: var(--color-success);
  margin-bottom: 8px;
}

.contact-success-box p {
  margin-bottom: 0;
  color: var(--color-text-light);
}

.contact-error-box {
  background: rgba(237, 73, 86, 0.06);
  border: 1px solid var(--color-error);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.contact-error-box h3 {
  color: var(--color-error);
  margin-bottom: 8px;
}

.contact-error-box ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.contact-error-box li {
  color: var(--color-text-light);
  margin-bottom: 4px;
}

/* ---------- Search Form ---------- */
.search-form {
  display: flex;
  max-width: 500px;
  margin: 20px auto;
}

.search-field {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: var(--color-text);
}

.search-field:focus {
  border-color: var(--color-border);
  outline: none;
}

.search-submit {
  padding: 10px 18px;
  background: var(--color-ig-blue);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background var(--transition);
}

.search-submit:hover {
  background: #2672c0;
}

/* ---------- Error 404 ---------- */
.error-404 h1 {
  font-size: 5rem;
  margin-bottom: 12px;
  background: var(--ig-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 48px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about h2 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.93rem;
}

.footer-links h3 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.footer-links ul li {
  margin-bottom: 8px;
  list-style: none;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.93rem;
  transition: color var(--transition);
}

.footer-links ul li a:hover {
  color: #fff;
}

.footer-links .widget-title {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1.05rem;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.footer-links .widget {
  margin-bottom: 16px;
}

.footer-links .widget ul li {
  margin-bottom: 8px;
  list-style: none;
}

.footer-links .widget ul li a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.93rem;
}

.footer-links .widget ul li a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.87rem;
  margin: 0;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
  color: #fff;
}

/* ---------- Scroll to Top ---------- */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--color-dark);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: var(--shadow-md);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-top:hover {
  transform: translateY(-3px);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ---------- No Results ---------- */
.no-results {
  text-align: center;
  padding: 60px 20px;
}

.no-results h2 {
  margin-bottom: 12px;
}

/* ---------- Sidebar ---------- */
.sidebar {
  padding: 30px 0;
}

.sidebar .widget {
  margin-bottom: 30px;
}

.sidebar .widget-title {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-ig-blue);
}

/* ---------- WordPress Core Alignment ---------- */
.alignwide {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }

  .hero {
    padding: 40px 0;
    min-height: 400px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

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

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

  .pros-cons-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .software-info-box {
    flex-direction: column;
    text-align: center;
  }

  .software-info-grid {
    grid-template-columns: 1fr;
  }

  .post-navigation .nav-links {
    flex-direction: column;
    gap: 16px;
  }

  .post-navigation .nav-next {
    text-align: left;
  }

  /* Mobile Nav */
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: 16px;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .main-nav a {
    padding: 10px 16px;
    width: 100%;
  }

  .menu-item-has-children > .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    display: none;
  }

  .menu-item-has-children.active > .sub-menu {
    display: block;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-badges {
    flex-direction: column;
    gap: 8px;
  }

  .btn-primary {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
}
