:root {
    --primary-color: #1E3F66;
    --primary-light: #2E5984;
    --secondary-color: #FDD835;
    --secondary-light: #FFEB3B;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --background-light: #F8F9FA;
    --background-dark: #E9ECEF;
    --success-color: #28A745;
    --error-color: #DC3545;
    --border-radius: 5px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-divider {
    width: 100px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    color: var(--text-light);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--box-shadow);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav .nav-list {
    display: flex;
    list-style: none;
}

.main-nav .nav-list li {
    margin-left: 30px;
}

.main-nav .nav-list li a {
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-nav .nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-nav .nav-list li a:hover::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-nav-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
}

.hero {
    height: 100vh;
    background-image: url('images/hero-seniors.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-light);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.about {
    padding: 100px 0;
    background-color: var(--background-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.programs {
    padding: 100px 0;
    background-color: var(--background-dark);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.program-card {
    background-color: var(--text-light);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-5px);
}

.program-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.program-card h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.program-features {
    list-style: none;
    margin-top: 20px;
}

.program-features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.program-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.benefits {
    padding: 100px 0;
    background-color: var(--background-light);
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.benefits-text .intro-text {
    font-size: 18px;
    margin-bottom: 30px;
}

.benefits-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.benefit-item h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.benefits-image img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.gallery {
    padding: 100px 0;
    background-color: var(--background-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.gallery-item img {
    transition: var(--transition);
    height: 250px;
    width: 100%;
    object-fit: cover;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.contact {
    padding: 100px 0;
    background-color: var(--background-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-email {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    font-size: 18px;
}

.contact-form form {
    background-color: var(--text-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Raleway', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group.consent {
    display: flex;
    align-items: center;
}

.form-group.consent input {
    width: auto;
    margin-right: 10px;
}

.form-group.consent label {
    margin-bottom: 0;
}

.footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo a {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-light);
}

.footer-logo p {
    margin-top: 10px;
}

.footer h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a,
.footer-contact a {
    color: var(--text-light);
    opacity: 0.8;
}

.footer ul li a:hover,
.footer-contact a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 992px) {
    .about-content,
    .benefits-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image,
    .benefits-image {
        order: -1;
    }
    
    .benefits-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .section-header h2 {
        font-size: 30px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 28px;
    }
    
    .about,
    .programs,
    .benefits,
    .gallery,
    .contact {
        padding: 60px 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.thankyou {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--background-light);
}

.thankyou-content {
    max-width: 600px;
    padding: 50px;
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.thankyou h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.thankyou p {
    margin-bottom: 30px;
}

.policy {
    padding: 150px 0 100px;
}

.policy-content {
    background-color: var(--text-light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.policy h1 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.policy h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: var(--primary-color);
}

.policy p,
.policy ul {
    margin-bottom: 15px;
}

.policy ul {
    padding-left: 20px;
}

.policy .btn {
    margin-top: 30px;
}

.btn {
    position: relative;
    overflow: hidden;
}

.btn:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover:after {
    width: 300px;
    height: 300px;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%231E3F66' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 24px;
}

.form-group.consent input {
    position: absolute;
    opacity: 0;
}

.form-group.consent label {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
}

.form-group.consent label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.form-group.consent input:checked + label:after {
    content: '✓';
    position: absolute;
    left: 4px;
    top: -1px;
    color: var(--primary-color);
    font-size: 18px;
}

.section-divider {
    position: relative;
    height: 20px;
    margin: 20px auto;
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px dashed var(--primary-color);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

@media print {
    .header,
    .footer,
    .contact-form,
    .mobile-nav-toggle {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
    
    .about,
    .programs,
    .benefits,
    .gallery,
    .contact {
        padding: 20px 0;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}