/* Globalne style i resetowanie */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Sans+Math&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@font-face {
    font-family: "Colfax"; /* Choose a name you'll use in CSS */
    src:
      url("./assets/fonts/colfax_regular.otf") format("otf"), /* Modern browsers */
      url("./assets/fonts/colfax_regular.ttf") format("truetype");
    font-weight: normal; /* Or 400 */
    font-style: normal;
    font-display: swap; /* Recommended: Shows fallback font while loading */
}
@font-face {
    font-family: "Colfax"; /* Choose a name you'll use in CSS */
    src:
      url("assets/fonts/colfax_italic.otf") format("otf"), /* Modern browsers */
      url("./assets/fonts/colfax_italic.ttf") format("truetype");
    font-weight: normal; /* Or 400 */
    font-style: italic;
    font-display: swap; /* Recommended: Shows fallback font while loading */
}
@font-face {
    font-family: "Colfax"; /* Choose a name you'll use in CSS */
    src:
      url("./assets/fonts/colfax_bold.otf") format("otf"), /* Modern browsers */
      url("./assets/fonts/colfax_bold.ttf") format("truetype");
    font-weight: medium; /* Or 400 */
    font-style: normal;
    font-display: swap; /* Recommended: Shows fallback font while loading */
}
@font-face {
    font-family: "General Sans Variable"; /* Choose your CSS name */
    src:
      url("assets/fonts/GeneralSans-Variable.ttf") format("truetype");
    font-weight: 100 900;
    font-display: swap; /* Highly recommended */
  }

 
   .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
  }
  
  /* Navbar */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* background-color: #f8f9fa; */
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    z-index: 1000;
    height: 80px; /* Ustaw stałą wysokość dla navbara */
    display: flex;
    align-items: center; /* Wyśrodkowanie elementów w pionie */
    transition: all 150ms ease-in-out;
  }

  .navbar.scrolled {
    background-color: #F8F8F7; /* Or 'white' or your desired near-white */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: add shadow when scrolled */
  }
  
  .navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  
  .logo {
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.2;
    color: #333;
    text-align: center;
  }
  
  .logo-highlight {
    color: #00a9e0; /* Jasnoniebieski kolor z logo */
    font-weight: 600;
  }
  
  .navbar nav ul li {
    margin-left: 25px;
  }
  
  .navbar nav ul:not(.dropdown) {
    list-style: none;
    display: flex;
  }
  
  .navbar nav ul li:not(.dropdown li) {
    margin-left: 25px;
  }

    .no-deco {
    text-decoration: none;
  }

  .link-dropdown-content {
    display: none;
  }

  .link-dropdown-content ul li a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 1.3rem;
    transition: color 0.3s ease;
    max-width: 100%;
    white-space: normal;       /* allow wrapping */
    word-wrap: break-word;
  }
  
  .navbar nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
  }
  
  .navbar nav ul li a:hover {
    color: #007bff;
  }

  /* Dropdown styles */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  background-color: #f0f0f0;
  min-width: 150px;
  display: none;    /* hidden by default */
  border-radius: 12px;
  padding: 10px 5px;
}

.dropdown-link {
  display: block;
  padding: 10px 15px;
  color: #1a1a1a;
  text-decoration: none;
  white-space: nowrap;
}

.nav-item {
  position: relative;
}

.dropdown-link:hover {
  color: #555;
}

.faq-toggle {
  background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: #212529;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 500; /* Slightly bolder */
    margin-bottom: 0.5rem; /* Space before content opens */
    transition: color 0.2s ease-in-out;
}

/* Show dropdown on hover */
.nav-item:hover .dropdown {
  display: block;
}

  

