/* Загальні стилі */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    background-color: #FFFFFF;
}

/* Header стилі */
.header {
    background: linear-gradient(135deg, #0057B7 0%, #004494 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 87, 183, 0.2);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" patternUnits="userSpaceOnUse" width="20" height="20"><circle cx="10" cy="10" r="1" fill="%23FFD700" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
    opacity: 0.1;
}

.logo {
    position: relative;
    z-index: 2;
}

.spartan-logo {
    height: 120px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(2px 2px 8px rgba(0,0,0,0.3));
    transition: all 0.3s ease;
    border-radius: 8px;
}

.spartan-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(3px 3px 12px rgba(0,0,0,0.4));
}

.flag-symbol {
    font-size: 48px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.header-title {
    font-size: 28px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

/* Sidebar стилі */
.sidebar {
    background-color: #F8F9FA;
    min-height: calc(100vh - 140px);
    padding: 0;
    border-right: 3px solid #0057B7;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar-content {
    padding: 20px 0;
    position: sticky;
    top: 20px;
}

.sidebar .nav-link {
    color: #333333;
    font-weight: 500;
    font-size: 16px;
    padding: 15px 25px;
    margin: 5px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    border-left: 4px solid transparent;
}

.sidebar .nav-link:hover {
    background-color: rgba(0, 87, 183, 0.1);
    color: #0057B7;
    transform: translateX(5px);
    border-left-color: #FFD700;
}

.sidebar .nav-link.active {
    background: linear-gradient(135deg, #0057B7, #004494);
    color: white;
    font-weight: 600;
    border-left-color: #FFD700;
    box-shadow: 0 4px 15px rgba(0, 87, 183, 0.3);
}

.nav-icon {
    margin-right: 10px;
    font-size: 18px;
}

/* Main Content стилі */
.main-content {
    padding: 30px;
    background-color: #FFFFFF;
}

.content-section {
    margin-bottom: 40px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 5px solid #0057B7;
    position: relative;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 215, 0, 0.1) 50%, transparent 60%);
    border-radius: 0 12px 0 100px;
}

/* Заголовки */
.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #0057B7;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #0057B7);
    border-radius: 2px;
}

.section-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333333;
    text-align: justify;
}

/* Інформаційні блоки */
.info-block {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-left-color: #FFD700;
}

.info-item {
    margin-bottom: 15px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #0057B7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.info-item strong {
    color: #0057B7;
    font-weight: 600;
}

/* Список цілей */
.goals-list {
    list-style: none;
    padding: 0;
}

.goals-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    line-height: 1.6;
}

.goals-list li:before {
    content: '🎯';
    position: absolute;
    left: 0;
    font-size: 18px;
}

.goals-list li:last-child {
    border-bottom: none;
}

/* Місія */
.mission-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
    text-align: justify;
}

/* Текст приєднання */
.join-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

/* Секція пожертв */
.donation-section {
    background: linear-gradient(135deg, #f0f8ff 0%, #ffffff 100%);
    border-left-color: #FFD700;
}

.donation-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 25px rgba(0, 87, 183, 0.1);
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.donation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0057B7, #FFD700);
}

.donation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 87, 183, 0.2);
    border-color: #0057B7;
}

.donation-title {
    font-size: 20px;
    font-weight: 600;
    color: #0057B7;
    margin-bottom: 20px;
    text-align: center;
}

.donation-details p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.donation-details strong {
    color: #0057B7;
    font-weight: 600;
}

/* Контакти сторінка */
.contact-info {
    margin-top: 20px;
}

.contact-block {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 4px solid #0057B7;
    height: 100%;
    transition: all 0.3s ease;
}

.contact-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.contact-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #0057B7;
    margin-bottom: 10px;
    margin-top: 20px;
}

.contact-subtitle:first-child {
    margin-top: 0;
}

.contact-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
}

.important-info {
    font-weight: 600;
    color: #0057B7;
    font-size: 18px;
}

.contact-address {
    font-style: normal;
    line-height: 1.6;
    color: #333333;
}

.phone-number, .email-address {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.phone-icon, .email-icon {
    margin-right: 10px;
    font-size: 16px;
}

.phone-number a, .email-address a {
    color: #0057B7;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.phone-number a:hover, .email-address a:hover {
    color: #FFD700;
    text-decoration: underline;
}

/* Банківська інформація */
.banking-info {
    margin-top: 20px;
}

.banking-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 4px solid #0057B7;
    height: 100%;
    transition: all 0.3s ease;
}

