:root {
 --primary-color: #0d4f8b; /* Deep Blue */
 --secondary-color: #0891b2; /* Tech Cyan */
 --light-gray: #4a5568; /* Steel Gray */
 --text-dark: #2d3748;
 --text-light: #718096;
 --bg-light: #f7fafc;
 --bg-white: #ffffff;
 --border-color: #e2e8f0;
 --radius-md: 8px;
 --radius-lg: 16px;
 --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
 --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
 --transition: all 0.3s ease-in-out;
 --font-main: 'Inter', sans-serif;
 --air-section-padding: 140px 24px;
 --air-gap: 80px;
}

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

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

body {
 font-family: var(--font-main);
 line-height: 1.7;
 color: var(--text-dark);
 background-color: var(--bg-white);
 -webkit-font-smoothing: antialiased;
}

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

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }

p {
 margin-bottom: 1.5rem;
 color: var(--text-light);
}

a {
 color: var(--primary-color);
 text-decoration: none;
 transition: var(--transition);
}

a:hover {
 color: var(--secondary-color);
}

.header {
 position: fixed;
 top: 0;
 left: 0;
 right: 0;
 z-index: 1000;
 background: rgba(255, 255, 255, 0.8);
 backdrop-filter: blur(10px);
 -webkit-backdrop-filter: blur(10px);
 transition: all 0.3s ease;
 border-bottom: 1px solid transparent;
}

.header.scrolled {
 background: rgba(255, 255, 255, 0.95);
 border-bottom-color: var(--border-color);
}

.nav-container {
 max-width: 1400px;
 margin: 0 auto;
 padding: 0 48px;
 height: 90px;
 display: flex;
 align-items: center;
 justify-content: space-between;
}

.nav-logo {
 font-size: 1.5rem;
 font-weight: 700;
 color: var(--text-dark);
}

.nav-links {
 list-style: none;
 display: flex;
 gap: 60px;
}

.nav-links a {
 font-weight: 500;
 color: var(--text-dark);
 position: relative;
 padding: 8px 0;
}

.nav-links a::after {
 content: '';
 position: absolute;
 bottom: 0;
 left: 0;
 width: 0;
 height: 2px;
 background: var(--primary-color);
 transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
 width: 100%;
}

.nav-toggle {
 display: none;
 background: none;
 border: none;
 cursor: pointer;
 padding: 8px;
 z-index: 1001;
}

.nav-toggle span {
 display: block;
 width: 28px;
 height: 3px;
 background: var(--text-dark);
 margin: 6px 0;
 transition: var(--transition);
}

.btn {
 display: inline-block;
 padding: 16px 40px;
 font-size: 1rem;
 font-weight: 600;
 text-align: center;
 border-radius: var(--radius-md);
 cursor: pointer;
 transition: var(--transition);
 border: 2px solid transparent;
}

.btn-primary {
 background-color: var(--primary-color);
 color: var(--bg-white);
}

.btn-primary:hover {
 background-color: var(--secondary-color);
 color: var(--bg-white);
 transform: translateY(-3px);
 box-shadow: var(--shadow-md);
}

.btn-secondary {
 background-color: transparent;
 color: var(--primary-color);
 border-color: var(--primary-color);
}

.btn-secondary:hover {
 background-color: var(--primary-color);
 color: white;
}

.hero {
 min-height: 80vh;
 display: flex;
 align-items: center;
 justify-content: center;
 text-align: center;
 background-color: var(--bg-white);
 padding: var(--air-section-padding);
}

.hero-content {
 max-width: 800px;
}

.hero h1 {
 margin-bottom: 2.5rem;
}

.hero-subtitle {
 font-size: 1.25rem;
 max-width: 600px;
 margin: -2rem auto 2.5rem;
}

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

.section.light-bg {
 background-color: var(--bg-light);
}

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

.section-header {
 text-align: center;
 max-width: 800px;
 margin: 0 auto 5rem;
}

.section-label {
 display: inline-block;
 background-color: var(--secondary-color);
 color: white;
 padding: 8px 20px;
 border-radius: 99px;
 font-size: 0.9rem;
 font-weight: 500;
 margin-bottom: 1.5rem;
 text-transform: uppercase;
 letter-spacing: 1px;
}

.services-grid, .courses-grid {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: var(--air-gap);
 justify-items: center;
}

.card {
 background: var(--bg-white);
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-sm);
 transition: var(--transition);
 overflow: hidden;
 display: flex;
 flex-direction: column;
 max-width: 380px;
}

.card:hover {
 transform: translateY(-10px);
 box-shadow: var(--shadow-md);
}

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

.card-body {
 padding: 40px;
 display: flex;
 flex-direction: column;
 flex-grow: 1;
}

.card-title {
 font-size: 1.5rem;
 margin-bottom: 1rem;
}

