/* ============================================================
   TechnoHype — Frontend Stylesheet
   Path: public/asset/frontend/css/frontendstyle.css
   Fonts loaded in blade: Playfair Display + DM Sans
   ============================================================ */

/* ── CSS Variables ── */
:root {
    --bg: #FBF6F6;
    --white: #ffffff;
    --navy: #0F2854;
    --navy-deep: #081a38;
    --teal: #3F9AAE;
    --teal-hover: #337d8f;
    --teal-light: #BBE0EF;
    --teal-pale: #e8f6fb;
    --border: #e2e8f0;
    --text-dark: #1a1a2e;
    --text-mid: #4a5568;
    --text-light: #718096;
    --error: #e53e3e;
    --success: #2d7a4f;
    --radius: 14px;
    --shadow: 0 4px 24px rgba(63, 154, 174, 0.10);
}

/* ── Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text-dark);
    min-height: 100vh;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    background: var(--white);
    border-bottom: 1.5px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 16px rgba(15, 40, 84, 0.07);
}

.nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 70px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--teal), var(--navy));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 17px;
    font-family: 'Playfair Display', serif;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
}

.logo-text span {
    color: var(--teal);
}

.logo-img {
    height: 65px;
    width: auto;
    display: block;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 9px 15px;
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: 'DM Sans', sans-serif;
}

.nav-link:hover,
.nav-link.active {
    background: var(--teal-light);
    color: var(--teal);
}

.nav-link .fa-chevron-down {
    font-size: 10px;
    transition: transform 0.2s;
}

.nav-item:hover .nav-link .fa-chevron-down {
    transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;

    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 12px 48px rgba(15, 40, 84, 0.14);

    min-width: 200px;
    border: 1.5px solid var(--border);

    overflow: hidden;
    z-index: 9999;

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);

    transition: all .18s ease;
}

/* OPEN STATE */
.dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-dark);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.15s;
    font-family: 'DM Sans', sans-serif;
}

.dropdown a:hover {
    background: var(--teal-light);
    color: var(--teal);
    padding-left: 26px;
}

.dropdown a i {
    width: 18px;
    color: var(--teal);
    font-size: 13px;
}

/* Blog category dropdown — 2-column grid */
#blogDropdown {
    min-width: 420px;
    max-height: 420px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-content: start;
}

#blogDropdown .divider-line {
    grid-column: 1 / -1;
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

#blogDropdown .view-all-cats {
    grid-column: 1 / -1;
    font-weight: 700;
    justify-content: center;
    background: var(--teal-pale);
}

#blogDropdown a:hover {
    padding-left: 18px;
}

#blogDropdown::-webkit-scrollbar {
    width: 6px;
}

#blogDropdown::-webkit-scrollbar-thumb {
    background: var(--teal-light);
    border-radius: 10px;
}

#blogDropdown .cat-count {
    margin-left: auto;
    font-size: 10.5px;
    background: var(--teal-pale);
    color: var(--teal);
    padding: 1px 7px;
    border-radius: 100px;
    font-weight: 700;
}

@media (max-width: 1100px) {
    #blogDropdown {
        left: -80px;
    }
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-nav-outline {
    padding: 9px 20px;
    border-radius: 8px;
    border: 2px solid var(--teal);
    color: var(--teal);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    transition: all 0.2s;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    display: flex;
    align-items: center;
    gap: 7px;
}

.btn-nav-outline:hover {
    background: var(--teal);
    color: var(--white);
}

.btn-nav-fill {
    padding: 9px 20px;
    border-radius: 8px;
    border: 2px solid var(--teal);
    background: var(--teal);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    display: flex;
    align-items: center;
    gap: 7px;
}

.btn-nav-fill:hover {
    background: var(--teal-hover);
    border-color: var(--teal-hover);
}

/* Author Nav Avatar Dropdown */
.author-nav-wrap {
    position: relative;
}

.author-nav-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px;
    border-radius: 10px;
    cursor: pointer;
    border: 1.5px solid var(--border);
    background: var(--white);
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
}

.author-nav-btn:hover {
    border-color: var(--teal);
    background: var(--teal-pale);
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--navy));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 13px;
    font-family: 'Playfair Display', serif;
    flex-shrink: 0;
}

.author-nav-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.author-nav-role {
    font-size: 11px;
    color: var(--text-light);
}

.author-nav-wrap {
    position: relative;
    padding-bottom: 10px;
}

.author-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;

    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 12px 48px rgba(15, 40, 84, 0.14);

    min-width: 200px;
    border: 1.5px solid var(--border);

    overflow: hidden;
    z-index: 9999;

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);

    transition: all .18s ease;
}

