/* =========================================================
   GLOBAL FONTS
   Only Poppins and Hind are used across the website
========================================================= */

html,
body {
    font-family: "Hind", sans-serif;
}

body {
    margin: 0;
    padding: 0;
}

/* Hindi / Devanagari Content */
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div,
article,
section,
main,
label,
textarea {
    font-family: "Hind", sans-serif;
}

/* English / UI Elements */
button,
input,
select,
option,
.navbar,
.nav-link,
.menu,
.footer,
.english,
.ui-text {
    font-family: "Poppins", sans-serif;
}


/* =========================================================
   The Dastak 24 - CLEAN PUBLIC WEBSITE CSS
========================================================= */

:root {
    --primary: #7b0712;
    --primary-dark: #4a0309;
    --accent: #d71920;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --page-bg: #faf6f5;
}

html {
    scroll-behavior: smooth;
}

body:not(.admin-body) {
    margin: 0;
    padding: 0;
    width: 100%;
    background: var(--page-bg);
    color: var(--text);
    font-family: Arial, "Noto Sans Devanagari", "Noto Sans", sans-serif;
    overflow-x: hidden;
}

body:not(.admin-body) *,
body:not(.admin-body) *::before,
body:not(.admin-body) *::after {
    box-sizing: border-box;
}

body:not(.admin-body) img {
    display: block;
    max-width: 100%;
    height: auto;
}

body:not(.admin-body) a {
    color: inherit;
    text-decoration: none;
}

/* COMMON */

.container,
.site-container,
.section,
.news-section,
.home-container {
    width: 1100px;
    max-width: calc(100% - 30px);
    margin-left: auto;
    margin-right: auto;
}

/* TOP BAR */

.topbar {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e7e9ee;
}

.topbar-inner {
    width: 1100px;
    max-width: calc(100% - 40px);
    min-height: 32px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #6b7280;
    font-size: 11px;
}

.topbar-left {
    white-space: nowrap;
}

.topbar-right {
    font-weight: 600;
}

main {
    width: 100%;
    min-height: 500px;
}

/* BREAKING */

.breaking {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

.breaking-inner {
    width: 1100px;
    max-width: calc(100% - 30px);
    min-height: 42px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.breaking-label {
    min-height: 42px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    background: var(--accent);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.breaking-text {
    min-width: 0;
    padding: 0 12px;
    color: #2c3646;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* HOME TOP: HERO + LATEST NEWS */

.top-news,
.home-top {
    width: 1100px;
    max-width: calc(100% - 30px);
    margin: 18px auto 28px;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
    gap: 18px;
    align-items: stretch;
}

/* HERO */

.hero {
    width: 100%;
    min-width: 0;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(8, 25, 55, .08);
}

.hero>a {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 430px;
    overflow: hidden;
    background: #dfe3e8;
}

.hero-image>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, .88),
            rgba(0, 0, 0, .35) 48%,
            rgba(0, 0, 0, 0) 78%);
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    padding: 5px 9px;
    background: var(--accent);
    color: #ffffff;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 800;
}

.hero-content,
.hero-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 20px 22px;
    color: #ffffff;
}

.hero-content h1,
.hero-info h1,
.hero h1 {
    margin: 0 0 7px;
    color: #ffffff;
    font-size: 29px;
    line-height: 1.3;
    font-weight: 800;
}

.hero-content p {
    margin: 0;
    color: #eeeeee;
    font-size: 13px;
}

/* LATEST NEWS */

