/* Izglitiba sakumlapa: kategoriju un sekciju stili. */

/* ===== ANIMĀCIJAS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kategorija-card,
.limenis-card,
.prieksmets-tags,
.sasniegums-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.kategorija-card:nth-child(1) { animation-delay: 0.1s; }
.kategorija-card:nth-child(2) { animation-delay: 0.15s; }
.kategorija-card:nth-child(3) { animation-delay: 0.2s; }
.kategorija-card:nth-child(4) { animation-delay: 0.25s; }
.kategorija-card:nth-child(5) { animation-delay: 0.3s; }

.limenis-card:nth-child(1) { animation-delay: 0.35s; }
.limenis-card:nth-child(2) { animation-delay: 0.4s; }
.limenis-card:nth-child(3) { animation-delay: 0.45s; }

.prieksmets-tags:nth-child(1) { animation-delay: 0.5s; }
.prieksmets-tags:nth-child(2) { animation-delay: 0.52s; }
.prieksmets-tags:nth-child(3) { animation-delay: 0.54s; }
.prieksmets-tags:nth-child(4) { animation-delay: 0.56s; }
.prieksmets-tags:nth-child(5) { animation-delay: 0.58s; }
.prieksmets-tags:nth-child(6) { animation-delay: 0.6s; }
.prieksmets-tags:nth-child(7) { animation-delay: 0.62s; }
.prieksmets-tags:nth-child(8) { animation-delay: 0.64s; }
.prieksmets-tags:nth-child(9) { animation-delay: 0.66s; }
.prieksmets-tags:nth-child(10) { animation-delay: 0.68s; }
.prieksmets-tags:nth-child(11) { animation-delay: 0.7s; }
.prieksmets-tags:nth-child(12) { animation-delay: 0.72s; }
.prieksmets-tags:nth-child(13) { animation-delay: 0.74s; }
.prieksmets-tags:nth-child(14) { animation-delay: 0.76s; }
.prieksmets-tags:nth-child(15) { animation-delay: 0.78s; }
.prieksmets-tags:nth-child(16) { animation-delay: 0.8s; }
.prieksmets-tags:nth-child(17) { animation-delay: 0.82s; }
.prieksmets-tags:nth-child(18) { animation-delay: 0.84s; }
.prieksmets-tags:nth-child(19) { animation-delay: 0.86s; }
.prieksmets-tags:nth-child(20) { animation-delay: 0.88s; }

.sasniegums-card:nth-child(1) { animation-delay: 0.9s; }
.sasniegums-card:nth-child(2) { animation-delay: 0.95s; }
.sasniegums-card:nth-child(3) { animation-delay: 1.0s; }
.sasniegums-card:nth-child(4) { animation-delay: 1.05s; }

/* ===== IZGLĪTĪBAS LAPA ===== */
.izglitiba-page {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Atpakaļ saite */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #520505;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 30px;
    transition: all 0.2s;
    background: white;
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid #520505;
    box-shadow: 0 2px 8px rgba(82,5,5,0.1);
    position: relative;
    z-index: 3;
}

.back-link:hover {
    background: #520505;
    color: white;
    transform: translateX(-5px);
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 3;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #520505;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #ffcc00, #ffd700);
    border-radius: 2px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 20px auto 0;
}

.section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #520505;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #ffcc00;
    border-radius: 2px;
}

/* ===== KATEGORIJU REŽĢIS ===== */
.kategorijas-section {
    margin-bottom: 60px;
    position: relative;
    z-index: 3;
}

.kategorijas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.kategorija-card {
    background: white;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(82,5,5,0.05);
    border: 1px solid rgba(82,5,5,0.1);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.kategorija-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(82,5,5,0.15);
    border-color: #ffcc00;
}

.kategorija-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #520505, #ffcc00);
    transform: translateX(-100%);
    transition: transform 0.4s;
}

.kategorija-card:hover::before {
    transform: translateX(0);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: #520505;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    transition: all 0.3s;
}

.kategorija-card:hover .card-icon {
    background: #ffcc00;
    color: #520505;
    transform: scale(1.1);
}

.kategorija-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #520505;
    margin-bottom: 10px;
}

.kategorija-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-arrow {
    display: inline-block;
    color: #520505;
    font-size: 1rem;
    transition: transform 0.3s;
}

.kategorija-card:hover .card-arrow {
    transform: translateX(8px);
    color: #ffcc00;
}

/* ===== IZGLĪTĪBAS LĪMEŅI - BORDO KARTES ===== */
.limeni-section {
    margin-bottom: 60px;
    position: relative;
    z-index: 3;
}

.limeni-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.limenis-card {
    background: #520505;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(82,5,5,0.25);
    border: 2px solid #ffcc00;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.limenis-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,204,0,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

.limenis-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgb(230, 199, 79);
    position: absolute;
    top: 10px;
    right: 20px;
}

.limenis-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
}

.limenis-card p {
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===== MĀCĪBU PRIEKŠMETI ===== */
.prieksmeti-section {
    margin-bottom: 60px;
    position: relative;
    z-index: 3;
}

.prieksmeti-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.prieksmets-tags {
    background: white;
    color: #520505;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid #520505;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(82,5,5,0.05);
}


/* ===== MŪSU SASNIEGUMI - BORDO KARTES ===== */
.sasniegumi-section {
    margin-bottom: 40px;
    position: relative;
    z-index: 3;
}

.sasniegumi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.sasniegums-card {
    background: #520505;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(82,5,5,0.25);
    border: 2px solid #ffcc00;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.sasniegums-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,204,0,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

.sasniegums-card i {
    font-size: 2.5rem;
    color: #ffcc00;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.sasniegums-number {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 5px;
}

.sasniegums-text {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== RESPONSĪVAIS DIZAINS ===== */
@media (max-width: 992px) {
    .page-title {
        font-size: 2.2rem;
    }
    
    .limeni-grid,
    .sasniegumi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .section-heading {
        font-size: 1.8rem;
    }
    
    .kategorijas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .section-heading {
        font-size: 1.6rem;
    }
    
    .kategorijas-grid,
    .limeni-grid,
    .sasniegumi-grid {
        grid-template-columns: 1fr;
    }
    
    .prieksmeti-grid {
        gap: 8px;
    }
    
    .prieksmets-tags {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}