/* Base styles */
:root {
    --primary-color: #1a4d2e;
    --secondary-color: #2d6a4f;
    --accent-color: #52b788;
    --light-accent: #b7e4c7;
    --text-color: #333333;
    --light-text: #666666;
    --background: #ffffff;
    --light-background: #f5f5f5;
    --border-color: #e0e0e0;
    --header-font: 'Spectral', serif;
    --body-font: 'IBM Plex Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--header-font);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.8em;
    color: var(--primary-color);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: var(--light-background);
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--light-accent);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

/* Header styles */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--header-font);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo svg {
    margin-right: 12px;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-menu a {
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 100px 0 120px;
    overflow: hidden;
    background-color: var(--light-background);
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    max-width: 600px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--light-text);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.hero-image {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.hero-image img {
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

/* About Section */
.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 0 0 45%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature span {
    font-weight: 500;
    color: var(--primary-color);
}

/* Programs Section */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.program-card {
    background-color: var(--background);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.program-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.program-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
}

.program-features {
    list-style: disc;
    padding-left: 20px;
    margin: 15px 0;
}

.program-features li {
    margin-bottom: 5px;
}

.program-card .btn {
    margin-top: auto;
}

.programs-table {
    overflow-x: auto;
}

.programs-table h3 {
    text-align: center;
    margin-bottom: 20px;
}

.table-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

table tr:nth-child(even) {
    background-color: rgba(183, 228, 199, 0.2);
}

table tr:hover {
    background-color: rgba(183, 228, 199, 0.4);
}

/* Trainers Section */
.trainers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.trainer-card {
    background-color: var(--background);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.trainer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.trainer-image {
    height: 300px;
    overflow: hidden;
}

.trainer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.trainer-card:hover .trainer-image img {
    transform: scale(1.05);
}

.trainer-info {
    padding: 20px;
}

.trainer-position {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.trainer-qualification {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.trainer-quote {
    font-style: italic;
    color: var(--light-text);
    position: relative;
    padding-left: 15px;
    border-left: 3px solid var(--accent-color);
}

/* Benefits Section */
.infographic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.infographic-item {
    background-color: var(--background);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.infographic-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.infographic-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.infographic-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* Locations Section */
.locations-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.locations-map {
    flex: 0 0 60%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.locations-list {
    flex: 1;
}

.location-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--background);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.location-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.location-icon {
    flex-shrink: 0;
}

.location-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.location-info p {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    aspect-ratio: 16/9;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 40px;
}

.contact-info {
    flex: 1;
    padding: 30px;
    background-color: var(--background);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-email {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background-color: var(--light-background);
    border-radius: 10px;
}

.contact-email svg {
    flex-shrink: 0;
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.2);
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-consent input {
    width: auto;
    margin-top: 5px;
}

.form-consent label {
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0 30px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 40px;
}

.footer-logo {
    grid-column: 1;
    grid-row: 1;
}

.footer-navigation {
    grid-column: 2;
    grid-row: 1;
}

.footer-partners {
    grid-column: 3;
    grid-row: 1;
}

.footer-policies {
    grid-column: 1;
    grid-row: 2;
}

.footer-contact {
    grid-column: 2 / span 2;
    grid-row: 2;
}

.footer-logo h3 {
    color: white;
    margin-top: 15px;
    margin-bottom: 10px;
}

.footer-logo p {
    color: var(--light-accent);
}

footer h4 {
    color: white;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

footer h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

footer ul li {
    margin-bottom: 10px;
}

footer a {
    color: var(--light-accent);
}

footer a:hover {
    color: white;
}

.partners-logos {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.partner-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.partner-logo span {
    font-size: 0.9rem;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-section .container {
        flex-direction: column;
    }
    
    .hero-content, .hero-image {
        max-width: 100%;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        width: 100%;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .locations-content {
        flex-direction: column;
    }
    
    .locations-map {
        width: 100%;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-logo {
        grid-column: 1;
        grid-row: 1;
    }
    
    .footer-navigation {
        grid-column: 2;
        grid-row: 1;
    }
    
    .footer-partners {
        grid-column: 1;
        grid-row: 2;
    }
    
    .footer-policies {
        grid-column: 2;
        grid-row: 2;
    }
    
    .footer-contact {
        grid-column: 1 / span 2;
        grid-row: 3;
    }
}

@media (max-width: 768px) {
    header {
        position: relative;
    }
    
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .program-card, .trainer-card, .infographic-item {
        height: auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-logo, .footer-navigation, .footer-partners, .footer-policies, .footer-contact {
        grid-column: 1;
    }
    
    .footer-logo {
        grid-row: 1;
    }
    
    .footer-navigation {
        grid-row: 2;
    }
    
    .footer-partners {
        grid-row: 3;
    }
    
    .footer-policies {
        grid-row: 4;
    }
    
    .footer-contact {
        grid-row: 5;
    }
}

@media (max-width: 480px) {
    section {
        padding: 50px 0;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        gap: 10px;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .trainer-image {
        height: 220px;
    }
    
    .programs-grid, .trainers-grid, .infographic, .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .form-consent {
        align-items: flex-start;
    }
    
    .form-consent input {
        margin-top: 5px;
    }
}

/* Animation and Micro-interactions */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.btn:hover {
    animation: pulse 1s infinite;
}

.primary-btn:hover {
    box-shadow: 0 0 15px rgba(26, 77, 46, 0.5);
}

.program-icon svg, .infographic-icon svg {
    transition: transform 0.3s ease;
}

.program-card:hover .program-icon svg,
.infographic-item:hover .infographic-icon svg {
    transform: rotate(5deg) scale(1.1);
}

.trainer-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(26, 77, 46, 0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.trainer-card:hover .trainer-image::before {
    opacity: 1;
}

input[type="checkbox"] {
    position: relative;
    cursor: pointer;
}

input[type="checkbox"]::before {
    content: '';
    display: block;
    position: absolute;
    width: 16px;
    height: 16px;
    top: 0;
    left: 0;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

input[type="checkbox"]:checked::before {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

input[type="checkbox"]:checked::after {
    content: '';
    display: block;
    position: absolute;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    top: 1px;
    left: 6px;
    transform: rotate(45deg);
}