.side-news,
.side {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-card,
.side-news {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.side-card>a,
.side-news>a {
    width: 100%;
    min-height: 78px;
    display: grid;
    grid-template-columns: 115px minmax(0, 1fr);
    align-items: center;
}

.side-card>a>img,
.side-news img {
    width: 115px;
    height: 78px;
    object-fit: cover;
}

.side-card>a>div,
.side-content {
    min-width: 0;
    padding: 8px 10px;
}

.side-card span,
.side-category {
    display: block;
    margin-bottom: 3px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
}

.side-card h3,
.side-content h3 {
    margin: 0;
    color: #4d1118;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
}

.side-date {
    margin-top: 4px;
    color: #8992a2;
    font-size: 10px;
}

/* CATEGORY */

.section {
    margin-bottom: 32px;
}

.section-heading {
    min-height: 42px;
    margin-bottom: 14px;
    padding-bottom: 7px;
    border-bottom: 1px solid #dce2eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-heading h2 {
    margin: 0;
    color: #5c0911;
    font-size: 21px;
    font-weight: 800;
}

.section-heading a,
.view-all {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* GRID */

.grid,
.news-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

/* CARD */

.card,
.news-card {
    min-width: 0;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 7px;
    overflow: hidden;
}

.card>a,
.news-card>a {
    display: block;
    width: 100%;
    height: 100%;
}

.card img,
.card-image-wrap {
    width: 100%;
    height: 165px;
    object-fit: cover;
}

.card-image-wrap {
    overflow: hidden;
    background: #e9edf3;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body,
.card-content {
    padding: 10px 11px;
}

.card-category {
    display: block;
    margin-bottom: 4px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
}

.card h3,
.card-content h3 {
    margin: 0;
    color: #4d1118;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
}

.card p,
.card-content p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

/* ARTICLE */

.article {
    width: 850px;
    max-width: calc(100% - 30px);
    margin: 30px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(8, 25, 55, .08);
}

.article h1 {
    margin: 0 0 12px;
    color: #5c0911;
    font-size: 36px;
    line-height: 1.35;
}

.article .meta {
    color: var(--muted);
    font-size: 13px;
}

.cover {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    border-radius: 6px;
}

.content {
    color: #30394a;
    font-size: 18px;
    line-height: 1.9;
}

/* ARTICLE SHARE */

.article-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 0 16px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.share-label {
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.share-button {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe3ee;
    border-radius: 50%;
    background: #ffffff;
    color: #1e3a6d;
    cursor: pointer;
}

.share-button svg {
    width: 17px;
    height: 17px;
}

/* FOOTER */

.site-footer {
    width: 100%;
    margin-top: 45px;
    background: var(--primary-dark);
    color: #ffffff;
}

.footer-inner {
    width: 1100px;
    max-width: calc(100% - 30px);
    margin: auto;
    padding: 35px 0 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer-brand b {
    font-size: 20px;
}

.footer-brand p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .65);
    font-size: 13px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a {
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
}

.footer-bottom {
    padding-top: 18px;
    color: rgba(255, 255, 255, .55);
    font-size: 12px;
}

/* RESPONSIVE */

@media (max-width: 950px) {

    .header-inner {
        gap: 15px;
    }

    .top-news,
    .home-top {
        grid-template-columns: 1fr;
    }

    .hero-image {
        height: 380px;
    }

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

@media (max-width: 650px) {

    .container,
    .site-container,
    .section,
    .news-section,
    .home-container,
    .top-news,
    .home-top,
    .breaking-inner,
    .header-inner,
    .topbar-inner,
    .footer-inner {
        width: calc(100% - 20px);
        max-width: none;
    }

    .topbar-right {
        display: none;
    }

    .topbar-inner {
        justify-content: center;
    }

    .header-inner {
        min-height: 62px;
    }

    .logo {
        width: auto;
        min-width: auto;
    }

    .logo img {
        height: 42px;
        max-width: 130px;
    }

    .main-nav {
        display: none;
    }

    .header-actions {
        width: auto;
        min-width: auto;
        margin-left: auto;
    }

    .breaking-inner {
        min-height: 40px;
    }

    .breaking-label {
        min-height: 40px;
        padding: 0 10px;
        font-size: 11px;
    }

    .breaking-text {
        font-size: 11px;
    }

    .top-news,
    .home-top {
        display: block;
        margin-top: 12px;
    }

    .hero {
        margin-bottom: 12px;
    }

    .hero-image {
        height: 280px;
    }

    .hero-content,
    .hero-info {
        padding: 15px;
    }

    .hero-content h1,
    .hero-info h1,
    .hero h1 {
        font-size: 21px;
    }

    .hero-content p {
        display: none;
    }

    .side-card>a,
    .side-news>a {
        grid-template-columns: 90px minmax(0, 1fr);
        min-height: 80px;
    }

    .side-card>a>img,
    .side-news img {
        width: 90px;
        height: 80px;
    }

    .section-heading h2 {
        font-size: 19px;
    }

    .grid,
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .card img,
    .card-image-wrap {
        height: 140px;
    }

    .card-body,
    .card-content {
        padding: 8px;
    }

    .card h3,
    .card-content h3 {
        font-size: 13px;
    }

    .card p,
    .card-content p {
        display: none;
    }

    .article {
        width: calc(100% - 20px);
        padding: 18px;
    }

    .article h1 {
        font-size: 27px;
    }

    .content {
        font-size: 16px;
    }

    .footer-top {
        flex-direction: column;
    }

    .article-share {
        gap: 8px;
    }

    .share-button {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 420px) {

    .grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .card img,
    .card-image-wrap {
        height: 190px;
    }

    .hero-image {
        height: 250px;
    }
}


/* =========================================================
   The Dastak 24 - ADMIN PANEL
   ========================================================= */


/* =========================================================
   ADMIN BODY
   ========================================================= */

.admin-body {
    margin: 0;
    padding: 0;
    background: #f9f4f3;
    font-family: Arial, "Noto Sans Devanagari", sans-serif;
    color: #1f2937;
}

.admin-body * {
    box-sizing: border-box;
}


/* =========================================================
   MAIN ADMIN LAYOUT
   ========================================================= */

.admin-layout {
    width: 100%;
    min-height: 100vh;
    display: flex;
    background: #f9f4f3;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.admin-sidebar {
    width: 220px;
    min-width: 220px;
    height: 100vh;

    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;

    display: flex;
    flex-direction: column;

    background: #650711;
    color: #ffffff;

    z-index: 1000;
}


/* =========================================================
   SIDEBAR LOGO
   ========================================================= */

.admin-sidebar-logo {
    height: 150px;

    padding: 32px 36px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-logo-title {
    color: #ffffff;

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

    letter-spacing: 1px;
}

.admin-logo-subtitle {
    margin-top: 5px;

    color: #aeb9d3;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1px;
}


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

.admin-sidebar-content {
    flex: 1;

    overflow-y: auto;

    padding: 26px 16px;
}

.admin-sidebar-content::-webkit-scrollbar {
    width: 4px;
}

.admin-sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.admin-sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
}


/* =========================================================
   MENU SECTION
   ========================================================= */

.admin-menu-section {
    margin-bottom: 30px;
}

.admin-menu-label {
    padding: 0 18px;
    margin-bottom: 10px;

    color: #7e89aa;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1px;
}


/* =========================================================
   MENU ITEMS
   ========================================================= */

.admin-menu-item {
    width: 100%;
    min-height: 40px;

    margin: 4px 0;
    padding: 10px 14px;

    display: flex;
    align-items: center;

    gap: 11px;

    border-radius: 7px;

    color: #cbd3e8;
    text-decoration: none;

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

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

.admin-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.admin-menu-item.active {
    background: #9a2631;
    color: #ffffff;
}

.admin-menu-icon {
    width: 18px;
    min-width: 18px;

    text-align: center;

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


/* =========================================================
   SIDEBAR BOTTOM
   ========================================================= */

.admin-sidebar-bottom {
    padding: 14px 16px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-view-website-link {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 8px 10px;

    border-radius: 7px;

    color: #d7deee;
    text-decoration: none;

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

    transition: background 0.2s ease;
}

.admin-view-website-link:hover {
    background: rgba(255, 255, 255, 0.07);
}

.admin-bottom-icon {
    width: 28px;
    height: 28px;

    border-radius: 50%;

    background: #0d153b;

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

    color: #ffffff;

    font-size: 11px;
    font-weight: 700;
}


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

.admin-main {
    width: calc(100% - 220px);
    min-height: 100vh;

    margin-left: 220px;

    background: #f9f4f3;
}


/* =========================================================
   TOPBAR
   ========================================================= */

.admin-topbar {
    height: 138px;

    padding: 0 38px;

    background: #ffffff;

    border-bottom: 1px solid #dce1e8;

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

.admin-topbar-brand {
    display: flex;
    flex-direction: column;
}

.admin-topbar-brand span {
    color: #6f7785;

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

    margin-bottom: 4px;
}

.admin-topbar-brand b {
    color: #1f2937;

    font-size: 15px;
    font-weight: 700;
}


/* =========================================================
   ADMIN USER
   ========================================================= */

.admin-user-area {
    display: flex;
    align-items: center;

    gap: 12px;
}

.admin-user-text {
    text-align: right;
}

.admin-user-text b {
    display: block;

    color: #263244;

    font-size: 12px;
    font-weight: 700;
}

.admin-user-text span {
    display: block;

    margin-top: 4px;

    color: #8b94a3;

    font-size: 10px;
}

.admin-user-avatar {
    width: 36px;
    height: 36px;

    border-radius: 50%;

    background: #245a72;

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

    color: #ffffff;

    font-size: 12px;
    font-weight: 700;
}


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

.admin-page-content {
    min-height: calc(100vh - 138px);

    padding: 38px 70px 60px;

    background: #f9f4f3;
}


/* =========================================================
   DASHBOARD PAGE
   ========================================================= */

.admin-dashboard-page {
    width: 100%;
    max-width: 1000px;

    margin: 0 auto;
}


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

.dashboard-page-header {
    width: 100%;

    padding-bottom: 24px;
    margin-bottom: 22px;

    border-bottom: 1px solid #dfe3e9;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.dashboard-page-header h1 {
    margin: 0;

    color: #202c3e;

    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
}

.dashboard-page-header p {
    margin: 9px 0 0;

    color: #7b8493;

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

.dashboard-view-site-btn {
    padding: 10px 18px;

    background: #ffffff;

    border: 1px solid #cfd5de;
    border-radius: 7px;

    color: #273244;
    text-decoration: none;

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

    white-space: nowrap;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.dashboard-view-site-btn:hover {
    background: #f1f3f6;
    border-color: #bfc7d2;
}


/* =========================================================
   DASHBOARD STATISTICS
   ========================================================= */

.dashboard-stats-grid {
    display: grid;

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

    gap: 14px;

    margin-bottom: 20px;
}

.dashboard-stat-box {
    min-height: 86px;

    padding: 17px;

    background: #ffffff;

    border: 1px solid #e0e4ea;
    border-radius: 14px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.035);

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-stat-box span {
    margin-bottom: 9px;

    color: #707988;

    font-size: 11px;
    font-weight: 500;
}

.dashboard-stat-box b {
    color: #202b3b;

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

.dashboard-stat-box .stat-blue {
    color: #3165b2;
}

.dashboard-stat-box .stat-green {
    color: #24845a;
}

.dashboard-stat-box .stat-yellow {
    color: #a37a00;
}

.dashboard-stat-box .stat-red {
    color: #b73535;
}


/* =========================================================
   DASHBOARD ACTIONS GRID
   ========================================================= */

.dashboard-actions-grid {
    display: grid;

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

    gap: 14px;
}


/* =========================================================
   DASHBOARD ACTION CARD
   ========================================================= */

.dashboard-action-card {
    min-height: 128px;

    padding: 20px;

    background: #ffffff;

    border: 1px solid #e0e4ea;
    border-radius: 14px;

    text-decoration: none;

    color: #243043;

    display: flex;
    flex-direction: column;
    justify-content: center;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.025);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.dashboard-action-card:hover {
    transform: translateY(-2px);

    border-color: #d4d9e0;

    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.dashboard-action-primary {
    background: #f90f16;

    border-color: #f90f16;

    color: #ffffff;
}


/* =========================================================
   ACTION ICON
   ========================================================= */

.dashboard-action-icon {
    width: 34px;
    height: 34px;

    margin-bottom: 13px;

    border-radius: 9px;

    background: #eef1f4;

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

    color: #5c6472;

    font-size: 18px;
    line-height: 1;
}

.dashboard-action-primary .dashboard-action-icon {
    background: rgba(255, 255, 255, 0.16);

    color: #ffffff;
}

.dashboard-icon-blue {
    color: #36708d;
}

.dashboard-icon-red {
    color: #bd4343;
}

.dashboard-icon-dark {
    color: #364152;
}


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

.dashboard-action-content h3 {
    margin: 0 0 7px;

    color: inherit;

    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
}

.dashboard-action-content p {
    margin: 0;

    color: #7a8493;

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

.dashboard-action-primary .dashboard-action-content p {
    color: rgba(255, 255, 255, 0.88);
}


/* =========================================================
   TABLET RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {

    .admin-page-content {
        padding: 35px 40px 50px;
    }

    .admin-dashboard-page {
        max-width: 100%;
    }

    .dashboard-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-actions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   SMALL TABLET
   ========================================================= */

@media (max-width: 800px) {

    .admin-sidebar {
        width: 75px;
        min-width: 75px;
    }

    .admin-sidebar-logo {
        padding: 30px 10px;

        text-align: center;
    }

    .admin-logo-title {
        font-size: 20px;
    }

    .admin-logo-subtitle {
        display: none;
    }

    .admin-menu-label {
        display: none;
    }

    .admin-menu-item {
        justify-content: center;

        padding: 12px 8px;
    }

    .admin-menu-item span:last-child {
        display: none;
    }

    .admin-main {
        width: calc(100% - 75px);

        margin-left: 75px;
    }

    .admin-page-content {
        padding: 30px 25px;
    }

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


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .admin-layout {
        display: block;
    }

    .admin-sidebar {
        width: 100%;
        min-width: 100%;
        height: auto;

        position: relative;
    }

    .admin-sidebar-logo {
        height: 80px;

        padding: 20px;

        text-align: left;
    }

    .admin-sidebar-content {
        padding: 10px;

        display: flex;

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

    .admin-menu-section {
        display: flex;

        margin: 0;
    }

    .admin-menu-label {
        display: none;
    }

    .admin-menu-item {
        width: auto;

        margin: 0 3px;

        white-space: nowrap;
    }

    .admin-menu-item span:last-child {
        display: inline;
    }

    .admin-sidebar-bottom {
        display: none;
    }

    .admin-main {
        width: 100%;

        margin-left: 0;
    }

    .admin-topbar {
        height: 80px;

        padding: 0 20px;
    }

    .admin-page-content {

        padding: 25px 15px;
    }

    .dashboard-page-header {
        flex-direction: column;

        gap: 20px;
    }

    .dashboard-page-header h1 {
        font-size: 24px;
    }

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

        gap: 10px;
    }

    .dashboard-stat-box {
        min-height: 80px;
    }

    .dashboard-actions-grid {
        grid-template-columns: 1fr;

        gap: 10px;
    }

    .admin-user-text {
        display: none;
    }
}

/* =========================================
   ADMIN - MANAGE NEWS PAGE
========================================= */

.admin-news-page {
    width: 100%;
}


/* PAGE HEADER */

.admin-news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
}

.admin-news-header h1 {
    margin: 0 0 7px;
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
}

.admin-news-header p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}


/* ADD NEWS BUTTON */

.admin-add-news-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: #ef1717;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
}

.admin-add-news-btn:hover {
    background: #d90d0d;
    color: #ffffff;
    transform: translateY(-1px);
}

.admin-add-news-btn span {
    font-size: 20px;
    line-height: 1;
}


/* SUCCESS MESSAGE */

.admin-success-message {
    margin-bottom: 20px;
    padding: 14px 18px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    color: #047857;
    font-size: 14px;
}


/* TABLE WRAPPER */

.admin-news-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}


/* TABLE */

.admin-news-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 850px;
}

.admin-news-table thead {
    background: #f8fafc;
}

.admin-news-table th {
    padding: 16px 18px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 1px solid #e5e7eb;
}

.admin-news-table td {
    padding: 17px 18px;
    border-bottom: 1px solid #eef0f2;
    vertical-align: middle;
}

.admin-news-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-news-table tbody tr:hover {
    background: #fafafa;
}


/* NEWS TITLE */

.admin-news-title-cell {
    min-width: 450px;
}

.admin-news-title-cell strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.5;
}

.admin-news-title-cell span {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6b7280;
}


/* STATUS */

.admin-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    background: #ecfdf5;
    color: #047857;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
}


/* DATE */

.admin-news-date {
    color: #64748b;
    font-size: 13px;
    white-space: nowrap;
}


/* ACTIONS */

.admin-news-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.admin-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: 0.2s ease;
}


/* EDIT */

.admin-edit-btn {
    background: #1f2937;
    color: #ffffff;
}

.admin-edit-btn:hover {
    background: #111827;
    color: #ffffff;
}


/* VIEW */

.admin-view-btn {
    background: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
}

.admin-view-btn:hover {
    background: #f3f4f6;
    color: #111827;
}


/* DELETE */

.admin-delete-form {
    display: inline-block;
    margin: 0;
}

.admin-delete-btn {
    background: #ef1717;
    color: #ffffff;
}

.admin-delete-btn:hover {
    background: #d90d0d;
}


/* EMPTY STATE */

.admin-empty-news {
    padding: 60px 20px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.admin-empty-news h3 {
    margin: 0 0 8px;
    color: #1f2937;
}

.admin-empty-news p {
    margin: 0;
    color: #6b7280;
}


/* MOBILE */

@media (max-width: 700px) {

    .admin-news-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-news-header h1 {
        font-size: 24px;
    }

    .admin-add-news-btn {
        width: 100%;
        justify-content: center;
    }

}

/* =========================================
   CREATE NEWS PAGE
========================================= */

.page {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.page h1 {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 700;
    color: #1f2937;
}

.page>p {
    margin: 0 0 25px;
}

.page>p a {
    color: #c51626;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.page>p a:hover {
    text-decoration: underline;
}

.page form {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.page form label {
    display: inline-block;
    margin-bottom: 7px;
    color: #374151;
    font-size: 14px;
}

.page form input[type="text"],
.page form input:not([type]),
.page form select,
.page form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 13px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    background: #ffffff;
}

.page form input[type="text"]:focus,
.page form input:not([type]):focus,
.page form select:focus,
.page form textarea:focus {
    border-color: #d71920;
    box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.08);
}

.page form small {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 12px;
}

.page form hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 30px 0;
}

.page form h2 {
    margin: 0 0 20px;
    color: #1f2937;
    font-size: 20px;
}

/* File Upload */

.page form input[type="file"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}

/* CKEditor */

.page .ck.ck-editor {
    width: 100%;
}

.page .ck-editor__editable {
    min-height: 350px;
}

/* Checkbox */

.page form input[type="checkbox"] {
    width: 17px;
    height: 17px;
    vertical-align: middle;
    margin-right: 7px;
}

/* Submit Button */

.page form button[type="submit"] {
    min-width: 150px;
    padding: 12px 25px !important;
    border-radius: 7px !important;
    font-weight: 600;
    transition: 0.2s ease;
}

.page form button[type="submit"]:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Image Preview */

#imagePreviewBox {
    padding: 15px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}


/* =========================================
   HEADER FINAL FIX
========================================= */

.site-header {
    background: #7f0b15;
    width: 100%;
    position: relative;
    z-index: 1000;
}

.header-inner {
    max-width: 1280px;
    min-height: 72px;
    margin: 0 auto;
    padding: 0 18px;

    display: flex;
    align-items: center;
    gap: 22px;

    overflow: visible;
}


/* =========================================
   LOGO
========================================= */

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;

    text-decoration: none;
    color: white;
}

.logo-image-box {
    width: 120px;
    height: 58px;

    margin: 0;
    padding: 0;

    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;

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

    overflow: visible;
    flex-shrink: 0;
}

.logo-image-box img {
    width: 120px;
    height: 58px;

    margin: 0;
    padding: 0;

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

    display: block;
}

.logo-text {
    display: none !important;
}


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

.main-nav {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;

    min-width: 0;

    overflow: visible;
    white-space: nowrap;
}

.main-nav a {
    color: white;

    text-decoration: none;

    display: flex;
    align-items: center;
    gap: 5px;

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

    padding: 25px 0;

    flex-shrink: 0;
}

.main-nav a:hover,
.main-nav a.nav-active {
    color: #facc15;
}

.nav-chevron {
    width: 15px;
    height: 15px;

    display: inline-block;
}


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

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;

    flex-shrink: 0;
}

.header-icon-button,
.header-profile {
    display: flex;
    align-items: center;
    justify-content: center;

    color: white;

    text-decoration: none;
}

.header-icon-button svg,
.header-profile svg {
    width: 21px;
    height: 21px;

    stroke: white !important;
}

.header-icon-button:hover svg,
.header-profile:hover svg {
    stroke: #facc15 !important;
}


/* =========================================
   MOBILE MENU BUTTON
========================================= */

.mobile-menu-button {
    display: none;

    width: 42px;
    height: 42px;

    border: none;
    background: white;

    color: #7f0b15;

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

    cursor: pointer;

    flex-shrink: 0;
}

.mobile-menu-button svg {
    width: 24px;
    height: 24px;
}


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

@media (max-width: 900px) {

    .header-inner {
        min-height: 74px;
        padding: 0 12px;
        gap: 12px;

        justify-content: space-between;
    }


    /* MOBILE LOGO */

    .logo-image-box {
        width: 110px;
        height: 58px;

        margin: 0;
        padding: 0;

        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;

        overflow: visible;
    }

    .logo-image-box img {
        width: 110px;
        height: 58px;
        object-fit: contain;
        object-position: left center;
    }

    .logo-text {
        display: none !important;
    }


    /* ICONS */

    .header-actions {
        margin-left: auto;
        gap: 12px;
    }


    /* MOBILE BUTTON */

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


    /* NAV HIDDEN BY DEFAULT */

    .main-nav {
        display: none;

        position: absolute;

        top: 100%;
        left: 0;
        right: 0;

        width: 100%;

        background: white;

        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 8px 0;

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

        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);

        white-space: normal;

        overflow: visible;
    }


    /* MENU OPEN */

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


    /* MOBILE MENU LINKS */

    .main-nav a {
        color: #7f0b15;

        width: 100%;

        min-height: 48px;

        padding: 0 20px;

        justify-content: space-between;

        border-bottom: 1px solid #eeeeee;

        font-size: 15px;
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    .main-nav a:hover,
    .main-nav a.nav-active {
        background: #f3f4f6;
        color: #d71920;
    }


    .nav-chevron {
        color: #7f0b15;
    }

    .main-nav a:hover .nav-chevron {
        color: #d71920;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .site-header {
        min-height: 68px;
    }

    .header-inner {
        min-height: 68px;
        padding: 0 10px;
    }

    .logo-image-box {
        width: 100px;
        height: 52px;

        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;

        overflow: visible;
    }

    .logo-image-box img {
        width: 100px;
        height: 52px;
        object-fit: contain;
        object-position: left center;
    }

    .header-actions {
        gap: 9px;
    }

    .header-icon-button svg,
    .header-profile svg {
        width: 20px;
        height: 20px;
    }

    .mobile-menu-button {
        width: 38px;
        height: 38px;
    }
}

/* =========================================================
   The Dastak 24 - FINAL HEADER / CATEGORY COLOR FIX
   केवल HEADER और MOBILE CATEGORY MENU
========================================================= */

/* ---------- DESKTOP HEADER ---------- */

@media (min-width: 901px) {

    .site-header {
        background: #7f0b15 !important;
    }

    .main-nav {
        display: flex !important;
        background: transparent !important;
    }

    .main-nav a {
        color: #ffffff !important;
        background: transparent !important;
        opacity: 1 !important;
        visibility: visible !important;
        font-weight: 600 !important;
    }

    .main-nav a:visited {
        color: #ffffff !important;
    }

    .main-nav a:hover,
    .main-nav a.nav-active {
        color: #ffffff !important;
        background: transparent !important;
    }

    .main-nav .nav-chevron,
    .main-nav a svg {
        color: #ffffff !important;
        stroke: #ffffff !important;
    }

    .header-icon-button,
    .header-profile {
        color: #ffffff !important;
    }

    .header-icon-button svg,
    .header-profile svg {
        color: #ffffff !important;
        stroke: #ffffff !important;
    }
}


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

@media (max-width: 900px) {

    .site-header {
        width: 100% !important;
        background: #7f0b15 !important;
        position: relative !important;
        z-index: 9999 !important;
    }

    .header-inner {
        width: 100% !important;
        min-height: 68px !important;
        padding: 0 12px !important;

        background: #7f0b15 !important;

        display: flex !important;
        align-items: center !important;
    }


    /* ---------- MOBILE CATEGORY CLOSED ---------- */

    .main-nav {
        display: none !important;
    }


    /* ---------- MOBILE CATEGORY OPEN ---------- */

    .main-nav.mobile-nav-open {
        display: flex !important;

        flex-direction: column !important;
        align-items: stretch !important;

        position: fixed !important;

        top: 68px !important;
        left: 0 !important;
        right: 0 !important;

        width: 100% !important;
        max-height: calc(100vh - 68px) !important;

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

        background: #ffffff !important;

        border: none !important;
        border-top: 1px solid #e5e7eb !important;

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

        box-shadow: 0 8px 25px rgba(0, 0, 0, .18) !important;

        z-index: 1000000 !important;
    }


    /* ---------- MOBILE CATEGORY LINKS ---------- */

    .main-nav.mobile-nav-open a {
        display: flex !important;

        width: 100% !important;
        min-height: 50px !important;

        padding: 0 18px !important;

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

        background: #ffffff !important;
        color: #7f0b15 !important;

        opacity: 1 !important;
        visibility: visible !important;

        font-size: 15px !important;
        font-weight: 600 !important;

        border-bottom: 1px solid #e5e7eb !important;

        text-decoration: none !important;
    }


    /* ---------- MOBILE HOVER ---------- */

    .main-nav.mobile-nav-open a:hover {
        background: #f5f6f8 !important;
        color: #d71920 !important;
    }


    /* ---------- MOBILE ACTIVE ---------- */

    .main-nav.mobile-nav-open a.nav-active {
        background: #f8f8f8 !important;
        color: #d71920 !important;

        border-left: 4px solid #d71920 !important;
    }


    /* ---------- MOBILE ARROWS ---------- */

    .main-nav.mobile-nav-open .nav-chevron,
    .main-nav.mobile-nav-open a svg {
        color: #7f0b15 !important;
        stroke: #7f0b15 !important;

        width: 17px !important;
        height: 17px !important;
    }


    /* ---------- MOBILE MENU BUTTON ---------- */

    .mobile-menu-button {
        display: flex !important;

        width: 40px !important;
        height: 40px !important;

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

        background: #ffffff !important;
        color: #7f0b15 !important;

        border: none !important;
        border-radius: 4px !important;

        z-index: 1000001 !important;
    }

    .mobile-menu-button svg {
        color: #7f0b15 !important;
        stroke: #7f0b15 !important;
    }


    /* ---------- MOBILE HEADER ICONS ---------- */

    .header-icon-button,
    .header-profile {
        color: #ffffff !important;
    }

    .header-icon-button svg,
    .header-profile svg {
        color: #ffffff !important;
        stroke: #ffffff !important;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .header-inner {
        min-height: 64px !important;
        padding: 0 10px !important;
    }

    .main-nav.mobile-nav-open {
        top: 64px !important;
        max-height: calc(100vh - 64px) !important;
    }

    .main-nav.mobile-nav-open a {
        min-height: 48px !important;
        padding: 0 16px !important;
        font-size: 14px !important;
    }

    .mobile-menu-button {
        width: 38px !important;
        height: 38px !important;
    }
}

/* =========================================================
   CONTACT PAGE
   Contact page styling is scoped inside Views/Contact/Contact.cshtml
   to avoid duplicate/conflicting global CSS.
========================================================= */

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

.category-page {
    padding: 35px 0 70px;
}

.category-page .container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Hind", sans-serif;
    font-size: 15px;
    margin-bottom: 22px;
    color: #777;
}

.breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: 0.2s ease;
}

.breadcrumb a:hover {
    color: #e11d48;
}

.breadcrumb span:last-child {
    color: #111;
}


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

.category-header {
    padding-bottom: 25px;
    margin-bottom: 35px;
    border-bottom: 1px solid #e5e5e5;
}

.category-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.category-title-row h1 {
    margin: 0;
    font-family: "Hind", sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    color: #111;
}

.news-count {
    display: inline-flex;
    align-items: center;
    padding: 5px 13px;
    border-radius: 50px;
    background: #f3f4f6;
    font-family: "Hind", sans-serif;
    font-size: 14px;
    color: #555;
}

.category-description {
    max-width: 780px;
    margin: 12px 0 0;
    font-family: "Hind", sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: #666;
}


/* =========================================================
   FEATURED CATEGORY NEWS
========================================================= */

.category-featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    margin-bottom: 55px;
    padding-bottom: 45px;
    border-bottom: 1px solid #e5e5e5;
}

.category-featured-image {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 16 / 10;
    background: #f3f4f6;
}

.category-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.category-featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    font-family: "Hind", sans-serif;
    font-size: 14px;
}

.category-label {
    color: #e11d48;
    text-decoration: none;
    font-weight: 600;
}

.breaking-label {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 4px;
    background: #e11d48;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.category-featured-content h2 {
    margin: 0 0 14px;
    font-family: "Hind", sans-serif;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.3;
}

.category-featured-content h2 a {
    color: #111;
    text-decoration: none;
}

.category-featured-content h2 a:hover {
    color: #e11d48;
}

.category-featured-content>p {
    margin: 0 0 20px;
    font-family: "Hind", sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: #666;
}

.featured-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #777;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
}

.featured-footer span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}


/* =========================================================
   ALL NEWS HEADING
========================================================= */

.category-news-section {
    margin-top: 10px;
}

.category-news-section .section-heading {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.category-news-section .section-heading h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: "Hind", sans-serif;
    font-size: 27px;
    color: #111;
}

.category-news-section .section-heading h2 span {
    width: 5px;
    height: 28px;
    border-radius: 4px;
    background: #e11d48;
}


/* =========================================================
   CATEGORY NEWS GRID
========================================================= */

.category-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.category-news-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.category-news-image {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 16 / 10;
    background: #f3f4f6;
}

.category-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-news-card:hover .category-news-image img {
    transform: scale(1.05);
}

.category-news-content {
    padding-top: 15px;
}

.category-news-content .news-meta {
    margin-bottom: 8px;
    color: #777;
    font-size: 13px;
}

.category-news-content h3 {
    margin: 0 0 10px;
    font-family: "Hind", sans-serif;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.45;
}

.category-news-content h3 a {
    color: #161616;
    text-decoration: none;
}

.category-news-content h3 a:hover {
    color: #e11d48;
}

.category-news-content p {
    margin: 0;
    font-family: "Hind", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #666;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.news-card-footer {
    margin-top: 13px;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    color: #888;
}

.news-card-footer span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


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

.image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 250px;

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

    background: #f1f1f1;
    color: #999;

    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
}

.image-placeholder.small {
    min-height: 180px;
    font-size: 12px;
}


/* =========================================================
   PAGINATION
========================================================= */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 55px;
}

.pagination-number,
.pagination-button {
    width: 42px;
    height: 42px;

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

    border: 1px solid #e1e1e1;
    border-radius: 8px;

    background: #fff;
    color: #222;

    text-decoration: none;

    font-family: "Poppins", sans-serif;
    font-size: 14px;

    transition: 0.2s ease;
}

.pagination-number:hover,
.pagination-button:hover {
    border-color: #e11d48;
    color: #e11d48;
}

.pagination-number.active {
    background: #e11d48;
    border-color: #e11d48;
    color: #fff;
}

.pagination-button.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}


/* =========================================================
   EMPTY NEWS
========================================================= */

.empty-news {
    padding: 90px 20px;
    text-align: center;
}

.empty-news-icon {
    font-size: 45px;
    color: #bbb;
    margin-bottom: 18px;
}

.empty-news h2 {
    margin: 0 0 10px;
    font-family: "Hind", sans-serif;
    font-size: 28px;
}

.empty-news p {
    margin: 0 0 25px;
    font-family: "Hind", sans-serif;
    color: #777;
}

.back-home-button {
    display: inline-flex;
    padding: 11px 22px;
    border-radius: 7px;

    background: #e11d48;
    color: #fff;

    text-decoration: none;

    font-family: "Hind", sans-serif;
    font-size: 16px;
}

