html,
body {
    overflow-x: hidden;
}

body {
    background: #f3f6fb;
    color: #111827;
    margin: 0;
    padding: 0;
}

a {
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

a:hover {
    text-decoration: none;
}

.site-header-wrap {
    position: relative;
    z-index: 1000;
    width: 100%;
}

.site-header {
    position: relative;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
}

.site-page {
    padding-top: 14px;
    min-height: 60vh;
}

.site-page-home {
    padding-top: 0;
}

.page-content {
    position: relative;
    z-index: 1;
}

.site-topbar {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border-bottom: 1px solid #e5e7eb;
}

.site-topbar-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* =========================
   LOGO FIX - MAGNEWS STYLE
========================= */

.site-logo-text,
.site-mobile-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: #111827;
    letter-spacing: -0.03em;
    line-height: 1;
    overflow: hidden;
}

.site-logo-text {
    min-height: 50px;
    max-width: 240px;
    font-size: 26px;
    font-weight: 800;
}

.site-mobile-logo {
    min-height: 36px;
    max-width: 180px;
    font-size: 24px;
    font-weight: 800;
}

.site-logo-text img,
.site-logo-text picture img,
.site-logo-text svg,
.site-mobile-logo img,
.site-mobile-logo picture img,
.site-mobile-logo svg {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    object-fit: contain;
}

/* twarde ograniczenie dla uploadowanego logo */
.site-logo-text img,
.site-logo-text picture img,
.site-logo-text svg,
.site-topbar-inner > a:first-child img,
.site-topbar-inner > a:first-child picture img,
.site-topbar-inner > a:first-child svg,
.site-header a[href="/"] img,
.site-header a[href="/"] picture img,
.site-header a[href="/"] svg,
.site-header img[src*="/uploads/settings/"] {
    max-height: 42px !important;
    width: auto !important;
    height: auto !important;
    max-width: 240px !important;
    object-fit: contain !important;
}

.site-mobile-logo img,
.site-mobile-logo picture img,
.site-mobile-logo svg,
.site-mobile-header a[href="/"] img,
.site-mobile-header a[href="/"] picture img,
.site-mobile-header a[href="/"] svg,
.site-mobile-header img[src*="/uploads/settings/"] {
    max-height: 30px !important;
    width: auto !important;
    height: auto !important;
    max-width: 180px !important;
    object-fit: contain !important;
}

.site-logo-text:hover,
.site-mobile-logo:hover {
    color: #0d6efd;
}

.site-search-form {
    width: 100%;
    max-width: 500px;
    margin-left: auto;
}

.site-search-input,
.site-mobile-search-input {
    width: 100%;
    height: 42px;
    border: 1px solid #d7deea;
    border-radius: 12px;
    background: #fff;
    padding: 0 16px;
    font-size: 13px;
    color: #111827;
    outline: none;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.site-search-input:focus,
.site-mobile-search-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
}

.site-main-nav-wrap {
    background: #ffffff;
    border-bottom: 1px solid #edf1f6;
}

.site-main-nav {
    position: relative;
}

.site-main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
}

.site-main-menu > li {
    position: relative;
}

.site-main-menu > li > a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
}

.site-main-menu > li > a:hover,
.site-main-menu > li:hover > a {
    color: #0d6efd;
    background: #eff6ff;
}

.site-main-menu > li.has-dropdown > a::after {
    content: "";
    display: inline-block;
    margin-left: 8px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
}

.site-dropdown {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    min-width: 240px;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
    z-index: 1005;
}

.site-main-menu > li:hover > .site-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-dropdown li a {
    display: block;
    padding: 11px 16px;
    font-size: 14px;
    color: #374151;
}

.site-dropdown li a:hover {
    background: #f7faff;
    color: #0d6efd;
}

.site-mobile-header {
    display: none;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.site-mobile-header-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-mobile-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid #d7deea;
    border-radius: 10px;
    background: #fff;
    font-size: 24px;
    line-height: 1;
    color: #111827;
    padding: 0;
    cursor: pointer;
}

.site-mobile-menu {
    display: none;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
}

.site-mobile-menu.is-open {
    display: block;
}

