/* =======================================================
   BrillaCoders - Modern Gradient CSS (Flexbox Only)
   ======================================================= */

/* RESET & BASE */
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, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, main, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  box-sizing: border-box;
  vertical-align: baseline;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  background: none;
  border: none;
  cursor: pointer;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
body {
  min-height: 100vh;
  background: linear-gradient(135deg, #f7e9d5 0%, #51b8a9 100%);
  font-family: 'Roboto', Arial, sans-serif;
  color: #204978;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

:root {
  --brc-primary: #204978;
  --brc-secondary: #51B8A9;
  --brc-accent: #F7E9D5;
  --brc-text: #204978;
  --brc-white: #fff;
  --brc-dark: #142037;
  --brc-shadow: rgba(32,73,120,0.06);
  --brc-shadow-strong: rgba(81,184,169,0.14);
}

/* ======= TYPOGRAPHY ======= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--brc-primary);
  font-weight: 700;
  letter-spacing: -0.5px;
}
h1 { font-size: 2.4rem; line-height: 1.13; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 12px; }
h3 { font-size: 1.5rem; margin-bottom: 10px; }
h4 { font-size: 1.2rem; margin-bottom: 8px; }
p, ul li, ol li {
  font-size: 1rem;
  color: var(--brc-text);
  margin-bottom: 12px;
}
strong { color: var(--brc-primary); font-weight: 700; }
em { color: var(--brc-secondary); font-style: italic; }

@media (max-width: 768px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1rem; }
}

/* ======= GLOBAL CONTAINERS AND SPACING ======= */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
section {
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--brc-white);
  border-radius: 18px;
  box-shadow: 0 4px 32px var(--brc-shadow);
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 40px;
    padding: 24px 10px;
    border-radius: 10px;
  }
}

/* ======= HEADER & NAVIGATION ======= */
header {
  background: var(--brc-white);
  padding: 0;
  box-shadow: 0 2px 12px -6px var(--brc-shadow);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 20px 20px 12px 20px;
}
.logo img {
  height: 46px;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1);
}
.logo:hover img, .logo:focus img {
  transform: scale(1.07) rotate(-3deg);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--brc-primary);
  padding: 6px 8px;
  position: relative;
  transition: color 0.2s, background 0.18s;
  border-radius: 5px;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--brc-accent);
  color: var(--brc-secondary);
}
.main-nav .cta-btn {
  background: var(--brc-secondary);
  color: var(--brc-white);
  font-weight: 700;
  padding: 8px 22px;
  border-radius: 22px;
  margin-left: 8px;
  box-shadow: 0 2px 8px var(--brc-shadow-strong);
  letter-spacing: 0.4px;
  transition: background 0.2s, color 0.18s, box-shadow 0.22s;
  border: none;
}
.main-nav .cta-btn:hover, .main-nav .cta-btn:focus {
  background: var(--brc-primary);
  color: var(--brc-accent);
  box-shadow: 0 6px 14px var(--brc-shadow-strong);
}

/* Hamburger (Mobile) Button */
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  background: var(--brc-secondary);
  color: var(--brc-white);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  z-index: 110;
  margin-left: 16px;
  transition: box-shadow 0.14s, background 0.2s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--brc-primary);
}
@media (max-width: 950px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}

/* ======= MOBILE MENU ======= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,73,120,0.88);
  backdrop-filter: blur(4px);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  z-index: 200;
  padding-top: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 30px 26px 8px 0;
  background: var(--brc-white);
  color: var(--brc-primary);
  font-size: 2.5rem;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px var(--brc-shadow-strong);
  transition: background 0.18s, color 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--brc-secondary);
  color: var(--brc-white);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 30px 30px 0 30px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brc-white);
  padding: 12px 0;
  transition: color 0.15s, background 0.18s;
  border-radius: 6px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brc-secondary);
  color: var(--brc-primary);
}
@media (min-width: 951px) {
  .mobile-menu { display: none !important; }
}

/* ======= SECTIONS, CARDS, LAYOUTS ======= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--brc-white);
  box-shadow: 0 2px 20px var(--brc-shadow);
  border-radius: 14px;
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.20s, transform 0.23s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 30px var(--brc-shadow-strong);
  transform: translateY(-6px) scale(1.012);
}

/* Content Grid Flex Layouts */
.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 {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}


/* ======= CARDS: COURSE, BLOG, FEATURES ======= */
.course-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.course-card {
  background: var(--brc-accent);
  flex: 1 1 230px;
  padding: 22px 18px;
  border-radius: 13px;
  box-shadow: 0 2px 20px var(--brc-shadow);
  margin-bottom: 20px;
  transition: box-shadow 0.20s, transform 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 200px;
}
.course-card:hover, .course-card:focus {
  box-shadow: 0 8px 22px var(--brc-shadow-strong);
  transform: translateY(-2px) scale(1.017);
}

