/* =======================
  VARIABLES: BRUTALISM + BRIGHT SPLIT-COMPLEMENTARY
======================= */
:root {
  --primary: #542e91;
  --primary-dark: #3c1b66;
  --accent: #ffae00;
  --accent-dark: #96701c;
  --secondary: #fa6b96;
  --secondary-dark: #c13e69;
  --light-bg: #f4f4f8;
  --card-bg: #fff;
  --glass-bg: rgba(255,255,255,0.85);
  --glass-border: rgba(0,0,0,0.07);
  --card-shadow: 0 6px 38px rgba(58,34,107, 0.17);
  --text: #222222;
  --text-light: #fff;
  --text-muted: #58525c;
  --border-radius: 16px;
  --transition: 0.25s cubic-bezier(.67,.23,.40,.98);
  --gradient-hero: linear-gradient(rgba(21,21,28,0.67),rgba(55,30,67,0.56));
  --gradient-yellow-purple: linear-gradient(90deg, #ffae00 0%, #542e91 100%);
  --gradient-purple-pink: linear-gradient(98deg,#542e91 0%,#fa6b96 100%);
  --gradient-rose: linear-gradient(94deg,#fa6b96 0%,#fffcee 98%);
  --focus-outline: 2.5px dashed var(--accent);
}

/* =================================
  BASE & GLOBALS
================================= */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
*,*::before,*::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Merriweather', serif;
  background: var(--light-bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.7;
}

.main-container {
  width: 100%;
  overflow-x: hidden;
}

/* ============================
  UTILITIES
============================ */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2.5vw;
}
.is-two-thirds {
  width: 100%;
  max-width: 920px;
}

/* Glassmorphism example */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(7px);
  border-radius: 22px;
  border: 1.5px solid var(--glass-border);
  box-shadow: var(--card-shadow);
}

/* ===============================
 HEADER & NAVIGATION
=============================== */
.site-header {
  width: 100%;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  box-shadow: 0 5px 29px -16px rgba(52,34,81,0.09);
  background: var(--gradient-yellow-purple);
  transition: background var(--transition);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 2.8vw;
  min-height: 70px;
}

.site-logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 1px 1px 8px rgba(29,29,29,0.13);
  display: inline-block;
  transition: transform .22s cubic-bezier(.3,.8,.34,1.16);
}
.site-logo:focus, .site-logo:hover {
  transform: scale(1.04) skew(-2deg, 0deg);
  outline: none;
}

.site-nav ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  align-items: center;
}
.site-nav a {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-decoration: none;
  padding: 9px 11px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
  font-size: 1rem;
  letter-spacing: .04em;
}
.site-nav a:focus, .site-nav a:hover {
  background: rgba(255,255,255,0.10);
  color: var(--accent);
  outline: var(--focus-outline);
}

.burger-menu {
  display: none;
  background: transparent;
  border: none;
  outline: none;
  flex-direction: column;
  height: 36px;
  justify-content: center;
  cursor: pointer;
  margin-left: 24px;
  z-index: 101;
}
.burger-bar {
  width: 30px;
  height: 4px;
  background: #fff;
  margin: 3px 0;
  border-radius: 3px;
  transition: all 0.30s;
}

@media (max-width: 1020px) {
  .container,
  .is-two-thirds {
    max-width: 97vw;
  }
}
@media (max-width: 950px){
  .site-nav ul {
    gap: .9rem;
  }
}

@media (max-width: 790px){
  .header-inner {
    flex-wrap: wrap;
  }
  .site-logo {
    font-size: 1.3rem;
  }
  .site-nav {
    position: fixed;
    background: var(--gradient-yellow-purple);
    box-shadow: 0 4px 29px -4px rgba(52,34,81,0.13);
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    display: none;
    flex-direction: column;
    justify-content: start;
    align-items: flex-end;
    padding: 85px 30px;
    z-index: 100;
    transform: translateY(-100%);
    transition: transform 0.3s;
  }
  .site-nav.active {
    display: flex;
    transform: translateY(0);
  }
  .site-nav ul {
    flex-direction: column;
    gap: 1.6rem;
    width: 100%;
    align-items: flex-end;
  }
  .burger-menu {
    display: flex;
  }
}

