/* ===== IMPROVED CSS STYLES ===== */
/* Простий, гарний і зручний дизайн */

/* Загальні стилі */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #34495e;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #495057;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #6c757d;
}

/* Шапка сайту */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 40px;
    border-radius: 4px;
}

.logo h1,
.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.logo span .home-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo span .home-link:hover {
    opacity: 0.8;
}

/* Навігація */
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Мобільне меню */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-menu span {
    background: white;
    height: 3px;
    width: 25px;
    border-radius: 2px;
    transition: all 0.3s ease;
}




/* Шрифт (опціонально) */
/* @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&display=swap'); */

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    color: #FFD700;
}

/* Список карток */
.casino-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* Базова картка */
.casino-card.lighter {
    background: #2a2a2a;
    color: #f0f0f0;
    width: 280px;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    text-align: center;
    position: relative;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;

    /* Вирівнювання елементів усередині та фіксація кнопки внизу */
    display: flex;
    flex-direction: column;
    min-height: 380px; /* однакова висота карток */
}

/* Ховер-ефекти */
.casino-card.lighter:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.7);
}

/* Плавна поява з затримкою для кожної картки */
.casino-card.lighter:nth-child(1) { animation-delay: 0.2s; }
.casino-card.lighter:nth-child(2) { animation-delay: 0.4s; }
.casino-card.lighter:nth-child(3) { animation-delay: 0.6s; }

/* Кадри анімації */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Лого */
.casino-logo {
    max-width: 120px;
    margin: 15px auto;
    display: block;
}

/* Назва казино — фіксована зона, щоб усі були на одному рівні */
.casino-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    margin: 15px 0 10px 0;
    color: #FFD700;

    /* Вирівнювання по вертикалі та однакова висота */
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Бонус — фіксована зона, щоб рядок бонусів був на одному рівні */
.rating {
    font-size: 18px;
    color: #FFD700;
    margin: 10px 0 16px;

    /* Вирівнювання по вертикалі та однакова висота */
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
    text-align: center;
}

/* Кнопка — завжди внизу картки */
.casino-card.lighter .btn {
    margin-top: auto;          /* прибиває кнопку вниз незалежно від висоти тексту */
    display: inline-block;
    padding: 12px 20px;
    color: #000;
    background: #FFD700;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
}

.casino-card.lighter .btn:hover {
    background: #ffc300;
    transform: translateY(-1px);
}

/* Адаптивність */
@media (max-width: 768px) {
    .casino-list {
        gap: 20px;
    }
    .casino-card.lighter {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
        min-height: 360px;
    }
    .casino-name {
        min-height: 46px;
        font-size: 20px;
    }
    .rating {
        min-height: 48px;
        font-size: 16px;
    }
}

/* Уніфікуємо зону логотипа — однакова висота у всіх */
.casino-logo {
    display: block;
    margin: 12px auto 14px;
    width: 140px;        /* контрольована ширина */
    height: 72px;        /* ОДНАКОВА висота «боксу» під логотип для всіх */
    object-fit: contain; /* зберігає пропорції, вписує у бокс */
    object-position: center;
}

/* Стандартизуємо відступи, щоб текст не "плавав" */
.casino-name {
    margin: 10px 0 8px;
    line-height: 1.2;
    min-height: 50px;    /* вже було — залишаємо */
}

.rating {
    margin: 8px 0 16px;
    line-height: 1.3;
    min-height: 52px;    /* вже було — залишаємо */
}