.back-home-button:hover {
    opacity: 0.9;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .category-featured {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .category-featured-content {
        display: block;
    }

    .category-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .category-page {
        padding: 22px 0 50px;
    }

    .category-page .container {
        width: min(100% - 24px, 1180px);
    }

    .breadcrumb {
        font-size: 14px;
        margin-bottom: 16px;
    }

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

    .category-title-row h1 {
        font-size: 32px;
    }

    .category-description {
        font-size: 16px;
    }

    .category-featured {
        margin-bottom: 35px;
        padding-bottom: 30px;
    }

    .category-featured-content h2 {
        font-size: 27px;
    }

    .category-featured-content>p {
        font-size: 16px;
    }

    .featured-footer {
        font-size: 11px;
        gap: 14px;
    }

    .category-news-section .section-heading h2 {
        font-size: 24px;
    }

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

    .category-news-content h3 {
        font-size: 22px;
    }

    .pagination {
        margin-top: 40px;
    }

    .pagination-number,
    .pagination-button {
        width: 38px;
        height: 38px;
    }
}

/* =========================================================
   The Dastak 24
   HEADER CATEGORY DROPDOWN
   FINAL CLICK ONLY
========================================================= */


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

.site-header,
.header-inner,
.main-nav,
#mainNav {
    overflow: visible !important;
}


/* =========================================================
   DROPDOWN WRAPPER
========================================================= */

.main-nav .nav-dropdown {
    position: relative;
    z-index: 9999;
}


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

.main-nav .nav-dropdown-main {
    cursor: pointer;
    position: relative;
    z-index: 10000;
}


/* =========================================================
   DESKTOP - CLOSED
========================================================= */

@media (min-width: 901px) {

    .main-nav .nav-dropdown .nav-dropdown-menu {
        position: absolute !important;
        top: calc(100% - 1px) !important;
        left: 50% !important;

        width: 240px !important;
        min-width: 220px !important;
        max-width: 300px !important;

        margin: 0 !important;
        padding: 8px !important;

        background: #ffffff !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 8px !important;
        box-shadow: 0 12px 30px rgba(8, 25, 55, .16) !important;

        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translate(-50%, 8px) !important;
        display: block !important;
        z-index: 999999;

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


    /* =====================================================
       DESKTOP - CLICK OPEN ONLY
    ===================================================== */

    .main-nav .nav-dropdown .nav-dropdown-menu.js-dropdown-open {

        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translate(-50%, 0) !important;
    }


    /* =====================================================
       CHEVRON
    ===================================================== */

    .main-nav .nav-dropdown.js-dropdown-parent-open .nav-chevron {

        transform: rotate(180deg) !important;
    }


    /* =====================================================
       FOCUS DOES NOT OPEN DROPDOWN
    ===================================================== */

    .main-nav .nav-dropdown:focus-within .nav-dropdown-menu {

        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translate(-50%, 8px) !important;
    }


    /* =====================================================
       CLICK STATE HAS PRIORITY
    ===================================================== */

    .main-nav .nav-dropdown.js-dropdown-parent-open .nav-dropdown-menu.js-dropdown-open {

        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translate(-50%, 0) !important;
    }

    /* Keep every main category in the single 72px header row. */
    .main-nav>.nav-dropdown {
        height: 72px;
        display: flex;
        align-items: center;
    }

    /* Dropdown links must not inherit the large desktop header-link padding. */
    .main-nav .nav-dropdown-menu .nav-subcategory-link {
        min-height: 0 !important;
        padding: 10px 13px !important;
        color: #7f0b15 !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 5px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        line-height: 1.4 !important;
        white-space: normal !important;
    }
}


/* =========================================================
   SUBCATEGORY LINKS
========================================================= */

.main-nav .nav-dropdown-menu .nav-subcategory-link {

    display: block;

    width: 100%;

    box-sizing: border-box;

    cursor: pointer;
}


/* =========================================================
   SUBCATEGORY LINK HOVER
   ONLY VISUAL HIGHLIGHT
========================================================= */

.main-nav .nav-dropdown-menu .nav-subcategory-link:hover {

    background: #f3f4f6 !important;
    color: #e11d48 !important;
}


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

.main-nav .nav-active-parent .nav-dropdown-main {

    color: #e11d48;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

    .main-nav .nav-dropdown {

        width: 100%;
        height: auto;
    }


    .main-nav .nav-dropdown-main {

        width: 100%;

        display: flex;

        align-items: center;

        justify-content: space-between;
    }


    /* =====================================================
       MOBILE CLOSED
    ===================================================== */

    .main-nav .nav-dropdown .nav-dropdown-menu {

        position: static !important;

        width: 100% !important;

        min-width: 0 !important;

        max-width: none !important;

        display: none !important;

        opacity: 0 !important;

        visibility: hidden !important;

        pointer-events: none !important;

        transform: none !important;
    }


    /* =====================================================
       MOBILE CLICK OPEN
    ===================================================== */

    .main-nav .nav-dropdown.mobile-dropdown-open .nav-dropdown-menu {

        display: block !important;

        opacity: 1 !important;

        visibility: visible !important;

        pointer-events: auto !important;

        transform: none !important;
    }


    /* =====================================================
       MOBILE CHEVRON
    ===================================================== */

    .main-nav .nav-dropdown.mobile-dropdown-open .nav-chevron {

        transform: rotate(180deg) !important;
    }


    /* =====================================================
       MOBILE SUBCATEGORY
    ===================================================== */

    .main-nav .nav-dropdown-menu .nav-subcategory-link {

        width: 100%;

        white-space: normal;

        padding: 10px 12px;
    }
}


/* =========================================================
   END HEADER DROPDOWN
========================================================= */

.hidden-video {
    display: none !important;
}

.load-more-area {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 35px;
    margin-bottom: 40px;
}

.load-more-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    padding: 14px 30px;
    cursor: pointer;
    font-size: 16px;
}

/* =========================================================
   USER PROFILE DROPDOWN
========================================================= */

.header-user-menu {
    position: relative;
    display: flex;
    align-items: center;
}


/* =========================================================
   PROFILE BUTTON
========================================================= */

.header-profile {
    width: 38px;
    height: 38px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;

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

    cursor: pointer;

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


.header-profile:hover {
    background: rgba(255, 255, 255, 0.12);
}


.header-profile:active {
    transform: scale(0.96);
}


/* =========================================================
   USER DROPDOWN
========================================================= */

.user-dropdown {
    position: absolute;

    top: calc(100% + 12px);
    right: 0;

    width: 290px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 14px;

    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.18);

    overflow: hidden;

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(-8px) scale(0.98);

    transform-origin:
        top right;

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

    z-index: 1000005;
}


/* DROPDOWN OPEN */

.user-dropdown.user-dropdown-open {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(0) scale(1);
}


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

.user-dropdown-header {
    padding: 18px;

    display: flex;
    align-items: center;

    gap: 13px;

    background: #f8fafc;
}


/* USER AVATAR */

.user-dropdown-avatar {
    width: 46px;
    height: 46px;

    min-width: 46px;

    border-radius: 50%;

    background: #7f0b15;

    color: #ffffff;

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


.user-dropdown-avatar svg {
    width: 23px;
    height: 23px;
}


/* USER INFORMATION */

.user-dropdown-info {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 2px;
}


.user-dropdown-info strong {
    display: block;

    color: #111827;

    font-family: "Poppins", sans-serif;

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

    line-height: 1.4;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.user-dropdown-info span {
    display: block;

    color: #6b7280;

    font-family: "Poppins", sans-serif;

    font-size: 11px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.user-dropdown-info small {
    display: inline-flex;

    width: fit-content;

    margin-top: 4px;

    padding: 3px 8px;

    border-radius: 20px;

    background: #e8edf8;

    color: #7f0b15;

    font-family: "Poppins", sans-serif;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.4px;
}


/* =========================================================
   DIVIDER
========================================================= */

.user-dropdown-divider {
    width: 100%;
    height: 1px;

    background: #e5e7eb;
}


/* =========================================================
   DROPDOWN LINKS
========================================================= */

.user-dropdown-link {
    width: 100%;

    min-height: 48px;

    padding: 0 17px;

    border: 0;

    background: transparent;

    color: #374151;

    text-decoration: none;

    display: flex;
    align-items: center;

    gap: 12px;

    box-sizing: border-box;

    font-family: "Poppins", sans-serif;

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

    cursor: pointer;

    transition:
        background 0.18s ease,
        color 0.18s ease;
}


.user-dropdown-link svg {
    width: 18px;
    height: 18px;

    flex-shrink: 0;

    color: #6b7280;

    transition:
        color 0.18s ease;
}


.user-dropdown-link:hover {
    background: #f3f4f6;

    color: #7f0b15;
}


.user-dropdown-link:hover svg {
    color: #7f0b15;
}


/* =========================================================
   LOGOUT BUTTON
========================================================= */

.user-dropdown form {
    margin: 0;
}


.logout-link {
    color: #dc2626;

    text-align: left;
}


.logout-link svg {
    color: #dc2626;
}


.logout-link:hover {
    background: #fef2f2;

    color: #b91c1c;
}


.logout-link:hover svg {
    color: #b91c1c;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .user-dropdown {
        width: min(290px,
                calc(100vw - 24px));

        right: -4px;

        top: calc(100% + 10px);
    }


    .user-dropdown-header {
        padding: 16px;
    }


    .user-dropdown-link {
        min-height: 50px;
    }

}


@media (max-width: 480px) {

    .header-profile {
        width: 36px;
        height: 36px;
    }


    .user-dropdown {
        right: -8px;

        width: calc(100vw - 20px);
    }

}

/* =========================================================
   PROFILE EDIT PAGE
========================================================= */

.profile-edit-page {
    min-height: 100vh;
    background: #faf5f4;
    padding: 40px 20px 70px;
}

.profile-edit-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}


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

.profile-edit-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 30px;
}

.profile-edit-page-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
}

.profile-edit-page-header p {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 15px;
}

.profile-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
}

.profile-back-button:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}


/* =========================================================
   VALIDATION ERROR
========================================================= */

.profile-validation-error {
    margin-bottom: 20px;
    padding: 14px 18px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
}


/* =========================================================
   EDIT FORM
========================================================= */

.profile-edit-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}


/* =========================================================
   PROFILE CARD
========================================================= */

.profile-edit-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

.profile-edit-card-header {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
}

.profile-edit-card-header h2 {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    color: #1f2937;
}

.profile-edit-card-header p {
    margin: 7px 0 0;
    font-size: 14px;
    color: #6b7280;
}


/* =========================================================
   FORM GRID
========================================================= */

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.profile-form-full {
    grid-column: 1 / -1;
}


/* =========================================================
   FORM GROUP
========================================================= */

.profile-form-group {
    display: flex;
    flex-direction: column;
}

.profile-form-group label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.profile-form-group input,
.profile-form-group textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: 0.2s ease;
}

.profile-form-group input {
    height: 46px;
    padding: 0 14px;
}

.profile-form-group textarea {
    padding: 13px 14px;
    resize: vertical;
    min-height: 130px;
}

.profile-form-group input::placeholder,
.profile-form-group textarea::placeholder {
    color: #9ca3af;
}

.profile-form-group input:focus,
.profile-form-group textarea:focus {
    border-color: #7c1a24;
    box-shadow: 0 0 0 3px rgba(38, 56, 95, 0.10);
}


/* =========================================================
   FIELD ERROR
========================================================= */

.profile-field-error {
    margin-top: 6px;
    color: #dc2626;
    font-size: 13px;
}


/* =========================================================
   FORM ACTIONS
========================================================= */

.profile-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    padding-top: 8px;
}

.profile-cancel-button,
.profile-save-button {
    min-width: 130px;
    height: 46px;
    padding: 0 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.profile-cancel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    text-decoration: none;
}

.profile-cancel-button:hover {
    background: #f3f4f6;
}

.profile-save-button {
    border: none;
    background: #7c1a24;
    color: #ffffff;
}

.profile-save-button:hover {
    background: #1d2b4b;
    transform: translateY(-1px);
}


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

@media (max-width: 768px) {

    .profile-edit-page {
        padding: 25px 15px 50px;
    }

    .profile-edit-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-edit-page-header h1 {
        font-size: 27px;
    }

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

    .profile-form-full {
        grid-column: auto;
    }

    .profile-edit-card {
        padding: 20px;
    }

    .profile-form-actions {
        justify-content: stretch;
        flex-direction: column-reverse;
    }

    .profile-cancel-button,
    .profile-save-button {
        width: 100%;
    }

}

/* =========================================================
   PROFILE PAGE
========================================================= */

.profile-page {
    width: 100%;
    min-height: 100vh;
    padding: 40px 20px 70px;
    background: #f5f7fb;
}

.profile-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}


/* =========================================================
   PROFILE COVER
========================================================= */

.profile-cover {
    position: relative;
    overflow: hidden;
    min-height: 320px;

    background:
        linear-gradient(135deg,
            #7f0b15 0%,
            #253b72 55%,
            #314a86 100%);

    border-radius: 18px;

    box-shadow:
        0 12px 35px rgba(23, 38, 79, 0.15);
}

.profile-cover-overlay {
    position: absolute;

    inset: 0;

    background:
        radial-gradient(circle at top right,
            rgba(255, 255, 255, 0.12),
            transparent 45%);
}

.profile-header-content {
    position: relative;

    z-index: 2;

    min-height: 320px;

    padding: 45px;

    display: flex;

    align-items: center;

    gap: 30px;

    color: #ffffff;
}


/* =========================================================
   PROFILE AVATAR
========================================================= */

.profile-avatar {
    width: 160px;
    height: 160px;

    min-width: 160px;

    border-radius: 50%;

    overflow: hidden;

    background: #ffffff;

    border: 5px solid rgba(255, 255, 255, 0.85);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.25);
}

.profile-avatar img {
    width: 100% !important;
    height: 100% !important;

    display: block;

    object-fit: cover !important;
}

.profile-avatar-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

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

    background: #e9edf5;

    color: #7f0b15;
}

.profile-avatar-placeholder svg {
    width: 70px !important;
    height: 70px !important;

    max-width: 70px;
    max-height: 70px;
}


/* =========================================================
   PROFILE HEADER INFO
========================================================= */

.profile-header-info {
    flex: 1;

    min-width: 0;
}

.profile-name-row {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 12px;
}

.profile-name-row h1 {
    margin: 0;

    color: #ffffff;

    font-size: 34px;

    font-weight: 700;

    line-height: 1.25;
}

.profile-role {
    display: inline-flex;

    align-items: center;

    padding: 6px 12px;

    border-radius: 20px;

    background:
        rgba(255, 255, 255, 0.16);

    border:
        1px solid rgba(255, 255, 255, 0.2);

    color: #ffffff;

    font-size: 12px;

    font-weight: 700;
}

.profile-designation {
    margin: 10px 0 0;

    color:
        rgba(255, 255, 255, 0.9);

    font-size: 16px;
}

.profile-username {
    margin: 8px 0 0;

    color:
        rgba(255, 255, 255, 0.7);

    font-size: 14px;
}


/* =========================================================
   EDIT BUTTON
========================================================= */

.profile-edit-button {
    display: inline-flex;

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

    gap: 9px;

    min-height: 46px;

    padding: 0 20px;

    background: #ffffff;

    color: #7f0b15 !important;

    border-radius: 8px;

    text-decoration: none !important;

    font-size: 14px;

    font-weight: 700;

    white-space: nowrap;

    transition:
        0.2s ease;
}

.profile-edit-button:hover {
    background: #f1f4fa;

    transform:
        translateY(-1px);
}

.profile-edit-button svg {
    width: 19px;
    height: 19px;
}


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

.profile-content {
    display: grid;

    grid-template-columns:
        minmax(0, 1.6fr) minmax(280px, 0.8fr);

    gap: 25px;

    margin-top: 25px;
}

.profile-main-column,
.profile-sidebar {
    display: flex;

    flex-direction: column;

    gap: 25px;
}


/* =========================================================
   PROFILE CARD
========================================================= */

.profile-card {
    background: #ffffff;

    border:
        1px solid #e6eaf1;

    border-radius: 14px;

    padding: 28px;

    box-shadow:
        0 5px 18px rgba(15, 23, 42, 0.05);
}

.profile-card-header {
    margin-bottom: 20px;

    padding-bottom: 15px;

    border-bottom:
        1px solid #edf0f5;
}

.profile-card-header h2 {
    margin: 0;

    color: #7f0b15;

    font-size: 20px;

    font-weight: 700;
}

.profile-bio {
    margin: 0;

    color: #4b5563;

    font-size: 15px;

    line-height: 1.8;
}

.profile-empty-text {
    margin: 0;

    color: #94a3b8;

    font-size: 14px;
}


/* =========================================================
   PERSONAL INFORMATION
========================================================= */

.profile-info-grid {
    display: grid;

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

    gap: 20px;
}

.profile-info-item {
    display: flex;

    flex-direction: column;

    gap: 6px;
}

.profile-info-label {
    color: #8a94a6;

    font-size: 12px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.4px;
}

.profile-info-item strong {
    color: #7f0b15;

    font-size: 15px;

    font-weight: 600;

    word-break: break-word;
}


/* =========================================================
   SOCIAL LINKS
========================================================= */