.card-text {
 flex-grow: 1;
 margin-bottom: 2rem;
}

.media-object {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: var(--air-gap);
 align-items: center;
}

.media-object.reverse {
 grid-template-columns: 1fr 1fr;
}

.media-object.reverse .media-visual {
 order: 2;
}

.media-object.reverse .media-copy {
 order: 1;
}

.media-visual img {
 border-radius: var(--radius-lg);
 max-width: 100%;
 height: auto;
 box-shadow: var(--shadow-md);
}

.media-copy h2 {
 margin-bottom: 1.5rem;
}

.testimonial-section {
 padding: 160px 24px;
}

.testimonial-content {
 max-width: 700px;
 margin: 0 auto;
 text-align: center;
}

.testimonial-avatar {
 width: 120px;
 height: 120px;
 border-radius: 50%;
 object-fit: cover;
 margin-bottom: 2.5rem;
 box-shadow: var(--shadow-md);
}

.testimonial-content blockquote p {
 font-size: 1.75rem;
 font-weight: 500;
 line-height: 1.5;
 color: var(--text-dark);
 margin-bottom: 2rem;
}

.testimonial-content cite {
 font-style: normal;
 font-weight: 600;
 color: var(--light-gray);
}

.team-grid {
 display: grid;
 grid-template-columns: repeat(4, 1fr);
 gap: 60px;
}

.team-card {
 text-align: center;
}

.team-photo {
 width: 150px;
 height: 150px;
 border-radius: 50%;
 object-fit: cover;
 margin: 0 auto 1.5rem;
 box-shadow: var(--shadow-sm);
}

.team-name {
 font-size: 1.25rem;
 margin-bottom: 0.5rem;
}

.team-role {
 color: var(--secondary-color);
 font-weight: 500;
}

.values-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: 60px;
 margin-top: 4rem;
}

.value-item h3 {
 color: var(--primary-color);
 margin-bottom: 1rem;
}

.resources-list {
 display: grid;
 gap: 60px;
 max-width: 900px;
 margin: 0 auto;
}

.resource-item {
 background: var(--bg-light);
 padding: 40px;
 border-radius: var(--radius-lg);
 border-left: 5px solid var(--secondary-color);
}

.resource-item h3 {
 margin-bottom: 1rem;
}
.resource-item a {
 font-weight: 600;
}

.faq-list {
 max-width: 800px;
 margin: 0 auto;
 display: grid;
 gap: 20px;
}

.faq-item summary {
 font-size: 1.25rem;
 font-weight: 600;
 cursor: pointer;
 padding: 20px;
 background: white;
 border-radius: var(--radius-md);
 position: relative;
 list-style: none;
}
.faq-item summary::after {
 content: '+';
 position: absolute;
 right: 20px;
 font-size: 1.5rem;
 color: var(--primary-color);
}
.faq-item[open] summary::after {
 content: '-';
}

.faq-item p {
 padding: 20px;
 margin: 0;
 background: white;
 border-top: 1px solid var(--border-color);
}

.contact-layout {
 display: grid;
 grid-template-columns: 1.5fr 1fr;
 gap: var(--air-gap);
}

.contact-form .form-group {
 margin-bottom: 2.5rem;
}
.contact-form .form-group label {
 display: block;
 font-weight: 500;
 margin-bottom: 0.8rem;
}
.contact-form .form-control, .contact-form input, .contact-form textarea {
 width: 100%;
 padding: 16px;
 font-size: 1rem;
 border: 1px solid var(--border-color);
 border-radius: var(--radius-md);
 transition: var(--transition);
 background: var(--bg-light);
}
.contact-form input:focus, .contact-form textarea:focus {
 outline: none;
 border-color: var(--primary-color);
 box-shadow: 0 0 0 3px rgba(13, 79, 139, 0.1);
}
.contact-form textarea {
 min-height: 150px;
 resize: vertical;
}

.checkbox-group {
 display: flex;
 align-items: center;
 gap: 12px;
}

.checkbox-group input {
 width: auto;
}

.checkbox-group label {
 margin: 0;
 color: var(--text-light);
}

.contact-info-wrapper .contact-item {
 margin-bottom: 2.5rem;
}

.contact-info-wrapper h3 {
 font-size: 1rem;
 font-weight: 600;
 text-transform: uppercase;
 letter-spacing: 1px;
 color: var(--secondary-color);
 margin-bottom: 0.5rem;
}

.map-container {
 height: 450px;
 border-radius: var(--radius-lg);
 overflow: hidden;
 box-shadow: var(--shadow-md);
}

.thank-you-section {
 min-height: 60vh;
 display: flex;
 align-items: center;
 justify-content: center;
}

