﻿/* Custom styles for BugStream website */

/* --- ЗАГАЛЬНІ СТИЛІ --- */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Noto Sans', sans-serif;
    /* Відступ для фіксованого хедера тепер керується через JS та CSS-змінну */
    /* 140px - це значення за замовчуванням, якщо JS не спрацює */
    padding-top: var(--header-height, 140px);
}

.main-content {
    flex-grow: 1;
}

/* --- СТИЛІ ХЕДЕРА --- */
.header-custom {
    background-color: #fff;
    font-size: 0.9rem;
    padding-bottom: 1rem;
    /* Клас fixed-top додасть border-bottom, тому можна видалити його звідси, якщо він був */
}

.header-custom .top-bar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.header-custom .main-nav {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-top: 1px solid #dee2e6;
}

.header-custom .btn-group-custom .btn {
    border: none;
    color: #212529;
    background-color: transparent;
    font-weight: 500;
}

.header-custom .btn-group-custom .btn.active,
.header-custom .btn-group-custom .btn:hover {
    background-color: #f0f2f5;
    color: #212529;
}

.header-custom .nav-pills-custom .nav-link {
    color: #212529;
    font-weight: 500;
}

.header-custom .nav-pills-custom .nav-link.active,
.header-custom .nav-pills-custom .nav-link:hover {
    color: #212529;
    background-color: #f0f2f5;
}

.header-custom .navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.header-custom .dropdown-toggle::after {
    vertical-align: 0.15em;
}

/* --- СТИЛІ ДЛЯ ХІРО-СЕКЦІЇ --- */
.hero-section {
    padding: 4rem 0;
}

.hero-section h1 {
    font-weight: 700;
    font-size: 3.5rem;
    line-height: 1.2;
}

.action-card {
    border: 1px solid #e0e0e0;
    border-radius: 1rem;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    background-color: #fff;
}

.action-card:hover {
    border-color: #000;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

.action-card .icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.action-card .arrow-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.hero-visual-wrapper {
    position: relative;
    min-height: 600px;
}

.hero-image {
    width: 100%;
    height: 100%;
    /* Ключова властивість для адаптивності: */
    /* зображення заповнює контейнер, зберігаючи пропорції (може обрізатись) */
    object-fit: cover; 
    border-radius: 1.5rem; /* Зберігаємо заокруглені кути */
    position: absolute;
    top: 0;
    left: 0;
}

/* --- СТИЛІ ОНОВЛЕНОЇ СЕКЦІЇ ПРІОРИТЕТІВ --- */
.priorities-section-v2 {
    background-color: #f8f9fa;
}

.priority-card-v2 {
    background: linear-gradient(145deg, #ffffff, #f9f9f9);
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

.priority-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(138, 43, 226, 0.07);
    transition: all 0.3s ease-in-out;
}

.priority-icon i {
    font-size: 2rem;
    color: #8A2BE2;
    transition: all 0.3s ease-in-out;
}

.priority-card-v2:hover {
    transform: translateY(-8px);
    border-color: rgba(138, 43, 226, 0.5);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.2);
}

.priority-card-v2:hover .priority-icon {
    background-color: #8A2BE2;
    transform: scale(1.1);
}

.priority-card-v2:hover .priority-icon i {
    color: #fff;
}

/* --- СТИЛІ ПРОГРЕСИВНОЇ СЕКЦІЇ "ОБЛАСТЬ ТЕСТУВАННЯ" --- */
.testing-scope-section {
    overflow: hidden;
}

.icon-field {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
    height: 400px;
    position: relative;
}

.scope-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    will-change: transform;
    animation: float-animation 6s ease-in-out infinite;
}

.scope-item i {
    font-size: 3rem;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 1rem;
    margin-bottom: 0.5rem;
    background-color: rgba(255, 255, 255, 0.8);
}

.scope-item p {
    font-weight: 500;
    margin-bottom: 0;
}

@keyframes float-animation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.scope-item:nth-child(2) { animation-duration: 7s; animation-delay: 1s; }
.scope-item:nth-child(3) { animation-duration: 5s; animation-delay: 0.5s; }
.scope-item:nth-child(4) { animation-duration: 8s; animation-delay: 2s; }
.scope-item:nth-child(5) { animation-duration: 6s; animation-delay: 1.5s; }
.scope-item:nth-child(6) { animation-duration: 7.5s; animation-delay: 0.2s; }
.scope-item:nth-child(7) { animation-duration: 5.5s; animation-delay: 1.2s; }