.profile-social-links {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.profile-social-link {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 12px 14px;

    border:
        1px solid #e5e7eb;

    border-radius: 8px;

    color: #7f0b15 !important;

    text-decoration: none !important;

    font-size: 14px;

    font-weight: 600;

    transition:
        0.2s ease;
}

.profile-social-link:hover {
    background: #f5f7fb;

    border-color: #cfd6e4;
}


/* =========================================================
   QUICK ACTIONS
========================================================= */

.profile-actions {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 8px;
}


/* =========================================================
   ACTION LINK
========================================================= */

.profile-action-link {
    width: 100%;

    display: flex;

    align-items: center;

    gap: 11px;

    min-height: 42px;

    padding: 10px 12px;

    box-sizing: border-box;

    background: transparent;

    color: #7f0b15 !important;

    border-radius: 8px;

    text-decoration: none !important;

    font-size: 14px;

    font-weight: 500;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}


/* ACTION ICON */

.profile-action-link i,
.profile-action-link svg {
    width: 18px;
    height: 18px;

    min-width: 18px;

    flex: 0 0 18px;

    stroke-width: 1.8;
}


/* ACTION TEXT */

.profile-action-link span {
    display: block;

    flex: 1;

    min-width: 0;

    white-space: nowrap;
}


/* ACTION HOVER */

.profile-action-link:hover {
    background: #f1f4fb;

    color: #1f3b78 !important;
}


/* =========================================================
   ACTION DIVIDER
========================================================= */

.profile-action-divider {
    width: 100%;

    height: 1px;

    margin: 4px 0;

    background: #e5e9f0;
}


/* =========================================================
   LOGOUT FORM
========================================================= */

.profile-actions form {
    width: 100%;

    margin: 0;

    padding: 0;
}


/* =========================================================
   LOGOUT BUTTON
========================================================= */

.profile-logout-button {
    width: 100%;

    display: flex;

    align-items: center;

    gap: 11px;

    min-height: 42px;

    padding: 10px 12px;

    box-sizing: border-box;

    border: 0;

    border-radius: 8px;

    background: transparent;

    color: #b42318;

    font-family: inherit;

    font-size: 14px;

    font-weight: 500;

    text-align: left;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}


/* LOGOUT ICON */

.profile-logout-button i,
.profile-logout-button svg {
    width: 18px;
    height: 18px;

    min-width: 18px;

    flex: 0 0 18px;

    stroke-width: 1.8;
}


/* LOGOUT TEXT */

.profile-logout-button span {
    display: block;

    flex: 1;

    min-width: 0;

    white-space: nowrap;
}


/* LOGOUT HOVER */

.profile-logout-button:hover {
    background: #fff1f0;

    color: #d92d20;
}


/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 900px) {

    .profile-page {
        padding:
            25px 15px 50px;
    }

    .profile-header-content {
        padding: 35px 25px;

        flex-direction: column;

        align-items: flex-start;
    }

    .profile-edit-button {
        width: 100%;
    }

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

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 600px) {

    .profile-cover {
        border-radius: 12px;
    }

    .profile-avatar {
        width: 130px;
        height: 130px;

        min-width: 130px;
    }

    .profile-name-row h1 {
        font-size: 27px;
    }

    .profile-card {
        padding: 20px;
    }

    .profile-info-grid {
        grid-template-columns: 1fr;
    }

    .profile-action-link,
    .profile-logout-button {
        min-height: 44px;

        padding: 11px 12px;
    }

}

/* =========================================================
   PROFILE PHOTO EDITOR
========================================================= */

.profile-photo-editor {
    display: flex;
    align-items: center;
    gap: 30px;
}

.profile-photo-preview {
    width: 130px;
    height: 130px;
    min-width: 130px;

    overflow: hidden;

    border-radius: 50%;

    background: #eef1f6;

    border: 4px solid #e5e7eb;

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

.profile-photo-preview img {
    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
}

.profile-photo-placeholder {
    width: 100%;
    height: 100%;

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

    color: #7f0b15;
}

.profile-photo-placeholder svg {
    width: 55px !important;
    height: 55px !important;
}

.profile-photo-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.profile-photo-upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 42px;

    padding: 0 17px;

    border-radius: 8px;

    background: #7f0b15;
    color: #ffffff;

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

    cursor: pointer;

    transition: 0.2s ease;
}

.profile-photo-upload-button:hover {
    background: #8e1722;
}

.profile-photo-upload-button svg {
    width: 17px;
    height: 17px;
}

.profile-photo-help {
    margin: 0;

    color: #8a94a6;

    font-size: 12px;

    line-height: 1.5;
}

.profile-remove-photo {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-top: 4px;

    color: #dc2626;

    font-size: 12px;

    cursor: pointer;
}

.profile-remove-photo input {
    width: 15px;
    height: 15px;
}


/* SUCCESS */

.profile-success-message {
    margin-bottom: 20px;

    padding: 14px 18px;

    border: 1px solid #bbf7d0;

    border-radius: 8px;

    background: #f0fdf4;

    color: #166534;

    font-size: 14px;

    font-weight: 600;
}


/* MOBILE */

@media (max-width: 600px) {

    .profile-photo-editor {
        flex-direction: column;

        align-items: flex-start;
    }

    .profile-photo-preview {
        width: 120px;
        height: 120px;
        min-width: 120px;
    }

}

/* =========================================================
   PROFILE PHOTO UPLOAD - FINAL ICON SIZE FIX
========================================================= */

/* Upload area */
.profile-photo-upload,
.profile-upload-area,
.profile-upload-box {
    position: relative;
    width: 100%;
    max-width: 100%;
}

/* Upload icon container */
.profile-photo-upload-icon,
.profile-upload-icon,
.profile-photo-editor .upload-icon {
    width: 64px !important;
    height: 64px !important;

    min-width: 64px !important;
    min-height: 64px !important;

    max-width: 64px !important;
    max-height: 64px !important;

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

    margin: 0 auto 12px !important;

    overflow: hidden !important;
}

/* Upload SVG */
.profile-photo-upload-icon svg,
.profile-upload-icon svg,
.profile-photo-editor .upload-icon svg {
    width: 48px !important;
    height: 48px !important;

    min-width: 48px !important;
    min-height: 48px !important;

    max-width: 48px !important;
    max-height: 48px !important;

    display: block !important;

    object-fit: contain !important;
}

/* Any SVG directly inside upload box */
.profile-photo-upload>svg,
.profile-upload-area>svg,
.profile-upload-box>svg {
    width: 48px !important;
    height: 48px !important;

    min-width: 48px !important;
    min-height: 48px !important;

    max-width: 48px !important;
    max-height: 48px !important;

    display: block !important;

    margin: 0 auto 12px !important;
}

/* File input must remain normal */
.profile-photo-upload input[type="file"],
.profile-upload-area input[type="file"],
.profile-upload-box input[type="file"] {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

/* Upload button icon */
.profile-photo-upload-button svg {
    width: 17px !important;
    height: 17px !important;

    min-width: 17px !important;
    min-height: 17px !important;

    max-width: 17px !important;
    max-height: 17px !important;

    margin: 0 !important;
}

/* Mobile */
@media (max-width: 600px) {

    .profile-photo-upload-icon,
    .profile-upload-icon,
    .profile-photo-editor .upload-icon {
        width: 56px !important;
        height: 56px !important;

        min-width: 56px !important;
        min-height: 56px !important;

        max-width: 56px !important;
        max-height: 56px !important;
    }

    .profile-photo-upload-icon svg,
    .profile-upload-icon svg,
    .profile-photo-editor .upload-icon svg {
        width: 42px !important;
        height: 42px !important;

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

        max-width: 42px !important;
        max-height: 42px !important;
    }
}

/* =========================================================
   CHANGE PASSWORD / SECURITY PAGE
   ========================================================= */

.security-page {
    min-height: calc(100vh - 140px);
    padding: 55px 20px 70px;
    background: #faf5f4;
}

.security-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.security-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

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

.security-header p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.security-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #d8dee9;
    border-radius: 8px;
    background: #ffffff;
    color: #421116;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.security-back-button:hover {
    border-color: #8f1320;
    color: #8f1320;
    background: #fffafa;
}


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

.security-card {
    background: #ffffff;
    border: 1px solid #e2e7ef;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(23, 35, 61, 0.06);
    overflow: hidden;
}

.security-card-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 28px 32px;
    border-bottom: 1px solid #e7ebf1;
}

.security-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fff2f3;
    color: #8f1320;
}

.security-icon svg {
    width: 25px;
    height: 25px;
}

.security-card-header h2 {
    margin: 0 0 6px;
    color: #421116;
    font-size: 20px;
    font-weight: 700;
}

.security-card-header p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   FORM
   ========================================================= */

.security-form {
    padding: 32px;
}

.security-field {
    margin-bottom: 24px;
}

.security-field label {
    display: block;
    margin-bottom: 8px;
    color: #421116;
    font-size: 14px;
    font-weight: 600;
}

.security-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.security-input-wrapper input {
    width: 100%;
    height: 46px;
    padding: 0 52px 0 14px;
    border: 1px solid #d8dee9;
    border-radius: 8px;
    background: #ffffff;
    color: #421116;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.security-input-wrapper input::placeholder {
    color: #a0a8b5;
}

.security-input-wrapper input:focus {
    border-color: #8f1320;
    box-shadow: 0 0 0 3px rgba(29, 50, 102, 0.10);
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #687386;
    cursor: pointer;
}

.password-toggle:hover {
    background: #f1f3f7;
    color: #421116;
}

.password-toggle svg {
    width: 19px;
    height: 19px;
}

.security-help {
    margin-top: 7px;
    color: #7a8494;
    font-size: 12px;
    line-height: 1.5;
}

.security-field-error {
    display: block;
    margin-top: 6px;
    color: #dc2626;
    font-size: 12px;
}


/* =========================================================
   ALERT
   ========================================================= */

.security-alert {
    margin-bottom: 24px;
    padding: 13px 15px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.security-alert-error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}


/* =========================================================
   SECURITY NOTE
   ========================================================= */

.security-note {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-top: 8px;
    margin-bottom: 30px;
    padding: 16px 18px;
    border: 1px solid #dce5f5;
    border-radius: 9px;
    background: #f6f8fc;
}

.security-note>svg {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    margin-top: 1px;
    color: #8f1320;
}

.security-note strong {
    display: block;
    margin-bottom: 4px;
    color: #421116;
    font-size: 14px;
}

.security-note p {
    margin: 0;
    color: #687386;
    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.security-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 4px;
}

.security-cancel-button,
.security-save-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.security-cancel-button {
    border: 1px solid #d8dee9;
    background: #ffffff;
    color: #4b5563;
}

.security-cancel-button:hover {
    background: #f7f8fa;
    color: #421116;
}

.security-save-button {
    border: 1px solid #8f1320;
    background: #8f1320;
    color: #ffffff;
}

.security-save-button:hover {
    background: #74101a;
    border-color: #74101a;
}

.security-save-button svg {
    width: 17px;
    height: 17px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .security-page {
        padding: 30px 15px 50px;
    }

    .security-header {
        flex-direction: column;
        gap: 18px;
    }

    .security-header h1 {
        font-size: 26px;
    }

    .security-back-button {
        width: 100%;
    }

    .security-card-header {
        padding: 22px 20px;
    }

    .security-form {
        padding: 22px 20px;
    }

    .security-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .security-cancel-button,
    .security-save-button {
        width: 100%;
    }
}

/* =========================================================
   LOGIN PAGE
   ========================================================= */

section.form {
    width: 100%;
    max-width: 520px;
    margin: 70px auto 90px;
    padding: 36px;
    box-sizing: border-box;

    background: #ffffff;
    border: 1px solid #e2e7ef;
    border-radius: 14px;

    box-shadow: 0 10px 35px rgba(23, 35, 61, 0.07);
}


/* =========================================================
   LOGIN HEADING
   ========================================================= */

section.form h1 {
    margin: 0 0 28px;

    color: #421116;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
}


/* =========================================================
   VALIDATION SUMMARY
   ========================================================= */

