/* --- RESET & BASE STYLES --- */
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 {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  background: #F6F8FA;
  color: #27325A;
  line-height: 1.7;
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}
a {
  color: #FFB347;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #d48e21;
  outline: none;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
ul {
  list-style: disc;
}
ol {
  list-style: decimal;
}

/* --- CONTAINER & WRAPPER --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* --- TYPOGRAPHY HIERARCHY --- */
h1, .hero h1, .thank-you-hero h1 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 16px;
  color: #27325A;
  letter-spacing: 0.02em;
}

h2 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #27325A;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

h3, .policy h2, .contact h2 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #27325A;
}

h4 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.06rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: #27325A;
}
p, li, blockquote {
  font-size: 1rem; /* 16px */
  color: #2d355a;
}

.hero-sub, .subheadline {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.22rem;
  color: #27325A;
  margin-bottom: 24px;
}

/* --- BUTTON & CTAS --- */
.cta-btn, .cookie-btn, .mobile-menu-close {
  display: inline-block;
  background: #FFB347;
  color: #27325A;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  padding: 14px 32px;
  border-radius: 26px;
  border: none;
  box-shadow: 0 2px 8px 0 rgba(39,50,90,0.07);
  cursor: pointer;
  outline: none;
  transition: background 0.18s, color 0.18s, transform 0.15s, box-shadow 0.16s;
  margin-top: 10px;
  margin-bottom: 10px;
}
.cta-btn:hover, .cta-btn:focus, .cookie-btn:hover, .cookie-btn:focus {
  background: #ffd381;
  color: #27325A;
  box-shadow: 0 4px 18px 2px rgba(255,179,71,0.12);
  transform: translateY(-3px) scale(1.04);
}

button:active {
  transform: scale(0.97);
}

/* --- HEADER NAVIGATION --- */
header {
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(39,50,90,0.06);
  padding: 0;
}
header {
  position: relative;
  z-index: 101;
}
header > .logo {
  display: flex;
  align-items: center;
  padding: 18px 0 18px 0;
}
header .logo img {
  height: 42px;
  border-radius: 50%;
  background: #FFB34712;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-left: 24px;
}
header nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  color: #27325A;
  background: none;
  padding: 8px 16px;
  border-radius: 16px;
  font-size: 1rem;
  transition: background 0.15s, color 0.18s;
}
header nav a:hover, header nav a:focus {
  background: #FFB347;
  color: #27325A;
}

header {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 8px;
  min-height: 76px;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #27325A;
  margin-left: auto;
  cursor: pointer;
  z-index: 201;
  padding: 0 14px;
  transition: color 0.17s, background 0.17s;
  border-radius: 8px;
  height: 48px;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #FFB34722;
  color: #FFB347;
}

.cta-btn {
  margin-left: 20px;
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(251,244,232,0.96);
  box-shadow: 0 0 32px 0 rgba(39,50,90,0.12);
  z-index: 3000;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.6,.04,.4,.98);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: #27325A;
  font-size: 2.2rem;
  padding: 12px 18px;
  margin-top: 15px;
  margin-right: 15px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s, color 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #ffb34722;
  color: #ff8d00;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
  padding: 32px 24px;
  margin-top: 16px;
  width: 100vw;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.28rem;
  font-weight: 600;
  color: #27325A;
  background: #fff;
  padding: 12px 24px;
  border-radius: 20px;
  width: 100%;
  box-shadow: 0 2px 7px 0 rgba(255,179,71,0.09);
  transition: background 0.12s, color 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFB347;
  color: #27325A;
}

