/*
Theme Name: Healthline
Theme URI: https://healthline.com
Author: Antigravity
Description: A premium magazine theme for Healthline based on Serene Wellness design.
Version: 1.0
Text Domain: healthline
*/

body {
    font-family: 'Inter', sans-serif;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.snap-x {
    scroll-snap-type: x mandatory;
}

.snap-center {
    scroll-snap-align: center;
}

/* Custom styles for the mask reveal to ensure no layout shift */
.word-wrapper {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-bottom: 2px;
    /* Prevent descender clipping */
    margin-right: 0.25em;
    /* Space between words */
}

.word-inner {
    display: inline-block;
    transform: translateY(110%);
}

@keyframes scroll-loop {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll-infinite {
    animation: scroll-loop 40s linear infinite;
}

.animate-scroll-infinite:hover {
    animation-play-state: paused;
}

/* Article Content Styling */
.prose-content img,
.prose-content figure img,
.prose-content .wp-block-image img {
    border-radius: 1.5rem !important;
    display: block;
    width: 100%;
    height: auto;
}

.prose-content figure,
.prose-content .wp-block-image {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}

.prose-content h2,
.prose-content h3,
.prose-content h4 {
    font-weight: 300 !important;
    letter-spacing: -0.025em !important;
    color: #1c1917 !important;
    margin-top: 4rem !important;
    margin-bottom: 2rem !important;
    display: block;
}

.prose-content h2 {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
    border-left: 6px solid #2C3E35 !important;
    padding-left: 2rem !important;
}

.prose-content h3 {
    font-size: 1.875rem !important;
}

.prose-content a {
    color: #2C3E35 !important;
    text-decoration: underline !important;
    font-weight: 500;
}

.prose-content a:hover {
    opacity: 0.7;
}


.prose-content p {
    margin-bottom: 2rem !important;
    line-height: 1.8 !important;
}

.prose-content ul,
.prose-content ol {
    margin-top: 2.5rem !important;
    margin-bottom: 2.5rem !important;
    padding-left: 2rem !important;
}

/* Mobile Specific Image Heights */
@media (max-width: 768px) {

    /* Large cards (Aktuális & Featured) */
    .h-\[500px\],
    .h-\[600px\],
    .h-\[700px\] {
        height: 350px !important;
        min-height: 350px !important;
    }

    /* Bento grid thumbnails */
    .h-48,
    .h-32 {
        height: 300px !important;
    }

    /* Section 03 hover image container */
    #hero-section {
        min-height: 100vh !important;
        height: 100vh !important;
    }

    #hero-section h1 {
        font-size: 2.75rem !important;
        /* Slightly smaller h1 for mobile */
        text-align: center !important;
        width: 100%;
    }

    #hero-section .max-w-7xl>div {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}


/* Mobile Menu Styles */
#mobile-menu {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

#mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

#mobile-menu ul,
#mobile-menu li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
    display: block !important;
    width: 100%;
}

.mobile-menu-link {
    display: block;
    padding: 2rem 0;
    font-size: 1.75rem;
    font-weight: 300;
    letter-spacing: -0.025em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: white;
    text-decoration: none;
}


.prose-content li {
    margin-bottom: 1rem !important;
}

.prose-content ul {
    list-style-type: disc !important;
}

.prose-content ol {
    list-style-type: decimal !important;
}