/* Modern Educational Color Palette */
/* Primary: Deep Blue-Gray #2C3E50 */
/* Secondary: Soft Teal #1ABC9C */
/* Accent: Warm Coral #E8927C */
/* Neutral: Cool Gray #627D98 */
/* Background: Soft Cream #F8F9FA */

/* Hero Section */
#subject-tests .all-tests-hero {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%) !important;
    border-radius: 20px !important;
    padding: 48px 40px !important;
    margin-bottom: 40px !important;
    color: white !important;
    position: relative;
    overflow: hidden;
    border: 1px solid #1a252f;
}

#subject-tests .all-tests-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: rgba(26, 188, 156, 0.1);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

#subject-tests .all-tests-hero h1 {
    font-size: 42px !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
    position: relative;
    z-index: 1;
    color: #ecf0f1 !important;
}

#subject-tests .all-tests-hero p {
    font-size: 18px !important;
    opacity: 0.9;
    margin-bottom: 24px !important;
    max-width: 600px;
    position: relative;
    z-index: 1;
    color: #bdc3c7 !important;
}

#subject-tests .stats-badge {
    display: inline-flex !important;
    align-items: center;
    background: rgba(26, 188, 156, 0.2) !important;
    backdrop-filter: blur(10px);
    padding: 12px 24px !important;
    border-radius: 50px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    position: relative;
    z-index: 1;
    color: #1abc9c !important;
    border: 1px solid rgba(26, 188, 156, 0.3);
}

#subject-tests .stats-badge i {
    margin-right: 8px;
    font-size: 20px;
}

/* Year Section */
#subject-tests .year-section-modern {
    background: white !important;
    border-radius: 16px !important;
    padding: 32px !important;
    margin-bottom: 0px !important;
    box-shadow: 0 2px 4px rgba(44, 62, 80, 0.06), 0 4px 12px rgba(44, 62, 80, 0.08) !important;
    transition: all 0.3s ease;
    border: 1px solid #e8edf2;
}

#subject-tests .year-section-modern:hover,
#subject-tests .year-section-modern:focus-within {
    box-shadow: 0 4px 8px rgba(44, 62, 80, 0.08), 0 8px 20px rgba(44, 62, 80, 0.12) !important;
    transform: translateY(-2px);
}

#subject-tests .year-header {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 28px !important;
    padding-bottom: 20px !important;
    border-bottom: 2px solid #e8edf2 !important;
}

#subject-tests .year-badge {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    color: #ecf0f1 !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    padding: 12px 28px !important;
    border-radius: 12px !important;
    margin-right: 20px !important;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.2) !important;
}

#subject-tests .year-description {
    flex: 1;
}

#subject-tests .year-description h3 {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 4px !important;
}

#subject-tests .year-description p {
    color: #627d98 !important;
    margin: 0 !important;
    font-size: 14px !important;
}

/* Subject Groups */
#subject-tests .subject-group-modern {
    margin-bottom: 28px !important;
}

#subject-tests .subject-group-modern:last-child {
    margin-bottom: 0 !important;
}

#subject-tests .subject-header-modern {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 16px !important;
}

#subject-tests .subject-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 12px !important;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

#subject-tests .subject-icon i {
    color: white !important;
    font-size: 18px !important;
}

#subject-tests .subject-header-modern:hover .subject-icon,
#subject-tests .subject-header-modern:focus .subject-icon {
    transform: scale(1.1);
}

#subject-tests .subject-name {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin: 0 !important;
}

/* Subject-specific colors - Improved Modern Palette v2 */

/* Math - Vibrant Blue (clarity, logic) */
.subject-matematika .subject-icon {
    background: linear-gradient(135deg, #667EEA 0%, #4F5FD1 100%) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35) !important;
}

/* Georgian - Fresh Green (growth, nature) */
.subject-kartuli .subject-icon {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35) !important;
}

/* History - Warm Amber (heritage, time) */
.subject-istoria .subject-icon {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35) !important;
}

/* English - Royal Purple (international) */
.subject-inglisuri .subject-icon {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%) !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35) !important;
}

/* Physics - Sky Blue (science, universe) */
.subject-fizika .subject-icon {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35) !important;
}

/* Chemistry - Ocean Teal (elements, reactions) */
.subject-qimia .subject-icon {
    background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%) !important;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.35) !important;
}

/* Biology - Living Green (life, organic) */
.subject-biologia .subject-icon {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%) !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35) !important;
}

/* Geography - Earth Terracotta (terrain, maps) */
.subject-geografia .subject-icon {
    background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%) !important;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35) !important;
}

/* Literature - Rose Pink (passion, emotion) */
.subject-literatura .subject-icon {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%) !important;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35) !important;
}

/* Skills/Abilities (Unarebi) - Indigo (cognition, mental) */
.subject-unarebi .subject-icon {
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%) !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35) !important;
}

/* Foreign Languages - Violet (communication) */
.subject-ucxo-ena .subject-icon,
.subject-germanuli .subject-icon,
.subject-franguli .subject-icon,
.subject-rusuli .subject-icon {
    background: linear-gradient(135deg, #A855F7 0%, #9333EA 100%) !important;
    box-shadow: 0 44px 12px rgba(168, 85, 247, 0.35) !important;
}

/* Civic Education - Deep Slate (authority) */
.subject-moqalaqeoba .subject-icon {
    background: linear-gradient(135deg, #475569 0%, #334155 100%) !important;
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.35) !important;
}

/* Default fallback - Cyan */
.subject-default .subject-icon {
    background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%) !important;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.35) !important;
}

