/* General Reset */
body, h1, h2, h3, p, ul, li, a {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
}

h3 {
    color: #e5533d;
}
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.main-header {
    z-index: 999;
    background-color: #1e1e1e;
    color: #f0f0f0;
    transition: box-shadow 0.3s ease;
}
.main-header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.site-title {
    text-align: center;
    font-size: 2.5em;
}
.main-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
    padding: 0;
}
.main-nav ul li {
    margin: 0 15px;
}
.main-nav ul li a {
    color: #fff;
    font-size: 1.2em;
    transition: color 0.3s ease;
}
.main-nav ul li a:hover {
    color: #ff6347;
}

@media screen and (max-width: 600px) {
  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .main-nav ul li {
    margin: 0;
  }

  .main-nav ul li a {
    font-size: 1.1em;
    padding: 10px 0;
  }
}

/* Hero Section */
.hero {
    background: #333 url('hero-image.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 60px 20px;
}
.hero h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
}
.hero p {
    font-size: 1.2em;
}

/* News Section */
.news {
    background-color: #fff;
    padding: 40px 0;
}
.news h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2em;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.news-item {
    background-color: #f4f4f4;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}
.news-item:hover {
    transform: scale(1.05);
}
.news-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}
.news-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}
.news-item p {
    margin-bottom: 15px;
    color: #555;
}
.news-item a {
    color: #ff6347;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
}
    

/* Footer */
.main-footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.animated-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: bold;
    color: #fff;
    background-color: #ff6347;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.animated-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: skewX(-45deg);
    transition: left 0.3s ease;
}

.animated-button:hover::before {
    left: 100%;
}

.animated-button:hover {
    background-color: #e5533d;
}

.reviews {
    background-color: #f4f4f4;
    padding: 60px 0;
}
.reviews h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    color: #222;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Individual Review Item */
.review-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

/* Hover effect on review items */
.review-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

/* Add a colorful border and shadow on hover */
.review-item:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid #ff6347;
    border-radius: 10px;
    pointer-events: none;
}

/* Review Title */
.review-item h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #222;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

/* Review Text */
.review-item p {
    font-size: 1em;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Contact Section */
.contact {
    background-color: #fff;
    padding: 40px 0;
    text-align: center;
}

.contact h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.contact p {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #555;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form button {
    padding: 10px 20px;
    font-size: 1em;
    font-weight: bold;
    color: #fff;
    background-color: #ff6347;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #e5533d;
}

#formMessage {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

/* Contact Info */
.contact-info {
    margin-top: 40px;
    text-align: left;
}

.contact-info h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.contact-info p {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #555;
}

/* Social Links */
.social-links {
    list-style: none;
    margin-top: 20px;
    padding: 0;
}

.social-links li {
    display: inline-block;
    margin-right: 15px;
}

.social-links a {
    font-size: 1.2em;
    color: #333;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ff6347;
}

/* Single Article */
.news-article {
    background-color: #fff;
    padding: 40px 0;
}

.single-article {
    text-align: center;
}

.single-article h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.article-meta {
    font-size: 1.2em;
    color: #777;
    margin-bottom: 20px;
}

.article-img {
    width: 100%;
    height: auto;
    max-width: 800px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.article-content p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #555;
    text-align: justify;
}

.article-content h2 {
    font-size: 2.4em;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #222;
    text-align: justify;
}

.article-content h3 {
    font-size: 1em;
    color: #555;   
    padding-left: 15px;
    border-left: 5px solid #ff6347;
    margin-bottom: 20px;
    text-align: justify;
}


/* Article Navigation */
.article-navigation {
    margin-top: 40px;
    text-align: center;
}

.article-navigation a {
    padding: 10px 20px;
    font-size: 1.2em;
    color: #fff;
    background-color: #ff6347;
    border: none;
    border-radius: 5px;
    margin: 0 15px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.article-navigation a:hover {
    background-color: #e5533d;
}

/* Стиль для списку */
.custom-list {
    list-style: none; 
    padding: 0;
    margin: 20px 0;
}

.custom-list li {
    display: flex; 
    align-items: center; 
    position: relative; 
    padding-left: 25px; 
    margin-bottom: 10px; 
}

.custom-list li::before {
    content: ''; 
    position: absolute;
    left: 0; 
    top: 50%; 
    transform: translateY(-50%); 
    width: 10px;
    height: 10px;
    background-color: #ff6347; 
    border-radius: 50%;
}

/* Стиль для тексту */
.custom-list li {
    font-size: 1.1em; 
    color: #333; 
}

.search-bar-wrapper {
  margin: 20px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 500px;
  position: relative;
}

.search-bar-wrapper input {
  width: 100%;
  padding: 12px 40px 12px 16px;
  font-size: 16px;
  border: 2px solid #ff6347;
  border-radius: 30px;
  outline: none;
  background-color: #f9f9f9;
  color: #333;
  transition: box-shadow 0.3s ease;
}

.search-bar-wrapper input:focus {
  box-shadow: 0 0 8px rgba(255, 99, 71, 0.5);
}

.search-icon {
  position: absolute;
  right: 14px;
  font-size: 18px;
  color: #999;
  pointer-events: none;
}

/* Стилізація результатів */
.search-results {
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  background: white;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: none;
  z-index: 999;
}

.search-results a {
  display: block;
  padding: 10px 16px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

.search-results a:hover {
  background-color: #f5f5f5;
}

body {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Коли сторінка готова */
body.fade-in {
    opacity: 1;
}

.faq-section {
    padding: 40px 20px;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid #ccc;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 15px 20px;
    font-size: 1.1em;
    font-weight: bold;
    background-color: #f5f5f5;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #e0e0e0;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: #fff;
    padding: 0 20px;
}

.accordion-body p {
    margin: 15px 0;
}

.tournament-section {
    margin: 60px auto;
    padding: 40px 20px;
    background: #1b1b1b;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255, 99, 71, 0.3);
    animation: pulseShadow 3s ease-in-out infinite;
}

.tournament-section .section-title {
    text-align: center;
    font-size: 2em;
    color: #ff6347;
    margin-bottom: 30px;
    text-shadow: 0 0 8px rgba(255, 99, 71, 0.7);
}

.table-wrapper {
    overflow-x: auto;
}

.tournament-table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
    font-size: 1em;
    min-width: 600px;
}

.tournament-table thead {
    background-color: #ff6347;
}

.tournament-table th, .tournament-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.tournament-table tbody tr:nth-child(even) {
    background-color: #2a2a2a;
}

.tournament-table tbody tr:hover {
    background-color: #3a3a3a;
    transition: background 0.3s;
}

@keyframes pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(255, 99, 71, 0.7);
    }
    70% {
      box-shadow: 0 0 0 15px rgba(255, 99, 71, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(255, 99, 71, 0);
    }
  }