.site-mobile-search-form {
    padding: 14px 0 10px;
}

.site-mobile-menu-list,
.site-mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-mobile-menu-list > li {
    border-top: 1px solid #edf1f6;
    position: relative;
}

.site-mobile-menu-list > li > a {
    display: block;
    padding: 16px 0;
    padding-right: 48px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.site-mobile-subtoggle {
    position: absolute;
    top: 6px;
    right: 0;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: #f3f6fb;
    color: #111827;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.site-mobile-submenu {
    display: none;
    padding: 0 0 10px;
}

.site-mobile-menu-list > li.is-open > .site-mobile-submenu {
    display: block;
}

.site-mobile-submenu li a {
    display: block;
    padding: 10px 0 10px 16px;
    font-size: 14px;
    color: #4b5563;
}

.site-mobile-submenu li a:hover {
    color: #0d6efd;
}

/* =========================
   ADS SPACING FIX
========================= */

.home-top-ad-wrap,
.home-ad-slot {
    text-align: center;
    overflow: hidden;
    line-height: 0;
    padding: 0;
    margin: 18px 0;
}

.premium-home > .home-top-ad-wrap:first-child {
    margin-top: 18px;
    margin-bottom: 18px;
}

.home-top-ad-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-top-ad-wrap > *,
.home-ad-slot > * {
    display: inline-block;
    max-width: 100%;
    margin: 0 auto;
    vertical-align: top;
}

.home-top-ad-wrap img,
.home-top-ad-wrap iframe,
.home-top-ad-wrap ins,
.home-top-ad-wrap a,
.home-top-ad-wrap a img,
.home-ad-slot img,
.home-ad-slot iframe,
.home-ad-slot ins,
.home-ad-slot a,
.home-ad-slot a img {
    display: inline-block;
    max-width: 100%;
    height: auto !important;
    vertical-align: top;
}

/* żeby sekcja po reklamie nie wyglądała jak przyklejona albo z dodatkowym offsetem */
.premium-home > .home-top-ad-wrap + .home-section,
.premium-home > .home-ad-slot + .home-section {
    margin-top: 0;
}

.premium-home .home-section {
    background: #ffffff;
    border: 1px solid #e7edf5;
    border-radius: 18px;
    margin-bottom: 28px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.05);
}

.premium-home .home-section-body {
    padding: 22px;
}

.home-section-hero {
    border-color: #dde7f2;
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.08);
}

.home-section-body-hero {
    padding-top: 18px;
}

.section-headline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    border-bottom: 1px solid #edf1f6;
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.section-headline::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 20px;
    width: 4px;
    height: 38px;
    background: linear-gradient(180deg, #0d6efd 0%, #4f8cff 100%);
    border-radius: 6px;
}

.section-headline-main {
    padding-left: 16px;
}

.section-kicker {
    margin: 0 0 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #94a3b8;
}

.section-headline h2 {
    margin: 0 0 5px;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.18;
    color: #111827;
}

.section-headline p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #6b7280;
    max-width: 720px;
}

.section-more-link,
.section-headline-note {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    white-space: nowrap;
    padding-top: 6px;
}

.section-more-link:hover {
    color: #0d6efd;
}

.section-subgroup {
    margin-bottom: 16px;
}

.section-subgroup:last-child {
    margin-bottom: 0;
}

.section-subgroup-products {
    padding-top: 8px;
    border-top: 1px dashed #e5eaf1;
}

.section-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8b8b8b;
    margin: 0 0 14px;
}

.premium-hero-grid,
.premium-post-grid,
.home-product-grid,
.home-top-grid,
.premium-ranking-grid {
    margin-bottom: -8px;
}

.home-section-intro .section-headline {
    padding: 26px 28px;
}

.home-section-intro .home-intro-title {
    margin: 0 0 8px;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
    color: #111827;
}

.home-section-intro .section-headline p {
    max-width: 100%;
    font-size: 15px;
}

.premium-hero-main {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    min-height: 460px;
    background: #111827;
    height: 100%;
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.16);
}

.premium-hero-main-link {
    display: block;
    position: relative;
    height: 100%;
    color: #ffffff;
}

.premium-hero-main img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
}

