/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #f8f9fa;
    color: #333;
}

/* Header */
header {
    background: linear-gradient(to right, #007BFF, #00c6ff);
    color: white;
    padding: 40px;
    font-size: 24px;
}

/* Enquire Button */
.enquire-btn {
    background: #FFD700;
    color: #333;
    padding: 10px 20px;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.enquire-btn:hover {
    background: #FFC107;
}


/* Course Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px;
    justify-items: center;
}

.course {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    max-width: 300px;
    transition: 0.3s;
}

.course:hover {
    transform: scale(1.05);
}

.course img {
    width: 100%; /* Make images take full width of container */
    max-width: 400px; /* Limit the maximum size */
    height: 287.6px; /* Fixed height to ensure consistency */
    object-fit: cover; /* Prevent distortion while ensuring full coverage */
    border-radius: 5px;
}

.teacher-grid {
    display: flex;
    gap: 50px;
    justify-content: center;
    padding: 20px;
}

.teacher {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 300px; /* Ensuring equal width */
    text-align: center;
}

/* Ensure both images are the same size */
.teacher img {
    width: 100%;
    max-width: 300px;
    height: 400px; /* Fixed height */
    object-fit: cover; /* Prevents distortion */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


#location-gallery {
    display: flex;
    gap: 20px;
    padding: 20px;
    align-items: center;
}

/* Both sections take 50% width */
.map-container, .carousel-container {
    flex: 50%;
    height: 300px; /* Fixed height */
}

/* Carousel Container */
.carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    height: 300px; /* Fixed height to match the map */
}

/* Make images fit without cropping */
.carousel img {
    width: 100%;
    max-width: 400px;
    height: 100%; /* Maintains height */
    object-fit: contain; /* Prevents cropping */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

button {
    background: #007BFF;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

button:hover {
    background: #0056b3;
}

#contact {
    margin-top: 100px; /* Adds spacing between carousel and contact */
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#enquiry iframe {
    width: 100%; /* Full width on mobile */
    max-width: 600px; /* Limit the width */
    height: 100%
    border: none;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    #location-gallery {
        flex-direction: column;
    }

    .map-container, .carousel-container {
        flex: 100%;
        height: auto;
    }

    .carousel {
        height: auto;
    }
	
	.teacher-grid {
		flex-direction: column;
	}
	

	
	.course img {
		width: 100%; /* Make images take full width of container */
		max-width: 400px; /* Limit the maximum size */
		height: 287.6px; /* Fixed height to ensure consistency */
		object-fit: cover; /* Prevent distortion while ensuring full coverage */
		border-radius: 5px;	
	}
	
		/* Carousel Container */
	.carousel {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 5px;
		width: 100%;
		height: 250px; /* Fixed height to match the map */
	}

	/* Make images fit without cropping */
	.carousel img {
		width: 70%;
		max-width: 400px;
		height: 100%; /* Maintains height */
		object-fit: contain; /* Prevents cropping */
		border-radius: 8px;
		box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	}
}
