:root {
 --primary-color: #169b62;
 --primary-dark: #0f6c44;
 --bg-light: #f7f7f7;
 --bg-dark: #2c3e50;
 --bg-dark-green: #0f3d24;
 --text-dark: #333333;
 --text-light: #666666;
 --text-white: #ffffff;
 --border-color: #e0e0e0;
 --radius-sm: 4px;
 --radius-md: 8px;
 --radius-lg: 16px;
 --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
 --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
 --font-main: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
 --transition: all 0.3s ease-in-out;
}

/* --- Base & Typography --- */
*, *::before, *::after {
 box-sizing: border-box;
 margin: 0;
 padding: 0;
}

html {
 scroll-behavior: smooth;
}

body {
 font-family: var(--font-main);
 font-size: 16px;
 line-height: 1.7;
 color: var(--text-light);
 background-color: var(--text-white);
 -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
 font-weight: 700;
 line-height: 1.3;
 color: var(--text-dark);
 margin-bottom: 0.5em;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }
a { color: var(--primary-color); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style-position: inside; }

/* --- Header --- */
.header {
 position: fixed;
 top: 0;
 left: 0;
 right: 0;
 z-index: 1000;
 background: rgba(255, 255, 255, 0.85);
 backdrop-filter: blur(10px);
 box-shadow: var(--shadow-sm);
 transition: var(--transition);
}
.header.scrolled {
 background: rgba(255, 255, 255, 0.98);
 box-shadow: var(--shadow-md);
}
.nav {
 display: flex;
 justify-content: space-between;
 align-items: center;
 height: 80px;
}
.nav-logo {
 font-size: 1.75rem;
 font-weight: 900;
 color: var(--text-dark);
}
.nav-links {
 display: flex;
 list-style: none;
 gap: 40px;
}
.nav-links a {
 color: var(--text-light);
 font-weight: 500;
 position: relative;
 padding: 8px 0;
}
.nav-links a::after {
 content: '';
 position: absolute;
 bottom: 0;
 left: 0;
 width: 0;
 height: 2px;
 background-color: var(--primary-color);
 transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
 color: var(--text-dark);
}
.nav-links a:hover::after, .nav-links a.active::after {
 width: 100%;
}
.nav-toggle {
 display: none;
 background: none;
 border: none;
 cursor: pointer;
}
.nav-toggle span {
 display: block;
 width: 25px;
 height: 2px;
 background-color: var(--text-dark);
 margin: 6px 0;
 transition: var(--transition);
}

/* --- Buttons --- */
.btn {
 display: inline-block;
 padding: 12px 28px;
 font-weight: 700;
 border-radius: var(--radius-md);
 cursor: pointer;
 transition: var(--transition);
 border: 2px solid transparent;
 text-align: center;
}
.btn-primary {
 background-color: var(--primary-color);
 color: var(--text-white);
}
.btn-primary:hover {
 background-color: var(--primary-dark);
 color: var(--text-white);
 transform: translateY(-2px);
}
.btn-secondary {
 border-color: var(--primary-color);
 color: var(--primary-color);
}
.btn-secondary:hover {
 background-color: var(--primary-color);
 color: var(--text-white);
 transform: translateY(-2px);
}
.btn-white {
 background: var(--text-white);
 color: var(--primary-color);
}
.btn-white:hover {
 background: var(--bg-light);
 transform: translateY(-2px);
}
.btn-sm {
 padding: 8px 16px;
 font-size: 0.9rem;
}

/* --- Sections --- */
.section {
 padding: 100px 0;
 width: 100%;
}
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); color: var(--text-white); }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: var(--text-white); }
.bg-dark-green { background-color: var(--bg-dark-green); color: var(--text-white); }
.bg-dark-green h1, .bg-dark-green h2, .bg-dark-green h3, .bg-dark-green cite { color: var(--text-white); }

