/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #222;
    margin: 0;
}


/* =========================================================
   HEADER
   ========================================================= */

header {
    background-color: #0a0a0a;
    color: white;
    padding: 20px 5%;
}

.logo h1 {
    margin: 0;
    font-size: 32px;
}

.logo p {
    margin: 5px 0 20px;
    font-size: 14px;
    letter-spacing: 2px;
    color: #ccc;
}


/* TAGLINE */

.brand-tagline {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px !important;
    font-weight: 500;
    letter-spacing: 1.2px;
    margin: 2px 0 20px !important;
    color: #ccc;
}


/* SITE BRAND NAME */

.site-brand-name {
    color: #198754;
    font-weight: 900;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

nav {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    padding: 5px 10px;
    border-radius: 4px;
}

nav a:hover {
    background-color: #333;
}

nav a.active {
    background-color: #444;
}


/* =========================================================
   MAIN
   ========================================================= */

main {
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
}


/* =========================================================
   BASIC FEATURED / LEGACY ARTICLE STYLES
   ========================================================= */

.featured {
    position: relative;
    width: 100%;
    height: 430px;
    overflow: hidden;
    background-color: #4b4a4a;
    color: white;
    padding: 50px;
    margin-bottom: 40px;
}

.category {
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: bold;
    color: #ccc;
}

.featured h2 {
    font-size: 42px;
    line-height: 1.1;
    max-width: 800px;
}

.featured p {
    max-width: 750px;
    font-size: 18px;
}

button {
    padding: 12px 22px;
    border: none;
    font-weight: bold;
    cursor: pointer;
}


/* =========================================================
   LATEST / ARTICLE
   ========================================================= */

.latest h2 {
    font-size: 30px;
}

article {
    background-color: white;
    padding: 25px;
    margin: 20px 0;
}

article h3 {
    font-size: 22px;
}

article p {
    color: #666;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    background-color: #111;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 50px;
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.page-header {
    background-color: white;
    padding: 40px;
    margin-bottom: 40px;
}

.page-header h2 {
    font-size: 42px;
    margin: 10px 0;
}

.page-header p {
    max-width: 750px;
    color: #666;
}


/* =========================================================
   ARTICLE CARDS
   ========================================================= */

.latest article {
    border-left: 4px solid #222;
    transition: transform 0.2s;
}

.latest article:hover {
    transform: translateX(5px);
}

.latest article h3 {
    margin-top: 10px;
}

.article-content {
    white-space: pre-line;
}

.article-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
}

.article-card {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.article-card h3 {
    margin: 10px 0;
}

.article-card h3 a {
    text-decoration: none;
}

.article-card p {
    line-height: 1.6;
}

.article-card small {
    display: block;
    margin-top: 10px;
}

.article-card .category {
    font-weight: bold;
    text-transform: uppercase;
}

.article-card > p:last-child {
    margin-top: 15px;
}

.article-card .article-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
}


/* =========================================================
   ADMIN ARTICLE LIST
   ========================================================= */

.admin-articles {
    margin-top: 25px;
}

.admin-articles h2 {
    margin-bottom: 25px;
}

.admin-article {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.admin-article-image {
    width: 140px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.admin-article-placeholder {
    width: 140px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #888;
    font-size: 13px;
    flex-shrink: 0;
}

.admin-article-info {
    flex: 1;
}

.admin-article-info .category {
    margin: 0 0 5px 0;
    font-size: 13px;
    font-weight: bold;
}

.admin-article-info h3 {
    margin: 0 0 5px 0;
    font-size: 19px;
}

.admin-article-info small {
    color: #666;
    font-size: 13px;
}


/* =========================================================
   ADMIN ACTIONS
   ========================================================= */

.admin-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.admin-actions a {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid #ccc;
}

.admin-actions a:hover {
    opacity: 0.8;
}


/* =========================================================
   ADMIN EDIT ARTICLE FORM
   ========================================================= */

.admin-page form label {
    display: block;
    margin-top: 20px;
    margin-bottom: 6px;
    font-weight: bold;
}

.admin-page form input[type="text"],
.admin-page form select,
.admin-page form textarea {
    display: block;
    width: 100%;
    max-width: 700px;
    box-sizing: border-box;
    padding: 10px;
    font-family: inherit;
    font-size: 16px;
}

.admin-page form textarea {
    resize: vertical;
}

.admin-page form input[type="file"] {
    display: block;
    margin-top: 10px;
}

.admin-page form button {
    display: block;
    margin-top: 25px;
}

.admin-page .admin-article-image {
    display: block;
    width: 220px;
    height: 140px;
    object-fit: cover;
    margin: 10px 0 15px 0;
    border-radius: 8px;
}


/* =========================================================
   ADMIN DASHBOARD
   ========================================================= */

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 20px 0 30px 0;
}

.stat-card {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.stat-card h2 {
    margin: 0;
    font-size: 28px;
}

.stat-card p {
    margin: 5px 0 0 0;
    font-size: 14px;
}


/* =========================================================
   ADMIN DASHBOARD RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-card h2 {
        font-size: 24px;
    }
}


/* =========================================================
   ARTICLE SEARCH AND FILTER
   ========================================================= */

.article-filter {
    display: flex;
    gap: 10px;
    margin: 15px 0 20px 0;
    align-items: center;
}

.article-filter input,
.article-filter select {
    height: 38px;
    padding: 0 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    margin: 0;
}

.article-filter input {
    width: 240px;
}

.article-filter button,
.article-filter a {
    height: 38px;
    padding: 0 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-filter input,
.article-filter select,
.article-filter button,
.article-filter a {
    box-sizing: border-box;
    line-height: normal;
}

.article-filter button {
    position: relative;
    top: -12px;
}

.article-filter button:hover,
.article-filter a:hover {
    opacity: 0.8;
}

.article-count {
    font-size: 14px;
    font-weight: normal;
    margin-left: 8px;
    color: #777;
}

@media (max-width: 600px) {
    .article-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .article-filter input {
        width: auto;
    }

    .article-filter button,
    .article-filter a {
        text-align: center;
    }
}


/* =========================================================
   PREVIEW IMAGE
   ========================================================= */

.preview-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}


/* =========================================================
   ARTICLE EDITOR
   ========================================================= */

.editor-toolbar {
    display: flex;
    gap: 6px;
    margin-bottom: 5px;

    position: sticky;
    top: 0;
    z-index: 1000;

    background: #fff;

    padding: 8px 0;
}

.editor-toolbar button {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
}

.editor-toolbar button:hover {
    background: #f0f0f0;
}

.content-editor {
    min-height: 300px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    font-size: 16px;
    line-height: 1.6;
    outline: none;
    overflow-y: auto;
    text-align: justify;
}

.content-editor:focus {
    border-color: #888;
}

.content-editor:empty:before {
    content: "Write your article here...";
    color: #999;
}


/* =========================================================
   ADMIN LOGIN
   ========================================================= */

.login-page {
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 35px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.login-card h1 {
    margin: 0;
    text-align: center;
}

.login-subtitle {
    text-align: center;
    margin-bottom: 30px;
    opacity: 0.7;
}

.login-card label {
    display: block;
    margin-top: 18px;
    margin-bottom: 6px;
    font-weight: 600;
}

.login-card input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.login-card input:focus {
    outline: none;
    border-color: #555;
}

.login-card button {
    width: 100%;
    margin-top: 25px;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.login-error {
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 15px;
}


/* =========================================================
   ADMIN HEADER
   ========================================================= */

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0 25px;
    padding: 12px 18px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.admin-header p {
    margin: 0;
    font-weight: 600;
}

.admin-header a {
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
}


/* =========================================================
   RELATED ARTICLES
   ========================================================= */

.related-articles {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #ddd;
}

.related-articles h2 {
    margin-bottom: 25px;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.related-article-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.related-article-card:hover {
    transform: translateY(-4px);
}

.related-article-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.related-article-content {
    padding: 10px;
}

.related-category {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.related-article-content h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.4;
}

.related-article-content h3 a {
    text-decoration: none;
}

.related-article-content h3 a:hover {
    text-decoration: underline;
}

.related-article-content small {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   ARTICLE NAVIGATION
   ========================================================= */

.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.article-navigation > div {
    min-width: 0;
}

.article-navigation a {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: white;
    color: #222;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.article-navigation a:hover {
    transform: translateY(-3px);
    color: #222;
}

.article-navigation span {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.article-navigation strong {
    font-size: 17px;
    line-height: 1.4;
    color: #222;
}

.article-nav-next {
    text-align: right;
}

@media (max-width: 768px) {
    .article-navigation {
        grid-template-columns: 1fr;
    }

    .article-nav-next {
        text-align: left;
    }
}


/* =========================================================
   ARTICLE SHARE
   ========================================================= */

.article-share {
    margin-top: 35px;
    margin-bottom: 35px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.article-share h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #222;
}

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

.share-buttons a,
.share-buttons button {
    display: inline-block;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    background: #eee;
}

.share-buttons a:hover,
.share-buttons button:hover {
    color: #222;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .share-buttons {
        flex-direction: column;
    }

    .share-buttons a,
    .share-buttons button {
        text-align: center;
    }
}


/* =========================================================
   FEATURED ARTICLE — HOMEPAGE
   ========================================================= */

.featured-wrapper {
    position: relative;
}

.featured-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.featured-content {
    position: absolute;
    z-index: 2;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 40px 50px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    color: white;
    background: transparent;
}

.featured-content .category {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.featured-content h2 {
    max-width: 850px;
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.2;
    color: white;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
}

.featured-content > p:not(.category) {
    max-width: 700px;
    margin: 0 0 15px;
    font-size: 14px;
    line-height: 1.5;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.featured-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    background: #ffffff;
    color: #111;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.featured:hover .featured-image {
    transform: scale(1.04);
}

.featured-button:hover {
    background: #eeeeee;
    transform: translateY(-2px);
}


/* =========================================================
   MOBILE — FEATURED ARTICLE
   ========================================================= */

@media (max-width: 768px) {

    .featured {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .featured-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    .featured-content {
        padding: 25px 20px;
        align-items: flex-start;
        text-align: left;
    }

    /* Hide excerpt on mobile */
    .featured-content > p:not(.category) {
        display: none;
    }

    /* Mobile title */
    .featured-content h2 {
        font-size: 13px;
        line-height: 1.1;
        margin: 0 0 2px;
    }

    /* Mobile Read Article button */
    .featured-button {
        padding: 6px 12px;
        font-size: 10px;
        border-radius: 4px;
    }
}


/* =========================================================
   FEATURED RELATED ARTICLES
   ========================================================= */

.featured-related {
    --card-height: 180px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    position: absolute;
    left: 30%;
    right: 10%;
    bottom: -110px;
    transform: translateX(30px);
    z-index: 10;
}

.featured-related-card {
    width: 100%;
    height: var(--card-height);
    padding: 0;
    background: #e0dfdf;
    border-radius: 0;
    overflow: hidden;
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.15);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.featured-related-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.18);
}

.featured-related-card img {
    width: 100%;
    height: 80px;
    max-width: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
}

.featured-related-content {
    padding: 10px 8px;
}

.featured-related-content .category {
    margin: 0 0 6px;
    font-size: 10px;
    color: #444;
    font-weight: 600;
    opacity: 0.75;
}

.featured-related-content h3 {
    margin: 0;
    font-size: 14px;
    line-height: 1.1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.featured-related-content h3 a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.featured-related-content h3 a:hover {
    color: #198754;
    text-decoration: underline;
}

@media (max-width: 768px) {

    .featured-related {
        position: static;
        grid-template-columns: 1fr;
        margin-top: 20px;
        transform: none;
    }

    .featured-related-card {
        height: auto;
    }
}


/* =========================================================
   LATEST ARTICLES
   ========================================================= */

.latest {
    margin-top: 1px;
}

.latest > h2 {
    margin-bottom: 25px;
}

.latest-articles-box {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    background: #fafafa;
    border: 1px solid #eeeeee;
}

.latest-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}


/* =========================================================
   HOMEPAGE — CATEGORY SECTIONS
   ========================================================= */

.homepage-category-section {
    margin-top: 40px;
}

.homepage-category-section > h2 {
    margin: 0 0 15px;
    font-size: 24px;
    line-height: 1.2;
    text-align: left;
}

.homepage-category-box {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    background: #fafafa;
    border: 1px solid #eeeeee;
}

.homepage-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    width: 100%;
}

.homepage-category-grid .latest-article-card {
    min-width: 0;
}


/* =========================================================
   HOMEPAGE — ELECTRIC VEHICLES + TECHNOLOGY
   ========================================================= */

.homepage-dual-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    margin-top: 40px;
    width: 100%;
}

.homepage-dual-column {
    min-width: 0;
}

.homepage-dual-column > h2 {
    margin: 0 0 15px;
    font-size: 24px;
    line-height: 1.2;
    text-align: left;
}

.homepage-dual-box {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    background: #fafafa;
    border: 1px solid #eeeeee;
}


/* BIG ARTICLE */

.homepage-feature-card {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #ffffff;
    overflow: hidden;
    box-sizing: border-box;
}

.homepage-feature-card > a {
    display: block;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.homepage-feature-card > a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.homepage-feature-card:hover > a img {
    transform: scale(1.04);
}


/* BIG ARTICLE CONTENT */

.homepage-feature-card-content {
    padding: 14px 18px 16px;
    box-sizing: border-box;
    text-align: left;
}

.homepage-feature-card-content .category-badge {
    display: block;
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #777;
}

.homepage-feature-card-content h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.3;
}

.homepage-feature-card-content h3 a {
    color: #111;
    text-decoration: none;
}

.homepage-feature-card-content h3 a:hover {
    color: #198754;
    text-decoration: underline;
}

.homepage-feature-card-content small {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #777;
}


/* TWO SMALL ARTICLES */

.homepage-dual-small-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.homepage-small-card {
    min-width: 0;
    background: #ffffff;
    overflow: hidden;
    box-sizing: border-box;
}

.homepage-small-card > a {
    display: block;
    width: 100%;
    height: 130px;
    overflow: hidden;
}

.homepage-small-card > a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.homepage-small-card:hover > a img {
    transform: scale(1.04);
}

.homepage-small-card-content {
    padding: 10px 12px 12px;
    text-align: left;
}

.homepage-small-card-content .category-badge {
    display: block;
    margin-bottom: 5px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: #777;
}

.homepage-small-card-content h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.3;
}

.homepage-small-card-content h3 a {
    color: #111;
    text-decoration: none;
}

.homepage-small-card-content h3 a:hover {
    color: #198754;
    text-decoration: underline;
}

.homepage-small-card-content small {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    color: #777;
}


/* =========================================================
   HOMEPAGE — CARS SECTION
   ========================================================= */

.homepage-cars-section {
    margin-top: 40px;
    width: 100%;
}

.homepage-cars-section > h2 {
    margin: 0 0 15px;
    font-size: 24px;
    line-height: 1.2;
    text-align: left;
}

.homepage-cars-box {
    display: grid;
    grid-template-columns:
        minmax(0, 2fr)
        minmax(0, 1fr);
    gap: 20px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    background: #fafafa;
    border: 1px solid #eeeeee;
}


/* MAIN CAR ARTICLE */

.homepage-cars-main {
    min-width: 0;
    background: #ffffff;
    overflow: hidden;
}

.homepage-cars-main > a {
    display: block;
    width: 100%;
    height: 330px;
    overflow: hidden;
}

.homepage-cars-main > a img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.homepage-cars-main:hover > a img {
    transform: scale(1.04);
}


/* MAIN CAR CONTENT */

.homepage-cars-main-content {
    padding: 14px 18px 16px;
    box-sizing: border-box;
    text-align: left;
}

.homepage-cars-main-content .category-badge {
    display: block;
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #777;
}

.homepage-cars-main-content h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
}

.homepage-cars-main-content h3 a {
    color: #111;
    text-decoration: none;
}

.homepage-cars-main-content h3 a:hover {
    color: #198754;
    text-decoration: underline;
}

.homepage-cars-main-content small {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #777;
}


/* SIDE CAR ARTICLES */

.homepage-cars-side {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 20px;
    min-width: 0;
}

.homepage-cars-small {
    min-width: 0;
    background: #ffffff;
    overflow: hidden;
}

.homepage-cars-small > a {
    display: block;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.homepage-cars-small > a img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.homepage-cars-small:hover > a img {
    transform: scale(1.04);
}

.homepage-cars-small-content {
    padding: 10px 12px 12px;
    text-align: left;
}

/* =========================================================
   HOMEPAGE — CARS SECTION
   ========================================================= */

/* =========================
   SMALL ARTICLE CONTENT
   ========================= */

.homepage-cars-small-content .category-badge {
    display: block;
    margin-bottom: 5px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: #777;
}

.homepage-cars-small-content h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.3;
}

.homepage-cars-small-content h3 a {
    color: #111;
    text-decoration: none;
}

.homepage-cars-small-content h3 a:hover {
    color: #198754;
    text-decoration: underline;
}

.homepage-cars-small-content small {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    color: #777;
}


/* =========================
   RESPONSIVE CARS
   ========================= */

@media (max-width: 800px) {

    .homepage-cars-box {
        grid-template-columns: 1fr;
    }

    .homepage-cars-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
    }

}

@media (max-width: 500px) {

    .homepage-cars-side {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   HOMEPAGE — BATTERY SECTION
   ========================================================= */

.homepage-battery-section {
    margin-top: 40px;
    width: 100%;
}

.homepage-battery-section > h2 {
    margin: 0 0 15px;
    font-size: 24px;
    line-height: 1.2;
    text-align: left;
}

.homepage-battery-box {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    background: #fafafa;
    border: 1px solid #eeeeee;
}


/* =========================
   BATTERY ARTICLE
   ========================= */

.homepage-battery-article {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 25px;
    width: 100%;
    min-width: 0;
    padding: 0 0 20px;
    background: #ffffff;
    box-sizing: border-box;
}

.homepage-battery-article + .homepage-battery-article {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eeeeee;
}


/* =========================
   BATTERY IMAGE
   ========================= */

.homepage-battery-image {
    display: block;
    width: 100%;
    height: 190px;
    overflow: hidden;
}

.homepage-battery-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.homepage-battery-image:hover img {
    transform: scale(1.04);
}


/* =========================
   BATTERY CONTENT
   ========================= */

.homepage-battery-content {
    padding: 10px 18px 10px 0;
    box-sizing: border-box;
    text-align: left;
}

.homepage-battery-content .category-badge {
    display: block;
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #777;
}

.homepage-battery-content h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.3;
}

.homepage-battery-content h3 a {
    color: #111;
    text-decoration: none;
}

.homepage-battery-content h3 a:hover {
    color: #198754;
    text-decoration: underline;
}

.homepage-battery-content p {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.homepage-battery-content small {
    display: block;
    margin-top: 12px;
    font-size: 12px;
    color: #777;
}


/* =========================
   RESPONSIVE BATTERY
   ========================= */

@media (max-width: 700px) {

    .homepage-battery-article {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .homepage-battery-image {
        height: 220px;
    }

    .homepage-battery-content {
        padding: 0 15px 15px;
    }

}


/* =========================================================
   HOMEPAGE — OPINION SECTION
   ========================================================= */

.homepage-opinion-section {
    margin-top: 40px;
    width: 100%;
}

.homepage-opinion-section > h2 {
    margin: 0 0 15px;
    font-size: 24px;
    line-height: 1.2;
    text-align: left;
}

.homepage-opinion-box {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 20px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    background: #fafafa;
    border: 1px solid #eeeeee;
}


/* =========================
   MAIN OPINION
   ========================= */

.homepage-opinion-main {
    min-width: 0;
    background: #ffffff;
    overflow: hidden;
}

.homepage-opinion-main-image {
    display: block;
    width: 100%;
    height: 330px;
    overflow: hidden;
}

.homepage-opinion-main-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.homepage-opinion-main:hover .homepage-opinion-main-image img {
    transform: scale(1.04);
}


/* =========================
   MAIN CONTENT
   ========================= */

.homepage-opinion-main-content {
    padding: 15px 20px 18px;
    box-sizing: border-box;
    text-align: left;
}

.homepage-opinion-main-content .category-badge {
    display: block;
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #777;
}

.homepage-opinion-main-content h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.3;
}

.homepage-opinion-main-content h3 a {
    color: #111;
    text-decoration: none;
}

.homepage-opinion-main-content h3 a:hover {
    color: #198754;
    text-decoration: underline;
}

.homepage-opinion-main-content p {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.homepage-opinion-main-content small {
    display: block;
    margin-top: 12px;
    font-size: 12px;
    color: #777;
}


/* =========================
   OPINION SIDE
   ========================= */

.homepage-opinion-side {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 15px;
    min-width: 0;
}


/* =========================
   SMALL OPINION ARTICLE
   ========================= */

.homepage-opinion-small {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    padding-bottom: 15px;
    background: #ffffff;
    overflow: hidden;
}

.homepage-opinion-small + .homepage-opinion-small {
    padding-top: 15px;
    border-top: 1px solid #eeeeee;
}


/* =========================
   SMALL IMAGE
   ========================= */

.homepage-opinion-small-image {
    display: block;
    width: 130px;
    height: 100px;
    overflow: hidden;
}

.homepage-opinion-small-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.homepage-opinion-small:hover .homepage-opinion-small-image img {
    transform: scale(1.04);
}


/* =========================
   SMALL CONTENT
   ========================= */

.homepage-opinion-small-content {
    padding: 4px 10px 0 0;
    box-sizing: border-box;
    text-align: left;
}

.homepage-opinion-small-content .category-badge {
    display: block;
    margin-bottom: 5px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: #777;
}

.homepage-opinion-small-content h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.3;
}

.homepage-opinion-small-content h3 a {
    color: #111;
    text-decoration: none;
}

.homepage-opinion-small-content h3 a:hover {
    color: #198754;
    text-decoration: underline;
}

.homepage-opinion-small-content small {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    color: #777;
}


/* =========================
   RESPONSIVE OPINION
   ========================= */

@media (max-width: 800px) {

    .homepage-opinion-box {
        grid-template-columns: 1fr;
    }

    .homepage-opinion-side {
        grid-template-rows: none;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 600px) {

    .homepage-opinion-side {
        grid-template-columns: 1fr;
    }

    .homepage-opinion-small {
        grid-template-columns: 130px minmax(0, 1fr);
    }

}


/* =========================================================
   FULL ARTICLE PAGE
   ========================================================= */

.full-article {
    width: 100%;
}


/* =========================
   ARTICLE HEADER
   ========================= */

.article-header {
    max-width: 900px;
    margin: 0 auto 25px;
    padding: 20px 0;
    background: transparent;
}

.article-header .article-category {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0.5;
}

.article-header h1 {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    color: #111;
}

.article-header .article-date {
    margin: 0;
    font-size: 13px;
    color: #777;
}


/* =========================
   ARTICLE FEATURED IMAGE
   ========================= */

.article-featured-image {
    max-width: 900px;
    margin: 0 auto 35px;
}

.article-featured-image img {
    width: 100%;
    max-width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}


/* =========================
   ARTICLE CONTENT
   ========================= */

.article-content {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    box-sizing: border-box;
    text-align: justify !important;
}

.article-content p,
.article-content p.MsoNormal {
    margin-top: 0 !important;
    margin-bottom: 3px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1.7;
    text-align: justify !important;
}


/* =========================
   ARTICLE LISTS
   ========================= */

.article-content ul,
.article-content ol {
    margin: 0 0 25px 0;
    padding-left: 35px;
}

.article-content ul li,
.article-content ol li {
    margin: 0;
    padding: 0;
    line-height: 1.7;
    text-align: justify;
}


/* =========================
   ARTICLE INLINE IMAGES
   ========================= */

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
}


/* =========================
   ARTICLE IMAGE — LEFT
   ========================= */

.article-image-left {
    width: 100%;
    margin: 30px 0;
}

.article-content img.article-image-left {
    float: left;
    width: 42% !important;
    max-width: 42% !important;
    height: 280px !important;
    object-fit: cover;
    margin: 5px 30px 20px 0 !important;
    display: block;
}


/* =========================
   ARTICLE IMAGE — RIGHT
   ========================= */

.article-image-right {
    width: 100%;
    margin: 30px 0;
}

.article-content img.article-image-right {
    float: right;
    width: 42% !important;
    max-width: 42% !important;
    height: 280px !important;
    object-fit: cover;
    margin: 5px 0 20px 30px !important;
    display: block;
}


/* =========================
   FULL WIDTH ARTICLE IMAGE
   ========================= */

.article-image-full {
    width: 100%;
    margin: 0;
    clear: both;
}

.article-image-full img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    display: block;
    margin: 0 !important;
}


/* =========================
   TIGHT FULL-WIDTH IMAGE SPACING
   ========================= */

.article-content p:has(+ .article-image-full) {
    margin-bottom: 1px;
}

.article-content .article-image-full + p {
    margin-top: 1px;
}


/* =========================================================
   HOMEPAGE — LATEST ARTICLE CARD
   FINAL CLEAN VERSION
   ========================================================= */

.latest-article-card {
    display: flex;
    flex-direction: column;

    height: 500px;

    margin: 0 !important;
    padding: 0 !important;

    background: #ffffff;

    border: none !important;
    border-left: none !important;
    border-radius: 0 !important;

    overflow: hidden;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.10);

    position: relative;

    box-sizing: border-box;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


/* =========================
   CARD HOVER
   ========================= */

.latest-article-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 12px 26px rgba(0, 0, 0, 0.16);
}


/* =========================
   IMAGE WRAPPER
   ========================= */

.latest-article-image-wrapper {
    width: 100%;
    height: 310px;
    min-height: 310px;

    margin: 0;
    padding: 0;

    overflow: hidden;
    flex-shrink: 0;

    background: #ddd;
}


/* =========================
   IMAGE
   ========================= */

.latest-article-image {
    width: 100%;
    height: 100%;
    max-width: none;

    margin: 0;
    padding: 0;

    border: none;
    border-radius: 0;

    display: block;

    object-fit: cover;

    transition: transform 0.4s ease;
}


/* =========================
   IMAGE ZOOM
   ========================= */

.latest-article-card:hover .latest-article-image {
    transform: scale(1.04);
}


/* =========================
   IMAGE PLACEHOLDER
   ========================= */

.latest-article-image-wrapper .image-placeholder {
    width: 100%;
    height: 100%;
    background: #ddd;
}


/* =========================
   CONTENT
   ========================= */

.latest-article-content {
    flex: 1;
    min-height: 0;

    height: auto;

    margin: 0;
    padding: 14px 20px 12px;

    display: flex;
    flex-direction: column;

    box-sizing: border-box;

    background: #ffffff;
}


/* =========================
   CATEGORY
   ========================= */

.latest-article-content .category-badge {
    display: block;

    margin: 0 0 7px;
    padding: 0;

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;

    text-transform: uppercase;

    color: #777;
}


/* =========================
   TITLE
   ========================= */

.latest-article-title {
    display: block;

    margin: 0;
    padding: 0;

    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;

    color: #111;

    overflow: hidden;
}

.latest-article-title a {
    display: block;

    color: #111;
    text-decoration: none;

    transition: color 0.2s ease;
}

.latest-article-title a:hover {
    color: #198754;
    text-decoration: underline;
}


/* =========================
   PUBLISHED DATE
   ========================= */

.latest-article-content .published-date {
    display: block;

    margin-top: auto;
    padding: 10px 0 0;

    font-size: 12px;
    color: #777;
    opacity: 0.85;
}


/* =========================================================
   LATEST ARTICLE ACTIONS
   LIKE • FAVORITE • COMMENT
   ========================================================= */

.latest-article-actions {
    display: flex;
    align-items: center;

    gap: 7px;

    margin: 0;
    padding: 0;

    border: none;
}


/* =========================
   ACTION BUTTON
   ========================= */

.latest-article-actions .article-action {
    position: relative;

    width: 30px;
    height: 30px;

    margin: 0;
    padding: 0;

    border: none;

    background: transparent;

    color: #777;

    font-size: 20px;
    line-height: 1;

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

    cursor: pointer;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


/* =========================
   ACTION HOVER
   ========================= */

.latest-article-actions .article-action:hover {
    transform: scale(1.12);
}


/* =========================
   LIKE
   ========================= */

.latest-article-actions .like-action:hover {
    color: #d6336c;
}


/* =========================
   FAVORITE
   ========================= */

.latest-article-actions .favorite-action:hover {
    color: #e0a800;
}


/* =========================
   COMMENT
   ========================= */

.latest-article-actions .comment-action:hover {
    color: #198754;
}


/* =========================================================
   TOOLTIP
   ========================================================= */

.latest-article-actions .article-action::after {
    content: attr(data-tooltip);

    position: absolute;

    bottom: calc(100% + 9px);
    left: 50%;

    transform:
        translateX(-50%)
        translateY(4px);

    background: #222;
    color: #fff;

    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;

    white-space: nowrap;

    padding: 7px 10px;

    border-radius: 3px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.18s ease,
        transform 0.18s ease;

    z-index: 20;
}


/* =========================
   TOOLTIP ARROW
   ========================= */

.latest-article-actions .article-action::before {
    content: "";

    position: absolute;

    bottom: calc(100% + 4px);
    left: 50%;

    transform:
        translateX(-50%)
        translateY(4px);

    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #222;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.18s ease,
        transform 0.18s ease;

    z-index: 20;
}


/* =========================================================
   MOBILE — LATEST ARTICLES
   ========================================================= */

@media (max-width: 768px) {

    .latest-articles-grid {
        grid-template-columns: 1fr;
    }

    .latest-article-card {
        height: auto;
        min-height: 0;
        max-height: none;
    }

    .latest-article-image-wrapper {
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: 16 / 9;
    }

    .latest-article-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center top;
    }

    .latest-article-content {
        height: auto;
        min-height: 0;
        padding: 14px 20px 12px;
    }

    /* ARTICLE IMAGES ON MOBILE */

    .article-image-left img,
    .article-image-right img {
        float: none;

        width: 100% !important;
        height: 150px !important;
        min-height: 150px !important;
        max-height: 150px !important;

        object-fit: contain;
    }

}


/* =========================================================
   MOBILE — LATEST REVIEWS
   ========================================================= */

@media (max-width: 600px) {

    .homepage-category-section {
        width: 100%;
        box-sizing: border-box;
    }

    .homepage-category-box {
        width: 100% !important;
        box-sizing: border-box;
        overflow: hidden;
    }

    .homepage-category-grid {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
    }


    /* =========================
       REVIEW CARD
       ========================= */

    .homepage-category-grid .latest-article-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        margin: 5px 5px 25px !important;
        padding: 0 !important;

        box-sizing: border-box;
        overflow: hidden;
    }


    /* =========================
       REVIEW IMAGE
       ========================= */

    .homepage-category-grid .latest-article-image-wrapper {
        width: 100% !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        aspect-ratio: 16 / 9 !important;

        box-sizing: border-box;
        overflow: hidden;
    }

    .homepage-category-grid .latest-article-image {
        width: 100% !important;
        height: 100% !important;

        object-fit: contain !important;
        object-position: center top !important;

        display: block !important;
    }


    /* =========================
       REVIEW CONTENT
       ========================= */

    .homepage-category-grid .latest-article-content {
        width: 100% !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        box-sizing: border-box;

        font-size: 14px !important;

        padding: 8px 12px 8px !important;
    }

}


/* =========================================================
   CATEGORY PAGE
   ========================================================= */

.category-articles-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* =========================
   ARTICLE ROW
   ========================= */

.category-article-row {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 20px;
    width: 100%;
}


/* =========================
   ROTATING BIG CARD
   ========================= */

.category-article-row.row-0
.category-article-card:nth-child(1) {
    grid-column: span 2;
}

.category-article-row.row-1
.category-article-card:nth-child(2) {
    grid-column: span 2;
}

.category-article-row.row-2
.category-article-card:nth-child(3) {
    grid-column: span 2;
}

.category-article-row.row-3
.category-article-card:nth-child(4) {
    grid-column: span 2;
}


/* =========================
   CATEGORY ARTICLE CARD
   ========================= */

.category-article-card {
    display: flex;
    flex-direction: column;

    min-width: 0;

    background: #fdfcfc;

    overflow: hidden;

    transition: transform 0.25s ease;
}

.category-article-card:hover {
    transform: translateY(-4px);
}


/* =========================
   CATEGORY ARTICLE IMAGE
   ========================= */

.category-article-image {
    width: 100%;
    height: 190px;

    object-fit: cover;

    display: block;

    transition: transform 0.35s ease;
}

.category-article-card:hover .category-article-image {
    transform: scale(1.03);
}


/* =========================
   CATEGORY ARTICLE CONTENT
   ========================= */

.category-article-content {
    padding: 14px 16px 16px;

    display: flex;
    flex-direction: column;

    min-height: 125px;

    box-sizing: border-box;
}

.category-article-content .category {
    margin: 0 0 7px;

    font-size: 12px;
    font-weight: 600;

    opacity: 0.5;
}

.category-article-content h3 {
    margin: 0;

    font-size: 17px;
    line-height: 1.35;
}

.category-article-content h3 a {
    color: #111;
    text-decoration: none;

    transition: color 0.2s ease;
}

.category-article-content h3 a:hover {
    color: #198754;
    text-decoration: underline;
}

.category-article-content small {
    margin-top: auto;
    padding-top: 12px;

    color: #777;
    font-size: 12px;
}


/* =========================
   NO IMAGE
   ========================= */

.category-article-placeholder {
    width: 100%;
    height: 190px;

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

    background: #ddd;
    color: #777;
}


/* =========================
   CATEGORY PAGE — TABLET
   ========================= */

@media (max-width: 1200px) {

    .category-article-row {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .category-article-row .category-article-card {
        grid-column: span 1 !important;
    }

}


/* =========================
   CATEGORY PAGE — SMALL TABLET
   ========================= */

@media (max-width: 768px) {

    .category-article-row {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .category-article-row .category-article-card {
        grid-column: span 1 !important;
    }

}


/* =========================
   CATEGORY PAGE — MOBILE
   ========================= */

@media (max-width: 500px) {

    .category-article-row {
        grid-template-columns: 1fr;
    }

    .category-article-row .category-article-card {
        grid-column: span 1 !important;
    }

}


/* =========================================================
   CATEGORY PAGE HEADER
   ========================================================= */

.category-page-header {
    margin-bottom: 20px;
}

.category-page-header .category {
    font-size: 11px;
    margin-bottom: 5px;
}

.category-page-header h2 {
    font-size: 28px;
    margin: 0 0 8px;
}

.category-page-header p {
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}


/* =========================================================
   ARTICLE HERO
   ========================================================= */

.article-hero {
    position: relative;

    width: 100%;
    height: 360px;

    margin: 0 0 35px;

    overflow: hidden;

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

.article-hero-background {
    position: absolute;
    inset: 0;

    background-size: cover;
    background-position: center;
}

.article-hero-overlay {
    position: relative;

    z-index: 2;

    width: 100%;
    height: 100%;

    padding: 40px 30px;

    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;

    text-align: left;

    color: white;
}

.article-hero .article-category {
    margin: 0 0 10px;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 1px;
    text-transform: uppercase;

    color: white;
    opacity: 0.85;
}

.article-hero h1 {
    max-width: 900px;

    margin: 0 0 12px;

    font-size: 30px;
    line-height: 1.2;

    color: white;
}

.article-hero .article-date {
    margin: 0;

    font-size: 12px;
    color: white;
    opacity: 0.8;
}

/* =========================================================
   LATEST ARTICLES
   ========================================================= */

/* MAIN LAYOUT */
.latest-articles-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}


/* ARTICLE ROW */
.latest-article-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}


/* FIRST ROW - FEATURED CARD */
.latest-row-1 .latest-article-card:nth-child(1) {
    grid-column: span 2;
}


/* ARTICLE CARD */
.latest-articles-grid .latest-article-card {
    height: 485px;
    display: flex;
    flex-direction: column;

    background: #f8f8f8 !important;
    box-shadow: 0 5px 14px rgba(117, 116, 116, 0.07);

    overflow: hidden;
}


/* ARTICLE IMAGE WRAPPER */
.latest-articles-grid .latest-article-image-wrapper {
    width: 100%;
    height: 285px;
    flex-shrink: 0;
    overflow: hidden;
}


/* ARTICLE IMAGE */
.latest-articles-grid .latest-article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ARTICLE CONTENT */
.latest-articles-grid .latest-article-content {
    height: 200px;
    flex: 1;

    display: flex;
    flex-direction: column;

    background: #faf8f8 !important;

    padding: 12px 18px 10px !important;
}


/* CATEGORY */
.latest-articles-grid .category-badge {
    font-size: 10px;
    opacity: 0.55;
    margin-bottom: 5px;
}


/* TITLE */
.latest-articles-grid .latest-article-title {
    font-size: 14px;
    line-height: 1.3;
}


/* PUBLISHED DATE */
.latest-articles-grid .published-date {
    font-size: 11px;
    color: #dad6d6;
}


/* ACTIONS */
.latest-article-actions .like-action,
.latest-article-actions .favorite-action,
.latest-article-actions .comment-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}


/* ACTION ICONS */
.latest-article-actions .article-action {
    width: 28px;
    height: 28px;
    font-size: 18px;
}


/* ACTION COUNTS */
.latest-article-actions .like-count,
.latest-article-actions .favorite-count,
.latest-article-actions .comment-count {
    font-size: 11px;
    color: #777;
    line-height: 1;
}


/* LIKED STATE */
.latest-article-actions .like-action.liked {
    color: #777;
}

.latest-article-actions .like-action.liked .like-count {
    color: #777;
}


/* FOOTER / ACTION AREA */
.latest-articles-grid .latest-article-footer {
    margin-top: auto;
}


/* =========================================================
   TOOLTIP
   ========================================================= */

.latest-article-actions .article-action::after,
.latest-article-actions .article-action::before {
    opacity: 0;
    visibility: hidden;
}


/* SHOW TOOLTIP */
.latest-article-actions .article-action:hover::after,
.latest-article-actions .article-action:hover::before {
    opacity: 1;
    visibility: visible;

    transform:
        translateX(-50%)
        translateY(0);
}


/* FIRST TOOLTIP POSITION */
.latest-article-actions .like-action::after {
    left: 0;
    transform:
        translateX(0)
        translateY(4px);
}

.latest-article-actions .like-action::before {
    left: 10px;
    transform:
        translateX(0)
        translateY(4px);
}


/* FIRST TOOLTIP HOVER POSITION */
.latest-article-actions .like-action:hover::after {
    transform:
        translateX(0)
        translateY(0);
}

.latest-article-actions .like-action:hover::before {
    transform:
        translateX(0)
        translateY(0);
}


/* =========================================================
   LATEST ARTICLES - TABLET
   ========================================================= */

@media (min-width: 601px) and (max-width: 800px) {

    .latest-articles-grid {
        display: block;
    }

    .latest-article-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 20px;
    }

    .latest-articles-grid .latest-article-card {
        height: auto;
    }

    .latest-articles-grid .latest-article-image-wrapper {
        height: 260px;
    }

    .latest-articles-grid .latest-article-content {
        height: auto;
    }
}