section.form>div[data-valmsg-summary] {
    margin-bottom: 20px;
    padding: 12px 14px;

    border: 1px solid #fecaca;
    border-radius: 8px;

    background: #fef2f2;
    color: #b91c1c;

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


/* =========================================================
   LOGIN FORM
   ========================================================= */

section.form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* =========================================================
   LABELS
   ========================================================= */

section.form form label {
    display: flex;
    flex-direction: column;
    gap: 8px;

    color: #421116;
    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   INPUTS
   ========================================================= */

section.form form input {
    width: 100%;
    height: 46px;

    padding: 0 14px;

    box-sizing: border-box;

    border: 1px solid #d8dee9;
    border-radius: 8px;

    background: #ffffff;
    color: #421116;

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


section.form form input::placeholder {
    color: #a0a8b5;
}


section.form form input:focus {
    border-color: #8f1320;

    box-shadow:
        0 0 0 3px rgba(29, 50, 102, 0.10);
}


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

section.form form button {
    width: 100%;
    height: 46px;

    margin-top: 4px;

    border: 1px solid #8f1320;
    border-radius: 8px;

    background: #8f1320;
    color: #ffffff;

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

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.1s ease;
}


section.form form button:hover {
    background: #74101a;
    border-color: #74101a;
}


section.form form button:active {
    transform: translateY(1px);
}


/* =========================================================
   REGISTER LINK
   ========================================================= */

section.form>a {
    display: block;

    margin-top: 22px;

    text-align: center;

    color: #8f1320;
    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition: color 0.2s ease;
}


section.form>a:hover {
    color: #74101a;
    text-decoration: underline;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    section.form {
        max-width: calc(100% - 30px);

        margin: 35px auto 55px;

        padding: 25px 20px;

        border-radius: 12px;
    }


    section.form h1 {
        margin-bottom: 24px;

        font-size: 26px;
    }


    section.form form {
        gap: 18px;
    }


    section.form form input,
    section.form form button {
        height: 46px;
    }
}

/* =========================================================
   LOGIN PAGE
   ========================================================= */

section.form {
    width: 100%;
    max-width: 520px;
    margin: 65px auto 75px;
    padding: 38px 36px;

    box-sizing: border-box;

    background: #ffffff;
    border: 1px solid #e2e7ef;
    border-radius: 14px;

    box-shadow: 0 12px 35px rgba(23, 35, 61, 0.08);
}


/* =========================================================
   LOGIN HEADING
   ========================================================= */

section.form h1 {
    margin: 0 0 28px;

    color: #421116;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
}


/* =========================================================
   VALIDATION SUMMARY
   Only show when it actually contains an error
   ========================================================= */

section.form>div[data-valmsg-summary] {
    display: none;
}

section.form>div[data-valmsg-summary].validation-summary-errors {
    display: block;

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

    border: 1px solid #fecaca;
    border-radius: 8px;

    background: #fef2f2;
    color: #b91c1c;

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


/* =========================================================
   LOGIN FORM
   ========================================================= */

section.form form {
    display: flex;
    flex-direction: column;
    gap: 20px;

    margin: 0;
}


/* =========================================================
   LABEL
   ========================================================= */

section.form form label {
    display: flex;
    flex-direction: column;
    gap: 8px;

    margin: 0;

    color: #421116;
    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   INPUT
   ========================================================= */

section.form form input {
    width: 100%;
    height: 48px;

    padding: 0 14px;

    box-sizing: border-box;

    border: 1px solid #d8dee9;
    border-radius: 8px;

    background: #ffffff;
    color: #421116;

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


section.form form input::placeholder {
    color: #a0a8b5;
}


section.form form input:hover {
    border-color: #b9c3d3;
}


section.form form input:focus {
    border-color: #8f1320;

    box-shadow:
        0 0 0 3px rgba(29, 50, 102, 0.10);
}


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

section.form form button {
    width: 100%;
    height: 48px;

    margin-top: 4px;
    padding: 0 18px;

    border: 1px solid #8f1320;
    border-radius: 8px;

    background: #8f1320;
    color: #ffffff;

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

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.1s ease,
        box-shadow 0.2s ease;
}


section.form form button:hover {
    background: #74101a;
    border-color: #74101a;

    box-shadow:
        0 5px 14px rgba(29, 50, 102, 0.18);
}


section.form form button:active {
    transform: translateY(1px);
}


/* =========================================================
   REGISTER LINK
   ========================================================= */

section.form>a {
    display: block;

    margin-top: 20px;
    padding-top: 20px;

    border-top: 1px solid #edf0f5;

    text-align: center;

    color: #8f1320;
    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition: color 0.2s ease;
}


section.form>a:hover {
    color: #74101a;
    text-decoration: underline;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    section.form {
        width: calc(100% - 30px);
        max-width: none;

        margin: 35px auto 55px;
        padding: 28px 20px;

        border-radius: 12px;
    }


    section.form h1 {
        margin-bottom: 24px;

        font-size: 26px;
    }


    section.form form {
        gap: 18px;
    }


    section.form form input,
    section.form form button {
        height: 46px;
    }


    section.form>a {
        margin-top: 18px;
        padding-top: 18px;
    }
}

/* =========================================================
   The Dastak 24 - THEME SYSTEM
   Light / Dark / System
   ========================================================= */

/* ---------- THEME VARIABLES ---------- */

:root {
    --theme-bg: #faf6f5;
    --theme-surface: #ffffff;
    --theme-surface-2: #f8fafc;
    --theme-text: #1f2937;
    --theme-heading: #421116;
    --theme-muted: #6b7280;
    --theme-border: #e5e7eb;
    --theme-input-bg: #ffffff;
    --theme-shadow: rgba(8, 25, 55, .08);
}


/* =========================================================
   DARK THEME
   ========================================================= */

html[data-theme="dark"] {

    --theme-bg: #210b0e;
    --theme-surface: #4d1118;
    --theme-surface-2: #32141a;
    --theme-text: #e5e7eb;
    --theme-heading: #f8fafc;
    --theme-muted: #94a3b8;
    --theme-border: #5e2a31;
    --theme-input-bg: #111827;
    --theme-shadow: rgba(0, 0, 0, .35);
}


/* =========================================================
   SYSTEM THEME
   ========================================================= */

@media (prefers-color-scheme: dark) {

    html[data-theme="system"] {

        --theme-bg: #210b0e;
        --theme-surface: #4d1118;
        --theme-surface-2: #32141a;
        --theme-text: #e5e7eb;
        --theme-heading: #f8fafc;
        --theme-muted: #94a3b8;
        --theme-border: #5e2a31;
        --theme-input-bg: #111827;
        --theme-shadow: rgba(0, 0, 0, .35);
    }
}


/* =========================================================
   PUBLIC WEBSITE
   ========================================================= */

html[data-theme="dark"] body:not(.admin-body),
html[data-theme="system"] body:not(.admin-body) {

    background: var(--theme-bg);
    color: var(--theme-text);
}


/* ---------- COMMON SURFACES ---------- */

html[data-theme="dark"] .topbar,
html[data-theme="dark"] .breaking,
html[data-theme="dark"] .hero,
html[data-theme="dark"] .side-card,
html[data-theme="dark"] .side-news,
html[data-theme="dark"] .card,
html[data-theme="dark"] .news-card,
html[data-theme="dark"] .article,
html[data-theme="dark"] .pagination-number,
html[data-theme="dark"] .pagination-button,
html[data-theme="dark"] .profile-card,
html[data-theme="dark"] .profile-edit-card,
html[data-theme="dark"] .security-card,
html[data-theme="dark"] section.form,
html[data-theme="dark"] .profile-back-button,
html[data-theme="dark"] .security-back-button,
html[data-theme="dark"] .security-cancel-button,
html[data-theme="dark"] .profile-cancel-button {

    background: var(--theme-surface);
    border-color: var(--theme-border);
    color: var(--theme-text);
}


/* SYSTEM DARK */

@media (prefers-color-scheme: dark) {

    html[data-theme="system"] .topbar,
    html[data-theme="system"] .breaking,
    html[data-theme="system"] .hero,
    html[data-theme="system"] .side-card,
    html[data-theme="system"] .side-news,
    html[data-theme="system"] .card,
    html[data-theme="system"] .news-card,
    html[data-theme="system"] .article,
    html[data-theme="system"] .pagination-number,
    html[data-theme="system"] .pagination-button,
    html[data-theme="system"] .profile-card,
    html[data-theme="system"] .profile-edit-card,
    html[data-theme="system"] .security-card,
    html[data-theme="system"] section.form,
    html[data-theme="system"] .profile-back-button,
    html[data-theme="system"] .security-back-button,
    html[data-theme="system"] .security-cancel-button,
    html[data-theme="system"] .profile-cancel-button {

        background: var(--theme-surface);
        border-color: var(--theme-border);
        color: var(--theme-text);
    }
}


/* =========================================================
   TEXT
   ========================================================= */

html[data-theme="dark"] .section-heading h2,
html[data-theme="dark"] .article h1,
html[data-theme="dark"] .card h3,
html[data-theme="dark"] .card-content h3,
html[data-theme="dark"] .side-card h3,
html[data-theme="dark"] .side-content h3,
html[data-theme="dark"] .category-title-row h1,
html[data-theme="dark"] .category-featured-content h2 a,
html[data-theme="dark"] .category-news-content h3 a,
html[data-theme="dark"] .category-news-section .section-heading h2,
html[data-theme="dark"] .profile-edit-page-header h1,
html[data-theme="dark"] .profile-edit-card-header h2,
html[data-theme="dark"] .security-header h1,
html[data-theme="dark"] .security-card-header h2,
html[data-theme="dark"] section.form h1 {

    color: var(--theme-heading);
}


html[data-theme="dark"] .card p,
html[data-theme="dark"] .card-content p,
html[data-theme="dark"] .article .meta,
html[data-theme="dark"] .content,
html[data-theme="dark"] .category-description,
html[data-theme="dark"] .category-featured-content>p,
html[data-theme="dark"] .category-news-content p,
html[data-theme="dark"] .profile-bio,
html[data-theme="dark"] .profile-empty-text,
html[data-theme="dark"] .security-header p,
html[data-theme="dark"] .security-card-header p {

    color: var(--theme-muted);
}


/* SYSTEM DARK TEXT */

@media (prefers-color-scheme: dark) {

    html[data-theme="system"] .section-heading h2,
    html[data-theme="system"] .article h1,
    html[data-theme="system"] .card h3,
    html[data-theme="system"] .card-content h3,
    html[data-theme="system"] .side-card h3,
    html[data-theme="system"] .side-content h3,
    html[data-theme="system"] .category-title-row h1,
    html[data-theme="system"] .category-featured-content h2 a,
    html[data-theme="system"] .category-news-content h3 a,
    html[data-theme="system"] .category-news-section .section-heading h2,
    html[data-theme="system"] .profile-edit-page-header h1,
    html[data-theme="system"] .profile-edit-card-header h2,
    html[data-theme="system"] .security-header h1,
    html[data-theme="system"] .security-card-header h2,
    html[data-theme="system"] section.form h1 {

        color: var(--theme-heading);
    }

    html[data-theme="system"] .card p,
    html[data-theme="system"] .card-content p,
    html[data-theme="system"] .article .meta,
    html[data-theme="system"] .content,
    html[data-theme="system"] .category-description,
    html[data-theme="system"] .category-featured-content>p,
    html[data-theme="system"] .category-news-content p,
    html[data-theme="system"] .profile-bio,
    html[data-theme="system"] .security-header p,
    html[data-theme="system"] .security-card-header p {

        color: var(--theme-muted);
    }
}


/* =========================================================
   INPUTS
   ========================================================= */

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {

    background: var(--theme-input-bg) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}


@media (prefers-color-scheme: dark) {

    html[data-theme="system"] input,
    html[data-theme="system"] textarea,
    html[data-theme="system"] select {

        background: var(--theme-input-bg) !important;
        color: var(--theme-text) !important;
        border-color: var(--theme-border) !important;
    }
}


/* =========================================================
   PLACEHOLDERS
   ========================================================= */

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {

    color: #64748b !important;
}


@media (prefers-color-scheme: dark) {

    html[data-theme="system"] input::placeholder,
    html[data-theme="system"] textarea::placeholder {

        color: #64748b !important;
    }
}


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

html[data-theme="dark"] section.form form label,
html[data-theme="dark"] .security-field label,
html[data-theme="dark"] .profile-form-group label {

    color: var(--theme-text);
}


@media (prefers-color-scheme: dark) {

    html[data-theme="system"] section.form form label,
    html[data-theme="system"] .security-field label,
    html[data-theme="system"] .profile-form-group label {

        color: var(--theme-text);
    }
}


/* =========================================================
   CATEGORY DROPDOWN - DARK THEME
========================================================= */

html[data-theme="dark"] .nav-dropdown-menu {
    background: #4d1118;
    border-color: #5e2a31;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .nav-dropdown-menu .nav-subcategory-link {
    color: #e5e7eb !important;
}

html[data-theme="dark"] .nav-dropdown-menu .nav-subcategory-link:hover {
    background: #263449 !important;
    color: #ffffff !important;
}

/* System preference support */
@media (prefers-color-scheme: dark) {
    html[data-theme="system"] .nav-dropdown-menu {
        background: #4d1118;
        border-color: #5e2a31;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    }

    html[data-theme="system"] .nav-dropdown-menu .nav-subcategory-link {
        color: #e5e7eb !important;
    }

    html[data-theme="system"] .nav-dropdown-menu .nav-subcategory-link:hover {
        background: #263449 !important;
        color: #ffffff !important;
    }
}


/* =========================================================
   PAGINATION
   ========================================================= */

html[data-theme="dark"] .pagination-number,
html[data-theme="dark"] .pagination-button {

    color: #e5e7eb;
}


html[data-theme="dark"] .pagination-number:hover,
html[data-theme="dark"] .pagination-button:hover {

    background: #32141a;
}


/* =========================================================
   PROFILE / SECURITY BACKGROUND
   ========================================================= */

html[data-theme="dark"] .profile-page,
html[data-theme="dark"] .profile-edit-page,
html[data-theme="dark"] .security-page {

    background: var(--theme-bg);
}


/* =========================================================
   SECURITY NOTE
   ========================================================= */

html[data-theme="dark"] .security-note {

    background: #32141a;
    border-color: #5e2a31;
}


html[data-theme="dark"] .security-note strong {

    color: #f8fafc;
}


html[data-theme="dark"] .security-note p {

    color: #94a3b8;
}


/* =========================================================
   PROFILE SOCIAL LINKS
   ========================================================= */

html[data-theme="dark"] .profile-social-link {

    background: #4d1118;
    border-color: #5e2a31;
    color: #e5e7eb !important;
}


html[data-theme="dark"] .profile-social-link:hover {

    background: #32141a;
}


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

html[data-theme="dark"] .image-placeholder,
html[data-theme="dark"] .card-image-wrap {

    background: #32141a;
    color: #94a3b8;
}


/* =========================================================
   SYSTEM DARK - GENERAL SURFACES
   ========================================================= */

@media (prefers-color-scheme: dark) {

    html[data-theme="system"] .profile-page,
    html[data-theme="system"] .profile-edit-page,
    html[data-theme="system"] .security-page {

        background: var(--theme-bg);
    }

    html[data-theme="system"] .user-dropdown {

        background: #4d1118;
        border-color: #5e2a31;
    }

    html[data-theme="system"] .user-dropdown-header {

        background: #32141a;
    }

    html[data-theme="system"] .user-dropdown-info strong {

        color: #f8fafc;
    }

    html[data-theme="system"] .user-dropdown-info span {

        color: #94a3b8;
    }

    html[data-theme="system"] .user-dropdown-link {

        color: #e5e7eb;
    }

    html[data-theme="system"] .user-dropdown-link:hover {

        background: #263449;
        color: #ffffff;
    }

    html[data-theme="system"] .security-note {

        background: #32141a;
        border-color: #5e2a31;
    }

    html[data-theme="system"] .security-note strong {

        color: #f8fafc;
    }

    html[data-theme="system"] .security-note p {

        color: #94a3b8;
    }

    html[data-theme="system"] .profile-social-link {

        background: #4d1118;
        border-color: #5e2a31;
        color: #e5e7eb !important;
    }

    html[data-theme="system"] .image-placeholder,
    html[data-theme="system"] .card-image-wrap {

        background: #32141a;
        color: #94a3b8;
    }
}

/* =========================================================
   ACCOUNT SETTINGS
   ========================================================= */

.settings-page {
    min-height: calc(100vh - 180px);
    padding: 50px 20px 70px;
    background: #faf6f5;
}

.settings-container {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 28px;
}

.settings-header h1 {
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #421116;
}

.settings-header p {
    margin: 8px 0 0;
    color: #6b7280;
    font-family: "Hind", sans-serif;
    font-size: 16px;
}

.settings-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    background: #ffffff;
    color: #374151;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: .2s ease;
}

.settings-back-button:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.settings-back-button svg {
    width: 17px;
    height: 17px;
}


/* =========================================================
   SUCCESS
   ========================================================= */

.settings-success {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 13px 16px;
    border: 1px solid #bbf7d0;
    border-radius: 9px;
    background: #f0fdf4;
    color: #166534;
    font-family: "Hind", sans-serif;
    font-size: 15px;
}

.settings-success svg {
    width: 19px;
    height: 19px;
}


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

.settings-card {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 35px rgba(15, 23, 42, .06);
}

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px;
    border-bottom: 1px solid #e5e7eb;
}

.settings-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 11px;
    background: #f1f5f9;
    color: #5e2a31;
}

.settings-card-icon svg {
    width: 23px;
    height: 23px;
}

.settings-card-header h2 {
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    color: #421116;
}

.settings-card-header p {
    margin: 5px 0 0;
    font-family: "Hind", sans-serif;
    font-size: 15px;
    color: #6b7280;
}


/* =========================================================
   FORM
   ========================================================= */

.settings-form {
    padding: 28px;
}

.settings-section-title {
    margin-bottom: 18px;
}

.settings-section-title h3 {
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    color: #421116;
}

.settings-section-title p {
    margin: 5px 0 0;
    font-family: "Hind", sans-serif;
    color: #6b7280;
    font-size: 15px;
}


/* =========================================================
   THEME OPTIONS
   ========================================================= */

.theme-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.theme-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.theme-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.theme-option-content {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 175px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    transition: .2s ease;
}

.theme-option:hover .theme-option-content {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .07);
}

.theme-option input:checked+.theme-option-content {
    border-color: #421116;
    box-shadow: 0 0 0 2px rgba(23, 35, 61, .08);
}

.theme-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #5e2a31;
}

.theme-option-icon svg {
    width: 21px;
    height: 21px;
}

.theme-option-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.theme-option-text strong {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    color: #421116;
}

.theme-option-text small {
    font-family: "Hind", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
}

.theme-option-check {
    position: absolute;
    top: 17px;
    right: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    color: transparent;
}

.theme-option-check svg {
    width: 13px;
    height: 13px;
}

.theme-option input:checked+.theme-option-content .theme-option-check {
    border-color: #421116;
    background: #421116;
    color: #ffffff;
}


/* =========================================================
   INFO
   ========================================================= */

.settings-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 25px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.settings-info>svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    margin-top: 2px;
    color: #475569;
}

.settings-info strong {
    display: block;
    margin-bottom: 3px;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    color: #5e2a31;
}

.settings-info p {
    margin: 0;
    font-family: "Hind", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #64748b;
}


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

.settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
}

.settings-cancel-button,
.settings-save-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 8px;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.settings-cancel-button {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
}

.settings-save-button {
    border: 1px solid #421116;
    background: #421116;
    color: #ffffff;
}

.settings-save-button:hover {
    opacity: .92;
}

.settings-save-button svg {
    width: 17px;
    height: 17px;
}


/* =========================================================
   DARK SETTINGS
   ========================================================= */

html[data-theme="dark"] .settings-page {
    background: #210b0e;
}

html[data-theme="dark"] .settings-card {
    background: #4d1118;
    border-color: #5e2a31;
}

html[data-theme="dark"] .settings-header h1,
html[data-theme="dark"] .settings-card-header h2,
html[data-theme="dark"] .settings-section-title h3,
html[data-theme="dark"] .theme-option-text strong {
    color: #f8fafc;
}

html[data-theme="dark"] .settings-header p,
html[data-theme="dark"] .settings-card-header p,
html[data-theme="dark"] .settings-section-title p,
html[data-theme="dark"] .theme-option-text small {
    color: #94a3b8;
}

html[data-theme="dark"] .settings-card-header,
html[data-theme="dark"] .settings-actions {
    border-color: #5e2a31;
}

html[data-theme="dark"] .settings-card-icon,
html[data-theme="dark"] .theme-option-icon {
    background: #32141a;
    color: #cbd5e1;
}

html[data-theme="dark"] .theme-option-content {
    background: #4d1118;
    border-color: #5e2a31;
}

html[data-theme="dark"] .theme-option:hover .theme-option-content {
    border-color: #475569;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
}

html[data-theme="dark"] .theme-option input:checked+.theme-option-content {
    border-color: #94a3b8;
    box-shadow: 0 0 0 2px rgba(148, 163, 184, .12);
}

html[data-theme="dark"] .theme-option-check {
    border-color: #475569;
}

html[data-theme="dark"] .theme-option input:checked+.theme-option-content .theme-option-check {
    border-color: #e2e8f0;
    background: #e2e8f0;
    color: #4d1118;
}

html[data-theme="dark"] .settings-back-button,
html[data-theme="dark"] .settings-cancel-button {
    background: #4d1118;
    border-color: #5e2a31;
    color: #e5e7eb;
}

html[data-theme="dark"] .settings-info {
    background: #32141a;
    border-color: #5e2a31;
}

html[data-theme="dark"] .settings-info strong {
    color: #e2e8f0;
}

html[data-theme="dark"] .settings-info p {
    color: #94a3b8;
}

html[data-theme="dark"] .settings-save-button {
    border-color: #e2e8f0;
    background: #e2e8f0;
    color: #4d1118;
}


/* =========================================================
   SYSTEM DARK
   ========================================================= */

@media (prefers-color-scheme: dark) {

    html[data-theme="system"] .settings-page {
        background: #210b0e;
    }

    html[data-theme="system"] .settings-card {
        background: #4d1118;
        border-color: #5e2a31;
    }

    html[data-theme="system"] .settings-header h1,
    html[data-theme="system"] .settings-card-header h2,
    html[data-theme="system"] .settings-section-title h3,
    html[data-theme="system"] .theme-option-text strong {
        color: #f8fafc;
    }

    html[data-theme="system"] .settings-header p,
    html[data-theme="system"] .settings-card-header p,
    html[data-theme="system"] .settings-section-title p,
    html[data-theme="system"] .theme-option-text small {
        color: #94a3b8;
    }

    html[data-theme="system"] .settings-card-header,
    html[data-theme="system"] .settings-actions {
        border-color: #5e2a31;
    }

    html[data-theme="system"] .settings-card-icon,
    html[data-theme="system"] .theme-option-icon {
        background: #32141a;
        color: #cbd5e1;
    }

    html[data-theme="system"] .theme-option-content {
        background: #4d1118;
        border-color: #5e2a31;
    }

    html[data-theme="system"] .theme-option-check {
        border-color: #475569;
    }

    html[data-theme="system"] .theme-option input:checked+.theme-option-content .theme-option-check {
        border-color: #e2e8f0;
        background: #e2e8f0;
        color: #4d1118;
    }

    html[data-theme="system"] .settings-back-button,
    html[data-theme="system"] .settings-cancel-button {
        background: #4d1118;
        border-color: #5e2a31;
        color: #e5e7eb;
    }

    html[data-theme="system"] .settings-info {
        background: #32141a;
        border-color: #5e2a31;
    }

    html[data-theme="system"] .settings-info strong {
        color: #e2e8f0;
    }

    html[data-theme="system"] .settings-info p {
        color: #94a3b8;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .settings-page {
        padding: 30px 15px 50px;
    }

    .settings-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .settings-header h1 {
        font-size: 27px;
    }

    .settings-back-button {
        width: 100%;
        justify-content: center;
    }

    .settings-card-header {
        padding: 20px;
    }

    .settings-form {
        padding: 20px;
    }

    .theme-options {
        grid-template-columns: 1fr;
    }

    .theme-option-content {
        flex-direction: row;
        align-items: center;
        gap: 14px;
    }

    .theme-option-icon {
        margin: 0;
        flex: 0 0 44px;
    }

    .theme-option-text {
        padding-right: 25px;
    }

    .settings-actions {
        flex-direction: column-reverse;
    }

    .settings-cancel-button,
    .settings-save-button {
        width: 100%;
    }
}

/* =========================================================
   REGISTER PAGE
========================================================= */

.register-page {
    min-height: calc(100vh - 150px);

    display: flex;

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

    padding: 55px 20px 80px;

    background: #faf5f4;
}


.register-container {
    width: 100%;
    max-width: 560px;
}


.register-card {
    background: #ffffff;

    border: 1px solid #e1e6ef;

    border-radius: 14px;

    box-shadow:
        0 10px 30px rgba(23, 38, 79, 0.08);

    overflow: hidden;
}


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

.register-header {
    display: flex;

    align-items: center;

    gap: 16px;

    padding: 30px 32px;

    border-bottom: 1px solid #e7ebf2;
}


.register-icon {
    width: 52px;
    height: 52px;

    flex: 0 0 52px;

    display: flex;

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

    border-radius: 12px;

    background: #fff0f2;

    color: #8c1420;
}