.section-header {
 text-align: center;
 max-width: 750px;
 margin: 0 auto 60px;
}
.section-label {
 display: inline-block;
 padding: 6px 16px;
 background-color: var(--primary-color);
 color: var(--text-white);
 border-radius: 20px;
 font-weight: 700;
 font-size: 0.9rem;
 margin-bottom: 1rem;
 text-transform: uppercase;
 letter-spacing: 1px;
}
.section-title { font-weight: 900; }
.section-subtitle { font-size: 1.15rem; color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* General Grid */
.grid-2 { display: grid; gap: 30px; grid-template-columns: 1fr 1fr; }
.grid-3 { display: grid; gap: 30px; grid-template-columns: repeat(3, 1fr); align-items: start; }
.grid-4 { display: grid; gap: 30px; grid-template-columns: repeat(4, 1fr); }

/* --- Hero Section --- */
.hero-section {
 display: flex;
 align-items: center;
 justify-content: center;
 min-height: 90vh;
 padding: 80px 0;
 text-align: center;
 position: relative;
 background-size: cover;
 background-position: center;
 color: var(--text-white);
}
.hero-section::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 background: rgba(15, 61, 36, 0.7);
}
.hero-content {
 position: relative;
 max-width: 800px;
}
.hero-title {
 font-size: clamp(3rem, 6vw, 4.5rem);
 font-weight: 900;
 margin-bottom: 0.5em;
 color: var(--text-white);
}
.hero-subtitle {
 font-size: 1.25rem;
 max-width: 600px;
 margin: 0 auto 2rem;
 line-height: 1.6;
}
.hero-actions {
 display: flex;
 justify-content: center;
 gap: 20px;
 margin-top: 30px;
}

/* Feature Cards */
.feature-card {
 background-color: var(--text-white);
 padding: 30px;
 border-radius: var(--radius-lg);
 text-align: center;
 box-shadow: var(--shadow-sm);
 transition: var(--transition);
}
.feature-card:hover {
 transform: translateY(-8px);
 box-shadow: var(--shadow-md);
}
.feature-icon {
 width: 60px;
 height: 60px;
 margin: 0 auto 20px;
 background-color: var(--primary-color);
 color: var(--text-white);
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
}
.feature-icon svg {
 width: 30px;
 height: 30px;
}

/* Course Cards (Horizontal Scroll) */
.horizontal-scroll-container {
 overflow: hidden;
 position: relative;
}
.horizontal-scroll {
 display: flex;
 overflow-x: auto;
 padding-bottom: 20px;
 gap: 30px;
 -ms-overflow-style: none; /* IE and Edge */
 scrollbar-width: none; /* Firefox */
}
.horizontal-scroll::-webkit-scrollbar {
 display: none;
}
.course-card {
 flex: 0 0 300px;
 background-color: var(--text-white);
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-sm);
 overflow: hidden;
 transition: var(--transition);
 display: flex;
 flex-direction: column;
}
.course-card:hover {
 transform: translateY(-5px);
 box-shadow: var(--shadow-md);
}
.course-card-img {
 width: 100%;
 height: 180px;
 object-fit: cover;
}
.course-card-body {
 padding: 25px;
 flex-grow: 1;
 display: flex;
 flex-direction: column;
}
.course-card-body h3 {
 font-size: 1.25rem;
 margin-bottom: 10px;
}
.course-card-body p {
 flex-grow: 1;
 margin-bottom: 20px;
}
.card-button {
 display: inline-block;
 padding: 10px 20px;
 border: 2px solid var(--primary-color);
 border-radius: var(--radius-md);
 color: var(--primary-color);
 font-weight: 600;
 transition: var(--transition);
 align-self: flex-start;
}
.card-button:hover {
 background-color: var(--primary-color);
 color: white;
}

/* Testimonial Section */
.testimonial-section {
 text-align: center;
}
.testimonial-img {
 width: 100px;
 height: 100px;
 border-radius: 50%;
 object-fit: cover;
 margin-bottom: 20px;
 border: 4px solid var(--text-white);
}
.testimonial-section blockquote {
 font-size: 1.5rem;
 font-weight: 500;
 line-height: 1.5;
 max-width: 800px;
 margin: 0 auto 20px;
 font-style: italic;
}
.testimonial-section cite {
 font-style: normal;
 font-weight: 700;
 font-size: 1rem;
}

/* Timeline/Process */
.timeline {
 display: grid;
 grid-template-columns: repeat(4, 1fr);
 gap: 40px;
 max-width: 1100px;
 margin: 0 auto;
 position: relative;
}
.timeline::before {
 content: '';
 position: absolute;
 top: 25px;
 left: 40px;
 right: 40px;
 height: 2px;
 background-color: var(--border-color);
 z-index: 0;
}
.timeline-step {
 text-align: center;
 position: relative;
 padding-top: 50px;
}
.timeline-number {
 width: 50px;
 height: 50px;
 border-radius: 50%;
 background-color: var(--text-white);
 border: 2px solid var(--primary-color);
 color: var(--primary-color);
 display: flex;
 align-items: center;
 justify-content: center;
 font-weight: 700;
 font-size: 1.5rem;
 margin: 0 auto 20px;
 position: relative;
 z-index: 1;
}
.timeline-step h3 {
 font-size: 1.2rem;
}