/* =========================================================
   LATEST ARTICLES - MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .latest-articles-grid {
        display: block;
    }

    .latest-article-row {
        display: block;
    }

    .latest-articles-grid .latest-article-card {
        width: 100%;
        height: auto;
        margin-bottom: 20px;
    }

    .latest-articles-grid .latest-article-image-wrapper {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .latest-articles-grid .latest-article-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center top !important;
    }

    .latest-articles-grid .latest-article-content {
        height: auto;
        padding: 14px 18px 12px !important;
    }

    .latest-row-2 {
        display: block;
    }
}


/* HIDE TOOLTIPS ON MOBILE */
@media (max-width: 768px) {

    .latest-article-actions .article-action::after,
    .latest-article-actions .article-action::before {
        display: none;
    }
}


/* =========================================================
   ARTICLE HERO - MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .article-hero {
        width: 100%;
        height: 220px;

        margin-top: 0;
        margin-bottom: 25px;

        overflow: hidden;

        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .article-hero > img {
        position: absolute;
        inset: 0;

        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center;
    }

    .article-hero-overlay {
        position: absolute;
        inset: 0;

        z-index: 2;

        padding: 20px;

        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;

        text-align: left;
    }

    .article-hero-overlay .category {
        font-size: 12px;
    }

    .article-hero-overlay h1 {
        font-size: 20px;
    }

    .article-hero-overlay .publish-date {
        font-size: 12px;
    }
}


/* =========================================================
   FULL ARTICLE HERO - EDGE TO EDGE
   ========================================================= */