/* OPEN STATE */
.author-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* SHOW ON HOVER */
.author-nav-wrap.active .author-dropdown {
    display: block;
}

/* LINKS */
.author-dropdown a,
.author-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;

    width: 100%;
    padding: 12px 18px;

    color: var(--text-dark);
    font-size: 14px;

    text-decoration: none;
    transition: all 0.15s;

    background: none;
    border: none;
    cursor: pointer;

    font-family: 'DM Sans', sans-serif;
    text-align: left;
}

/* HOVER */
.author-dropdown a:hover,
.author-dropdown button:hover {
    background: var(--teal-light);
    color: var(--teal);
}

.author-dropdown i {
    width: 16px;
    color: var(--teal);
    font-size: 13px;
}

.author-dropdown .divider-line {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.author-dropdown .logout-btn {
    color: var(--error) !important;
}

.author-dropdown .logout-btn i {
    color: var(--error) !important;
}

/* Mobile Toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--navy);
    display: block;
    border-radius: 2px;
    transition: all 0.25s;
}




@media (max-width: 600px) {
    .nav-inner {
        padding: 0 16px;
    }

    .logo-text {
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    .nav-inner {
        padding: 0 16px;
    }

    .logo-text {
        font-size: 18px;
    }

    .btn-nav-fill,
    .btn-nav-outline {
        font-size: 13px;
        padding: 8px 14px;
    }
}

/* ============================================================
   AUTHOR LOGIN MODAL
   ============================================================ */
.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 40, 84, 0.55);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 16px;
}

.auth-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.auth-modal {
    background: var(--white);
    border-radius: 20px;
    width: 100%;
    max-width: 460px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 32px 80px rgba(15, 40, 84, 0.22), 0 0 0 1px rgba(63, 154, 174, 0.12);
    transform: translateY(28px) scale(0.97);
    opacity: 0;
    transition: transform 0.38s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.3s ease;
}

.auth-overlay.open .auth-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Modal Header Band */
.modal-band {
    background: linear-gradient(135deg, var(--navy) 0%, #1a3a6e 60%, var(--teal) 100%);
    padding: 30px 36px 26px;
    position: relative;
    overflow: hidden;
}

.modal-band::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(187, 224, 239, 0.2) 0%, transparent 65%);
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

.modal-logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.modal-logo-box {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 15px;
    color: var(--white);
}

.modal-logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--white);
}

.modal-logo-name em {
    color: var(--teal-light);
    font-style: normal;
}

.modal-band h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 900;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.modal-band p {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.62);
    position: relative;
    z-index: 1;
}

/* Modal Body */
.modal-body-inner {
    padding: 28px 36px 32px;
}

.author-role-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--teal-pale);
    color: var(--teal);
    border: 1px solid rgba(63, 154, 174, 0.28);
    padding: 4px 13px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

/* Form Elements */
.m-form-group {
    margin-bottom: 16px;
}

.m-form-group label {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-mid);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.m-input-wrap {
    position: relative;
}

.m-inp-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--teal);
    font-size: 13px;
    pointer-events: none;
}

.m-input {
    width: 100%;
    padding: 12px 13px 12px 40px;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    background: var(--bg);
    color: var(--text-dark);
    font-family: 'DM Sans', sans-serif;
    font-size: 14.5px;
    outline: none;
    transition: all 0.2s;
}

.m-input:focus {
    border-color: var(--teal);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(63, 154, 174, 0.13);
}

.m-input.is-err {
    border-color: var(--error);
}

.m-input.is-err:focus {
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.12);
}

.m-pw-toggle {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 13px;
    transition: color 0.2s;
}

.m-pw-toggle:hover {
    color: var(--teal);
}

.m-field-err {
    font-size: 11.5px;
    color: var(--error);
    margin-top: 4px;
    display: none;
    align-items: center;
    gap: 4px;
}

.m-field-err.show {
    display: flex;
}

