/* ==========================================================================
   CSS RESET & NORMALIZE (mobile first)
   ========================================================================== */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background-color: #ffffff;
  color: #223568;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
input, button, textarea, select {
  font: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}

/* ==========================================================================
   BRAND VARIABLES (with fallback)
   ========================================================================== */
:root {
  --brand-primary: #223568;
  --brand-secondary: #F8E559;
  --brand-accent: #E94F37;
  --brand-bg: #fff;
  --brand-text: #223568;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/* ==========================================================================
   TYPOGRAPHY & GENERAL SCALE
   ========================================================================== */
body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--brand-bg);
  color: var(--brand-text);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--brand-primary);
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.1;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  text-transform: uppercase;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-transform: uppercase;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, li {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 12px;
  color: #1a2647;
}
.text-section p,
.text-section ul li {
  color: #1a2647;
}
strong {
  font-weight: 700;
}

/* ==========================================================================
   GLOBAL CONTAINER AND LAYOUT STRUCTURE
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.section:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   HEADER & MAIN NAV
   ========================================================================== */
header {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 8px 32px 0 rgba(34, 53, 104, 0.10);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header a img {
  height: 38px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  color: #fff;
}
header nav a:hover,
header nav a:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
.cta-btn {
  background: var(--brand-accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  border: none;
  border-radius: 24px;
  padding: 12px 32px;
  margin-left: 16px;
  box-shadow: 0 2px 8px rgba(233,79,55,0.07);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  text-transform: uppercase;
  display: inline-block;
  position: relative;
  z-index: 1;
}
.cta-btn:hover,
.cta-btn:focus {
  background: #ad382a;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 24px rgba(233,79,55,0.14);
}

/* BURGER BUTTON */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  color: #fff;
  background: none;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--brand-accent);
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Hide desktop nav on mobile  */
@media (max-width: 1023px) {
  header nav {
    display: none;
  }
  .cta-btn {
    margin-left: 0;
    font-size: 1rem;
    padding: 10px 18px;
    border-radius: 20px;
  }
}

/* ==========================================================================
   MOBILE MENU (Overlay Panel)
   ========================================================================== */
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34, 53, 104, 0.98);
  z-index: 1010;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
  pointer-events: none;
  opacity: 0;
}

.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 0 8px 40px rgba(34, 53, 104, 0.30);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2.1rem;
  color: #fff;
  background: none;
  align-self: flex-start;
  margin: 24px 0 0 24px;
  border: none;
  cursor: pointer;
  transition: color 0.18s;
  z-index: 1;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--brand-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 48px;
  padding: 0 32px;
  width: 100vw;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 13px 20px;
  border-radius: 10px;
  width: fit-content;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  background: linear-gradient(142deg, #F8E559 78%, #fff 100%);
  padding: 52px 0 50px 0;
  display: flex;
  align-items: center;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 38px;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 700px;
}
.hero h1 {
  color: var(--brand-primary);
  font-size: 2.25rem;
  line-height: 1.08;
  text-align: center;
  text-shadow: 2px 4px 0 #F8E559;
  margin-bottom: 0;
}
.hero h2 {
  font-size: 1.25rem;
  color: #1a2647;
  text-align: center;
  max-width: 520px;
}
.hero .cta-btn {
  font-size: 1.12rem;
  margin-top: 8px;
}

@media (min-width: 800px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  .hero .content-wrapper {
    gap: 32px;
  }
}

/* ==========================================================================
   FEATURES / USPs (Geometric Styling)
   ========================================================================== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 20px;
  justify-content: flex-start;
}
.features-grid li {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 24px rgba(34,53,104,0.08);
  border: 1.5px solid #F8E559;
  min-width: 220px;
  flex: 1 1 220px;
  max-width: 320px;
  padding: 32px 22px 22px 22px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  transition: transform 0.19s, box-shadow 0.19s;
}
.features-grid li img {
  height: 38px;
  width: 38px;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 8px rgba(232, 79, 55, 0.08));
}
.features-grid li h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand-primary);
}
.features-grid li p {
  font-size: 1rem;
  color: #1a2647;
}
.features-grid li:hover,
.features-grid li:focus {
  transform: translateY(-4px) scale(1.022);
  box-shadow: 0 8px 40px rgba(232, 79, 55, 0.16);
  z-index: 2;
}

/* ==========================================================================
   TEAM & LIST STYLES (About, Cursos, Profesores)
   ========================================================================== */