@media (max-width: 768px) {

    .full-article .article-hero {
        width: calc(100% + 50px);
        height: 220px;

        margin-top: -50px;
        margin-left: -25px;
        margin-right: -25px;
        margin-bottom: -45px;

        overflow: hidden;

        position: relative;
        display: block;
    }
}


/* =========================================================
   ARTICLE GALLERY
   ========================================================= */

.article-gallery {
    width: 100%;
    margin: 40px 0;

    line-height: 0 !important;
}


/* MAIN IMAGE */
.article-gallery-main {
    width: 100%;
    overflow: hidden;

    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}


.article-gallery-main-image {
    display: block !important;

    width: 100%;
    height: auto;

    max-height: 650px;

    object-fit: cover;

    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}


/* MAIN IMAGE FOCUS */
.article-gallery-main-image:focus {
    outline: none;
}


/* THUMBNAIL STRIP */
.article-gallery-strip {
    display: flex;

    gap: 5px !important;

    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 5px 0 5px;

    margin-top: 5px !important;

    scrollbar-width: thin;
}


/* THUMBNAILS */
.article-gallery-thumbnail {
    flex: 0 0 130px;

    width: 130px;
    height: 92px;

    margin: 0 !important;

    object-fit: cover;

    cursor: pointer;

    opacity: 0.65;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}


