@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600;700&display=swap");

:root {
  --pif-green: #2d5a3d;
  --pif-green-dark: #1f3f2b;
  --pif-green-light: #e8f2eb;
  --pif-gold: #c9922e;
  --pif-text: #2b2b2b;
  --pif-muted: #5f6b63;
  --pif-border: #d9e3dc;
  --pif-bg: #f4f7f5;
  --pif-white: #ffffff;
  --pif-radius: 12px;
  --pif-shadow: 0 8px 28px rgba(31, 63, 43, 0.08);
  --pif-max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--pif-text);
  background: var(--pif-bg);
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--pif-green);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--pif-green-dark);
}

.pif-skip {
  position: absolute;
  left: -9999px;
}

.pif-skip:focus {
  left: 16px;
  top: 16px;
  z-index: 9999;
  background: var(--pif-white);
  padding: 8px 12px;
  border-radius: 8px;
}

.pif-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--pif-border);
  backdrop-filter: blur(8px);
}

.pif-header-inner {
  max-width: var(--pif-max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.pif-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.pif-brand img {
  display: block;
  max-height: 48px;
  width: auto;
  border-radius: 6px;
}

.pif-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pif-green), #3f7a54);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.pif-brand-text strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
  color: var(--pif-green-dark);
}

.pif-brand-text span {
  display: block;
  font-size: 13px;
  color: var(--pif-muted);
}

.pif-nav-toggle {
  display: none;
  border: 1px solid var(--pif-border);
  background: var(--pif-white);
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 600;
  color: var(--pif-green-dark);
  cursor: pointer;
}

.pif-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pif-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--pif-green-dark);
}

.pif-nav a:hover,
.pif-nav a.is-active {
  background: var(--pif-green-light);
  color: var(--pif-green);
}

.pif-main {
  max-width: var(--pif-max);
  margin: 28px auto 40px;
  padding: 0 24px;
}

.pif-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.pif-layout--single {
  grid-template-columns: minmax(0, 1fr);
}

.pif-content {
  background: var(--pif-white);
  border: 1px solid var(--pif-border);
  border-radius: var(--pif-radius);
  box-shadow: var(--pif-shadow);
  padding: 32px 36px;
}

.pif-content > :first-child {
  margin-top: 0;
}

.pif-content > :last-child {
  margin-bottom: 0;
}

.pif-content h1,
.pif-content h2,
.pif-content h3,
.pif-content h4 {
  color: var(--pif-green-dark);
  line-height: 1.25;
  margin: 1.4em 0 0.6em;
}

.pif-content h1 {
  font-size: clamp(28px, 4vw, 38px);
  margin-top: 0;
}

.pif-content h2 {
  font-size: clamp(22px, 3vw, 28px);
}

.pif-content h3 {
  font-size: 22px;
}

.pif-content p,
.pif-content li {
  color: var(--pif-text);
}

.pif-content ul,
.pif-content ol {
  padding-left: 1.4em;
}

.pif-content blockquote {
  margin: 1.2em 0;
  padding: 16px 20px;
  border-left: 4px solid var(--pif-gold);
  background: #faf6ee;
  border-radius: 0 8px 8px 0;
}

.pif-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 20px;
  color: var(--pif-muted);
  font-size: 15px;
}

.pif-meta a {
  font-weight: 600;
}

.pif-hero {
  margin-bottom: 28px;
  padding: 28px 32px;
  border-radius: var(--pif-radius);
  background: linear-gradient(135deg, var(--pif-green-dark), var(--pif-green));
  color: #fff;
}

.pif-hero h1 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(28px, 4vw, 40px);
}

.pif-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  max-width: 62ch;
}

.pif-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.pif-card {
  border: 1px solid var(--pif-border);
  border-radius: 10px;
  padding: 20px 22px;
  background: #fbfcfb;
}

.pif-card h2,
.pif-card h3,
.pif-card h4 {
  margin: 0 0 8px;
  font-size: 20px;
}

.pif-card h2 a,
.pif-card h3 a,
.pif-card h4 a {
  text-decoration: none;
  color: var(--pif-green-dark);
}

.pif-card h2 a:hover,
.pif-card h3 a:hover,
.pif-card h4 a:hover {
  color: var(--pif-green);
}

.pif-card .pif-meta {
  margin-bottom: 10px;
}

.pif-card .pif-readmore {
  margin: 12px 0 0;
  font-weight: 600;
}

.pif-sidebar {
  display: grid;
  gap: 18px;
}

.pif-widget {
  background: var(--pif-white);
  border: 1px solid var(--pif-border);
  border-radius: var(--pif-radius);
  padding: 22px;
  box-shadow: var(--pif-shadow);
}

.pif-widget h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--pif-green-dark);
}

.pif-widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pif-widget li {
  padding: 8px 0;
  border-bottom: 1px solid #edf2ee;
}

.pif-widget li:last-child {
  border-bottom: 0;
}

