/* Общие базовые стили */
@import url('https://fonts.googleapis.com/css2?family=Lora&display=swap');

/* === ADMIN PAGE === */
.admin-forms-container {
  display: flex;
  gap: 2rem; /* расстояние между формами */
  align-items: flex-start; /* выравнивание по верху */
  flex-wrap: wrap; /* чтобы на маленьких экранах формы переходили на новую строку */
}

.blog-form-container, .tournament-form-container {
  flex: 1 1 45%; /* обе занимают примерно по 45% ширины контейнера */
  min-width: 300px; /* минимальная ширина для удобства */
}
/* === END OF THE ADMIN PAGE === */


/* === GENERAL (ALL PAGES) === */
body {
  font-family: 'Lora', serif;
  background-color: white;
  color: #133d14;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

.flex-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.flex-col {
  flex: 1 1 300px;
  min-width: 280px;
  box-sizing: border-box;
}

.responsive {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(20, 83, 45, 0.15);
}

/* Buttons (including Quick Links) */
.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0.5rem 0;
  background-color: #14532d;
  color: #fff;
  border-radius: 6px; /* меньшее скругление */
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #0f3e1a;
}

.link-button {
  display: inline-block;
  background-color: #14532d;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
}

.link-button:hover {
  background-color: #0b3d1a;
}

/* === Footer styles === */
footer {
  background-color: #0b3d1a;
  color: #dbe7cf;
  padding: 1rem 0;
  margin-top: 4rem;
  font-style: normal; /* remove italic */
}

/* Footer container */
.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0 1rem;
  gap: 2rem;
  box-sizing: border-box;
}

/* Margin for left text and right iframe */
.footer-left p, 
.footer-right iframe {
  margin: 0 0 0.5rem 0;
}

/* Styles for iframe (map or video) */
.footer-right iframe {
  width: 300px;
  height: 200px;
  border: none;
  border-radius: 8px;
}

/* Footer links */
footer a {
  color: #a3d9a5;          /* pleasant green color */
  text-decoration: none;
  font-style: normal;
  transition: color 0.3s ease;
}

footer a:hover,
footer a:focus {
  color: #e0f1df;          /* lighter on hover/focus */
  text-decoration: underline;
}

/* Email reveal button */
.email-button {
  display: inline-block;
  background-color: #14532d;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 0.5rem;
  transition: background-color 0.3s ease;
  user-select: none;
  text-align: center;
  text-decoration: none;
}

.email-button:hover {
  background-color: #0b3d1a;
}

/* Hidden email container by default */
.email-reveal {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1rem;
}

/* Show email container when toggle is checked */
.toggle-email:checked + .email-button + .email-reveal {
  max-height: 100px;
  padding: 0.5rem 1rem;
}

/* Responsive footer for small screens */
@media (max-width: 700px) {
  .footer-container {
    flex-direction: column;
  }
  .footer-right iframe {
    width: 100%;
    height: 250px;
  }
}


/* Containers */
.container {
  max-width: 900px;
  margin: 2rem auto 4rem;
  padding: 0 1rem;
}

main.container {
  max-width: 800px;
  margin: 3rem auto;
  display: flex;
  gap: 3rem;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  text-align: left;
}


/* Header */
header {
  background-color: #0b3d1a;
  padding: 1rem 0;
  text-align: center;
}

header .logo-container img {
  width: 180px;
  border-radius: 50%;
}


/* Navigation Container */
nav {
  position: relative;
}
nav, nav * {
  font-family: 'Lora', serif;
}

/* Navigation Links */
nav a.nav-link {
  color: #dbe7cf;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: 400;
  font-size: 1.125rem;
  transition: color 0.3s ease;
}

/* Active and Hover State for Navigation Links */
nav a.nav-link.active,
nav a.nav-link:hover {
  color: #f5f9e3;
  font-weight: 700;
  border-bottom: 2px solid #f5f9e3;
}

/* Dropdown Container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Toggle (button or link that opens menu) */
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  cursor: pointer;
}

/* Dropdown Arrow Icon */
.dropdown-arrow {
  width: 0.8em;
  height: 0.8em;
  transition: transform 0.3s ease;
}

/* Rotate arrow on hover */
.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu Styling */
.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #0b3d1a;
  border: 1px solid #14532d;
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 180px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  z-index: 10;
  top: 100%;
  left: 0;
}

/* Show dropdown menu on hover of dropdown container or menu */
.dropdown:hover > .dropdown-menu,
.dropdown-menu:hover {
  display: block;
}

/* Dropdown Menu Items */
.dropdown-menu a,
.dropdown-item {
  position: relative;
  display: block;
  padding: 0.5rem 1rem 0.5rem 1.5rem; /* Left padding for bullet */
  color: #dbe7cf;
  text-decoration: none !important;
  border: none !important;
  background: none;
  font-weight: 400;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover state for dropdown items */
.dropdown-menu a:hover,
.dropdown-item:hover {
  background-color: #14532d;
  color: #f5f9e3;
}

/* Hover bullet point before hovered item */
.dropdown-menu a:hover::before,
.dropdown-item:hover::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: #f5f9e3;
  border-radius: 50%;
}