/* =================================
 HERO SECTION
================================= */
.hero-section {
  width: 100%;
  padding-top: 85px;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  box-shadow: 0 1px 28px -12px var(--primary-dark);
}
.hero-section::before {
  content:"";
  position:absolute;
  left:0;right:0;top:0;bottom:0;
  z-index:0;
  background: var(--gradient-hero);
}
.hero-content {
  z-index: 2;
  position: relative;
  text-align: left;
  padding: 3vw 2vw 3vw 2.4vw;
  max-width: 666px;
  margin: 0 auto;
}
.hero-content h1 {
  color: var(--text-light);
  font-family: 'Montserrat', sans-serif;
  font-size: 2.7rem;
  margin-bottom: 1.1rem;
  line-height: 1.2;
  text-shadow: 1px 1px 12px rgba(0,0,0,0.7);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: left;
}
.hero-content p {
  color: var(--text-light);
  text-shadow: 1px 1px 8px rgba(0,0,0,.62);
  font-size: 1.22rem;
  margin-bottom: 2.5rem;
  margin-top:6px;
  font-family: 'Merriweather', serif;
  font-weight: 400;
}
.hero-content .cta-btn {
  margin-top: 14px;
  font-size: 1.18rem;
}

/* ====================================
  BUTTONS: GLOBAL
==================================== */
.btn,
button,
input[type="submit"] {
  display: inline-block;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.03rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: var(--gradient-yellow-purple);
  color: #fff;
  border: none;
  border-radius: 9px;
  box-shadow: 0 5px 11px -2px rgba(70,34,107,.13);
  padding: 0.95em 2em;
  transition: background .22s, box-shadow .22s, transform .13s;
  outline: none;
  margin-top: .8em;
  margin-bottom:.3em;
  position: relative;
  overflow: hidden;
}

.btn:focus, button:focus, input[type='submit']:focus {
  outline: 2px solid var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(255,174,0,0.13);
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--gradient-purple-pink);
  color: #fff;
  box-shadow: 0 11px 28px -2px rgba(250,107,150,.11);
  transform: translateY(-2px) scale(1.03);
}
.cta-btn {
  background: var(--gradient-yellow-purple);
  animation: ctaPulse 1.7s cubic-bezier(.57,.18,.89,1.2) infinite alternate;
}
@keyframes ctaPulse {
  0% {box-shadow: 0 0 0 0 rgba(255,174,0,.12);}
  100% {box-shadow: 0 0 12px 7px rgba(84,46,145,.08);}
}

/* ========================
 SECTION HEADINGS
========================== */
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.15);
  text-align: center;
  margin-bottom: 1.6rem;
}
@media (max-width: 560px) {
  .section-title {
    font-size: 1.3rem;
    margin-bottom: .88rem;
  }
}

/* ================================
  ABOUT SECTION
================================ */
.about-section {
  padding: 65px 0 45px 0;
}
.about-content {
  display: flex;
  flex-direction: row;
  gap: 2.6vw;
}
.about-text {
  flex:2;
  font-size: 1.15rem;
  color: var(--text);
  font-family: 'Merriweather', serif;
  padding-right:2vw;
}
.about-image {
  flex:1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==================
  CARD GRID + FLEX
================== */
.card, 
.external-resource-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--glass-bg);
  box-shadow: var(--card-shadow);
  border-radius: var(--border-radius);
  transition: transform .17s, box-shadow .18s;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding: 1.25em 1.2em 1.35em;
}
.card:hover, 
.external-resource-card:hover {
  transform: scale(1.028) translateY(-4px);
  box-shadow: 0 6px 38px 4px rgba(250,107,150, 0.14), 0 1px 23px rgba(84,46,145,0.05);
  z-index: 2;
}