/* --- СТИЛІ ІННОВАЦІЙНОЇ СЕКЦІЇ ВІДГУКІВ --- */
.innovative-testimonials {
    background-color: #111;
    color: #fff;
    padding: 4rem 0;
}

.innovative-testimonials h2 {
    color: #fff;
}

.testimonial-marquee {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.marquee-track {
    display: flex;
    gap: 1.5rem;
    animation: marquee-animation 60s linear infinite;
}

.testimonial-marquee:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-animation {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

.testimonial-card-v2 {
    flex-shrink: 0;
    width: 380px;
    padding: 2rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.testimonial-card-v2 .text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.testimonial-card-v2 .author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.testimonial-card-v2 .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.testimonial-card-v2 .name {
    font-weight: 600;
}

.testimonial-card-v2 .title {
    font-size: 0.85rem;
    color: #adb5bd;
}

@media (max-width: 767px) {
    .testimonial-marquee {
        -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
        mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
        height: 80vh;
    }

    .marquee-track {
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
        animation-name: marquee-animation-vertical;
    }

    @keyframes marquee-animation-vertical {
        0% { transform: translateY(0%); }
        100% { transform: translateY(-50%); }
    }
    
    .testimonial-card-v2 {
        width: 100%;
    }
}

/* --- СТИЛІ ІННОВАЦІЙНОЇ СЕКЦІЇ ПАРТНЕРІВ --- */
.partners-section {
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.partners-section h2 {
    color: #212529;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 3rem;
    align-items: center;
    position: relative;
}

.partner-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
}

.partner-logo img {
    max-width: 150px;
    height: auto;
    filter: grayscale(100%) brightness(0.7);
    opacity: 0.6;
    transition: all 0.4s ease-out;
}

.partner-logo:hover img {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1.1);
}

.partner-cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    min-height: 80px;
    border: 2px dashed #d0d0d0;
    border-radius: 0.75rem;
    text-decoration: none;
    color: #6c757d;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.partner-cta i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.partner-cta:hover {
    border-color: #8A2BE2;
    border-style: solid;
    color: #8A2BE2;
    background-color: rgba(138, 43, 226, 0.05);
}

.partner-cta:hover i {
    transform: rotate(90deg);
}

/* --- СТИЛІ ІННОВАЦІЙНОЇ СЕКЦІЇ БЛОГУ --- */
.blog-section-v2 {
    background-color: #fff;
    overflow: hidden;
}

.section-header .btn {
    transition: all 0.3s ease;
}

.section-header .btn:hover {
    background-color: #212529;
    color: #fff;
}

.blog-post-list {
    border-top: 1px solid #e9ecef;
}

.blog-post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
    text-decoration: none;
    color: #212529;
    position: relative;
}

.post-tag {
    position: absolute;
    top: 1rem;
    left: 0;
    font-size: 0.8rem;
    color: #6c757d;
}

.post-title {
    font-weight: 600;
    margin: 0;
    padding-top: 1rem;
    transition: color 0.3s ease;
}

.post-arrow {
    font-size: 1.5rem;
    transition: transform 0.4s ease;
}

.blog-post-item:hover .post-title {
    color: #8A2BE2;
}

.blog-post-item:hover .post-arrow {
    transform: translate(5px, -5px);
    color: #8A2BE2;
}

.blog-image-preview {
    position: sticky;
    top: 160px;
    height: 450px;
    border-radius: 1rem;
    overflow: hidden;
}

.blog-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.footer-custom {
  background-color: #1a1a1a;
  color: #f8f9fa;
}

.footer-custom h5 {
  font-weight: bold;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-custom .footer-link {
  color: #adb5bd;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.footer-custom .footer-link:hover {
  color: #fff;
}

.footer-custom .social-links a {
  color: #adb5bd;
  font-size: 1.5rem;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.footer-custom .social-links a:hover {
  color: #fff;
}

.footer-custom .footer-bottom {
  border-top: 1px solid #343a40;
  color: #6c757d;
}

/* --- СТИЛЬ ДЛЯ ГОЛОВНОЇ CTA-КНОПКИ В ХЕДЕРІ --- */

/* Застосовуємо стиль до кнопки за її новим ID */
#cta-nav-link {
    background: linear-gradient(45deg, #b300ff, #ff0095);
    color: #fff !important; /* Важливо, щоб перебити інші стилі */
    box-shadow: 0 4px 15px rgba(255, 0, 149, 0.2);
    animation: pulse-animation 2.5s infinite; /* Та сама анімація пульсації */
    transition: transform 0.3s ease;
}

#cta-nav-link:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 0, 149, 0.3);
}

/* Переконуємось, що анімація @keyframes pulse-animation вже є у файлі. 
   Якщо ви її раніше видалили, додайте знову: */
@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 149, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 149, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 149, 0);
    }
}