.premium-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.06) 0%, rgba(15, 23, 42, 0.30) 45%, rgba(15, 23, 42, 0.92) 100%);
}

.premium-hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px;
    z-index: 2;
}

.premium-badge,
.premium-side-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 7px 10px;
}

.premium-badge {
    color: #ffffff;
    background: rgba(13, 110, 253, 0.92);
    margin-bottom: 14px;
    box-shadow: 0 8px 18px rgba(13, 110, 253, 0.24);
}

.premium-side-badge {
    color: #0d6efd;
    background: #eff6ff;
    margin-bottom: 10px;
}

.premium-hero-content h1 {
    margin: 0 0 12px;
    font-size: 38px;
    line-height: 1.08;
    font-weight: 800;
    color: #ffffff;
    max-width: 88%;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
}

.premium-hero-content p {
    margin: 0;
    max-width: 78%;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
}

.premium-hero-side {
    background: #ffffff;
    border: 1px solid #e7edf5;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.05);
    transition: transform .18s ease, box-shadow .18s ease;
}

.premium-hero-side:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 28px rgba(17, 24, 39, 0.09);
}

.premium-hero-side:last-child {
    margin-bottom: 0;
}

.premium-hero-side-link {
    display: block;
    color: #111827;
}

.premium-hero-side img {
    width: 100%;
    height: 188px;
    object-fit: cover;
    display: block;
}

.premium-hero-side-content {
    padding: 16px;
}

.premium-hero-side-content h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
    color: #111827;
}

.premium-post-card {
    background: #ffffff;
    border: 1px solid #e8edf4;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.04);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.premium-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(17, 24, 39, 0.08);
    border-color: #dce5ef;
}

.premium-post-link {
    display: block;
    color: #111827;
    height: 100%;
}

.premium-post-image-wrap {
    overflow: hidden;
}

.premium-post-image-wrap img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform .22s ease;
}

.premium-post-card:hover .premium-post-image-wrap img {
    transform: scale(1.04);
}

.premium-post-body {
    padding: 17px;
}

.premium-post-body h3 {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.38;
    font-weight: 700;
    color: #111827;
}

.premium-post-body p {
    margin: 0;
    font-size: 13px;
    line-height: 1.68;
    color: #6b7280;
}

.home-product-grid .col-product,
.home-top-grid .col-product {
    width: 16.66666667%;
    padding-left: 8px;
    padding-right: 8px;
}

.home-product-grid,
.home-top-grid {
    margin-left: -8px;
    margin-right: -8px;
}

.home-product-aff-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-product-aff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 32px rgba(17, 24, 39, 0.10);
    border-color: #dbe3ee;
}

.home-product-aff-media {
    padding: 18px 18px 10px;
    text-align: center;
    border-bottom: 1px solid #f1f4f8;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    overflow: hidden;
}

.home-product-aff-media img {
    width: 100%;
    height: 168px;
    object-fit: contain;
    display: block;
    transition: transform .22s ease;
}

.home-product-aff-card:hover .home-product-aff-media img {
    transform: scale(1.04);
}

.home-product-aff-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home-product-aff-title {
    display: block;
    line-height: 1.35;
    min-height: 56px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 15px;
    font-weight: 800;
    color: #111827;
}

.home-product-aff-title:hover {
    color: #0d6efd;
}

.home-product-aff-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 16px;
    min-height: 84px;
    overflow: hidden;
    word-break: break-word;
}

.home-product-aff-price {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
    color: #111827;
    margin-bottom: 14px;
}

.home-product-aff-actions {
    margin-top: auto;
}

