/* ============================  CSS RESET & NORMALIZE  ============================ */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  line-height: 1.5;
  background: #F2E9C9;
  color: #23203F;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  min-height: 100vh;
  letter-spacing: 0.02em;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #3E238A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #674BAF;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  padding-left: 1.3em;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}
button {
  border: none;
  background: none;
  cursor: pointer;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 10px 16px;
  border-bottom: 1px solid #e4deb4;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #23203F;
  letter-spacing: 0.03em;
  font-weight: 700;
}

/* ===================  BRAND COLORS FOR CREATIVE ARTISTIC AESTHETIC  =================== */
:root {
  --primary: #23203F;
  --primary-rgb: 35,32,63;
  --secondary: #F2E9C9;
  --accent: #674BAF;
  --accent2: #3E238A;
  --cream: #FFFDF5;
  --pop1: #ffb347;
  --pop2: #ff6f61;
  --pop3: #22d3ee;
  --art-font: 'Montserrat', Arial, sans-serif;
  --body-font: 'Open Sans', Arial, sans-serif;
  --border-radius: 20px;
}

/* =============================  LAYOUT CONTAINERS  ============================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.text-section {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

/* =============  SECTION SPACING AS MANDATED  ============= */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

@media (max-width: 768px) {
  section {
    padding: 30px 8px;
    margin-bottom: 40px;
  }
}

/* =====================  HEADER / NAVIGATION CREATIVE STYLE  ==================== */
header {
  background: #fffdf5;
  box-shadow: 0 6px 30px rgba(62,35,138,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
header img[alt="Twilight Nectar"] {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: var(--art-font);
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 18px;
  border-radius: 12px;
  background: none;
  position: relative;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.main-nav a:not(.cta-btn):hover {
  background: var(--secondary);
  color: var(--accent2);
  box-shadow: 0 2px 10px rgba(var(--primary-rgb),0.06);
}
.cta-btn {
  background: linear-gradient(90deg, var(--accent), var(--pop2) 80%);
  color: #fff;
  font-family: var(--art-font);
  font-weight: 800;
  font-size: 1.08rem;
  padding: 10px 30px;
  border-radius: 32px;
  margin-left: 10px;
  box-shadow: 0 4px 20px rgba(62,35,138,0.07);
  border: 2px solid var(--accent2);
  letter-spacing: 0.04em;
  transition: background 0.18s, color 0.25s, filter 0.22s, border-color 0.15s;
  position: relative;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, var(--pop1), var(--pop2));
  color: var(--accent2);
  filter: brightness(1.05) saturate(1.15);
  border-color: var(--pop2);
  box-shadow: 0 8px 20px rgba(255,111,97,0.09);
}
/* Burger button */
.mobile-menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  align-items: center;
  justify-content: center;
  z-index: 150;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--pop2);
}
/* MOBILE NAVIGATION */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35,32,63, 0.96);
  color: #fff;
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(0.73,0.13,0.24,1.14);
  box-shadow: 0 12px 30px rgba(62,35,138,0.2);
  padding-top: 12px;
}
.mobile-menu.active {
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.6rem;
  background: transparent;
  color: #fff;
  margin: 0 20px 10px 0;
  border-radius: 16px;
  transition: color 0.15s, background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--pop1);
  background: rgba(255,179,71,0.12);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-top: 30px;
  padding-left: 20px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.33rem;
  padding: 12px 6px;
  width: 100%;
  border-radius: 10px;
  font-family: var(--art-font);
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.16s, color 0.22s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--pop1);
}
@media (max-width: 1000px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1001px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ========================  TYPOGRAPHY & HEADINGS  ======================== */
h1 {
  font-size: 2.7rem;
  color: var(--accent2);
  font-family: var(--art-font);
  margin-bottom: 10px;
  line-height: 1.18;
  letter-spacing: 0.035em;
}
h2 {
  font-size: 2rem;
  color: var(--primary);
  font-family: var(--art-font);
  line-height: 1.22;
  margin-bottom: 6px;
}
h3 {
  font-size: 1.23rem;
  font-family: var(--art-font);
  color: var(--pop2);
}
blockquote {
  border-left: 6px solid var(--accent);
  margin: 18px 0;
  padding: 10px 22px;
  background: #faeced;
  color: var(--accent2);
  font-family: var(--art-font);
  font-size: 1.08rem;
  border-radius: 8px 22px 22px 8px;
  font-style: italic;
}
@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.3rem;
  }
}

/* ================ SECTION, CARD, AND FLEX LAYOUTS (FLEXBOX ONLY!) ================== */
.card-container, .feature-grid, .benefits-grid, .service-summary-cards, .success-story-highlights, .course-overview-grid, .blog-post-previews-grid, .testimonial-slider, .testimonial-quotes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section,
  .card-container,
  .content-grid,
  .feature-grid,
  .benefits-grid,
  .testimonial-slider,
  .testimonial-quotes-grid,
  .service-summary-cards,
  .success-story-highlights,
  .course-overview-grid,
  .blog-post-previews-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.feature-item, .service-card, .course-card, .testimonial-card, .blog-post-preview, .success-story,
