/* ==================================================
   Global CSS Variables (Theme Colors)
   ================================================== */
:root {
  /* Overriding Water’s variables so they match your desired colors */

  /* Background Colors */
  --background-body: #000;		/* Main background color */
  --background-alt: #000;		/* Header & footer background */

  /* Text Colors */
  --text-main: #FFFFFF;             /* Main text color */
  --links: #FFFFFF;                 /* Navigation/menu text color */

  /* Button Colors */
  --button-base: #2AB765;           /* Primary button background (if needed) */
  --button-hover: #1b67eb;          /* Button hover background */

  /* Additional variables you used */
  --login-btn-bg: #1D213C;          /* Login button background */
  --login-btn-color: #FFFFFF;       /* Login button text color */
  --registr-btn-gradient: linear-gradient(270deg, #1b67eb 100%, #AC20C9 0%);

  /* Transitions */
  --transition-speed: 0.3s;
}

/* ==================================================
   Global Reset & Base Styles
   ================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  /* Now referencing the Water variables so your colors show up */
  background: var(--background-body);
  color: var(--text-main);
  font-family: Arial, sans-serif;
  line-height: 1.5;
}

h1 {
  margin-top: 80px;
}

a {
  text-decoration: none;
  cursor: pointer;
}

p {
  margin: 10px 0;
}

/* ==================================================
   HEADER – Desktop and Mobile
   ================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--background-alt);
  z-index: 1000;
  /* Default header height for desktop */
  height: 66px;
  padding: 0 20px;
}

/* The checkbox and burger are now direct children of header */
.menu-toggle {
  display: none;
}

/* Burger Icon */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 38px;
  height: 38px;
  cursor: pointer;
  background: var(--login-btn-bg);
  padding: 8px;
  gap: 8px;
  border-radius: 6px;
  /* Position the burger in the top right corner */
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--login-btn-color);
  border-radius: 2px;
  transition: transform var(--transition-speed), opacity var(--transition-speed);
}

/* Header Inner – contains logo, desktop nav, header-buttons */
.header__inner {
  max-width: 1310px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Extra right padding so that the burger (absolutely positioned) does not overlap content */
  padding-right: 80px;
}

/* Logo */
.logo img {
  max-height: 50px;
  width: auto;
}

/* Main Navigation – Desktop (centered) */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.main-nav ul li a {
  color: var(--links);
  font-weight: 600;
  transition: color var(--transition-speed);
}

.main-nav ul li a:hover {
  text-decoration: underline;
}

/* Header Buttons (desktop) */
.header-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-buttons a {
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  transition: background var(--transition-speed);
  white-space: nowrap;
}

.login-btn {
  background: var(--login-btn-bg);
  color: var(--login-btn-color);
}

.login-btn:hover {
  opacity: 0.9;
}

.registr-btn {
  background: var(--registr-btn-gradient);
  color: var(--login-btn-color);
  padding: 12px 24px;       /* Increased vertical/horizontal padding */
  font-size: 18px;          /* Larger font size */
  font-weight: 600;
  border-radius: 8px;       /* Slightly larger border radius */
  text-transform: uppercase;
  animation: pulse-main 2s infinite;
  transition: background var(--transition-speed);
}

.registr-btn:hover {
  background: var(--button-hover);
}

/* Pulse Animation for buttons (registr-btn & main-button) */
@keyframes pulse-main {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 var(--button-base);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 4px 24px 0 var(--button-hover);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 transparent;
  }
}

/* ==================================================
   Mobile & Tablet Styles (max-width: 1023px)
   ================================================== */
@media (max-width: 1023px) {
  /* Reduce header inner right padding */
  .header__inner {
    justify-content: space-between;
    padding-right: 40px;  /* Reduced from 80px */
  }
  /* Hide desktop navigation */
  .main-nav {
    display: none;
  }
  /* Show burger icon */
  .burger {
    display: flex;
  }
  /* Mobile Navigation Curtain */
  .mobile-nav {
    display: none;
    position: fixed;
    top: 0;             /* Cover full viewport height */
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--background-alt);
    flex-direction: column;
    padding-top: 60px;  /* Leave room for the close button */
    transition: transform 0.3s ease;
    z-index: 999;
  }
  .mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
  }
  .mobile-nav ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  /* Increase menu item text and padding */
  .mobile-nav ul li a {
    padding: 18px 20px;
    font-size: 18px;
    color: var(--links);
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .mobile-nav ul li a::after {
    content: "";
    border: 5px solid transparent;
    border-left: 5px solid var(--links);
  }
  /* Display mobile nav when checkbox is checked */
  .menu-toggle:checked ~ .mobile-nav {
    display: flex;
  }
  /* Animate burger icon when toggled */
  .menu-toggle:checked + .burger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 4px);
  }
  .menu-toggle:checked + .burger span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle:checked + .burger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* ==================================================
   Desktop Styles (min-width: 1024px)
   ================================================== */
