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

/* Body Styling */
body {
	font-family: "Roboto", sans-serif;
	line-height: 1.6;
	color: #333;
	background-color: #f4f4f4;
	text-align: center;
}

/* Logo Styling */
.logo-container {
	text-align: center;
	padding: 10px 0;
}

.site-logo {
	max-width: 150px;
	height: auto;
}

/* Navbar */
.navbar {
	background-color: #222;
	color: #fff;
	padding: 15px 0;
	position: sticky;
	top: 0;
	z-index: 1000;
}

.nav-container {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 20px;
}

.nav-logo-container {
	display: flex;
	align-items: center;
	gap: 25px;
}

.nav-logo h1 {
	font-size: 1.5rem;
	color: white;
	margin: 0;
}

.nav-logo span {
	color: #f06;
}

.nav-links {
	list-style: none;
	display: flex;
	gap: 1rem;
	padding: 0; /* Remove default padding */
	margin: 0; /* Remove default margin */
}

.nav-links a {
	color: #fff;
	text-decoration: none;
	transition: color 0.3s;
}

.nav-links a:hover {
	color: #f06;
}

.nav-toggle {
	display: none;
}

/* Header */
header {
	background: url("images/header-bg.jpg") no-repeat center/cover;
	text-align: center;
	padding: 5rem 2rem;
	color: #fff;
}

header h1 {
	font-size: 3rem;
	margin-bottom: 1rem;
}

header p {
	font-size: 1.2rem;
	margin: 5px 0; /* Reduce margin above and below the paragraph */
	color: blue;
	text-align: center;
}

.cta-button {
	padding: 0.8rem 2rem;
	background-color: #f06;
	color: #fff;
	text-transform: uppercase;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
	margin-top: 5px;
}

.cta-button:hover {
	background-color: #d00445;
}

/* About Section */
.about {
	display: flex;
	gap: 2rem;
	padding: 3rem 1rem;
	background-color: #f9f9f9;
	width: 80%; /* Adjust width as needed */
	margin: 0 auto;
}

.about-content {
	flex: 1;
}

.about-content h2 {
	font-size: 2rem;
	margin-bottom: 1rem;
}

.about-image img {
	width: 100%;
	border-radius: 8px;
}

/* Classes Section */
/* Classes Section */
.classes {
	padding: 3rem 1rem;
	background-color: #fff;
	text-align: center;
}

.classes h2 {
	font-size: 2rem;
	margin-bottom: 2rem;
}

.classes-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	margin: 0; /* Remove any margin */
}

.class-card {
	background-color: #f9f9f9;
	padding: 1rem; /* Reduced padding for tighter spacing */
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s;
}

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

.class-card h3 {
	margin-bottom: 1rem;
	color: #f06;
}

/* Coaches Section - Meet Our Instructors */
.coaches {
	padding: 3rem 1rem;
	background-color: #f3f3f3;
}

.coaches h2 {
	text-align: center;
	margin-bottom: 2rem;
}

.coaches-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	margin: 0; /* Remove any margin */
}

.coach-card {
	background-color: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.instructor-image {
	width: 200px; /* Fixed width */
	height: auto; /* Height adjusts automatically */
	max-height: 200px; /* Optional: limit maximum height */
	object-fit: cover; /* Ensures the image covers the area without distortion */
}

.coach-info {
	padding: 1.5rem;
}

.coach-name {
	font-size: 1.2rem;
	color: #f06;
	margin-bottom: 0.5rem;
}

/* General Padding and Margin Adjustments */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
	.classes-grid {
		gap: 1rem; /* Reduced gap between items on small screens */
	}

	.coaches-grid {
		gap: 1rem; /* Reduced gap between items on small screens */
	}

	.class-card,
	.coach-card {
		padding: 1rem; /* Less padding to reduce space */
	}
}

/* Testimonials Section */
.testimonials {
	padding: 3rem 1rem;
	background-color: #fff;
}

.testimonials h2 {
	text-align: center;
	margin-bottom: 2rem;
}

/* Testimonials now use the same layout and card style as coaches */
.testimonials-container {
    position: relative;
    padding: 0 40px;
}

/* Use .coaches-grid for testimonials too */
.coaches-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
}

.coach-card {
    flex: 0 0 auto;
    width: 280px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-right: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.3s;
}
.coach-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.instructor-image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.coach-info {
    text-align: center;
}

.coach-name {
    color: #0056b3;
    margin-top: 0;
    margin-bottom: 5px;
}

.coach-rank {
    color: #ff5722;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 10px;
}

.coach-bio {
    margin: 0;
    font-style: italic;
}

.coach-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #0056b3;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.coach-scroll-btn:hover {
    background: #ff5722;
}

.scroll-left {
    left: 5px;
}

