/* Izglitibas programmu kartisu un kursu bloku stili. */

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

.programma-card,
.kurss-card,
.info-box {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

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

.kurss-card:nth-child(1) { animation-delay: 0.35s; }
.kurss-card:nth-child(2) { animation-delay: 0.38s; }
.kurss-card:nth-child(3) { animation-delay: 0.41s; }
.kurss-card:nth-child(4) { animation-delay: 0.44s; }
.kurss-card:nth-child(5) { animation-delay: 0.47s; }
.kurss-card:nth-child(6) { animation-delay: 0.5s; }
.kurss-card:nth-child(7) { animation-delay: 0.53s; }
.kurss-card:nth-child(8) { animation-delay: 0.56s; }
.kurss-card:nth-child(9) { animation-delay: 0.59s; }
.kurss-card:nth-child(10) { animation-delay: 0.62s; }

.info-box { animation-delay: 0.65s; }

/* ===== IZGLĪTĪBAS PROGRAMMU LAPA ===== */
.programmas-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;
}

/* ===== PROGRAMMU GRUPAS ===== */
.programmu-grupa {
    margin-bottom: 50px;
    position: relative;
    z-index: 3;
}

.grupa-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #520505;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffcc00;
}

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

.programma-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    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;
}

.programmas-grid--single-wide .programma-card--full-width {
    grid-column: 1 / -1;
}

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

.programma-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.programma-kods {
    background: #520505;
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
}

.programma-limenis {
    background: #ffcc00;
    color: #520505;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
}

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

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

.programma-detalas {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px dashed rgba(82,5,5,0.1);
}

.detala {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #2d3748;
    font-size: 0.9rem;
}

.detala i {
    color: #ffcc00;
    width: 16px;
}

/* ===== PADZIĻINĀTIE KURSI - BORDO KARTES ===== */
.kursi-section {
    margin-bottom: 50px;
    position: relative;
    z-index: 3;
}

.kursi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.kurss-card {
    background: #520505;
    border-radius: 20px;
    padding: 25px 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;
}

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

.kurss-card i {
    font-size: 2rem;
    color: #ffcc00;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.kurss-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

/* ===== INFORMĀCIJAS BLOKS ===== */
.info-section {
    margin-top: 50px;
    position: relative;
    z-index: 3;
}

.info-box {
    background: white;
    border-radius: 20px;
    padding: 30px;
    border-left: 5px solid #ffcc00;
    box-shadow: 0 10px 25px rgba(82,5,5,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,204,0,0.1) 0%, transparent 70%);
}

.info-box i {
    font-size: 2.5rem;
    color: #ffcc00;
    position: relative;
    z-index: 2;
}

.info-box h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #520505;
    margin-bottom: 5px;
    position: relative;
    z-index: 2;
}

.info-box p {
    color: #2d3748;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.info-box a {
    color: #520505;
    text-decoration: none;
    font-weight: 500;
}

.info-box a:hover {
    text-decoration: underline;
}

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

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .grupa-title {
        font-size: 1.5rem;
    }
    
    .programma-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .kursi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .programmas-grid {
        grid-template-columns: 1fr;
    }
    
    .kursi-grid {
        grid-template-columns: 1fr;
    }
}