/* Вложенное подменю (второй уровень) */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%; /* Смещаем вправо от родительского меню */
  border-radius: 8px;
  border: 1px solid #14532d;
  background-color: #0b3d1a;
  min-width: 180px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  display: none;
  z-index: 20;
}

/* Показываем вложенное меню при наведении на родительский пункт */
.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

/* Стрелка вправо для вложенного меню */
.dropdown-submenu > a.dropdown-toggle::after {
  content: "";
  border: solid #dbe7cf;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  margin-left: auto;
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}

/* Чтобы вложенные пункты выглядели как обычные dropdown-item */
.dropdown-submenu > a.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.3em;
  color: #dbe7cf;
  padding: 0.5rem 1rem 0.5rem 1.5rem;
  text-decoration: none !important;
  cursor: pointer;
  font-weight: 400;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-submenu > a.dropdown-toggle:hover {
  background-color: #14532d;
  color: #f5f9e3;
}

/* Псевдоэлемент bullet point при наведении (как у основного меню) */
.dropdown-submenu > a.dropdown-toggle:hover::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: #f5f9e3;
  border-radius: 50%;
}




/* Titles */
h1, h2, h3, h4 {
  color: #0b3d1a;
  margin: 0 0 1rem 0;
  font-weight: 700;
}

h1 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
}

h2 {
  color: #0b3d1a;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Paragraphs */
p {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
}

/* Intro Paragraphs */
p.intro {
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}


/* === HOMEPAGE === */
/* === Blog Style === */
/* Main blog container */
#blog-container {
  background: none; /* убираем фон, если нужен просто белый фон, можно поставить white */
  border-radius: 0; /* убираем скругления */
  padding: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
  color: #2f4f2f;
}

/* Each blog post */
#blog-container article {
  margin-bottom: 1.8rem;
  border-bottom: 1px solid #c4d1b6; /* лёгкая линия разделения */
  padding-bottom: 1rem;
  border-radius: 0; /* убираем скругления постов */
  box-shadow: none; /* если был тень — убираем */
}

/* Last post — no border or spacing */
#blog-container article:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Post title */
#blog-container h4 {
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #2f4f2f;
  border-bottom: 2px solid #a4b78e; /* акцентная линия */
  padding-bottom: 0.25rem;
}

/* Post meta (e.g., date) */
#blog-container small {
  color: #506a42;
  font-style: italic;
  display: block;
  margin-bottom: 0.8rem;
}

/* Post content */
#blog-container p {
  line-height: 1.5;
  font-size: 1rem;
  margin-top: 0.3rem;
  color: #333;
}

/* === END OF HOMEPAGE === */


/* === MEMBERSHIP === */

.membership-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
  justify-content: center;
  align-items: flex-start; /* Выровнять по верхнему краю */
}

.membership-price,
.payment-info {
  flex: 1 1 400px; /* Ширина около 400px, но адаптивно */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: #1a3924;
}

/* Таблица */
.membership-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #14532d;
  font-size: 1rem;
}

.membership-table th,
.membership-table td {
  padding: 0.4rem 0.75rem;
  text-align: left;
  border: 1px solid #14532d;
  color: #14532d;
}

.membership-table th {
  background-color: #e0e7e9;
  font-weight: 700;
}

.membership-table tbody tr:hover {
  background-color: #d0dbdc;
  transition: background-color 0.2s ease-in-out;
}

.membership-table,
.membership-table th,
.membership-table td {
  border-radius: 0;
}

/* Блок оплаты */
.payment-info {
  font-size: 1rem;
  line-height: 1.6;
  color: #14532d;
  padding: 0;
}

.payment-info h3 {
  text-align: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #14532d;
}

.payment-info a {
  color: #14532d;
  text-decoration: underline;
}

