/* Enhanced Expert Trainers Section Styling - Pure Image Gallery */
#trainers {
    padding: 80px 0 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
    position: relative;
    overflow: hidden;
}

#trainers::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(5, 194, 220, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

#trainers .section-heading {
    position: relative;
    z-index: 2;
}

#trainers .section-heading h2 {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #1f2937 0%, #05c2dc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

#trainers .section-heading h2 em {
    font-style: normal;
    background: linear-gradient(135deg, #05c2dc 0%, #0288d1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#trainers .section-heading p {
    font-size: 16px;
    color: #6b7280;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto 20px auto;
}

/* Enhanced Trainer Cards - Big Images */
.testimo {
    position: relative;
    padding: 20px 0;
    margin-top: 20px;
}

.testimo .swiper {
    width: 100%;
    max-width: 1400px;
    /* Increased max-width for bigger cards */
    padding: 20px 10px 60px 10px;
}

.testimo .card {
    background: transparent;
    border-radius: 20px;
    padding: 0;
    margin: 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    position: relative;
    border: none;
    height: auto;
}

.testimo .card::before {
    display: none;
}

/* Hover Effect - Fit to borders & Lift */
.testimo .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(5, 194, 220, 0.2);
}

.testimo .card .card-content {
    display: flex;
    flex-direction: column;
    padding: 0;
    height: 100%;
    width: 100%;
    position: relative;
}

/* Enhanced Image Container - Big & Responsive */
.testimo .card .image2 {
    width: 100%;
    height: 600px;
    /* Significantly increased height for "big" look */
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    /* Ensure image fits rounded borders */
    background: #f0f0f0;
    /* Fallback color */
}

/* No overlay or gradients needed as per request 'just image' */
.testimo .card .image2::after {
    display: none;
}

.testimo .card .image2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures image covers area without distortion */
    object-position: top center;
    /* Focus on faces usually at top */
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: block;
    border-radius: 20px;
    /* Match container */
}

/* Subtle zoom on hover, staying within borders */
.testimo .card:hover .image2 img {
    transform: scale(1.05);
}

/* Hide Everything Else */
.testimo .card .trainer-badge {
    display: none;
}

.testimo .card .card-info {
    display: none;
}

/* Swiper Navigation Buttons */
.testimo .swiper-button-next,
.testimo .swiper-button-prev {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #05c2dc;
    transition: all 0.3s ease;
    z-index: 20;
}

.testimo .swiper-button-next::after,
.testimo .swiper-button-prev::after {
    font-size: 20px;
    font-weight: 900;
}

.testimo .swiper-button-next:hover,
.testimo .swiper-button-prev:hover {
    background: linear-gradient(135deg, #05c2dc 0%, #0288d1 100%);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(5, 194, 220, 0.3);
}

/* Swiper Pagination */
.testimo .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #d1d5db;
    opacity: 1;
    transition: all 0.3s ease;
}

.testimo .swiper-pagination-bullet-active {
    background: linear-gradient(135deg, #05c2dc 0%, #0288d1 100%);
    width: 30px;
    border-radius: 5px;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .testimo .card .image2 {
        height: 550px;
    }
}

@media (max-width: 1200px) {
    .testimo .card .image2 {
        height: 500px;
    }
}

@media (max-width: 992px) {
    .testimo .card .image2 {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .testimo {
        margin-left: -6px;
    }

    #trainers {
        padding: 60px 0 80px 0;
    }

    /* On mobile, cards take closer to full width, keep height reasonable */
    .testimo .card .image2 {
        height: 480px;
        border-radius: 15px;
    }

    .testimo .card .image2 img {
        border-radius: 15px;
    }

    .testimo .swiper-button-next,
    .testimo .swiper-button-prev {
        width: 40px;
        height: 40px;
        display: flex;
        /* Ensure buttons show on mobile if intended, or hide them */
    }
}

@media (max-width: 480px) {
    .testimo .card .image2 {
        height: 400px;
    }
}


/* EVENTS SECTION ENHANCEMENTS (To match Trainers Layout) */

/* Override default card-content-news styles */
.testimo .card .card-content-news {
    display: flex;
    flex-direction: column;
    padding: 0;
    height: 100%;
    width: 100%;
    position: relative;
    background: transparent;
}

/* Make the Events image container match the Trainers 'image2' style */
.testimo .card .card-content-news .image {
    width: 100%;
    /* Remove fixed height to respect aspect ratio */
    height: auto;
    /* Enforce square aspect ratio (1080x1080) */
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    background: #f0f0f0;
}

.testimo .card .card-content-news .image img {
    width: 100%;
    height: 100%;
    /* Ensure full image is shown, no cropping */
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: block;
    border-radius: 20px;
    background: #fff;
    /* White background for any letterboxing if aspect ratio slightly off */
}

/* Hover Zoom effect */
.testimo .card:hover .card-content-news .image img {
    transform: scale(1.05);
    /* Subtle zoom */
}

/* Style the button as a modern overlay */
.testimo .card .card-content-news .btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
    white-space: nowrap;
    width: auto;
    max-width: 90%;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testimo .card .card-content-news .btn:hover {
    background: #05c2dc;
    color: white;
    border-color: #05c2dc;
    box-shadow: 0 6px 20px rgba(5, 194, 220, 0.4);
    transform: translateX(-50%) translateY(-3px);
}

/* Responsive adjustments for Events */
@media (max-width: 1400px) {
    /* Height handled by aspect-ratio: 1/1 */
}

@media (max-width: 1200px) {
    /* Height handled by aspect-ratio: 1/1 */
}

@media (max-width: 992px) {
    /* Height handled by aspect-ratio: 1/1 */
}

@media (max-width: 768px) {
    .testimo .card .card-content-news .image {
        /* Height handled by aspect-ratio: 1/1 */
        border-radius: 15px;
    }

    .testimo .card .card-content-news .image img {
        border-radius: 15px;
    }

    .testimo .swiper {
        padding: 20px 0 60px 0;
        /* Remove side padding on mobile */
        margin-left: 0 !important;
        /* Fix shift caused by default.css */
        width: 100% !important;
        /* Ensure full width */
    }

    /* Adjust button on mobile */
    .testimo .card .card-content-news .btn {
        padding: 10px 20px;
        font-size: 14px;
        bottom: 15px;
    }
}

@media (max-width: 480px) {

    /* Height handled by aspect-ratio: 1/1 */
    .testimo .card .card-content-news .btn {
        padding: 0 5px;
        font-size: 17px;
        line-height: 20px;
        height: 40px;
        bottom: 8px;
        letter-spacing: 0.5px;
        width: 95%;
        max-width: none;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Trainers Mobile Images - Square */
    .testimo .card .image2 {
        height: auto !important;
        aspect-ratio: 1/1;
    }
}

/* Events Section Heading Styling */
#trainersk .section-heading1 h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    /* Maintain white color for dark background, unlike Trainers dark gradient */
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    /* Add shadow for better legibility */
}

#trainersk .section-heading1 img {
    margin: 20px auto;
    filter: brightness(0) invert(1);
    /* Ensure line is white */
}