@media (max-width: 1020px) {
  header nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 1021px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
  header {
    flex-direction: row;
    align-items: center;
  }
  header .logo {
      margin-right: 6px;
  }
  header nav {
      margin-right: 8px;
  }
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(115deg, #FFB347 25%, #F6F8FA 80%);
  border-radius: 0 0 36px 36px;
  min-height: 330px;
  display: flex;
  align-items: center;
  margin-bottom: 48px;
  box-shadow: 0 8px 36px 0 rgba(255,179,71,0.12);
}
.hero .container {
  display: flex;
  align-items: stretch;
  min-height: 330px;
}
.hero .content-wrapper {
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  padding: 32px 0;
}

.thank-you-hero {
  background: linear-gradient(100deg, #FFB347 22%, #F6F8FA 78%);
  border-radius: 0 0 36px 36px;
  min-height: 300px;
  display: flex;
  align-items: center;
  margin-bottom: 48px;
  box-shadow: 0 6px 32px 0 rgba(255,179,71,0.11);
}
.thank-you-hero .container {
  display: flex;
  align-items: stretch;
  min-height: 200px;
}
.thank-you-hero .content-wrapper {
  align-items: flex-start;
  justify-content: center;
}
.subheadline {
  margin-bottom: 30px;
  margin-top: 4px;
}

/* --- SECTION LAYOUTS --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 8px 0 rgba(39,50,90,0.06);
  padding: 28px 22px;
  transition: box-shadow 0.14s, transform 0.13s;
}
.card:hover {
  box-shadow: 0 8px 34px 0 rgba(255,179,71,0.09);
  transform: translateY(-2px) scale(1.01);
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 20px;
  border-radius: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px 0 rgba(39,50,90,0.09);
  max-width: 420px;
  flex: 1 1 290px;
  transition: box-shadow 0.14s;
}
.testimonial-card blockquote {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.12rem;
  color: #2d355a;
  font-weight: 500;
  margin-bottom: 10px;
  quotes: '“' '”' '‘' '’';
}
.testimonial-card p {
  font-size: 0.97rem;
  color: #27325A;
}

/* Testimonial Slider Layout */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}

/* --- FEATURES --- */
.features {
  margin-bottom: 60px;
}
.feature-grid, .feature-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 20px;
  margin-top: 14px;
}
.feature-grid li, .feature-icons li {
  background: #fff;
  border-radius: 22px;
  padding: 24px 18px 18px 18px;
  min-width: 200px;
  box-shadow: 0 2px 7px 0 rgba(39,50,90,0.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.15s;
  margin-bottom: 20px;
}
.feature-grid li img, .feature-icons li img {
  height: 38px;
  margin-bottom: 8px;
  background: #FFB34722;
  padding: 5px;
  border-radius: 12px;
}
.feature-grid li:hover, .feature-icons li:hover {
  box-shadow: 0 7px 26px 0 rgba(255,179,71,0.12);
  background: #FFF6E7;
}
.feature-grid li h3, .feature-icons li h4 {
  margin: 0 0 7px 0;
  font-weight: 700;
  color: #27325A;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}

/* --- TEAM SECTION (about.html) --- */
.teacher-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 20px;
  margin-top: 6px;
}
.teacher {
  background: #fff;
  border-radius: 22px;
  padding: 22px 18px 18px 18px;
  flex: 1 1 250px;
  min-width: 240px;
  box-shadow: 0 2px 10px 0 rgba(39,50,90,0.09);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  transition: box-shadow 0.14s, background 0.13s;
}
.teacher img {
  height: 44px;
  margin-bottom: 5px;
  background: #FFB34722;
  padding: 6px;
  border-radius: 12px;
}
.teacher:hover {
  box-shadow: 0 8px 24px 0 rgba(255,179,71,0.13);
  background: #FFF6E7;
}
.values-highlight {
  background: #FFB34715;
  border-radius: 16px;
  padding: 18px 18px 18px 18px;
  font-size: 1.1rem;
  color: #27325A;
  box-shadow: 0 1px 5px 0 rgba(255,179,71,0.10);
  margin-top: 8px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- COURSES (tanfolyamok.html) --- */
.course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 8px;
  margin-bottom: 20px;
}
.course-item {
  background: #fff;
  border-radius: 22px;
  padding: 26px 20px 18px 20px;
  box-shadow: 0 2px 10px 0 rgba(39,50,90,0.09);
  flex: 1 1 260px;
  min-width: 240px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.1s, background 0.1s;
}
.course-item img {
  height: 38px;
  margin-bottom: 8px;
  background: #FFB34722;
  padding: 5px;
  border-radius: 12px;
}
.course-item:hover {
  box-shadow: 0 8px 24px 0 rgba(255,179,71,0.19);
  background: #FFF6E7;
}
.course-category {
  background: #FFB34726;
  color: #27325A;
  font-size: 0.95rem;
  padding: 4px 15px;
  border-radius: 17px;
  margin-top: 10px;
  font-weight: 500;
  display: inline-block;
}

/* --- PRICING TABLE (araink.html) --- */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px 0 rgba(39,50,90,0.07);
}
.pricing-table th, .pricing-table td {
  padding: 18px 14px;
  text-align: left;
  font-size: 1.01rem;
  border-bottom: 1px solid #FFB34726;
  color: #27325A;
}
.pricing-table thead th {
  background: #FFB347;
  color: #27325A;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: bold;
  font-size: 1.13rem;
  border-bottom: none;
}
.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.short-description.text-section {
  background: #FFB34711;
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 1px 5px 0 rgba(255,179,71,0.08);
  margin-top: 18px;
  margin-bottom: 14px;
}

