/* Skolenu pasparvaldes bloku un profilu stili. */

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

.info-card,
.position-card,
.commission-card,
.member-card,
.timeline-item,
.step,
.contact-info-box {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

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

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

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

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

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

/* ===== PAŠPĀRVALDES LAPA ===== */
.pasparvalde-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 - palielināta atstarpe no augšas */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #520505;
    text-decoration: none;
    font-weight: 500;
    margin-top: 60px;
    margin-bottom: 40px;
    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;
}

/* Informācijas karte - BALTA */
.info-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(82,5,5,0.1);
    overflow: hidden;
    border: 1px solid rgba(82,5,5,0.1);
    transition: transform 0.3s;
    margin-bottom: 60px;
    position: relative;
    z-index: 3;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(82,5,5,0.15);
}

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

.card-content {
    padding: 40px;
}

.card-content h2 {
    font-size: 1.8rem;
    color: #520505;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-content h2 i {
    color: #ffcc00;
}

.card-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3748;
    margin-bottom: 15px;
}

/* Pozīciju režģis - BORDO KARTES (Pašpārvaldes sastāvs) */
.positions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 60px;
    position: relative;
    z-index: 3;
}

.position-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;
    position: relative;
    overflow: hidden;
}

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

.position-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: 1.8rem;
    transition: all 0.3s;
}

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

.position-card p {
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

/* Komisiju režģis - BALTAS KARTES */
.commissions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 60px;
    position: relative;
    z-index: 3;
}

.commission-card {
    background: white;
    border-radius: 16px;
    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;
}

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

.commission-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.commission-header i {
    font-size: 1.8rem;
    color: #ffcc00;
}

.commission-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #520505;
    margin: 0;
}

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

.commission-tasks {
    list-style: none;
    padding: 0;
}

.commission-tasks li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2d3748;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.commission-tasks i {
    color: #28a745;
    font-size: 0.9rem;
}

/* Dalībnieku režģis - BORDO KARTES */
.members-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 60px;
    position: relative;
    z-index: 3;
}

.member-card {
    background: #520505;
    border-radius: 20px;
    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;
    position: relative;
    overflow: hidden;
}

.member-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;
    pointer-events: none;
}

.member-card > * {
    position: relative;
    z-index: 1;
}

.member-photo {
    width: 116px;
    height: 116px;
    background: #ffcc00;
    color: #520505;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 3rem;
    transition: all 0.3s;
}

.member-photo-trigger {
    border: none;
    padding: 0;
    cursor: zoom-in;
}

.member-photo-trigger img {
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

@media (hover: hover) {
    .member-photo-trigger:hover img {
        transform: scale(1.06);
        filter: brightness(1.05);
        box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.45);
    }
}

.member-photo-trigger:focus-visible {
    outline: 3px solid #ffcc00;
    outline-offset: 3px;
}

.member-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.member-position {
    font-size: 1rem;
    color: #ffcc00;
    font-weight: 600;
    margin-bottom: 5px;
}

.member-class {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 15px;
}

.member-contacts {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.member-contacts a {
    display: inline-flex;
    width: 32px;
    height: 32px;
    background: #ffcc00;
    color: #520505;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}

.member-contacts a:hover {
    background: white;
    transform: scale(1.1);
}

/* Laika līnija - BALTI KONTEINERI */
.achievements-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 20px 0;
    position: relative;
    z-index: 3;
}

.achievements-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: #ffcc00;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
}

.timeline-date {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #520505;
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(82,5,5,0.2);
    border: 1px solid #ffcc00;
}

.timeline-content {
    width: 45%;
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 20px 35px rgba(82,5,5,0.15);
    border: 1px solid #ffcc00;
    margin-top: 40px;
    transition: all 0.3s;
    transform: translateY(-5px);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
}

.timeline-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #520505;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
}

/* Pievienošanās sadaļa - BORDO KARTE (Vēlies pievienoties?) */
.join-section {
    background: #520505;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 15px 35px rgba(82,5,5,0.25);
    border: 2px solid #ffcc00;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 3;
    overflow: hidden;
}

.join-section::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.3;
    transition: opacity 0.5s;
}

.join-section:hover::before {
    opacity: 0.5;
}

.join-section .section-heading {
    color: white !important;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.join-section .section-heading::after {
    background: #ffcc00;
}

.join-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.join-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 40px;
}

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

.step {
    text-align: center;
}

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

.step:hover .step-number {
    background: white;
    color: #520505;
    transform: scale(1.1);
}

.step-text h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffcc00;
    margin-bottom: 5px;
}

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

.join-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffcc00;
    color: #520505;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.join-btn:hover {
    background: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

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

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

/* Kontaktinformācija - BALTA */
.contact-section {
    margin-bottom: 40px;
    position: relative;
    z-index: 3;
}

.contact-info-box {
    background: white;
    border-radius: 16px;
    padding: 30px;
    border-left: 5px solid #ffcc00;
    box-shadow: 0 5px 15px rgba(82,5,5,0.1);
    transition: all 0.3s;
}

.contact-info-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(82,5,5,0.15);
}

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

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

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

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

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

/* ===== RESPONSĪVAIS DIZAINS ===== */
@media (max-width: 992px) {
    .page-title {
        font-size: 2.2rem;
    }
    
    .positions-grid,
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .commissions-grid {
        grid-template-columns: 1fr;
    }
    
    .card-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .section-heading {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .back-link {
        margin-top: 20px;
        margin-bottom: 30px;
    }
    
    .achievements-timeline::before {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-end;
    }
    
    .timeline-date {
        left: 20px;
        transform: none;
    }
    
    .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px !important;
        margin-right: 0 !important;
    }
    
    .join-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card-content h2 {
        font-size: 1.5rem;
    }
    
    .card-content {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .section-heading {
        font-size: 1.6rem;
    }
    
    .back-link {
        margin-top: 15px;
        margin-bottom: 25px;
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .positions-grid,
    .commissions-grid,
    .members-grid {
        grid-template-columns: 1fr;
    }
    
    .join-section {
        padding: 30px 20px;
    }
    
    .join-btn {
        width: 100%;
        justify-content: center;
    }
    
    .contact-info-box {
        padding: 20px;
    }
    
    .member-photo {
        width: 96px;
        height: 96px;
        font-size: 2.5rem;
    }
}