.home-product-aff-btn {
    display: block;
    width: 100%;
    border-radius: 10px;
    background: linear-gradient(180deg, #198754 0%, #157347 100%);
    color: #ffffff;
    text-align: center;
    padding: 11px 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .01em;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(21, 115, 71, 0.16);
}

.home-product-aff-btn:hover {
    color: #ffffff;
    background: linear-gradient(180deg, #157347 0%, #12633d 100%);
}

.home-top-clicked-section .section-headline {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.home-rankings-section .premium-ranking-grid {
    margin-bottom: -10px;
}

.premium-ranking-card-better {
    border: 1px solid #e5ebf3;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.045);
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.premium-ranking-card-better:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(17, 24, 39, 0.08);
    border-color: #d8e2ef;
}

.premium-ranking-link-better {
    display: block;
    height: 100%;
    padding: 18px;
}

.premium-ranking-better-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.premium-ranking-better-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(180deg, #0d6efd 0%, #2563eb 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
}

.premium-ranking-better-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8b95a5;
}

.premium-ranking-body-better {
    padding: 0;
}

.premium-ranking-body-better h3 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
    color: #111827;
}

.premium-ranking-body-better p {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.6;
    color: #6b7280;
}

.premium-ranking-cta-better {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #0d6efd;
}

.premium-ranking-cta-better::after {
    content: "->";
    font-size: 12px;
    line-height: 1;
}

.theme-blue .section-headline::before {
    background: linear-gradient(180deg, #2563eb 0%, #3b82f6 100%);
}

.theme-blue .section-label {
    color: #2563eb;
}

.theme-blue .section-more-link:hover {
    color: #2563eb;
}

.theme-blue .section-headline {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.theme-blue .section-subgroup-products {
    border-top-color: #dfeaff;
}

.theme-teal .section-headline::before {
    background: linear-gradient(180deg, #0f766e 0%, #14b8a6 100%);
}

.theme-teal .section-label {
    color: #0f766e;
}

.theme-teal .section-more-link:hover {
    color: #0f766e;
}

.theme-teal .section-headline {
    background: linear-gradient(180deg, #ffffff 0%, #f5fffd 100%);
}

.theme-teal .section-subgroup-products {
    border-top-color: #dcf7f2;
}

.theme-violet .section-headline::before {
    background: linear-gradient(180deg, #7c3aed 0%, #8b5cf6 100%);
}

.theme-violet .section-label {
    color: #7c3aed;
}

.theme-violet .section-more-link:hover {
    color: #7c3aed;
}

.theme-violet .section-headline {
    background: linear-gradient(180deg, #ffffff 0%, #fbf9ff 100%);
}

.theme-violet .section-subgroup-products {
    border-top-color: #ece4ff;
}

.theme-amber .section-headline::before {
    background: linear-gradient(180deg, #d97706 0%, #f59e0b 100%);
}

.theme-amber .section-label {
    color: #d97706;
}

.theme-amber .section-more-link:hover {
    color: #d97706;
}

.theme-amber .section-headline {
    background: linear-gradient(180deg, #ffffff 0%, #fffaf3 100%);
}

.theme-amber .section-subgroup-products {
    border-top-color: #fbe7c7;
}

.site-footer {
    margin-top: 40px;
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    color: #e5e7eb;
}

.site-footer-inner {
    padding: 42px 0 22px;
}

.site-footer-card {
    height: 100%;
}

.site-footer-title {
    margin: 0 0 18px;
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
}

.site-footer-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
    color: #cbd5e1;
    max-width: 320px;
}

.site-footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer-list li {
    margin-bottom: 10px;
}

.site-footer-list li:last-child {
    margin-bottom: 0;
}

.site-footer-list a {
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.6;
}

.site-footer-list a:hover {
    color: #ffffff;
}

.site-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 0 22px;
    font-size: 12px;
    color: #94a3b8;
}

@media (max-width: 1199px) {
    .site-logo-text {
        max-width: 210px;
    }

    .site-logo-text img,
    .site-logo-text picture img,
    .site-logo-text svg,
    .site-topbar-inner > a:first-child img,
    .site-header a[href="/"] img,
    .site-header img[src*="/uploads/settings/"] {
        max-width: 210px !important;
        max-height: 38px !important;
    }

    .home-product-grid .col-product,
    .home-top-grid .col-product {
        width: 33.33333333%;
    }

    .premium-hero-main,
    .premium-hero-main img {
        min-height: 420px;
        height: 420px;
    }

    .premium-hero-content h1 {
        font-size: 32px;
    }

    .premium-hero-content p {
        max-width: 86%;
    }
}

@media (max-width: 991px) {
    .site-topbar,
    .site-main-nav-wrap {
        display: none;
    }

    .site-mobile-header {
        display: block;
    }

    .site-page,
    .site-page-home {
        padding-top: 0;
    }

    .home-top-ad-wrap,
    .home-ad-slot {
        margin: 16px 0;
    }

    .section-headline {
        padding: 18px 18px;
    }

    .section-headline::before {
        left: 18px;
        top: 18px;
        height: 34px;
    }

    .premium-home .home-section-body {
        padding: 18px;
    }

    .premium-hero-main,
    .premium-hero-main img {
        min-height: 350px;
        height: 350px;
    }

    .premium-hero-content {
        padding: 22px;
    }

    .premium-hero-content h1 {
        font-size: 28px;
        max-width: 100%;
    }

    .premium-hero-content p {
        max-width: 100%;
    }

    .premium-post-image-wrap img {
        height: 190px;
    }
}

@media (max-width: 767px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .site-mobile-header-inner {
        min-height: 60px;
    }

    .site-mobile-logo {
        max-width: 160px;
        font-size: 22px;
    }

    .site-mobile-logo img,
    .site-mobile-logo picture img,
    .site-mobile-logo svg,
    .site-mobile-header a[href="/"] img,
    .site-mobile-header img[src*="/uploads/settings/"] {
        max-height: 28px !important;
        max-width: 160px !important;
    }

    .premium-home .home-section {
        border-radius: 14px;
        margin-bottom: 20px;
    }

    .section-headline {
        flex-direction: column;
        gap: 10px;
        padding: 15px 16px;
    }

    .section-headline::before {
        left: 16px;
        top: 16px;
        height: 28px;
    }

    .section-headline-main {
        padding-left: 13px;
    }

    .section-headline h2 {
        font-size: 18px;
    }

    .section-headline p {
        font-size: 12px;
    }

    .premium-home .home-section-body {
        padding: 16px;
    }

    .home-section-intro .section-headline {
        padding: 18px 16px;
    }

    .home-section-intro .home-intro-title {
        font-size: 22px;
    }

    .home-section-intro .section-headline p {
        font-size: 14px;
    }

    .premium-hero-main,
    .premium-hero-main img {
        min-height: 280px;
        height: 280px;
    }

    .premium-hero-content {
        padding: 18px;
    }

    .premium-hero-content h1 {
        font-size: 24px;
    }

    .premium-hero-content p {
        font-size: 13px;
    }

    .premium-hero-side img,
    .premium-post-image-wrap img {
        height: 190px;
    }

    .home-product-grid .col-product,
    .home-top-grid .col-product {
        width: 50%;
    }

    .premium-ranking-link-better {
        padding: 16px;
    }

    .premium-ranking-body-better h3 {
        font-size: 15px;
    }

    .site-footer {
        margin-top: 32px;
    }

    .site-footer-inner {
        padding: 32px 0 12px;
    }

    .course-title {
        font-size: 32px;
    }

    .course-meta-row {
        gap: 10px;
        font-size: 14px;
    }

    .course-price {
        font-size: 28px;
    }

    .course-cta {
        font-size: 16px;
    }

    .course-lead,
    .course-long-text,
    .course-bullet-list,
    .product-long-description {
        font-size: 16px;
    }

    .product-long-description iframe {
        height: 240px;
    }
}

@media (max-width: 575px) {
    .site-page,
    .site-page-home {
        padding-top: 0;
    }

    .home-top-ad-wrap,
    .home-ad-slot {
        margin: 14px 0;
    }

    .premium-home .home-section {
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .section-headline {
        padding: 14px 14px;
    }

    .section-headline::before {
        left: 14px;
        top: 14px;
        height: 24px;
    }

    .section-headline-main {
        padding-left: 11px;
    }

    .section-headline h2 {
        font-size: 17px;
    }

    .premium-hero-main,
    .premium-hero-main img {
        min-height: 230px;
        height: 230px;
    }

    .premium-hero-content {
        padding: 16px;
    }

    .premium-hero-content h1 {
        font-size: 21px;
    }

    .premium-hero-content p {
        display: none;
    }

    .premium-hero-side img,
    .premium-post-image-wrap img {
        height: 170px;
    }

    .premium-post-body,
    .premium-ranking-body {
        padding: 14px;
    }

    .premium-post-body h3,
    .premium-ranking-body h3 {
        font-size: 15px;
    }

    .home-product-grid .col-product,
    .home-top-grid .col-product {
        width: 100%;
    }

    .home-product-aff-media img {
        height: 160px;
    }

    .home-product-aff-desc {
        min-height: auto;
    }

    .premium-ranking-link-better {
        padding: 14px;
    }

    .premium-ranking-better-badge {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .premium-ranking-body-better h3 {
        font-size: 14px;
    }

    .premium-ranking-body-better p {
        font-size: 12px;
    }

    .site-footer-text {
        max-width: 100%;
    }

    .course-title {
        font-size: 28px;
    }

    .course-h2 {
        font-size: 24px;
    }
}

/* =========================
   COURSE VIEW - SAFE BLOCK
========================= */

.course-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.12;
    margin: 0 0 14px;
    color: #0b1f44;
}

.course-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.course-media {
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
}

.course-media-video {
    width: 100%;
    display: block;
    max-height: 620px;
    background: #000;
}

.course-media-ratio {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}

.course-media-ratio iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.course-image-link {
    display: block;
}

.course-cover-image {
    display: block;
    width: 100%;
    height: auto;
}

.course-lead {
    line-height: 1.8;
    color: #444;
    font-size: 17px;
}

.course-price {
    font-size: 32px;
    font-weight: 800;
    color: #1f8f3a;
    margin-bottom: 18px;
}

.course-cta {
    padding: 14px 34px;
    font-weight: 700;
    font-size: 18px;
}

.course-h2 {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 18px;
    color: #111827;
}

.course-long-text {
    line-height: 1.9;
    color: #444;
    font-size: 17px;
}

.course-bullet-list {
    list-style: disc !important;
    list-style-position: outside !important;
    margin: 0;
    padding-left: 24px;
    color: #444;
    font-size: 17px;
    line-height: 1.9;
}

.course-bullet-list li {
    list-style: disc !important;
    display: list-item !important;
    margin: 0 0 10px;
}

.product-long-description {
    line-height: 1.9;
    color: #444;
    font-size: 17px;
}

.product-long-description h1,
.product-long-description h2,
.product-long-description h3,
.product-long-description h4 {
    color: #111827;
    font-weight: 800;
    line-height: 1.25;
    margin-top: 1.2em;
    margin-bottom: 0.6em;
}

.product-long-description h1 {
    font-size: 30px;
}

.product-long-description h2 {
    font-size: 26px;
}

.product-long-description h3 {
    font-size: 22px;
}

.product-long-description h4 {
    font-size: 18px;
}

.product-long-description p {
    margin-bottom: 12px;
}

.product-long-description ul {
    list-style: disc !important;
    list-style-position: outside !important;
    margin: 0 0 16px;
    padding-left: 24px;
}

.product-long-description ol {
    list-style: decimal !important;
    list-style-position: outside !important;
    margin: 0 0 16px;
    padding-left: 24px;
}

.product-long-description li {
    display: list-item !important;
    margin: 0 0 10px;
}

.product-long-description ul li {
    list-style: disc !important;
}

.product-long-description ol li {
    list-style: decimal !important;
}

.product-long-description a {
    color: #0d6efd;
    text-decoration: underline;
}

.product-long-description strong {
    font-weight: 700;
}

.product-long-description blockquote {
    border-left: 4px solid #16a34a;
    padding-left: 12px;
    margin: 15px 0;
    color: #555;
}

.product-long-description img,
.product-long-description video {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 15px 0;
}

.product-long-description iframe {
    width: 100%;
    max-width: 100%;
    height: 420px;
    border: 0;
    margin: 15px 0;
}

.product-long-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.product-long-description th,
.product-long-description td {
    border: 1px solid #ddd;
    padding: 10px;
}

.product-long-description th {
    background: #f5f5f5;
    font-weight: 700;
}

.product-long-description ul {
    list-style: disc;
    padding-left: 20px;
}

.product-long-description ol {
    list-style: decimal;
    padding-left: 20px;
}

.product-long-description li {
    margin-bottom: 6px;
}
}