.m-form-extras {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.m-remember {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.m-remember input {
    accent-color: var(--teal);
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.m-remember span {
    font-size: 13px;
    color: var(--text-mid);
}

.m-forgot {
    font-size: 13px;
    color: var(--teal);
    font-weight: 600;
    text-decoration: none;
}

.m-forgot:hover {
    text-decoration: underline;
}

.m-submit-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--teal) 0%, #2a7f93 100%);
    color: var(--white);
    border: none;
    border-radius: 9px;
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: all 0.22s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.m-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(63, 154, 174, 0.36);
}

.m-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.m-divider {
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.m-divider::before,
.m-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.m-divider a {
    color: var(--teal);
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

.m-alert {
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
    display: none;
    align-items: center;
    gap: 8px;
}

.m-alert.show {
    display: flex;
}

.m-alert-err {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: var(--error);
}

.m-alert-ok {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    color: var(--success);
}

/* Spinner */
.m-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, #1a3a6e 60%, #1e4d7a 100%);
    color: var(--white);
    padding: 80px 32px 90px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(63, 154, 174, 0.3) 0%, transparent 70%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: 30%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(187, 224, 239, 0.15) 0%, transparent 70%);
}

.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(63, 154, 174, 0.25);
    border: 1px solid rgba(63, 154, 174, 0.5);
    color: var(--teal-light);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-badge i {
    font-size: 11px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 58px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    max-width: 680px;
}

.hero h1 span {
    color: var(--teal-light);
}

.hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.75);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-btn-primary {
    padding: 14px 32px;
    background: var(--teal);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.hero-btn-primary:hover {
    background: #5bb3c6;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(63, 154, 174, 0.4);
}

.hero-btn-secondary {
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
}

.hero-stat .num {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--teal-light);
}

.hero-stat .lbl {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 2px;
}

@media (max-width: 780px) {
    .hero h1 {
        font-size: 38px;
    }

    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section {
    padding: 70px 32px;
}

.section-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    font-weight: 700;
    color: var(--navy);
}

.section-title span {
    color: var(--teal);
}

.section-sub {
    font-size: 15px;
    color: var(--text-light);
    margin-top: 6px;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--teal);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 9px 18px;
    border: 1.5px solid var(--teal);
    border-radius: 8px;
    transition: all 0.2s;
}

.view-all:hover {
    background: var(--teal);
    color: var(--white);
}

/* ============================================================
   CATEGORY TABS
   ============================================================ */
.cat-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.cat-tab {
    padding: 9px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text-mid);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
}

.cat-tab i {
    font-size: 12px;
}

.cat-tab:hover,
.cat-tab.active {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
}

/* ============================================================
   BLOG GRID & CARDS
   ============================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1100px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 520px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1.5px solid var(--border);
    transition: all 0.25s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(15, 40, 84, 0.12);
    border-color: var(--teal-light);
}

.blog-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.06);
}

.blog-cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--teal);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    letter-spacing: 0.4px;
}

.blog-card-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.blog-meta span {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-meta i {
    font-size: 11px;
}

.blog-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.45;
    margin-bottom: 10px;
    flex: 1;
}

.blog-card h3 a {
    color: inherit;
    text-decoration: none;
}

.blog-card h3 a:hover {
    color: var(--teal);
}

.blog-card p {
    font-size: 13.5px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 14px;
    margin-top: auto;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-author img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-author span {
    font-size: 12.5px;
    color: var(--text-mid);
    font-weight: 500;
}

.read-more {
    font-size: 12.5px;
    color: var(--teal);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s;
}

.read-more:hover {
    gap: 8px;
}

/* ============================================================
   FEATURED STRIP
   ============================================================ */
.featured-strip {
    background: linear-gradient(to right, var(--teal-light), #d4eefc);
    padding: 48px 32px;
    border-top: 1.5px solid #a8d8ed;
    border-bottom: 1.5px solid #a8d8ed;
}

.featured-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 900px) {
    .featured-inner {
        grid-template-columns: 1fr;
    }
}

.featured-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.featured-text p {
    color: var(--text-mid);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.featured-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.featured-mini {
    background: var(--white);
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border);
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.featured-mini:hover {
    border-color: var(--teal);
    box-shadow: 0 4px 16px rgba(63, 154, 174, 0.12);
}

.featured-mini-num {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--teal);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.featured-mini-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 3px;
}

.featured-mini-info span {
    font-size: 12px;
    color: var(--text-light);
}

/* ============================================================
   SUBSCRIBE
   ============================================================ */
.subscribe-section {
    background: var(--navy);
    padding: 60px 32px;
    text-align: center;
}

.subscribe-inner {
    max-width: 560px;
    margin: 0 auto;
}

.subscribe-inner h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: var(--white);
    margin-bottom: 12px;
}

.subscribe-inner p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 15px;
    margin-bottom: 28px;
}

.subscribe-form {
    display: flex;
    gap: 10px;
}

.subscribe-form input {
    flex: 1;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 15px;
    outline: none;
    font-family: 'DM Sans', sans-serif;
}

.subscribe-form input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.subscribe-form input:focus {
    border-color: var(--teal-light);
}