/* --- NEWS FEED (hirek.html) --- */
.news-feed {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.news-feed article {
  background: #fff;
  border-radius: 18px;
  padding: 22px 18px 17px 18px;
  box-shadow: 0 2px 8px 0 rgba(39,50,90,0.08);
  flex: 1 1 260px;
  min-width: 250px;
  margin-bottom: 20px;
  transition: box-shadow 0.15s, background 0.13s;
}
.news-feed article:hover {
  box-shadow: 0 8px 26px 0 rgba(255,179,71,0.13);
  background: #FFF6E7;
}
.events {
  background: #FFB34713;
  border-radius: 16px;
  padding: 18px 18px;
  margin-top: 1em;
  box-shadow: 0 1px 5px 0 rgba(255,179,71,0.10);
}
.events h2 {
  margin-bottom: 10px;
}

/* --- CONTACT --- */
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 36px;
}
.text-section {
  flex: 1 1 300px;
  min-width: 240px;
}
.map-placeholder {
  flex: 1 1 220px;
  background: #FFB34710;
  border-radius: 14px;
  min-height: 120px;
  display: flex;
  align-items: center;
  padding: 20px;
  font-style: italic;
  color: #7D868D;
  font-size: 0.97rem;
  box-shadow: 0 1px 4px 0 rgba(39,50,90,0.08);
}

/* --- POLICY PAGES --- */
.policy .text-section {
  background: #fff;
  padding: 24px 20px;
  margin-bottom: 16px;
  border-radius: 16px;
  box-shadow: 0 1px 6px 0 rgba(255,179,71,0.09);
  font-size: 1rem;
}
.policy h1 {
  font-size: 2rem;
}
.policy h2 {
  font-size: 1.2rem;
  margin-top: 12px;
}

/* --- CALL TO ACTION SECTIONS --- */
.cta {
  background: #FFB347;
  border-radius: 22px;
  box-shadow: 0 4px 20px 0 rgba(39,50,90,0.09);
  min-height: 70px;
  display: flex;
  align-items: center;
  margin-bottom: 50px;
}
.cta .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 14px;
}
.cta h2 {
  color: #27325A;
  font-size: 1.4rem;
}