/* Основний контент */
main {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Секція переваг і недоліків */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.pros {
    background: rgba(101, 189, 19, 0.623);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cons {
    background: rgba(255, 0, 0, 0.596);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pros:hover, .cons:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.pros h3 {
    color: #28a745;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e8f5e8;
}

.cons h3 {
    color: #dc3545;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #fdeaea;
}

.pros ul, .cons ul {
    list-style: none;
}

.pros li, .cons li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.pros li .icon {
    color: #28a745;
    font-weight: bold;
    font-size: 1.2rem;
    min-width: 20px;
}

.cons li .icon {
    color: #dc3545;
    font-weight: bold;
    font-size: 1.2rem;
    min-width: 20px;
}

/* FAQ секція */
.faq-section {
    margin: 3rem 0;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faq-section h2 {
    text-align: center;
    color: #495057;
    margin-bottom: 2rem;
    border-bottom: none;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: #f8f9fa;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    padding: 1.25rem;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-answer {
    display: none;
    padding: 1.25rem;
    background: white;
    color: #6c757d;
    line-height: 1.6;
    border-top: 1px solid #e9ecef;
}

.faq-answer.open {
    display: block;
}

/* Підвал */
footer {
    background: #343a40;
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-top h4 {
    color: #adb5bd;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.responsible-gaming-logos img {
    margin: 0 1rem;
    height: 40px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.responsible-gaming-logos img:hover {
    opacity: 1;
}

.help-link {
    color: #ffc107;
    text-decoration: none;
    font-weight: 600;
    margin: 1.5rem 0;
    display: inline-block;
    transition: color 0.3s ease;
}

.help-link:hover {
    color: #ffcd39;
}

.contact {
    font-size: 1.1rem;
    margin: 1rem 0;
    color: #adb5bd;
}

.footer-bottom {
    border-top: 1px solid #495057;
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.footer-bottom p {
    color: #6c757d;
    font-size: 0.9rem;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Адаптивний дизайн */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(102, 126, 234, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    nav ul.open {
        display: flex;
    }
    
    .nav-links li {
        text-align: center;
        padding: 0.5rem 0;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    main {
        padding: 0 1rem;
        margin: 1rem auto;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .pros, .cons {
        padding: 1.5rem;
    }
    
    .faq-section {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 0.75rem;
    }
    
    main {
        padding: 0 0.75rem;
    }
    
    .pros, .cons {
        padding: 1.25rem;
    }
    
    .faq-section {
        padding: 1.25rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

        .custom-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 15px;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.custom-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.custom-table th {
    text-align: left;
    padding: 14px;
    font-weight: 600;
    color: #000000;
    border-bottom: 1px solid #e9ecef;
}

.custom-table td {
    padding: 14px;
    color: #000000;
    border-bottom: 1px solid #f1f3f5;
}

.custom-table tr:last-child td {
    border-bottom: none;
}

.custom-table tbody tr:hover {
    background: #f8f9fa;
    transition: 0.2s;
}

/* Додаткові утиліти */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

  #casino-widget-iframe {
    width: 65%;
    border: none;
    display: block;
  }

  @media (max-width: 768px) {
    #casino-widget-iframe {
      width: 100%;
    }
  }

    @media (max-width: 768px) {
    .table-wrapper {
      overflow-x: auto;
    }

    .custom-table {
      min-width: 600px;
    }
  }

   /* custom ol and ul */
  .custom-list {
    padding-left: 20px;
    margin: 16px 0;
  }

  .custom-list li {
    margin-bottom: 8px;
    line-height: 1.5;
  }

 
  .custom-ul {
    list-style: none;
    padding-left: 0;
  }

  .custom-ul li {
    position: relative;
    padding-left: 24px;
  }

  .custom-ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 18px;
  }

 
  .custom-ol {
    list-style: none;
    counter-reset: custom-counter;
    padding-left: 0;
  }

  .custom-ol li {
    counter-increment: custom-counter;
    position: relative;
    padding-left: 28px;
  }

  .custom-ol li::before {
    content: counter(custom-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
  }


  @media (max-width: 768px) {
    .custom-list {
      padding-left: 16px;
    }

    .custom-ul li,
    .custom-ol li {
      padding-left: 20px;
    }

    .custom-ul li::before {
      font-size: 16px;
    }

    .custom-ol li::before {
      font-size: 14px;
    }
  }

.custom-ul li::before { color: rgba(102, 126, 234, 0.95); }
.custom-ol li::before { color: rgba(102, 126, 234, 0.95); }