/* Vizijas, misijas un vertibu sekciju stili. */

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

.vizija-card,
.misija-card,
.vertiba-card,
.merki-card,
.prioritate-item,
.audzinasana-card,
.himna-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

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

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

.prioritate-item:nth-child(1) { animation-delay: 0.1s; }
.prioritate-item:nth-child(2) { animation-delay: 0.2s; }
.prioritate-item:nth-child(3) { animation-delay: 0.3s; }
.prioritate-item:nth-child(4) { animation-delay: 0.4s; }

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

/* ===== VĪZIJA UN MĒRĶI LAPA ===== */
.vizija-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;
}

/* ===== VĪZIJAS KARTE ===== */
.vizija-card {
    background: linear-gradient(135deg, #520505 0%, #7a0f0f 100%);
    border-radius: 30px;
    padding: 60px 40px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(82,5,5,0.3);
    position: relative;
    overflow: hidden;
}

.vizija-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.vizija-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.vizija-content {
    position: relative;
    z-index: 2;
}

.vizija-icon {
    width: 80px;
    height: 80px;
    background: #ffcc00;
    color: #520505;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.vizija-card h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.vizija-card p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.95);
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
    font-weight: 300;
}

/* ===== MISIJAS KARTE ===== */
.misija-card {
    background: white;
    border-radius: 30px;
    padding: 50px 40px;
    margin-bottom: 60px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(82,5,5,0.1);
    border: 1px solid rgba(82,5,5,0.1);
    position: relative;
    overflow: hidden;
}

.misija-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: #ffcc00;
}

.misija-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;
    box-shadow: 0 10px 20px rgba(82,5,5,0.2);
}

.misija-card h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #520505;
    margin-bottom: 20px;
}

.misija-card p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #2d3748;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== PAMATVĒRTĪBAS - BORDO KARTES ===== */
.vertibas-section {
    margin-bottom: 80px;
    position: relative;
    z-index: 3;
}

.vertibas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

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

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

.vertiba-icon {
    width: 70px;
    height: 70px;
    background: #ffcc00;
    color: #520505;
    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.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
}

.vertiba-card p {
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
    font-size: 1rem;
}

/* ===== STRATĒGISKIE MĒRĶI - BALTAS KARTES ===== */
.merki-section {
    margin-bottom: 80px;
    position: relative;
    z-index: 3;
}

.merki-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.merki-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(82,5,5,0.08);
    border: 1px solid rgba(82,5,5,0.1);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.merki-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #520505, #ffcc00);
}

.merki-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255,204,0,0.2);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.merki-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #520505;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.merki-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

.merki-uzdevumi {
    list-style: none;
    padding: 0;
    position: relative;
    z-index: 2;
}

.merki-uzdevumi li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2d3748;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.merki-uzdevumi li i {
    color: #28a745;
    font-size: 0.9rem;
}

/* ===== ILGTERMIŅA PRIORITĀTES - BORDO KARTES ===== */
.prioritates-section {
    margin-bottom: 80px;
    position: relative;
    z-index: 3;
}

.prioritates-table-wrap {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(82,5,5,0.08);
    border: 1px solid rgba(82,5,5,0.1);
    overflow-x: auto;
}

.prioritates-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

.prioritates-table thead th {
    background: #520505;
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: left;
    padding: 14px 12px;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.prioritates-table thead th:last-child {
    border-right: none;
}

.prioritates-table tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(82,5,5,0.12);
    border-right: 1px solid rgba(82,5,5,0.08);
    vertical-align: top;
    color: #2d3748;
    line-height: 1.5;
    font-size: 0.95rem;
}

.prioritates-table tbody td:last-child {
    border-right: none;
}

.prioritates-table tbody tr:nth-child(even) {
    background: #fffaf0;
}

.prioritates-table tbody tr:hover {
    background: #fff6d8;
}

.prioritates-table tbody td:nth-child(n+4) {
    text-align: center;
    font-weight: 700;
    color: #520505;
}

.prioritates-results {
    display: grid;
    gap: 24px;
}

.prioritates-result-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 25px rgba(82,5,5,0.08);
    border: 1px solid rgba(82,5,5,0.12);
    position: relative;
    overflow: hidden;
}

.prioritates-result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #520505, #ffcc00);
}

.prioritates-result-card h3 {
    margin: 0 0 8px;
    color: #520505;
    font-size: 1.35rem;
    line-height: 1.35;
}

.prioritates-result-card .result-periods {
    margin: 0 0 16px;
    font-weight: 700;
    color: #7a0f0f;
}