.team-list,
.course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
}
.team-list li,
.course-list li,
.teacher-profile {
  background: #F8E559;
  border-radius: 17px 17px 4px 17px;
  box-shadow: 0 3px 16px rgba(34,53,104,0.09);
  padding: 30px 20px 22px 28px;
  min-width: 230px;
  max-width: 350px;
  flex: 1 1 240px;
  color: var(--brand-primary);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.16s;
  border: 2px solid var(--brand-accent);
}
.team-list li:hover,
.course-list li:hover,
.teacher-profile:hover {
  transform: translateY(-2px) scale(1.014);
  box-shadow: 0 8px 36px 0 rgba(233, 79, 55,0.11);
  z-index: 2;
}
.team-list li h3,
.teacher-profile h3 {
  margin-bottom: 8px;
  text-transform: uppercase;
}
.team-list li ul,
.teacher-profile ul,
.text-section ul {
  list-style: square;
  margin-left: 16px;
}
.team-list li ul li,
.teacher-profile ul li,
.text-section ul li {
  margin-bottom: 8px;
  color: #1a2647;
  font-size: 0.98rem;
  text-align: left;
}

/* ==========================================================================
   GENERIC CARD & GRID LAYOUTS
   ========================================================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  max-width: 370px;
  min-width: 220px;
  background: #fff;
  border-radius: 13px 13px 4px 13px;
  box-shadow: 0 2px 8px rgba(34,53,104,0.10);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.16s, transform 0.16s;
}
.card:hover, .card:focus {
  box-shadow: 0 6px 28px 0 rgba(34,53,104,0.14);
  transform: translateY(-2px) scale(1.018);
  z-index: 2;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 26px 24px 22px 24px;
}

.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) {
  .content-grid, .card-container, .team-list, .features-grid, .course-list {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* ==========================================================================
   TESTIMONIAL CARD
   ========================================================================== */
