/* Par skolu sakumlapas sekciju un navigacijas stili. */

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

.kategorija-card,
.sasniegums-card,
.vertiba-card,
.tradition-tag,
.infra-item {
    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; }
.kategorija-card:nth-child(6) { animation-delay: 0.35s; }
.kategorija-card:nth-child(7) { animation-delay: 0.4s; }
.kategorija-card:nth-child(8) { animation-delay: 0.45s; }
.kategorija-card:nth-child(9) { animation-delay: 0.5s; }

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

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

.tradition-tag:nth-child(1) { animation-delay: 0.05s; }
.tradition-tag:nth-child(2) { animation-delay: 0.1s; }
.tradition-tag:nth-child(3) { animation-delay: 0.15s; }
.tradition-tag:nth-child(4) { animation-delay: 0.2s; }
.tradition-tag:nth-child(5) { animation-delay: 0.25s; }
.tradition-tag:nth-child(6) { animation-delay: 0.3s; }
.tradition-tag:nth-child(7) { animation-delay: 0.35s; }
.tradition-tag:nth-child(8) { animation-delay: 0.4s; }
.tradition-tag:nth-child(9) { animation-delay: 0.45s; }
.tradition-tag:nth-child(10) { animation-delay: 0.5s; }
.tradition-tag:nth-child(11) { animation-delay: 0.55s; }
.tradition-tag:nth-child(12) { animation-delay: 0.6s; }

.infra-item:nth-child(1) { animation-delay: 0.1s; }
.infra-item:nth-child(2) { animation-delay: 0.15s; }
.infra-item:nth-child(3) { animation-delay: 0.2s; }
.infra-item:nth-child(4) { animation-delay: 0.25s; }
.infra-item:nth-child(5) { animation-delay: 0.3s; }
.infra-item:nth-child(6) { animation-delay: 0.35s; }
.infra-item:nth-child(7) { animation-delay: 0.4s; }
.infra-item:nth-child(8) { animation-delay: 0.45s; }

/* ===== PAR SKOLU LAPA ===== */
.par-skolu-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;
}

/* ===== KATEGORIJAS ===== */
.kategorijas-section {
    margin-bottom: 60px;
    position: relative;
    z-index: 3;
}

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

.kategorija-card {
    background: white;
    border-radius: 20px;
    padding: 30px 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;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.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;
    font-size: 0.9rem;
}

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

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

/* ===== SASNIEGUMI / STATISTIKA ===== */
.sasniegumi-section {
    margin-bottom: 60px;
    position: relative;
    z-index: 3;
}

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

.sasniegums-card {
    background: #520505;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(82,5,5,0.15);
    border: 1px solid #ffcc00;
    transition: all 0.3s;
}

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

.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;
}

/* ===== VĒRTĪBAS ===== */
.vertibas-section {
    margin-bottom: 60px;
    position: relative;
    z-index: 3;
}

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

.vertiba-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(82,5,5,0.05);
    border: 1px solid rgba(82,5,5,0.1);
    transition: all 0.3s;
}

.vertiba-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;
}

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

.vertiba-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===== TRADĪCIJAS ===== */
.traditions-section {
    margin-bottom: 60px;
    position: relative;
    z-index: 3;
}

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

.tradition-tag {
    background: white;
    color: #520505;
    padding: 10px 20px;
    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);
}

/* ===== INFRASTRUKTŪRA ===== */
.infrastructure-section {
    margin-bottom: 40px;
    position: relative;
    z-index: 3;
}

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

.infra-item {
    background: #520505;
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(82,5,5,0.15);
    border: 1px solid #ffcc00;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.infra-item i {
    font-size: 2rem;
    color: #ffcc00;
}

.infra-item span {
    font-size: 0.95rem;
    color: white;
    font-weight: 500;
}

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

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

@media (max-width: 576px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .section-heading {
        font-size: 1.6rem;
    }
    
    .kategorijas-grid,
    .sasniegumi-grid,
    .vertibas-grid,
    .infrastructure-grid {
        grid-template-columns: 1fr;
    }
    
    .traditions-grid {
        gap: 8px;
    }
    
    .tradition-tag {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}