.scroll-right {
    right: 5px;
}

@media (max-width: 768px) {
    .coaches-grid {
        flex-direction: column;
        gap: 20px;
        overflow-x: unset;
    }
    .testimonials-container {

    }
    .coach-scroll-btn {
        display: none;
    }
}

 

.testimonials-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
}

.testimonial-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #0056b3;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.testimonial-scroll-btn:hover {
    background: #ff5722;
}

.scroll-left {
    left: 5px;
}

.scroll-right {
    right: 5px;
}

@media (max-width: 768px) {
    .testimonials-grid {
        flex-direction: column;
        gap: 20px;
        overflow-x: unset;
    }
    /* Testimonials now use the same layout and card style as coaches */
.testimonials-container {
    position: relative;
    padding: 0 40px;
}

/* Use .coaches-grid for testimonials too */
.coaches-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
}

.coach-card {
    flex: 0 0 auto;
    width: 280px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-right: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.3s;
}
.coach-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.instructor-image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.coach-info {
    text-align: center;
}

.coach-name {
    color: #0056b3;
    margin-top: 0;
    margin-bottom: 5px;
}

.coach-rank {
    color: #ff5722;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 10px;
}

.coach-bio {
    margin: 0;
    font-style: italic;
}

.coach-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #0056b3;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.coach-scroll-btn:hover {
    background: #ff5722;
}

.scroll-left {
    left: 5px;
}

.scroll-right {
    right: 5px;
}

@media (max-width: 768px) {
    .coaches-grid {
        flex-direction: column;
        gap: 20px;
        overflow-x: unset;
    }
    .testimonials-container {

    }
    .coach-scroll-btn {
        display: none;
    }
}


    }
    .testimonial-scroll-btn {
        display: none;
    }


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

.testimonial-card {
	background-color: #f9f9f9;
	padding: 1.5rem;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.testimonial-header {
	display: flex;
	align-items: center;
	margin-bottom: 1rem;
}

.testimonial-image {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	margin-right: 1rem;
}

.testimonial-text {
	font-style: italic;
}

/* Contact Section */
.contact {
	padding: 3rem 1rem;
	background-color: #f9f9f9;
}

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

.contact-info p {
	margin: 0.5rem 0;
}

.contact-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.schedule-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
}

.schedule-card {
	padding: 1rem;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
}

/* Image Gallery */
.image-gallery {
	position: relative;
	overflow: hidden;
	width: 100%;
}

.gallery-container {
	display: flex;
	transition: transform 0.5s ease;
}

.gallery-image {
	min-width: 100%;
	width: 200px; /* Set your desired width */
	height: 200px; /* Set your desired height */
	object-fit: cover;
}

/* Gallery Controls */
button.prev,
button.next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background-color: rgba(0, 0, 0, 0.5);
	color: #fff;
	border: none;
	font-size: 2rem;
	padding: 0.5rem 1rem;
	cursor: pointer;
	z-index: 10;
}

button.prev {
	left: 10px;
}

button.next {
	right: 10px;
}

button.prev:hover,
button.next:hover {
	background-color: rgba(0, 0, 0, 0.8);
}

/* Responsive Styles */
@media (max-width: 768px) {
	.nav-links {
		display: none;
		flex-direction: column;
		position: absolute;
		top: 60px;
		right: 0;
		background-color: #222;
		width: 100%;
	}

	.nav-toggle {
		display: block;
	}

	.nav-links a {
		padding: 0.5rem 0;
	}

	.image-gallery {
		flex-direction: column;
	}
}
/* Gallery Image Styles */
.gallery-image {
	display: none; /* Hide all images initially */
	width: 300px; /* Fixed width for all images */
	height: 200px; /* Fixed height for all images */
	object-fit: cover; /* Ensure images fill the container without stretching */
	transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Active Image Styles */
.gallery-image.active {
	display: block;
	transform: scale(1); /* Keep the active image at normal size */
	opacity: 1; /* Ensure the active image is fully visible */
}

/* Thumbnail Styles */
.thumbnail {
	width: 70px;
	height: 45px;
	object-fit: cover;
	border: 2px solid transparent;
	border-radius: 5px;
	cursor: pointer;
	transition: all 0.3s ease;
}

/* Active Thumbnail Styles */
.thumbnail.active {
	width: 100px;
	height: 65px;
	border: 2px solid #f44336;
	transform: scale(0.8); /* Slightly reduce size of the active thumbnail */
	z-index: 1;
}

/* Navigation Buttons */
.prev,
.next {
	font-size: 24px;
	background-color: rgba(0, 0, 0, 0.5);
	color: white;
	padding: 10px;
	border: none;
	cursor: pointer;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

.prev {
	left: 10px;
}

.next {
	right: 10px;
}