.latest-trends-snippets, .schedule-table, .contact-details {
  margin-bottom: 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 24px rgba(35,32,63,0.08);
  min-width: 270px;
  flex: 1 1 320px;
  border: 2px solid #f4e8fa;
  margin-bottom: 20px;
  transition: transform 0.18s cubic-bezier(0.67,0.23,0.47,1.30), box-shadow 0.23s;
}
.testimonial-card:hover {
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 6px 38px rgba(62,35,138,0.12);
}
.service-card, .course-card, .feature-item, .blog-post-preview {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 1px 10px rgba(62,35,138,0.06);
  padding: 26px 18px 22px;
  flex: 1 1 250px;
  min-width: 235px;
  max-width: 360px;
  cursor: pointer;
  transition: box-shadow 0.19s cubic-bezier(0.70,0.12,0.43,1.23), transform 0.18s;
  border: 2px solid #e4deb4;
  margin-bottom: 20px;
}
.service-card:hover, .course-card:hover, .feature-item:hover, .blog-post-preview:hover {
  box-shadow: 0 7px 24px rgba(255,179,71,0.15);
  transform: translateY(-2px) scale(1.03);
  border-color: var(--pop1);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.latest-trends-snippets {
  background: #f7f1fd;
  border-radius: 18px;
  padding: 16px 18px;
}

/* ==========================  TABLE CUSTOM STYLES  ============================= */
.schedule-table {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 13px rgba(62,35,138,0.06);
  overflow-x: auto;
  margin-bottom: 28px;
  border: 2px solid #f3edf3;
}
.schedule-table table td, .schedule-table table th {
  font-size: 1rem;
  border-bottom: 1px solid #ece6cc;
  background: #fff;
}
.schedule-table table th {
  background: #F2E9C9;
  color: var(--accent2);
}

/* ========================  FORMS, SEARCH, FILTERS ======================== */
.search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.search-bar input[type="text"] {
  border: 2px solid var(--accent2);
  border-radius: 13px;
  padding: 9px 14px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.18s;
}
.search-bar input[type="text"]:focus {
  border-color: var(--pop2);
}
.category-filters {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  font-family: var(--art-font);
}
.category-filters a {
  color: var(--accent2);
  font-weight: 600;
}

/* =========================  BUTTONS  ========================= */
button, .cta-btn, .cookie-btn {
  font-family: var(--art-font);
  border: none;
  cursor: pointer;
  outline: none;
  border-radius: 32px;
  transition: background 0.21s, color 0.19s, box-shadow 0.17s;
}
.cookie-btn {
  background: var(--accent2);
  color: #fff;
  font-size: 1.07rem;
  padding: 9px 25px;
  margin-left: 12px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(62,35,138,0.07);
}
.cookie-btn.reject {
  background: #F2E9C9;
  color: var(--accent2);
  border: 2px solid var(--accent2);
}
.cookie-btn.settings {
  background: #ffb347;
  color: #23203F;
  font-weight: 700;
}
.cookie-btn:hover, .cookie-btn:focus {
  filter: brightness(1.07);
  box-shadow: 0 4px 14px rgba(255,111,97,0.07);
}

/* ===========================  TESTIMONIALS  ============================= */
.testimonial-quotes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
  justify-content: flex-start;
}
.star-ratings {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 10px;
}
.testimonial-card p {
  font-size: 1.05rem;
  color: var(--accent2);
  margin-bottom: 7px;
  font-style: italic;
}
.testimonial-card strong {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 0;
}

/* ===============================  BLOG  =============================== */
.blog-post-previews-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  justify-content: flex-start;
}
.blog-post-preview h2 {
  color: var(--pop2);
  font-size: 1.18rem;
  margin-bottom: 8px;
}
.blog-post-preview p {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 11px;
}

/* ============================  FOOTER  ============================ */
footer {
  background: var(--primary);
  color: #fff;
  padding-top: 32px;
  padding-bottom: 10px;
}
.footer-nav {
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--pop1);
  font-family: var(--art-font);
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--pop2);
}
.footer-contact {
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 38px;
  font-size: 1rem;
}
.footer-contact img {
  height: 22px;
  margin-right: 7px;
  vertical-align: middle;
}
.footer-copy {
  font-size: 0.95rem;
  color: #e5d9c5;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .footer-contact {
    flex-direction: column;
    gap: 8px;
  }
  .footer-nav {
    gap: 10px;
  }
}

/* ================ CREATIVE ARTISTIC VISUAL DETAILS ================ */
.feature-item img, .service-card img, .course-card img {
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg,#F2E9C9 65%,#ffb347 100%);
  box-shadow: 0 1px 6px rgba(255,179,71,0.07);
  padding: 6px;
}
.feature-item h3, .service-card h3 {
  color: var(--accent2);
  margin-bottom: 8px;
  font-size: 1.12rem;
}
.feature-item p, .service-card p {
  font-size: 1rem;
  color: var(--primary);
}
.success-story-highlights .feature-item {
  border: 2px dashed var(--pop2);
  background: #f7f1fd;
}

