/* ==========================================================
   SINHALA NEWSPAPER WEBSITE
   COMPLETE STYLESHEET
   ========================================================== */


/* ==========================================================
   1. GLOBAL RESET
   ========================================================== */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;

    background: #ffffff;
    color: #111111;

    font-family:
        "Noto Sans Sinhala",
        "Nirmala UI",
        "Iskoola Pota",
        Arial,
        sans-serif;

    font-size: 16px;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font-family: inherit;
}


/* ==========================================================
   2. COMMON PAGE WIDTH
   ========================================================== */

.site-header,
.newspaper-page,
.homepage,
.dashboard-shell,
.site-footer {
    width: 1180px;
    max-width: calc(100% - 30px);

    margin-left: auto;
    margin-right: auto;
}


/* ==========================================================
   3. HEADER
   ========================================================== */

.site-header {
    padding-top: 10px;
}

.top-green-line {
    width: 100%;
    height: 7px;

    margin-bottom: 4px;

    background: #79a83b;
}


/* MASTHEAD */

.masthead {
    margin: 4px 0 7px;

    text-align: center;

    font-size: 68px;
    line-height: 1.08;

    font-weight: 900;

    letter-spacing: -1px;
}


/* ==========================================================
   4. NEWSPAPER INFO BAR
   ========================================================== */

.newspaper-info-bar {
    display: grid;

    grid-template-columns: 1fr 1fr 1fr;

    align-items: center;

    min-height: 35px;

    padding: 5px 10px;

    border-top: 1px solid #7d9d4d;
    border-bottom: 1px solid #7d9d4d;

    color: #4e682c;

    font-size: 13px;
    font-weight: 800;
}

.info-left {
    text-align: left;
}

.info-center {
    text-align: center;
}

.info-right {
    text-align: right;
}


/* ==========================================================
   5. NAVIGATION
   ========================================================== */

.main-navigation {
    display: flex;

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

    flex-wrap: wrap;

    gap: 3px;

    min-height: 40px;

    padding: 3px 0;

    border-bottom: 1px solid #dddddd;
}

.main-navigation a,
.nav-drop-button,
.logout-form button {
    display: inline-block;

    padding: 8px 11px;

    margin: 0;

    border: 0;

    background: transparent;

    color: #222222;

    text-decoration: none;

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

    cursor: pointer;
}

.main-navigation a:hover,
.nav-drop-button:hover,
.logout-form button:hover {
    background: #edf4df;
}


/* LOGOUT */

.logout-form {
    display: inline;
    margin: 0;
    padding: 0;
}


/* DROPDOWN */

.nav-dropdown {
    position: relative;

    display: inline-block;
}

.nav-drop-button {
    white-space: nowrap;
}

.nav-dropdown-content {
    display: none;

    position: absolute;

    top: 100%;
    right: 0;

    min-width: 190px;

    padding: 3px 0;

    background: #ffffff;

    border: 1px solid #d2d2d2;

    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.10);

    z-index: 9999;
}

.nav-dropdown-content a {
    display: block;

    width: 100%;

    padding: 10px 14px;

    text-align: left;
}