.testimonial-card {
  background: #fff;
  border: 2.5px solid #223568;
  color: #223568;
  border-radius: 14px 8px 14px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px 0 rgba(34,53,104,0.09);
  transition: box-shadow 0.14s, border-color 0.14s;
  position: relative;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 6px 36px 0 rgba(232,79,55,0.10);
  border-color: var(--brand-accent);
}
.testimonial-card p {
  color: #1a2647;
  font-size: 1rem;
  margin-bottom: 10px;
}
.testimonial-details span {
  color: var(--brand-accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.7px;
  margin-top: 6px;
  display: block;
  text-transform: uppercase;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta {
  background: var(--brand-primary);
  color: #fff;
  padding: 40px 20px 36px 20px;
  text-align: center;
  border-radius: 22px 22px 0 22px;
  margin-bottom: 56px;
  box-shadow: 0 2px 16px rgba(34,53,104,0.09);
}
.cta h2 {
  color: #fff;
  margin-bottom: 12px;
}
.cta .cta-btn {
  margin-top: 14px;
  background: var(--brand-secondary);
  color: var(--brand-primary);
  font-size: 1.1rem;
  text-transform: uppercase;
  border-radius: 18px;
}
.cta .cta-btn:hover, .cta .cta-btn:focus {
  background: var(--brand-accent);
  color: #fff;
}

/* ==========================================================================
   BLOG CARD LISTS / LEGAL / CATEGORY
   ========================================================================== */
.blog-list ul {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 20px;
}

.blog-list ul li {
  background: #fff;
  border-radius: 8px 24px 8px 24px;
  padding: 30px 22px 22px 32px;
  border-left: 8px solid var(--brand-primary);
  border-right: 3px solid var(--brand-accent);
  margin-bottom: 12px;
  box-shadow: 0 3px 12px 0 rgba(34,53,104,0.06);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.blog-list ul li:hover,
.blog-list ul li:focus {
  border-left-color: var(--brand-accent);
  box-shadow: 0 8px 24px 0 rgba(233, 79, 55, 0.10);
}
.categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.categories ul li {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 7px 18px;
  border-radius: 18px;
  font-weight: 600;
  border: 1.5px solid var(--brand-accent);
}

.legal-text {
  background: #fff;
  border-radius: 18px;
  padding: 40px 24px;
  box-shadow: 0 1.5px 16px 0 rgba(34,53,104,0.07);
  margin-bottom: 50px;
}
.legal-text h1, .legal-text h2 {
  color: var(--brand-primary);
}
.legal-text ul {
  margin-left: 20px;
  margin-bottom: 20px;
  list-style-type: disc;
}
.legal-text ul li {
  color: #223568;
}

/* ==========================================================================
   CONTACT & MAP
   ========================================================================== */
.contact-section {
  background: #F8E559;
  border-radius: 0 0 38px 38px;
  padding-top: 44px;
  padding-bottom: 44px;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 13px;
  font-size: 1rem;
  margin-bottom: 18px;
  color: #1a2647;
}
.contact-info p {
  display: flex;
  align-items: center;
  font-size: 1rem;
  gap: 10px;
  color: #1a2647;
}
.contact-info img {
  width: 22px;
}

.map {
  background: #fff;
  border: 1.5px solid var(--brand-accent);
  padding: 18px 18px;
  margin-top: 14px;
  border-radius: 13px 28px 13px 4px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: #223568;
  color: #fff;
  padding-top: 46px;
  padding-bottom: 18px;
}
footer p {
  color: white !important;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 14px;
  align-items: flex-start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-width: 250px;
}
.footer-brand img {
  width: 65px;
  margin-bottom: 4px;
}
.footer-brand p {
  color: #fff;
  font-size: .95rem;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-menu a {
  color: #F8E559;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 3px 0px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.footer-menu a:focus, .footer-menu a:hover {
  background: #fff;
  color: var(--brand-primary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
}
.contact-info {
  gap: 6px;
}
.social-links {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 3px;
}
.social-links a {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 50%;
  padding: 7px;
  transition: background 0.18s, filter 0.18s;
}
.social-links a:hover, .social-links a:focus {
  background: var(--brand-secondary);
  filter: drop-shadow(0px 1.5px 8px rgba(233,79,55,0.23));
}
.social-links img {
  width: 23px;
}
.footer-note {
  text-align: center;
  margin-top: 26px;
  color: #fff;
  font-size: 0.93rem;
  opacity: .65;
}
@media (max-width: 900px) {
  .footer-wrapper {
    flex-direction: column;
    gap: 36px;
    align-items: flex-start;
  }
}

/* ==========================================================================
   COOKIE CONSENT BANNER & MODAL
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: #223568;
  border-top: 4px solid var(--brand-accent);
  box-shadow: 0 -6px 34px 0 rgba(34,53,104,0.10);
  z-index: 2000;
  padding: 26px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: cookieSlideUp 0.48s cubic-bezier(.37,.81,.59,1.01);
}
@keyframes cookieSlideUp {
  from { opacity: 0; transform: translateY(70%); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  color: #223568;
  text-align: center;
  font-size: 1rem;
}
.cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-btns button {
  font-family: var(--font-display);
  padding: 8px 24px;
  font-size: 1rem;
  border-radius: 16px;
  border: 2px solid transparent;
  font-weight: bold;
  margin: 0;
  transition: background .21s, color .21s, border .21s, transform .18s;
}
.cookie-btns .cookie-accept {
  background: var(--brand-accent);
  color: #fff;
  border-color: var(--brand-accent);
}
.cookie-btns .cookie-accept:hover,
.cookie-btns .cookie-accept:focus {
  background: #ad382a;
  border-color: #ad382a;
  transform: scale(1.06);
}
.cookie-btns .cookie-reject {
  background: #fff;
  color: var(--brand-accent);
  border-color: var(--brand-accent);
}
.cookie-btns .cookie-reject:hover,
.cookie-btns .cookie-reject:focus {
  background: var(--brand-accent);
  color: #fff;
  transform: scale(1.06);
}
.cookie-btns .cookie-settings {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  border-color: var(--brand-secondary);
}
.cookie-btns .cookie-settings:hover,
.cookie-btns .cookie-settings:focus {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-accent);
  transform: scale(1.06);
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(34,53,104,0.55);
  z-index: 2050;
  display: none;
  justify-content: center;
  align-items: center;
  transition: opacity 0.22s;
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal-content {
  background: #fff;
  color: var(--brand-primary);
  min-width: 290px;
  max-width: 95vw;
  border-radius: 22px 13px 13px 22px;
  box-shadow: 0 24px 48px 0 rgba(34,53,104,0.14);
  padding: 36px 28px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  animation: modalIn 0.44s cubic-bezier(.37,.81,.59,1.01);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.88); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal-content h2 {
  margin-bottom: 6px;
}
.cookie-modal-content .cookie-options {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--brand-accent);
  width: 22px;
  height: 22px;
}
.cookie-category label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}
.cookie-modal-content .btns {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  justify-content: flex-end;
}
.cookie-modal-content .btns button {
  padding: 8px 18px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: var(--brand-accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.18s, border 0.18s;
}
.cookie-modal-content .btns button.close-modal {
  background: #fff;
  color: var(--brand-primary);
  border-color: var(--brand-accent);
}
.cookie-modal-content .btns button.close-modal:hover {
  background: var(--brand-accent);
  color: #fff;
}

@media (max-width: 600px) {
  .cookie-modal-content {
    min-width: 0;
    padding: 23px 8px 22px 10px;
  }
}

/* ==========================================================================
   ACCESSIBILITY: FOCUS OUTLINES & INTERACTIVE
   ========================================================================== */
a:focus, .cta-btn:focus, button:focus, input:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2.5px solid var(--brand-accent);
  outline-offset: 2px;
}

/* ==========================================================================
   GEOMETRIC STRUCTURING: Visual Patterns
   ========================================================================== */
/* Subtle angular backgrounds for sections */
.section, .content-wrapper, .contact-section, .legal-text, .cta {
  background-clip: padding-box;
  position: relative;
  overflow: visible;
}
.section::before, .cta::before {
  content: "";
  position: absolute;
  top: -21px;
  left: -18px;
  width: 60px;
  height: 60px;
  background: var(--brand-accent);
  opacity: .10;
  border-radius: 18px 0 20px 0;
  transform: rotate(16deg);
  z-index: 0;
  pointer-events: none;
}
.section::after, .cta::after {
  content: "";
  position: absolute;
  bottom: -26px;
  right: -13px;
  width: 40px;
  height: 40px;
  background: var(--brand-secondary);
  opacity: .18;
  border-radius: 0 22px 0 22px;
  transform: rotate(-16deg);
  z-index: 0;
  pointer-events: none;
}

/* Geometric buttons and cards on hover */
.cta-btn, .card, .testimonial-card, .features-grid li, .team-list li, .teacher-profile, .course-list li {
  box-shadow: 0 2px 8px 0 rgba(34,53,104,0.07);
  transition: box-shadow 0.2s, background 0.2s;
}
.cta-btn:active, .features-grid li:active, .card:active {
  transform: scale(.99);
}

/* ==========================================================================
   RESPONSIVE RULES (Mobile-first, breakpoints)
   ========================================================================== */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  .container {
    padding: 0 8px;
  }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }
  .section, .cta, .legal-text, .contact-section {
    padding: 26px 6px;
    margin-bottom: 36px;
    border-radius: 10px;
  }
  .features-grid li, .team-list li, .card, .testimonial-card, .teacher-profile, .course-list li {
    max-width: 100%;
    padding: 18px 13px;
    border-radius: 12px;
  }
  .hero {
    padding-top: 28px; padding-bottom: 36px;
  }
}

/* ==========================================================================
   MICRO-INTERACTIONS & SMOOTH TRANSITIONS
   ========================================================================== */
.card, .features-grid li, .cta-btn, .testimonial-card, .footer-menu a, .categories ul li, .mobile-nav a {
  transition: box-shadow 0.17s, border 0.18s, background 0.22s, color 0.22s, transform 0.14s;
}

/* END OF CSS */
