/* ============================================================
   devletuniversity.css — Future Builders | الجامعات الحكومية
   Version 4.0 — Professional Redesign
   ============================================================ */

:root {
    --du-bg: #f5f4ee;
    --du-cream: #f7f5cb;
    --du-cream-light: #faf8e6;
    --du-cream-soft: #f9f7e8;
    --du-cream-text: #f0edd8;
    --du-yellow: #e8d44d;
    --du-yellow-bright: #f0e68c;

    --du-blue: #1a3270;
    --du-blue-mid: rgba(26, 50, 112, 0.55);
    --du-blue-soft: rgba(26, 50, 112, 0.22);
    --du-blue-pale: rgba(26, 50, 112, 0.06);
    --du-blue-deep: #0f1f4a;
    --du-blue-hover: #2a4a9c;
    --du-blue-light: #e8edf8;
    --du-blue-btn: #1a3270;
    --du-blue-btn-hover: #0f1f4a;

    --du-green: #22b455;
    --du-green-light: rgba(34, 180, 85, 0.08);
    --du-orange: #e07b2e;
    --du-red: #b83232;
    --du-red-deep: #8b1a1a;

    --du-border: rgba(26, 50, 112, 0.1);
    --du-border-light: rgba(26, 50, 112, 0.06);
    --du-shadow-sm: 0 2px 8px rgba(26, 50, 112, 0.06);
    --du-shadow-md: 0 6px 20px rgba(26, 50, 112, 0.1);
    --du-shadow-lg: 0 12px 40px rgba(26, 50, 112, 0.14);

    --du-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --du-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --du-t: 0.25s var(--du-ease);
    --du-t-slow: 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    --du-radius-sm: 12px;
    --du-radius-md: 16px;
    --du-radius-lg: 24px;
    --du-radius-xl: 32px;
}

/* ===== Scoped Reset ===== */
.du-hero,
.du-main,
.du-card,
.du-tabs-nav,
.du-tab-pane,
.du-section,
.du-section-header,
.du-section-body,
.du-info-grid,
.du-info-item,
.du-data-table,
.du-links-grid,
.du-link-card,
.du-archive-toggle,
.du-archive-content,
.du-breadcrumb,
.du-title,
.du-meta-badge,
.du-conditions-list,
.du-fee-notice,
.du-date-badge,
.du-round-label,
.du-external-link,
.du-section-text {
    box-sizing: border-box;
    font-family: "Segoe UI", "Tahoma", "Geneva", "Verdana", sans-serif;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.du-hero {
    background: linear-gradient(
        145deg,
        var(--du-blue) 0%,
        var(--du-blue-deep) 50%,
        #0a1530 100%
    );
    padding: 16px 0 80px;
    position: relative;
    overflow: hidden;
    direction: rtl;
    text-align: right;
}
.du-hero::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    top: -140px;
    right: -100px;
    background: radial-gradient(
        circle,
        rgba(232, 212, 77, 0.1) 0%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
}
.du-hero::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    bottom: -120px;
    left: -80px;
    background: radial-gradient(
        circle,
        rgba(34, 180, 85, 0.08) 0%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
}

.du-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Breadcrumb ===== */
.du-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    direction: rtl;
    justify-content: flex-start;
    font-size: 11px;
}
.du-breadcrumb a {
    color: rgba(245, 244, 238, 0.55);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: color var(--du-t);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.du-breadcrumb a:hover {
    color: var(--du-bg);
}
.du-bc-sep {
    font-size: 9px;
    color: rgba(245, 244, 238, 0.25);
    transform: rotate(180deg);
}
.du-bc-active {
    color: var(--du-yellow);
    font-size: 11px;
    font-weight: 600;
}

.du-title {
    color: var(--du-bg);
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 1;
    margin: 0 0 14px;
    text-align: right;
}
.du-title-tr {
    display: block;
    font-size: 0.5em;
    font-weight: 400;
    color: rgba(245, 244, 238, 0.5);
    margin-top: 8px;
    letter-spacing: 0.5px;
    text-shadow: none;
}

.du-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(232, 212, 77, 0.15);
    backdrop-filter: blur(12px);
    padding: 10px 24px;
    border-radius: 50px;
    color: var(--du-yellow-bright);
    font-size: 13.5px;
    font-weight: 600;
    border: 1px solid rgba(232, 212, 77, 0.25);
    position: relative;
    z-index: 1;
}
.du-meta-badge i {
    font-size: 14px;
}

