/*
  style.css
  Theme: Cursos de Inglés en Colombia
  Design System: Minimalist + Neo-Brutalism
  Color Scheme: Analogous
*/

/* 1. CSS Variables & Root Styles
-------------------------------------------------- */
:root {
  /* Analogous Color Scheme */
  --primary-color: #3e8ed0; /* Bulma's Info Blue - Main */
  --primary-color-dark: #306fa1;
  --secondary-color: #48c78e; /* Bulma's Green - Analogous Accent */
  --accent-color: #8A4D76; /* A contrasting, muted purple */
  
  /* Neutral Colors */
  --text-dark: #222222;
  --text-light: #f5f5f5;
  --bg-color: #ffffff;
  --bg-light: #f9f9f9;
  --border-color: #111111;
  --shadow-color: rgba(0, 0, 0, 0.1);

  /* Typography */
  --font-header: 'Roboto', sans-serif;
  --font-body: 'Lato', sans-serif;

  /* Sizing & Spacing */
  --navbar-height: 52px;
}

/* 2. Base & Body Styles
-------------------------------------------------- */
html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 1.1rem;
}

/* 3. Typography
-------------------------------------------------- */
h1, h2, h3, h4, h5, h6,
.title, .subtitle {
  font-family: var(--font-header);
  font-weight: 900;
  color: var(--text-dark);
}

.title {
  text-shadow: 1px 1px 2px var(--shadow-color);
}

a {
  color: var(--primary-color);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-color-dark);
}

/* 4. Global Component Styles
-------------------------------------------------- */

/* --- Buttons --- */
.button {
  font-family: var(--font-header);
  font-weight: 700;
  border-radius: 4px;
  border-width: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 4px 4px 0px var(--border-color);
}

.button:hover {
  transform: translateY(-2px) translateX(-2px);
  box-shadow: 6px 6px 0px var(--border-color);
}

.button:active {
  transform: translateY(1px) translateX(1px);
  box-shadow: 2px 2px 0px var(--border-color);
}

.button.is-info {
  background-color: var(--primary-color);
  border-color: var(--border-color);
}

.button.is-info:hover {
  background-color: var(--primary-color-dark);
}

.button.is-info.is-outlined {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.button.is-info.is-outlined:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--border-color);
}

/* --- Cards --- */
.card {
  border: 2px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 5px 5px 0 var(--border-color);
  transition: all 0.3s ease-in-out;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px) translateX(-5px);
  box-shadow: 10px 10px 0 var(--secondary-color);
}

.card .card-image {
  border-bottom: 2px solid var(--border-color);
}

.card .card-image img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 4px 4px 0 0;
}

.card .card-content {
  text-align: center;
  flex-grow: 1; /* Allows content to fill space */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card .card-content .title {
  margin-bottom: 0.75rem;
}

/* --- Forms --- */
.input, .textarea, .select select {
  border: 2px solid var(--border-color);
  border-radius: 4px;
  box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.05);
  font-family: var(--font-body);
  transition: all 0.3s ease;
}

.input:focus, .textarea:focus, .select select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(62, 142, 208, 0.25), 3px 3px 0 var(--primary-color);
}

/* 5. Layout & Section Styles
-------------------------------------------------- */

.section {
  padding: 4rem 1.5rem;
}

/* --- Header & Navbar --- */
.navbar.is-fixed-top {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-item.has-text-weight-bold {
  font-size: 1.5rem;
}

/* --- Hero Section --- */
.hero.is-fullheight .hero-body {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .title, .hero .subtitle {
  color: var(--text-light);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

#particle-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* 6. Specific Component Styles
-------------------------------------------------- */

/* --- Accordion (Our Process) --- */
.accordion-container {
    border: 2px solid var(--border-color);
    border-radius: 4px;
}

.accordion-header {
  background-color: var(--bg-color);
  color: var(--text-dark);
  cursor: pointer;
  padding: 1.25rem;
  width: 100%;
  text-align: left;
  border: none;
  border-bottom: 2px solid var(--border-color);
  outline: none;
  transition: background-color 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-container .accordion-header:last-of-type {
    border-bottom: none;
}

.accordion-header:hover, .accordion-header.is-active {
  background-color: var(--bg-light);
}

.accordion-header .title {
    margin-bottom: 0;
}

.accordion-icon {
  font-size: 2rem;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.accordion-header.is-active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  background-color: var(--bg-light);
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.accordion-content p {
    padding: 1.25rem 0;
}

/* --- Tabs (Accolades/Sustainability) --- */
.tabs.is-toggle a {
    border-width: 2px;
    border-color: var(--border-color);
}
.tabs.is-toggle li.is-active a {
    background-color: var(--primary-color);
    border-color: var(--border-color);
    color: var(--text-light);
}
.tab-content {
    display: none;
    padding: 1.5rem 0;
}
.tab-content.is-active {
    display: block;
}

/* --- Testimonial Carousel --- */
.testimonial-carousel .testimonial-slide {
  display: none;
}
.testimonial-carousel .testimonial-slide.is-active {
  display: block;
}
.testimonial-carousel .box {
    border: 2px solid var(--border-color);
    box-shadow: 4px 4px 0 var(--shadow-color);
}

/* --- External Resources Section --- */
.external-link-item {
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}
.external-link-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.external-link-item a {
    font-size: 1.2rem;
    font-family: var(--font-header);
}
.external-link-item p {
    margin-top: 0.5rem;
    color: #4a4a4a;
}

/* --- Insights "Read More" link --- */
.card-content .button.is-link.is-outlined {
    border-width: 2px;
    box-shadow: none;
    text-transform: none;
}
.card-content .button.is-link.is-outlined:hover {
    transform: none;
    box-shadow: none;
}


/* 7. Footer Styles
-------------------------------------------------- */
.footer {
  padding: 3rem 1.5rem 3rem;
  border-top: 4px solid var(--border-color);
}

.footer .title {
    color: var(--text-light);
}

.footer a.has-text-grey-light {
  transition: color 0.3s ease;
}

.footer a.has-text-grey-light:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* 8. Utility & Animation Classes
-------------------------------------------------- */
[data-animate] {
  opacity: 1;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.has-parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}


/* 9. Page-specific Styles
-------------------------------------------------- */
.page-content {
    padding-top: calc(var(--navbar-height) + 3rem);
    padding-bottom: 3rem;
}

.success-page-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background-color: var(--bg-light);
}

/* 10. Media Queries
-------------------------------------------------- */
@media screen and (max-width: 1023px) {
  .navbar-menu {
    background-color: #363636; /* Same as navbar-background from Bulma */
  }
}

@media screen and (max-width: 768px) {
  .section {
    padding: 3rem 1rem;
  }
  .title.is-1 {
      font-size: 2.5rem;
  }
  .subtitle.is-3 {
      font-size: 1.5rem;
  }
}