/* --- Base Styles & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    font-size: 100%; /* Base for rem units */
    scroll-behavior: smooth;
  }
  
  body {
    font-family: "Montserrat", "Segoe UI", "Helvetica Neue", sans-serif; /* Default fallback font */
    line-height: 1.6;
    color: #333;
    background-color: #ffffff; /* Default background */
  }

  .container {
    margin: 0 auto;
    padding: 0px 3rem;
  }

  .highlight-dark {
    background-image: linear-gradient(
        90deg,
        #00ADD0,
        #1A606E
    ); /* Your desired text gradient */
    color: #1A606E; /* Example fallback color */
    -webkit-background-clip: text;
    background-clip: text;

    /* 3. Make the actual text color transparent */
    /* This allows the clipped gradient background to show through */
    -webkit-text-fill-color: transparent;
    /* For browsers that support standard property: */
    color: transparent;
    background-size: 100%;
    background-repeat: repeat;
  }

  .header-mobile {
    display: none;
  }
  
  /* --- Page Wrapper --- */
  .page-wrapper {
    /* Mobile first - columns stack by default */
  }
  
  /* --- Columns --- */
  .quiz-col-left {
    /* Mobile styles */
    padding: 3rem 1.5rem; /* Padding for mobile */
    padding-bottom: 0.5rem;
    background-image: url("/assets/backgrounds/bg_main.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  }
  
  .quiz-col-right {
    /* Mobile styles */
    padding: 3rem 1.5rem;
    padding-top: 0.5rem;
  }
  
  /* --- Left Column Content --- */
  .left-content-wrapper {
    max-width: 550px; /* Limit width of content inside */
    margin: 0 auto; /* Center content if column is wider */
  }
  
  .section-logo {
    font-family: "Colfax", sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #08a0b8;
    line-height: 1.2;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
  }
  
  .quiz-title {
    font-family: "Colfax", sans-serif;
    font-size: 2.5rem; /* Mobile title size */
    font-weight: 500;
    color: #212529;
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }
  
  .highlight-dark {
    color: #08a0b8;
  }
  
  .quiz-description {
    font-size: 1rem;
    color: #535353;
    line-height: 1.5;
    margin-bottom: 2rem;
    display: none;
  }
  
  .info-link {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .info-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.1rem;
    bottom: 0.1rem;
    width: 4px;
    background-image: linear-gradient(
        90deg,
        #00ADD0,
        #1A606E
    );
    border-radius: 2px;
  }
  
  .info-link a {
    font-size: 1.05rem;
    font-weight: 500;
    color: #545454;
    text-decoration: underline;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease-in-out;
    font-family: 'General Sans Variable', "Segoe UI", "Helvetica Neue";
  }
  
  .info-link a:hover {
    color: #08a0b8;
  }
  
  /* --- Right Column Content --- */
  .right-content-wrapper {
    max-width: 650px; /* Limit width of content */
    /* Center content if column is wider (relevant on desktop) */
    margin: 0 auto;
  }
  
  .quiz-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
  }
  
  .random-quiz-buttons {
    display: flex;
    gap: 1rem; /* Mobile gap */
    margin-bottom: 2rem;
  }
  
  .quiz-button-large {
    flex: 1;
    padding: 1rem 0.75rem; /* Mobile padding */
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: #212529;
    border: 1px solid rgba(160, 234, 248, 0.5);
    transition: transform 0.2s ease-in-out;
  }
  
  .quiz-button-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  }
  
  .quiz-button-large .number {
    display: block;
    font-family: "Colfax", sans-serif;
    font-size: 2rem; /* Mobile number size */
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.25rem;
  }
  
  .quiz-button-large .text {
    display: block;
    font-size: 0.75rem; /* Mobile text size */
    font-weight: 500;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .gradient-1 {
    background: linear-gradient(to bottom right, #e0f8fc, #b3ecf4);
  }
  .gradient-2 {
    background: linear-gradient(to bottom right, #e0fcf0, #b3f4d8);
  }
  .gradient-3 {
    background: linear-gradient(to bottom right, #e0fcf0, #d6f4b3);
  }
  
  .divider {
    height: 1px;
    background-color: #dee2e6;
    margin: 1.75rem 0;
  }
  
  /* Archive Grid */
  .archive-grid {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 0;
    /* border: 1px solid #dee2e6; */
  }
  
  .archive-year,
  .archive-grid-button {
    padding: 0.75rem 1rem; /* Mobile padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
  }
  
  .archive-year {
    border-right: 1px solid #dee2e6;
    align-items: flex-start;
    text-align: left;
  }
  
  .archive-grid-button {
    border-right: 1px solid #dee2e6;
    text-decoration: none;
    color: #212529;
    background-color: #ffffff;
    transition: background-color 0.2s ease-in-out;
    border-radius: 0;
  }
  
  .archive-grid-button:hover {
    background-color: #f8f9fa;
  }
  
  .archive-grid > *:nth-child(3n) {
    border-right: none;
  }
  
  .archive-grid > *:nth-last-child(-n + 3) {
    border-bottom: none;
  }
  
  .archive-year .edition {
    font-size: 0.9rem; /* Mobile size */
    font-weight: 600;
    color: #495057;
    line-height: 1.2;
  }
  .archive-year .dates {
    font-size: 0.75rem; /* Mobile size */
    color: #6c757d;
    line-height: 1.2;
  }
  
  .archive-grid-button .number {
    font-family: "Colfax", sans-serif;
    font-size: 1.5rem; /* Mobile size */
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.1rem;
  }
  .archive-grid-button .text {
    font-size: 0.7rem; /* Mobile size */
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  /* --- Desktop Styles (Fixed Left Column) --- */
  @media (min-width: 993px) {
    .page-wrapper {
      display: flex;
    }

    .quiz-description {
      display: block;
    }
    
  
    .quiz-col-left {
      position: fixed;
      top: 0;
      left: 0;
      width: 40%; /* Adjust width as needed */
      height: 100vh; /* Full viewport height */
      padding: 6rem 3rem; /* Desktop padding */
      /* Ensure background stays fixed */
      background-attachment: fixed;
      /* Add scrollbar ONLY if content overflows the fixed height */
      overflow-y: auto;
    }
  
    .quiz-col-right {
      width: 60%; /* Remaining width */
      margin-left: 40%; /* Offset by left column width */
      padding: 6rem 3rem; /* Desktop padding */
      /* Right column scrolls naturally if content exceeds viewport */
    }
  
    /* Adjust content styles for desktop if needed */
    .quiz-title {
      font-size: 3rem; /* Larger title on desktop */
    }
  
    .random-quiz-buttons {
      gap: 1.5rem;
    }
  
    .quiz-button-large {
      padding: 1.5rem 1rem;
    }
  
    .quiz-button-large .number {
      font-size: 2.5rem;
    }
  
    .quiz-button-large .text {
      font-size: 0.85rem;
    }
  
    .archive-year,
    .archive-grid-button {
      padding: 1rem 1.25rem;
    }
  
    .archive-year .edition {
      font-size: 1rem;
    }
    .archive-year .dates {
      font-size: 0.8rem;
    }
  
    .archive-grid-button .number {
      font-size: 1.75rem;
    }
    .archive-grid-button .text {
      font-size: 0.75rem;
    }
  }
  
  /* Optional: Adjust max-width for very large screens */
  @media (min-width: 1400px) {
    .left-content-wrapper {
      max-width: 600px;
    }
    .right-content-wrapper {
      max-width: 750px;
    }
  }

  @media (max-width: 992px) {
    .header-mobile {
        display: flex;
        width: 100vw;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 12;
        /* flex-flow: row wrap;
        justify-content: space-around;
        
        padding-top: 16px;
        padding-left: 8px;
        padding-right: 8px; */
        transition: all 1000ms ease-in-out;
        -webkit-transition: all 1000ms ease-in-out;
        background-color: white;
      }

      .header-mobile .logo {
        position: absolute;
        top: 15px;
        left: 50%;
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%)
    }
    
      nav {
        background-color: transparent;
        height: 65px;
      }
      
      
      #menuToggle {
        display: flex;
        flex-direction: column;
        position: relative;
        top: 25px;
        left: 25px;
        z-index: 10;
        -webkit-user-select: none;
        user-select: none;
      }
      
      #menuToggle input
      {
        display: flex;
        width: 40px;
        height: 32px;
        position: absolute;
        cursor: pointer;
        opacity: 0;
        z-index: 11;
      }
      
      #menuToggle span:not(.arrow)
      {
        display: flex;
        width: 29px;
        height: 2px;
        margin-bottom: 5px;
        position: relative;
        background: rgb(0, 0, 0);
        border-radius: 3px;
        z-index: 10;
        transform-origin: 5px 0px;
        transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                    background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                    opacity 0.55s ease;
      }
      
      #menuToggle span:not(.arrow):first-child
      {
        transform-origin: 0% 0%;
      }
      
      #menuToggle span:not(.arrow):nth-last-child(2)
      {
        transform-origin: 0% 100%;
      }
      
      #menuToggle input:checked ~ span
      {
        opacity: 1;
        transform: rotate(45deg) translate(-3px, -1px);
        background: #2c2c2e;
      }
      #menuToggle input:checked ~ span:nth-last-child(3)
      {
        opacity: 0;
        transform: rotate(0deg) scale(0.2, 0.2);
      }
      
      #menuToggle input:checked ~ span:nth-last-child(2)
      {
        transform: rotate(-45deg) translate(0, -1px);
      }
      
      #menu
      {
        position: absolute;
        width: 70vw;
        height: 100vh;
        box-shadow: 0 0 5px #85888C;
        margin: -50px 0 0 -50px;
        padding: 50px;
        padding-top: 125px;
        background: rgb(165, 182, 232);
        -webkit-font-smoothing: antialiased;
        transform-origin: -100% -100%;
        transform: translate(-100%, 0);
        transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
        border-radius: 32px;
        overflow-y: auto;    /* vertical scroll when content overflows */
        overflow-x: hidden;
      }
      
      #menu li:not(.link-dropdown-content ul li)
      {
        padding: 10px 0;
      }
      
      #menuToggle input:checked ~ ul
      {
        transform: none;
      }
    
      ul {
        padding: 0;
        list-style-type: none;
      }
    
      .header-mobile a {
        text-decoration: none;
        color: #3a3a3a;
        opacity:1;
        font-size: 2em;
        font-weight: 400;
        transition: 200ms;
      }
      .header-mobile a:hover {
        opacity:0.5;
      }

      .navbar {
        display: none;
      }

      .page-wrapper {
        padding-top: 80px;
      }
}

/* .guarantee-box {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 2px solid transparent; 
    background:
      linear-gradient(white, white) padding-box,
      linear-gradient(135deg, #20cae0bb, #ffffff, #ffffff, #20cae0bb) border-box;
    margin-bottom: 55px;
} */

.guarantee-title {
    font-size: 1.1rem;
    font-weight: 400;
}

.guarantee-title strong {
    font-size: 1.1rem;
    font-weight: 600;
}

.top-content-row {
  display: flex;
  flex-direction: row;
}

.top-content-segment:nth-child(1) {
  width: 30%;
  padding-right: 25px;
}
.top-content-segment:nth-child(2) {
  padding-left: 25px;
  border-left: 1px solid #d0d0d0;
  width: 70%;
}


.guarantee-box {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #e0e0e0;
    margin-bottom: 12px;
}

.guarantee-box li {
    margin-left: 12px;
    font-size: 0.9rem;
}

.guarantee-box a {
    text-decoration: none;
    color: #333;
}

.materials-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
}

.materials-note {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

/* ----------- Olimpiada Wiedzy Ekologicznej selection (lista-quizow-olimpiada-wiedzy-ekologicznej.html) ----------- */
.olimpiada-eko-lead {
  font-size: 1rem;
  color: #4a4a4a;
  margin-bottom: 1.25rem;
}

.olimpiada-eko-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.olimpiada-eko-section {
  border: 1px solid #e6ece7;
  border-radius: 18px;
  padding: 1.5rem;
  background-color: #ffffff;
  margin-bottom: 1.75rem;
  box-shadow: 0 6px 18px rgba(15, 41, 61, 0.05);
}

.olimpiada-eko-section--free {
  border-color: rgba(0, 208, 114, 0.45);
  background: linear-gradient(
    120deg,
    rgba(0, 208, 114, 0.12),
    rgba(0, 130, 76, 0.04)
  );
}

.olimpiada-eko-section-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.olimpiada-eko-badge {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0, 208, 114, 0.15);
  color: #0f6c3f;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

.olimpiada-eko-grid--free .olimpiada-eko-card {
  border-color: rgba(0, 208, 114, 0.4);
  background: #f4fbf7;
}

.olimpiada-eko-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
  position: relative;
  color: #5f6b61;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.olimpiada-eko-divider::before,
.olimpiada-eko-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1));
}