/* ============================================================
   MAIN
   ============================================================ */
.du-main {
    margin-top: -56px;
    position: relative;
    z-index: 2;
    padding-bottom: 80px;
    direction: rtl;
}

.du-card {
    background: var(--du-bg);
    border-radius: var(--du-radius-xl);
    box-shadow: var(--du-shadow-lg);
    overflow: hidden;
    border: 1px solid var(--du-border-light);
}

/* ============================================================
   TABS
   ============================================================ */
.du-tabs-nav {
    display: flex;
    background: #eeede6;
    border-bottom: 2px solid var(--du-border);
    padding: 8px 12px 0;
    gap: 6px;
    direction: rtl;
    justify-content: flex-start;
}
.du-tab-btn {
    flex: 0 1 auto;
    min-width: 150px;
    padding: 14px 28px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: var(--du-blue-mid);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: var(--du-radius-sm) var(--du-radius-sm) 0 0;
    transition: all var(--du-t);
    font-family: inherit;
    position: relative;
}
.du-tab-btn i {
    font-size: 17px;
}
.du-tab-btn:hover {
    color: var(--du-blue);
    background: rgba(26, 50, 112, 0.04);
}
.du-tab-btn.active {
    color: var(--du-blue);
    background: var(--du-bg);
}
.du-tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 25%;
    right: 25%;
    height: 3px;
    background: linear-gradient(90deg, var(--du-blue), var(--du-blue-hover));
    border-radius: 3px 3px 0 0;
}

.du-tab-content-wrapper {
    position: relative;
}
.du-tab-pane {
    display: none;
    padding: 36px 32px;
    animation: duFadeSlide 0.35s var(--du-ease-out);
    direction: rtl;
    text-align: right;
}
.du-tab-pane.active {
    display: block;
}