/* --- FOOTER --- */
footer {
  background: #27325A;
  color: #fff;
  padding: 36px 0 14px 0;
  margin-top: 64px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.footer-menu a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #FFB347;
  font-size: 1.01rem;
  font-weight: 500;
  border-radius: 12px;
  padding: 6px 12px;
  transition: background 0.16s, color 0.17s;
}
.footer-menu a:hover, .footer-menu a:focus {
  background: #FFB347;
  color: #27325A;
}
.copyright {
  font-size: 0.97rem;
  color: #FFF6E7;
  margin-top: 10px;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background: #FFF6E7;
  color: #27325A;
  box-shadow: 0 -2px 28px 0 rgba(39,50,90,0.08);
  padding: 20px 18px;
  z-index: 4000;
  gap: 24px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.01rem;
  opacity: 1;
  transition: opacity 0.23s, transform 0.24s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-btn {
  margin: 0 10px;
}
.cookie-banner .cookie-btn {
  min-width: 120px;
  padding: 10px 20px;
  font-size: 1rem;
  background: #FFB347;
  color: #27325A;
  border-radius: 22px;
  border: none;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  box-shadow: 0 1px 5px rgba(255,179,71,0.10);
  transition: background 0.16s, color 0.15s, box-shadow 0.14s;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #ffd381;
  color: #27325A;
  box-shadow: 0 3px 16px rgba(255,179,71,0.18);
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(28,27,30, 0.38);
  z-index: 4100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #FFF6E7;
  border-radius: 24px;
  box-shadow: 0 8px 38px 0 rgba(39,50,90,0.21);
  max-width: 420px;
  width: 90vw;
  padding: 34px 28px 22px 28px;
  font-family: 'Roboto', Arial, sans-serif;
  color: #27325A;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: popin 0.31s cubic-bezier(.65,.05,.36,1.15);
}
.cookie-modal h3 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.27rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #27325A;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.cookie-category input[type="checkbox"] {
  accent-color: #FFB347;
  width: 21px; height: 21px;
  border-radius: 8px;
}
.cookie-modal .button-row {
  display: flex;
  gap: 18px;
  margin-top: 14px;
}
@keyframes popin {
  0% { opacity: 0; transform: scale(0.79); }
  95% { opacity: 1; transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1); }
}

/* --- RESPONSIVE/TABLET & MOBILE --- */
@media (max-width: 1020px) {
  .container {
    padding: 0 10px;
    max-width: 99vw;
  }
  .section, .features, .cta, .hero, .thank-you-hero {
    padding-left: 0;
    padding-right: 0;
  }
  .card-container, .feature-grid, .feature-icons, .teacher-list, .course-list, .news-feed {
    gap: 16px;
  }
  .card, .teacher, .feature-grid li, .feature-icons li, .course-item, .news-feed article {
    padding-left: 12px;
    padding-right: 12px;
    min-width: 85vw;
  }
  .testimonial-slider {
    gap: 16px;
    flex-direction: column;
  }
  footer .container {
    gap: 12px;
    padding: 0 8px;
  }
  .footer-menu {
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.92rem;
  }
  .contact-details {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
  }
}
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  .hero, .thank-you-hero {
    min-height: 170px;
    border-radius: 0 0 22px 22px;
    margin-bottom: 34px;
  }
  .hero .container, .thank-you-hero .container {
    min-height: 100px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .section {
    margin-bottom: 38px;
    padding: 24px 6px;
  }
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 18px; }
  .card-container, .feature-grid, .feature-icons, .teacher-list, .course-list, .news-feed {
    flex-direction: column;
    gap: 14px;
  }
  .card, .feature-grid li, .feature-icons li, .teacher, .course-item, .news-feed article {
    min-width: unset;
    width: 100%;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 14px;
  }
  .footer-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .cta {
    border-radius: 14px;
    margin-bottom: 28px;
  }
  .cookie-modal {
    padding: 13vw 4vw 18px 4vw;
    min-width: unset;
  }
}

/* --- UTILITY --- */
.hide { display: none !important; }

/* --- ANIMATION HELPERS --- */
@media (prefers-reduced-motion: no-preference) {
  .cta-btn, .card, .teacher, .feature-grid li, .feature-icons li, .testimonial-card, .news-feed article, .course-item {
    transition: box-shadow 0.17s, background 0.13s, color 0.12s, transform 0.14s;
  }
}