.subscribe-form button {
    padding: 14px 28px;
    background: var(--teal);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.subscribe-form button:hover {
    background: #5bb3c6;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--navy);
    color: var(--white);
    padding: 60px 32px 0;
    border-top: 3px solid var(--teal);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding-bottom: 48px;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand .logo {
    margin-bottom: 16px;
    display: inline-flex;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.social-links a:hover {
    background: var(--teal);
    border-color: var(--teal);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--teal-light);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 7px;
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-col ul li a::before {
    content: '›';
    color: var(--teal);
    font-size: 16px;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-contact-item i {
    color: var(--teal);
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-contact-item span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    line-height: 1.5;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-bottom-links a:hover {
    color: var(--teal-light);
}

/* ============================================================
   BLOG DETAIL
   ============================================================ */
.blog-detail-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 50px 32px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--teal);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 28px;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    transition: gap 0.2s;
}

.back-btn:hover {
    gap: 12px;
}

.blog-detail-img {
    width: 100%;
    border-radius: var(--radius);
    aspect-ratio: 16/7;
    object-fit: cover;
    margin-bottom: 32px;
}

.blog-detail-cat {
    display: inline-block;
    background: var(--teal-light);
    color: var(--teal);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.blog-detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 18px;
}

.blog-detail-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 24px;
    border-bottom: 1.5px solid var(--border);
    margin-bottom: 28px;
}

.blog-detail-meta span {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: var(--text-light);
}

.blog-detail-meta i {
    color: var(--teal);
}

.blog-detail-content {
    font-size: 16.5px;
    line-height: 1.85;
    color: var(--text-mid);
}

.blog-detail-content p {
    margin-bottom: 20px;
}

.blog-detail-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--navy);
    margin: 30px 0 14px;
}

/* Comment Section */
.comment-section {
    margin-top: 56px;
}

.comment-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: var(--navy);
    margin-bottom: 28px;
}

.comment-form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    border: 1.5px solid var(--border);
    margin-bottom: 36px;
}

.comment-form h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-mid);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    font-size: 14.5px;
    font-family: 'DM Sans', sans-serif;
    color: var(--text-dark);
    background: var(--bg);
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--teal);
    background: var(--white);
}

.form-group textarea {
    min-height: 110px;
    resize: vertical;
}

.submit-btn {
    padding: 12px 28px;
    background: var(--teal);
    color: var(--white);
    border: none;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
}

.submit-btn:hover {
    background: var(--teal-hover);
    transform: translateY(-1px);
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.comment-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 24px;
    border: 1.5px solid var(--border);
    display: flex;
    gap: 16px;
}

.comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--teal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--teal);
    flex-shrink: 0;
    font-size: 16px;
}

.comment-body .comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.comment-body .comment-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--navy);
}

.comment-body .comment-date {
    font-size: 12px;
    color: var(--text-light);
}

.comment-body p {
    font-size: 14.5px;
    color: var(--text-mid);
    line-height: 1.65;
}

/* Interview & Jobs */
.q-item {
    background: var(--bg);
    border-radius: 12px;
    border: 1.5px solid var(--border);
    overflow: hidden;
}

.q-item:hover {
    border-color: var(--teal-light);
}


/* ============================================================
   AUTHOR PAGES — RESPONSIVE
   ============================================================ */