/* ==================
  CARD IMAGES
================== */
.card-image, .image-container {
  width: 100%;
  height: 175px;
  max-width: 410px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto 1em auto;
  border-radius: 14px;
  background: #ececec;
}
.card-image img, .image-container img {
  width: auto;
  max-width: 98%;
  height: 170px;
  max-height: 99%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  margin: 0 auto;
  box-shadow: 0 3px 22px -9px rgba(66,66,66,0.09);
}
.card-content {
  text-align:center;
  color: var(--text);
  font-family: 'Merriweather', serif;
  padding-top: .3em;
}
.card-content h3, .card-content h4 {
  font-family: 'Montserrat',sans-serif;
  font-weight: 700;
  color: var(--primary);
  margin-top: 0.2em;
  margin-bottom: 0.75em;
  letter-spacing: 0.01em;
}

/* Special Instructor Avatars */
.instructors-section .card-image, 
.instructors-section .image-container {
  height: 123px;
  max-width: 180px;
  border-radius: 50%;
  background: var(--gradient-rose);
}
.instructors-section .card-image img, 
.instructors-section .image-container img {
  height: 120px; width: 120px; min-width:120px;max-width:120px;
  border-radius: 50%;
  box-shadow: 0 2px 24px -7px rgba(169,109,224,0.09);
}

/* Portfolio Card Images */
.portfolio-section .card-image, 
.portfolio-section .image-container {
  height: 160px;
  max-width: 350px;
}

/* News Card Images */
.news-section .card-image, 
.news-section .image-container {
  height: 120px;
  max-width: 260px;
}

/* External Resource Card */
.external-resource-card .card-image, 
.external-resource-card .image-container {
  height: 105px;
  max-width: 230px;
}
@media (max-width: 500px) {
  .card-image, .image-container,
  .portfolio-section .card-image, 
  .news-section .card-image {
    min-width: 95vw;
    max-width:95vw;
    height: 110px;
    border-radius: 11px;
  }
  .card-image img, .image-container img,
  .portfolio-section .card-image img, 
  .news-section .card-image img {
    min-width:80vw;
    max-width:92vw;
    height:100px;
  }
}

/* ================
  CARD LAYOUTS
================ */
.portfolio-carousel,
.news-cards-row,
.instructors-grid,
.external-links-list {
  display: grid;
  grid-gap: 1.8rem;
}
.portfolio-carousel, .news-cards-row {
  grid-template-columns: repeat(3, 1fr);
}

.external-links-list {
  grid-template-columns: 1fr 1fr;
}

/* INSTRUCTORS SECTION */
.instructors-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2.4rem;
}

@media (max-width: 950px){
  .about-content,
  .portfolio-carousel,
  .news-cards-row,
  .instructors-grid,
  .external-links-list {
    grid-template-columns: 1fr;
  }
  .about-content {
    flex-direction: column;
    gap: 0.9em;
  }
}

@media (max-width: 650px) {
  .about-text { padding-right:0;}
  .card, .external-resource-card {padding: .9em .65em;}
  .container {padding:0 1vw;}
}