/* THUMBNAIL HOVER */
.article-gallery-thumbnail:hover {
    opacity: 1;
    transform: translateY(-2px);
}


/* ACTIVE THUMBNAIL */
.article-gallery-thumbnail.active {
    opacity: 1;
}


/* REMOVE FOCUS OUTLINE */
.article-gallery-thumbnail:focus {
    outline: none;
}


/* =========================================================
   LIGHTBOX
   ========================================================= */

.article-lightbox {
    position: fixed;
    inset: 0;

    z-index: 9999;

    background: rgba(0, 0, 0, 0.92);

    display: none;

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

    opacity: 0;

    transition: opacity 0.25s ease;
}


.article-lightbox.active {
    display: flex;
    opacity: 1;
}


/* LIGHTBOX IMAGE */
.article-lightbox-image {
    display: block;

    max-width: 90vw;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;

    transform: scale(0.98);

    transition: transform 0.25s ease;
}


.article-lightbox.active .article-lightbox-image {
    transform: scale(1);
}


/* CLOSE BUTTON */
.article-lightbox-close {
    position: absolute;

    top: 20px;
    right: 25px;

    font-size: 42px;

    color: #fff;

    cursor: pointer;

    z-index: 2;
}


/* PREVIOUS / NEXT */
.article-lightbox-prev,
.article-lightbox-next {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    font-size: 50px;

    color: #fff;

    background: rgba(0, 0, 0, 0.35);

    padding: 10px 18px;

    cursor: pointer;
}