/* Dashboard stat grid */
@media (max-width: 700px) {

    /* Stats: 2 per row on mobile */
    [style*="minmax(155px"],
    [style*="minmax(160px"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Quick actions: 1 col */
    [style*="grid-template-columns:1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Dashboard header: stack */
    [style*="align-items:center;justify-content:space-between;flex-wrap:wrap"] {
        flex-direction: column;
        align-items: flex-start !important;
    }

    /* Hero banner inner padding */
    section[style*="padding:52px 24px"] {
        padding: 28px 16px 36px !important;
    }

    section[style*="padding:40px 24px"] {
        padding: 24px 16px 32px !important;
    }
}

/* Create / Edit form: stack to 1 column */
@media (max-width: 720px) {

    /* The 2-column form grid */
    form>div[style*="grid-template-columns:1fr 300px"],
    form>div[style*="grid-template-columns: 1fr 300px"] {
        grid-template-columns: 1fr !important;
    }
}

/* Blog detail */
@media (max-width: 600px) {
    .blog-detail-wrap {
        padding: 28px 16px;
    }

    .blog-detail-title {
        font-size: 26px;
    }

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

/* My posts list */
@media (max-width: 580px) {

    /* Hide thumbnail on very small screens */
    div[style*="width:110px;flex-shrink:0"] {
        display: none !important;
    }

    /* Stack meta inline items */
    div[style*="display:flex;align-items:center;gap:14px;flex-wrap:wrap"] {
        gap: 8px;
    }
}

/* Section padding on mobile */
@media (max-width: 600px) {
    .section {
        padding: 48px 16px;
    }

    .hero {
        padding: 52px 16px 60px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .featured-strip {
        padding: 32px 16px;
    }

    .featured-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .subscribe-section {
        padding: 40px 16px;
    }

    .subscribe-form {
        flex-direction: column;
    }

    .subscribe-form input,
    .subscribe-form button {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    footer {
        padding: 40px 16px 0;
    }

    .blog-detail-meta {
        gap: 10px;
    }

    .comment-item {
        flex-direction: column;
        gap: 10px;
    }

    .comment-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .hero-stats {
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-stat .num {
        font-size: 24px;
    }

    .cat-tabs {
        gap: 6px;
    }

    .cat-tab {
        padding: 7px 14px;
        font-size: 13px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .section-title {
        font-size: 26px;
    }
}

/* ── Max-width containers: full-width on mobile ────────────────────── */
@media (max-width: 700px) {

    div[style*="max-width:1100px"],
    div[style*="max-width:1280px"],
    div[style*="max-width:900px"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}


/* ═══════════════════════════════════════════════════════════
   NAVBAR — moved from inline styles
═══════════════════════════════════════════════════════════ */

/* Blog chevron icon */
.blog-chevron {
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.22s ease;
    display: inline-block;
}

.blog-chevron.open {
    transform: rotate(180deg);
}

/* Author chevron */
.author-chevron {
    font-size: 10px;
    color: var(--text-light);
    margin-left: 4px;
}

/* Author nav text container */
.author-nav-text {
    display: flex;
    flex-direction: column;
}

/* Mobile logout button — replaces inline-styled button */
.mob-logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: none;
    border: none;
    border-top: 1px solid var(--border);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: var(--error);
    cursor: pointer;
    text-align: left;
}

.mob-logout-btn:hover {
    background: #fff5f5;
}

/* Mobile auth buttons row */
.mob-auth-btns {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 2px solid var(--teal-light);
}

.mob-auth-btn {
    flex: 1;
    justify-content: center;
}

/* Mobile auth links section — hidden on desktop */
.mobile-auth-links {
    display: none;
}

/* Desktop: hide mobile-auth-links, show nav-actions */
@media (min-width: 961px) {
    .mobile-auth-links {
        display: none !important;
    }

    .nav-actions {
        display: flex;
    }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE NAVBAR — complete rewrite (≤960px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 960px) {

    .mobile-menu-btn {
        display: flex;
    }

    /* Hide desktop auth buttons on mobile */
    .nav-actions {
        display: none !important;
    }

    /* Show mobile auth section */
    .mobile-auth-links {
        display: block;
    }

    /* Nav panel hidden by default, drops down when .mobile-open */
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        z-index: 9999;
        border-top: 3px solid var(--teal);
        box-shadow: 0 16px 48px rgba(15, 40, 84, 0.18);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-links.mobile-open {
        display: flex;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 14px 22px;
        border-radius: 0;
        font-size: 15px;
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .nav-link:hover,
    .nav-link.active {
        background: var(--teal-pale);
        color: var(--teal);
        border-radius: 0;
        padding-left: 28px;
    }

    /* Blog sub-menu accordion on mobile */
    .nav-item .dropdown {
        position: static !important;
        display: none !important;
        box-shadow: none !important;
        border: none !important;
        border-top: 1px solid var(--border) !important;
        border-radius: 0 !important;
        animation: none !important;
        background: #f7fafc;
        min-width: unset;
        width: 100%;
    }

    .nav-item .dropdown.mob-open {
        display: block !important;
    }

    .nav-item .dropdown a {
        padding: 12px 22px 12px 44px;
        font-size: 14px;
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: center;
        gap: 8px;
    }

    #blogDropdown {
        max-height: unset;
        overflow-y: visible;
        min-width: unset;
    }

    #blogDropdown.mob-open {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
}

@media (max-width: 600px) {
    .nav-inner {
        padding: 0 14px;
    }

    .logo-text {
        font-size: 17px;
    }
}


/* ═══════════════════════════════════════════════════════════
   PAGE HERO  (dark gradient banner — used on author pages)
═══════════════════════════════════════════════════════════ */
.page-hero {
    background: linear-gradient(135deg, #0F2854 0%, #1a3a6e 55%, #3F9AAE 100%);
    padding: 52px 24px 64px;
    position: relative;
    overflow: hidden;
}

.page-hero-sm {
    background: linear-gradient(135deg, #0F2854, #1a3a6e);
    padding: 36px 24px 48px;
    position: relative;
    overflow: hidden;
}

.page-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-hero-inner-sm {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Decorative circle in hero */
.page-hero-deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    border: 1.5px solid rgba(187, 224, 239, 0.1);
}

.page-hero-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* Breadcrumb inside dark hero */
.hero-breadcrumb {
    font-size: 11px;
    color: var(--teal-light);
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero-breadcrumb a {
    color: var(--teal-light);
    text-decoration: none;
}

.hero-breadcrumb a:hover {
    text-decoration: underline;
}

.page-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.2;
}

.page-hero-sub {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin-top: 4px;
}

/* Author avatar in hero */
.hero-author-info {
    display: flex;
    align-items: center;
    gap: 18px;
}

.hero-author-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(187, 224, 239, 0.3));
    border: 2.5px solid rgba(187, 224, 239, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 900;
    color: #fff;
}

.hero-author-badge {
    font-size: 11px;
    color: var(--teal-light);
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.hero-author-name {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 3px;
    line-height: 1.2;
}

.hero-author-email {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* Hero CTA button (white on dark) */
.btn-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 26px;
    background: #fff;
    color: #0F2854;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    transition: background 0.2s;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
}

.btn-hero-cta:hover {
    background: var(--teal-light);
}

.btn-hero-cta .btn-icon {
    color: var(--teal);
    font-size: 16px;
}

/* Teal CTA button */
.btn-teal-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 22px;
    background: var(--teal);
    color: #fff;
    border-radius: 11px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 18px rgba(63, 154, 174, 0.4);
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
}

.btn-teal-cta:hover {
    background: var(--teal-hover);
}


/* ═══════════════════════════════════════════════════════════
   STATS STRIP  (dashboard)
═══════════════════════════════════════════════════════════ */
.stats-strip {
    max-width: 1100px;
    margin: -32px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 12px;
}

.stat-card {
    border-radius: 14px;
    padding: 18px 16px;
    box-shadow: 0 6px 24px rgba(15, 40, 84, 0.09);
    border: 1.5px solid rgba(0, 0, 0, 0.04);
    text-align: center;
}

.stat-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    margin: 0 auto 10px;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-val {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 900;
    color: var(--navy);
}

.stat-lbl {
    font-size: 11.5px;
    color: var(--text-light);
    margin-top: 3px;
    font-weight: 500;
}


/* ═══════════════════════════════════════════════════════════
   MAIN PAGE CONTAINER
═══════════════════════════════════════════════════════════ */
.page-container {
    max-width: 1100px;
    margin: 28px auto 48px;
    padding: 0 24px;
}

.page-container-sm {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 24px 56px;
}


/* ═══════════════════════════════════════════════════════════
   FLASH / ALERT MESSAGES
═══════════════════════════════════════════════════════════ */
.flash-success {
    background: #f0fff4;
    border: 1.5px solid #c6f6d5;
    color: #276749;
    border-radius: 10px;
    padding: 13px 18px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 14px;
}

.flash-success .flash-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: #276749;
    font-size: 15px;
    line-height: 1;
}

.alert-error-box {
    background: #fff5f5;
    border: 1.5px solid #fed7d7;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 22px;
}

.alert-error-box .alert-title {
    font-weight: 700;
    color: #c53030;
    font-size: 14px;
    margin-bottom: 8px;
}

.alert-error-box .alert-item {
    color: #c53030;
    font-size: 13px;
    padding: 2px 0;
}

.alert-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff5f5;
    border: 1.5px solid #fed7d7;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 22px;
    font-size: 13.5px;
    color: #c53030;
    font-weight: 500;
}


/* ═══════════════════════════════════════════════════════════
   QUICK ACTION CARDS  (dashboard)
═══════════════════════════════════════════════════════════ */
.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 28px;
}

.quick-action-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: #fff;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    text-decoration: none;
    transition: all 0.18s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.quick-action-card:hover {
    border-color: var(--teal);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(63, 154, 174, 0.14);
}

.quick-action-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.quick-action-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-action-sub {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}


/* ═══════════════════════════════════════════════════════════
   RECENT POSTS TABLE  (dashboard)
═══════════════════════════════════════════════════════════ */
.recent-posts-box {
    background: #fff;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(15, 40, 84, 0.05);
}

.recent-posts-head {
    padding: 18px 24px;
    border-bottom: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.recent-posts-title {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
}

.recent-posts-viewall {
    font-size: 13px;
    color: var(--teal);
    font-weight: 600;
    text-decoration: none;
}

.recent-posts-viewall:hover {
    text-decoration: underline;
}

.recent-post-row {
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    transition: background 0.15s;
}

.recent-post-row:hover {
    background: #fafcff;
}

.recent-post-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--teal-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-info {
    flex: 1;
    min-width: 0;
}

.recent-post-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-post-meta {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 3px;
}

.recent-post-empty {
    text-align: center;
    padding: 56px 24px;
}


/* ═══════════════════════════════════════════════════════════
   STATUS BADGE  (used in dashboard and post list)
═══════════════════════════════════════════════════════════ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11.5px;
    font-weight: 700;
    flex-shrink: 0;
    white-space: nowrap;
}

.badge-approved {
    background: #ddf5dd;
    color: #2d7a4f;
}

.badge-pending {
    background: #fff3d5;
    color: #b7720a;
}

.badge-rejected {
    background: #ffd5d5;
    color: #e53e3e;
}

.badge-draft {
    background: #ede9fe;
    color: #7c4dff;
}


/* ═══════════════════════════════════════════════════════════
   ACTION BUTTONS  (small, used in post rows)
═══════════════════════════════════════════════════════════ */
.btn-edit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    background: var(--teal-light);
    color: var(--teal);
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
}

.btn-edit:hover {
    background: #a8d8e8;
}

.btn-view-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    background: #d5eaff;
    color: #0a66c2;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
}

.btn-view-live:hover {
    background: #bdd8f8;
}

.btn-delete {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    background: #fff5f5;
    color: var(--error);
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    border: 1.5px solid #fed7d7;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
}

.btn-delete:hover {
    background: #ffd5d5;
}


/* ═══════════════════════════════════════════════════════════
   POST CARD  (my posts list)
═══════════════════════════════════════════════════════════ */
.post-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    overflow: hidden;
    display: flex;
    transition: all 0.18s;
    box-shadow: 0 2px 8px rgba(15, 40, 84, 0.04);
}

.post-card:hover {
    border-color: var(--teal-light);
    box-shadow: 0 6px 22px rgba(63, 154, 174, 0.1);
}

.post-thumb {
    width: 110px;
    flex-shrink: 0;
    background: var(--teal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
}

.post-thumb img {
    width: 110px;
    height: 100%;
    min-height: 110px;
    object-fit: cover;
    display: block;
}

.post-body {
    flex: 1;
    padding: 16px 20px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.post-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.post-title {
    font-family: 'Playfair Display', serif;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--navy);
    flex: 1;
    min-width: 0;
    line-height: 1.35;
}

.post-meta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-light);
}

.post-meta-row i {
    color: var(--teal);
    margin-right: 3px;
}

.post-excerpt {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-rejection-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 12.5px;
    color: #c53030;
    font-weight: 500;
}

.post-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}


/* ═══════════════════════════════════════════════════════════
   STATUS TABS  (my posts filter)
═══════════════════════════════════════════════════════════ */
.status-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-bottom: 24px;
    padding-bottom: 4px;
}

.status-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.18s;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--text-mid);
}