@media (min-width: 1024px) {
  .main-nav {
    display: flex !important;
    position: static;
    height: auto;
    background: none;
    padding: 0;
  }
  .mobile-nav {
    display: none !important;
  }
  .burger {
    display: none;
  }
}

/* ==================================================
   Small Device Adjustments (max-width: 767px)
   ================================================== */
@media (max-width: 767px) {
  header {
    height: 54px;
  }
  .logo img {
    max-height: 40px;
  }
  .header-buttons a {
    padding: 6px 12px;
    font-size: 14px;
  }
}

/* ==================================================
   Mobile Nav Close Button
   ================================================== */
@media (max-width: 1023px) {
  .mobile-nav__close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    color: var(--links);
    cursor: pointer;
    z-index: 1001;
  }
}

/* ==================================================
   Main Content Padding (to account for fixed header)
   ================================================== */
main {
  padding-top: 80px;
}

/* ==================================================
   Content HeaderLogo Override (if used in content)
   ================================================== */
.headerLogo {
  display: block !important;
  position: relative;
  z-index: 2;
  margin-top: 80px;
  text-align: center;
  font-size: 2.5em;
  color: var(--text-main);
}

/* ---------- Bonus Button (Main Button) ---------- */
.main-button {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 320px;       /* Slightly larger width */
  width: 100%;
  height: 70px;           /* Increased height */
  margin: 20px auto;      /* Vertical margin for spacing */
  border-radius: 10px;    /* More rounded corners */
  background: var(--registr-btn-gradient);  /* Uses your gradient */
  color: var(--login-btn-color);
  font-size: 20px;        /* Larger text */
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  animation: pulse-main 2s infinite;
}

.main-button:hover {
  transform: scale(1.02);
}

/* Indent the first paragraph in .main-section */
.main-section p:first-of-type {
  text-indent: 2em;
  margin-left: 20px;
  margin-right: 20px;
}

/* ==================================================
   Cards Block and Grid
   ================================================== */
.cards-block {
  margin: 2rem 0;
  padding: 0 1rem;
}

.cards-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Each card occupies roughly one-fourth of the container (desktop) */
.card-item {
  position: relative;
  flex: 1 1 calc(25% - 1rem);
  background: #161616; /* Or var(--background-alt) if you prefer */
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

/* On mobile devices: 2 per row */
@media (max-width: 767px) {
  .card-item {
    flex: 1 1 calc(50% - 1rem);
  }
}

/* Scale up slightly on hover */
.card-item:hover {
  transform: scale(1.05);
}

/* Card image styles */
.card-image {
  position: relative;
}

.card-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

/* Overlay on hover */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(22, 22, 22, 0.7);
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-item:hover .card-overlay {
  opacity: 1;
}

/* Container for buttons inside card overlay */
.card-buttons {
  display: flex;
  gap: 1rem;
}

/* Button styles within cards */
.card-buttons a {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: #e45809;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.card-buttons a:hover {
  background: #c34707;
}

/* Card title and provider text */
.card-title,
.card-provider {
  display: block;
  text-align: center;
  margin: 0.5rem 0;
  font-size: 1.2rem;
  color: #a2a5af;
}

/* ==================================================
   Footer Styles
   ================================================== */
.new-footer {
  background: var(--background-alt);
  color: #fff;
  padding: 20px 0;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  margin-top: 30px;
}

.new-footer .social-links {
  margin-bottom: 20px;
}

.new-footer .social-links a {
  margin: 0 10px;
  font-size: 2rem;
  color: #fff;
  transition: color 0.3s;
}

.new-footer .social-links a:hover {
  color: #e45809;
}

.new-footer .footer-images-box {
  margin-bottom: 20px;
}

.new-footer .footer-images-box .images {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.new-footer .footer-images-box .images .image-link img {
  max-width: 120px;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.new-footer .footer-images-box .images .image-link img:hover {
  transform: scale(1.05);
}

.new-footer .container {
  font-size: 0.9rem;
}
ul, ol {
  margin:20px 30px;
}

.footer-menu a {
  margin: 10px;
}

/* ==================================================
   Breadcrumb Navigation Styles
   ================================================== */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 70px 0 20px 0;
  padding: 10px 20px;
  background: var(--background-alt);
  border-radius: 8px;
  font-size: 14px;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.breadcrumbs li a {
  color: var(--text-main);
  opacity: 0.8;
  transition: opacity var(--transition-speed);
  text-decoration: none;
}

.breadcrumbs li a:hover {
  opacity: 1;
  text-decoration: underline;
}

.breadcrumbs li:not(:last-child)::after {
  content: ">";
  margin: 0 8px;
  color: var(--text-main);
  opacity: 0.6;
}

.breadcrumbs li:last-child a {
  color: #ffe71d;
  opacity: 1;
  pointer-events: none;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
  .breadcrumbs {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .breadcrumbs li:not(:last-child)::after {
    margin: 0 5px;
  }
}