/* assets/style.css - Healthline Clone */
@import url('https://fonts.googleapis.com/css2?family=Helvetica+Now+Display:wght@400;700;900&family=Arial:wght@400;700&display=swap');

:root {
    --hl-blue: #2276fc; /* Healthline Link Blue */
    --hl-black: #232323;
    --hl-gray: #5e5e5e;
    --hl-light-gray: #f7f7f7;
    --hl-border: #e0e0e0;
    --hl-teal: #2c6ecb; /* Used for medical badges sometimes, or standard blue */
    --badge-bg: #f2f7fc; /* That light blue background for the badge */
}

body {
    font-family: 'Helvetica', 'Arial', sans-serif; /* Healthline uses Proxima Nova/Helvetica */
    color: var(--hl-black);
    margin: 0;
    line-height: 1.6;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

/* --- Top Navigation --- */
nav {
    border-bottom: 1px solid var(--hl-border);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1000;
}

nav .logo {
    font-weight: 900;
    font-size: 1.5rem;
    color: #DD2E44; /* Healthline Red Logo color */
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: -1px;
}

nav .btn-subscribe {
    border: 2px solid var(--hl-black);
    padding: 8px 20px;
    background: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    color: black;
    transition: 0.2s;
}

nav .btn-subscribe:hover {
    background: var(--hl-black);
    color: white;
}

/* --- Layout --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-container {
    max-width: 760px; /* Healthline's exact reading width */
    margin: 0 auto;
    padding-top: 40px;
}

/* --- Typography --- */
h1 {
    font-size: 2.75rem; /* Massive Title */
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 10px;
    color: #000;
}

p {
    font-size: 1.125rem; /* 18px text for readability */
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #232323;
}

h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

a { color: var(--hl-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- The "Medical Badge" (The Healthline Trust Signal) --- */
.byline-area {
    font-size: 0.9rem;
    color: var(--hl-gray);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--hl-border); /* Separator */
    padding-bottom: 20px;
}

.byline-area .author {
    color: #000;
    font-weight: bold;
    text-transform: capitalize;
}

.medical-badge {
    display: inline-flex;
    align-items: center;
    background-color: transparent; /* Healthline keeps it clean now */
    margin-top: 10px;
    font-size: 0.9rem;
    color: #555;
}

.medical-badge .icon {
    width: 18px;
    height: 18px;
    background: #000; /* Black checkmark circle */
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    margin-right: 8px;
}

.medical-badge a {
    color: #000;
    text-decoration: underline;
    font-weight: normal;
}

/* --- Homepage Grid --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.card h2 {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.card h2 a {
    color: #000;
}

.card .meta {
    font-size: 0.85rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}