.pif-widget .post-date {
  display: block;
  font-size: 13px;
  color: var(--pif-muted);
  margin-top: 2px;
}

.pif-widget.sidebar-form {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.op-signup-style-style13 {
  width: 100%;
  padding: 0 25px 18px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  background: linear-gradient(to bottom, #f2f2f2 0%, #cccccc 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 1px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
}

.sidebar-form .op-signup-style-style13 h2 {
  color: #000;
  font-size: 22px;
  line-height: 1.35;
  margin: 28px 0 12px;
  text-align: center;
  font-weight: 700;
  text-shadow: -1px 0 #fff, 0 1px #fff, 1px 0 #fff, 0 -1px #fff;
}

.sidebar-form .op-signup-style-style13 > p {
  color: #000;
  font-size: 12px;
  line-height: 1.65;
  margin: 0 0 18px;
  text-align: center;
  text-shadow: -1px 0 #fff, 0 1px #fff, 1px 0 #fff, 0 -1px #fff;
}

.sidebar-form .op-signup-style-style13 input.email,
.sidebar-form .op-signup-style-style13 input.name {
  color: #666;
  font-size: 14px;
  padding: 11px 36px 11px 11px;
  display: block;
  height: 40px;
  width: 100%;
  margin-bottom: 10px;
  background-color: #fff;
  box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.5);
  border: 1px solid #999;
  border-radius: 3px;
  box-sizing: border-box;
}

.sidebar-form .op-signup-style-style13 input.name {
  background-image: url("/wp-content/themes/optimizePressTheme/themes/3/images/optin-15-name.png");
  background-position: 95% center;
  background-repeat: no-repeat;
}

.sidebar-form .op-signup-style-style13 input.email {
  background-image: url("/wp-content/themes/optimizePressTheme/themes/3/images/optin-15-email.png");
  background-position: 95% center;
  background-repeat: no-repeat;
}

.sidebar-form .op-signup-style-style13 button.default-button {
  padding: 0;
  padding-top: 4px;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 700;
  color: #002080;
  height: 50px;
  width: 100%;
  cursor: pointer;
  text-shadow: 0 1px rgba(255, 255, 255, 0.75);
  border: 1px solid #000;
  border-radius: 6px;
  background: linear-gradient(to bottom, #ffff00 0%, #ffa035 100%);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 0, 0.5);
}

.sidebar-form .op-signup-style-style13 button.default-button:hover {
  filter: brightness(1.03);
}

.sidebar-form .op-signup-style-style13 button.default-button span {
  display: inline-block;
  position: relative;
  top: 1px;
}

.sidebar-form .op-signup-style-style13 .secure-icon {
  background-image: url("/wp-content/themes/optimizePressTheme/themes/3/images/secure.png");
  background-repeat: no-repeat;
  background-position: 0 1px;
  padding-left: 24px;
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: #000;
  text-shadow: -1px 0 #fff, 0 1px #fff, 1px 0 #fff, 0 -1px #fff;
}

.pif-content .video-plugin,
.pif-content iframe {
  display: block;
  margin: 1.2em auto;
}

.pif-content img {
  border-radius: 8px;
}

.pif-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}

.pif-content th,
.pif-content td {
  border: 1px solid var(--pif-border);
  padding: 10px 12px;
  text-align: left;
}

.pif-content hr {
  border: 0;
  border-top: 1px solid var(--pif-border);
  margin: 2em 0;
}

.pif-faq {
  margin: 1em 0 1.5em;
}

.pif-faq-item {
  border-bottom: 1px solid var(--pif-border);
  padding: 10px 0;
}

.pif-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--pif-text);
}

.pif-faq-item p {
  margin: 0.5em 0 0;
}

.pif-kw-footer {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: var(--pif-muted);
  line-height: 1.5;
}

.image-text-style-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: center;
  margin: 1.5em 0;
}

.image-text-style-img-container img {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  display: block;
}

.pif-content h2[style*="center"],
.pif-content p[style*="center"] {
  text-align: center;
}

.pif-content .fixed-width,
.pif-content .one-column,
.pif-content .element-container {
  max-width: 100%;
}

.pif-footer {
  margin-top: 20px;
  background: var(--pif-green-dark);
  color: rgba(255, 255, 255, 0.9);
}

.pif-footer-inner {
  max-width: var(--pif-max);
  margin: 0 auto;
  padding: 28px 24px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
}

.pif-footer p {
  margin: 0;
  font-size: 14px;
}

.pif-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.pif-footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.pif-footer-nav a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .pif-layout {
    grid-template-columns: 1fr;
  }

  .image-text-style-2 {
    grid-template-columns: 1fr;
  }

  .pif-nav-toggle {
    display: inline-block;
  }

  .pif-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 8px;
  }

  .pif-nav.is-open {
    display: flex;
  }

  .pif-header-inner {
    flex-wrap: wrap;
  }

  .pif-content {
    padding: 24px 20px;
  }
}