@keyframes duFadeSlide {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   SECTION CARDS — Blue button, light-blue body, cream text
   ============================================================ */
.du-section {
    background: #ffffff;
    border: 1.5px solid var(--du-border);
    border-radius: var(--du-radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    transition:
        box-shadow var(--du-t),
        border-color var(--du-t);
}
.du-section:hover {
    box-shadow: var(--du-shadow-md);
    border-color: rgba(26, 50, 112, 0.2);
}

/* Section Header — BLUE BUTTON */
.du-section-header {
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    text-align: right;
    font-family: inherit;
    direction: rtl;
}

.du-section-left {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    background: linear-gradient(
        135deg,
        var(--du-blue) 0%,
        var(--du-blue-deep) 100%
    );
    padding: 0 24px 0 0;
    transition: background var(--du-t);
}
.du-section-header:hover .du-section-left {
    background: linear-gradient(
        135deg,
        var(--du-blue-hover) 0%,
        var(--du-blue) 100%
    );
}
.du-section.open .du-section-left {
    background: linear-gradient(
        135deg,
        var(--du-blue-deep) 0%,
        var(--du-blue) 100%
    );
}

.du-section-title {
    color: var(--du-cream-text) !important;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
    padding: 18px 16px 18px 0;
    flex: 1;
    text-align: center;
}

/* Icon Badge inside blue header */
.du-section-icon {
    width: 54px;
    height: 54px;
    background: rgba(0, 0, 0, 0.2);
    color: var(--du-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: background var(--du-t);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.du-section-header:hover .du-section-icon {
    background: rgba(0, 0, 0, 0.3);
}

/* Chevron area */
.du-chevron-wrap {
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: background var(--du-t);
    flex-shrink: 0;
}
.du-section-header:hover .du-chevron-wrap {
    background: rgba(255, 255, 255, 0.14);
}
.du-chevron {
    color: rgba(240, 230, 140, 0.8) !important;
    font-size: 12px;
    transition: transform var(--du-t);
    flex-shrink: 0;
}
.du-section.open .du-chevron {
    transform: rotate(180deg);
    color: var(--du-yellow) !important;
}

/* Section Body — LIGHT BLUE background */
.du-section-body {
    max-height: 0;
    overflow: hidden;
    transition:
        max-height 0.45s var(--du-ease),
        padding 0.35s var(--du-ease);
    padding: 0 24px;
    direction: rtl;
    text-align: right;
    background: var(--du-blue-light);
}
.du-section.open .du-section-body {
    max-height: 4000px;
    padding: 26px 24px;
}

.du-section-text {
    color: var(--du-blue);
    font-size: 15px;
    line-height: 1.9;
    margin: 12px 0 0;
    text-align: right;
    font-weight: 400;
}

/* ============================================================
   INFO GRID
   ============================================================ */
.du-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
    direction: rtl;
}
.du-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #ffffff;
    border-radius: var(--du-radius-sm);
    border-right: 4px solid var(--du-blue);
    transition: all var(--du-t);
    text-align: right;
    direction: rtl;
    box-shadow: var(--du-shadow-sm);
}
.du-info-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--du-shadow-md);
}
.du-info-item > i {
    color: var(--du-blue);
    font-size: 20px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}
.du-info-label {
    display: block;
    font-size: 11.5px;
    color: var(--du-blue-mid);
    font-weight: 500;
    margin-bottom: 3px;
    letter-spacing: 0.3px;
}
.du-info-value {
    display: block;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--du-blue);
}

/* ============================================================
   DATA TABLE
   ============================================================ */
.du-data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--du-radius-sm);
    overflow: hidden;
    box-shadow: var(--du-shadow-sm);
    direction: rtl;
    background: #ffffff;
}
.du-data-table thead tr th {
    background: linear-gradient(
        135deg,
        var(--du-blue) 0%,
        var(--du-blue-deep) 100%
    );
    color: var(--du-yellow-bright);
    padding: 14px 20px;
    font-weight: 600;
    font-size: 13.5px;
    text-align: center;
    letter-spacing: 0.3px;
}
.du-data-table thead tr th:first-child {
    border-radius: 0 var(--du-radius-sm) 0 0;
}
.du-data-table thead tr th:last-child {
    border-radius: var(--du-radius-sm) 0 0 0;
}

.du-data-table td {
    padding: 13px 20px;
    border-bottom: 1px solid rgba(26, 50, 112, 0.06);
    font-size: 14.5px;
    color: var(--du-blue);
    vertical-align: middle;
    text-align: right;
    font-weight: 400;
    background: #ffffff;
}
.du-data-table tbody tr:nth-child(even) td {
    background: rgba(232, 237, 248, 0.4);
}
.du-data-table tbody tr:hover td {
    background: rgba(232, 237, 248, 0.7);
}
.du-data-table tbody tr:last-child td {
    border-bottom: none;
}

.du-round-label td {
    background: var(--du-green-light) !important;
    padding: 11px 20px !important;
}
.du-round-label b {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    color: var(--du-green);
    font-weight: 700;
}
.du-round-label b::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--du-green);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(34, 180, 85, 0.15);
    flex-shrink: 0;
}
.du-td-icon {
    color: var(--du-blue-mid);
    margin-left: 8px;
    font-size: 13px;
}