/* Lists styling (for values/USP) */
ul, ol {
  margin: 12px 0 4px 22px;
}
ul li, ol li {
  margin-bottom: 7px;
  font-size: 1rem;
  color: var(--primary);
}

/* Location/Map info */
.location-info {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff8e8;
  color: var(--primary);
  border-radius: 10px;
  padding: 12px 20px;
  margin-bottom: 22px;
  font-size: 1.03rem;
}
.location-info img {
  width: 26px;
}

/* Contact details block */
.contact-details ul {
  margin-bottom: 12px;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}
.map {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #efeeec;
  border-radius: 9px;
  padding: 8px 14px;
  font-size: 1rem;
  margin-top: 12px;
  font-family: var(--body-font);
}
.map img {
  height: 22px;
}

/* FAQ link highlight */
a[href*="FAQ"], a[href*="faq"] {
  color: var(--pop2);
  font-weight: 700;
  text-decoration: underline dotted;
}
a[href*="FAQ"]:hover, a[href*="faq"]:hover {
  color: var(--accent2);
}

/* =====================  COOKIE CONSENT BANNER & MODAL  ===================== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 5000;
  background: rgba(252, 249, 236, 0.95);
  color: var(--primary);
  padding: 28px 14px 22px 28px;
  box-shadow: 0 -7px 40px rgba(62,35,138,0.09);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
  justify-content: space-between;
  font-size: 1rem;
  font-family: var(--body-font);
  animation: cookieAnimIn 0.45s cubic-bezier(.69,-0.16,.29,1.32);
}
@keyframes cookieAnimIn {
  0% { transform: translateY(70px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner .cookie-btn {
  margin-top: 8px;
}
.cookie-preferences-modal {
  position: fixed;
  z-index: 5100;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(35,32,63,0.57);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.29s cubic-bezier(.69,-0.16,.29,1.32);
}
.cookie-preferences-modal.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  color: var(--primary);
  border-radius: 21px;
  max-width: 390px;
  width: 92vw;
  padding: 32px 26px;
  box-shadow: 0 8px 32px rgba(62,35,138,0.18);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: cookieModalIn 0.4s cubic-bezier(.69,-0.16,.29,1.32);
}
@keyframes cookieModalIn {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal-content h2 {
  color: var(--accent2);
  font-family: var(--art-font);
  margin-bottom: 8px;
  font-size: 1.22rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 13px;
}
.cookie-category input[type="checkbox"] {
  width: 22px;
  height: 22px;
}
.cookie-category label {
  font-size: 1rem;
}
.cookie-category .always-on {
  font-weight: 700;
  color: var(--pop1);
}
.cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 1.75rem;
  color: var(--accent2);
  background: none;
  border: none;
  border-radius: 7px;
  transition: background 0.18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #f7f1fd;
}

/* =======================  MEDIA QUERIES FOR RESPONSIVENESS  ======================= */
@media (max-width: 1060px) {
  .container {
    max-width: 97vw;
    padding: 0 8px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.4rem;
  }
  .footer-contact {
    font-size: 0.95rem;
  }
  th, td {
    padding: 7px 8px;
    font-size: 0.96rem;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}.mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 560px) {
  .testimonial-card, .service-card, .course-card, .feature-item, .blog-post-preview {
    min-width: 93vw;
    max-width: 100vw;
    font-size: 0.97rem;
  }
  .blog-post-preview h2 {
    font-size: 1rem;
  }
}

/* ================ ANIMATIONS & HOVER EFFECTS FOR CREATIVE ARTISTIC FEEL ================ */
.cta-btn, .service-card, .course-card, .feature-item, .blog-post-preview {
  transition: box-shadow 0.18s cubic-bezier(0.6,0.19,0.44,1.08), transform 0.12s, background 0.35s;
}
.cta-btn {
  box-shadow: 0 4px 20px rgba(62,35,138,0.07);
}
.cta-btn:focus {
  outline: 2px solid #674baf44;
  outline-offset: 2px;
}

/* =============== MICROINTERACTIONS FOR BUTTONS & MENU =============== */
button:active, .cta-btn:active, .cookie-btn:active {
  transform: scale(0.98);
}

/* =============== Z-INDEX SANITY FOR OVERLAYS =============== */
.mobile-menu, .cookie-consent-banner, .cookie-preferences-modal, .cookie-modal-content {
  z-index: 5000;
}

/* =============== ICON SUCCESS PAGE (THANK YOU) =============== */
.text-section img[alt="Sukces"] {
  width: 58px;
  margin-bottom: 16px;
}

/* =============== MISC: Hide scroll when menu or modal active =============== */
body.mobile-menu-open, body.cookie-modal-open {
  overflow: hidden;
}