.status-tab .tab-count {
    background: var(--bg);
    color: var(--text-light);
    border-radius: 100px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 700;
}

/* Active states per status */
.status-tab.active-all {
    background: var(--teal-pale);
    color: var(--teal);
    border-color: rgba(63, 154, 174, 0.4);
}

.status-tab.active-approved {
    background: #f0fff4;
    color: #2d7a4f;
    border-color: rgba(45, 122, 79, 0.4);
}

.status-tab.active-pending {
    background: #fffbeb;
    color: #b7720a;
    border-color: rgba(183, 114, 10, 0.4);
}

.status-tab.active-rejected {
    background: #fff5f5;
    color: #e53e3e;
    border-color: rgba(229, 62, 62, 0.4);
}

.status-tab.active-draft {
    background: #faf5ff;
    color: #7c4dff;
    border-color: rgba(124, 77, 255, 0.4);
}


/* ═══════════════════════════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════════════════════════ */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    background: #fff;
    border-radius: var(--radius);
    border: 1.5px dashed var(--border);
}

.empty-state-icon {
    font-size: 48px;
    color: var(--teal);
    opacity: 0.18;
    display: block;
    margin-bottom: 18px;
}

.empty-state h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--navy);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-light);
    font-size: 14.5px;
    margin-bottom: 22px;
}