.article-lightbox-prev {
    left: 20px;
}

.article-lightbox-next {
    right: 20px;
}


.article-lightbox-prev:hover,
.article-lightbox-next:hover {
    opacity: 0.7;
}


/* =========================================================
   ARTICLE COMMENTS
   ========================================================= */

.article-comments {
    max-width: 900px;

    margin: 50px auto;

    padding: 0 20px;
}


.comment-form {
    margin-top: 20px;
}


.comment-form textarea {
    width: 100%;

    min-height: 140px;

    padding: 15px;

    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;

    color: #333;

    background: #fff;

    border: 1px solid #ccc;
    border-radius: 0;

    resize: vertical;

    outline: none;
}


.comment-form textarea:focus {
    border-color: #198754;
}


.comment-form button {
    margin-top: 12px;

    padding: 10px 22px;

    font-size: 14px;
    font-weight: 600;

    color: #fff;

    background: #198754;

    border: none;
    border-radius: 0;

    cursor: pointer;

    transition: background 0.2s ease;
}


.comment-form button:hover {
    background: #146c43;
}


/* =========================================================
   PRIVACY CLOSING
   ========================================================= */

/*
   Keep ONLY this final version.
   The earlier .privacy-closing definition should be removed.
*/

.privacy-closing {
    padding: 90px 30px;

    background: #111;

    color: #fff;

    text-align: center;
}


