/* ----------------------------
   BASE & TYPOGRAPHY (DARK MODE)
---------------------------- */

:root {
  /* Dark mode palette */
   --bg: #ffffff; /* user requested background */
  --surface: #ebeceb; /* slightly lighter surface */
 --card-bg: #0bd02c;
  --border: #3f403f00;
  --text: #707070;
  --muted: #707070;
  --accent: #0bd02c;
  --accent-strong: #707070;

  --font-body: "Inter", Arial, sans-serif;
  --font-heading: "Roboto Slab", sans-serif;

  --max-width: 1200px;
}

.carousel-btn {
    border: none;
    outline: none;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    padding: 1em;
    display: flex;
}

.carousel-btn .arrow {
    border: solid #fff;
    border-width: 0 4px 4px 0;
    display: inline-block;
    padding: 10px;
    transition: transform 0.3s ease-out;
    outline: none;
}

.carousel #right-btn .arrow {
    transform: rotate(-45deg);
}

.carousel #left-btn .arrow {
    transform: rotate(135deg);
}

/* ----------------------------
   CAROUSEL
---------------------------- */

.carousel-section {
  width: 100%;
  margin: 2rem 0 3rem;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.carousel-link {
  position: relative;
  display: block;
  width: 100%;
  color: #fff;
  text-decoration: none;
}

.carousel-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  pointer-events: none;
}

#carousel {
  width: 100%;
  height: 60vh;
  min-height: 320px;
  max-height: 600px;
  object-fit: cover;
  display: block;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

#carousel.slide-out-left {
  opacity: 0;
  transform: translateX(-24px);
}

#carousel.slide-out-right {
  opacity: 0;
  transform: translateX(24px);
}

#carousel.slide-in-left,
#carousel.slide-in-right {
  opacity: 0;
  transform: translateX(0);
}

#carousel.slide-active {
  opacity: 1;
  transform: translateX(0);
}

.carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.55);
  padding: 1.25rem 5vw 1.5rem;
}

.carousel-caption h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  color: #fff;
  margin-bottom: 0.5rem;
}

.carousel-caption p {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(0, 0, 0, 0.45);
  border: none;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  padding: 0;
  align-items: center;
  justify-content: center;
}

#left-btn {
  left: 1rem;
  margin: 0;
}

#right-btn {
  right: 1rem;
  margin: 0;
}

.carousel-btn:hover,
.carousel-btn:focus {
  background: rgba(0, 0, 0, 0.65);
}

.hvr-box-shadow-outset {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-property: box-shadow;
  transition-property: box-shadow;
}
.hvr-box-shadow-outset:hover, .hvr-box-shadow-outset:focus, .hvr-box-shadow-outset:active {
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.6);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

/* ----------------------------
   HEADER
---------------------------- */

.site-header {
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding: 0.75rem 0;
  width: 100%;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  padding: 0 2rem;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: var(--accent);
  font-weight: 700;
}

.site-logo img {
  height: 48px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--accent);
}

/* ----------------------------
   HERO / LEAD
---------------------------- */

.hero {
  padding: 4rem 0;
  background: transparent;
  text-align: center;
}

.hero h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--accent);
}

.hero p {
  max-width: 750px;
  margin: 1rem auto;
  font-size: 1.15rem;
  color: var(--muted);
}

/* ----------------------------
   CONTENT AREAS
---------------------------- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* SECTION TITLES */
h2.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* TEXT BLOCKS */
.section-text {
  margin-bottom: 2rem;
  color: var(--muted);
}

/* ----------------------------
   HOME INTRO
---------------------------- */

.home-intro {
  padding: 2.5rem 0 1rem;
}

/* ----------------------------
   FEATURED CARDS
---------------------------- */

.featured-cards {
  padding: 2.5rem 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 1.75rem;
}

/* ----------------------------
   SUPPORT / SPONSORS
---------------------------- */

.support {
  padding: 2.5rem 0 3.5rem;
}