/* ═══════════════════════════════════════════════════════════
   BLOG FORM  (create / edit)
═══════════════════════════════════════════════════════════ */
.blog-form-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
}

.blog-form-col-left {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.blog-form-col-right {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    padding: 22px 24px;
}

.form-card-sm {
    background: #fff;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    padding: 20px;
}

.form-label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: var(--navy);
    margin-bottom: 8px;
}

.form-label-note {
    font-weight: 400;
    color: var(--text-light);
    font-size: 12px;
}

.form-label-req {
    color: var(--error);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: var(--teal);
}

.form-input.is-err {
    border-color: var(--error);
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    color: var(--text-dark);
    outline: none;
    resize: vertical;
    transition: border-color 0.2s;
    line-height: 1.7;
    box-sizing: border-box;
}

.form-textarea:focus {
    border-color: var(--teal);
}

.form-select {
    width: 100%;
    padding: 11px 36px 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    color: var(--text-dark);
    outline: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 14px center;
    appearance: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-select:focus {
    border-color: var(--teal);
}

.form-error {
    color: var(--error);
    font-size: 12px;
    margin-top: 6px;
}

.excerpt-counter {
    text-align: right;
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
}

/* Image upload dropzone */
.img-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 16px;
    border: 2px dashed var(--border);
    border-radius: 10px;
    cursor: pointer;
    background: var(--bg);
    transition: all 0.2s;
    text-align: center;
}