.olimpiada-eko-divider::after {
  margin-left: 1rem;
}

.olimpiada-eko-divider::before {
  margin-right: 1rem;
  transform: scaleX(-1);
}

.olimpiada-eko-card {
  border: 1px solid #dee2e6;
  border-radius: 12px;
  background-color: #ffffff;
  padding: 1rem;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1f2c2f;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  font-family: "Colfax", "Montserrat", sans-serif;
}

button.olimpiada-eko-card {
  background: #ffffff;
}

.olimpiada-eko-card:hover,
.olimpiada-eko-card:focus-visible {
  border-color: #00d072;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  outline: none;
  transform: translateY(-2px);
}

.olimpiada-eko-card.is-selected {
  border-color: #00d072;
  background: linear-gradient(110deg, rgba(0, 208, 114, 0.1), rgba(25, 103, 27, 0.08));
  box-shadow: 0 10px 24px rgba(0, 208, 114, 0.25);
}

.olimpiada-eko-name {
  display: inline-block;
  font-weight: 600;
  color: #1f2c2f;
}

body.olimpiada-wiedzy-ekologicznej-theme .highlight-dark {
  background-image: linear-gradient(90deg, #00d072, #19671b);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.olimpiada-wiedzy-ekologicznej-theme .quiz-col-left {
  background-image: none;
  background-color: #ffffff;
}

body.olimpiada-wiedzy-ekologicznej-theme .info-link a {
  color: #19671b;
}

body.olimpiada-wiedzy-ekologicznej-theme .info-link a:hover {
  color: #00d072;
}

body.olimpiada-wiedzy-ekologicznej-theme .olimpiada-eko-card {
  border-color: rgba(25, 103, 27, 0.2);
}