.course-listing {
  background: var(--brc-white);
  border-left: 6px solid var(--brc-secondary);
  box-shadow: 0 1px 9px var(--brc-shadow);
  border-radius: 8px;
  padding: 18px 17px 12px 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s;
}
.course-listing:hover {
  box-shadow: 0 3px 18px var(--brc-shadow-strong);
}

/* Blog Cards */
.blog-post-card {
  background: var(--brc-accent);
  border-radius: 11px;
  box-shadow: 0 1px 7px var(--brc-shadow);
  padding: 18px 15px 10px 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.20s, transform 0.21s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blog-post-card a {
  color: var(--brc-secondary);
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.14s;
}
.blog-post-card a:hover {
  color: var(--brc-primary);
  text-decoration: underline;
}
.blog-post-card:hover {
  box-shadow: 0 6px 14px var(--brc-shadow-strong);
  transform: translateY(-2px) scale(1.012);
}
.categories-filter {
  margin-top: 8px;
  font-size: 0.98rem;
  color: var(--brc-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.categories-filter a {
  color: var(--brc-secondary);
  margin-right: 2px;
  transition: color 0.16s;
}
.categories-filter a:hover { color: var(--brc-primary); text-decoration: underline; }

/* Features, Benefits */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--brc-accent);
  border-radius: 10px;
  box-shadow: 0 1px 8px var(--brc-shadow);
  padding: 16px 13px;
  margin-bottom: 20px;
}

/* COURSE, FEATURE, BENEFIT LISTS */
ul {
  padding-left: 0;
}
ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 1rem;
}
ul li img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  margin-top: 1px;
}
@media (max-width: 650px) {
  .card-container, .course-cards {
    flex-direction: column;
    gap: 18px;
  }
}

/* ======= TESTIMONIALS ======= */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 20px;
  background: var(--brc-white);
  border-radius: 15px;
  box-shadow: 0 2px 16px var(--brc-shadow-strong);
  margin-bottom: 20px;
  flex: 1 1 250px;
  min-width: 220px;
  transition: box-shadow 0.22s, transform 0.23s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 22px var(--brc-shadow-strong);
  transform: translateY(-2px) scale(1.01);
}
.testimonial-card p {
  font-size: 1.1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #163153;
  margin-bottom: 12px;
}
.testimonial-card strong, .testimonial-details strong {
  color: var(--brc-primary);
  font-size: 1.0rem;
}
.testimonial-details span {
  color: var(--brc-primary);
  font-size: 0.98rem;
}
.testimonial-details em {
  color: var(--brc-secondary);
}

@media (max-width: 600px) {
  .testimonial-slider {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    min-width: 100%;
    padding: 16px 11px;
    gap: 14px;
  }
}

/* ======= FAQ ======= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.faq-item {
  background: var(--brc-accent);
  border-radius: 10px;
  box-shadow: 0 1px 12px var(--brc-shadow);
  padding: 14px 14px 10px 19px;
  transition: box-shadow 0.14s;
}
.faq-item:hover {
  box-shadow: 0 4px 14px var(--brc-shadow-strong);
}
.faq-item h3 {
  font-size: 1.1rem;
}

/* ======= CONTACT INFO & MAP ======= */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.contact-info p img {
  width: 20px;
  height: 20px;
  margin-right: 7px;
  vertical-align: middle;
}
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.map-embed img {
  width: 100%;
  max-width: 380px;
  border-radius: 10px;
  box-shadow: 0 1px 8px var(--brc-shadow);
}
@media (max-width: 800px) {
  .map-embed img { max-width: 100%; }
}

/* ======= CTA BUTTONS ======= */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--brc-secondary) 60%, var(--brc-primary) 100%);
  color: var(--brc-white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 12px 36px;
  border-radius: 18px;
  margin-top: 10px;
  transition: background 0.2s, color 0.18s, box-shadow 0.18s, transform 0.18s;
  box-shadow: 0 4px 16px var(--brc-shadow-strong);
  border: none;
  cursor: pointer;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, var(--brc-primary) 70%, var(--brc-secondary) 100%);
  color: var(--brc-accent);
  box-shadow: 0 7px 24px var(--brc-shadow-strong);
  transform: translateY(-2px) scale(1.025);
}

/* =====================================
   FOOTER
   ===================================== */