.privacy-closing h2 {
    margin: 0 0 18px;

    color: #198754;

    font-size: 36px;
    line-height: 1.2;
}


.privacy-closing p {
    max-width: 500px;

    margin: 0 auto;

    color: #ddd;

    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   PRIVACY POLICY - MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .privacy-hero {
        min-height: 320px;
    }

    .privacy-hero h2 {
        font-size: 32px;
    }

    .privacy-hero .tagline {
        font-size: 16px;
    }

    .privacy-introduction,
    .privacy-section {
        padding: 55px 22px;
    }

    .privacy-section h3 {
        font-size: 25px;
    }

    .privacy-section p {
        font-size: 14px;
        line-height: 1.7;
    }

    .privacy-section li {
        font-size: 14px;
    }

    .privacy-highlight {
        padding: 22px;
    }

    .privacy-closing {
        padding: 45px 22px;
    }

    .privacy-closing h2 {
        font-size: 22px;
    }
}

/* =========================================================
   MOBILE CATEGORY MENU
   ========================================================= */

.mobile-category-menu {
    display: none;
}


@media (max-width: 768px) {

    /* HEADER */
    header {
        position: relative;
        z-index: 99999;
        overflow: visible;

        padding: 15px 5% !important;

        text-align: left !important;
    }


    /* HIDE DESKTOP NAV */
    header nav {
        display: none !important;
    }


    /* LOGO / BRAND */
    .logo h1 {
        font-size: 20px;
    }

    .site-brand-name {
        font-size: 20px;
    }

    .site-brand-separator {
        font-size: 18px;
    }

    .site-publication-name {
        font-size: 16px;
    }


    /* TAGLINE */
    .site-tagline {
        font-size: 7px;

        letter-spacing: 1px;

        margin: 2px 0 15px;

        white-space: normal;
    }
    /* ===============================

       MOBILE CONTENT MENU

       =============================== */

    .mobile-category-menu {

        position: absolute;

        top: 18px;

        right: 0;

        display: block !important;

        margin: 0;

        z-index: 100000 !important;

    }

    /* Content + hamburger */

    .mobile-category-menu summary {

        cursor: pointer;

        list-style: none;

        display: flex;

        flex-direction: column;

        align-items: center;

        gap: 3px;

        width: 45px;

        font-size: 10px;

        font-weight: 500;

        line-height: 1;

    }

    .mobile-category-menu summary::after {

        content: "☰";

        font-size: 20px;

        line-height: 1;

    }

    .mobile-category-menu summary::-webkit-details-marker {

        display: none;

    }

    /* ===============================

       DROPDOWN CONTAINER style

       =============================== */

    .mobile-category-links {

        position: absolute;

        top: 42px;

        right: 0;

        display: flex !important;

        flex-direction: column;

        width: 200px;

        margin: 0;

        padding: 12px 15px;

        background-color: #1d1d1d;

        border: 1px solid #444;

        border-radius: 6px;

        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);

        text-align: right;
        z-index: 100001 !important;

    }

    /* ===============================

       DROPDOWN LINKS

       =============================== */

    .mobile-category-links a {

        display: block !important;

        width: 100%;

        box-sizing: border-box;

        padding: 8px 5px;

        color: white;

        text-decoration: none;

        font-size: 14px;

        font-weight: 500;

        text-align: right;

        border-radius: 3px;

    }

    .mobile-category-links a:hover {

        background-color: #198754;

    }

    /* ===============================
   FEATURED / ARTICLE HERO LAYERS
   =============================== */

    .featured {
        position: relative;
        z-index: 1 !important;
    }

    .featured-image {
        z-index: 0 !important;
    }

    .featured-content {
        z-index: 2 !important;
    }


    /* ARTICLE PAGE HERO */

    .article-hero {
        position: relative;
        z-index: 1 !important;
    }

    .article-hero-background {
        z-index: 0 !important;
    }

    .article-hero-overlay {
        z-index: 2 !important;
    }
}
/* =========================

   COOKIE CONSENT BANNER

   ========================= */