.nav-dropdown-content a:hover {
    background: #edf4df;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}


/* ==========================================================
   6. HOME PAGE
   ========================================================== */

.homepage {
    padding-top: 18px;
    padding-bottom: 35px;
}


/* HOME TITLE */

.home-title-bar {
    width: 100%;

    margin: 0 0 18px;

    padding: 9px 13px;

    background: #edf4df;

    border-left: 5px solid #79a83b;

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

    font-weight: 900;
}


/* HOME GRID */

.homepage-layout {
    display: grid;

    grid-template-columns: minmax(0, 1fr) 320px;

    gap: 20px;

    align-items: start;
}

.home-posts {
    min-width: 0;
}


/* ==========================================================
   7. HOME ARTICLE CARDS
   ========================================================== */

.home-post-card {
    width: 100%;

    margin: 0;

    padding: 17px 5px 21px;

    border-bottom: 1px solid #d7d7d7;
}

.home-post-card:first-child {
    padding-top: 4px;
}

.home-post-category {
    display: inline-block;

    margin-bottom: 7px;

    padding: 4px 8px;

    background: #edf4df;

    color: #506f2b;

    font-size: 11px;
    line-height: 1.3;

    font-weight: 900;
}

.home-post-card h2 {
    margin: 3px 0 8px;

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

    font-weight: 900;
}

.home-post-card h2 a {
    color: #111111;

    text-decoration: none;
}

.home-post-card h2 a:hover {
    color: #9f1c25;
}

.home-subheadline {
    margin: 0 0 11px;

    color: #555555;

    font-size: 14px;
    line-height: 1.7;
}

.read-article {
    display: inline-block;

    color: #9f1c25;

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

    text-decoration: none;
}

.read-article:hover {
    text-decoration: underline;
}


/* EMPTY HOME */

.empty-posts {
    padding: 25px;

    background: #f8f9f5;

    border: 1px solid #dddddd;

    text-align: center;

    color: #666666;
}


/* ==========================================================
   8. HOME RIGHT PROFILE
   ========================================================== */

.home-profile {
    width: 320px;

    min-width: 0;

    padding-left: 15px;

    border-left: 1px solid #d7d7d7;
}

.home-profile-photo {
    display: block;

    width: 100%;
    height: 300px;

    margin: 0;

    object-fit: contain;
    object-position: center bottom;

    background: #eef3f4;

    border: 1px solid #dde3e4;
}


/* ==========================================================
   9. ARTICLE PAGE
   ========================================================== */

.newspaper-page {
    padding-top: 14px;
    padding-bottom: 35px;
}


/* CATEGORY */

.article-category-line {
    margin: 0 0 6px;

    color: #607b37;

    text-align: center;

    font-size: 13px;
    font-weight: 900;
}


/* ==========================================================
   10. MAIN HEADLINE
   ========================================================== */

.main-headline {
    width: 100%;

    max-width: 1080px;

    margin: 0 auto 10px;

    text-align: center;

    font-size: 46px;
    line-height: 1.27;

    font-weight: 900;

    letter-spacing: -0.5px;
}


/* MAIN SUBHEADLINE UNDER HEADLINE */

.article-subheadline-main {
    width: 100%;

    margin: 0 0 10px;

    padding: 9px 14px;

    background: #edf4df;

    border-top: 1px solid #d8e3c7;
    border-bottom: 1px solid #d8e3c7;

    text-align: center;

    font-size: 15px;
    line-height: 1.6;

    font-weight: 700;
}


/*
   Compatibility:
   if old template still uses class="article-subheadline"
   outside .newspaper-body
*/

.newspaper-page > .article-subheadline {
    width: 100%;

    margin: 0 0 10px;

    padding: 9px 14px;

    background: #edf4df;

    border-top: 1px solid #d8e3c7;
    border-bottom: 1px solid #d8e3c7;

    text-align: center;

    font-size: 15px;
    line-height: 1.6;

    font-weight: 700;
}

.headline-bottom-line {
    width: 100%;
    height: 1px;

    margin-bottom: 15px;

    background: #cccccc;
}


/* ==========================================================
   11. ARTICLE + RIGHT PROFILE GRID
   ========================================================== */

.main-newspaper-layout {
    display: grid;

    grid-template-columns: minmax(0, 1fr) 320px;

    gap: 18px;

    align-items: start;
}

.article-section {
    grid-column: 1;

    width: 100%;

    min-width: 0;
}

.right-column {
    grid-column: 2;

    width: 320px;

    min-width: 0;

    padding-left: 15px;

    border-left: 1px solid #d7d7d7;

    align-self: start;
}



/* ==========================================================
   12. ARTICLE FEATURED IMAGE
   ========================================================== */

.article-featured-image-box {
    display: block;
    width: 100%;
    margin: 0 0 18px;
    padding: 0;
    overflow: hidden;
    background: #f4f4f4;
    border: 1px solid #dddddd;
    break-inside: avoid;
    page-break-inside: avoid;
}

.article-featured-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    margin: 0 auto;
    padding: 0;
    object-fit: contain;
    object-position: center center;
    background: #f4f4f4;
}