.sponsor-logos {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.sponsor-logo {
  border: 1px solid var(--border);
  padding: 1.2rem;
  text-align: center;
  color: var(--muted);
  background: var(--bg);
}

/* ----------------------------
   COURSES / CALENDAR
---------------------------- */

.courses {
  padding: 3rem 0 4rem;
}

.calendar-embed {
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  background: var(--bg);
}

.calendar-frame {
  width: 100%;
  min-height: 520px;
  border: 0;
  display: block;
}

.card {
  display: block;
  position: relative;
  background: var(--accent);
  border: 1px solid var(--border);
  padding: 1.75rem;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(0);
  box-shadow: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.card:hover,
.card:focus {
  transform: translateY(-3px);
  box-shadow: 6px 9px 0 rgba(0, 0, 0, 0.2);
}

.card:active {
  transform: translateY(2px);
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.22);
}

.card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #ffffff;
}

.card p {
  margin: 0.75rem 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.card span {
  color: #ffffff;
  font-weight: 600;
}



/* ----------------------------
   FORMS
---------------------------- */

form {
  margin-top: 1.75rem;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--text);
}

input,
textarea {
  width: 100%;
  padding: 0.65rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
}

button:not(.carousel-btn) {
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 0.65rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transform: translateY(0);
  box-shadow: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

button:not(.carousel-btn):hover,
button:not(.carousel-btn):focus {
  transform: translateY(-3px);
  box-shadow: 6px 9px 0 rgba(0, 0, 0, 0.2);
}

button:not(.carousel-btn):active {
  transform: translateY(2px);
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.22);
}

/* ----------------------------
   FOOTER
---------------------------- */

.site-footer {
  background: #e6e6e6;
  color: #6b6b6b;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  text-align: center;
}

.site-footer a {
  color: var(--muted);
  text-decoration: underline;
}

/* ----------------------------
   CONTACT
---------------------------- */

.contact {
  padding: 3rem 0 4rem;
}

.contact-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-hero h2 {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  color: var(--accent);
}

.contact-hero p {
  color: var(--muted);
  margin-top: 0.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  align-items: start;
}

.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1.75rem;
  border-radius: 0;
  box-shadow: none;
}

.contact-info ul {
  list-style: none;
  margin-top: 1rem;
}

.contact-info li {
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.contact-card form {
  margin-top: 0;
}

.contact-card textarea {
  min-height: 140px;
}

.notice {
  padding: 0.9rem 1.1rem;
  border-radius: 0;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.notice-success {
  background: #e8f5ec;
  color: #0a7a1f;
  border: 1px solid #bfe6c9;
}

.notice-error {
  background: #fdecec;
  color: #9a1010;
  border: 1px solid #f5bcbc;
}

/* ----------------------------
   ABOUT / TEAM
---------------------------- */

.about {
  padding: 3rem 0 4rem;
}

.about-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 2.5rem;
}

.about-block {
  border: 1px solid var(--border);
  padding: 1.5rem;
  background: var(--bg);
}

.about-block h3 {
  margin-bottom: 0.5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.team-card {
  border: 1px solid var(--border);
  padding: 1.5rem;
  background: var(--bg);
  text-align: left;
}

.team-photo {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  margin-bottom: 1rem;
  background: var(--surface);
}

/* ----------------------------
   404
---------------------------- */

.not-found {
  padding: 4rem 0 5rem;
}

.not-found-panel {
  border: 1px solid var(--border);
  padding: 2rem;
  background: var(--bg);
  text-align: center;
}

.not-found-code {
  font-family: "Roboto Slab Bold", sans-serif;
  font-size: 7rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.not-found-actions {
  margin-top: 1.5rem;
}

.not-found-link {
  display: inline-block;
  text-decoration: none;
  color: #ffffff;
  background: var(--accent);
  padding: 0.65rem 1.4rem;
  font-weight: 600;
  transform: translateY(0);
  box-shadow: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.not-found-link:hover,
.not-found-link:focus {
  transform: translateY(-3px);
  box-shadow: 6px 9px 0 rgba(0, 0, 0, 0.2);
}

.not-found-link:active {
  transform: translateY(2px);
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.22);
}

.not-found-terminal {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: "Courier New", monospace;
  font-size: 0.95rem;
  white-space: pre-wrap;
  text-align: left;
}

/* ----------------------------
   RESPONSIVE
---------------------------- */

@media (max-width: 768px) {
  .hero h2 {
    font-size: 2rem;
  }

  .site-nav ul {
    gap: 1rem;
  }
}