.img-dropzone:hover {
    border-color: var(--teal);
    background: var(--teal-pale);
}

.img-dropzone-icon {
    font-size: 28px;
    color: var(--teal);
    opacity: 0.5;
    display: block;
    margin-bottom: 6px;
}

.img-dropzone-text {
    font-size: 13px;
    color: var(--text-light);
}

.img-preview {
    display: none;
    max-width: 100%;
    border-radius: 8px;
    max-height: 140px;
    object-fit: cover;
}

.img-current-wrap {
    margin-bottom: 12px;
    border-radius: 9px;
    overflow: hidden;
    border: 1.5px solid var(--border);
}

.img-current-wrap img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}

.img-current-label {
    padding: 6px 10px;
    background: var(--bg);
    font-size: 11.5px;
    color: var(--text-light);
    text-align: center;
}

/* Publish / submit box */
.publish-box {}

.publish-box-title {
    font-weight: 700;
    font-size: 13px;
    color: var(--navy);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.publish-box-title i {
    color: var(--teal);
}

.btn-submit-review {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    background: var(--teal);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: background 0.2s;
    margin-bottom: 10px;
}

.btn-submit-review:hover {
    background: var(--teal-hover);
}

.btn-save-draft {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 20px;
    background: #fff;
    color: var(--text-mid);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
}

.btn-save-draft:hover {
    background: var(--bg);
    border-color: #999;
}

.btn-cancel-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    color: var(--text-light);
    font-size: 13px;
    text-decoration: none;
    text-align: center;
}

.btn-cancel-link:hover {
    color: var(--error);
}

.publish-box-hint {
    font-size: 11.5px;
    color: var(--text-light);
    margin-top: 10px;
    line-height: 1.5;
    text-align: center;
}


/* ═══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — author pages
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .blog-form-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

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

    .page-hero {
        padding: 36px 16px 48px;
    }

    .page-hero-sm {
        padding: 28px 16px 36px;
    }

    .page-container {
        padding: 0 16px;
    }

    .page-container-sm {
        padding: 24px 16px 40px;
    }

    .recent-post-row {
        gap: 10px;
    }

    .post-thumb {
        width: 80px;
        min-height: 80px;
    }

    .post-thumb img {
        width: 80px;
        min-height: 80px;
    }

    .form-card {
        padding: 16px;
    }

    .form-card-sm {
        padding: 14px;
    }
}

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

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .post-thumb {
        display: none;
    }

    .hero-author-avatar {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }

    .page-hero-row {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ═══════════════════════════════════════════════════════════
   ICON FIX — ensure Font Awesome icons render everywhere
═══════════════════════════════════════════════════════════ */

/* Ensure FA icons inside buttons are never hidden */
.modal-close-btn i,
.flash-close i,
.btn-hero-cta i,
.btn-teal-cta i,
.btn-edit i,
.btn-view-live i,
.btn-delete i,
.btn-submit-review i,
.btn-save-draft i,
.btn-cancel-link i,
.mob-logout-btn i,
.nav-link i,
.m-submit-btn i,
.m-inp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", sans-serif !important;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
}

/* modal-close-btn — ensure it is always visible on top of gradient */
.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    line-height: 1;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: scale(1.08);
}

/* login noscript wrapper */
.login-noscript-wrap {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: var(--bg);
}

/* Pagination container */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Buttons */
.pagination li a,
.pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 36px;
    /* instead of fixed width */
    height: 36px;
    padding: 0 12px;
    /* allow text like "Previous" */

    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;

    color: #0f172a;
    background: #fff;
    border: 1px solid #e2e8f0;

    text-decoration: none;
    transition: all .2s;
}

/* Hover */
.pagination li a:hover {
    background: #3F9AAE;
    color: #fff;
    border-color: #3F9AAE;
}

/* Active */
.pagination li.active span {
    background: #3F9AAE;
    color: #fff;
    border-color: #3F9AAE;
}

/* Disabled */
.pagination li.disabled span {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Optional: make Previous/Next slightly bigger */
.pagination li:first-child a,
.pagination li:last-child a {
    padding: 0 14px;
    font-size: 13px;
}

/* Hide SVG arrows */
.pagination svg {
    display: none;
}