/* ==========================================================
   12. QUOTE
   ========================================================== */

.main-quote {
    float: none !important;

    display: block;

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

    margin: 0 0 16px;

    padding: 16px 22px;

    background: #faf8f2;

    border-top: 1px solid #d8d2c3;
    border-bottom: 1px solid #d8d2c3;

    text-align: center;

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

    font-weight: 900;

    break-inside: avoid;
}

.quote-mark {
    color: #315f7d;

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

    font-weight: 900;
}


/* ==========================================================
   13. NEWSPAPER BODY
   ========================================================== */

.newspaper-body {
    width: 100%;

    column-count: 2;
    column-gap: 26px;
    column-rule: 1px solid #d8d8d8;

    font-size: 15px;
    line-height: 1.78;

    text-align: justify;
}

.article-paragraph,
.newspaper-body p {
    margin: 0 0 14px;

    padding: 0;

    text-align: justify;

    break-inside: auto;

    orphans: 3;
    widows: 3;
}


/* ==========================================================
   14. HIGHLIGHTED ARTICLE SUBHEADINGS
   ========================================================== */

.newspaper-body .article-subheading {
    display: block;

    width: 100%;

    margin: 15px 0 9px;

    padding: 7px 9px;

    background: #e8f0d9;

    border-left: 4px solid #789c45;

    color: #18200e;

    font-size: 17px;
    line-height: 1.45;

    font-weight: 900;

    text-align: left;

    break-inside: avoid;
    break-after: avoid;

    page-break-after: avoid;
}

.newspaper-body .article-subheading:first-child {
    margin-top: 0;
}

.newspaper-body .article-subheading + .article-paragraph,
.newspaper-body .article-subheading + p {
    break-before: avoid;
}


/* ==========================================================
   15. ARTICLE RIGHT PHOTO
   ========================================================== */

.expert-photo-box {
    width: 100%;
    height: 300px;

    margin: 0;
    padding: 0;

    overflow: hidden;

    background: #eef3f4;

    border: 1px solid #dce2e3;
}

.expert-photo {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    object-fit: contain;
    object-position: center bottom;
}


/* ==========================================================
   16. ABOUT ME BOX
   ========================================================== */

.about-box {
    width: 100%;

    margin: 0;
    padding: 0;

    background: #ffffff;

    border: 1px solid #d7d7d7;
    border-top: 0;
}

.about-name {
    width: 100%;

    padding: 9px 8px;

    background: #e7efd8;

    text-align: center;

    font-size: 17px;
    line-height: 1.45;

    font-weight: 900;
}

.about-short-role {
    padding: 8px 10px;

    background: #fafbf8;

    border-bottom: 1px solid #dddddd;

    text-align: center;

    font-size: 11px;
    line-height: 1.6;

    font-weight: 600;
}

.about-qualifications {
    padding: 9px 10px;
}

.about-qualifications p {
    margin: 0 0 9px;

    padding: 0;

    font-size: 11px;
    line-height: 1.6;

    text-align: justify;
}

.about-qualifications p:last-child {
    margin-bottom: 0;
}


/* HOME PAGE ABOUT BOX */

.home-profile .about-box {
    border-top: 0;
}


/* ==========================================================
   17. FINAL MESSAGE / ADVICE
   ========================================================== */

.advice-box {
    width: 100%;

    margin-top: 14px;

    background: #fffafa;

    border: 1px solid #d7d7d7;
}

.advice-title {
    padding: 8px 10px;

    background: #e7efd8;

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

    font-weight: 900;
}

.advice-box p {
    margin: 0;

    padding: 11px;

    color: #a21d25;

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

    font-weight: 700;

    text-align: justify;
}


/* ==========================================================
   18. RELATED ARTICLES
   ========================================================== */

.related-articles {
    width: 100%;

    margin-top: 25px;

    padding-top: 14px;

    border-top: 2px solid #79a83b;
}

.related-title {
    margin-bottom: 8px;

    padding: 7px 10px;

    background: #e7efd8;

    font-size: 17px;
    font-weight: 900;
}

