:root {
  --primary-color: #0A2A5A;
  --accent-color: #4ECDC4;
  --bg-color: #F7F9FC;
  --surface-color: #FFFFFF;
  --text-color: #333333;
  --heading-color: #000000;
  --border-color: #EAEAEA;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Arial', sans-serif;

  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-xxl: 48px;
  --sp-xxxl: 64px;
  --section-padding: clamp(4rem, 8vw, 6rem);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--heading-color);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(3rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--accent-color);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}
.container-narrow {
    max-width: 800px;
}

section {
    padding: var(--section-padding) 0;
}
.section-title {
    text-align: center;
    margin-bottom: var(--sp-xxxl);
}
.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: -48px auto 64px;
    font-size: 1.1rem;
}

/* Header */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-lg) var(--sp-xl);
  background-color: var(--bg-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}
.logo:hover {
    color: var(--primary-color);
}

.main-nav { display: block; }
.nav-links {
  list-style: none;
  display: flex;
  gap: var(--sp-xl);
}
.nav-link {
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--sp-sm) 0;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}
.nav-link.active {
    color: var(--accent-color);
}

/* CTA Button */
.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--surface-color);
  padding: var(--sp-md) var(--sp-lg);
  border-radius: 50px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.cta-button:hover {
  background-color: var(--accent-color);
  color: var(--surface-color);
  transform: translateY(-2px);
}
.cta-button-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.cta-button-outline:hover {
    background: var(--primary-color);
    color: var(--surface-color);
}

.header-cta { display: block; }

/* Mobile Nav */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.mobile-nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Hero - Editorial Style */
.hero-editorial {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: var(--surface-color);
    padding: var(--section-padding) 0;
}
.hero-content-editorial {
    position: relative;
    padding-right: 33%;
}
.hero-content-editorial h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1.1;
    margin-bottom: var(--sp-xl);
}
.hero-content-editorial p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 50ch;
}
.hero-image-accent-wrapper {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 30%;
    height: 60vh;
    max-height: 500px;
    z-index: 1;
}
.hero-image-accent {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 25% 100%, 0% 50%);
}
.page-hero-editorial {
    background-color: var(--surface-color);
    text-align: center;
}
.page-hero-editorial h1 { margin-bottom: var(--sp-md); }
.page-hero-editorial p { font-size: 1.2rem; }

/* Newspaper Layout */
.newspaper-layout {
  column-count: 2;
  column-gap: var(--sp-xxxl);
}
.newspaper-layout-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--sp-xxxl);
    align-items: center;
}
.about-short-image img { border-radius: var(--sp-sm); }
.benefit-card {
    break-inside: avoid;
    margin-bottom: var(--sp-xxxl);
}
.benefit-card h3 { margin-bottom: var(--sp-sm); }

/* Popular Courses */
.popular-courses { background-color: var(--surface-color); }
.course-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--sp-xl);
}
.category-card {
    background: var(--surface-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-radius: var(--sp-sm);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.category-card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.category-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.category-card-content { padding: var(--sp-lg); }
.category-card-content h3 { margin-bottom: var(--sp-sm); }
.link-arrow {
    display: inline-block;
    margin-top: var(--sp-md);
    font-weight: bold;
}

/* Testimonials Editorial */
.testimonials-editorial .container {
    display: flex;
    flex-direction: column;
    gap: 8rem;
}
.pull-quote {
    position: relative;
    padding: 0 var(--sp-xxxl);
    display: grid;
    grid-template-columns: 3fr 1fr;
    align-items: center;
    gap: var(--sp-xxxl);
}
.pull-quote.reverse {
    grid-template-columns: 1fr 3fr;
}
.pull-quote.reverse blockquote,
.pull-quote.reverse cite {
    grid-column: 2 / 3;
}
.pull-quote.reverse img {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}
.pull-quote::before {
    content: '“';
    position: absolute;
    top: -2rem;
    left: 0;
    font-size: 8rem;
    font-family: serif;
    color: var(--primary-color);
    opacity: 0.1;
    line-height: 1;
}
.pull-quote blockquote {
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: var(--sp-md);
    font-family: serif;
}
.pull-quote cite {
    font-weight: bold;
    font-style: normal;
}
.pull-quote img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    justify-self: center;
}

/* Stats Section */
.stats-section { background-color: var(--primary-color); color: var(--surface-color); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--sp-xxl);
    text-align: center;
}
.stat-item .stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1;
    display: block;
    color: var(--accent-color);
}
.stat-item .stat-label { font-size: 1rem; opacity: 0.8; }