.banking-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.main-account {
    border-left-color: #FFD700;
    background: linear-gradient(135deg, #fffdf0 0%, #ffffff 100%);
}

.banking-title {
    font-size: 20px;
    font-weight: 600;
    color: #0057B7;
    margin-bottom: 15px;
    text-align: center;
}

.banking-details p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.account-number {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #0057B7;
    font-size: 16px;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    text-align: center;
}

.bank-name {
    font-weight: 600;
    color: #333333;
    text-align: center;
}

.currency-account {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.currency-account:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.swift-code {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #0057B7;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Додаткова інформація */
.additional-info {
    margin-top: 20px;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 4px solid #FFD700;
    height: 100%;
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.info-title {
    font-size: 18px;
    font-weight: 600;
    color: #0057B7;
    margin-bottom: 15px;
}

/* Секція команди */
.team-section {
    background: linear-gradient(135deg, #f0f8ff 0%, #ffffff 100%);
    border-left-color: #FFD700;
}

.team-content {
    margin-top: 20px;
}

.team-photo {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 87, 183, 0.15);
    transition: all 0.3s ease;
    height: 400px; /* Фіксована висота для обох фото */
    border: 4px solid transparent;
    background: linear-gradient(white, white) padding-box, 
                linear-gradient(45deg, #0057B7, #FFD700, #0057B7) border-box;
}

.team-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 87, 183, 0.25);
    border-color: #FFD700;
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.team-photo:hover .team-image {
    transform: scale(1.03);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 87, 183, 0.95));
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-radius: 0 0 8px 8px;
}

.team-photo:hover .photo-overlay {
    transform: translateY(0);
}

.photo-description h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
}

.photo-description h3:before {
    content: '🇺🇦';
    margin-right: 8px;
    font-size: 16px;
}

.photo-description p {
    color: white;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.team-info {
    margin-top: 40px;
}

.team-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
    padding: 30px 25px;
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0, 87, 183, 0.12);
    border: none;
    height: 100%;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #0057B7, #FFD700);
}

.team-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    transform: rotate(45deg);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 87, 183, 0.2);
}

.team-card-icon {
    font-size: 42px;
    margin-bottom: 20px;
    filter: drop-shadow(3px 3px 6px rgba(0,0,0,0.1));
    position: relative;
    z-index: 2;
}

.team-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0057B7;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.team-card p {
    font-size: 16px;
    line-height: 1.7;
    color: #444444;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

/* Footer стилі */
.footer {
    background: linear-gradient(135deg, #333333 0%, #2c2c2c 100%);
    color: white;
    padding: 25px 0;
    margin-top: 50px;
    border-top: 4px solid #0057B7;
}

.footer-contacts {
    font-size: 14px;
    line-height: 1.6;
}

.contact-item {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 8px;
}

.footer-copyright {
    font-size: 14px;
    color: #cccccc;
    margin-bottom: 0;
}

/* Responsive стилі */
@media (max-width: 768px) {
    .header-title {
        font-size: 22px;
        text-align: center;
    }
    
    .spartan-logo {
        height: 90px;
    }
    
    .flag-symbol {
        font-size: 36px;
    }
    
    .sidebar {
        min-height: auto;
        border-right: none;
        border-bottom: 3px solid #0057B7;
    }
    
    .sidebar-content {
        position: static;
        padding: 15px 0;
    }
    
    .sidebar .nav-link {
        margin: 5px 10px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .main-content {
        padding: 20px 15px;
    }
    
    .content-section {
        margin-bottom: 25px;
        padding: 20px 15px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .donation-card, .contact-block, .banking-card, .info-card {
        margin-bottom: 20px;
    }
    
    .team-photo {
        margin-bottom: 20px;
        height: 280px; /* Зменшена висота для планшетів */
    }
    
    .team-image {
        height: 100%;
        object-fit: cover;
    }
    
    .photo-overlay {
        position: static;
        transform: none;
        background: linear-gradient(135deg, rgba(0, 87, 183, 0.9), rgba(0, 87, 183, 0.7));
        margin-top: 0;
        border-radius: 0 0 8px 8px;
        padding: 15px;
    }
    
    .team-card {
        margin-bottom: 20px;
        padding: 25px 20px;
    }
    
    .team-card-icon {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .team-card h3 {
        font-size: 20px;
    }
    
    .contact-item {
        display: block;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .footer-copyright {
        text-align: center !important;
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .header-title {
        font-size: 18px;
    }
    
    .spartan-logo {
        height: 70px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .donation-title, .banking-title {
        font-size: 18px;
    }
    
    .contact-subtitle, .info-title {
        font-size: 16px;
    }
    
    .account-number {
        font-size: 14px;
        word-break: break-all;
    }
    
    .team-image {
        height: 100%;
        object-fit: cover;
    }
    
    .team-photo {
        height: 250px; /* Ще менша висота для мобільних */
    }
    
    .team-card h3 {
        font-size: 18px;
    }
    
    .team-card-icon {
        font-size: 24px;
    }
}

/* Анімації для поліпшення UX */
.content-section {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Кастомний скролбар */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0057B7, #FFD700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #004494, #e6c200);
}

/* Виділення тексту */
::selection {
    background-color: rgba(0, 87, 183, 0.2);
    color: #0057B7;
}

/* Фокус для доступності */
a:focus, button:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

/* Альтернативний селектор для фото керівника */
.col-lg-4 .team-image {
    aspect-ratio: 3/4;
} 