.related-item {
    display: block;

    padding: 8px 5px;

    border-bottom: 1px solid #eeeeee;

    color: #222222;

    text-decoration: none;

    font-size: 14px;
}

.related-item:hover {
    color: #9f1c25;
}


/* ==========================================================
   19. DASHBOARD
   ========================================================== */

.dashboard-shell {
    padding-top: 26px;
    padding-bottom: 40px;
}

.dashboard-head {
    display: flex;

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

    gap: 20px;

    margin-bottom: 20px;

    padding-bottom: 14px;

    border-bottom: 2px solid #79a83b;
}

.dashboard-head h1 {
    margin: 0 0 5px;

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

    font-weight: 900;
}

.dashboard-head p {
    margin: 0;

    color: #666666;

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


/* ==========================================================
   20. DASHBOARD TABLE
   ========================================================== */

.dashboard-card {
    width: 100%;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #dddddd;

    border-radius: 6px;

    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.05);
}

.dashboard-card table {
    width: 100%;

    border-collapse: collapse;
}

.dashboard-card thead {
    background: #edf4df;
}

.dashboard-card th {
    padding: 12px 14px;

    border-bottom: 1px solid #ccd8ba;

    color: #354d1d;

    text-align: left;

    font-size: 13px;
    font-weight: 900;
}

.dashboard-card td {
    padding: 12px 14px;

    border-bottom: 1px solid #eeeeee;

    vertical-align: top;

    font-size: 14px;
    line-height: 1.55;
}

.dashboard-card tbody tr:last-child td {
    border-bottom: 0;
}

.dashboard-card tbody tr:hover {
    background: #fafcf7;
}

.dashboard-card td a {
    color: #4d7028;

    font-weight: 800;

    text-decoration: none;
}

.dashboard-card td a:hover {
    color: #a21d25;
}


/* ==========================================================
   21. BUTTONS
   ========================================================== */

.primary-btn,
.secondary-btn {
    display: inline-flex;

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

    min-height: 41px;

    padding: 9px 16px;

    border-radius: 5px;

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

    text-decoration: none;

    cursor: pointer;
}

.primary-btn {
    border: 1px solid #557c2c;

    background: #5e8432;

    color: #ffffff;
}

.primary-btn:hover {
    background: #466522;
}

.secondary-btn {
    border: 1px solid #cccccc;

    background: #eeeeee;

    color: #222222;
}

.secondary-btn:hover {
    background: #e2e2e2;
}


/* ==========================================================
   22. CREATE / EDIT / LOGIN FORMS
   ========================================================== */

.form-card {
    width: 100%;
    max-width: 900px;

    margin: 0 auto;

    padding: 25px 28px;

    background: #ffffff;

    border: 1px solid #dddddd;

    border-radius: 7px;

    box-shadow: 0 4px 17px rgba(0, 0, 0, 0.06);
}

.form-card.narrow {
    max-width: 480px;
}

.form-card h1 {
    margin: 0 0 8px;

    font-size: 29px;
    line-height: 1.35;

    font-weight: 900;
}

.form-help {
    margin: 0 0 22px;

    padding: 10px 12px;

    background: #f1f6e9;

    border-left: 4px solid #79a83b;

    color: #555555;

    font-size: 13px;
    line-height: 1.65;
}


/* FORM ROW */

.form-row {
    width: 100%;

    margin-bottom: 18px;
}

.form-row label,
.form-card label {
    display: block;

    margin-bottom: 6px;

    color: #222222;

    font-size: 14px;
    font-weight: 900;
}


/* INPUTS */

