/* * File: style.css
 * Description: Contains all general, layout, and complex styling for the
 * new homepage components (Flip Cards, Course Strips, and Testimonial Strips).
 */

/* --- General & Typography --- */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* --- Sections General Styling --- */
section {
    padding: 60px 0;
}

section h2 {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
}

/* --- Header & Banner Carousel (Retained) --- */
.main-header {
    margin-bottom: 30px;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 20px;
}

.carousel-caption h1 {
    font-size: 5vw;
    color: #FFD700;
    text-shadow: 3px 3px 8px #000;
    margin-bottom: 1rem;
}

.carousel-caption p {
    font-size: 2vw;
    color: #F8F8FF;
    margin-bottom: 1.5rem;
}


/* --- 🌟 ANIMATED FEATURES SECTION (FLIP CARDS) 🌟 --- */
.features {
    background: linear-gradient(145deg, #e9f7f9, #d0e7eb);
}

.features h2 {
    color: #007bff;
}

.flip-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.flip-card {
    background-color: transparent;
    width: 100%;
    height: 400px; 
    perspective: 1000px;
    transition: transform 0.6s ease;
}

.flip-card-link:hover .flip-card {
    transform: translateY(-10px) scale(1.03); 
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
}

.flip-card-link:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    border-radius: 15px;
}

.flip-card-front {
    background-color: #ffffff;
    color: #333;
}

.feature-icon-big {
    margin-bottom: 20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-big img {
    max-width: 60px;
    filter: invert(100%);
}

.flip-card-back {
    background: #007bff;
    color: white;
    transform: rotateY(180deg);
}

.cta-label {
    background-color: #ffc107;
    color: #333;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.detail-link {
    margin-top: 20px;
    font-weight: bold;
    color: #ffc107;
}


/* --- 🏃 STRIPPED & MOVING COURSES SECTION 🏃 --- */
.courses {
    background-color: #f5f5f5;
    padding-left: 0;
    padding-right: 0; 
}

.courses h2 {
    color: #28a745;
}

.course-group-strip {
    margin-bottom: 40px;
    background-color: #ffffff;
    padding: 20px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.course-group-header {
    padding: 0 40px;
    margin-bottom: 15px;
}

.course-group-header h3 {
    font-size: 1.8rem;
    color: #343a40;
    border-bottom: 3px solid #ffc107; 
    display: inline-block;
    padding-bottom: 5px;
}

.course-strip-slider {
    display: flex;
    overflow-x: auto; 
    padding: 10px 40px 20px 40px; 
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.course-strip-slider::-webkit-scrollbar {
    height: 8px;
}

.course-strip-slider::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.course-strip-item {
    flex: 0 0 320px; 
    scroll-snap-align: start;
    margin-right: 20px;
    transition: transform 0.3s ease-in-out;
}

.course-strip-item:hover {
    transform: translateY(-5px); 
}

.course-card-stripped {
    height: 100%;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.course-card-stripped img {
    height: 150px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.course-title-stripped {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    height: 40px;
    overflow: hidden;
}

.course-price-stripped {
    font-weight: bold;
    color: #dc3545;
}


/* --- 🏃 STRIPPED & MOVING TESTIMONIALS SECTION 🏃 --- */
.testimonials {
    background-color: #ffefd5; /* Light Peach */
    padding-left: 0;
    padding-right: 0; /* Full width strips */
    text-align: center;
}

.testimonials h2 {
    color: #ff4500; /* Orange Red */
}

.testimonial-strip {
    /* Full width strip container for the horizontal slider */
    background-color: #ffffff;
    padding: 20px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.testimonial-strip-slider {
    display: flex;
    overflow-x: auto; /* Horizontal scrolling */
    padding: 10px 40px 20px 40px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.testimonial-strip-item {
    flex: 0 0 350px; /* Fixed width for each testimonial card */
    scroll-snap-align: start;
    margin-right: 20px;
    transition: transform 0.3s ease-in-out;
}

/* Moving/Animate effect on hover */
.testimonial-strip-item:hover {
    transform: translateY(-5px); 
}

.testimonial-item {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #ff4500; /* Highlight border */
}

.testimonial-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem auto;
    object-fit: cover;
}

/* --- Footer --- */
footer {
    background-color: #343a40;
    color: white;
    padding: 1.5rem 0;
    text-align: center;
}

/* --- Media Queries (Responsiveness) --- */
@media (max-width: 992px) {
    .flip-card {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 6vw;
    }

    .carousel-caption p {
        font-size: 3vw;
    }
    
    .course-strip-slider,
    .testimonial-strip-slider {
        padding: 10px 20px 20px 20px;
    }
}