:root, [data-md-color-scheme=default] {
    --md-default-fg-color--light: black !important;
    --md-typeset-a-color: #ADB41A;
    --md-accent-fg-color: #858a11;
}

html {font-size: 22px}
.md-grid {max-width: none}

.md-header__button {transition: transform .2s}
.md-header__button:hover {transform: scale(1.1); opacity: 1;}
.md-logo img {zoom: 1.8; margin: -5px 0 -10px;}
.md-sidebar__inner .md-logo img {zoom: 1; margin-inline: auto}
.md-header--shadow .md-logo img {margin-top: -10px}
.md-header__topic {visibility: hidden}
.md-sidebar--primary .md-sidebar__inner {border-right: 1px solid var(--md-typeset-a-color)}
.md-sidebar--secondary .md-sidebar__inner {border-left: 1px solid var(--md-typeset-a-color)}
.md-typeset h1 {margin-bottom: 0; font-weight: 500}
.md-typeset h2, .md-typeset h3, .md-typeset h4 {font-weight: 500}
.md-typeset h2:first-of-type {margin-top: 0.5em}
.md-main__inner {margin-top: 0.2rem}
.md-nav__item .md-nav__link--active, .md-nav__item .md-nav__link--active code {font-weight: bold}
.md-social__link svg {max-height: 1.2rem}
@media screen and (max-width: 76.25em) {
    .md-sidebar .md-nav__title {font-size: 0}
}
@media screen and (min-width: 76.25em) {
    [data-md-color-primary=white] .md-tabs {
        border-bottom: none;
    }
}

/* hide sidebar for some pages */
@media screen and (min-width: 60em) {
    body:has(h1[id=blog]) .md-sidebar {
        visibility: hidden;
    }
    body:has(#homeh1) .md-sidebar, body:has(#sponsorsh1) .md-sidebar--primary {
        display: none;
    }
    body:has(#homeh1, #sponsorsh1) .md-main__inner {
        align-items: center;
    }
    body:has(#homeh1) .md-content {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    body:has(#homeh1) .md-content__inner {
        margin: 0;
        padding: 0;
    }
    body:has(#sponsorsh1) .md-content {
        max-width: 736px;
        margin: auto;
    }
}

/* underline for links */
.md-content a:not(.md-button) {text-decoration: underline;}
.md-content h2 > a {text-decoration: none !important;}

/* lighter color for update date info */
aside.md-source-file * {
    color: #666;
}

/* HOME PAGE */
article:has(#homeh1) .md-source-file {display: none}
article:has(#homeh1) {
    max-width: 100% !important;
    margin: 0 auto;
}

#homeh1 {
    text-align: center;
    font-size: 2em;
    font-weight: 500;
    line-height: 1.2;
}
#homeh1 span {display: none}

#homeh2 {
    text-align: center;
    margin-top: 0;
    font-size: 1.3em;
    font-style: italic;
    font-weight: 400;
}

/* Intro Section */
.intro-section {
    text-align: center;
    margin: 2em auto;
    padding: 0 2em;
}

.intro-section h2 {
    font-size: 2em;
    margin-bottom: 1em;
    font-weight: 600;
}

.intro-section > p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
    margin-bottom: 2em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.intro-section > p:has(.md-button) {
    display: flex;
    gap: 1em;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2em;
}

.intro-section .md-button {
    margin: 0;
}

/* Audience Sections */
.audience-section {
    margin: 2em 0;
    padding: 2em 2em 3em;
}

.audience-header {
    position: relative;
    margin-bottom: 4em;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.audience-header:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.audience-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.95) 35%, rgba(255, 255, 255, 0.3) 60%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.audience-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 900px;
    height: 100%;
    min-height: 400px;
}

.audience-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, transparent 100%);
    z-index: 1;
}

.audience-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9) contrast(1.05) brightness(0.95);
    transition: filter 0.4s ease;
}

.audience-header:hover .audience-image img {
    filter: saturate(1) contrast(1.08) brightness(1);
}

.audience-text {
    position: relative;
    z-index: 2;
    padding: 4em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
    max-width: 700px;
}

.audience-section h2 {
    font-size: 3.2em;
    margin-bottom: 0.5em;
    font-weight: 700;
    line-height: 1.4;
    color: #000;
    transition: all 0.4s ease;
    text-shadow:
        2px 2px 8px rgba(255, 255, 255, 0.9),
        -2px -2px 8px rgba(255, 255, 255, 0.9),
        2px -2px 8px rgba(255, 255, 255, 0.9),
        -2px 2px 8px rgba(255, 255, 255, 0.9),
        0 0 20px rgba(255, 255, 255, 0.8);
}

