*,
*::before,
*::after {
    box-sizing: border-box;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
}

.logo a {
    text-decoration: none;
    font-weight: bold;
    font-size: 24px;
}

.custom-logo {
    max-height: 40px;
    width: auto;
}

.logo img {
    display: block;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav {
    display: flex;
    gap: 20px;
}

.main-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.main-nav a:hover {
    text-decoration: underline;
    color: #4CC9F0;
}

/* HERO */

.hero-slider {
    position: relative;
}

.hero-slide {
    height: 380px;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;

    padding: 40px 60px;
    box-sizing: border-box;

    border-radius: 0px;
    overflow: hidden;
}

.hero-content {
    max-width: 700px;

    padding: 20px 30px 20px 0;

    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 44px;
    line-height: 1.1;
    
    text-shadow:
    0 1px 2px rgba(255,255,255,.8);

    margin: 0 0 20px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.hero-content p {
    font-size: 20px;
    line-height: 1.6;
    
    text-shadow:
    0 1px 2px rgba(255,255,255,.8);

    margin: 0 0 30px;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

/* FILTERS */

.filters {
    display: flex;
    gap: 20px;
    padding: 30px 60px;
    border-bottom: 1px solid #ddd;
}

.filters input {
    flex: 1;
    padding: 12px;
}

.filters select {
    padding: 12px;
    min-width: 220px;
}

/* CONTENT GRID */

.content-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 40px 60px;
}

.tile-link {
    text-decoration: none;
    color: inherit;
    display: flex;
}

.tile {
    border: 1px solid #ddd;
    overflow: hidden;

    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100%;

    transition: transform 0.2s ease;
}

.tile:hover {
    transform: translateY(-4px);
    cursor: pointer;
}

.tile-image {
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

.tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tile-content {
    padding: 20px;

    display: flex;
    flex-direction: column;

    flex-grow: 1;
}

.tile h3 {
    margin-top: 0;
    margin-bottom: 12px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.tile-content p {
    flex-grow: 1;

    margin-bottom: 20px;

    line-height: 1.5;
    max-height: 4.5em;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.tile-button {
    display: inline-block;
    margin-top: auto;
    font-weight: 600;
}

/* ARTICLE PAGE */

.article-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.article-content h1 {
    margin-bottom: 30px;
}

.article-meta {
    margin-bottom: 20px;
}

.topic-pill {
    display: inline-block;
    padding: 6px 12px;
    margin-right: 8px;
    border-radius: 999px;
    background: #f0f0f0;
    font-size: 14px;
}

.article-image {
    margin-bottom: 30px;
}

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

.article-body {
    line-height: 1.8;
    font-size: 18px;
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* RESPONSIVE */

@media (max-width: 1200px) {

    .content-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

@media (max-width: 900px) {

    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

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

    .filters {
        flex-direction: column;
    }

}
/* FOOTER */

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reset-button {
    display: inline-block;
    padding: 12px 20px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: inherit;
}

.author-box {
    margin-top: 80px;
    padding: 30px;
    border: 1px solid #ddd;

    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.author-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;

    margin-top: 20px;
    margin-bottom: 20px;
}

.author-photo img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 999px;
}

.author-details h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.author-role {
    color: #666;
    margin-bottom: 15px;
}

.related-content {
    margin-top: 80px;
}

.related-content h2 {
    margin-bottom: 30px;
}
@media (max-width: 768px) {

    .related-content .content-grid {
        grid-template-columns: 1fr !important;
        padding: 0;
    }

    .related-content .tile-link {
        min-width: 0;
        width: 100%;
    }

}

/* FOOTER */

.site-footer {
    margin-top: 80px;
    background: #111;
    color: #fff;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;

    padding: 60px;

    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.footer-brand h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.footer-brand p {
    line-height: 1.8;
    max-width: 400px;
}

.footer-links h4 {
    margin-top: 0;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
}

.footer-links a:hover {
    color: #4CC9F0;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);

    text-align: center;

    padding: 20px;
}
/* EMPTY STATE */

.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results h2 {
    margin-bottom: 15px;
}

.no-results p {
    margin-bottom: 25px;
}
/* SHARE BUTTONS */

.article-share {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.article-share h3 {
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-button {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: inherit;
}

.share-button:hover {
    background: #f5f5f5;
}
/* ==========================================
   EVERSUND DESIGN SYSTEM
========================================== */

:root {
    --midnight-black: #0E0F12;
    --electric-cyan: #4CC9F0;
    --white-noise: #F1F1F1;
    --cold-fog: #C7D2D8;
    --steel-blue: #2C3A47;
    --editorial-coral: #F0724C;
    --horizon-light: #E9C46A;
    --nordic-archive: #A7B8A0;

    --accent: #4CC9F0;
}

/* BUTTONS */

.hero-button,
.tile-button,
.reset-button,
.share-button,
.filters button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #4CC9F0;
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.reset-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 20px;

    text-decoration: none;
    color: inherit;

    text-align: center;
}

.hero-button:hover,
.tile-button:hover,
.reset-button:hover,
.share-button:hover,
.filters button:hover {
    opacity: 0.85;
}

/* TILE IMAGE OVERLAYS */


/* AD TILES */

.ad-tile .tile-image {
    flex-grow: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.ad-tile .tile-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

/* FILTER BAR */

.filters form {
    width: 100%;

    display: flex;
    gap: 15px;
    align-items: center;
}

.filters button {
    cursor: pointer;
}

/* AUTHOR BOX */

.author-box {
    background: #fafafa;
    border-radius: 16px;
}

/* RELATED CONTENT */

.related-content h2 {
    font-size: 32px;
}

/* TILE BUTTONS */

.tile-button {
    align-self: flex-start;
    width: auto;
    min-width: 120px;
    text-align: center;
}
/* TILE BADGES */

.tile-image {
    position: relative;
}

.tile-badge {
    position: absolute;
    top: 10px;
    left: 10px;

    background: #C7D2D8;
    color: #2C3A47;

    padding: 4px 8px;

    border-radius: 3px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;

    z-index: 2;
}

/* READING TIME */

.reading-time {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}
/* SPONSORED CONTENT */

.sponsored-label {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 10px;

    background: #f5f5f5;
    border: 1px solid #ddd;

    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-sponsored {
    display: inline-block;

    margin-bottom: 20px;
    padding: 6px 12px;

    background: #f5f5f5;
    border: 1px solid #ddd;

    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}
/* AD TILES */

.ad-tile {
    position: relative;
    padding: 0;
    overflow: hidden;
    border: none;
}

.ad-tile img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ad-badge {
    position: absolute;
    top: 10px;
    left: 10px;

    z-index: 10;

    background: #F0724C;
    color: #FFFFFF;

    padding: 4px 8px;

    border-radius: 3px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* PAGINATION */

.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0 60px;
}

.pagination ul {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 42px;
    height: 42px;

    padding: 0 14px;

    text-decoration: none;

    border-radius: 8px;

    background: #f5f5f5;
    color: #000;
}

.pagination .current {
    background: #4CC9F0;
    font-weight: 700;
}
.tile {
    min-height: 460px;
}
/* ==========================================
   MOBILE OPTIMIZATION
========================================== */

@media (max-width: 768px) {

    /* HEADER */

    .site-header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .header-right {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* HERO */

    .hero-slide {
        height: auto;
        min-height: 260px;

        padding: 30px 24px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 18px;
        margin-bottom: 20px;
    }

    /* FILTERS */

    .filters {
        padding: 20px;
    }

    .filters form {
        flex-direction: column;
        align-items: stretch;
    }

    .filters input,
    .filters select,
    .filters button,
    .reset-button {
        width: 100%;
        box-sizing: border-box;
    }

    /* GRID */

    .content-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }

    .tile {
        min-height: 420px;
    }

    .tile-image {
        height: 220px;
    }

    /* ARTICLE PAGE */

    .article-page {
        padding: 30px 20px;
    }

    .article-content h1 {
        font-size: 34px;
    }

    .article-body {
        font-size: 17px;
    }

    /* AUTHOR BOX */

    .author-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    /* FOOTER */

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 20px;
    }

    /* PAGINATION */

    .pagination {
        padding: 0 20px;
    }

    .pagination a,
    .pagination span {
        min-width: 38px;
        height: 38px;
    }
}
body {
    background: #FFFFFF;
    color: #0E0F12;
}
a {
    color: #0E0F12;
}
.author-photo-column {
    width: 120px; /* same width as profile image */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.author-socials {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 120px;

    gap: 14px;
    margin-top: 12px;
}

.author-socials a {
    color: #7F7F7F;

    width: 24px;
    height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: color .2s ease;
}

.author-socials a:hover {
    color: #4CC9F0;
}

.author-socials svg {
    width: 24px;
    height: 24px;
    display: block;
}
.share-icons {
    display: flex;
    gap: 14px;
    align-items: center;
}

.share-icons a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    color: #7F7F7F;

    transition: color .2s ease;
}

.share-icons a:hover {
    color: #4CC9F0;
}

.share-icons svg {
    width: 22px;
    height: 22px;
    display: block;
}
.x-icon {
    width: 16px;
    height: 16px;
}
.share-x svg {
    width: 17px;
    height: 17px;
    position: relative;
    top: 1px;
}
.related-content .content-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(280px, 1fr));

    gap: 30px;

    max-width: 1200px;
    margin: 0 auto;

    padding: 0;
}

.article-views {

    margin: 0 0 24px 0;

    padding: 12px 16px;

    background: #F7F8F9;

    border-left: 4px solid #4CC9F0;

    font-size: 14px;

    font-weight: 600;

    color: #2C3A47;

    line-height: 1.4;

}