.field,
.form-card input[type="text"],
.form-card input[type="password"],
.form-card input[type="email"],
.form-card input[type="url"],
.form-card input[type="number"],
.form-card input[type="file"],
.form-card select,
.form-card textarea {
    display: block;

    width: 100%;

    padding: 10px 12px;

    border: 1px solid #bfc4b9;

    border-radius: 5px;

    background: #ffffff;

    color: #111111;

    font-family:
        "Noto Sans Sinhala",
        "Nirmala UI",
        "Iskoola Pota",
        Arial,
        sans-serif;

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

.form-card textarea {
    min-height: 120px;

    resize: vertical;
}

.body-field,
.form-card textarea.body-field {
    min-height: 420px;

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


/* INPUT FOCUS */

.field:focus,
.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
    outline: none;

    border-color: #79a83b;

    box-shadow: 0 0 0 3px rgba(121, 168, 59, 0.15);
}


/* FILE INPUT */

.form-card input[type="file"] {
    background: #f8f8f8;

    padding: 9px;
}


/* ==========================================================
   23. FORM ACTIONS
   ========================================================== */

.form-actions {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 24px;

    padding-top: 17px;

    border-top: 1px solid #eeeeee;
}


/* ==========================================================
   24. FORM ERRORS
   ========================================================== */

.field-error {
    margin-top: 5px;

    color: #b00020;

    font-size: 13px;
    line-height: 1.5;
}

.errorlist {
    margin: 6px 0;

    padding-left: 20px;

    color: #b00020;

    font-size: 13px;
    line-height: 1.5;
}


/* DJANGO DEFAULT FORM PARAGRAPHS */

.form-card form > p {
    margin: 0 0 17px;
}

.form-card form > p label {
    margin-bottom: 6px;
}


/* ==========================================================
   25. FOOTER
   ========================================================== */

.site-footer {
    display: grid;

    grid-template-columns: 1fr 1fr 1fr;

    align-items: center;

    min-height: 48px;

    padding: 8px 0;

    border-top: 2px solid #79a83b;

    font-size: 12px;
    line-height: 1.5;

    font-weight: 700;
}

.site-footer div:first-child {
    text-align: left;
}

.site-footer div:nth-child(2) {
    text-align: center;

    color: #587733;
}

.site-footer div:last-child {
    text-align: right;
}


/* ==========================================================
   26. TABLET
   ========================================================== */

@media (max-width: 950px) {

    .masthead {
        font-size: 55px;
    }

    .main-headline {
        font-size: 39px;
    }

    .homepage-layout,
    .main-newspaper-layout {
        grid-template-columns: minmax(0, 1fr) 270px;

        gap: 14px;
    }

    .home-profile,
    .right-column {
        width: 270px;

        padding-left: 12px;
    }

    .home-profile-photo,
    .expert-photo-box {
        height: 270px;
    }

    .newspaper-body {
        column-gap: 20px;

        font-size: 14px;
    }

    .main-quote {
        font-size: 18px;
    }

    .home-post-card h2 {
        font-size: 26px;
    }
}


/* ==========================================================
   27. MOBILE
   ========================================================== */

@media (max-width: 760px) {

    .site-header,
    .newspaper-page,
    .homepage,
    .dashboard-shell,
    .site-footer {
        width: calc(100% - 20px);

        max-width: none;
    }


    /* HEADER */

    .masthead {
        font-size: 40px;

        line-height: 1.2;
    }

    .newspaper-info-bar {
        grid-template-columns: 1fr;

        gap: 3px;

        padding-top: 7px;
        padding-bottom: 7px;
    }

    .info-left,
    .info-center,
    .info-right {
        text-align: center;
    }

    .main-navigation {
        justify-content: center;
    }


    /* HOME */

    .homepage-layout {
        display: block;
    }

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

    .home-profile {
        width: 100%;

        margin-top: 25px;

        padding-top: 18px;
        padding-left: 0;

        border-left: 0;
        border-top: 2px solid #79a83b;
    }

    .home-profile-photo {
        height: 360px;
    }


    /* ARTICLE */

    .main-headline {
        font-size: 30px;

        line-height: 1.35;
    }

    .main-newspaper-layout {
        display: block;
    }

    .article-section {
        width: 100%;
    }

    .newspaper-body {
        column-count: 1;

        column-rule: 0;

        font-size: 15px;
    }

    .main-quote {
        padding: 14px;

        font-size: 17px;
    }

    .newspaper-body .article-subheading {
        font-size: 16px;
    }


    /* RIGHT PROFILE */

    .right-column {
        width: 100%;

        margin-top: 25px;

        padding-top: 18px;
        padding-left: 0;

        border-left: 0;
        border-top: 2px solid #79a83b;
    }

    .expert-photo-box {
        height: 360px;
    }


    /* DASHBOARD */

    .dashboard-head {
        flex-direction: column;

        align-items: flex-start;
    }

    .dashboard-card {
        overflow-x: auto;
    }

    .dashboard-card table {
        min-width: 700px;
    }


    /* FORMS */

    .form-card {
        padding: 18px 15px;
    }

    .form-card h1 {
        font-size: 24px;
    }

    .body-field,
    .form-card textarea.body-field {
        min-height: 330px;
    }

    .form-actions {
        flex-wrap: wrap;
    }


    /* FOOTER */

    .site-footer {
        grid-template-columns: 1fr;

        gap: 5px;

        padding: 12px 0;
    }

    .site-footer div:first-child,
    .site-footer div:nth-child(2),
    .site-footer div:last-child {
        text-align: center;
    }
}

/* ==========================================================
   FINAL FEATURED IMAGE RESPONSIVE RULES
   ========================================================== */

@media (max-width: 760px) {
    .article-featured-image-box {
        width: 100%;
        margin-bottom: 15px;
    }

    .article-featured-image {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
    }
}

/* ==========================================================
   28. KASUNJITH HERATH INSIGHT — FINAL MODERN BRAND OVERRIDES
   ========================================================== */

.site-header {
    padding-top: 10px;
}

.top-green-line {
    width: 100%;
    height: 5px;
    margin-bottom: 10px;
    background: #79a83b;
}

.masthead {
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 16px;
    margin: 8px 0 2px;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1;
}

.masthead-name {
    color: #111111;
    font-size: 58px;
    font-weight: 900;
    letter-spacing: -2px;
}

.masthead-insight {
    color: #5f7f35;
    font-size: 58px;
    font-weight: 300;
    letter-spacing: 3px;
}

.masthead-tagline {
    margin: 8px 0 12px;
    color: #444444;
    text-align: center;
    font-family: "Noto Sans Sinhala", "Nirmala UI", "Iskoola Pota", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.newspaper-info-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    min-height: 37px;
    padding: 5px 10px;
    border-top: 1px solid #cbd6bd;
    border-bottom: 1px solid #cbd6bd;
    color: #4e682c;
    font-size: 13px;
    font-weight: 700;
}

.info-left { text-align: left; }

.info-center {
    text-align: center;
    font-family: "Noto Sans Sinhala", "Nirmala UI", "Iskoola Pota", Arial, sans-serif;
    font-weight: 800;
}

.info-right {
    text-align: right;
    color: #555555;
    font-family: Arial, sans-serif;
    font-size: 12px;
}

.main-navigation {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
    min-height: 43px;
    padding: 3px 0;
    border-bottom: 1px solid #dddddd;
}

.main-navigation a,
.nav-drop-button,
.logout-form button {
    display: inline-block;
    padding: 9px 12px;
    margin: 0;
    border: 0;
    background: transparent;
    color: #222222;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.main-navigation a:hover,
.nav-drop-button:hover,
.logout-form button:hover {
    background: #edf4df;
    color: #4f702b;
}

.logout-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-drop-button { white-space: nowrap; }

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 190px;
    padding: 4px 0;
    background: #ffffff;
    border: 1px solid #dddddd;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
    z-index: 9999;
}

.nav-dropdown-content a {
    display: block;
    width: 100%;
    padding: 10px 14px;
    text-align: left;
}

.nav-dropdown-content a:hover { background: #edf4df; }
.nav-dropdown:hover .nav-dropdown-content { display: block; }

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    min-height: 60px;
    margin-top: 30px;
    padding: 14px 4px;
    border-top: 3px solid #79a83b;
    color: #555555;
    font-size: 12px;
    line-height: 1.6;
    font-weight: 600;
}

.site-footer div:first-child { text-align: left; }
.site-footer div:last-child { text-align: right; }
.site-footer strong { color: #111111; font-weight: 900; }

@media (max-width: 950px) {
    .masthead { gap: 12px; }
    .masthead-name,
    .masthead-insight { font-size: 45px; }
    .masthead-tagline { font-size: 15px; }
}

@media (max-width: 760px) {
    .masthead {
        display: block;
        margin-top: 12px;
    }

    .masthead-name {
        display: block;
        font-size: 35px;
        letter-spacing: -1px;
    }

    .masthead-insight {
        display: block;
        margin-top: 5px;
        font-size: 28px;
        letter-spacing: 5px;
    }

    .masthead-tagline {
        margin-top: 10px;
        font-size: 13px;
        line-height: 1.7;
    }

    .newspaper-info-bar {
        grid-template-columns: 1fr;
        gap: 3px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .info-left,
    .info-center,
    .info-right { text-align: center; }

    .main-navigation { justify-content: center; }

    .site-footer {
        flex-direction: column;
        gap: 4px;
        padding: 14px 0;
        text-align: center;
    }

    .site-footer div:first-child,
    .site-footer div:last-child { text-align: center; }
}

/* ==========================================================
   29. PREMIUM HOMEPAGE — FEATURED STORY + ARTICLE GRID
   ========================================================== */

.homepage {
    padding-top: 18px;
    padding-bottom: 45px;
}

.home-title-bar {
    width: 100%;
    margin: 0 0 20px;
    padding: 11px 15px;
    background: linear-gradient(
        90deg,
        #edf4df 0%,
        #f7faf3 70%,
        #ffffff 100%
    );
    border-left: 5px solid #79a83b;
    color: #1c1c1c;
    font-size: 21px;
    line-height: 1.5;
    font-weight: 900;
}

.homepage-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.home-posts {
    min-width: 0;
}

/* FEATURED STORY */

.featured-story {
    position: relative;
    display: grid;
    grid-template-columns: 46% 54%;
    width: 100%;
    min-height: 330px;
    margin: 0 0 24px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e1e1e1;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.05);
}

.featured-label {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    padding: 6px 11px;
    background: #507c27;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 900;
    border-radius: 3px;
}

.featured-image-link {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 330px;
    overflow: hidden;
    background: #eef1ed;
}

.featured-story-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 330px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.featured-image-link:hover .featured-story-image {
    transform: scale(1.025);
}

.featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 28px;
}

.featured-content .home-post-category {
    align-self: flex-start;
    margin-bottom: 10px;
}

.featured-headline {
    margin: 0 0 13px;
    font-size: 31px;
    line-height: 1.35;
    font-weight: 900;
}

.featured-headline a {
    color: #111111;
    text-decoration: none;
}

.featured-headline a:hover {
    color: #52772e;
}

.featured-subheadline {
    margin: 0 0 20px;
    color: #555555;
    font-size: 14px;
    line-height: 1.75;
}

.featured-read-more {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    min-height: 41px;
    padding: 9px 17px;
    background: #507c27;
    color: #ffffff;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.featured-read-more:hover {
    background: #3e641d;
    transform: translateY(-1px);
}

/* MORE STORIES */

.more-stories-heading {
    margin: 5px 0 17px;
    padding: 8px 11px;
    border-left: 4px solid #79a83b;
    border-bottom: 1px solid #dddddd;
    color: #222222;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 900;
}

/* ARTICLE GRID */

.home-article-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.modern-article-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dddddd;
    box-shadow: 0 2px 9px rgba(0, 0, 0, 0.045);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modern-article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.08);
}

