/* Interesu izglitibas lapas kartisu un sarakstu stili. */

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

.intro-section,
.pulcinis-card,
.step,
.kontakti-box,
.pieteikums-steps,
.kategorija-btn {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

/* Ievada sadaļa */
.intro-section { animation-delay: 0.1s; }

/* Pulciņu kartes */
.pulcinis-card:nth-child(1) { animation-delay: 0.15s; }
.pulcinis-card:nth-child(2) { animation-delay: 0.2s; }
.pulcinis-card:nth-child(3) { animation-delay: 0.25s; }
.pulcinis-card:nth-child(4) { animation-delay: 0.3s; }
.pulcinis-card:nth-child(5) { animation-delay: 0.35s; }
.pulcinis-card:nth-child(6) { animation-delay: 0.4s; }
.pulcinis-card:nth-child(7) { animation-delay: 0.45s; }
.pulcinis-card:nth-child(8) { animation-delay: 0.5s; }
.pulcinis-card:nth-child(9) { animation-delay: 0.55s; }
.pulcinis-card:nth-child(10) { animation-delay: 0.6s; }
.pulcinis-card:nth-child(11) { animation-delay: 0.65s; }
.pulcinis-card:nth-child(12) { animation-delay: 0.7s; }
.pulcinis-card:nth-child(13) { animation-delay: 0.75s; }
.pulcinis-card:nth-child(14) { animation-delay: 0.8s; }
.pulcinis-card:nth-child(15) { animation-delay: 0.85s; }
.pulcinis-card:nth-child(16) { animation-delay: 0.9s; }
.pulcinis-card:nth-child(17) { animation-delay: 0.95s; }

/* Kategoriju pogas */
.kategorija-btn:nth-child(1) { animation-delay: 0.1s; }
.kategorija-btn:nth-child(2) { animation-delay: 0.15s; }
.kategorija-btn:nth-child(3) { animation-delay: 0.2s; }
.kategorija-btn:nth-child(4) { animation-delay: 0.25s; }
.kategorija-btn:nth-child(5) { animation-delay: 0.3s; }
.kategorija-btn:nth-child(6) { animation-delay: 0.35s; }

/* Pieteikuma soļi - 3 soļiem */
.pieteikums-steps { animation-delay: 0.15s; }

.step:nth-child(1) { animation-delay: 0.15s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.25s; }

/* Kontaktinformācija */
.kontakti-box { animation-delay: 0.35s; }

/* ===== INTEREŠU IZGLĪTĪBAS LAPA ===== */
.intereses-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;
}

.page-success-message {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    max-width: 800px;
    margin: 0 auto 35px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f3fff5 0%, #e1f7e7 100%);
    border: 1px solid rgba(40, 167, 69, 0.25);
    border-left: 5px solid #28a745;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(40, 167, 69, 0.12);
    position: relative;
    z-index: 3;
    transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.4s ease, margin 0.4s ease, padding 0.4s ease;
    max-height: 200px;
    overflow: hidden;
}

.page-success-message.is-hidden {
    opacity: 0;
    transform: translateY(-8px);
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
}

.page-success-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #28a745;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.2);
}

.page-success-content strong {
    display: block;
    color: #166534;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.page-success-content p {
    margin: 0;
    color: #285c34;
    line-height: 1.6;
}

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

/* ===== IEVADA SEKCIJA ===== */
.intro-section {
    background: white;
    border-radius: 30px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 15px 35px rgba(82,5,5,0.1);
    border: 1px solid rgba(82,5,5,0.1);
    position: relative;
    overflow: hidden;
    z-index: 3;
}

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

.intro-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.intro-icon {
    width: 100px;
    height: 100px;
    background: #520505;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    flex-shrink: 0;
    box-shadow: 0 15px 30px rgba(82,5,5,0.2);
}

.intro-text {
    flex: 1;
}

.intro-text h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #520505;
    margin-bottom: 15px;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3748;
}

/* ===== KATEGORIJU NAVIGĀCIJA ===== */
.kategoriju-navigacija {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    position: relative;
    z-index: 3;
}

.kategorija-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    color: #666;
    border: 1px solid #e9ecef;
}

.kategorija-btn:hover {
    background: #520505;
    color: white;
    border-color: #520505;
    transform: translateY(-2px);
}

.kategorija-btn.active {
    background: #520505;
    color: white;
    border-color: #520505;
}

/* ===== PULCIŅU REŽĢIS ===== */
.pulcini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
    position: relative;
    z-index: 3;
}

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

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

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

.pulcinis-bilde {
    width: 60px;
    height: 60px;
    background: #520505;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 15px;
    transition: all 0.3s;
}

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

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