/* Partners Section */
.partners-section { background-color: var(--surface-color); }
.partners-title {
    text-align: center;
    margin-bottom: var(--sp-xxl);
    color: var(--text-color);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--sp-xxxl);
    filter: grayscale(100%);
    opacity: 0.6;
}
.logo-grid span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
}

/* Final CTA */
.final-cta-section {
    background: var(--bg-color);
    text-align: center;
}
.final-cta-section h2 { margin-bottom: var(--sp-md); }
.final-cta-section p { margin-bottom: var(--sp-xxl); }
.quick-signup-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-md);
    max-width: 800px;
    margin: 0 auto;
}
.quick-signup-form input, 
.quick-signup-form select {
    padding: var(--sp-md);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-family: inherit;
    font-size: 1rem;
    flex: 1 1 200px;
}
.quick-signup-form button {
    flex-basis: 150px;
}
.quick-signup-form input:focus, 
.quick-signup-form select:focus {
    outline: 2px solid var(--accent-color);
    border-color: var(--accent-color);
}


/* Footer */
.main-footer {
  background-color: var(--primary-color);
  color: #a0aec0;
  padding: var(--sp-xl) 0;
  font-size: 0.9rem;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-lg);
}
.footer-left .logo { color: var(--surface-color); }
.footer-left p { margin-top: var(--sp-sm); }
.footer-nav {
  display: flex;
  gap: var(--sp-lg);
}
.footer-nav a { color: #a0aec0; }
.footer-nav a:hover { color: var(--surface-color); }
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--sp-sm);
}
.footer-right a { color: #a0aec0; }
.footer-right a:hover { color: var(--surface-color); }

/* About Page */
.journey-section { background-color: var(--surface-color); }
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}
.timeline-item {
    padding: var(--sp-md) var(--sp-xxl);
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item:nth-child(odd)::before, .timeline-item:nth-child(even)::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--surface-color);
    border: 3px solid var(--accent-color);
    top: 24px;
    z-index: 1;
}
.timeline-item:nth-child(odd)::before { right: -8px; }
.timeline-item:nth-child(even)::before { left: -8px; }
.timeline-year {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: var(--sp-sm);
}
.mission-values { background-color: var(--bg-color); }
.mission-statement { text-align: center; margin-bottom: var(--sp-xxxl); }
.mission-statement p { font-size: 1.25rem; max-width: 60ch; margin: 0 auto; }
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--sp-xl);
    margin-bottom: var(--sp-xxxl);
}
.value-card { padding: var(--sp-lg); }
.value-card h3 { margin-bottom: var(--sp-sm); }
.about-image-full img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--sp-sm);
}
.team-section { background-color: var(--surface-color); }
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--sp-xl);
}
.team-member { text-align: center; }
.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--sp-md);
    box-shadow: 0 0 0 5px var(--surface-color), 0 0 0 7px var(--border-color);
}
.team-member h3 { margin-bottom: var(--sp-xs); }
.team-member p { font-size: 0.9rem; color: #777; }
.achievements-section { background-color: var(--bg-color); }

/* Services Page - Course Catalog */
.course-catalog .container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--sp-xxxl);
}
.filters {
    position: sticky;
    top: 100px;
    align-self: start;
}
.filters h3 { margin-bottom: var(--sp-lg); }
.filter-group { margin-bottom: var(--sp-lg); }
.filter-group label { font-weight: bold; display: block; margin-bottom: var(--sp-sm); }
.filter-group select, .filter-group input[type="checkbox"] { width: 100%; }
.filter-group select {
    padding: var(--sp-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--sp-xs);
}
.checkbox-group { display: flex; align-items: center; gap: var(--sp-sm); }
.checkbox-group input { width: auto; }
.masonry-grid {
    column-count: 2;
    column-gap: var(--sp-xl);
}
.course-card-masonry {
    background: var(--surface-color);
    border-radius: var(--sp-sm);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: var(--sp-xl);
    break-inside: avoid;
    transition: transform 0.3s ease;
}
.course-card-masonry:hover { transform: translateY(-5px); }
.course-card-masonry img { width: 100%; height: auto; object-fit: cover; }
.course-card-content { padding: var(--sp-lg); }
.course-card-content h3 { margin-bottom: var(--sp-sm); }
.course-card-content p { font-size: 0.9rem; margin-bottom: var(--sp-md); }
.instructor {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: var(--sp-sm);
    display: block;
}
.course-meta {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: var(--sp-md);
}
.corporate-training { background-color: var(--surface-color); }

