/* Base Styles and Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #000000;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #27ae60;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2ecc71;
}

/* Header Styles */
#main-header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #27ae60;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 1.5rem;
}

.main-nav a {
    color: white;
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a:hover, .main-nav a.active {
    color: #27ae60;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #27ae60;
    transition: width 0.3s ease;
}

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

/* Banner Section */
#banner {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/banner.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 6rem 0;
}

#banner h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

#banner p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: #27ae60;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #2ecc71;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: white;
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #27ae60;
    margin: 0.5rem auto;
    border-radius: 2px;
}

.bg-light {
    background-color: #f4f8fb;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item h3 {
    color: #27ae60;
    margin-bottom: 1rem;
}

/* Testimonials */
blockquote {
    font-style: italic;
    border-left: 4px solid #27ae60;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-size: 1.1rem;
}

cite {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
    color: #7f8c8d;
    font-style: normal;
}

/* About Page Styles */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.value-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.value-item h3 {
    color: #27ae60;
    margin-bottom: 1rem;
}

/* Services Page Styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.service-card h3 {
    color: #27ae60;
    margin-bottom: 1rem;
}

.service-card ul {
    margin-top: 1rem;
    margin-left: 1.5rem;
}

.service-card li {
    margin-bottom: 0.5rem;
}

/* Pricing Table */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pricing-plan {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
}

.pricing-plan:hover {
    transform: translateY(-5px);
}

.pricing-plan.featured {
    border: 2px solid #27ae60;
    transform: scale(1.05);
}

.pricing-plan.featured::before {
    content: 'Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #27ae60;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: #27ae60;
    margin: 1rem 0;
}

.pricing-plan ul {
    list-style: none;
    margin: 1.5rem 0;
}

.pricing-plan li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f1f1;
}

.pricing-plan li:last-child {
    border-bottom: none;
}

/* Footer Styles */
#main-footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

#main-footer p {
    margin-bottom: 0.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Schedule Page Styles */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.schedule-table th, .schedule-table td {
    padding: 1rem;
    text-align: center;
    border: 1px solid #f1f1f1;
}

.schedule-table th {
    background-color: #27ae60;
    color: white;
    font-weight: 600;
}

.schedule-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.schedule-table tr:hover {
    background-color: #f1f1f1;
}

/* Trainers Page Styles */
.trainers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.trainer-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.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.1);
}

.trainer-info {
    padding: 1.5rem;
    text-align: center;
}

.trainer-info h3 {
    color: #27ae60;
    margin-bottom: 0.5rem;
}

.trainer-specialty {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 1rem;
    display: block;
}

/* Circular Image */
.circular-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 5px solid #27ae60;
}

.circular-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Pseudo-elements for decoration */
.section-title::before {
    content: '◆';
    color: #27ae60;
    margin-right: 0.5rem;
}

.feature-item h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: #27ae60;
    margin: 0.5rem auto;
}

/* Transitions for interactive elements */
.service-card, .trainer-card, .pricing-plan {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Focus states for accessibility */
a:focus, button:focus, .btn:focus {
    outline: 2px solid #27ae60;
    outline-offset: 2px;
}

.form-control:focus {
    outline: 2px solid #27ae60;
    outline-offset: -2px;
}

/* Contact Page Styles */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3, .contact-form h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #27ae60;
    margin-right: 1rem;
    margin-top: 0.3rem;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.map-container {
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    #main-header .container {
        flex-direction: column;
    }
    
    .main-nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav li {
        margin: 0 0.5rem 0.5rem;
    }
    
    .about-content, .contact-container {
        grid-template-columns: 1fr;
    }
    
    .pricing-plan.featured {
        transform: scale(1);
    }
    
    .schedule-table {
        font-size: 0.9rem;
    }
    
    .schedule-table th, .schedule-table td {
        padding: 0.5rem;
    }
    
    #banner h2 {
        font-size: 2rem;
    }
    
    .section {
        padding: 2rem 0;
    }
}
.cards-container {
    display: flex;
    gap: 30px;
    padding: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card h3 {
    margin-top: 0;
    color: #2c3e50;
}

.card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.card-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.card-button:hover {
    background-color: #2980b9;
}

/* Grid Layout */
.grid-container {
    display: grid;
    grid-template-areas: 
        "header header"
        "sidebar main"
        "footer footer";
    grid-template-columns: 250px 1fr;
    grid-template-rows: auto 1fr auto;
    min-height: 400px;
    gap: 15px;
    padding: 15px;
}

.grid-header {
    grid-area: header;
    background-color: #34495e;
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
}

.grid-sidebar {
    grid-area: sidebar;
    background-color: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
}

.grid-main {
    grid-area: main;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.grid-footer {
    grid-area: footer;
    background-color: #34495e;
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
}

/* Grid Image Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}