/* Date Badge */
.du-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--du-blue-light);
    color: var(--du-blue);
    padding: 7px 14px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13.5px;
    border: 1px solid rgba(26, 50, 112, 0.15);
    white-space: nowrap;
    direction: rtl;
}
.du-date-badge i {
    font-size: 11px;
    color: var(--du-blue-mid);
}

/* External Link */
.du-external-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--du-blue-light);
    color: var(--du-blue);
    border: 1.5px solid rgba(26, 50, 112, 0.2);
    border-radius: var(--du-radius-sm);
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
    transition: all var(--du-t-slow);
    direction: rtl;
}
.du-external-link:hover {
    background: var(--du-blue);
    color: var(--du-yellow-bright);
    transform: translateX(-3px);
    border-color: var(--du-blue);
}

/* ============================================================
   CONDITIONS LIST
   ============================================================ */
.du-conditions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    direction: rtl;
    text-align: right;
}
.du-conditions-list li {
    padding: 13px 38px 13px 0;
    position: relative;
    border-bottom: 1px dashed rgba(26, 50, 112, 0.12);
    font-size: 14.5px;
    line-height: 1.85;
    color: var(--du-blue);
    font-weight: 400;
}
.du-conditions-list li:last-child {
    border-bottom: none;
}
.du-conditions-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 15px;
    color: var(--du-green);
    font-size: 14px;
}

/* ============================================================
   FEE NOTICE
   ============================================================ */
.du-fee-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border-radius: var(--du-radius-sm);
    padding: 18px 20px;
    margin-top: 20px;
    border: 1.5px solid var(--du-red);
    background: #ffffff;
    direction: rtl;
    text-align: right;
}
.du-fee-notice > i {
    color: var(--du-red);
    font-size: 22px;
    margin-top: 2px;
    flex-shrink: 0;
}
.du-fee-notice div {
    color: var(--du-blue) !important;
    font-size: 14.5px;
    line-height: 1.7;
    -webkit-text-fill-color: var(--du-blue) !important;
}
.du-fee-notice strong {
    color: var(--du-red) !important;
    font-weight: 700;
    -webkit-text-fill-color: var(--du-red) !important;
}
.du-fee-notice a {
    color: var(--du-blue);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--du-blue-soft);
    transition: var(--du-t);
}
.du-fee-notice a:hover {
    background: var(--du-blue);
    color: var(--du-yellow-bright);
    padding: 2px 8px;
    border-radius: 4px;
    border-bottom: none;
}
.du-fee-free {
    border-color: var(--du-green);
    background: #ffffff;
}
.du-fee-free > i {
    color: var(--du-green);
}
.du-fee-free strong {
    color: var(--du-green);
}
.du-fee-free div {
    color: var(--du-blue);
}

/* ============================================================
   LINKS GRID — Cream base, slow blue hover
   ============================================================ */
.du-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    direction: rtl;
}
.du-link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--du-cream-light);
    border: 2px solid rgba(26, 50, 112, 0.15);
    border-radius: var(--du-radius-md);
    text-decoration: none;
    color: var(--du-blue) !important;
    font-weight: 600;
    font-size: 13.5px;
    transition: all var(--du-t-slow);
    position: relative;
    overflow: hidden;
    direction: rtl;
    text-align: right;
    box-shadow: 0 2px 8px rgba(26, 50, 112, 0.08);
}
.du-link-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        var(--du-blue) 0%,
        var(--du-blue-deep) 100%
    );
    opacity: 0;
    transition: opacity var(--du-t-slow);
    z-index: 0;
}
.du-link-card:hover {
    color: var(--du-cream-text) !important;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(26, 50, 112, 0.3);
    border-color: var(--du-blue);
}
.du-link-card:hover::after {
    opacity: 1;
}
.du-link-card > * {
    position: relative;
    z-index: 1;
}
.du-link-card span {
    color: var(--du-blue) !important;
    transition: color var(--du-t-slow);
}
.du-link-card:hover span {
    color: var(--du-cream-text) !important;
}

