/*
Theme Name: Mediakit
Version: 1.0
*/

/* ==========================================================================
   WordPress Core & Blog Styles
   ========================================================================== */

/* Blog Grid Image Container */
.thinking-ai-6__icon.blog-thumb {
    width: 100%;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.thinking-ai-6__icon.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thinking-ai-6__icon.blog-thumb:hover img {
    transform: scale(1.05);
}

/* Pagination */
.basic-pagination ul {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.basic-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: var(--rr-heading-primary);
    font-weight: 600;
    transition: all 0.3s ease;
}

.basic-pagination .page-numbers.current,
.basic-pagination .page-numbers:hover {
    background-color: var(--rr-theme-primary);
    color: #fff;
}

/* Single Post Content */
.blog-details-lead,
.blog-details-lead p {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.8;
}

.blog-details-body {
    color: var(--rr-text-body);
}

.blog-details-body a {
    color: var(--rr-theme-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.3s ease;
}

.blog-details-body a:hover {
    color: var(--rr-heading-primary);
}

.blog-details-body h1, 
.blog-details-body h2, 
.blog-details-body h3, 
.blog-details-body h4, 
.blog-details-body h5, 
.blog-details-body h6 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--rr-heading-primary);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.blog-details-body h1 { font-size: 36px; line-height: 1.3; }
.blog-details-body h2 { font-size: 30px; line-height: 1.35; }
.blog-details-body h3 { font-size: 24px; line-height: 1.4; }
.blog-details-body h4 { font-size: 20px; line-height: 1.45; }
.blog-details-body h5 { font-size: 18px; line-height: 1.5; }
.blog-details-body h6 { font-size: 16px; line-height: 1.5; text-transform: uppercase; }

.blog-details-body p {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.8;
}

.blog-details-body ul, 
.blog-details-body ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.blog-details-body ul li, 
.blog-details-body ol li {
    margin-bottom: 10px;
    position: relative;
}

.blog-details-body ul {
    list-style: disc;
}

.blog-details-body ol {
    list-style: decimal;
}

.blog-details-body ul li::marker,
.blog-details-body ol li::marker {
    color: var(--rr-theme-primary);
    font-weight: 600;
}

.blog-details-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.blog-details-body blockquote {
    background: #f9f9f9;
    border-left: 5px solid var(--rr-theme-primary);
    margin: 30px 0;
    padding: 30px;
    font-style: italic;
    font-size: 20px;
    color: var(--rr-heading-primary);
}

/* Post Navigation */
.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
}

.post-navigation a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--rr-heading-primary);
    transition: color 0.3s ease;
}

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

.post-meta span {
    display: inline-block;
    color: var(--rr-text-body);
    font-size: 14px;
    font-weight: 500;
}

.post-meta span i {
    color: var(--rr-theme-primary);
    margin-right: 5px;
}

/* Sticky Footer Fix */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Offcanvas fallback menu (visible if JS/Meanmenu fails) */
.mobile-menu .fallback-menu {
    margin-top: 10px;
}

.mobile-menu.has-meanmenu .fallback-menu {
    display: none;
}

.mobile-menu .mean-container ~ .fallback-menu {
    display: none;
}

.offcanvas__area .fallback-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.offcanvas__area .fallback-menu li {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.offcanvas__area .fallback-menu a {
    display: block;
    padding: 10px 0;
    color: var(--rr-common-white);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
    text-transform: uppercase;
}

.offcanvas__area .fallback-menu a:hover {
    color: var(--rr-theme-primary);
}

/* Theme switcher visibility inside offcanvas (dark background) */
.offcanvas__area .theme-switcher {
    color: var(--rr-common-white);
}

.offcanvas__area .theme-switcher:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Language switcher in burger menu: show items directly */
.offcanvas__area .fallback-menu .has-dropdown > a {
    display: none;
}

.offcanvas__area .fallback-menu .language-dropdown,
.mean-container .language-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    box-shadow: none;
    margin-top: 0;
    display: block !important;
}

.offcanvas__area .fallback-menu .language-dropdown::before,
.mean-container .language-dropdown::before {
    display: none;
}

.offcanvas__area .fallback-menu .language-dropdown li a,
.mean-container .language-dropdown li a {
    padding: 10px 0 !important;
    color: var(--rr-common-white) !important;
}

/* ===== Contact Form 7: SEO form ===== */
.seo-form {
    --bg: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --ring: rgba(99, 102, 241, .25);
    --shadow: 0 12px 30px rgba(15, 23, 42, .08);
  
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow);
  }
  
  .seo-form__header {
    margin-bottom: 16px;
  }
  
  .seo-form__title {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
    color: var(--text);
  }
  
  .seo-form__subtitle {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--muted);
  }
  
  .seo-form__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 14px;
  }
  
  /* На широких экранах — 2 колонки */
  @media (min-width: 720px) {
    .seo-form__grid {
      grid-template-columns: 1fr 1fr;
      gap: 14px 16px;
    }
    .seo-form__field--full {
      grid-column: 1 / -1;
    }
  }
  
  .seo-form__field {
    margin: 0; /* CF7 любит <p> — убираем стандартные отступы */
  }
  
  .seo-form__label {
    display: block;
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
  }
  
  .seo-form__hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
  }
  
  /* Инпуты CF7 */
  .seo-form .seo-form__input,
  .seo-form input[type="text"],
  .seo-form input[type="email"],
  .seo-form input[type="tel"] {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    outline: none;
    transition: box-shadow .2s ease, border-color .2s ease, transform .05s ease;
  }
  
  .seo-form .seo-form__input::placeholder,
  .seo-form input::placeholder {
    color: #94a3b8;
  }
  
  .seo-form .seo-form__input:focus,
  .seo-form input:focus {
    border-color: rgba(99, 102, 241, .55);
    box-shadow: 0 0 0 5px var(--ring);
  }
  
  /* Блок действий */
  .seo-form__actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
  }
  
  @media (min-width: 720px) {
    .seo-form__actions {
      grid-template-columns: auto 1fr;
      align-items: center;
    }
  }
  
  .seo-form__btn,
  .seo-form input[type="submit"] {
    appearance: none;
    border: 0;
    cursor: pointer;
  
    /* ❗ главное */
    height: auto;
    padding: 14px 26px;
  
    border-radius: 14px;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: .2px;
  
    background: linear-gradient(135deg, #6366f1 0%, #22c55e 100%);
    box-shadow: 0 12px 22px rgba(99, 102, 241, .22);
    transition: transform .08s ease, box-shadow .2s ease, filter .2s ease;
  }
  
  
  .seo-form__btn:hover,
  .seo-form input[type="submit"]:hover {
    filter: brightness(1.03);
    box-shadow: 0 16px 28px rgba(99, 102, 241, .26);
  }
  
  .seo-form__btn:active,
  .seo-form input[type="submit"]:active {
    transform: translateY(1px);
  }
  
  /* Сообщения CF7 */
  .seo-form .wpcf7-not-valid-tip {
    margin-top: 8px;
    font-size: 12px;
    color: #ef4444;
  }
  
  .seo-form .wpcf7-response-output {
    margin: 14px 0 0;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
  }
  
  .seo-form__note {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.35;
  }
  