/*
* style.css
* Cursos de Inglés en Colombia
* Design System: Creative
* Color Scheme: Tetrad
* Animation Style: Bouncy/Elastic
*/

/* --- CSS Variables --- */
:root {
    /* Tetradic Color Scheme */
    --primary-color: #0077B6;      /* Vibrant Blue */
    --secondary-color: #E71D36;     /* Bold Red */
    --accent-color-1: #2EC4B6;      /* Teal/Green */
    --accent-color-2: #FF9F1C;      /* Bright Orange */

    /* Neutral Colors */
    --dark-color: #212529;
    --light-color: #F8F9FA;
    --text-color: #333333;
    --text-light: #FFFFFF;
    --border-color: #DEE2E6;

    /* Fonts */
    --font-header: 'Archivo Black', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Spacing */
    --section-padding: 6rem 1.5rem;
    --card-padding: 1.5rem;
    --border-radius: 12px;
}

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    background-color: var(--light-color);
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Adaptive Typography */
h1, .title.is-1 {
    font-family: var(--font-header);
    color: var(--dark-color);
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    line-height: 1.1;
}

h2, .title.is-2 {
    font-family: var(--font-header);
    color: var(--dark-color);
    font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
    line-height: 1.2;
}

h3, .title.is-3,
h4, .title.is-4,
h5, .title.is-5 {
    font-family: var(--font-header);
    color: var(--dark-color);
}

p, .subtitle {
    font-family: var(--font-body);
}

.section {
    padding: var(--section-padding);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Header & Navigation --- */
.navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.navbar.is-scrolled {
    background-color: rgba(33, 37, 41, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .navbar-item, .navbar .navbar-link {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--text-light);
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.navbar .navbar-item:hover, .navbar .navbar-link:hover {
    background-color: transparent !important;
    color: var(--accent-color-2) !important;
    transform: translateY(-2px);
}

.navbar-brand .logo-text {
    font-family: var(--font-header);
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--text-light);
}

.navbar-burger {
    color: var(--text-light);
}

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: rgba(33, 37, 41, 0.98);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    }
    .navbar-menu .navbar-item {
        text-align: center;
        padding: 1rem;
    }
}

/* --- Global Component Styles --- */

/* Buttons */
.button {
    font-family: var(--font-body);
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-width: 2px;
    border-style: solid;
}

.button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.button.is-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.button.is-primary:hover {
    background-color: var(--accent-color-1);
    border-color: var(--accent-color-1);
}

/* Forms */
.input, .textarea, .select select {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    box-shadow: none;
    transition: all 0.3s ease;
}

.input:focus, .textarea:focus, .select select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.25);
}

.label {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--dark-color);
}

/* Cards */
.card {
    background-color: var(--text-light);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.card .card-image .image img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.card-content {
    padding: var(--card-padding);
    text-align: center; /* Center content in cards */
}

/* Centering content inside cards */
.article-card, .award-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.article-card .card-image {
    width: 100%;
}
.article-card .card-content {
    flex-grow: 1;
}

/* --- Hero Section --- */
#hero {
    color: var(--text-light);
}

#hero .hero-background {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect base */
}

#hero .title.is-1, #hero .subtitle.is-3 {
    color: var(--text-light); /* Enforce white text */
}

/* --- Awards Section --- */
#awards .award-card .title.is-1 {
    font-size: 3.5rem;
    line-height: 1;
}

#awards .award-card .title.is-4 {
    color: var(--dark-color);
}

#awards .award-card .subtitle.is-6 {
    color: #6c757d;
}

/* --- Sustainability Section --- */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input { 
  opacity: 1;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--accent-color-1);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.image-container img.is-rounded {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- Events Calendar Section --- */
.event-card .media {
    align-items: center;
}
.event-card .media-left {
    margin-right: 1.5rem;
}
.date-box {
    background-color: var(--secondary-color);
    color: var(--text-light);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    width: 80px;
}
.date-box .day {
    font-family: var(--font-header);
    font-size: 2rem;
    line-height: 1;
}
.date-box .month {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 700;
}
.event-card .media-content {
    text-align: left;
}
.event-card p {
    color: #6c757d;
}

/* --- Insights Section --- */
.article-card .button.is-link.is-outlined {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: bold;
}
.article-card .button.is-link.is-outlined:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* --- External Resources Section --- */
.resource-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.resource-link {
    display: block;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    text-decoration: none;
    color: var(--text-color);
    background-color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.resource-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}
.resource-title {
    font-family: var(--font-header);
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    display: block;
}
.resource-description {
    font-size: 0.9rem;
    color: #6c757d;
}


/* --- Footer --- */
.footer {
    padding: 4rem 1.5rem;
}
.footer .title {
    color: var(--text-light) !important;
}
.footer p {
    color: #adb5bd;
}
.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer ul li a {
    color: #adb5bd !important;
    padding: 0.25rem 0;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
}
.footer ul li a:hover {
    color: var(--accent-color-2) !important;
    transform: translateX(5px);
}


/* --- Special Page Styles --- */

/* Privacy & Terms Pages */
.legal-content, .about-content {
    padding-top: 100px; /* Offset for fixed header */
    padding-bottom: 50px;
}
.legal-content h1, .about-content h1,
.legal-content h2, .about-content h2 {
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

/* Success Page */
.success-page {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    background-color: var(--light-color);
}
.success-box {
    background-color: var(--text-light);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 600px;
}
.success-box .icon {
    font-size: 4rem;
    color: var(--accent-color-1);
    margin-bottom: 1rem;
}

/* --- Animations & Transitions --- */
[data-animate] {
    opacity: 1;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* --- Media Queries --- */
@media screen and (max-width: 768px) {
    .section {
        padding: 4rem 1.5rem;
    }

    h1, .title.is-1 {
        font-size: 2.2rem;
    }

    h2, .title.is-2 {
        font-size: 1.8rem;
    }

    /* Stack columns on mobile */
    .columns.is-vcentered {
        flex-direction: column-reverse;
    }
    
    .columns.is-vcentered .column:last-child {
        margin-bottom: 2rem;
    }
}