/* Icon Circle */
.du-link-card > i:first-child {
    width: 42px;
    height: 42px;
    background: rgba(26, 50, 112, 0.08);
    color: var(--du-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    transition: all var(--du-t-slow);
    border: 1.5px solid rgba(26, 50, 112, 0.15);
}
.du-link-card:hover > i:first-child {
    background: rgba(240, 237, 216, 0.18);
    color: var(--du-cream-text);
    border-color: rgba(240, 237, 216, 0.25);
    transform: scale(1.1);
}

/* Arrow */
.du-link-arrow {
    margin-right: auto;
    font-size: 12px;
    color: rgba(26, 50, 112, 0.35) !important;
    opacity: 0;
    transform: translateX(-8px);
    transition: all var(--du-t-slow);
}
.du-link-card:hover .du-link-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--du-cream-text) !important;
}

/* ============================================================
   ARCHIVE TOGGLE
   ============================================================ */
.du-archive-toggle {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(
        135deg,
        var(--du-red-deep) 0%,
        var(--du-red) 100%
    );
    color: #ffffff !important;
    border: none;
    border-radius: var(--du-radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--du-t);
    margin-top: 28px;
    font-family: inherit;
    letter-spacing: 0.2px;
    direction: rtl;
    text-align: right;
    box-shadow: 0 4px 16px rgba(139, 26, 26, 0.25);
}
.du-archive-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(139, 26, 26, 0.35);
}
.du-archive-toggle,
.du-archive-toggle *,
.du-archive-toggle span,
.du-archive-toggle i {
    color: #ffffff !important;
}
.du-archive-toggle.open .fa-chevron-down {
    transform: rotate(180deg);
}

/* ============================================================
   ARCHIVE CONTENT — Red-tinted (archive = past = warm red signal)
   ============================================================ */
.du-archive-content {
    display: none;
    margin-top: 14px;
    padding: 28px;
    background: #fdf0f0;
    border-radius: var(--du-radius-md);
    border: 2px solid rgba(184, 50, 50, 0.2);
    direction: rtl;
    text-align: right;
}
.du-archive-content.open {
    display: block;
    animation: duFadeSlide 0.3s var(--du-ease-out);
}

/* Archive inner section cards */
.du-archive-content .du-section {
    background: #ffffff;
    border: 1.5px solid rgba(184, 50, 50, 0.15);
    margin-bottom: 14px;
}
.du-archive-content .du-section:last-child {
    margin-bottom: 0;
}

/* Archive section header stays BLUE */
.du-archive-content .du-section-header {
    background: transparent;
}
.du-archive-content .du-section-left {
    background: linear-gradient(
        135deg,
        var(--du-blue) 0%,
        var(--du-blue-deep) 100%
    ) !important;
}
.du-archive-content .du-section-header:hover .du-section-left {
    background: linear-gradient(
        135deg,
        var(--du-blue-hover) 0%,
        var(--du-blue) 100%
    ) !important;
}
.du-archive-content .du-section-title {
    color: var(--du-cream-text) !important;
}
.du-archive-content .du-section-icon {
    background: rgba(0, 0, 0, 0.2);
    color: var(--du-yellow);
}
.du-archive-content .du-section.open .du-section-body {
    background: #fff7f7;
}