/* Portfolio Slider Extra */
.card-slider {
  display: flex;
  gap: 2.2rem;
  overflow-x: auto;
  padding-bottom: 12px;
  position: relative;
  scrollbar-color: var(--primary) #e0e0e0;
}
.card-slider::-webkit-scrollbar {height: 7px;}
.card-slider::-webkit-scrollbar-thumb {background:var(--primary);border-radius:10px;}
.card-slider::-webkit-scrollbar-track{background:#e0e0e0;}
.slider-btn {
  position: absolute;
  top: 50%;
  z-index: 12;
  background: var(--gradient-rose);
  color: var(--primary);
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 3px 21px rgba(84,46,145, .17);
  width: 38px;
  height: 38px;
  font-size: 1.5rem;
  cursor: pointer;
  transition:background .16s, color .13s, transform .12s;
  display: flex;align-items:center;justify-content:center;
  transform: translateY(-50%);
  user-select: none;
}
.slider-btn.left {left:-18px;}
.slider-btn.right {right:-18px;}
.slider-btn:hover, .slider-btn:focus {background: var(--gradient-purple-pink);color:#fff;}

/* ================================
  EXTERNAL LINKS CARDS
================================ */
.external-links-list, .external-links-list-secondary {
  width: 100%;
}

.external-links-list-secondary {
  margin-top: 1.1rem;
  display: flex;
  gap: 1.4rem;
  justify-content: center;
  flex-wrap: wrap;
}
.external-link {
  color: var(--accent-dark);
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: color .17s;
}
.external-link:hover { color: var(--secondary-dark);}

/* ========================================
  NEWS SECTION
======================================== */
.news-section .card-content h4{
  color: var(--primary-dark);
}

/* ============= READ MORE LINKS ============= */
.read-more, .external-resource-card a, .card a.read-more {
  color: var(--accent);
  text-decoration: underline;
  font-weight: bold;
  font-family: 'Montserrat', sans-serif;
  font-size:1.05rem;
  letter-spacing:0.02em;
  transition: color .21s, text-shadow .13s;
  position: relative;
  margin-top:0.7em;
}
.read-more:hover,.external-resource-card a:hover { 
  color: var(--secondary);
  text-shadow: 0 2px 7px rgba(84,46,145, 0.07);
  text-decoration:none;
}
.read-more::after {
  content:" →";
  color: var(--primary-dark);
  opacity: .9;
  font-size: .97em;
  transition: color 0.16s;
}

/* ==========================================
  CONTACT SECTION
========================================== */
.contact-section {
  background:var(--gradient-yellow-purple);
  color: #fff;
  border-radius: 0 0 48px 48px;
  box-shadow: 0 4px 39px -13px rgba(84,46,145,0.11);
}
.contact-form-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2.7rem;
  flex-wrap: wrap;
}

.contact-description{
  font-size:1.09rem;
  color:#fff;
}
.contact-description ul {
  padding-left: 1.1em;
  margin-top: 14px;
}
.contact-form-block {
  min-width: 320px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  background: rgba(255,255,255,0.13);
  border-radius: 16px;
  box-shadow: 0 7px 21px -11px rgba(250,107,150,0.09);
  padding: 2em 1.5em 1.1em 1.5em;
  flex: 1.5;
}

/* FORM STYLING */
#contactForm {
  display: flex;
  flex-direction: column;
  width: 98%;
  gap: .69rem;
}
#contactForm label {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.01rem;
  font-weight: 600;
  color: var(--primary-dark);
}
#contactForm input, #contactForm textarea {
  width: 100%;
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  border: 2.2px solid var(--primary);
  border-radius: 7px;
  padding: .7em .9em;
  margin-bottom: .41em;
  background: #fff;
  color: #333;
  outline: none;
  transition: border-color .23s,box-shadow .13s;
}
#contactForm input:focus, #contactForm textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255,174,0,0.13);
}
#contactForm button {
  margin-top: 1.1rem;
  align-self: flex-end;
}

