/* ================= GLOBAL DESIGN SYSTEM ================= */
:root {
    --primary-dark: #102548;
    --primary-gold: #B49651;
    --secondary-gold: #B29450;
    --light-gold: #E1BB70;
    --accent-gold: #C9A65E;
    
    --bg-light: #f8f9fc;
    --bg-white: #ffffff;
    --text-dark: #1a202c;
    --text-muted: #64748b;
    --border-color: rgba(16, 37, 72, 0.1);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    --shadow-sm: 0 2px 8px rgba(16, 37, 72, 0.05);
    --shadow-md: 0 8px 24px rgba(16, 37, 72, 0.08);
    --shadow-lg: 0 16px 40px rgba(16, 37, 72, 0.12);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================= TYPOGRAPHY & BASE ================= */
.inner-page-wrapper {
    background-color: var(--bg-light);
    min-height: calc(100vh - 400px);
    padding: 3rem 0;
    color: var(--text-dark);
}

.ds-heading-1 { font-size: 2.5rem; font-weight: 700; color: var(--primary-dark); }
.ds-heading-2 { font-size: 2rem; font-weight: 700; color: var(--primary-dark); }
.ds-heading-3 { font-size: 1.75rem; font-weight: 600; color: var(--primary-dark); }
.ds-heading-4 { font-size: 1.5rem; font-weight: 600; color: var(--primary-dark); }
.ds-heading-5 { font-size: 1.25rem; font-weight: 600; color: var(--primary-dark); }
.ds-text-muted { color: var(--text-muted); }

/* ================= BUTTONS ================= */
.btn-ds-primary {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-ds-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--light-gold), var(--primary-gold));
    color: #fff;
}

.btn-ds-secondary {
    background: var(--primary-dark);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-ds-secondary:hover {
    background: #183563;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-ds-outline {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    transition: var(--transition-normal);
}
.btn-ds-outline:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* ================= FORMS ================= */
.ds-form-group {
    margin-bottom: 1.5rem;
}
.ds-label {
    display: block;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}
.ds-input, .ds-select, .ds-textarea {
    width: 100%;
    padding: 0.85rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    color: var(--text-dark);
    transition: var(--transition-fast);
    font-family: inherit;
}
.ds-input:focus, .ds-select:focus, .ds-textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 4px rgba(180, 150, 81, 0.1);
}
.ds-checkbox {
    accent-color: var(--primary-gold);
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}
.ds-radio {
    accent-color: var(--primary-gold);
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}

/* ================= CARDS ================= */
.ds-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.ds-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.ds-card-img-top {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}
.ds-card-body {
    padding: 1.5rem;
    flex: 1 1 auto;
}
.ds-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}
.ds-card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ================= TABLES ================= */
.ds-table-wrapper {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.ds-table {
    width: 100%;
    border-collapse: collapse;
}
.ds-table th {
    background: var(--primary-dark);
    color: #fff;
    font-weight: 600;
    padding: 1rem 1.5rem;
    text-align: left;
}
[dir="rtl"] .ds-table th { text-align: right; }
.ds-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}
.ds-table tr:last-child td { border-bottom: none; }
.ds-table tbody tr:hover { background: var(--bg-light); }

/* ================= BADGES & TAGS ================= */
.ds-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 600;
}
.ds-badge-gold {
    background: rgba(180, 150, 81, 0.15);
    color: var(--primary-gold);
}
.ds-badge-dark {
    background: rgba(16, 37, 72, 0.1);
    color: var(--primary-dark);
}

/* ================= BREADCRUMBS ================= */
.ds-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    list-style: none;
    padding: 0;
}
.ds-breadcrumb a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 500;
}
.ds-breadcrumb a:hover { text-decoration: underline; }
.ds-breadcrumb .separator { color: var(--text-muted); }
.ds-breadcrumb .current { color: var(--text-muted); }

/* ================= PAGINATION ================= */
.ds-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    list-style: none;
    padding: 0;
}
.ds-pagination a, .ds-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 600;
    transition: var(--transition-fast);
}
.ds-pagination a {
    background: var(--bg-white);
    color: var(--primary-dark);
    border: 1px solid var(--border-color);
    text-decoration: none;
}
.ds-pagination a:hover {
    background: var(--primary-gold);
    color: #fff;
    border-color: var(--primary-gold);
}
.ds-pagination .active {
    background: var(--primary-dark);
    color: #fff;
    border-color: var(--primary-dark);
}

/* ================= ALERTS & TOASTS ================= */
.ds-alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}
.ds-alert-success { background: #e6f8ec; color: #1e7040; border: 1px solid #c3ebd2; }
.ds-alert-error { background: #feebeb; color: #b91c1c; border: 1px solid #fcd4d4; }
.ds-alert-info { background: #eff6ff; color: #1d4ed8; border: 1px solid #dbeafe; }
.ds-alert-warning { background: #fffbeb; color: #b45309; border: 1px solid #fef3c7; }

/* ================= EMPTY STATES ================= */
.ds-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border-color);
}
.ds-empty-state i {
    font-size: 4rem;
    color: var(--light-gold);
    margin-bottom: 1.5rem;
}
.ds-empty-state h4 {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.ds-empty-state p {
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

/* ================= TABS ================= */
.ds-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
}
.ds-tab {
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition-fast);
}
.ds-tab:hover { color: var(--primary-gold); }
.ds-tab.active {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-gold);
}

/* ================= MODALS ================= */
.ds-modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-lg);
}
.ds-modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}
.ds-modal-title {
    color: var(--primary-dark);
    font-weight: 700;
}
.ds-modal-body { padding: 1.5rem; }
.ds-modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
}

