/* Google Fonts loaded via <link> in HTML for faster parallel fetch */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: hsl(240, 10%, 15%);
    background-color: hsl(0, 0%, 98%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
}

/* Skip navigation link — visually hidden until focused */
.skip-nav {
    position: absolute;
    top: -9999px;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background: hsl(245, 58%, 25%);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0 0 0.375rem 0.375rem;
    text-decoration: none;
}
.skip-nav:focus {
    top: 0;
}

/* Global focus styles — visible ring on all interactive elements */
:focus-visible {
    outline: 3px solid hsl(48, 95%, 50%);
    outline-offset: 3px;
    border-radius: 3px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Header Styles */
.header {
    background-color: hsl(245, 58%, 25%);
    color: white;
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-link {
    color: inherit;
    text-decoration: none;
}

.header-date {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.logo-text {
    font-size: 1rem;
    font-weight: normal;
    letter-spacing: -0.025em;
}

.nav-desktop {
    display: none;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }

    .menu-button {
        display: none;
    }
}

.icon-button {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    color: white;
}

.icon-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.menu-button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 1rem 0;
}

@media (min-width: 640px) {
    .main-content {
        padding: 1.5rem 0;
    }
}

@media (min-width: 1024px) {
    .main-content {
        padding: 2rem 0;
    }
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .main-grid {
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .main-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* Article Styles */
.article-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    border: 1px solid hsl(214, 32%, 91%);
}

@media (min-width: 640px) {
    .article-card {
        padding: 1.5rem;
    }
}

@media (min-width: 768px) {
    .article-card {
        padding: 2rem;
    }
}

@media (min-width: 1024px) {
    .article-card {
        padding: 2.5rem;
    }
}

.article-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    color: hsl(240, 10%, 15%);
}

@media (min-width: 640px) {
    .article-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
}

@media (min-width: 768px) {
    .article-title {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .article-title {
        font-size: 2rem;
    }
}

.article-subtitle {
    font-size: 1.125rem;
    color: hsl(214, 17%, 19%);
    margin-bottom: 1rem;
    line-height: 1.3;
}

@media (min-width: 640px) {
    .article-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }
}

@media (min-width: 768px) {
    .article-subtitle {
        margin-bottom: 1.5rem;
    }
}

.article-byline {
    font-size: 0.85rem;
    color: hsl(215, 16%, 47%);
    margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
    .article-byline {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

.font-semibold {
    font-weight: 600;
    color: hsl(240, 10%, 15%);
}

.video-container {
    display: block;
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.video-image {
    width: 100%;
    /* aspect-ratio: 16 / 9; */
    object-fit: cover;
    display: block;
}

.cta-button {
    background: linear-gradient(
        to bottom, 
        #FFD814 0%, #FFD814 50%,
        #fad12c 50%, #fad12c 100%
    );
    
    border: 2px solid #caa433;
    border-radius: 8px;
    color: #000;    
    text-decoration: none;
    font-weight: 600;
    font-size: 20px;
    width: 100%;
    max-width: 540px;
    margin: 0 auto 32px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: filter 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 48px;
    padding: 0.5rem 0.55rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

@media (min-width: 640px) {
    .cta-button {
        font-size: 1.125rem;
        margin-bottom: 1.75rem;
    }
}

@media (min-width: 768px) {
    .cta-button {
        margin-bottom: 2rem;
    }
}

.cta-button:hover {
    background-color: #1e23aa;
}

.cta-button:focus-visible {
    outline: 3px solid hsl(48, 95%, 50%);
    outline-offset: 3px;
}

.cta-button:active {
    transform: scale(0.98);
}

.button-icon {
    width: 48px;
    height: 48px;
}

@media (min-width: 640px) {
    .button-icon {
        width: 24px;
        height: 24px;
    }
}

.section-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
    color: hsl(240, 10%, 15%);
    line-height: 1.3;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 1.375rem;
        margin-bottom: 0.875rem;
        margin-top: 1.75rem;
    }
}

@media (min-width: 768px) {
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        margin-top: 2rem;
    }
}

.paragraph {
    font-size: 1.125rem;
    color: hsl(240, 10%, 15%);
    margin-bottom: 0.875rem;
    line-height: 1.65;
}

@media (min-width: 640px) {
    .paragraph {
        font-size: 1.125rem;
        margin-bottom: 1rem;
        line-height: 1.6;
    }
}

.symptom-list {
    list-style: none;
    margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
    .symptom-list {
        margin-bottom: 1.5rem;
    }
}

.symptom-item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin-bottom: 0.625rem;

}

@media (min-width: 640px) {
    .symptom-item {
        gap: 0.75rem;
        margin-bottom: 0.75rem;

    }
}

.check-icon {
    width: 1.125rem;
    height: 1.125rem;
    color: hsl(0, 72%, 51%);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

@media (min-width: 640px) {
    .check-icon {
        width: 1.25rem;
        height: 1.25rem;
    }
}

.info-box {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
    line-height: 1.65;
    font-size: 1.125rem;
}

@media (min-width: 640px) {
    .info-box {
        padding: 1.125rem;
        margin-bottom: 1.75rem;
        font-size: 1.125rem;
        line-height: 1.6;
    }
}

@media (min-width: 768px) {
    .info-box {
        padding: 1.25rem;
        margin-bottom: 2rem;
    }
}

.warning-box {
    background-color: hsl(48, 100%, 95%);
    border-left: 4px solid hsl(48, 95%, 76%);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.highlight-box {
    background-color: hsl(48, 100%, 92%);
    border: 1px solid hsl(48, 95%, 76%);
}

.highlight-title {
    font-size: 1.125rem;
}

/* Sidebar Styles */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sidebar-image {
    width: 100%;
    border-radius: 0.5rem;
}

@media (min-width: 640px) {
    .sidebar {
        gap: 1.5rem;
    }
}

.sidebar-card {
    border-radius: 0.5rem;
    padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) {
    .sidebar-card {
        padding: 1.5rem;
    }
}

.featured-card {
    background-color: hsl(48, 100%, 95%);
    border: 1px solid hsl(48, 95%, 76%);
}

.related-card {
    background-color: white;
    border: 1px solid hsl(214, 32%, 91%);
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.875rem;
    color: hsl(240, 10%, 15%);
}

@media (min-width: 640px) {
    .sidebar-title {
        font-size: 1.1875rem;
        margin-bottom: 0.9375rem;
    }
}

@media (min-width: 768px) {
    .sidebar-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
}

.sidebar-list {
    list-style: none;
}

.sidebar-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.sidebar-item span {
    font-size: 1.125rem;
    color: hsl(240, 10%, 15%);
    line-height: 1.4;
    cursor: pointer;
}

.sidebar-item span a {
    text-decoration: none;
    color: hsl(240, 10%, 15%);
}

.sidebar-item span:hover {
    text-decoration: underline;
}

.check-icon-small {
    width: 1.125rem;
    height: 1.125rem;
    color: hsl(142, 71%, 45%);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

@media (min-width: 640px) {
    .check-icon-small {
        width: 1.25rem;
        height: 1.25rem;
    }
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid hsl(214, 32%, 91%);
}

.related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-title {
    font-weight: 600;
    font-size: 1.125rem;
    color: hsl(240, 10%, 15%);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    cursor: pointer;
}

.related-title a {
    text-decoration: none;
    color: hsl(240, 10%, 15%);
}

.related-title:hover {
    text-decoration: underline;
}

.related-meta {
    font-size: 1rem;
    color: hsl(215, 16%, 40%);
}

.testimonial-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 24px 0;
}

.testimonial-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e8e8e8;
}

.testimonial-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonial-name {
    font-weight: 700;
    font-size: 1.125rem;
    color: #1a1a1a;
}

.testimonial-location {
    font-size: 1rem;
    color: #555;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 14px;
}

.testimonial-result {
    display: inline-block;
    background: #f0faf0;
    border: 1px solid #b3e6b3;
    color: #2d7a2d;
    font-weight: 700;
    font-size: 1rem;
    padding: 6px 12px;
    border-radius: 20px;
}

/* Footer Styles */
.footer {
    background-color: hsl(245, 58%, 25%);
    color: white;
    padding: 1.5rem 0;
    margin-top: 2.5rem;
}

@media (min-width: 640px) {
    .footer {
        padding: 1.75rem 0;
        margin-top: 3rem;
    }
}

@media (min-width: 768px) {
    .footer {
        padding: 2rem 0;
        margin-top: 4rem;
    }
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.footer-description {
    font-size: 0.8rem;
    max-width: 42rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    line-height: 1.5;
}

@media (min-width: 640px) {
    .footer-nav {
        gap: 0.75rem;
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .footer-nav {
        gap: 1rem;
    }
}

.footer-link {
    color: white;
    text-decoration: none;
}

.footer-link:hover,
.footer-link:focus-visible {
    text-decoration: underline;
}

.footer-separator {
    color: white;
}

/* Body-copy links — underline on hover/focus for clear affordance */
.paragraph a:hover,
.paragraph a:focus-visible,
.sidebar-item a:hover,
.sidebar-item a:focus-visible,
.related-title a:hover,
.related-title a:focus-visible {
    text-decoration: underline;
}

.footer-copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 1rem;
}

.video-container {
    position: relative;
    display: inline-block;
    line-height: 0;
    /* cursor: pointer; */
}

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

/* Overlay */
.video-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.12);
    z-index: 1;
}