/* ==============================================
  FOOTER
================================================ */
.site-footer {
  background: linear-gradient(180deg,#2e2447 30%,#f5f5f5 100%);
  color: #fff;
  padding: 45px 0 24px 0;
  border-top: 5px solid var(--secondary);
  margin-top: 0;
  font-family: 'Merriweather', serif;
  box-shadow: 0 -4px 22px rgba(84,46,145,0.09);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2.7rem;
  align-items: flex-start;
}
.footer-block {
  margin-bottom: 1.7rem;
}

.site-footer h3, .site-footer h4 {
  font-family: 'Montserrat',sans-serif;
  font-size: 1.19rem;
  color: #fff;
  margin-bottom: 1.1em;
  font-weight: bold;
  letter-spacing: .03em;
}
.site-footer ul {
  list-style: none;
  font-size: 1.07rem;
  margin-top: .2rem;
  padding-left: 0;
  line-height: 1.7;
}
.site-footer a {
  color: #ffae00;
  text-shadow: none;
  letter-spacing: .01em;
  transition: color .17s, text-shadow .10s;
  text-decoration: underline;
  font-weight: 500;
}
.site-footer a:hover, .site-footer a:focus {
  color: #fa6b96;
  text-shadow: 0 1px 14px rgba(250,107,150,0.07);
}

.site-footer small {
  font-size: .97em;
}

@media (max-width: 850px) {
  .site-footer .container {
    flex-direction: column;
    gap: 1.8rem;
    align-items: flex-start;
  }
}

/* SOCIAL ICONS IN FOOTER */
.footer-block ul li {
  margin-bottom:.6em;
  word-break: break-word;
}
.footer-socials a {
  display:inline-block;
  margin-right: 11px;
  font-family:'Montserrat',sans-serif;
  color:var(--accent);
  font-weight:bold;
}

/* ==============================================
  MICRO-ANIMATIONS (UTILITIES)
================================================ */
@media (hover: hover) {
  .card, .external-resource-card, .news-section .card {
    transition: transform .22s cubic-bezier(.51,.98,.67,1.12), box-shadow .22s;
  }
  .card:hover, .external-resource-card:hover, .news-section .card:hover {
    transform: scale(1.028) translateY(-4px) rotate(-0.8deg);
    box-shadow: 0 4px 28px 3px rgba(255,174,0,.09);
  }
}
.card {
  animation: microfadein .83s cubic-bezier(.8,.6,.22,1) backwards;
}
@keyframes microfadein {
  0% {opacity:0; transform:translateY(28px);}
  100% {opacity:1; transform:translateY(0);}
}
/* Parallax background on scroll (on large screens) */
@media (min-width: 900px) {
  .hero-section {
    background-attachment: fixed, scroll;
  }
}

/* ============================
  RESPONSIVENESS
============================ */
@media (max-width:1220px){
  .container,.is-two-thirds { max-width: 98vw;}
}
@media (max-width: 850px) {
  .about-content {flex-direction:column;}
  .portfolio-carousel, .news-cards-row, .instructors-grid,
  .external-links-list {
    grid-template-columns: 1fr;
  }
  .site-footer .container {gap:1.75rem;}
}

@media (max-width:620px){
  .hero-section {padding-top:74px;}
  .contact-section, .about-section, .portfolio-section, .news-section {padding-left:0;padding-right:0;}
}

@media (max-width:540px){
  .main-container{min-width:100vw;}
  .about-section, .news-section, .portfolio-section, .contact-section, .instructors-section {
    padding: 14vw 0 8vw 0;
  }
  .container {padding:0;}
  .card, .external-resource-card {margin-bottom: 1.1em;padding:.6em .3em;}
}
/* is-two-thirds responsive */
@media (max-width:510px){
  .is-two-thirds{max-width:99vw;}
}

/* =========================
  SUCCESS PAGE (success.html)
========================= */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-rose);
  padding: 0;
}
.success-page .success-message-box {
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 11px 34px -7px #fa6b96b0;
  padding: 2.4em 1.8em;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
  font-family: 'Montserrat',sans-serif;
  font-size:1.3rem;
  color: var(--primary);
}
.success-page .success-message-box .btn {
  margin-top:1.7em;
}

/* =========================
  PRIVACY/TERMS PADDING
========================= */
.privacy-content,
.terms-content {
  padding-top: 98px;
}

/* ===============
 BACKGROUNDS FOR TEXT ON IMAGE
================= */
[data-prompt] img, .hero-section {
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

/* Hero dark overlay for text contrast */
.hero-section .hero-content,
.hero-section h1,
.hero-section p {
  color: #fff !important;
  text-shadow: 1px 1px 12px rgba(0,0,0,0.85);
}

/* =========================
  MISC
========================= */
::-webkit-input-placeholder { color: #999; opacity: 1; }
::-moz-placeholder { color: #999; opacity: 1; }
:-ms-input-placeholder { color: #999; opacity: 1; }
::placeholder { color: #999; opacity: 1; }
input:disabled, textarea:disabled { background:#eee;color:#888; }

/* ========================
 Hide default outlines on click, keep for keyboard */
:focus:not(:focus-visible) {outline:none;}
:focus-visible { outline: var(--focus-outline); }

/* ========================
 Scrollbar styling
======================== */
::-webkit-scrollbar { width: 7px; background: #e7e5ef;}
::-webkit-scrollbar-thumb { background: var(--accent-dark); border-radius: 10px;}
::-webkit-scrollbar-thumb:hover { background: var(--primary);}