.pulcinis-vecums {
    display: inline-block;
    background: rgba(255,204,0,0.1);
    color: #520505;
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.pulcinis-vieta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pulcinis-vieta::before {
    content: '\f3c5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #ffcc00;
}

.pulcinis-laiks {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2d3748;
    font-size: 0.9rem;
    margin-bottom: 8px;
    padding: 5px 0;
    border-top: 1px dashed rgba(82,5,5,0.1);
    border-bottom: 1px dashed rgba(82,5,5,0.1);
}

.pulcinis-laiks i {
    color: #ffcc00;
    width: 16px;
}

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

.pulcinis-vaditajs i {
    color: #ffcc00;
    width: 16px;
}

/* ===== REZULTĀTU INFO ===== */
.rezultati-info {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(82,5,5,0.05);
    border: 1px solid rgba(82,5,5,0.1);
    color: #2d3748;
    font-size: 1rem;
    margin-bottom: 50px;
    position: relative;
    z-index: 3;
}

.rezultati-info span {
    font-weight: 700;
    color: #520505;
}

/* ===== KĀ PIETEIKTIES PULCIŅIEM? - 3 BORDO KARTES ===== */
.pieteikums-section {
    margin-bottom: 50px;
    position: relative;
    z-index: 3;
}

.pieteikums-section .section-heading {
    color: #520505;
}

.pieteikums-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

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

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

.step-number {
    width: 55px;
    height: 55px;
    background: #ffcc00;
    color: #520505;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 auto 15px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
}

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

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffcc00;
    margin-bottom: 10px;
}

.step-content p {
    color: white;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* ===== PIETEIKUMA FORMA ===== */
.pieteikuma-forma-section {
    margin-bottom: 50px;
    position: relative;
    z-index: 3;
}

.pieteikuma-forma-container {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(82,5,5,0.1);
    border: 1px solid rgba(82,5,5,0.1);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

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

.pieteikuma-forma {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #520505;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #ffcc00;
    box-shadow: 0 0 0 3px rgba(255,204,0,0.2);
}

.form-submit {
    text-align: center;
    margin-top: 20px;
}

.pieteikties-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #520505;
    color: white;
    padding: 14px 35px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.pieteikties-btn:hover {
    background: #7a0f0f;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(82,5,5,0.2);
}

.pieteikties-btn i {
    transition: transform 0.3s;
}

.pieteikties-btn:hover i {
    transform: translateX(5px);
}

/* Textarea stili */
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
    font-family: inherit;
    resize: vertical;
}

.form-group textarea:focus {
    outline: none;
    border-color: #ffcc00;
    box-shadow: 0 0 0 3px rgba(255,204,0,0.2);
}

.form-group textarea::placeholder {
    color: #aaa;
    font-size: 0.95rem;
}

/* ===== KONTAKTINFORMĀCIJA ===== */
.kontakti-info {
    margin-bottom: 40px;
    position: relative;
    z-index: 3;
}

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

.kontakti-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(82,5,5,0.15);
}

.kontakti-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%);
}

.kontakti-box h3 {
    font-size: 1.3rem;
    color: #520505;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kontakti-box p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2d3748;
    margin-bottom: 8px;
}

.kontakti-box i {
    color: #ffcc00;
    width: 20px;
}

.kontakti-box a {
    color: #520505;
    text-decoration: none;
    transition: color 0.2s;
}

.kontakti-box a:hover {
    color: #7a0f0f;
    text-decoration: underline;
}

/* ===== RESPONSĪVAIS DIZAINS ===== */
@media (max-width: 1200px) {
    .pieteikums-steps {
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .page-title {
        font-size: 2.2rem;
    }
    
    .intro-content {
        flex-direction: column;
        text-align: center;
    }
    
    .pieteikums-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .step {
        padding: 25px 20px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .step-content h3 {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .section-heading {
        font-size: 1.8rem;
    }
    
    .intro-section {
        padding: 25px;
    }
    
    .intro-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .intro-text h2 {
        font-size: 1.5rem;
    }
    
    .intro-text p {
        font-size: 1rem;
    }
    
    .kategoriju-navigacija {
        flex-direction: column;
        align-items: stretch;
    }
    
    .kategorija-btn {
        width: 100%;
    }
    
    .pulcini-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pieteikums-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .step {
        padding: 25px 20px;
    }
    
    .pieteikuma-forma-container {
        padding: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 576px) {
    .page-success-message {
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
    }

    .page-success-icon {
        width: 40px;
        height: 40px;
    }

    .page-title {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .section-heading {
        font-size: 1.6rem;
    }
    
    .pulcini-grid {
        grid-template-columns: 1fr;
    }
    
    .pieteikums-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .step {
        padding: 30px 25px;
    }
    
    .step-number {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }
    
    .step-content h3 {
        font-size: 1.1rem;
    }
    
    .kontakti-box {
        padding: 20px;
    }
    
    .pieteikuma-forma-container {
        padding: 25px;
    }
    
    .pieteikties-btn {
        width: 100%;
        justify-content: center;
    }
}