/* FAQ Section */
.faq-section { background: var(--bg-color); }
.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: var(--sp-lg) 0;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: var(--font-heading);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after {
    content: '+';
    font-size: 2rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-answer p { padding-top: var(--sp-md); }
.faq-item.active .faq-answer {
    max-height: 300px;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--sp-xxxl);
}
.contact-form-wrapper h2, .contact-info-wrapper h2 {
    margin-bottom: var(--sp-xl);
}
.form-group {
    margin-bottom: var(--sp-lg);
}
.form-group label {
    display: block;
    margin-bottom: var(--sp-sm);
    font-weight: bold;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: var(--sp-md);
    border: 1px solid var(--border-color);
    border-radius: var(--sp-xs);
    font-size: 1rem;
    font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus {
    outline: 2px solid var(--accent-color);
    border-color: var(--accent-color);
}
.contact-info-item {
    margin-bottom: var(--sp-xl);
}
.contact-info-item h3 {
    margin-bottom: var(--sp-sm);
    font-size: 1.1rem;
}
.social-links { display: flex; gap: var(--sp-md); }
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    font-weight: bold;
}
.social-links a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--surface-color);
}
.map-container {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.map-section { background-color: var(--surface-color); }

/* Legal Content */
.legal-content h3 { margin: var(--sp-xl) 0 var(--sp-md); }
.legal-content p { margin-bottom: var(--sp-md); }

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 42, 90, 0.95);
    color: var(--surface-color);
    padding: var(--sp-lg);
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-lg);
    z-index: 9999;
    backdrop-filter: blur(5px);
}
.cookie-banner a { color: var(--accent-color); font-weight: bold; }
.cookie-buttons { display: flex; gap: var(--sp-md); }
.cookie-btn-accept, .cookie-btn-decline {
    padding: var(--sp-sm) var(--sp-lg);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
}
.cookie-btn-accept { background: var(--accent-color); color: var(--primary-color); }
.cookie-btn-decline { background: transparent; color: var(--surface-color); border: 2px solid var(--surface-color); }

/* Responsiveness */
@media (max-width: 1024px) {
    h1 { font-size: clamp(2.5rem, 8vw, 4rem); }
    .hero-content-editorial { padding-right: 0; }
    .hero-image-accent-wrapper { display: none; }
    .course-catalog .container { grid-template-columns: 1fr; }
    .filters { position: static; margin-bottom: var(--sp-xxl); }
    .masonry-grid { column-count: 2; }
}

@media (max-width: 768px) {
    .newspaper-layout { column-count: 1; }
    .pull-quote, .pull-quote.reverse {
        grid-template-columns: 1fr;
        padding: var(--sp-xxl) 0;
    }
    .pull-quote img { grid-row: auto; margin-bottom: var(--sp-md); }
    .header-cta { display: none; }
    .mobile-nav-toggle { display: block; }
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
    }
    .main-nav.active { right: 0; }
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: var(--sp-xxl);
    }
    .nav-link { color: var(--surface-color); font-size: 1.2rem; }
    .nav-link.active, .nav-link:hover { color: var(--accent-color); }
    .nav-link::after { background-color: var(--accent-color); }
    .contact-grid { grid-template-columns: 1fr; }
    .masonry-grid { column-count: 1; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-right { align-items: center; }
    .timeline::after { left: 30px; }
    .timeline-item, .timeline-item:nth-child(even) { width: 100%; padding-left: 70px; padding-right: 25px; left: 0; text-align: left; }
    .timeline-item::before, .timeline-item:nth-child(even)::before, .timeline-item:nth-child(odd)::before { left: 22px; }
}