/* --- Sticky CTA Bar --- */
.sticky-cta-bar {
 position: fixed;
 bottom: -100px;
 left: 0;
 right: 0;
 background-color: var(--primary-color);
 color: var(--text-white);
 padding: 15px 30px;
 display: flex;
 justify-content: center;
 align-items: center;
 gap: 20px;
 box-shadow: 0 -5px 15px rgba(0,0,0,0.15);
 z-index: 998;
 transition: bottom 0.5s ease-in-out;
}
.sticky-cta-bar.visible {
 bottom: 0;
}
.sticky-cta-bar p {
 margin: 0;
 font-weight: 500;
 font-size: 1.1rem;
}

/* --- Footer --- */
.footer {
 background-color: var(--bg-dark);
 color: #a9a9a9;
 padding: 80px 0 30px;
 margin-top: 0; /* Changed from 80px to align with Bold Blocks */
}

.footer-grid {
 display: grid;
 grid-template-columns: 2fr 1fr 1fr 1.5fr;
 gap: 50px;
 margin-bottom: 50px;
}
.footer-logo {
 font-size: 1.75rem;
 font-weight: 900;
 color: var(--text-white);
 margin-bottom: 1rem;
 display: inline-block;
}
.footer-description {
 margin-bottom: 20px;
 line-height: 1.6;
}
.footer-social {
 display: flex;
 gap: 15px;
}
.footer-social a {
 color: var(--text-white);
 font-size: 1.2rem;
}
.footer-heading {
 font-size: 1.1rem;
 font-weight: 700;
 color: var(--text-white);
 margin-bottom: 20px;
 text-transform: uppercase;
}
.footer-links {
 list-style: none;
}
.footer-links li {
 margin-bottom: 12px;
}
.footer-links a {
 color: #a9a9a9;
}
.footer-links a:hover {
 color: var(--text-white);
}
.footer-contact-item {
 display: flex;
 align-items: flex-start;
 gap: 15px;
 margin-bottom: 15px;
}
.footer-contact-item span {
 color: var(--primary-color);
 margin-top: 3px;
}
.footer-contact-item p, .footer-contact-item a {
 margin: 0;
 line-height: 1.6;
 color: #a9a9a9;
}
.footer-contact-item a:hover {
 color: white;
}

.footer-bottom {
 border-top: 1px solid rgba(255, 255, 255, 0.1);
 padding-top: 30px;
 display: flex;
 justify-content: space-between;
 align-items: center;
 font-size: 0.9rem;
}
.footer-legal-links {
 display: flex;
 gap: 20px;
}
.footer-legal-links a {
 color: #a9a9a9;
}

/* --- Page-specific Styles --- */

/* Page Header */
.page-header-section {
 padding: 150px 0 80px;
 background-color: var(--bg-light);
 text-align: center;
}
.page-header-section h1 { font-weight: 900; }
.page-header-section p { font-size: 1.2rem; color: var(--text-light); max-width: 600px; margin: 1rem auto 0; }

/* Media Object (About page) */
.media-object {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 60px;
 align-items: center;
}
.media-object.reverse {
 grid-template-columns: 1fr 1fr;
}
.media-object.reverse .media-visual { grid-column: 2; }
.media-object.reverse .media-copy { grid-column: 1; grid-row: 1; }
.media-visual img {
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-md);
 width: 100%;
 height: auto;
 max-height: 450px;
 object-fit:cover;
}
.media-copy ul {
 list-style: none;
 padding-left: 0;
}
.media-copy ul li {
 padding-left: 25px;
 position: relative;
 margin-bottom: 10px;
}
.media-copy ul li::before {
 content: '';
 position: absolute;
 left: 0;
 color: var(--primary-color);
 font-weight: 700;
}

/* Team Cards */
.team-card {
 text-align: center;
}
.team-photo {
 width: 150px;
 height: 150px;
 border-radius: 50%;
 object-fit: cover;
 margin: 0 auto 20px;
 box-shadow: var(--shadow-md);
}
.team-title {
 color: var(--primary-color);
 font-weight: 700;
 margin-bottom: 5px;
}
.team-bio {
 font-size: 0.95rem;
}

/* Service Cards (Courses Page) */
.service-card {
 background: white;
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-sm);
 overflow: hidden;
 transition: var(--transition);
 display: flex;
 flex-direction: column;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.service-card-img { width: 100%; height: 220px; object-fit: cover; }