/* CONTACT US SECTION ENHANCEMENTS */

/* Section Background */
#contact-us {
    background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
    padding: 80px 0;
    position: relative;
}

#contact-us .container-fluid {
    padding-right: 30px;
    padding-left: 30px;
}

/* Map Styling */
#contact-us #map {
    height: 100%;
    min-height: 500px;
    /* Ensure map matches form height roughly */
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

#contact-us #map iframe {
    border-radius: 20px;
    filter: grayscale(20%) contrast(1.1);
    /* Slight map filter for better look */
    height: 100% !important;
    /* Force height to fill container */
    min-height: 500px;
}

/* Form Container Styling */
#contact-us .contact-form {
    padding: 0;
    background: transparent;
}

#contact-us .contact-form #contact {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 50px 40px;
    border: 1px solid rgba(255, 255, 255, 1);
}

/* Form Heading */
#contact-us .contact-form h5 {
    font-size: 32px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #1f2937 0%, #05c2dc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Input & Textarea Fields */
#contact-us .contact-form input,
#contact-us .contact-form textarea {
    background-color: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    color: #374151;
    font-size: 15px;
    font-weight: 500;
    padding: 15px 20px;
    height: 55px;
    /* Taller inputs */
    width: 100%;
    outline: none;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

#contact-us .contact-form textarea {
    height: 160px;
    padding-top: 20px;
    line-height: 1.5;
}

#contact-us .contact-form input:focus,
#contact-us .contact-form textarea:focus {
    border-color: #05c2dc;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(5, 194, 220, 0.15);
}

/* Placeholder Styling */
#contact-us .contact-form input::placeholder,
#contact-us .contact-form textarea::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* Send Message Button */
#contact-us .contact-form button.main-button {
    background: linear-gradient(135deg, #05c2dc 0%, #0288d1 100%);
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 35px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 20px rgba(5, 194, 220, 0.3);
    width: auto;
    display: inline-block;
    margin-top: 10px;
}

#contact-us .contact-form button.main-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(5, 194, 220, 0.4);
    background: linear-gradient(135deg, #04b3cc 0%, #0277bd 100%);
}

/* Social Media Section Styling */
#contact-us .socialmedia {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    transition: transform 0.3s ease;
}

#contact-us .socialmedia:hover {
    transform: translateX(5px);
}

#contact-us .socialmedia a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f0f9ff;
    border-radius: 50%;
    margin-right: 15px;
    transition: all 0.3s ease;
}

#contact-us .socialmedia img.socialmedia-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

#contact-us .socialmedia a:hover {
    background: #05c2dc;
}

#contact-us .socialmedia a:hover img {
    filter: brightness(0) invert(1);
    /* Make icon white on hover */
}

#contact-us .socialmedia p.socialmedia-description {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
    font-weight: 500;
}

/* Adjust Row for Social Media to be cleaner */
#contact-us .contact-form .row:nth-of-type(2) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns grid */
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    #contact-us .contact-form .row:nth-of-type(2) {
        grid-template-columns: 1fr;
        /* 1 column on mobile */
    }

    #contact-us #map,
    #contact-us #map iframe {
        min-height: 300px;
    }
}