:root {
    --ia-primary: #0167ab;
    --ia-primary-dark: #024f84;
    --ia-accent: #e6571f;
    --ia-bg: #f4f8fc;
    --ia-surface: #ffffff;
    --ia-text: #1d2a33;
    --ia-muted: #5b6c78;
    --ia-border: #d9e4ef;
    --ia-shadow: 0 12px 30px rgba(10, 35, 60, 0.08);
    --ia-radius: 14px;
}

body.single.single-post.single-format-standard {
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(1, 103, 171, 0.12), transparent 60%),
        radial-gradient(900px 400px at 90% -20%, rgba(230, 87, 31, 0.09), transparent 55%),
        var(--ia-bg);
    color: var(--ia-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.single.single-post.single-format-standard .wrapper {
    position: relative;
    flex: 1 0 auto;
}

body.single.single-post.single-format-standard #content_single_page.content {
    padding: 28px 0 36px;
}

body.single.single-post.single-format-standard #post.single {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

body.single.single-post.single-format-standard #post > div[style*="color: red"] {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--ia-border);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(1, 103, 171, 0.08), rgba(230, 87, 31, 0.06));
    color: var(--ia-primary-dark) !important;
}

body.single.single-post.single-format-standard #post #countdown {
    color: var(--ia-accent);
}

body.single.single-post.single-format-standard #post .postcontent {
    padding: 12px 0 0 !important;
}

body.single.single-post.single-format-standard .keynote-main {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
    right: auto !important;
}

body.single.single-post.single-format-standard #page .news {
    margin-bottom: 16px;
    padding: 14px 14px 4px;
    background: #fff;
    border: 0;
    border-radius: 12px;
    box-shadow: none;
}

body.single.single-post.single-format-standard #page .newsTitle {
    margin-bottom: 14px;
}

body.single.single-post.single-format-standard #page .date_txt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid #b7d2e6;
    border-radius: 999px;
    background: #f3f8fc;
    color: var(--ia-primary-dark);
    font-size: 0.95em;
}

body.single.single-post.single-format-standard #page .txtContent p {
    color: var(--ia-text);
}

body.single.single-post.single-format-standard #page .txtContent a {
    color: var(--ia-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.single.single-post.single-format-standard #page .txtContent img {
    border-radius: 10px !important;
    border: 1px solid #e3edf6;
}

body.single.single-post.single-format-standard .best_moments,
body.single.single-post.single-format-standard .widget,
body.single.single-post.single-format-standard .sidebar > aside {
    background: var(--ia-surface);
    border: 1px solid var(--ia-border);
    border-radius: var(--ia-radius);
    box-shadow: var(--ia-shadow);
}

body.single.single-post.single-format-standard .best_moments {
    padding: 14px 15px;
}

body.single.single-post.single-format-standard .best_moments .best_moments_title {
    color: var(--ia-primary-dark);
}

body.single.single-post.single-format-standard .widget {
    padding: 12px;
    margin-bottom: 16px;
}

body.single.single-post.single-format-standard .widget .widget-title {
    color: var(--ia-primary-dark);
}

body.single.single-post.single-format-standard #tabs_bplive li span {
    border-radius: 999px !important;
}

body.single.single-post.single-format-standard .footer {
    border-top: 1px solid #d6e4f1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), #edf3f9);
    margin-top: auto;
}

body.single.single-post.single-format-standard#dark {
    --ia-bg: #1d2024;
    --ia-surface: #2a2d33;
    --ia-text: #ecf2f8;
    --ia-muted: #c6d2dd;
    --ia-border: #3b434d;
    --ia-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

body.single.single-post.single-format-standard#dark #post > div[style*="color: red"] {
    color: #bcdfff !important;
}

body.single.single-post.single-format-standard#dark #page .news {
    background: #2f343b;
}

body.single.single-post.single-format-standard#dark #page .date_txt {
    background: #263643;
    border-color: #35556c;
    color: #d1ecff;
}

body.single.single-post.single-format-standard#dark .footer {
    background: #1f2328;
    border-top-color: #313740;
}

@media (max-width: 991px) {
    body.single.single-post.single-format-standard #content_single_page.content {
        padding-top: 14px;
    }

    body.single.single-post.single-format-standard #post .postcontent {
        padding: 14px !important;
    }
}

/* Mobile template modern overrides */
body {
    background-color: #f4f8fc;
}

body #container {
    position: sticky;
    top: 0;
    z-index: 20;
}

body #header {
    background: linear-gradient(135deg, #0167ab, #024f84);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 20px rgba(1, 43, 73, 0.2);
}

body #decompte {
    color: #e7f3ff;
}

body #page {
    max-width: none;
    margin: 12px auto 16px;
    padding: 0 10px 4px;
}

body #page > h1 {
    background: #fff;
    border: 1px solid #d9e4ef;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(10, 35, 60, 0.08);
    padding: 14px 16px;
    margin-bottom: 12px;
    color: #024f84;
}

body #page_content > li {
    background: #fff;
    border: 1px solid #d9e4ef;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(10, 35, 60, 0.06);
    margin-bottom: 10px;
    overflow: hidden;
}

body #page_content .toggler {
    background: linear-gradient(180deg, #ffffff, #f4f8fc);
    color: #024f84;
}

body #page_content .element {
    color: #1d2a33;
}

body #page_content .element a {
    color: #0167ab;
}