.cookie-banner {

    position: fixed;

    left: 0;

    bottom: 0;

    width: 100%;

    background: #111;

    color: white;

    padding: 18px 5%;

    z-index: 99999;

    border-top: 2px solid #198754;

    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.25);

}

.cookie-content {

    max-width: 1200px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

}

.cookie-text {

    flex: 1;

}

.cookie-text h3 {

    margin: 0 0 6px;

    color: #198754;

    font-size: 18px;

}

.cookie-text p {

    margin: 0;

    color: #ddd;

    font-size: 14px;

    line-height: 1.5;

}

.cookie-actions {

    display: flex;

    align-items: center;

    gap: 10px;

    flex-shrink: 0;

}

.cookie-btn {

    border: none;

    padding: 10px 18px;

    border-radius: 4px;

    font-size: 14px;

    font-weight: bold;

    cursor: pointer;

}

.cookie-accept {

    background: #198754;

    color: white;

}

.cookie-accept:hover {

    background: #157347;

}

.cookie-decline {

    background: #333;

    color: white;

}

.cookie-decline:hover {

    background: #444;

}

.cookie-policy {

    color: #198754;

    text-decoration: none;

    font-size: 14px;

    font-weight: bold;

    padding: 10px 5px;

}

.cookie-policy:hover {

    text-decoration: underline;

}

/* =========================

   COOKIE BANNER - MOBILE

   ========================= */

@media (max-width: 700px) {

    .cookie-banner {

        padding: 18px 20px;

    }

    .cookie-content {

        flex-direction: column;

        align-items: stretch;

        gap: 15px;

    }

    .cookie-text h3 {

        font-size: 17px;

    }

    .cookie-text p {

        font-size: 13px;

    }

    .cookie-actions {

        justify-content: flex-start;

        flex-wrap: wrap;

    }

    .cookie-btn {

        padding: 9px 16px;

    }

}