/* Tests Grid */
#subject-tests .tests-grid-modern {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 16px !important;
}

#subject-tests .test-card-modern {
    background: #f7f9fb !important;
    border: 1.5px solid #e1e8ed !important;
    border-radius: 12px !important;
    padding: 18px 20px !important;
    transition: all 0.25s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-decoration: none !important;
    color: #2c3e50 !important;
}

#subject-tests .test-card-modern:hover,
#subject-tests .test-card-modern:focus {
    background: white !important;
    border-color: #1abc9c !important;
    box-shadow: 0 4px 12px rgba(26, 188, 156, 0.15) !important;
    transform: translateX(4px);
    text-decoration: none !important;
    color: #16a085 !important;
}

#subject-tests .test-card-modern .test-name {
    font-size: 15px !important;
    font-weight: 500 !important;
    flex: 1;
}

#subject-tests .test-card-modern .test-arrow {
    color: #b8c5d0 !important;
    font-size: 16px !important;
    transition: all 0.25s ease;
}

#subject-tests .test-card-modern:hover .test-arrow,
#subject-tests .test-card-modern:focus .test-arrow {
    color: #1abc9c !important;
    transform: translateX(4px);
}

/* PDF Section */
#subject-tests .pdf-section-modern {
    background: #f7f9fb !important;
    border-radius: 16px !important;
    padding: 32px !important;
    margin-top: 48px !important;
    border: 1px solid #e8edf2;
}

#subject-tests .pdf-section-modern h2 {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    margin-bottom: 24px !important;
    display: flex !important;
    align-items: center !important;
}

#subject-tests .pdf-section-modern h2 i {
    color: #e8927c !important;
    margin-right: 12px !important;
    font-size: 28px !important;
}

#subject-tests .pdf-section-modern h3 {
    font-size: 20px !important;
}

#subject-tests .pdf-section-modern h4 {
    font-size: 16px !important;
}

#subject-tests .pdf-year-group {
    margin-bottom: 32px !important;
}

#subject-tests .pdf-year-group:last-child {
    margin-bottom: 0 !important;
}

#subject-tests .pdf-year-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 16px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #e8edf2 !important;
}

#subject-tests .pdf-subject-group {
    margin-bottom: 20px !important;
}

#subject-tests .pdf-subject-name {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #627d98 !important;
    margin-bottom: 12px !important;
}

#subject-tests .pdf-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#subject-tests .pdf-list li {
    margin-bottom: 8px !important;
}

#subject-tests .pdf-list a {
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
    background: white !important;
    border-radius: 10px !important;
    color: #2c3e50 !important;
    transition: all 0.2s ease;
    text-decoration: none !important;
    border: 1.5px solid #e1e8ed !important;
}

#subject-tests .pdf-list a:hover,
#subject-tests .pdf-list a:focus {
    background: #fef5f3 !important;
    border-color: #e8927c !important;
    color: #d17a68 !important;
    transform: translateX(4px);
    text-decoration: none !important;
}

#subject-tests .pdf-list a i {
    color: #e8927c !important;
    margin-right: 12px !important;
    font-size: 18px !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
    #subject-tests .all-tests-hero {
        padding: 32px 24px !important;
    }

    #subject-tests .all-tests-hero h1 {
        font-size: 32px !important;
    }

    #subject-tests .all-tests-hero p {
        font-size: 16px !important;
    }

    #subject-tests .year-section-modern {
        padding: 24px 20px !important;
    }

    #subject-tests .year-badge {
        font-size: 22px !important;
        padding: 10px 20px !important;
    }

    #subject-tests .tests-grid-modern {
        grid-template-columns: 1fr !important;
    }

    #subject-tests .pdf-section-modern {
        padding: 24px 20px !important;
    }
}
/* Filter and Search Styles */
.filter-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 32px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.search-input,
.filter-select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    font-size: 16px;
    transition: all 0.2s ease;
}

.search-input:focus,
.filter-select:focus {
    border-color: #1abc9c;
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.2);
    outline: none;
}

/* Sticky Navigation */
.sticky-nav {
    position: sticky;
    top: 20px;
    align-self: flex-start;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    max-height: 80vh;
    overflow-y: auto;
}

.sticky-nav h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.sticky-nav a {
    display: block;
    padding: 8px 12px;
    color: #627d98;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sticky-nav a:hover,
.sticky-nav a:focus {
    background: #e8edf2;
    color: #2c3e50;
}

.sticky-nav a.active {
    background: #1abc9c;
    color: white;
    font-weight: 600;
}



@media (max-width: 992px) {
    .sticky-nav {
        display: none;
    }
}
.btn-primary {
    background-color: #1abc9c;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #16a085;
}
.pdf-list-inline {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e8edf2;
}

.pdf-list-inline h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #627d98;
}

.pdf-list-inline ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pdf-list-inline a {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: #f7f9fb;
    border-radius: 8px;
    color: #2c3e50;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid #e1e8ed;
    font-size: 14px;
}

.pdf-list-inline a:hover,
.pdf-list-inline a:focus {
    background: #fef5f3;
    border-color: #e8927c;
    color: #d17a68;
}

.pdf-list-inline a i {
    color: #e8927c;
    margin-right: 8px;
}