/* ===== CSS Reset & Variables ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color System */
    --primary-blue: #2E5BBA;
    --dark-blue: #1A4480;
    --light-blue: #E8F0FF;
    --accent-red: #E60012;
    --black: #1A1A1A;
    --dark-gray: #333333;
    --medium-gray: #666666;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --orange: #FF6B35;
    --green: #28A745;
    --purple: #7B3FF2;
    --yellow: #FFA500;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    
    /* Spacing - 8px Grid System */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-xxl: 64px;
    --space-xxxl: 96px;
    
    /* Container */
    --container-max: 1200px;
    --container-padding: 24px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
}

/* ===== Base Styles ===== */
body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-gray);
    background: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ===== Common Components ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(46, 91, 186, 0.2);
}

.btn-primary:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 91, 186, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--light-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 91, 186, 0.1);
}

/* ===== Breadcrumb Navigation ===== */
.breadcrumb-wrapper {
    background: var(--light-gray);
    border-bottom: 1px solid #E5E7EB;
    padding: 12px 0;
    margin-top: 70px; /* Adjust based on your nav height */
}

.breadcrumb {
    font-size: 14px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--medium-gray);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.breadcrumb-link:hover {
    color: var(--primary-blue);
    background: rgba(46, 91, 186, 0.08);
}

.breadcrumb-link i {
    width: 16px;
    height: 16px;
}

.breadcrumb-separator {
    width: 14px;
    height: 14px;
    color: #D1D5DB;
    margin: 0 2px;
}

.breadcrumb-current {
    color: var(--dark-gray);
    font-weight: 500;
    padding: 4px 8px;
}

.breadcrumb-item.active {
    color: var(--dark-gray);
}

/* Breadcrumb responsive */
@media (max-width: 768px) {
    .breadcrumb-wrapper {
        padding: 10px 0;
    }
    
    .breadcrumb {
        font-size: 13px;
    }
    
    .breadcrumb-link span {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-xxl);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.section-subtitle {
    font-size: 20px;
    color: var(--medium-gray);
    line-height: 1.6;
}

/* ===== Common Animations ===== */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== Responsive Utilities ===== */
@media (max-width: 1024px) {
    :root {
        --container-padding: 20px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 16px;
        --space-xxl: 48px;
        --space-xxxl: 64px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.highlight {
    color: var(--primary-blue);
    position: relative;
    background: linear-gradient(135deg, var(--primary-blue), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--medium-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-gray);
}