.register-icon svg {
    width: 25px;
    height: 25px;
}


.register-header h1 {
    margin: 0 0 5px;

    color: #680c15;

    font-size: 25px;

    font-weight: 800;

    line-height: 1.25;
}


.register-header p {
    margin: 0;

    color: #71809a;

    font-size: 14px;

    line-height: 1.5;
}


/* =========================================================
   FORM
========================================================= */

.register-form {
    padding: 30px 32px 28px;
}


.register-field {
    margin-bottom: 22px;
}


.register-field label {
    display: block;

    margin-bottom: 8px;

    color: #78111c;

    font-size: 14px;

    font-weight: 700;
}


.register-input-wrapper {
    position: relative;

    display: flex;

    align-items: center;
}


.register-input-wrapper>svg {
    position: absolute;

    left: 14px;

    width: 18px;
    height: 18px;

    color: #8290a8;

    pointer-events: none;
}


.register-input-wrapper input {
    width: 100%;

    min-height: 48px;

    padding: 0 45px 0 43px;

    border: 1px solid #d5dce8;

    border-radius: 8px;

    background: #ffffff;

    color: #78111c;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.register-input-wrapper input::placeholder {
    color: #a2adbd;
}


.register-input-wrapper input:focus {
    border-color: #a31b28;

    box-shadow:
        0 0 0 3px rgba(41, 69, 129, 0.10);
}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.register-password-toggle {
    position: absolute;

    right: 8px;

    width: 36px;
    height: 36px;

    display: flex;

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

    border: 0;

    border-radius: 6px;

    background: transparent;

    color: #728099;

    cursor: pointer;

    padding: 0;
}


.register-password-toggle:hover {
    background: #f1f4f8;

    color: #78111c;
}


.register-password-toggle svg {
    width: 18px;
    height: 18px;
}


/* =========================================================
   HELP TEXT
========================================================= */

.register-help {
    margin-top: 7px;

    color: #7b879b;

    font-size: 12px;

    line-height: 1.5;
}


/* =========================================================
   VALIDATION
========================================================= */

.register-validation {
    margin: 24px 32px 0;

    padding: 11px 14px;

    border: 1px solid #f4caca;

    border-radius: 8px;

    background: #fff4f4;

    color: #b42318;

    font-size: 13px;

    line-height: 1.5;
}


.register-validation:empty {
    display: none;
}


.register-field-error {
    display: block;

    margin-top: 6px;

    color: #c62828;

    font-size: 12px;
}


/* =========================================================
   SECURITY NOTE
========================================================= */

.register-security-note {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    margin: 8px 0 22px;

    padding: 14px 15px;

    border: 1px solid #f3d5d9;

    border-radius: 9px;

    background: #f5f8fd;

    color: #31415e;
}


.register-security-note>svg {
    flex: 0 0 18px;

    width: 18px;
    height: 18px;

    margin-top: 2px;

    color: #a31b28;
}


.register-security-note strong {
    display: block;

    margin-bottom: 4px;

    color: #78111c;

    font-size: 13px;

    font-weight: 800;
}