.service-card-body { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.service-card-body h3 { font-size: 1.3rem; margin-bottom: 10px; }
.service-card-body p { flex-grow: 1; margin-bottom: 20px; }

/* FAQ */
.faq-grid {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 30px;
}
.faq-item {
 background-color: var(--text-white);
 padding: 25px;
 border-radius: var(--radius-md);
}
.faq-item h3 { font-size: 1.2rem; }

/* Contact Page */
.contact-grid {
 display: grid;
 grid-template-columns: 2fr 1fr;
 gap: 60px;
}
.contact-form-container h2, .contact-info-container h2 {
 font-size: 2rem;
 font-weight: 700;
 margin-bottom: 25px;
}
.contact-form .form-group {
 margin-bottom: 20px;
}
.contact-form label {
 display: block;
 margin-bottom: 8px;
 font-weight: 500;
}
.contact-form input, .contact-form textarea {
 width: 100%;
 padding: 15px;
 border: 1px solid var(--border-color);
 border-radius: var(--radius-md);
 font-family: var(--font-main);
 font-size: 1rem;
}
.contact-form input:focus, .contact-form textarea:focus {
 outline: none;
 border-color: var(--primary-color);
 box-shadow: 0 0 0 3px rgba(22, 155, 98, 0.2);
}
.contact-form textarea {
 min-height: 150px;
 resize: vertical;
}
.contact-info-item {
 margin-bottom: 30px;
}
.contact-info-item h3 {
 font-size: 1.1rem;
 color: var(--primary-color);
 margin-bottom: 5px;
}
.contact-info-item p, .contact-info-item a {
 margin: 0;
 font-size: 1rem;
 color: var(--text-light);
}
.map-container {
 padding-top: 80px;
}

/* Legal pages */
.legal-page .section { padding: 80px 0; }
.legal-content h2 { margin-top: 2rem; margin-bottom: 1rem; font-size: 1.75rem; }
.legal-content h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; font-size: 1.3rem; }
.legal-content p, .legal-content ul { margin-bottom: 1rem; }
.legal-content ul { margin-left: 20px; }
.cookie-table {
 width: 100%;
 border-collapse: collapse;
 margin: 2rem 0;
}
.cookie-table th, .cookie-table td {
 border: 1px solid var(--border-color);
 padding: 12px;
 text-align: left;
}
.cookie-table th {
 background-color: var(--bg-light);
 font-weight: 700;
}

/* --- Cookie Banner --- */
#cookie-banner {
 display: none;
 position: fixed;
 bottom: 20px;
 left: 20px;
 right: 20px;
 max-width: 500px;
 background-color: var(--bg-dark);
 color: var(--text-white);
 padding: 20px;
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-md);
 z-index: 1001;
 align-items: center;
 justify-content: space-between;
 gap: 20px;
}
#cookie-banner p { margin: 0; font-size: 0.95rem; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0;}

/* --- Animations --- */
.animate-on-scroll {
 opacity: 0;
 transform: translateY(30px);
 transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.visible {
 opacity: 1;
 transform: translateY(0);
}
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

/* --- Responsive Design --- */
@media (max-width: 992px) {
 .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
 .timeline { grid-template-columns: repeat(2, 1fr); }
 .timeline::before { display: none; }
 .footer-grid { grid-template-columns: 1fr 1fr; }
 .media-object, .media-object.reverse { grid-template-columns: 1fr; }
 .media-object.reverse .media-visual { grid-column: 1; }
 .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
 h1 { font-size: 2.2rem; }
 h2 { font-size: 1.8rem; }
 .section { padding: 80px 0; }
 
 .nav-toggle { display: block; z-index: 1001;}
 .nav-links {
 position: fixed;
 top: 0;
 right: -100%;
 width: 70%;
 height: 100vh;
 background-color: var(--text-white);
 flex-direction: column;
 padding: 100px 40px;
 gap: 25px;
 box-shadow: -5px 0 15px rgba(0,0,0,0.1);
 transition: right 0.4s ease-in-out;
 }
 .nav-links.active { right: 0; }

 .hero-actions { flex-direction: column; }
 .grid-2, .grid-3 { grid-template-columns: 1fr; }
 .timeline { grid-template-columns: 1fr; }
 .footer-grid { grid-template-columns: 1fr; text-align: center; }
 .footer-social { justify-content: center; }
 .footer-bottom { flex-direction: column; gap: 15px; }
 #cookie-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px){
 .course-card {
 flex-basis: 280px;
 }
}