footer {
  background: var(--brc-primary);
  color: var(--brc-accent);
  padding: 36px 0 22px 0;
  margin-top: 40px;
  font-size: 0.98rem;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.footer-nav {
  display: flex;
  gap: 18px;
}
.footer-nav a {
  color: var(--brc-accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 500;
  transition: color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus { color: var(--brc-secondary); }
footer .logo img {
  height: 46px;
  filter: drop-shadow(0 1px 5px rgba(247,233,213,0.11));
}
@media (max-width: 950px) {
  footer .container { flex-direction: column; align-items: center; gap: 26px; text-align: center; }
}

/* =====================================
   COOKIE BANNER + MODAL
   ===================================== */
.brc-cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100vw;
  background: var(--brc-primary);
  color: var(--brc-accent);
  font-family: 'Roboto', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: 26px 18px 18px 18px;
  z-index: 4000;
  box-shadow: 0 -2px 22px var(--brc-shadow-strong);
  animation: cookie-slide-in 0.6s;
}
.brc-cookie-banner p {
  font-size: 1rem;
  color: var(--brc-accent);
  text-align: center;
  margin-bottom: 6px;
}
.brc-cookie-btns {
  display: flex;
  gap: 14px;
  margin-bottom: 3px;
}
.brc-cookie-btn, .brc-cookie-btn:focus, .brc-cookie-btn:active {
  min-width: 100px;
  padding: 8px 18px;
  border-radius: 13px;
  background: var(--brc-secondary);
  color: var(--brc-white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  outline: none;
  cursor: pointer;
  border: none;
  transition: background 0.16s, color 0.16s;
  box-shadow: 0 2px 10px var(--brc-shadow);
}
.brc-cookie-btn--accept:hover, .brc-cookie-btn--accept:focus {
  background: var(--brc-primary);
  color: var(--brc-accent);
}
.brc-cookie-btn--reject {
  background: #cccccc;
  color: var(--brc-primary);
}
.brc-cookie-btn--reject:hover {
  background: #e8e8e8;
  color: var(--brc-secondary);
}
.brc-cookie-btn--settings {
  background: var(--brc-accent);
  color: var(--brc-primary);
}
.brc-cookie-btn--settings:hover {
  background: var(--brc-secondary);
  color: var(--brc-accent);
}
@keyframes cookie-slide-in {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Cookie Settings Modal */
.brc-cookie-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(32,73,120,0.75);
  z-index: 4100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-fade-in 0.5s;
}
.brc-cookie-modal-content {
  background: var(--brc-white);
  color: var(--brc-primary);
  border-radius: 16px;
  padding: 34px 24px 22px 24px;
  max-width: 420px;
  width: 96vw;
  box-shadow: 0 2px 18px var(--brc-shadow-strong);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  animation: modal-bounce-in 0.32s;
}
@keyframes modal-fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes modal-bounce-in {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.brc-cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 14px;
  background: transparent;
  color: var(--brc-primary);
  font-size: 1.8rem;
  border-radius: 50%;
  padding: 4px 10px 2px 10px;
  transition: background 0.16s, color 0.16s;
}
.brc-cookie-modal-close:hover { background: var(--brc-accent); color: var(--brc-secondary); }

.brc-cookie-modal h2 {
  font-size: 1.26rem;
  margin-bottom: 5px;
  color: var(--brc-primary);
}
.brc-cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.brc-cookie-category input[type="checkbox"]:not(:disabled) {
  accent-color: var(--brc-secondary);
}
.brc-cookie-category input[disabled] {
  filter: grayscale(60%);
}
.brc-cookie-category label {
  color: var(--brc-primary);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  user-select: none;
}
.brc-cookie-note {
  font-size: 0.93rem;
  color: var(--brc-secondary);
  margin-top: 5px;
  margin-bottom: 10px;
}
.brc-cookie-btns-modal {
  display: flex;
  gap: 13px;
  margin-top: 12px;
}

@media (max-width: 450px) {
  .brc-cookie-modal-content { padding: 14px 4vw 15px 4vw; }
}

/* =====================================
   RESPONSIVE GENERAL
   ===================================== */
@media (max-width: 950px) {
  .main-nav { display: none; }
  header .container { flex-direction: row; padding: 18px 8px; }
  .logo img { height: 40px; }
}
@media (max-width: 768px) {
  .container { max-width: 97vw; padding: 0 7px; }
  .content-wrapper { gap: 12px; }
  .footer-nav { flex-direction: column; gap: 8px; }
  section { padding: 0; }
  footer { padding: 28px 0 14px 0; }
}

@media (max-width: 470px) {
  h1, .cta-btn { font-size: 1.05rem; }
  .cta-btn { padding: 8px 13px; border-radius: 14px; font-size: 0.97rem; }
  .main-nav .cta-btn { padding: 6px 12px; font-size: 0.97rem; }
  .logo img, footer .logo img { height: 34px; }
}

/* =====================================
   MICRO-INTERACTIONS
   ===================================== */
a, .cta-btn, .main-nav a, .footer-nav a, .mobile-nav a, button, .card {
  transition: 
    color 0.17s cubic-bezier(.41,.17,.26,1), 
    background 0.2s cubic-bezier(.41,.17,.26,1), 
    box-shadow 0.2s cubic-bezier(.41,.17,.26,1),
    transform 0.23s cubic-bezier(.45,0,.55,1);
}

/* Utility Margins & Flex Patterns (MANDATORY) */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Always visible focus for accessibility */
a:focus, button:focus, .cta-btn:focus {
  outline: 2px solid var(--brc-secondary);
  outline-offset: 2px;
}

::-webkit-input-placeholder { color: #b5c0ca; }
::-moz-placeholder { color: #b5c0ca; }
:-ms-input-placeholder { color: #b5c0ca; }
::placeholder { color: #b5c0ca; }