/* Archive data table */
.du-archive-content .du-data-table {
    box-shadow: 0 1px 4px rgba(184, 50, 50, 0.08);
}
.du-archive-content .du-data-table td {
    color: var(--du-blue) !important;
    background: #ffffff;
}
.du-archive-content .du-data-table tbody tr:nth-child(even) td {
    background: rgba(253, 240, 240, 0.6);
}
.du-archive-content .du-data-table tbody tr:hover td {
    background: rgba(253, 225, 225, 0.5);
}
.du-archive-content .du-date-badge {
    background: #fff0f0;
    color: var(--du-blue) !important;
    border-color: rgba(184, 50, 50, 0.15);
}
.du-archive-content .du-conditions-list li {
    color: var(--du-blue) !important;
    border-bottom-color: rgba(184, 50, 50, 0.1);
}
.du-archive-content .du-conditions-list li::before {
    color: var(--du-green);
}
.du-archive-content .du-info-item {
    background: #ffffff;
    border-right-color: var(--du-red);
}
.du-archive-content .du-info-label {
    color: var(--du-blue-mid) !important;
}
.du-archive-content .du-info-value {
    color: var(--du-blue) !important;
}
.du-archive-content .du-fee-notice strong {
    color: var(--du-red) !important;
}
.du-archive-content .du-fee-free strong {
    color: var(--du-green) !important;
}
.du-archive-content .du-external-link {
    background: #fff0f0;
    color: var(--du-blue) !important;
    border-color: rgba(184, 50, 50, 0.2);
}
.du-archive-content .du-external-link:hover {
    background: var(--du-blue);
    color: var(--du-yellow-bright) !important;
}

/* Archive link cards — cream base same as main, hover blue */
.du-archive-content .du-links-grid .du-link-card {
    background: var(--du-cream-light);
    color: var(--du-blue) !important;
    border: 2px solid rgba(184, 50, 50, 0.15);
}
.du-archive-content .du-link-card span {
    color: var(--du-blue) !important;
}
.du-archive-content .du-link-card > i:first-child {
    color: var(--du-blue);
    background: rgba(26, 50, 112, 0.08);
    border-color: rgba(26, 50, 112, 0.15);
}
.du-archive-content .du-link-card:hover span {
    color: var(--du-cream-text) !important;
}
.du-archive-content .du-link-card:hover > i:first-child {
    color: var(--du-cream-text);
}

/* Archive Year Label */
.du-archive-year {
    color: var(--du-red);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    direction: rtl;
}

/* ============================================================
   نبض النقطة الخضراء — تنبيه المفاضلة النشطة
   ============================================================ */

.du-round-label b::before {
    animation: duGlowGreen 1.8s ease-in-out infinite;
}

@keyframes duGlowGreen {
    0%,
    100% {
        box-shadow: 0 0 4px 2px rgba(34, 180, 85, 0.3);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 12px 6px rgba(34, 180, 85, 0.6);
        opacity: 0.85;
    }
}

/* Archive Buttons — BLUE with cream text */
.du-archive-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--du-blue), var(--du-blue-hover));
    color: var(--du-cream-text) !important;
    border: 2px solid var(--du-blue-deep) !important;
    border-radius: var(--du-radius-sm);
    font-size: 14.5px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--du-t-slow);
    direction: rtl;
    box-shadow: 0 3px 12px var(--du-blue-soft);
    -webkit-text-fill-color: var(--du-cream-text) !important;
}
.du-archive-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(26, 50, 112, 0.3);
    background: linear-gradient(135deg, var(--du-blue-deep), var(--du-blue));
    color: var(--du-yellow-bright) !important;
    -webkit-text-fill-color: var(--du-yellow-bright) !important;
    border-color: var(--du-blue) !important;
}

/* Archive info sections */
.du-archive-content .info-section {
    background: #ffffff;
    border: 1.5px solid rgba(184, 50, 50, 0.15);
    border-radius: var(--du-radius-md);
    margin-bottom: 14px;
    padding: 20px;
    color: var(--du-blue);
}

/* ============================================================
   FORCE OVERRIDES — Archive buttons white text / cream
   ============================================================ */