.article-card-image-link {
    display: block;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f1f1f1;
}

.article-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modern-article-card:hover .article-card-image {
    transform: scale(1.025);
}

.article-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 15px;
}

.article-card-content .home-post-category {
    align-self: flex-start;
    margin-bottom: 8px;
}

.article-card-content h2 {
    margin: 0 0 9px;
    font-size: 20px;
    line-height: 1.45;
    font-weight: 900;
}

.article-card-content h2 a {
    color: #111111;
    text-decoration: none;
}

.article-card-content h2 a:hover {
    color: #52772e;
}

.article-card-content .home-subheadline {
    flex: 1;
    margin: 0 0 12px;
    color: #666666;
    font-size: 13px;
    line-height: 1.65;
}

.article-card-content .read-article {
    align-self: flex-start;
    color: #507c27;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.article-card-content .read-article:hover {
    text-decoration: underline;
}

.home-post-category {
    display: inline-block;
    padding: 5px 9px;
    background: #edf4df;
    color: #506f2b;
    border-radius: 2px;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 900;
}

/* PREMIUM PROFILE SIDEBAR */

.home-profile {
    position: sticky;
    top: 15px;
    width: 300px;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d9dfd2;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.045);
}

.profile-sidebar-label {
    padding: 11px 13px;
    background: #e7efd8;
    color: #354f1d;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.4px;
}