/* ================= LOADING SKELETONS ================= */
.ds-skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ================= HERO SECTION FOR INNER PAGES ================= */
.ds-inner-hero {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-dark);
    color: #fff;
    overflow: hidden;
}
.ds-inner-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(180, 150, 81, 0.2) 0%, transparent 70%);
}
.ds-inner-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}
.ds-inner-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}
.ds-inner-hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.ds-inner-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
}

/* ================= ULTRA-PREMIUM UTILITIES ================= */

/* Glassmorphism */
.ds-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(16, 37, 72, 0.05);
}
.ds-glass-dark {
    background: rgba(16, 37, 72, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* Advanced Hover Interactions */
.ds-hover-lift {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.ds-hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(16, 37, 72, 0.12);
}

/* Image Zoom Wrapper */
.ds-img-zoom-wrapper {
    overflow: hidden;
    position: relative;
}
.ds-img-zoom-wrapper img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.ds-img-zoom-wrapper:hover img {
    transform: scale(1.08);
}

/* Blur Reveal Animation Classes (Custom AOS Extension style) */
.ds-blur-reveal {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.ds-blur-reveal.aos-animate {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Parallax Helpers */
.ds-parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Custom Gradient Text */
.ds-text-gradient {
    background: linear-gradient(135deg, var(--primary-gold), var(--light-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* ================= SIDEBAR MENU ================= */
.ds-sidebar-wrapper {
    background: transparent;
    padding: 0;
    margin-bottom: 2rem;
}
.ds-sidebar-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-gold);
}
.ds-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ds-sidebar-item {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.ds-sidebar-item:last-child {
    border-bottom: none;
}
.ds-sidebar-link {
    display: block;
    padding: 1rem 0;
    color: #333;
    font-weight: 500;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.ds-sidebar-link:hover, .ds-sidebar-link:focus {
    color: var(--primary-gold);
    padding-left: 0.5rem;
}
[dir=""rtl""] .ds-sidebar-link:hover, [dir=""rtl""] .ds-sidebar-link:focus {
    padding-left: 0;
    padding-right: 0.5rem;
}
.ds-sidebar-link.active {
    color: var(--primary-gold);
}

/* Page Content Typography matching mockup */
.ds-content-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}
.ds-content-body {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
}

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

/* Responsive Typography */
@media (max-width: 991px) {
    .ds-heading-1 { font-size: 2rem; }
    .ds-heading-2 { font-size: 1.75rem; }
    .ds-heading-3 { font-size: 1.5rem; }
    .ds-heading-4 { font-size: 1.35rem; }
    
    .ds-inner-hero {
        height: 400px;
    }
    
    .ds-inner-hero-title {
        font-size: clamp(1.75rem, 3.5vw, 3rem);
    }
    
    .ds-card-img-top {
        height: 200px;
    }
    
    .inner-page-wrapper {
        padding: 2rem 0;
    }
    
    .ds-content-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 767px) {
    .ds-heading-1 { font-size: 1.75rem; }
    .ds-heading-2 { font-size: 1.5rem; }
    .ds-heading-3 { font-size: 1.35rem; }
    .ds-heading-4 { font-size: 1.2rem; }
    .ds-heading-5 { font-size: 1.1rem; }
    
    .ds-inner-hero {
        height: 300px;
    }
    
    .ds-inner-hero-title {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }
    
    .ds-inner-hero-subtitle {
        font-size: 0.95rem;
    }
    
    .ds-card-img-top {
        height: 180px;
    }
    
    /* Make tables scroll horizontally on mobile */
    .ds-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .ds-table th,
    .ds-table td {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    /* Make tabs scrollable horizontally */
    .ds-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap !important;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
        scrollbar-width: none;
    }
    
    .ds-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .ds-tab {
        flex-shrink: 0;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .inner-page-wrapper {
        padding: 1.5rem 0;
    }
    
    .ds-content-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .ds-content-body {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    /* Forms responsive */
    .ds-input, .ds-select, .ds-textarea {
        padding: 0.75rem 1rem;
    }
    
    /* Buttons */
    .btn-ds-primary,
    .btn-ds-secondary,
    .btn-ds-outline {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
    
    /* Empty states */
    .ds-empty-state {
        padding: 3rem 1.5rem;
    }
    
    .ds-empty-state i {
        font-size: 3rem;
    }
    
    /* Modal full-width on mobile */
    .ds-modal-content {
        border-radius: var(--radius-md);
    }
    
    .ds-modal-header,
    .ds-modal-body,
    .ds-modal-footer {
        padding: 1rem;
    }
    
    /* Pagination */
    .ds-pagination a, .ds-pagination span {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
    
    .ds-pagination {
        gap: 0.35rem;
    }
    
    /* Sidebar responsive */
    .ds-sidebar-wrapper {
        margin-bottom: 1.5rem;
    }
    
    .ds-sidebar-title {
        font-size: 1.2rem;
    }
    
    .ds-sidebar-link {
        padding: 0.85rem 0;
        font-size: 1rem;
    }
    
    /* Glassmorphism adjustments - reduce blur on mobile for performance */
    .ds-glass {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

@media (max-width: 480px) {
    .ds-heading-1 { font-size: 1.5rem; }
    .ds-heading-2 { font-size: 1.35rem; }
    .ds-heading-3 { font-size: 1.2rem; }
    .ds-heading-4 { font-size: 1.1rem; }
    .ds-heading-5 { font-size: 1rem; }
    
    .ds-inner-hero {
        height: 250px;
    }
    
    .ds-card-body {
        padding: 1.25rem;
    }
    
    .ds-card-img-top {
        height: 160px;
    }
    
    .ds-content-title {
        font-size: 1.35rem;
    }
    
    .ds-alert {
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
    }
    
    .ds-breadcrumb {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
}