/* =========================

   PRIVACY POLICY

   ========================= */

.privacy-hero {

    position: relative;

    width: 100%;

    min-height: 350px;

    overflow: hidden;

    background: linear-gradient(

        135deg,

        #0a0a0a 0%,

        #10271d 45%,

        #198754 100%

    );

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

}

.privacy-hero::before {

    content: "";

    position: absolute;

    inset: 0;

    background: linear-gradient(

        135deg,

        rgba(0, 0, 0, 0.25),

        rgba(25, 135, 84, 0.15)

    );

    z-index: 1;

}

.privacy-hero-content {

    position: relative;

    z-index: 2;

    max-width: 850px;

    padding: 40px 30px;

    color: white;

}

.privacy-label {

    margin: 0 0 15px;

    color: #198754;

    font-size: 14px;

    font-weight: bold;

    letter-spacing: 3px;

}

.privacy-hero h2 {

    margin: 0 0 18px;

    font-size: 42px;

    line-height: 1.15;

    color: white;

}

.privacy-hero-tagline {

    max-width: 700px;

    margin: 0 auto;

    font-size: 18px;

    line-height: 1.6;

    color: #f4f4f4;

}

/* =========================

   PRIVACY INTRODUCTION

   ========================= */

.privacy-introduction,

.privacy-section,

.privacy-contact {

    max-width: 850px;

    margin: 0 auto;

    padding: 70px 30px;

    text-align: center;

}

.privacy-section-label {

    margin: 0 0 12px;

    color: #198754;

    font-size: 13px;

    font-weight: bold;

    letter-spacing: 3px;

}

.privacy-introduction h2,

.privacy-section h2,

.privacy-contact h2 {

    margin: 0 0 25px;

    color: #111;

    font-size: 30px;

}

.privacy-introduction p,

.privacy-section p,

.privacy-contact p {

    max-width: 750px;

    margin: 0 auto 18px;

    color: #333;

    font-size: 16px;

    line-height: 1.8;

}

.privacy-updated {

    margin-top: 25px !important;

    color: #777 !important;

    font-size: 13px !important;

}

/* =========================

   PRIVACY LISTS

   ========================= */

.privacy-section ul {

    max-width: 650px;

    margin: 20px auto 25px;

    padding-left: 0;

    list-style-position: inside;

    text-align: center;

}

.privacy-section li {

    margin-bottom: 10px;

    color: #333;

    font-size: 15px;

    line-height: 1.6;

}

/* =========================

   PRIVACY HIGHLIGHT

   ========================= */

.privacy-highlight {

    max-width: none;

    padding-left: 10%;

    padding-right: 10%;

    background: #f0f5f2;

}

/* =========================

   PRIVACY CONTACT

   ========================= */

.privacy-contact {

    background: #ffffff;

}

.privacy-contact-name {

    margin-top: 25px !important;

    color: #198754 !important;

    font-weight: bold;

}
/* =========================================================
   ARTICLE CONTENT — MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .article-content {
        max-width: 100%;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;

        font-size: 16px;
        line-height: 1.6;
    }

    .article-content p,
    .article-content p.MsoNormal {
        margin-top: 0 !important;
        margin-bottom: 8px !important;
        padding: 0 !important;

        font-size: 16px;
        line-height: 1.65;

        text-align: justify !important;
    }

    /* MOBILE LISTS */

    .article-content ul,
    .article-content ol {
        margin: 0 0 20px 0;
        padding-left: 25px;
    }

    .article-content ul li,
    .article-content ol li {
        font-size: 16px;
        line-height: 1.65;
        text-align: justify;
    }

    /* MOBILE NORMAL IMAGES */

    .article-content img {
        max-width: 100%;
        height: auto;
        margin: 20px auto;
    }

    /* MOBILE LEFT IMAGE */

    .article-content img.article-image-left {
        float: none;

        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;

        margin: 20px 0 !important;
        display: block;
    }

    /* MOBILE RIGHT IMAGE */

    .article-content img.article-image-right {
        float: none;

        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;

        margin: 20px 0 !important;
        display: block;
    }

    /* MOBILE FULL-WIDTH IMAGE */

    .article-image-full {
        width: 100%;
        clear: both;
        margin: 0;
    }

    .article-image-full img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto;
        margin: 0 !important;
    }

}
/* =========================================================
   MOBILE ARTICLE CONTENT - FORCE INNER CONTENT TO FIT
   ========================================================= */

@media (max-width: 768px) {

    .article-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        box-sizing: border-box !important;
    }


    /* Prevent ANY element generated by the editor
       from forcing desktop width */
    .article-content * {
        max-width: 100% !important;
        min-width: 0 !important;

        box-sizing: border-box !important;
    }


    /* Normal text blocks */
    .article-content p,
    .article-content div,
    .article-content section,
    .article-content figure {
        width: auto !important;

        overflow-wrap: anywhere !important;
        word-wrap: break-word !important;
    }


    /* ALL ARTICLE IMAGES */
    .article-content img {
        float: none !important;

        display: block !important;

        width: 100% !important;
        max-width: 100% !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        object-fit: contain !important;
    }


    /* Other content that can cause horizontal overflow */
    .article-content iframe,
    .article-content video,
    .article-content table {
        width: 100% !important;
        max-width: 100% !important;
    }

}
/* =========================================
   MOBILE ARTICLE - MAXIMIZE CONTENT WIDTH
   ========================================= */

@media (max-width: 768px) {

    article.full-article {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .article-content {
        width: 100% !important;
        max-width: 100% !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
/* =========================================================
   EV + TECHNOLOGY — MOBILE
   ========================================================= */

@media (max-width: 768px) {

    /* STACK THE TWO SECTIONS */

    .homepage-dual-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .homepage-dual-column {
        width: 100%;
        min-width: 0;
    }

    .homepage-dual-box {
        width: 100%;
        padding: 0;
    }


    /* MAIN ARTICLE CARD */

    .homepage-feature-card {
        display: grid;
        grid-template-columns: 38% minmax(0, 1fr);

        width: 100%;
        min-width: 0;

        padding: 14px 0;

        background: transparent;

        border-bottom: 1px solid #dddddd;

        overflow: hidden;
    }

    .homepage-feature-card > a {
        width: 100%;
        height: 115px;
        overflow: hidden;
    }

    .homepage-feature-card > a img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .homepage-feature-card-content {
        min-width: 0;
        padding: 2px 0 2px 14px;
        text-align: left;
    }

    .homepage-feature-card-content h3 {
        margin: 0;
        font-size: 14px;
        line-height: 1.2;
    }


    /* SMALL ARTICLES */

    .homepage-dual-small-grid {
        display: block;
        margin-top: 0;
    }

    .homepage-small-card {
        display: grid;
        grid-template-columns: 38% minmax(0, 1fr);

        width: 100%;
        min-width: 0;

        padding: 14px 0;

        background: transparent;

        border-bottom: 1px solid #dddddd;

        overflow: hidden;
    }

    .homepage-small-card > a {
        width: 100%;
        height: 105px;
        overflow: hidden;
    }

    .homepage-small-card > a img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .homepage-small-card-content {
        min-width: 0;
        padding: 2px 0 2px 14px;
        text-align: left;
    }

    .homepage-small-card-content h3 {
        margin: 0;
        font-size: 14px;
        line-height: 1.2;
    }

}