.home-profile .home-profile-photo {
    display: block;
    width: 100%;
    height: 280px;
    margin: 0;
    object-fit: contain;
    object-position: center bottom;
    background: #eef3f4;
    border: 0;
}

.home-profile .about-box {
    width: 100%;
    margin: 0;
    border: 0;
    border-top: 1px solid #d9dfd2;
    box-shadow: none;
}

.home-profile .about-name {
    padding: 10px;
    background: #edf4df;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 900;
}

.home-profile .about-short-role {
    padding: 9px 12px;
    font-size: 11px;
    line-height: 1.65;
}

.home-profile .about-qualifications {
    padding: 12px 13px;
}

.home-profile .about-qualifications p {
    font-size: 11px;
    line-height: 1.7;
}

.profile-insight-box {
    margin: 14px;
    padding: 14px;
    background: #f5f8ef;
    border: 1px solid #dfe8d3;
}

.profile-insight-title {
    margin-bottom: 8px;
    color: #476727;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 900;
    letter-spacing: 0.3px;
}

.profile-insight-box p {
    margin: 0;
    color: #444444;
    font-size: 12px;
    line-height: 1.75;
}

/* EMPTY STATE */

.empty-posts {
    padding: 35px 20px;
    background: #f8faf5;
    border: 1px solid #dde3d7;
    text-align: center;
    color: #555555;
}