.register-security-note p {
    margin: 0;

    color: #71809a;

    font-size: 12px;

    line-height: 1.55;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.register-submit-button {
    width: 100%;

    min-height: 48px;

    display: flex;

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

    gap: 8px;

    border: 0;

    border-radius: 8px;

    background: #971722;

    color: #ffffff;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.15s ease;
}


.register-submit-button:hover {
    background: #81111d;
}


.register-submit-button:active {
    transform: translateY(1px);
}


.register-submit-button svg {
    width: 18px;
    height: 18px;
}


/* =========================================================
   LOGIN LINK
========================================================= */

.register-login-link {
    display: flex;

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

    gap: 5px;

    margin-top: 20px;

    color: #71809a;

    font-size: 13px;
}


.register-login-link a {
    color: #971722;

    font-weight: 700;

    text-decoration: none;
}


.register-login-link a:hover {
    text-decoration: underline;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .register-page {
        min-height: calc(100vh - 120px);

        padding: 30px 15px 50px;
    }


    .register-card {
        border-radius: 12px;
    }


    .register-header {
        padding: 24px 20px;

        gap: 13px;
    }


    .register-icon {
        width: 46px;
        height: 46px;

        flex-basis: 46px;
    }


    .register-header h1 {
        font-size: 21px;
    }


    .register-header p {
        font-size: 12px;
    }


    .register-form {
        padding: 25px 20px 24px;
    }


    .register-validation {
        margin:
            20px 20px 0;
    }
}

/* =========================================================
   FORGOT PASSWORD PAGE
========================================================= */

.forgot-password-page {
    min-height: calc(100vh - 150px);

    display: flex;

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

    padding: 55px 20px 80px;

    background: #faf5f4;
}


.forgot-password-container {
    width: 100%;
    max-width: 560px;
}


.forgot-password-card {
    background: #ffffff;

    border: 1px solid #e1e6ef;

    border-radius: 14px;

    box-shadow:
        0 10px 30px rgba(23, 38, 79, 0.08);

    overflow: hidden;
}


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

.forgot-password-header {
    display: flex;

    align-items: center;

    gap: 16px;

    padding: 30px 32px;

    border-bottom: 1px solid #e7ebf2;
}


.forgot-password-icon {
    width: 52px;
    height: 52px;

    flex: 0 0 52px;

    display: flex;

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

    border-radius: 12px;

    background: #fff0f2;

    color: #8c1420;
}


.forgot-password-icon svg {
    width: 25px;
    height: 25px;
}


.forgot-password-header h1 {
    margin: 0 0 5px;

    color: #680c15;

    font-size: 25px;

    font-weight: 800;

    line-height: 1.25;
}


.forgot-password-header p {
    margin: 0;

    color: #71809a;

    font-size: 14px;

    line-height: 1.5;
}


/* =========================================================
   FORM
========================================================= */

.forgot-password-form {
    padding: 30px 32px 28px;
}


.forgot-password-field {
    margin-bottom: 22px;
}


.forgot-password-field label {
    display: block;

    margin-bottom: 8px;

    color: #78111c;

    font-size: 14px;

    font-weight: 700;
}


.forgot-password-input-wrapper {
    position: relative;

    display: flex;

    align-items: center;
}


.forgot-password-input-wrapper>svg {
    position: absolute;

    left: 14px;

    width: 18px;
    height: 18px;

    color: #8290a8;

    pointer-events: none;
}


.forgot-password-input-wrapper input {
    width: 100%;

    min-height: 48px;

    padding: 0 14px 0 43px;

    border: 1px solid #d5dce8;

    border-radius: 8px;

    background: #ffffff;

    color: #78111c;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.forgot-password-input-wrapper input::placeholder {
    color: #a2adbd;
}


.forgot-password-input-wrapper input:focus {
    border-color: #a31b28;

    box-shadow:
        0 0 0 3px rgba(41, 69, 129, 0.10);
}


/* =========================================================
   VALIDATION
========================================================= */

.forgot-password-field-error {
    display: block;

    margin-top: 6px;

    color: #c62828;

    font-size: 12px;
}


/* =========================================================
   SUCCESS
========================================================= */

.forgot-password-success {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin: 24px 32px 0;

    padding: 13px 14px;

    border: 1px solid #b7dfc1;

    border-radius: 8px;

    background: #f0faf2;

    color: #216e39;

    font-size: 13px;

    line-height: 1.5;
}


.forgot-password-success svg {
    width: 18px;
    height: 18px;

    flex: 0 0 18px;

    margin-top: 1px;
}


/* =========================================================
   ERROR
========================================================= */

.forgot-password-error {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin: 24px 32px 0;

    padding: 13px 14px;

    border: 1px solid #f0c5c5;

    border-radius: 8px;

    background: #fff4f4;

    color: #b42318;

    font-size: 13px;

    line-height: 1.5;
}


.forgot-password-error svg {
    width: 18px;
    height: 18px;

    flex: 0 0 18px;

    margin-top: 1px;
}


/* =========================================================
   DEVELOPMENT RESET LINK
========================================================= */

.forgot-password-reset-link {
    margin: 20px 32px 0;

    padding: 15px;

    border: 1px solid #e1d5a8;

    border-radius: 9px;

    background: #fffaf0;
}


.forgot-password-reset-link-header {
    display: flex;

    align-items: center;

    gap: 8px;

    color: #6d5715;

    font-size: 13px;
}


.forgot-password-reset-link-header svg {
    width: 17px;
    height: 17px;
}


.forgot-password-reset-link p {
    margin: 8px 0;

    color: #786c4d;

    font-size: 12px;

    line-height: 1.5;
}


.forgot-password-link {
    display: block;

    color: #a31b28;

    font-size: 12px;

    line-height: 1.5;

    word-break: break-all;

    text-decoration: none;
}


.forgot-password-link:hover {
    text-decoration: underline;
}


/* =========================================================
   SECURITY NOTE
========================================================= */

.forgot-password-security-note {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    margin: 8px 0 22px;

    padding: 14px 15px;

    border: 1px solid #f3d5d9;

    border-radius: 9px;

    background: #f5f8fd;

    color: #31415e;
}


.forgot-password-security-note>svg {
    flex: 0 0 18px;

    width: 18px;
    height: 18px;

    margin-top: 2px;

    color: #a31b28;
}


.forgot-password-security-note strong {
    display: block;

    margin-bottom: 4px;

    color: #78111c;

    font-size: 13px;

    font-weight: 800;
}


.forgot-password-security-note p {
    margin: 0;

    color: #71809a;

    font-size: 12px;

    line-height: 1.55;
}


/* =========================================================
   SUBMIT
========================================================= */

.forgot-password-submit {
    width: 100%;

    min-height: 48px;

    display: flex;

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

    gap: 8px;

    border: 0;

    border-radius: 8px;

    background: #971722;

    color: #ffffff;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.15s ease;
}


.forgot-password-submit:hover {
    background: #81111d;
}


.forgot-password-submit:active {
    transform: translateY(1px);
}


.forgot-password-submit svg {
    width: 18px;
    height: 18px;
}


/* =========================================================
   LOGIN LINK
========================================================= */

.forgot-password-login {
    display: flex;

    justify-content: center;

    margin-top: 20px;
}


.forgot-password-login a {
    color: #971722;

    font-size: 13px;

    font-weight: 700;

    text-decoration: none;
}


.forgot-password-login a:hover {
    text-decoration: underline;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .forgot-password-page {
        min-height: calc(100vh - 120px);

        padding: 30px 15px 50px;
    }


    .forgot-password-card {
        border-radius: 12px;
    }


    .forgot-password-header {
        padding: 24px 20px;

        gap: 13px;
    }


    .forgot-password-icon {
        width: 46px;
        height: 46px;

        flex-basis: 46px;
    }


    .forgot-password-header h1 {
        font-size: 21px;
    }


    .forgot-password-header p {
        font-size: 12px;
    }


    .forgot-password-form {
        padding: 25px 20px 24px;
    }


    .forgot-password-success,
    .forgot-password-error,
    .forgot-password-reset-link {
        margin-left: 20px;
        margin-right: 20px;
    }

}

/* =========================================================
   LOGIN PASSWORD HEADER
========================================================= */

.login-password-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.login-password-header label {
    margin: 0;
}

.forgot-password-login-link {
    color: #a31b28;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.forgot-password-login-link:hover {
    text-decoration: underline;
}


/* =========================================================
   LOGIN VALIDATION
========================================================= */

.login-field-error {
    display: block;
    margin-top: 5px;
    color: #c62828;
    font-size: 12px;
}

/* =========================================================
   LOGIN PAGE
========================================================= */

.login-page {
    min-height: 680px;

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

    padding: 55px 20px 80px;
}

.login-card {
    width: 100%;
    max-width: 480px;

    background: #ffffff;

    border: 1px solid #dfe5ef;
    border-radius: 14px;

    box-shadow:
        0 12px 35px rgba(15, 35, 75, 0.08);

    overflow: hidden;
}


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

.login-card-header {
    display: flex;
    align-items: center;

    gap: 16px;

    padding: 25px 28px;

    border-bottom: 1px solid #e6eaf0;
}

.login-icon {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

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

    background: #fff0f2;

    color: #a31b28;

    border-radius: 10px;
}

.login-icon svg {
    width: 24px;
    height: 24px;
}

.login-card-header h1 {
    margin: 0;

    color: #7f0b15;

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

.login-card-header p {
    margin: 5px 0 0;

    color: #718096;

    font-size: 13px;
}


/* =========================================================
   LOGIN FORM
========================================================= */

.login-form {
    padding: 28px;
}

.login-field {
    margin-bottom: 20px;
}

.login-field>label,
.login-password-header label {
    display: block;

    margin-bottom: 8px;

    color: #7f0b15;

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


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

.login-password-header {
    display: flex;

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

    gap: 10px;

    margin-bottom: 8px;
}

.login-password-header label {
    margin: 0;
}

.forgot-password-login-link {
    color: #a31b28;

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

    text-decoration: none;

    white-space: nowrap;
}

.forgot-password-login-link:hover {
    text-decoration: underline;
}


/* =========================================================
   INPUT
========================================================= */

.login-input-wrapper {
    position: relative;

    display: flex;
    align-items: center;
}

.login-input-wrapper>svg {
    position: absolute;

    left: 14px;

    width: 17px;
    height: 17px;

    color: #7b8798;

    pointer-events: none;
}

.login-input-wrapper input {
    width: 100%;

    height: 48px;

    padding: 0 46px 0 43px;

    background: #ffffff;

    border: 1px solid #d7deea;

    border-radius: 8px;

    color: #7f0b15;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.login-input-wrapper input:focus {
    border-color: #a31b28;

    box-shadow:
        0 0 0 3px rgba(41, 69, 129, 0.10);
}

.login-input-wrapper input::placeholder {
    color: #a1acbc;
}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.login-password-toggle {
    position: absolute;

    right: 8px;

    width: 34px;
    height: 34px;

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

    padding: 0;

    border: 0;

    background: transparent;

    color: #718096;

    cursor: pointer;

    border-radius: 6px;
}

.login-password-toggle:hover {
    background: #f1f4f8;

    color: #a31b28;
}

.login-password-toggle svg {
    width: 18px;
    height: 18px;
}


/* =========================================================
   REMEMBER ME
========================================================= */

.login-remember {
    display: flex;

    align-items: center;

    gap: 8px;

    margin: 2px 0 22px;

    color: #526174;

    font-size: 13px;

    cursor: pointer;
}

.login-remember input {
    width: 16px;
    height: 16px;

    accent-color: #a31b28;

    cursor: pointer;
}


/* =========================================================
   VALIDATION
========================================================= */

.login-alert {
    margin-bottom: 20px;

    padding: 12px 14px;

    background: #fff4f4;

    border: 1px solid #f3c5c5;

    border-radius: 8px;

    color: #c62828;

    font-size: 12px;

    line-height: 1.6;
}

.login-field-error {
    display: block;

    margin-top: 6px;

    color: #c62828;

    font-size: 12px;
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.login-submit-button {
    width: 100%;

    min-height: 48px;

    display: flex;

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

    gap: 9px;

    padding: 0 18px;

    border: 0;

    border-radius: 8px;

    background: #a31b28;

    color: #ffffff;

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

    cursor: pointer;

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

.login-submit-button:hover {
    background: #1f376d;

    transform: translateY(-1px);
}

.login-submit-button svg {
    width: 18px;
    height: 18px;
}


/* =========================================================
   REGISTER
========================================================= */

.login-register {
    display: flex;

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

    gap: 5px;

    margin-top: 22px;

    color: #718096;

    font-size: 13px;
}

.login-register a {
    color: #a31b28;

    font-weight: 700;

    text-decoration: none;
}

.login-register a:hover {
    text-decoration: underline;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .login-page {
        min-height: 600px;

        padding: 30px 15px 60px;
    }

    .login-card {
        border-radius: 12px;
    }

    .login-card-header {
        padding: 22px 20px;
    }

    .login-form {
        padding: 22px 20px;
    }

    .login-card-header h1 {
        font-size: 22px;
    }

    .login-password-header {
        align-items: flex-start;
    }

    .forgot-password-login-link {
        font-size: 11px;
    }
}

/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.auth-input-wrapper {
    position: relative;
}

.auth-input-wrapper input {
    width: 100%;
    padding-right: 48px;
}

.password-toggle {
    position: absolute;

    right: 12px;
    top: 50%;

    transform: translateY(-50%);

    width: 32px;
    height: 32px;

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

    border: 0;
    background: transparent;

    color: #64748b;

    cursor: pointer;

    padding: 0;
}

.password-toggle:hover {
    color: #7f0b15;
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

/* =========================================================
   AUTHENTICATION PAGES
   Login / Register / Forgot Password / Reset Password
========================================================= */

.auth-page {
    width: 100%;
    min-height: calc(100vh - 150px);

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

    padding: 55px 20px 80px;

    box-sizing: border-box;
}


/* =========================================================
   AUTH CARD
========================================================= */

.auth-card {
    width: 100%;
    max-width: 560px;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 14px;

    overflow: hidden;

    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.08);
}


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

.auth-card-header {
    display: flex;

    align-items: center;

    gap: 16px;

    padding: 26px 28px;

    border-bottom: 1px solid #e5e7eb;

    background: #ffffff;
}


.auth-icon {
    width: 48px;
    height: 48px;

    min-width: 48px;

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

    background: #fff0f2;

    color: #9b1824;

    border-radius: 10px;
}


.auth-icon svg {
    width: 24px;
    height: 24px;
}


.auth-card-header h1 {
    margin: 0 0 5px;

    color: #7f0b15;

    font-size: 25px;

    font-weight: 800;

    line-height: 1.3;
}


.auth-card-header p {
    margin: 0;

    color: #64748b;

    font-size: 13px;

    line-height: 1.6;
}


/* =========================================================
   CARD BODY
========================================================= */

.auth-card-body {
    padding: 28px;
}


/* =========================================================
   FORM
========================================================= */

.auth-form {
    width: 100%;

    display: flex;

    flex-direction: column;

    gap: 20px;
}


.auth-form label {
    display: flex;

    flex-direction: column;

    gap: 8px;

    color: #7f0b15;

    font-size: 14px;

    font-weight: 700;
}


/* =========================================================
   INPUT WRAPPER
========================================================= */

.auth-input-wrapper {
    position: relative;

    width: 100%;
}


.auth-input-wrapper>svg {
    position: absolute;

    left: 15px;
    top: 50%;

    transform: translateY(-50%);

    width: 18px;
    height: 18px;

    color: #64748b;

    pointer-events: none;
}


.auth-input-wrapper input {
    width: 100%;

    height: 50px;

    box-sizing: border-box;

    padding: 0 15px 0 45px;

    border: 1px solid #cbd5e1;

    border-radius: 8px;

    background: #ffffff;

    color: #7f0b15;

    font-family: inherit;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.auth-input-wrapper input:focus {
    border-color: #9b1824;

    box-shadow:
        0 0 0 3px rgba(36, 63, 125, 0.10);
}


.auth-input-wrapper input::placeholder {
    color: #94a3b8;
}


/* =========================================================
   LABEL HELP TEXT
========================================================= */

.auth-form label small {
    color: #94a3b8;

    font-size: 12px;

    font-weight: 400;

    line-height: 1.5;
}


/* =========================================================
   SECURITY / INFO BOX
========================================================= */

.auth-info-box {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    padding: 15px;

    background: #fff8f8;

    border: 1px solid #d8e3fa;

    border-radius: 8px;

    color: #9b1824;
}


.auth-info-box>svg {
    width: 18px;
    height: 18px;

    min-width: 18px;

    margin-top: 2px;
}


.auth-info-box strong {
    display: block;

    margin-bottom: 4px;

    color: #7f0b15;

    font-size: 13px;
}


.auth-info-box p {
    margin: 0;

    color: #64748b;

    font-size: 12px;

    line-height: 1.55;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.auth-submit-button {
    width: 100%;

    min-height: 48px;

    display: flex;

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

    gap: 8px;

    padding: 0 18px;

    border: 0;

    border-radius: 8px;

    background: #9b1824;

    color: #ffffff;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.15s ease;
}


.auth-submit-button:hover {
    background: #1b3267;
}


.auth-submit-button:active {
    transform: translateY(1px);
}


.auth-submit-button svg {
    width: 18px;
    height: 18px;
}


/* =========================================================
   ERROR MESSAGE
========================================================= */

.auth-error {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    width: 100%;

    box-sizing: border-box;

    padding: 14px 16px;

    margin-bottom: 20px;

    background: #fff5f5;

    border: 1px solid #fecaca;

    border-radius: 8px;

    color: #b91c1c;

    font-size: 13px;

    line-height: 1.5;
}


.auth-error svg {
    width: 18px;
    height: 18px;

    min-width: 18px;

    margin-top: 1px;
}


.auth-error ul {
    margin: 0;
    padding-left: 18px;
}


/* =========================================================
   SUCCESS MESSAGE
========================================================= */

.auth-success {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    width: 100%;

    box-sizing: border-box;

    padding: 14px 16px;

    margin-bottom: 20px;

    background: #f0fdf4;

    border: 1px solid #bbf7d0;

    border-radius: 8px;

    color: #166534;

    font-size: 13px;

    line-height: 1.5;
}


.auth-success svg {
    width: 18px;
    height: 18px;

    min-width: 18px;
}


/* =========================================================
   LOCAL DEVELOPMENT RESET LINK
========================================================= */

.local-reset-box {
    margin-top: 20px;

    padding: 16px;

    background: #fffbeb;

    border: 1px solid #fde68a;

    border-radius: 8px;

    font-size: 13px;
}


.local-reset-box strong {
    display: block;

    margin-bottom: 5px;

    color: #92400e;
}


.local-reset-box p {
    margin: 0 0 8px;

    color: #78716c;
}


.local-reset-box a {
    color: #b30e1d;

    font-weight: 700;

    text-decoration: none;

    word-break: break-all;
}


.local-reset-box a:hover {
    text-decoration: underline;
}


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

.auth-footer-link {
    margin-top: 22px;

    text-align: center;
}


.auth-footer-link a {
    color: #9b1824;

    font-size: 13px;

    font-weight: 700;

    text-decoration: none;
}


.auth-footer-link a:hover {
    text-decoration: underline;
}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.password-toggle {
    position: absolute;

    right: 10px;
    top: 50%;

    transform: translateY(-50%);

    width: 34px;
    height: 34px;

    display: flex;

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

    padding: 0;

    border: 0;

    background: transparent;

    color: #64748b;

    cursor: pointer;
}


.password-toggle:hover {
    color: #9b1824;
}


.password-toggle svg {
    width: 18px;
    height: 18px;
}


/* =========================================================
   PASSWORD INPUT WITH EYE
========================================================= */

.auth-input-wrapper:has(.password-toggle) input {
    padding-right: 50px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .auth-page {
        padding: 30px 15px 60px;
    }


    .auth-card {
        max-width: 100%;

        border-radius: 12px;
    }


    .auth-card-header {
        padding: 22px 20px;
    }


    .auth-card-body {
        padding: 22px 20px;
    }


    .auth-card-header h1 {
        font-size: 21px;
    }


    .auth-card-header p {
        font-size: 12px;
    }


    .auth-icon {
        width: 44px;
        height: 44px;

        min-width: 44px;
    }


    .auth-form {
        gap: 18px;
    }

}

/* =========================================================
   ADMIN USERS
========================================================= */

.admin-page {
    padding: 35px;
    max-width: 1500px;
    margin: 0 auto;
}


.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}


.admin-page-header h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
}


.admin-page-header p {
    margin: 7px 0 0;
    color: #6b7280;
}


.admin-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 44px;
    padding: 0 18px;

    background: #7f0b15;
    color: #ffffff !important;

    border-radius: 8px;

    text-decoration: none !important;

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

    white-space: nowrap;
}


.admin-primary-button:hover {
    background: #8e1722;
}


.admin-card {
    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    overflow: hidden;
}


.admin-card-header {
    padding: 20px 22px;

    border-bottom: 1px solid #e5e7eb;
}


.admin-card-header h2 {
    margin: 0;

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


.admin-card-header p {
    margin: 5px 0 0;

    color: #6b7280;

    font-size: 13px;
}


.admin-table-wrapper {
    width: 100%;
    overflow-x: auto;
}


.admin-users-table {
    width: 100%;
    border-collapse: collapse;

    min-width: 950px;
}


.admin-users-table th {
    padding: 14px 18px;

    background: #f8fafc;

    border-bottom: 1px solid #e5e7eb;

    text-align: left;

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

    color: #475569;

    text-transform: uppercase;
}


.admin-users-table td {
    padding: 16px 18px;

    border-bottom: 1px solid #eef0f3;

    vertical-align: middle;
}


.admin-users-table tbody tr:last-child td {
    border-bottom: none;
}


.admin-users-table tbody tr:hover {
    background: #fafafa;
}


/* =========================================================
   USER PROFILE
========================================================= */

.user-table-profile {
    display: flex;
    align-items: center;

    gap: 12px;

    min-width: 190px;
}


.user-table-avatar {
    width: 42px;
    height: 42px;

    min-width: 42px;

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

    border-radius: 50%;

    background: #7f0b15;
    color: #ffffff;

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


.user-table-profile strong {
    display: block;

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

    color: #4d1118;
}


.user-table-profile small {
    display: block;

    margin-top: 3px;

    color: #7b8494;

    font-size: 12px;
}


.user-email {
    font-size: 13px;
    color: #475569;
}


/* =========================================================
   ROLE
========================================================= */

.role-form {
    margin: 0;
}


.user-role-select {
    min-width: 125px;

    height: 36px;

    padding: 0 10px;

    border: 1px solid #d9dee7;
    border-radius: 7px;

    background: #ffffff;

    color: #4d1118;

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

    outline: none;

    cursor: pointer;
}


.user-role-select:focus {
    border-color: #7f0b15;
}


.user-role-select:disabled {
    background: #f3f4f6;

    color: #6b7280;

    cursor: not-allowed;
}


/* =========================================================
   STATUS
========================================================= */

.user-status {
    display: inline-flex;

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

    min-width: 70px;

    padding: 6px 10px;

    border-radius: 20px;

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


.user-status.active {
    background: #ecfdf3;
    color: #15803d;
}


.user-status.inactive {
    background: #fef2f2;
    color: #dc2626;
}


.user-created-date {
    white-space: nowrap;

    color: #64748b;

    font-size: 12px;
}


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

.user-actions {
    display: flex;

    align-items: center;

    gap: 8px;

    white-space: nowrap;
}


.user-actions form {
    margin: 0;
}


.user-action {
    display: inline-flex;

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

    min-height: 34px;

    padding: 0 11px;

    border-radius: 6px;

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

    text-decoration: none;

    cursor: pointer;
}


.user-action.edit {
    background: #fff2f3;
    color: #3730a3;
}


.user-action.edit:hover {
    background: #e0e7ff;
}


.user-action.delete {
    border: 1px solid #fecaca;

    background: #fff1f2;

    color: #dc2626;
}


.user-action.delete:hover {
    background: #fee2e2;
}


.user-delete-disabled {
    display: inline-flex;

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

    min-height: 34px;

    padding: 0 10px;

    border-radius: 6px;

    background: #f1f5f9;

    color: #94a3b8;

    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   ALERTS
========================================================= */

.admin-alert {
    margin-bottom: 20px;

    padding: 13px 16px;

    border-radius: 8px;

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


.admin-alert-success {
    background: #ecfdf3;

    border: 1px solid #bbf7d0;

    color: #166534;
}


.admin-alert-error {
    background: #fef2f2;

    border: 1px solid #fecaca;

    color: #b91c1c;
}


.admin-empty {
    padding: 50px 20px !important;

    text-align: center;

    color: #94a3b8;

    font-size: 14px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .admin-page {
        padding: 22px 15px 40px;
    }


    .admin-page-header {
        align-items: flex-start;

        flex-direction: column;
    }


    .admin-page-header h1 {
        font-size: 25px;
    }


    .admin-primary-button {
        width: 100%;
    }


    .admin-card-header {
        padding: 17px;
    }


    .admin-users-table {
        min-width: 900px;
    }
}

/* =========================================================
   ADMIN USER FORM
========================================================= */

.admin-form-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 35px;
}


.admin-form-header {
    display: flex;

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

    gap: 20px;

    margin-bottom: 25px;
}


.admin-form-header h1 {
    margin: 0;

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


.admin-form-header p {
    margin: 7px 0 0;

    color: #6b7280;

    font-size: 14px;
}


/* =========================================================
   FORM CARD
========================================================= */

.admin-form-card {
    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 12px;

    overflow: hidden;
}


.admin-form-card form {
    margin: 0;
}


/* =========================================================
   FORM SECTION
========================================================= */

.admin-form-section {
    padding: 25px;

    border-bottom: 1px solid #e5e7eb;
}


.admin-form-section:last-of-type {
    border-bottom: none;
}


.admin-form-section-header {
    margin-bottom: 20px;
}


.admin-form-section-header h2 {
    margin: 0;

    font-size: 18px;

    font-weight: 800;

    color: #4d1118;
}


.admin-form-section-header p {
    margin: 5px 0 0;

    color: #6b7280;

    font-size: 13px;
}


/* =========================================================
   FORM GRID
========================================================= */

.admin-form-grid {
    display: grid;

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

    gap: 20px;
}


.admin-form-field {
    display: flex;

    flex-direction: column;

    gap: 7px;
}


.admin-form-field-full {
    grid-column: 1 / -1;
}


/* =========================================================
   LABEL
========================================================= */

.admin-form-field>label {
    font-size: 13px;

    font-weight: 750;

    color: #374151;
}


.admin-form-field>label span {
    color: #dc2626;
}


/* =========================================================
   INPUT / SELECT / TEXTAREA
========================================================= */

.admin-form-field input,
.admin-form-field select,
.admin-form-field textarea {
    width: 100%;

    box-sizing: border-box;

    border: 1px solid #d7dce5;

    border-radius: 7px;

    background: #ffffff;

    color: #4d1118;

    font-family: inherit;

    font-size: 14px;

    outline: none;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}


.admin-form-field input,
.admin-form-field select {
    height: 44px;

    padding: 0 13px;
}


.admin-form-field textarea {
    min-height: 120px;

    padding: 12px 13px;

    resize: vertical;

    line-height: 1.6;
}


.admin-form-field input::placeholder,
.admin-form-field textarea::placeholder {
    color: #9ca3af;
}


.admin-form-field input:focus,
.admin-form-field select:focus,
.admin-form-field textarea:focus {
    border-color: #7f0b15;

    box-shadow:
        0 0 0 3px rgba(23, 38, 79, .08);
}


/* =========================================================
   HELP TEXT
========================================================= */

.admin-form-field small {
    color: #7b8494;

    font-size: 11px;

    line-height: 1.5;
}


/* =========================================================
   CHECKBOX
========================================================= */

.admin-checkbox {
    min-height: 44px;

    display: flex !important;

    flex-direction: row !important;

    align-items: center;

    gap: 10px;

    padding: 0 13px;

    border: 1px solid #d7dce5;

    border-radius: 7px;

    background: #ffffff;

    cursor: pointer;
}


.admin-checkbox input {
    width: 17px !important;

    height: 17px !important;

    margin: 0;

    cursor: pointer;
}


.admin-checkbox span {
    color: #374151;

    font-size: 13px;

    font-weight: 650;
}


/* =========================================================
   VALIDATION
========================================================= */

.admin-form-errors {
    margin-bottom: 20px;

    padding: 13px 16px;

    border-radius: 8px;

    background: #fef2f2;

    border: 1px solid #fecaca;

    color: #b91c1c;

    font-size: 13px;
}


.admin-form-errors:empty {
    display: none;
}


.field-error {
    color: #dc2626;

    font-size: 11px;

    font-weight: 600;
}


/* =========================================================
   FORM ACTIONS
========================================================= */

.admin-form-actions {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 10px;

    padding: 20px 25px;

    background: #fafafa;

    border-top: 1px solid #e5e7eb;
}


.admin-secondary-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 42px;

    padding: 0 16px;

    border: 1px solid #d7dce5;

    border-radius: 7px;

    background: #ffffff;

    color: #374151 !important;

    text-decoration: none !important;

    font-size: 13px;

    font-weight: 700;

    white-space: nowrap;

    cursor: pointer;
}


.admin-secondary-button:hover {
    background: #f8fafc;

    border-color: #cbd5e1;
}


.admin-form-actions .admin-primary-button {
    border: none;

    cursor: pointer;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .admin-form-page {
        padding: 22px 15px 40px;
    }


    .admin-form-header {
        flex-direction: column;

        align-items: stretch;
    }


    .admin-form-header h1 {
        font-size: 25px;
    }


    .admin-form-header .admin-secondary-button {
        width: 100%;
    }


    .admin-form-grid {
        grid-template-columns: 1fr;

        gap: 17px;
    }


    .admin-form-field-full {
        grid-column: auto;
    }


    .admin-form-section {
        padding: 20px 17px;
    }


    .admin-form-actions {
        padding: 17px;

        flex-direction: column-reverse;

        align-items: stretch;
    }


    .admin-form-actions .admin-primary-button,
    .admin-form-actions .admin-secondary-button {
        width: 100%;
    }
}

/* =========================================================
   The Dastak 24 WEATHER
   Premium Home Page Weather Section
========================================================= */

.nd-weather-section {
    width: 100%;
    margin: 0 0 38px;
}


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

.nd-weather-header {
    min-height: 44px;
    margin-bottom: 14px;
    padding-bottom: 8px;

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

    border-bottom: 1px solid #dce2eb;
}


.nd-weather-heading {
    display: flex;
    align-items: center;
    gap: 9px;
}


.nd-weather-line {
    width: 5px;
    height: 25px;

    display: inline-block;

    border-radius: 4px;

    background: #d71920;
}


.nd-weather-heading h2 {
    margin: 0;

    color: #5c0911;

    font-size: 23px;
    line-height: 1.15;
    font-weight: 800;
}


.nd-weather-heading p {
    margin: 2px 0 0;

    color: #8992a2;

    font-size: 10px;
    line-height: 1.3;
}


/* =========================================================
   LOCATION BUTTON
========================================================= */

.nd-weather-location-btn {
    min-height: 34px;

    padding: 0 13px;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    border: 1px solid #d8dee8;
    border-radius: 5px;

    background: #ffffff;
    color: #273244;

    font-family: "Poppins", sans-serif;
    font-size: 10px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease;
}


.nd-weather-location-btn:hover {
    background: #fff5f5;
    border-color: #d71920;
    color: #d71920;
}


.nd-weather-location-btn span {
    font-size: 14px;
}


/* =========================================================
   MAIN WEATHER CARD
========================================================= */

.nd-weather-card {
    width: 100%;

    display: grid;

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

    min-height: 205px;

    overflow: hidden;

    border: 1px solid #e1e5eb;
    border-radius: 9px;

    background: #ffffff;

    box-shadow:
        0 3px 14px rgba(8, 25, 55, .055);
}


/* =========================================================
   CURRENT WEATHER
========================================================= */

.nd-weather-current {
    padding: 21px 22px;

    background:
        linear-gradient(135deg,
            #ffffff 0%,
            #f8fafc 100%);

    border-right: 1px solid #edf0f4;
}


.nd-weather-location {
    display: flex;
    align-items: center;
    gap: 8px;
}


.nd-weather-pin {
    width: 30px;
    height: 30px;

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

    border-radius: 50%;

    background: #fff0f0;

    font-size: 14px;
}


.nd-weather-location strong {
    display: block;

    color: #4d1118;

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


.nd-weather-location small {
    display: block;

    margin-top: 1px;

    color: #8992a2;

    font-size: 9px;
}


/* =========================================================
   TEMPERATURE
========================================================= */

.nd-weather-main {
    margin-top: 12px;

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

    gap: 15px;
}


.nd-weather-temperature {
    color: #5c0911;

    font-family: "Poppins", sans-serif;

    font-size: 52px;
    line-height: .95;
    font-weight: 800;

    letter-spacing: -2px;
}


.nd-weather-temperature sup {
    position: relative;
    top: -17px;

    margin-left: 2px;

    color: #64748b;

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

    letter-spacing: 0;
}


/* =========================================================
   CONDITION
========================================================= */

.nd-weather-condition {
    min-width: 145px;

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


.nd-weather-icon {
    width: 48px;
    height: 48px;

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

    border-radius: 12px;

    background: #f4f7fb;

    font-size: 28px;
}


.nd-weather-condition strong {
    display: block;

    color: #273244;

    font-size: 12px;
    line-height: 1.3;
    font-weight: 800;
}


.nd-weather-condition span {
    display: block;

    margin-top: 3px;

    color: #8992a2;

    font-size: 9px;
}


/* =========================================================
   METRICS
========================================================= */

.nd-weather-metrics {
    margin-top: 15px;

    display: grid;

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

    gap: 7px;
}


.nd-weather-metric {
    min-width: 0;

    padding: 8px 7px;

    display: flex;
    align-items: center;
    gap: 6px;

    border: 1px solid #edf0f4;
    border-radius: 6px;

    background: #ffffff;
}


.nd-weather-metric-icon {
    font-size: 14px;
}


.nd-weather-metric small {
    display: block;

    color: #8992a2;

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


.nd-weather-metric strong {
    display: block;

    margin-top: 2px;

    color: #273244;

    font-family: "Poppins", sans-serif;

    font-size: 10px;
    line-height: 1.2;
    font-weight: 800;
}


/* =========================================================
   FORECAST
========================================================= */

.nd-weather-forecast {
    padding: 21px 20px;

    background: #ffffff;
}


.nd-weather-forecast-heading {
    margin-bottom: 13px;

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


.nd-weather-forecast-heading strong {
    color: #4d1118;

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


.nd-weather-forecast-heading span {
    color: #8992a2;

    font-family: "Poppins", sans-serif;

    font-size: 8px;
}


/* =========================================================
   HOURLY FORECAST
========================================================= */

.nd-weather-hourly {
    display: grid;

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

    gap: 7px;
}


.nd-weather-hour {
    min-width: 0;

    padding: 11px 6px;

    text-align: center;

    border: 1px solid #e8ecf1;
    border-radius: 7px;

    background: #fafbfd;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}


.nd-weather-hour:hover {
    transform: translateY(-2px);

    border-color: #f0b4b6;

    box-shadow:
        0 5px 14px rgba(8, 25, 55, .06);
}


.nd-weather-hour-time {
    color: #64748b;

    font-family: "Poppins", sans-serif;

    font-size: 8px;
    font-weight: 700;
}


.nd-weather-hour-icon {
    margin: 5px 0;

    font-size: 22px;
}


.nd-weather-hour-temp {
    color: #4d1118;

    font-family: "Poppins", sans-serif;

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


.nd-weather-hour-rain {
    margin-top: 3px;

    color: #d71920;

    font-size: 8px;
    font-weight: 700;
}


/* =========================================================
   SEARCH
========================================================= */

.nd-weather-search {
    width: 100%;

    margin-top: 9px;

    display: grid;

    grid-template-columns: 1fr auto;

    gap: 7px;
}


.nd-weather-search input {
    width: 100%;
    min-height: 36px;

    padding: 0 12px;

    outline: none;

    border: 1px solid #dce2eb;
    border-radius: 5px;

    background: #ffffff;
    color: #4d1118;

    font-family: "Poppins", sans-serif;

    font-size: 10px;
}


.nd-weather-search input:focus {
    border-color: #d71920;

    box-shadow:
        0 0 0 3px rgba(215, 25, 32, .08);
}


.nd-weather-search button {
    min-width: 105px;

    padding: 0 14px;

    border: 0;
    border-radius: 5px;

    background: #d71920;
    color: #ffffff;

    font-family: "Poppins", sans-serif;

    font-size: 9px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}


.nd-weather-search button:hover {
    background: #b9141a;

    transform: translateY(-1px);
}


/* =========================================================
   STATUS
========================================================= */

.nd-weather-status {
    min-height: 17px;

    margin-top: 5px;

    color: #8992a2;

    font-size: 9px;
}


.nd-weather-loading {
    grid-column: 1 / -1;

    padding: 22px;

    text-align: center;

    color: #8992a2;

    font-size: 10px;
}


/* =========================================================
   WEATHER ERROR
========================================================= */

.nd-weather-error {
    grid-column: 1 / -1;

    padding: 14px;

    text-align: center;

    color: #b42318;

    background: #fff5f5;

    border: 1px solid #f3c2c4;

    border-radius: 6px;

    font-size: 10px;
}


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

@media (max-width: 950px) {

    .nd-weather-card {
        grid-template-columns: 1fr;
    }


    .nd-weather-current {
        border-right: 0;

        border-bottom: 1px solid #edf0f4;
    }

}


@media (max-width: 650px) {

    .nd-weather-section {
        margin-bottom: 25px;
    }


    .nd-weather-header {
        min-height: 40px;
    }


    .nd-weather-heading h2 {
        font-size: 19px;
    }


    .nd-weather-heading p {
        display: none;
    }


    .nd-weather-line {
        width: 4px;
        height: 21px;
    }


    .nd-weather-location-btn {
        min-height: 30px;

        padding: 0 9px;

        font-size: 8px;
    }


    .nd-weather-current,
    .nd-weather-forecast {
        padding: 15px;
    }


    .nd-weather-main {
        align-items: center;
    }


    .nd-weather-temperature {
        font-size: 45px;
    }


    .nd-weather-temperature sup {
        top: -13px;

        font-size: 15px;
    }


    .nd-weather-condition {
        min-width: auto;
    }


    .nd-weather-icon {
        width: 40px;
        height: 40px;

        font-size: 23px;
    }


    .nd-weather-condition strong {
        font-size: 10px;
    }


    .nd-weather-metrics {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 6px;
    }


    .nd-weather-hourly {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }


    .nd-weather-hour {
        padding: 9px 4px;
    }


    .nd-weather-hour-icon {
        font-size: 19px;
    }


    .nd-weather-search {
        grid-template-columns: 1fr;
    }


    .nd-weather-search button {
        min-height: 35px;
    }

}


@media (max-width: 420px) {

    .nd-weather-main {
        align-items: flex-start;

        flex-direction: column;
    }


    .nd-weather-condition {
        width: 100%;
    }


    .nd-weather-hourly {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}

/* =========================================================
   INDC WEATHER - LIVE DATA STATES
   ========================================================= */

.nd-weather-aqi-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 30px;
    padding: 3px 9px;
    border-radius: 8px;
    font-weight: 800;
}

.nd-aqi-good {
    background: #dcfce7;
    color: #166534;
}

.nd-aqi-moderate {
    background: #fef9c3;
    color: #854d0e;
}

.nd-aqi-sensitive {
    background: #ffedd5;
    color: #9a3412;
}

.nd-aqi-bad {
    background: #fee2e2;
    color: #991b1b;
}

.nd-aqi-danger {
    background: #ede9fe;
    color: #6b21a8;
}


/* =========================================================
   HOURLY WEATHER
   ========================================================= */

.nd-weather-hourly {
    display: grid;
    grid-template-columns:
        repeat(6, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.nd-weather-hour {
    min-width: 0;
    padding: 10px 7px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.nd-weather-hour-time {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
}

.nd-weather-hour-icon {
    font-size: 21px;
    line-height: 1.2;
}

.nd-weather-hour strong {
    font-size: 15px;
    color: #210b0e;
}

.nd-weather-hour small {
    font-size: 9px;
    font-weight: 700;
    color: #64748b;
}

.nd-weather-loading {
    width: 100%;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #64748b;
    font-size: 12px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 850px) {

    .nd-weather-hourly {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {

    .nd-weather-hourly {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .nd-weather-hour {
        padding: 9px 5px;
    }

    .nd-weather-hour-icon {
        font-size: 19px;
    }

    .nd-weather-hour strong {
        font-size: 14px;
    }
}

@media (max-width: 420px) {

    .nd-weather-hourly {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   The Dastak 24 - PREMIUM RED DESIGN SYSTEM
   Final override layer: brand styling only, no layout changes
   ========================================================= */

:root {
    --primary: #7b0712;
    --primary-dark: #4a0309;
    --accent: #d41124;
    --premium-red: #9f0b18;
    --premium-red-bright: #df172b;
    --premium-red-dark: #57060d;
    --premium-gold: #d7ad45;
    --premium-ink: #351014;
    --premium-soft: #fff3f3;
    --premium-soft-2: #fae8e9;
    --premium-border: #ead6d8;
    --page-bg: #faf6f5;
    --theme-bg: #faf6f5;
    --theme-surface: #ffffff;
    --theme-surface-2: #fff8f7;
    --theme-text: #362a2b;
    --theme-heading: #421116;
    --theme-muted: #766568;
    --theme-border: #eadcdf;
    --theme-input-bg: #ffffff;
    --theme-shadow: rgba(91, 8, 18, .10);
}

html[data-theme="dark"] {
    --theme-bg: #210b0e;
    --theme-surface: #321116;
    --theme-surface-2: #43141b;
    --theme-text: #f8e9ea;
    --theme-heading: #fff8f8;
    --theme-muted: #d0afb4;
    --theme-border: #65303a;
    --theme-input-bg: #281014;
    --theme-shadow: rgba(0, 0, 0, .42);
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] {
        --theme-bg: #210b0e;
        --theme-surface: #321116;
        --theme-surface-2: #43141b;
        --theme-text: #f8e9ea;
        --theme-heading: #fff8f8;
        --theme-muted: #d0afb4;
        --theme-border: #65303a;
        --theme-input-bg: #281014;
        --theme-shadow: rgba(0, 0, 0, .42);
    }
}

body:not(.admin-body) {
    background:
        radial-gradient(circle at 8% 0%, rgba(212, 17, 36, .045), transparent 28rem),
        linear-gradient(180deg, #fffdfc 0, var(--page-bg) 42rem);
}

.admin-body,
.admin-layout {
    background:
        radial-gradient(circle at 100% 0%, rgba(212, 17, 36, .055), transparent 34rem),
        #f9f4f3;
}

/* Premium public header */
.site-header,
.header-inner {
    background: linear-gradient(118deg, #4a0309 0%, #7b0712 48%, #a80d1b 100%) !important;
}

.site-header {
    border-bottom: 2px solid rgba(215, 173, 69, .9);
    box-shadow: 0 9px 28px rgba(73, 3, 10, .24);
}

.logo-tagline,
.admin-logo-subtitle {
    color: #edcfd2;
}

@media (min-width: 901px) {

    .main-nav a:hover,
    .main-nav a.nav-active,
    .main-nav .nav-active-parent>.nav-dropdown-main {
        color: #f3d06e !important;
    }
}

.header-profile:hover,
.header-icon-button:hover {
    background: rgba(255, 255, 255, .12);
}

.main-nav .nav-dropdown .nav-dropdown-menu,
.user-dropdown {
    border-color: var(--premium-border) !important;
    box-shadow: 0 18px 44px rgba(91, 8, 18, .18) !important;
}

.main-nav .nav-dropdown-menu .nav-subcategory-link:hover,
.main-nav.mobile-nav-open a:hover,
.main-nav.mobile-nav-open a.nav-active {
    background: var(--premium-soft) !important;
    color: var(--premium-red) !important;
}

.topbar {
    background: #fffaf9;
    border-bottom-color: var(--premium-border);
}

.breaking-label,
.category-label,
.badge {
    background: linear-gradient(135deg, #b40e1d, #e21a2f);
    box-shadow: 0 4px 12px rgba(180, 14, 29, .22);
}

/* Premium cards and content surfaces */
.hero,
.side-card,
.side-news,
.card,
.news-card,
.category-featured,
.category-news-card,
.article,
.profile-card,
.profile-edit-card,
.security-card,
.settings-card,
.login-card,
.auth-card,
.register-card,
.admin-card,
.admin-news-table-wrapper,
.dashboard-stat-box,
.dashboard-action-card,
.nd-weather-card {
    border-color: var(--premium-border);
    box-shadow: 0 10px 30px rgba(91, 8, 18, .075);
}

.hero:hover,
.card:hover,
.news-card:hover,
.category-news-card:hover,
.dashboard-action-card:hover {
    box-shadow: 0 16px 38px rgba(91, 8, 18, .13);
}

.section-heading h2,
.category-title-row h1,
.category-news-section .section-heading h2,
.article h1,
.profile-edit-page-header h1,
.security-header h1,
.settings-header h1,
.admin-news-header h1,
.dashboard-page-header h1,
.admin-page-header h1 {
    color: var(--premium-ink);
}

.section-heading h2::before,
.category-news-section .section-heading h2 span,
.dashboard-stat-box::before {
    background: linear-gradient(180deg, #e21a2f, #7b0712);
}

/* Premium admin shell */
.admin-sidebar {
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 255, 255, .10), transparent 15rem),
        linear-gradient(180deg, #650711 0%, #4a0309 58%, #2f0207 100%);
    box-shadow: 10px 0 34px rgba(73, 3, 10, .16);
}

.admin-sidebar-logo {
    border-bottom-color: rgba(244, 208, 110, .2);
}

.admin-menu-label {
    color: #d8aeb3;
}

.admin-menu-item {
    color: #f0dadd;
}

.admin-menu-item:hover {
    background: rgba(255, 255, 255, .10);
}

.admin-menu-item.active {
    background: linear-gradient(90deg, rgba(231, 44, 64, .92), rgba(184, 14, 29, .88));
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(42, 0, 5, .24);
}

.admin-topbar {
    border-bottom: 1px solid var(--premium-border);
    box-shadow: 0 4px 18px rgba(91, 8, 18, .05);
}

.admin-user-avatar,
.user-table-avatar,
.dashboard-action-primary,
.dashboard-action-primary .dashboard-action-icon {
    background: linear-gradient(135deg, #7b0712, #d41124);
}

.admin-news-table thead,
.admin-users-table th {
    background: #fff5f5;
}

.admin-news-table tbody tr:hover,
.admin-users-table tbody tr:hover {
    background: #fff9f8;
}

/* Premium primary actions */
.admin-add-news-btn,
.admin-primary-button,
.admin-edit-btn,
.dashboard-view-site-btn,
.profile-save-button,
.profile-edit-button,
.profile-photo-upload-button,
.security-save-button,
.settings-save-button,
.register-submit-button,
.login-submit-button,
.auth-submit-button,
.back-home-button,
.load-more-btn,
.nd-weather-location-btn,
.nd-weather-search button,
section.form form button,
.page form button[type="submit"] {
    border-color: #a30c1a !important;
    background: linear-gradient(135deg, #7b0712 0%, #b40e1d 55%, #dc172b 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(159, 11, 24, .20);
}

.admin-add-news-btn:hover,
.admin-primary-button:hover,
.admin-edit-btn:hover,
.dashboard-view-site-btn:hover,
.profile-save-button:hover,
.profile-edit-button:hover,
.profile-photo-upload-button:hover,
.security-save-button:hover,
.settings-save-button:hover,
.register-submit-button:hover,
.login-submit-button:hover,
.auth-submit-button:hover,
.back-home-button:hover,
.load-more-btn:hover,
.nd-weather-location-btn:hover,
.nd-weather-search button:hover,
section.form form button:hover,
.page form button[type="submit"]:hover {
    background: linear-gradient(135deg, #62060e 0%, #990b17 55%, #c81123 100%) !important;
    box-shadow: 0 12px 26px rgba(127, 7, 18, .28);
    transform: translateY(-1px);
}

/* Forms, selection and keyboard focus */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--premium-red);
}

input:focus,
select:focus,
textarea:focus,
.profile-form-group textarea:focus,
.security-input-wrapper input:focus,
.login-input-wrapper input:focus,
.admin-form-field input:focus,
.admin-form-field select:focus,
.admin-form-field textarea:focus {
    border-color: #c41324 !important;
    box-shadow: 0 0 0 4px rgba(212, 17, 36, .10) !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(212, 17, 36, .30);
    outline-offset: 2px;
}

::selection {
    background: #b40e1d;
    color: #ffffff;
}

.profile-cover {
    background: linear-gradient(120deg, #4a0309 0%, #8f0b17 52%, #d41124 100%);
}

.login-icon,
.auth-icon,
.security-icon,
.settings-card-icon,
.theme-option-icon {
    background: var(--premium-soft);
    color: var(--premium-red);
}

.pagination-number.active,
.pagination-button:not(.disabled):hover {
    border-color: var(--premium-red);
    background: var(--premium-red);
    color: #ffffff;
}

/* Keep the premium palette coherent in dark mode */
html[data-theme="dark"] body:not(.admin-body),
html[data-theme="dark"] .settings-page,
html[data-theme="dark"] .profile-page,
html[data-theme="dark"] .profile-edit-page,
html[data-theme="dark"] .security-page {
    background: var(--theme-bg);
}

html[data-theme="dark"] .section-heading h2,
html[data-theme="dark"] .category-title-row h1,
html[data-theme="dark"] .category-news-section .section-heading h2,
html[data-theme="dark"] .article h1,
html[data-theme="dark"] .profile-edit-page-header h1,
html[data-theme="dark"] .security-header h1,
html[data-theme="dark"] .settings-header h1 {
    color: var(--theme-heading);
}

@media (prefers-color-scheme: dark) {

    html[data-theme="system"] body:not(.admin-body),
    html[data-theme="system"] .settings-page,
    html[data-theme="system"] .profile-page,
    html[data-theme="system"] .profile-edit-page,
    html[data-theme="system"] .security-page {
        background: var(--theme-bg);
    }
}

@media (max-width: 900px) {

    .site-header,
    .header-inner {
        background: linear-gradient(118deg, #4a0309 0%, #7b0712 58%, #a80d1b 100%) !important;
    }

    .main-nav.mobile-nav-open {
        border-top: 2px solid var(--premium-gold) !important;
        box-shadow: 0 16px 34px rgba(73, 3, 10, .22) !important;
    }

    .mobile-menu-button {
        border-radius: 9px;
        color: var(--premium-red);
        box-shadow: 0 4px 14px rgba(50, 0, 7, .16);
    }
}

/* =========================================================
   FINAL LOGO CLEANUP
   The Dastak 24 — logo only, no wrapper box
========================================================= */

.logo {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.logo-image-box {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.logo-image-box img {
    display: block;
    object-fit: contain;
}

.logo-text {
    display: none !important;
}



