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

:root {
    --primary-bg: #F8F5F2;
    --text-dark: #333333;
    --footer-bg: #222222;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --border-color: #DDDDDD;
    --hover-color: #555555;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--primary-bg);
}

h1, h2, h3 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 400;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

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

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

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

/* Header */
.header {
    background-color: var(--primary-bg);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    font-size: 1rem;
    transition: color 0.3s ease;
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
}

.burger span {
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

.nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary-bg);
    border-top: 1px solid var(--border-color);
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
}

.nav-mobile.active {
    display: flex;
}

.main-content {
    min-height: calc(100vh - 200px);
}

.section {
    padding: 4rem 0;
}

.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-content.reverse {
    direction: rtl;
}

.section-content.reverse > * {
    direction: ltr;
}

.text-content h2 {
    margin-bottom: 1.5rem;
}

.text-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.image-container {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.placeholder-image {
    color: var(--text-dark);
    font-size: 1rem;
    text-align: center;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.course-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-image {
    width: 100%;
    height: 200px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.course-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.courses-grid .course-image img {
    border-radius: 8px 8px 0 0;
}

img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--text-dark);
    color: var(--white);
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-banner-text h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--white);
}

.cookie-banner-text p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #CCCCCC;
}

.cookie-banner-links {
    font-size: 0.8rem;
}

.cookie-banner-links a {
    color: var(--white);
    text-decoration: underline;
}

.cookie-banner-links a:hover {
    color: #CCCCCC;
}

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cookie-btn-accept {
    background-color: var(--white);
    color: var(--text-dark);
}

.cookie-btn-accept:hover {
    background-color: #CCCCCC;
}

.cookie-btn-decline {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.cookie-btn-decline:hover {
    background-color: var(--white);
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-banner-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        max-width: 120px;
    }
}

.course-content {
    padding: 1.5rem;
}

.course-content h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.course-content p {
    margin-bottom: 1rem;
    color: #666;
}

.course-meta {
    font-size: 0.9rem;
    color: #888;
}

.course-highlights {
    text-align: left;
    margin: 0.5rem 0 1rem;
    padding-left: 1.2rem;
    color: #555;
}

.course-highlights li {
    margin-bottom: 0.35rem;
    list-style: disc;
}

.form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 0;
    border: none;
    border-bottom: 2px solid var(--border-color);
    background: transparent;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--text-dark);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--text-dark);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
}

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

/* Alerts */
.alert {
    max-width: 820px;
    margin: 1rem auto 1.5rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
}

.alert.error {
    background-color: #FFECEC;
    color: #A10000;
    border: 1px solid #FFB3B3;
}

/* Contact form (match markup classes) */
.contact-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-field {
    flex: 1;
}

.form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 0.75rem 0;
    border: none;
    border-bottom: 2px solid var(--border-color);
    background: transparent;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-bottom-color: var(--text-dark);
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1rem;
    }
}

.section-centered {
    text-align: center;
    padding: 4rem 0;
}

.section-centered h2 {
    margin-bottom: 1rem;
}

.section-centered p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: #CCCCCC;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #AAAAAA;
}

.footer-bottom a {
    color: inherit;
}

/* Centered values block on About page */
.values-centered {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.values-centered h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.values-centered ul {
    margin: 0 auto 1rem;
    padding-left: 0;
    list-style-position: inside;
    text-align: center;
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .burger {
        display: flex;
    }
    
    .section-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-content.reverse {
        direction: ltr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 2rem 0;
    }
    
    .section-content {
        gap: 1.5rem;
    }
    
    .image-container {
        height: 250px;
    }
    
    .image-container img {
        max-height: 250px;
    }
    
    .course-image {
        height: 150px;
    }
    
    .course-image img {
        max-height: 150px;
    }
    
    ul {
        padding-left: 1rem !important;
        margin-left: 0 !important;
    }
    
    li {
        margin-bottom: 0.5rem;
        padding-left: 0.5rem;
    }
    
    .nav-mobile {
        position: static;
        display: none;
        background-color: transparent;
        border: none;
        padding: 0;
    }
    
    .nav-mobile.active {
        display: flex;
        margin-top: 1rem;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
        margin: 0.25rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px;
    }
    
    ul {
        padding-left: 0.8rem !important;
        max-width: 100% !important;
    }
    
    li {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}