.payment-info ol {
  padding-left: 1.25rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

/* === END OF MEMBERSHIP === */

/* === PROGRAMS PAGES === */
.programs-flex {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap; /* чтобы на узких экранах шли друг под другом */
  margin-bottom: 0rem;
}

.program-subsection {
  flex: 1 1 320px; /* гибкая ширина с минимумом 320px */
  max-width: 400px;
  box-sizing: border-box;
}

.program-subsection h3 {
  font-size: 1.5rem;
  color: #0b3d1a;
  font-weight: 700;
  margin-bottom: 1rem;
  border-bottom: 2px solid #14532d;
  padding-bottom: 0.3rem;
  text-align: center;
}

.program-item {
  padding: 1rem 0;
}

.program-item h4 {
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.program-item a {
  color: #14532d;
  text-decoration: underline;
}

hr {
  border: none;
  border-bottom: 1px solid #ccc;
  margin: 1rem 0;
}

/* === Private Lessons Section === */

.private-programs {
  max-width: 900px;
  margin: 0rem auto 3rem;
}

.private-programs h2.private-title {
  text-align: center;
  margin-bottom: 1rem;
  color: #0b3d1a;
  font-weight: 700;
  font-size: 1.75rem;
  border-bottom: 2px solid #14532d;
  padding-bottom: 0.4rem;
}

/* Row containing pricing and coach card */
.lesson-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Pricing block */
.lesson-pricing {
  flex: 1 1 250px;
  max-width: 300px;
  color: #14532d;
  font-size: 1rem;
  line-height: 1.5;
}

.lesson-pricing h3 {
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #0b3d1a;
}

/* Price list */
.lesson-pricing ul {
  list-style: disc inside;
  padding-left: 1rem;
  margin: 0;
}

/* Coach card */
.lesson-card {
  flex: 1 1 250px;
  max-width: 300px;
  background-color: #f9f9f9;
  border: 1.5px solid #14532d;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  box-sizing: border-box;
  color: #14532d;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 1rem;
  line-height: 1.4;
}

.lesson-card h4 {
  margin-top: 0;
  margin-bottom: 0.3rem;
  font-weight: 700;
  font-size: 1.2rem;
}

.lesson-card p {
  margin: 0.1rem 0;
}

/* Button-like link */
.link-button {
  margin-top: 1rem;
  padding: 0.4rem 0.8rem;
  background-color: #14532d;
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.link-button:hover {
  background-color: #0b3d1a;
}

/* --- Responsive adjustments --- */

@media (max-width: 768px) {
  .program-subsections {
    flex-direction: column;
    gap: 1.5rem;
  }

  .lesson-row {
    flex-direction: column;
    gap: 1.5rem;
  }

  .lesson-pricing,
  .lesson-card {
    max-width: 100%;
  }
}

/* === END OF PROGRAMS PAGE === */


/* === TOURNAMENTS PAGE === */
.past-results-button {
  display: inline-block;
  background-color: #14532d;  /* темно-зеленый фон */
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.past-results-button:hover {
  background-color: #0b3d1a;  /* более темный оттенок при наведении */
}

.next-tournament {
  margin-bottom: 3rem; /* или любое другое значение, например 40px */
}
/* === TOURNAMENTS PAGE === */




/* === ABOUT US PAGE === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* FACILITY SECTION */
.facility-row {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.facility-text {
  flex: 2 1 500px;
  font-size: 1.1rem;
  color: #14532d;
  line-height: 1.5;
}

/* BOARD SECTION */
.board-row {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: nowrap; /* prevent wrapping on desktop */
}

.board-list {
  flex: 1 0 50%;
  font-size: 1.1rem;
  color: #14532d;
}

.board-image {
  flex: 0 2 50%;
   margin-top: 5rem;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(20, 83, 45, 0.15);
  object-fit: cover;
}

/* === Responsive Design === */
@media (max-width: 768px) {
  .facility-row,
  .board-row {
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
  }

  .board-image,
  .facility-text,
  .board-list {
    flex: unset;
    max-width: 100%;
  }
}
/* === END OF ABOUT US PAGE === */


/* === CONTACT US PAGE === */
.contact-container {
  max-width: 900px;
  margin: 3rem auto;
}

.contact-row {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1 1 40%;
  min-width: 280px;
  color: #14532d;
  font-size: 1.1rem;
}

.contact-info a {
  color: #14532d;
  text-decoration: underline;
}

.contact-info h2 {
  margin-top: 1rem;
  color: #0b3d1a;
}

.contact-info ul {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
  list-style-type: disc;
}

.contact-info li {
  margin-bottom: 0.5rem;
}

.contact-form-section {
  flex: 1 1 50%;
  min-width: 280px;
}

.contact-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  color: #0b3d1a;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem 0.7rem;
  margin-bottom: 1rem;
  border: 2px solid #14532d;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Lora', serif;
  box-sizing: border-box;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .button {
  width: 100%;
  background-color: #14532d;
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form .button:hover {
  background-color: #0b3d1a;
}
/* === END OF CONTACT US PAGE === */

/* === GUIDELINES PAGE === */
.guidelines-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.guidelines-nav a {
  color: #14532d;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
}

.guidelines-nav a::after {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  background-color: #14532d;
  transition: width 0.3s;
  position: absolute;
  bottom: -4px;
  left: 0;
}

.guidelines-nav a:hover::after {
  width: 100%;
}

.guidelines-nav ul {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  margin-top: 0.5rem;
}

.guidelines-nav li {
  max-width: 600px;
}

.guidelines-nav small {
  color: #444;
  font-size: 0.95rem;
}

/* === END OF GUIDELINES PAGE === */


/* === 404 PAGE === */
.error-404 {
  min-height: 20vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.error-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  max-width: 900px;
  width: 100%;
}

/* TEXT */
.error-text h1 {
  font-size: 4rem;
  margin: 0 0 1rem 0;
  color: #0b3d1a;
}

.error-text p {
  margin: 0 0 1rem 0;
  color: #14532d;
}

/* BUTTONS */
.error-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* IMAGE */
.error-img img {
  width: 300px;
  height: auto;
  display: block;
}

/* MOBILE */
@media (max-width: 700px) {
  .error-box {
    flex-direction: column;
    text-align: center;
  }

  .error-img img {
    width: 140px;
  }

  .error-buttons {
    justify-content: center;
  }
}