/* ===== 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 { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: #28225A;
  background: linear-gradient(160deg, #E3D8FF 0%, #fff 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: #28225A; text-decoration: none; transition: color 0.2s; }
a:focus { outline: 2px solid #F5A623; outline-offset: 2px; }

/* ===== BRAND FONTS ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #28225A;
}
h1 { font-size: 2.5rem; line-height: 1.12; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 12px; }
h3 { font-size: 1.25rem; margin-bottom: 8px; }
.subtitle { font-size: 1.125rem; color: #524a89; margin-bottom: 1.5em; }
@media (max-width: 500px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1rem; }
}

p, ul, ol, dl, blockquote {
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.6;
}
strong { color: #28225A; }

ul, ol {
  padding-left: 24px;
}
li { margin-bottom: 8px; }
blockquote {
  background: #fff;
  border-left: 6px solid #F5A623;
  padding: 20px 24px;
  font-size: 1.1rem;
  font-style: italic;
  color: #11102b;
  border-radius: 0 14px 14px 0;
  margin-bottom: 16px;
}

/* ===== CONTAINER & LAYOUT UTILS ===== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

@media (min-width: 900px) {
  .content-wrapper {
    gap: 36px;
  }
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(40,34,90,0.08);
  padding: 26px 22px;
  flex: 1 1 280px;
  min-width: 220px;
  transition: box-shadow 0.25s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(245,166,35,0.24);
}
.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;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #f5f4fb;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 2px 12px rgba(40,34,90,0.06);
  margin-bottom: 20px;
  max-width: 520px;
}
.testimonial-card blockquote {
  background: none;
  border-left: 5px solid #F5A623;
  color: #28225A;
  margin-bottom: 0;
  font-size: 1rem;
}
.testimonial-meta {
  color: #28225A;
  font-size: 0.98rem;
  margin-top: 4px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==== Feature Grid on Home ==== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  list-style: none;
}
.feature-grid li {
  flex: 1 1 210px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(40,34,90,0.08);
  padding: 24px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.2s, transform 0.2s;
  min-width: 220px;
}
.feature-grid li:hover {
  box-shadow: 0 10px 32px rgba(40,34,90,0.17), 0 0 0 2px #e3d8ff;
  transform: translateY(-4px) scale(1.02);
}
.feature-grid img { width: 48px; height: 48px; }

/* ==== Course List Grid ==== */
.course-list-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
}
.course-list-grid li {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(40,34,90,0.08);
  padding: 22px 18px;
  flex: 1 1 240px;
  min-width: 200px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.course-list-grid li:hover {
  box-shadow: 0 8px 26px rgba(245,166,35,0.18);
  transform: translateY(-3px) scale(1.01);
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(90deg,#E3D8FF 0%, #fff 70%, #fff 100%);
  padding: 80px 0 48px 0;
  margin-bottom: 52px;
}
.hero-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-section .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 28px;
}

.cta-section {
  background: linear-gradient(90deg,#28225A 0%, #524a89 100%);
  color: #fff;
  margin-bottom: 0;
}
.cta-section .content-wrapper {
  align-items: center;
  text-align: center;
}
.accent-bg {
  background: linear-gradient(90deg,#F5A623 0%, #E3D8FF 50%, #fff 100%);
  color: #28225A;
}

/* ========= BUTTONS & CTA ========= */
.cta, button, .primary, .secondary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 14px 32px;
  font-size: 1.1rem;
  border-radius: 28px;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(245,166,35,0.09);
  transition: background 0.18s, color 0.18s, box-shadow 0.22s;
  background: #F5A623;
  color: #28225A;
  margin-top: 8px;
  margin-bottom: 8px;
  outline: none;
  position: relative;
}
.cta.primary, .cta.primary:visited, .cta {
  background: #F5A623;
  color: #28225A;
}
.cta.primary:hover, .cta:focus {
  background: #28225A;
  color: #fff;
  box-shadow: 0 4px 12px #e3d8ff, 0 2px 12px #F5A62322;
}
.cta.secondary {
  background: #28225A;
  color: #fff;
}
.cta.secondary:hover {
  background: #F5A623;
  color: #28225A;
}

button {
  background: #E3D8FF;
  color: #28225A;
  border-radius: 22px;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  transition: background .18s, color .18s;
}
button:hover, button:focus {
  background: #28225A;
  color: #fff;
}

input, textarea {
  border-radius: 8px;
  border: 1px solid #E3D8FF;
  padding: 10px 14px;
  font-size: 1rem;
  background: #fff;
  margin-bottom: 14px;
  transition: border 0.2s;
}
input:focus, textarea:focus {
  border: 1.5px solid #F5A623;
  outline: none;
}

/* ==== HEADER & NAVIGATION ==== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 18px rgba(40,34,90,0.04);
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #28225A;
  padding: 8px 12px;
  border-radius: 20px;
  transition: background 0.15s, color 0.15s;
}
header nav a:hover, header nav a:focus {
  background: #E3D8FF;
  color: #F5A623;
}
header nav .cta {
  margin-left: 20px;
}

.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: #E3D8FF;
  color: #28225A;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F5A623;
  color: #fff;
}

/* ==== MOBILE NAVIGATION ==== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #28225A;
  color: #fff;
  z-index: 110;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.36s cubic-bezier(.67,.06,.29,1.29), opacity 0.24s;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 24px 8px 0;
  font-size: 2.1rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  padding: 0 8px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #F5A623;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding: 38px 36px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  padding: 12px 10px;
  border-radius: 20px;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F5A623;
  color: #28225A;
}

@media (max-width: 1050px) {
  header nav {
    gap: 14px;
  }
}
@media (max-width: 900px) {
  header .container {
    flex-direction: row;
    gap: 8px;
  }
  header nav {
    gap: 7px;
  }
}
@media (max-width: 860px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 861px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ===== BLOG FEATURED POSTS ===== */
.blog-featured-posts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.blog-featured-posts article {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(40,34,90,0.08);
  padding: 20px 18px;
  flex: 1 1 250px;
  min-width: 200px;
  transition: box-shadow 0.2s, transform 0.19s;
}
.blog-featured-posts article:hover {
  box-shadow: 0 8px 24px rgba(245,166,35,0.16);
  transform: translateY(-3px) scale(1.01);
}

/* ===== SEARCH BAR ===== */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.search-bar label {
  font-weight: 600;
  margin-right: 4px;
}
.search-bar input {
  min-width: 120px;
  flex: 1;
  padding: 8px 12px;
  font-size: 1rem;
}
.search-bar button {
  background: #F5A623;
  color: #28225A;
  border-radius: 16px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 16px;
}
.search-bar button:hover {
  background: #28225A;
  color: #fff;
}

/* ===== FOOTER ===== */
footer {
  background: #28225A;
  color: #fff;
  padding: 42px 0 20px 0;
  font-size: 1rem;
  box-shadow: 0 -2px 12px rgba(40,34,90,0.06);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  width: 100%;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
footer nav a, .footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 4px 0;
  transition: color 0.18s;
  font-size: 1rem;
}
footer nav a:hover, .footer-nav a:hover {
  color: #F5A623;
}
.footer-nav {
  margin-top: 8px;
}
.contact-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.98rem;
  margin-top: 4px;
}
.contact-summary span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.contact-summary img {
  width: 1.1em; height: 1.1em;
}

/* ==== Cookie Consent Banner ==== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  padding: 24px 12px 18px 12px;
  background: #28225A;
  color: #fff;
  box-shadow: 0 -3px 24px #E3D8FFCC;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 9999;
  font-size: 1rem;
  animation: slideUpBanner 0.56s ease;
}
@keyframes slideUpBanner { from { transform: translateY(100%); opacity: 0;} to { transform: translateY(0); opacity:1;} }
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-banner .cookie-settings {
  background: #E3D8FF;
  color: #28225A;
  border-radius: 18px;
  border: none;
  padding: 8px 18px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-banner .cookie-settings:hover {
  background: #F5A623;
  color: #28225A;
}
.cookie-banner .cookie-accept {
  background: #F5A623;
  color: #28225A;
}
.cookie-banner .cookie-reject {
  background: #fff;
  color: #28225A;
}
.cookie-banner button {
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.13s, color .13s;
}

/* ==== Cookie Modal Dialog ==== */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(0.98);
  z-index: 10100;
  min-width: 330px;
  background: #fff;
  color: #28225A;
  box-shadow: 0 8px 44px #28225A22;
  border-radius: 20px;
  padding: 36px 32px 26px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s, transform 0.21s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cookie-modal-close {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #28225A;
  cursor: pointer;
}
.cookie-modal-close:hover { color: #F5A623; }
.cookie-modal h3 { margin-bottom: 0; }
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
.cookie-category label {
  font-weight: 500;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: #F5A623;
  width: 1.1em;
  height: 1.1em;
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 10px;
}

/* ==== GENERAL RESPONSIVE ==== */
@media (max-width:900px){
  .feature-grid,
  .course-list-grid,
  .card-container,
  .content-grid,
  .blog-featured-posts {
    flex-direction: column;
    gap: 20px;
  }
  .footer .content-wrapper, .content-wrapper {
    gap: 20px;
    flex-direction: column;
  }
  .testimonial-card {
    max-width: 100%;
    min-width: 0;
  }

}
@media (max-width:700px) {
  .hero-section, .section, .cta-section {
    padding-left: 6px; padding-right: 6px;
  }
  .container {
    padding-left: 4px;
    padding-right: 4px;
  }
  .feature-grid li,.course-list-grid li,.card {
    min-width: 100px;
    padding: 16px 10px;
  }
}
@media (max-width: 550px) {
  .feature-grid li,.course-list-grid li,.card {
    padding: 10px 6px;
    font-size: 0.95rem;
  }
  .testimonials-preview .testimonial-card,
  .testimonial-card {
    padding: 12px 5px;
    font-size: 0.95rem;
  }
}
@media (max-width:768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
}

/* ==== THANK YOU SECTION & SUCCESS MESSAGES ==== */
.thank-you-section {
  background: linear-gradient(90deg,#E3D8FF 0%, #fff 100%);
  text-align: center;
  padding: 60px 0;
}
.thank-you-section .content-wrapper {
  align-items: center;
  text-align: center;
}

/* ===== CREDENTIALS GRID ===== */
.credentials-grid ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
}
.credentials-grid li {
  background: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 1px 5px rgba(40,34,90,0.05);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.credentials-grid img { width: 1.3em; height: 1.3em; }

/* ===== PROFESSOR PROFILES FLEX ===== */
.professor-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}
.professor-profiles > div {
  flex: 1 1 220px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(40,34,90,0.06);
  padding: 22px 14px;
  min-width: 180px;
}

/* ===== CONTACT DETAILS ===== */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.contact-details span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.contact-details img { width: 1.15em; height: 1.15em; }

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: linear-gradient(75deg, #E3D8FF 20%, #F5A623 170%);
  color: #28225A;
}
.newsletter-section .content-wrapper {
  align-items: center;
  text-align: center;
}

/* ======= Misc Util ======== */
hr { border: none; border-top: 1px solid #E3D8FF; margin: 32px 0; }

/* ======= ACCESSIBILITY ======= */
:focus-visible {
  outline: 2px solid #F5A623;
  outline-offset: 2px;
}

/* ======= UTILITY CLASSES ======= */
.fw-bold { font-weight: 700; }
.mb-0 { margin-bottom: 0!important; }
.mt-0 { margin-top: 0!important; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* ======= ENFORCE GAPS BETWEEN FLEX ITEMS ======= */
.section, .card, .testimonial-card, .feature-grid li, .course-list-grid li {
  margin-bottom: 20px;
}

/* ======= PREVENT ABSOLUTE OVERLAPS ======= */
[style*="position:absolute"]:not([class^="icon"]) {
  z-index: 1;
}

/* ===== END OF CSS ===== */