/* --- СТИЛІ СТОРІНКИ "ТАБЛИЦЯ ЛІДЕРІВ" (ПРЕМІУМ ВЕРСІЯ) --- */
.leaderboard-section-v2 {
    background-color: #f8f9fa;
}

/* Новий подіум */
.leaderboard-podium-v2 {
    position: relative;
}
.podium-card-v2 {
    background: #212529; /* Темний фон */
    color: #fff;
    border-radius: 1.25rem;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.podium-card-v2::before { /* Текстура на фоні */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.podium-card-v2.rank-1 {
    transform: scale(1.05); /* #1 місце трохи більше */
}
.podium-card-v2:hover {
    transform: translateY(-12px) scale(1.02);
}

.podium-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    margin: 0 auto 1.5rem auto;
}
.podium-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.podium-rank-badge {
    font-weight: 700;
    font-size: 1rem;
    color: #212529;
    padding: 0.3rem 1rem;
    border-radius: 50rem;
    display: inline-block;
    margin-bottom: 1.5rem;
}
.podium-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.podium-stats-grid .stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.podium-stats-grid .stat-item span { font-size: 1.25rem; font-weight: 700; }
.podium-stats-grid .stat-item small { font-size: 0.8rem; color: #adb5bd; }
.podium-stats-grid .stat-item i { display: none; } /* Іконки тут зайві */
.podium-trophy {
    position: absolute; top: 1.5rem; left: 1.5rem; font-size: 2rem;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* Металеві градієнти */
.podium-card-v2.rank-1 { box-shadow: 0 0 30px rgba(255, 215, 0, 0.2); }
.podium-card-v2.rank-1 .podium-rank-badge { background: linear-gradient(145deg, #FCFF68, #B39129); }
.podium-card-v2.rank-1 .podium-trophy { color: #FFD700; }
.podium-card-v2.rank-1:hover { box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3); }

.podium-card-v2.rank-2 { box-shadow: 0 0 30px rgba(192, 192, 192, 0.1); }
.podium-card-v2.rank-2 .podium-rank-badge { background: linear-gradient(145deg, #FFFFFF, #A8A8A8); }
.podium-card-v2.rank-2:hover { box-shadow: 0 10px 40px rgba(192, 192, 192, 0.2); }

.podium-card-v2.rank-3 { box-shadow: 0 0 30px rgba(205, 127, 50, 0.1); }
.podium-card-v2.rank-3 .podium-rank-badge { background: linear-gradient(145deg, #F6B383, #A76B29); }
.podium-card-v2.rank-3:hover { box-shadow: 0 10px 40px rgba(205, 127, 50, 0.2); }

/* Спрощений список */
.leaderboard-list-v2 { max-width: 900px; margin: 0 auto; }
.leaderboard-item-v2 {
    display: flex; align-items: center; padding: 1rem 1.5rem;
    background: #fff; border: 1px solid #e9ecef; border-radius: 0.75rem;
    margin-bottom: 1rem; transition: all 0.3s ease;
    opacity: 0; transform: translateY(20px);
    animation: slide-in-up 0.5s ease-out forwards;
}
.leaderboard-item-v2:hover {
    transform: scale(1.02); box-shadow: 0 8px 20px rgba(0,0,0,0.08); border-color: #8A2BE2;
}
.leaderboard-item-v2.header {
    background: transparent; border: none; font-weight: 700; color: #6c757d;
    animation: none; opacity: 1; transform: none;
}
.leaderboard-item-v2 .rank { flex: 0 0 50px; font-weight: 700; font-size: 1.2rem; color: #6c757d; }
.leaderboard-item-v2 .user { flex: 1 1 30%; display: flex; align-items: center; gap: 1rem; font-weight: 600; padding-right: 1rem; }
.leaderboard-item-v2 .stat { flex: 1 1 20%; text-align: right; font-weight: 500; }
.leaderboard-item-v2 .stat.reputation { font-weight: 700; color: #8A2BE2; }
.list-avatar { width: 40px; height: 40px; border-radius: 50%; }

@keyframes slide-in-up { to { opacity: 1; transform: translateY(0); } }

/* --- СТИЛІ СТОРІНКИ "ПРОГРАМИ" --- */
.programs-page-section {
    background-color: #f8f9fa;
}

/* Панель фільтрів */
.filter-panel {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 1rem;
    margin-bottom: 3rem;
    border: 1px solid #e9ecef;
}
.search-bar {
    position: relative;
    flex-grow: 1;
    min-width: 250px;
}
.search-bar .bi-search {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: #6c757d;
}
.search-bar .form-control {
    border-radius: 50rem;
    padding-left: 3rem;
    background-color: #f8f9fa;
}
.filter-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.filter-tag {
    border: 1px solid #dee2e6;
    background: transparent;
    color: #495057;
    border-radius: 50rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.filter-tag:hover {
    background-color: #f0f2f5;
    border-color: #adb5bd;
}
.filter-tag.active {
    background-color: #8A2BE2;
    color: #fff;
    border-color: #8A2BE2;
}

/* Картка програми */
.program-card {
    background: #fff;
    border-radius: 1.25rem;
    border: 1px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 25px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
}
.program-card::before { /* Градієнтна рамка при наведенні */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 1.25rem;
    border: 2px solid transparent;
    background: linear-gradient(145deg, #8A2BE2, #4B0082) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.15);
}
.program-card:hover::before {
    opacity: 1;
}

.program-card .card-header, .program-card .card-body, .program-card .card-footer {
    padding: 1.5rem;
}
.program-card .card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #f0f2f5;
}
.program-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}
.program-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.program-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 50rem;
}
.program-status.open { background-color: #d1e7dd; color: #0f5132; }
.program-status.private { background-color: #e2e3e5; color: #41464b; }

.program-card .card-body {
    flex-grow: 1;
}
.program-description {
    font-size: 0.9rem;
    color: #6c757d;
    min-height: 80px; /* Резервуємо місце, щоб картки не стрибали */
}
.payout-info {
    margin: 1.5rem 0;
    text-align: center;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.75rem;
}
.payout-info small {
    color: #6c757d;
}
.payout-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #8A2BE2;
    line-height: 1;
}
.scope-info small {
    font-weight: 600;
}
.scope-icons {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
    color: #495057;
    margin-top: 0.5rem;
}

.program-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f2f5;
}
.researcher-info {
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-primary-gradient {
    background: linear-gradient(45deg, #8A2BE2, #6A1B9A);
    border: none;
    color: #fff;
    border-radius: 50rem;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
}
.btn-primary-gradient:hover {
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

/* --- ОНОВЛЕННЯ СТИЛІВ ДЛЯ ФІЛЬТРІВ --- */
.filter-panel {
    flex-direction: column;
}
.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.filter-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #6c757d;
}
.sort-dropdown .btn {
    border-radius: 50rem;
    border-color: #dee2e6;
}

/* --- ДОДАТКОВІ СТИЛІ ДЛЯ КАРТОК ПРОГРАМ --- */

/* Стиль для позначки "Новинка" */
.badge-new {
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.5rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(45deg, #b300ff, #ff0095); /* Яскравий градієнт */
    border-radius: 50rem;
    animation: pulse-animation 2s infinite; /* Пульсуюча анімація */
}

/* Анімація для позначки */
@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 149, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 149, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 149, 0);
    }
}

/* Розташування заголовка та позначки */
.program-title {
    display: inline-flex;
    align-items: center;
}

/* Блок з датами внизу картки */
.card-meta-dates {
    background-color: #f8f9fa;
    padding: 0.75rem 1.5rem;
    border-top: 1px solid #f0f2f5;
    text-align: center;
    font-size: 0.75rem;
    color: #6c757d;
    display: flex;
    justify-content: space-between;
}

/* --- СТИЛІ СТОРІНКИ "ПРАВИЛА" --- */
.rules-page-section {
    background-color: #fff;
}

.rules-block {
    margin-bottom: 4rem;
}

.rules-block h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.rule-box {
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-left: 5px solid;
}
.rule-box .box-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.rule-box ul {
    padding-left: 1.5rem;
    margin-bottom: 0;
}
.rule-box ul li {
    margin-bottom: 0.5rem;
}

/* Кольорові схеми для блоків */
.rule-info { background-color: #e7f3fe; border-color: #0d6efd; }
.rule-info .box-title { color: #0a58ca; }
.rule-allowed { background-color: #d1e7dd; border-color: #198754; }
.rule-allowed .box-title { color: #146c43; }
.rule-forbidden { background-color: #f8d7da; border-color: #dc3545; }
.rule-forbidden .box-title { color: #b02a37; }
.rule-warning { background-color: #fff3cd; border-color: #ffc107; }
.rule-warning .box-title { color: #997404; }

/* Інфографіка процесу */
/* --- ОНОВЛЕНІ СТИЛІ ДЛЯ ІНФОГРАФІКИ ПРОЦЕСУ --- */
.process-timeline {
    /* Тепер це просто контейнер */
}

.process-step {
    display: flex;
    align-items: center; /* Ключове виправлення: ідеальне вертикальне вирівнювання */
    gap: 1.5rem;
    position: relative;
    padding: 1.5rem 0 1.5rem 4.5rem; /* Залишаємо місце для іконки та лінії */
}

/* Створюємо вертикальну лінію через псевдо-елемент */
.process-step::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    /* ЗАМІНА: Використовуємо пунктирну рамку замість суцільного фону */
    border-left: 2px dashed #dee2e6;
    z-index: 0;
}
/* Ховаємо лінію для першого елемента зверху і для останнього знизу */
.process-timeline .process-step:first-child::before { top: 30px; }
.process-timeline .process-step:last-child::before { bottom: 30px; }


.step-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background-color: #fff;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #8A2BE2;
    position: absolute;
    left: 0; /* Тепер іконка чітко позиціонується */
    z-index: 1; /* Іконка знаходиться над лінією */
    transition: all 0.3s ease;
}

.process-step:hover .step-icon {
    background-color: #8A2BE2;
    color: #fff;
    border-color: #8A2BE2;
    transform: scale(1.1);
}

.step-content {
    /* Більше не потрібні "магічні" відступи */
}

.step-content h6 {
    font-weight: 700;
    font-size: 1.1rem;
}

.step-content p {
    color: #6c757d;
    margin-bottom: 0;
}

/* --- СТИЛІ СТОРІНКИ "КЛІЄНТИ" (ШОУКЕЙС-СПИСОК) --- */
.clients-page-v5 {
    background-color: #f8f9fa; /* Світлий фон для контрасту з картками */
}

.client-showcase-list {
    display: grid;
    gap: 1.5rem;
}

.showcase-item {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* Одна колонка за замовчуванням */
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.showcase-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(138, 43, 226, 0.15);
    border-color: rgba(138, 43, 226, 0.5);
}

@media (min-width: 992px) {
    .showcase-item {
        grid-template-columns: 2fr 1fr; /* Дві колонки на великих екранах */
    }
}

.showcase-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.showcase-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

.showcase-name {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.showcase-desc {
    margin-bottom: 0;
    color: #495057;
}

.showcase-links {
    border-top: 1px solid #e9ecef;
    padding-top: 2rem;
}
@media (min-width: 992px) {
    .showcase-links {
        border-top: none;
        padding-top: 0;
        border-left: 1px solid #e9ecef;
        padding-left: 2rem;
    }
}

.program-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.program-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    text-decoration: none;
    font-weight: 500;
    color: #212529;
    transition: color 0.2s ease;
}
.program-list li a:hover {
    color: #8A2BE2;
}
.program-list li a i {
    transition: transform 0.2s ease;
}
.program-list li a:hover i {
    transform: translateX(3px);
}

/* --- Додатковий стиль для списку програм --- */
.program-list-title {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 1.5rem; /* Відступ від головної кнопки */
    margin-bottom: 0.5rem;
}

/* --- СТИЛІ СТОРІНКИ "ПОСЛУГИ" (ПЛАВНИЙ ПОТІК) --- */
.services-page-v3 {
    background-color: #fff;
}

.service-flow-container {
    position: relative;
}

/* Анімована лінія */
.service-flow-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100px; /* Ширина для кривої Безьє */
    height: 100%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
}

.service-flow-line path {
    fill: none;
    stroke: #e9ecef;
    stroke-width: 2;
    /* Магія анімації малювання */
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw-line-animation linear forwards;
    animation-timeline: view(); /* Нова технологія для анімації при скролі */
}

@keyframes draw-line-animation {
    to {
        stroke-dashoffset: 0;
    }
}


.service-flow-item {
    padding: 5rem 0;
    position: relative; /* Щоб бути вище за лінію */
}

.flow-step {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50rem;
    background-color: rgba(138, 43, 226, 0.1);
    color: #8A2BE2;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.flow-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* --- СТИЛІ СТОРІНКИ "ПРО НАС" (ФІНАЛЬНА ВЕРСІЯ) --- */
.about-page-v5 {
    background-color: #fff;
}
.team-section-v4 {
    background-color: #f8f9fa;
}

.team-card-v4 {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem;
    height: 100%;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card-v4:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.team-photo-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem auto;
}
/* Градієнтна рамка, що з'являється при наведенні */
.team-photo-wrapper::before {
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, #8A2BE2, #6A1B9A);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}
.team-card-v4:hover .team-photo-wrapper::before {
    opacity: 1;
}

.team-photo-v4 {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff; /* Біла рамка, щоб відокремити фото від градієнта */
}

.team-name-v4 {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.team-title-v4 {
    color: #8A2BE2;
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-bio-v4 {
    color: #6c757d;
    font-size: 0.9rem;
    min-height: 80px; /* Резервуємо місце для однакової висоти карток */
}

.team-social-v4 {
    margin-top: 1rem;
}

.team-social-v4 a {
    color: #6c757d;
    text-decoration: none;
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}
.team-social-v4 a:hover {
    color: #8A2BE2;
}

/* --- СТИЛІ СТОРІНКИ "ЯК ПОЧАТИ" (ФІНАЛЬНА ВЕРСІЯ) --- */
.how-to-start-v3 {
    background-color: #fff;
}

.step-list {
    display: grid;
    gap: 2rem;
}

.step-item {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 1.25rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.1);
}

.step-number-bg {
    position: absolute;
    top: -1.5rem;
    right: 1rem;
    font-size: 8rem;
    font-weight: 800;
    color: #f8f9fa; /* Дуже світло-сірий */
    z-index: 0;
    user-select: none;
}

.step-item-icon {
    margin-bottom: 1.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(138, 43, 226, 0.1);
    color: #8A2BE2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.step-item-content {
    position: relative;
    z-index: 1;
}

.step-item-title {
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-item p {
    color: #495057;
    line-height: 1.7;
}

/* --- СТИЛІ СТОРІНКИ ПРОФІЛЮ КЛІЄНТА (ФІНАЛЬНА ВЕРСІЯ) --- */
.profile-hero-section {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}
.profile-page-logo {
    max-height: 80px;
    width: auto;
}
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(25, 135, 84, 0.1);
    color: #0f5132;
    border-radius: 50rem;
    font-weight: 500;
}
.verified-badge i { font-size: 1.25rem; }

/* Панель статистики */
.profile-stats-bar { background-color: #fff; }
.stat-value { font-size: 2.5rem; font-weight: 700; color: #8A2BE2; }
.stat-label { color: #6c757d; font-size: 0.9rem; }

/* Основний контент */
.profile-main-content { background-color: #fff; }

/* Новий, просунутий список програм */
.program-list-v3 {
    border: 1px solid #e9ecef;
    border-radius: 1.25rem;
    overflow: hidden;
}
.program-list-item-v3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    text-decoration: none;
    color: #212529;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}
.program-list-v3 > a:last-child { border-bottom: none; }

.program-list-item-v3:hover {
    background-color: #f8f9fa;
}

.program-item-main { flex-grow: 1; }
.program-item-title { font-weight: 600; margin-bottom: 0.25rem; }
.program-item-status { font-size: 0.8rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 50rem; }
.program-item-status.open { background-color: #d1e7dd; color: #0f5132; }
.program-item-status.private { background-color: #e2e3e5; color: #41464b; }

.program-item-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
    margin-left: 1rem;
}
.program-item-stats .stat {
    text-align: right;
}
.program-item-stats .stat small {
    font-size: 0.8rem;
    color: #6c757d;
}
.program-item-stats .stat strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
}
.program-item-stats .item-arrow {
    font-size: 2rem;
    color: #adb5bd;
    transition: transform 0.3s ease, color 0.3s ease;
}
.program-list-item-v3:hover .item-arrow {
    transform: translateX(5px);
    color: #8A2BE2;
}

/* Спрощена бічна панель */
.profile-sidebar-v2 {
    position: sticky;
    top: 160px; /* Відступ від хедера */
}

/* --- СТИЛІ СТОРІНКИ ПРОГРАМИ --- */
.program-page-v2 {
    background-color: #fff;
}
.program-hero {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 1.25rem;
}
.program-page-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-right: 1.5rem;
}
.program-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    border-top: 1px solid #e9ecef;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}
.program-stats-bar .stat { display: flex; flex-direction: column; text-align: center; }
.program-stats-bar .stat small { font-size: 0.85rem; color: #6c757d; }
.program-stats-bar .stat strong { font-size: 1.25rem; font-weight: 700; color: #8A2BE2; }

.program-section {
    padding-top: 3rem;
}
.section-title {
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.75rem;
}

/* Рівні винагород */
.reward-tier {
    padding: 1.5rem;
    border-radius: 1rem;
    border: 2px solid;
    height: 100%;
}
.reward-tier h5 { font-weight: 700; }
.reward-tier span { font-size: 1.5rem; font-weight: 600; }

.reward-tier.critical { border-color: #dc3545; background-color: #f8d7da; }
.reward-tier.high { border-color: #ffc107; background-color: #fff3cd; }
.reward-tier.medium { border-color: #0dcaf0; background-color: #cff4fc; }
.reward-tier.low { border-color: #6c757d; background-color: #e2e3e5; }

/* Зал слави */
.hall-of-fame-list { display: flex; flex-direction: column; gap: 0.75rem; }
.fame-item { display: flex; align-items: center; gap: 1rem; background-color: #f8f9fa; padding: 0.75rem 1rem; border-radius: 0.5rem; }
.fame-item img { width: 40px; height: 40px; border-radius: 50%; }
.fame-item span { font-weight: 600; }
.fame-item .badge { margin-left: auto; }

/* Липка бічна панель */
.sticky-sidebar {
    position: sticky;
    top: 160px;
}
.sidebar-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.sidebar-nav .nav-link {
    padding: 0.5rem 0;
    color: #495057;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}
.sidebar-nav .nav-link:hover {
    color: #8A2BE2;
    border-left-color: #8A2BE2;
    padding-left: 0.5rem;
}
.sidebar-nav .nav-link.active {
    color: #8A2BE2;
    border-left-color: #8A2BE2;
    font-weight: 700;
}
.program-dates {
    display: flex;
    flex-direction: column;
    text-align: right;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: #6c757d;
}
.program-stats-bar-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    background-color: #e9ecef;
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    overflow: hidden;
    margin-top: 1.5rem;
}
.program-stats-bar-v2 .stat {
    background-color: #fff;
    padding: 1rem;
    text-align: center;
}
.program-stats-bar-v2 .stat small {
    font-size: 0.85rem;
    color: #6c757d;
    display: block;
}
.program-stats-bar-v2 .stat strong {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Лого */
.logo-image-horizontal {
    height: 30px; /* Висота іконки */
    width: auto;
    margin-right: 0.5rem; /* Відступ між іконкою та текстом */
}
.logo-text-horizontal {
    font-size: 1.5rem; /* Повертаємо стандартний розмір для назви бренду */
    font-weight: bold;
    color: #212529;
}

/* --- СТИЛІ СТОРІНОК ФОРМ (РЕЄСТРАЦІЯ, ЛОГІН) --- */
/* --- СТИЛІ ФУТЕРА --- */
.footer-custom {
    background-color: #1a1a1a;
    color: #f8f9fa;
    padding: 3rem 0;
}
    
/* --- СТИЛІ СТОРІНОК ФОРМ (РЕЄСТРАЦІЯ, ЛОГІН) --- */
.auth-page {
    background-color: #f8f9fa;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    padding: 3rem 0;
}

.auth-form-wrapper {
    background: #fff;
    padding: 2.5rem;
    border-radius: 1.25rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
@media (max-width: 576px) {
    .auth-form-wrapper { padding: 1.5rem; }
}

.auth-logo img {
    height: 40px;
}

.auth-link {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    color: #8A2BE2;
}
.auth-link:hover {
    text-decoration: underline;
}

.form-group-v2 {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 500;
    color: #6c757d;
    font-size: 0.9rem;
}

.form-control-v2 {
    width: 100%;
    border: none;
    border-bottom: 2px solid #dee2e6;
    padding: 0.75rem 0;
    background-color: transparent;
    font-size: 1.1rem;
    outline: none;
    border-radius: 0;
    transition: border-color 0.3s ease;
}

.form-control-v2:focus {
    border-color: #8A2BE2;
}
        
.form-group-v2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #8A2BE2;
    transition: all 0.4s ease;
}
.form-control-v2:focus ~ .form-group-v2::after,
.form-group-v2:has(:focus)::after {
    left: 0;
    width: 100%;
}

/* Стилі для помилок валідації */
.form-control-v2.is-invalid {
    border-color: #dc3545;
}
        
.form-control-v2.is-invalid:focus ~ .form-group-v2::after,
.form-group-v2:has(.form-control-v2.is-invalid:focus)::after {
    background-color: #dc3545;
}
        
.invalid-feedback {
    display: none;
    font-size: 0.8rem;
    padding-top: 0.25rem;
    color: #dc3545;
}
.form-control-v2.is-invalid ~ .invalid-feedback {
    display: block;
}
        
.btn-primary-gradient {
    background: linear-gradient(45deg, #8A2BE2, #6A1B9A);
    border: none;
    color: #fff;
    border-radius: 50rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-primary-gradient:hover {
    color: #fff;
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

/* СТИЛІЗАЦІЯ intl-tel-input ПІД НАШ ДИЗАЙН Запустити Bug Bounty програму */
.iti { width: 100%; }
.iti .form-control-v2 {
    border: none !important;
    border-bottom: 2px solid #dee2e6 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding-left: 10px;
}
.iti--focus .form-control-v2 {
    border-bottom-color: #8A2BE2 !important;
}

.form-check-label { font-size: 0.9rem; }
.form-check-label a { color: #8A2BE2; text-decoration: none; font-weight: 500; }
.form-check-label a:hover { text-decoration: underline; }
.form-check-input { border-color: #dee2e6; }
.form-check-input:checked { background-color: #8A2BE2; border-color: #8A2BE2; }
.form-check-input:focus { border-color: #8A2BE2; box-shadow: 0 0 0 0.25rem rgba(138, 43, 226, 0.25); }
        
.btn-primary-gradient { background: linear-gradient(45deg, #8A2BE2, #6A1B9A); border: none; color: #fff; border-radius: 50rem; font-weight: 600; transition: all 0.3s ease; }
.btn-primary-gradient:hover { color: #fff; transform: scale(1.02); box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4); }

/* --- СТИЛІ ДЛЯ СТОРІНОК З ДОКУМЕНТАЦІЄЮ --- */
.document-page {
    background-color: #fff;
}

/* Навігація по документу (сайдбар) */
.sticky-sidebar {
    position: sticky;
    top: 160px; /* Відступ від фіксованого хедера + запас */
}
.sidebar-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
}
.sidebar-nav .nav-link {
    padding: 0.5rem 0.75rem;
    color: #495057;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}
.sidebar-nav .nav-link:hover {
    color: #8A2BE2;
    background-color: #f8f9fa;
}
.sidebar-nav .nav-link.active {
    color: #8A2BE2;
    border-left-color: #8A2BE2;
    font-weight: 700;
    background-color: #f8f0ff;
}

/* Контент документа */
.document-content h2 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}
.document-content p, .document-content li {
    line-height: 1.8;
    color: #495057;
}
.doc-section {
    padding-top: 4rem; /* Відступ для якірних посилань */
    margin-top: -3rem; /* Компенсація відступу */
}

/* --- СТИЛІ СТОРІНКИ "БАЗА ЗНАНЬ" (АККОРДЕОН) --- */
.kb-page-v2 {
    background-color: #fff;
}

.kb-category-section {
    margin-bottom: 3rem;
}

.category-title {
    font-weight: 700;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
}

/* Кастомізація акордеону Bootstrap */
.accordion-item {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 1rem !important; /* Важливо для перезапису стилів Bootstrap */
    margin-bottom: 1rem;
    box-shadow: 0 4px 25px rgba(0,0,0,0.03);
}

.accordion-button {
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.5rem;
    border-radius: 1rem !important;
}

.accordion-button:not(.collapsed) {
    color: #8A2BE2;
    background-color: #f8f0ff;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(138, 43, 226, 0.2);
    z-index: 4;
}

/* Кастомна іконка +/- */
.accordion-button::after {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    margin-left: auto;
    content: "";
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%238A2BE2'%3e%3cpath fill-rule='evenodd' d='M8 2a.5.5 0 0 1 .5.5v5h5a.5.5 0 0 1 0 1h-5v5a.5.5 0 0 1-1 0v-5h-5a.5.5 0 0 1 0-1h5v-5A.5.5 0 0 1 8 2Z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 1.5rem;
    transition: transform .2s ease-in-out;
}
.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%238A2BE2'%3e%3cpath fill-rule='evenodd' d='M2 8a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11A.5.5 0 0 1 2 8Z'/%3e%3c/svg%3e");
    transform: rotate(0deg); /* Прибираємо обертання, бо іконка вже "мінус" */
}

.accordion-body {
    padding: 0 1.5rem 1.5rem 1.5rem;
    line-height: 1.7;
    color: #495057;
}