.du-archive-toggle,
.du-archive-toggle *,
.du-archive-toggle span,
.du-archive-toggle i,
button.du-archive-toggle,
button.du-archive-toggle:hover,
button.du-archive-toggle span,
button.du-archive-toggle i {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.du-archive-content .du-archive-btn,
.du-archive-content a.du-archive-btn,
.du-archive-content a.du-archive-btn:link,
.du-archive-content a.du-archive-btn:visited {
    color: var(--du-cream-text) !important;
    -webkit-text-fill-color: var(--du-cream-text) !important;
}
.du-archive-content a.du-archive-btn:hover {
    color: var(--du-yellow-bright) !important;
    -webkit-text-fill-color: var(--du-yellow-bright) !important;
}

/* ============================================================
   خط فاصل بين المفاضلات
   ============================================================ */

.du-round-separator td {
    padding: 16px 0 8px 0 !important;
    border: none !important;
    background: transparent !important;
}

.du-sep-line {
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        #2a4a9c 25%,
        #22b455 50%,
        #2a4a9c 75%,
        transparent 100%
    );
    border-radius: 1px;
    margin: 0 20px;
    opacity: 0.6;
}

/* ============================================================
قريبا
   ============================================================ */
.du-soon {
    background: #f59e0b !important;
    color: #fff !important;
}

.du-soon-text {
    text-align: center;
    color: #6b7280;
    padding: 24px;
    font-size: 1.05rem;
}
/* ============================================================
   SCROLLBAR
   ============================================================ */
.du-main ::-webkit-scrollbar {
    width: 8px;
}
.du-main ::-webkit-scrollbar-track {
    background: var(--du-blue-light);
    border-radius: 4px;
}
.du-main ::-webkit-scrollbar-thumb {
    background: var(--du-blue-mid);
    border-radius: 4px;
}
.du-main ::-webkit-scrollbar-thumb:hover {
    background: var(--du-blue);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .du-tabs-nav {
        flex-direction: column;
        padding: 6px;
        gap: 3px;
    }
    .du-tab-btn {
        min-width: auto;
        border-radius: var(--du-radius-sm);
        justify-content: flex-start;
        padding: 12px 20px;
    }
    .du-tab-btn.active::after {
        display: none;
    }
    .du-tab-btn.active {
        background: var(--du-blue-light);
    }
    .du-tab-pane {
        padding: 20px 16px;
    }
    .du-links-grid {
        grid-template-columns: 1fr;
    }
    .du-info-grid {
        grid-template-columns: 1fr;
    }
    .du-section-header {
        font-size: 14.5px;
    }
    .du-section-title {
        font-size: 14px;
        padding: 15px 12px 15px 0;
        text-align: right;
    }
    .du-section.open .du-section-body {
        padding: 18px 16px;
    }
    .du-hero {
        padding: 12px 0 60px;
    }
    .du-title {
        font-size: 1.6rem;
    }
    .du-meta-badge {
        font-size: 12.5px;
        padding: 9px 18px;
    }
    .du-data-table {
        font-size: 13px;
    }
    .du-data-table td,
    .du-data-table th {
        padding: 10px 12px;
    }
    .du-date-badge {
        font-size: 12.5px;
        padding: 6px 12px;
        white-space: normal;
    }
    .du-section-icon {
        width: 46px;
        height: 46px;
        font-size: 16px;
    }
    .du-archive-toggle {
        padding: 13px 18px;
        font-size: 14px;
    }
    .du-archive-content {
        padding: 18px 14px;
    }
    .du-breadcrumb,
    .du-breadcrumb a,
    .du-bc-active {
        font-size: 10px;
    }
    .du-breadcrumb {
        margin-bottom: 14px;
    }
}
@media (max-width: 480px) {
    .du-container {
        padding: 0 14px;
    }
    .du-archive-toggle {
        font-size: 13.5px;
        padding: 12px 16px;
    }
    .du-link-card {
        padding: 14px 16px;
    }
    .du-info-item {
        padding: 12px 14px;
    }
    .du-archive-btn {
        padding: 12px 16px;
        font-size: 13.5px;
    }
    .du-hero {
        padding: 10px 0 50px;
    }
    .du-section-title {
        text-align: right;
    }
}