.audience-text p {
    font-size: 1.35em;
    color: #000;
    line-height: 1.8;
    margin: 0;
    transition: all 0.4s ease;
    text-shadow:
        2px 2px 6px rgba(255, 255, 255, 0.95),
        -2px -2px 6px rgba(255, 255, 255, 0.95),
        2px -2px 6px rgba(255, 255, 255, 0.95),
        -2px 2px 6px rgba(255, 255, 255, 0.95),
        0 0 15px rgba(255, 255, 255, 0.85);
}

.audience-header:hover h2 {
    transform: translateX(8px);
    color: #ADB41A;
    text-shadow: 0 0 0 rgba(0, 0, 0, 1);
}

.audience-header:hover p {
    transform: translateX(8px);
    color: #000;
}

/* Features Section */
.features-section {
    margin: 6em 0;
    padding: 0 2em;
}

.features-section h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 1.5em;
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2em;
    margin-top: 2em;
}

.feature-card {
    padding: 2.5em;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e8e8e8;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 250px;
}

.feature-card:hover {
    border-color: rgba(173, 180, 26, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
    transform: translateY(-6px);
    background: linear-gradient(135deg, #fff 0%, rgba(173, 180, 26, 0.02) 100%);
}

.feature-card p:has(.feature-icon) {
    position: absolute !important;
    bottom: 0;
    left: 0;
    margin: 0 !important;
    padding: 0 !important;
    width: 6em;
    height: 6em;
    overflow: visible;
}

.feature-card .feature-icon {
    font-size: 6em !important;
    color: rgba(173, 180, 26, 0.18) !important;
    line-height: 1 !important;
    position: absolute !important;
    bottom: -0.3em !important;
    left: -0.3em !important;
    transition: all 0.4s ease !important;
    z-index: 0 !important;
    pointer-events: none !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.feature-card .feature-icon svg {
    display: block !important;
    width: 1em !important;
    height: 1em !important;
}

.feature-card:hover .feature-icon {
    color: rgba(173, 180, 26, 0.22);
    transform: scale(1.05);
}

.feature-card h3 {
    font-size: 1.35em;
    margin: 0 0 1em;
    font-weight: 600;
    color: #000;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: #666;
    line-height: 1.7;
    margin: 0;
    font-size: 0.95em;
    position: relative;
    z-index: 1;
}

/* Comparison Section */
.comparison-section {
    margin: 6em 2em;
    padding: 4em 2em;
    background: linear-gradient(180deg, rgba(173, 180, 26, 0.02) 0%, transparent 100%);
    border-radius: 16px;
}

.comparison-section h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 2em;
    font-weight: 600;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5em;
    max-width: 1200px;
    margin: 0 auto;
}

.platform-card {
    padding: 2em;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    text-align: center;
    transition: all 0.3s ease;
}

.platform-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

.platform-card.maho-card {
    background: linear-gradient(135deg, rgba(173, 180, 26, 0.08) 0%, rgba(173, 180, 26, 0.02) 100%);
    border: 2px solid var(--md-typeset-a-color);
}

.platform-card.maho-card:hover {
    box-shadow: 0 8px 24px rgba(173, 180, 26, 0.2);
}

.platform-card h3 {
    font-size: 1.4em;
    margin: 0 0 0.8em;
    font-weight: 600;
    color: #000;
}

.platform-card.maho-card h3 {
    color: var(--md-typeset-a-color);
}

.platform-card p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Final CTA */
.final-cta {
    text-align: center;
    margin: 1.5em 2em 4em;
    padding: 2em 2em;
    border-radius: 16px;
    position: relative;
    background: linear-gradient(180deg, rgba(173, 180, 26, 0.03) 0%, transparent 100%);
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg, #ADB41A 0%, #858a11 100%);
}

.final-cta h2 {
    font-size: 2.2em;
    margin-bottom: 0.5em;
    font-weight: 600;
}

.final-cta p {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 2em;
}

.final-cta p:last-child {
    margin-top: 2em;
    display: flex;
    gap: 1em;
    justify-content: center;
    flex-wrap: wrap;
}

.final-cta .md-button {
    margin: 0;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    #homeh1 {
        font-size: 1.8em;
    }

    .hero-subtitle {
        font-size: 1.1em;
    }

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

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

    .hero-section, .comparison-section, .final-cta {
        margin-left: 0;
        margin-right: 0;
        padding-left: 1em;
        padding-right: 1em;
    }

    .audience-section {
        padding: 3em 1.5em;
        margin: 2em 0;
    }

    .audience-header {
        min-height: auto;
        margin-bottom: 3em;
        border-radius: 16px;
        background: linear-gradient(135deg, rgba(173, 180, 26, 0.08) 0%, rgba(173, 180, 26, 0.02) 100%);
        border: 2px solid rgba(173, 180, 26, 0.3);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    }

    .audience-header::after {
        display: none;
    }

    .audience-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        border-radius: 16px 16px 0 0;
        background: linear-gradient(90deg, #ADB41A 0%, #858a11 100%);
    }

    .audience-image {
        display: none;
    }

    .audience-image::before {
        display: none;
    }

    .audience-text {
        padding: 3em 2em;
        text-align: center;
        min-height: auto;
        max-width: 100%;
    }

    .audience-section h2 {
        font-size: 2.2em;
    }

    .audience-text p {
        font-size: 1.15em;
    }

    .final-cta {
        padding: 2em 1.5em;
    }

    .audience-header:hover {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        transform: none;
    }

    .audience-header:hover h2 {
        transform: none;
        color: #000;
        text-shadow: none;
    }

    .audience-header:hover p {
        transform: none;
        color: #333;
    }

    .audience-header:hover .audience-image img {
        filter: saturate(0.9) contrast(1.05) brightness(0.95);
    }
}

.logo {
    width: 100%;
    max-width: 30em;
    overflow: hidden;
    margin: 0.5em auto;
}
@media screen and (max-width: 520px) {
    .logo {
        zoom: 70%;
    }
}
.lp {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.lp > div {
    padding: 10px;
    box-sizing: border-box;
    opacity: 0;
}
.lp1 {
    animation: fadeInLeft 0.8s ease-out forwards;
    width: 23%;
}
.lp1 img {
    transform: scale(1.15);
}
.lp2 {
    animation: fadeInTop 0.8s ease-out forwards;
    animation-delay: 0.2s;
    width: 72%;
}
.lp2 img {
    transform: translateY(-10%);
}
.lp3 {
    animation: fadeInRight 0.8s ease-out forwards;
    animation-delay: 0.5s;
    width:5%;
    padding:0 !important;
}
.lp3 img {
    transform: translateY(-20%);
}
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px) rotate(-90deg);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes fadeInTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* SPONSORS */
.sponsorgallery {
    display: flex;
    flex-wrap: wrap;
    gap: 2em 5em;
}

.sponsorgallery > * {
    flex: 1;
}

.sponsorgallery img {
    height: 50px;
    max-width: none;
}

/* BLOG */
body:has(h1[id=blog]) .md-post--excerpt ul li {
    margin-block: 0;
}
body:has(h1[id=blog]) .md-typeset .admonition,
body:has(h1[id=blog]) .md-typeset details {
    border-width: 0;
    border-left-width: 4px;
}
body:has(h1[id=blog]) .md-typeset .admonition.tip {
    border-color: var(--md-typeset-a-color);
}
body:has(h1[id=blog]) .md-typeset .tip>.admonition-title:before,
body:has(h1[id=blog]) .md-typeset .tip>summary:before {
    background-color: var(--md-typeset-a-color);
}
body:has(h1[id=blog]) .md-typeset .tip>.admonition-title,
body:has(h1[id=blog]) .md-typeset .tip>summary {
    background-color: #ADB41A1a;
}


/* https://github.com/kasnder/youtube-embedding-consent */
.video_wrapper {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    height: 400px;
    width: 100%;
}

.video_wrapper .video_trigger {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

.video_wrapper .video_layer {
    position: relative;
    display: none;
    height: inherit;
    width: inherit;
    margin: auto;
}

.video_wrapper .video_layer iframe {
    border: 0px none transparent;
    height: inherit;
    width: inherit;
    padding: 0;
}

.video_wrapper .video-btn {
    cursor: pointer;
    display: inline-block;
    transition: color 0.5s, background-color 0.5s, border 0.5s;
    padding: 8px 16px;
    font-size: 16px;
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 3px;
}

.video_wrapper .video-btn:hover {
    background-color: #fff;
    color: #000;
}

.version-badge {
    display: inline-block;
    background: var(--md-typeset-a-color);
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: 600;
    margin-left: 10px;
    vertical-align: text-bottom;
    white-space: nowrap;
}

/* AFFILIATE BUTTONS */
.md-button.affiliate-button {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.md-button.affiliate-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(173, 180, 26, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.md-button.affiliate-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 24px rgba(173, 180, 26, 0.15);
    border-color: var(--md-typeset-a-color);
}

.md-button.affiliate-button:hover::before {
    width: 400px;
    height: 400px;
}

.md-button.affiliate-button img {
    transition: transform 0.4s ease;
}

.md-button.affiliate-button:hover img {
    transform: scale(1.1) rotate(5deg);
}

.md-button.affiliate-button span {
    position: relative;
    z-index: 1;
}

.md-button.affiliate-button:active {
    transform: translateY(-2px) scale(1.01);
}