.prioritates-result-card h4 {
    margin: 14px 0 8px;
    color: #520505;
    font-size: 1rem;
}

.prioritates-result-card p {
    margin: 0 0 10px;
    color: #2d3748;
    line-height: 1.6;
}

.prioritates-result-card ul {
    margin: 0;
    padding-left: 20px;
}

.prioritates-result-card li {
    margin-bottom: 8px;
    color: #2d3748;
    line-height: 1.55;
}

.prioritates-result-card li:last-child {
    margin-bottom: 0;
}

/* ===== AUDZINĀŠANAS PRIORITĀTES - TABULA ===== */
.audzinasana-section {
    margin-bottom: 80px;
    position: relative;
    z-index: 3;
}

.audzinasana-table-wrap {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(82,5,5,0.08);
    border: 1px solid rgba(82,5,5,0.1);
    overflow-x: auto;
}

.audzinasana-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

.audzinasana-table thead th {
    background: #520505;
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: left;
    padding: 14px 12px;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.audzinasana-table thead th:last-child {
    border-right: none;
}

.audzinasana-table tbody th,
.audzinasana-table tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(82,5,5,0.12);
    border-right: 1px solid rgba(82,5,5,0.08);
    vertical-align: top;
    color: #2d3748;
    line-height: 1.5;
    font-size: 0.95rem;
}

.audzinasana-table tbody th {
    width: 220px;
    font-weight: 700;
    color: #520505;
    background: #fffaf0;
}

.audzinasana-table tbody td:last-child,
.audzinasana-table tbody th:last-child {
    border-right: none;
}

.audzinasana-table tbody tr:nth-child(even) td {
    background: #fffaf0;
}

.audzinasana-table ul {
    margin: 0;
    padding-left: 18px;
}

.audzinasana-table li {
    margin-bottom: 10px;
}

.audzinasana-table li:last-child {
    margin-bottom: 0;
}

/* ===== SKOLAS HIMNA - TĀDA PATI KĀ VĪZIJAS KARTE ===== */
.himna-section {
    margin-bottom: 40px;
    position: relative;
    z-index: 3;
}

.himna-card {
    background: linear-gradient(135deg, #520505 0%, #7a0f0f 100%);
    border-radius: 30px;
    padding: 60px 40px;
    box-shadow: 0 20px 40px rgba(82,5,5,0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 40px;
}

.himna-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.himna-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.himna-icon {
    width: 100px;
    height: 100px;
    background: #ffcc00;
    color: #520505;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
}

.himna-text {
    flex: 1;
    position: relative;
    z-index: 2;
}

.himna-text p {
    color: rgba(255,255,255,0.95);
    line-height: 1.9;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-style: italic;
}

.himna-text p:last-of-type {
    margin-bottom: 0;
}

.himna-autors {
    text-align: right;
    color: rgba(255,255,255,0.8) !important;
    font-style: normal !important;
    font-size: 1rem !important;
    margin-top: 20px;
}

/* ===== RESPONSĪVAIS DIZAINS ===== */
@media (max-width: 992px) {
    .page-title {
        font-size: 2.2rem;
    }
    
    .vizija-card p {
        font-size: 1.2rem;
    }
    
    .misija-card p {
        font-size: 1.1rem;
    }
    
    .himna-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .section-heading {
        font-size: 1.8rem;
    }
    
    .vizija-card,
    .misija-card,
    .himna-card {
        padding: 40px 25px;
    }
    
    .vizija-card h2 {
        font-size: 1.8rem;
    }
    
    .vizija-card p {
        font-size: 1.1rem;
    }
    
    .misija-card h2 {
        font-size: 1.8rem;
    }
    
    .vertibas-grid,
    .merki-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .prioritates-table {
        min-width: 860px;
    }

    .audzinasana-table {
        min-width: 860px;
    }
    
    .himna-text p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .section-heading {
        font-size: 1.6rem;
    }
    
    .vertibas-grid,
    .merki-grid {
        grid-template-columns: 1fr;
    }
    
    .vizija-card {
        padding: 30px 20px;
    }
    
    .vizija-card h2 {
        font-size: 1.6rem;
    }
    
    .vizija-card p {
        font-size: 1rem;
    }
    
    .misija-card {
        padding: 30px 20px;
    }
    
    .misija-card h2 {
        font-size: 1.6rem;
    }
    
    .misija-card p {
        font-size: 1rem;
    }
    
    .himna-card {
        padding: 30px 20px;
    }
    
    .himna-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
}