.empty-posts strong {
    display: block;
    margin-bottom: 7px;
    color: #222222;
    font-size: 18px;
}

.empty-posts p {
    margin: 0;
}

/* TABLET */

@media (max-width: 950px) {
    .homepage-layout {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 17px;
    }

    .home-profile {
        width: 260px;
    }

    .home-profile .home-profile-photo {
        height: 250px;
    }

    .featured-story {
        grid-template-columns: 44% 56%;
        min-height: 290px;
    }

    .featured-image-link,
    .featured-story-image {
        min-height: 290px;
    }

    .featured-content {
        padding: 23px 20px;
    }

    .featured-headline {
        font-size: 26px;
    }

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

/* MOBILE */

@media (max-width: 760px) {
    .homepage {
        padding-top: 12px;
    }

    .home-title-bar {
        margin-bottom: 14px;
        font-size: 18px;
    }

    .homepage-layout {
        display: block;
    }

    .featured-story {
        display: block;
        min-height: 0;
    }

    .featured-image-link {
        height: 230px;
        min-height: 0;
    }

    .featured-story-image {
        height: 230px;
        min-height: 0;
    }

    .featured-content {
        padding: 20px 17px;
    }

    .featured-headline {
        font-size: 25px;
        line-height: 1.4;
    }

    .featured-subheadline {
        font-size: 14px;
    }

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

    .article-card-image-link {
        height: 210px;
    }

    .article-card-content h2 {
        font-size: 20px;
    }

    .home-profile {
        position: static;
        width: 100%;
        margin-top: 30px;
        padding: 0;
        border-left: 1px solid #d9dfd2;
        border-top: 3px solid #79a83b;
    }

    .home-profile .home-profile-photo {
        height: 360px;
    }
}

/* VERY SMALL MOBILE */

@media (max-width: 420px) {
    .featured-image-link,
    .featured-story-image {
        height: 200px;
    }

    .featured-headline {
        font-size: 22px;
    }

    .article-card-image-link {
        height: 190px;
    }

    .home-profile .home-profile-photo {
        height: 320px;
    }
}