/* Legal pages */
.page-container {
 max-width: 900px;
 margin: 0 auto;
 padding: 120px 24px 80px;
}
.page-container h1 {
 margin-bottom: 1rem;
}
.page-container p em {
 display: block;
 margin-bottom: 3rem;
 color: var(--text-light);
}
.page-container section {
 margin-bottom: 3rem;
}
.page-container section h2 {
 font-size: 1.75rem;
 margin-bottom: 1.5rem;
 padding-bottom: 0.5rem;
 border-bottom: 2px solid var(--border-color);
}
.page-container ul {
 list-style-position: inside;
 padding-left: 20px;
 margin-bottom: 1.5rem;
}
.page-container li {
 margin-bottom: 0.8rem;
}

.footer {
 background-color: var(--text-dark);
 color: #a0aec0;
 padding: 80px 24px 40px;
 margin-top: 120px;
}

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

.footer-grid {
 display: grid;
 grid-template-columns: repeat(4, 1fr);
 gap: var(--air-gap);
 padding-bottom: 60px;
}

.footer-logo {
 font-size: 1.5rem;
 font-weight: 700;
 color: white;
 margin-bottom: 1.5rem;
 display: inline-block;
}

.footer-description {
 line-height: 1.8;
}

.footer-heading {
 font-size: 1rem;
 font-weight: 600;
 color: white;
 margin-bottom: 2rem;
 text-transform: uppercase;
 letter-spacing: 1px;
}

.footer-links, .footer-contact {
 list-style: none;
}

.footer-links li, .footer-contact li {
 margin-bottom: 1.5rem;
}

.footer-links a, .footer-contact a {
 color: #a0aec0;
}

.footer-links a:hover, .footer-contact a:hover {
 color: white;
}

.footer-bottom {
 border-top: 1px solid var(--light-gray);
 padding-top: 40px;
 display: flex;
 justify-content: space-between;
 align-items: center;
 font-size: 0.9rem;
}

.footer-legal {
 list-style: none;
 display: flex;
 gap: 40px;
}

#cookie-banner {
 position: fixed;
 bottom: 0;
 left: 0;
 right: 0;
 background: var(--text-dark);
 color: white;
 padding: 20px;
 display: none;
 align-items: center;
 justify-content: space-between;
 z-index: 1001;
 gap: 20px;
}

#cookie-banner p {
 margin: 0;
 color: white;
}

#cookie-banner a {
 color: var(--secondary-color);
 text-decoration: underline;
}

#cookie-banner div {
 display: flex;
 gap: 15px;
}

#cookie-banner button {
 padding: 10px 20px;
 border: none;
 border-radius: 5px;
 cursor: pointer;
}

#cookie-banner button:first-of-type {
 background: var(--secondary-color);
 color: white;
}

#cookie-banner button:last-of-type {
 background: var(--light-gray);
 color: white;
}

.input-error {
 border-color: #e53e3e !important;
}
.field-error {
 color: #c53030;
 font-size: 0.875rem;
 margin-top: 0.5rem;
}
.spinner {
 display: inline-block;
 width: 16px; height: 16px;
 border: 2px solid rgba(255,255,255,0.3);
 border-radius: 50%;
 border-top-color: #fff;
 animation: spin 0.8s linear infinite;
 margin-right: 8px;
 vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
button[disabled] { cursor: not-allowed; opacity: 0.7; }

/* Responsive */
@media (max-width: 1024px) {
 .nav-links { gap: 40px; }
 .services-grid, .courses-grid { grid-template-columns: repeat(2, 1fr); }
 .team-grid { grid-template-columns: repeat(2, 1fr); }
 .footer-grid { grid-template-columns: repeat(2, 1fr); }
 .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
 .nav-container { padding: 0 24px; }
 .nav-links-container {
 position: fixed;
 top: 0;
 right: -100%;
 width: 100%;
 height: 100vh;
 background: white;
 transition: right 0.4s ease-in-out;
 }
 .nav-links-container.active {
 right: 0;
 }
 .nav-links {
 flex-direction: column;
 justify-content: center;
 align-items: center;
 height: 100%;
 gap: 40px;
 }
 .nav-links a {
 font-size: 1.5rem;
 }
 .nav-toggle { display: block; }
 .nav-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
 .nav-toggle.active span:nth-child(2) { opacity: 0; }
 .nav-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

 :root {
 --air-section-padding: 100px 24px;
 --air-gap: 40px;
 }
 
 .services-grid, .courses-grid { grid-template-columns: 1fr; }
 .media-object, .media-object.reverse { grid-template-columns: 1fr; }
 .media-object.reverse .media-visual { order: 1; }
 .media-object.reverse .media-copy { order: 2; }

 .footer-grid { grid-template-columns: 1fr; text-align: center; }
 .footer-bottom { flex-direction: column; gap: 20px; }
 .footer-legal { gap: 20px; }
 #cookie-banner { flex-direction: column; text-align: center; }
}