/**
 * ============================================
 * CONTENT BLOCKS - COMBINED STYLES
 * ============================================
 * 
 * This file combines all flexible content block styles into one file
 * for better performance (fewer HTTP requests, better mobile FCP).
 * 
 * Original files combined:
 * 1. blog-posts-grid.css (390 lines)
 * 2. courses-grid.css (306 lines)
 * 3. cards-grid.css (184 lines)
 * 4. testimonials-slider.css (502 lines)
 * 5. faq-accordion.css (218 lines)
 * 6. image-gallery.css (247 lines)
 * 7. instructor-profile.css (220 lines)
 * 
 * Total: ~2,060 lines, 40KB uncompressed
 * 
 * Version: 1.0
 * Created: December 2024
 * 
 * IMPORTANT: Individual files are kept as backup in the same directory.
 * If you need to edit a specific component, edit it in the individual file,
 * then re-combine all files.
 * 
 * ============================================
 */

/* ============================================
   BLOG POSTS GRID - FLEXIBLE CONTENT ELEMENT
   Based on design: blog-section.png
   ============================================ */

/* Main Container */
.fce-blog-posts-grid {
    width: 100%;
    padding:0px 0;
}

/* Grid Wrapper */
.fce-bpg-wrapper {
    width: 100%;
}

/* Grid Layout - 3 Columns Desktop */
.fce-bpg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Blog Card */
.fce-bpg-card {
    background-color: rgba(23, 46, 74, 1);
    border-radius: 30px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.fce-bpg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Card Link */
.fce-bpg-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Featured Image */
.fce-bpg-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 30px;
    position: relative;
}

.fce-bpg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}


/* Card Content */
.fce-bpg-content {
    padding: 40px 40px 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Post Date */
.fce-bpg-date {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    font-family: 'Poppins', sans-serif;
}

/* Post Title */
.fce-bpg-title {
    font-size: 22px;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 15px 0;
    line-height: 1.4;
    font-family: 'Poppins', sans-serif;
}

/* Post Excerpt */
.fce-bpg-excerpt {
    font-size: 16px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

/* Read More Button */
.fce-bpg-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    transition: gap 0.3s ease, color 0.3s ease;
    margin-top: auto;
    padding-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.fce-bpg-button:hover {
    color: rgba(0, 128, 255, 1);
}

.fce-bpg-button-text {
    transition: color 0.3s ease;
}

.fce-bpg-button i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.fce-bpg-card:hover .fce-bpg-button {
    gap: 12px;
}

.fce-bpg-card:hover .fce-bpg-button i {
    transform: translateX(3px);
}

/* ============================================
   RESPONSIVE - TABLET (2 COLUMNS)
   ============================================ */

@media (max-width: 1024px) {
    .fce-blog-posts-grid {
        padding: 0px;
    }

    /* 2 Columns on Tablet */
    .fce-bpg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    /* Center last odd item when there are 3, 5, 7, etc posts */
    .fce-bpg-card:last-child:nth-child(odd) {
        grid-column: 1 / -1; /* Span full width */
        width: calc(50% - 12.5px); /* Exact width - half container minus half gap */
        max-width: calc(50% - 12.5px);
        min-width: calc(50% - 12.5px);
        margin: 0 auto; /* Center it */
        justify-self: center; /* Center in grid */
    }

    .fce-bpg-image {
        height: 220px;
    }

    .fce-bpg-content {
        padding: 25px 20px 15px;
    }

    .fce-bpg-title {
        font-size: 20px;
    }

    .fce-bpg-excerpt {
        font-size: 14px;
    }

    .fce-bpg-button {
        padding-bottom: 10px;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (1 COLUMN)
   ============================================ */

@media (max-width: 767px) {
    .fce-blog-posts-grid {
        padding: 10px 0 0;
    }

    /* Wrapper centering on mobile */
    .fce-bpg-wrapper {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        overflow: hidden;
        position: relative;
    }

    /* Disable hover effect on mobile */
    .fce-bpg-card:hover {
        transform: none;
        box-shadow: none;
    }

    /* Keep smooth transition for carousel slide animation */
    .fce-bpg-card {
        transition: none;
    }

    /* Disable grid on mobile for Owl Carousel */
    .fce-bpg-grid {
        display: block;
        min-height: 500px; /* Prevent layout shift during carousel initialization */
    }

    /* Owl Carousel card styling */
    .fce-bpg-grid.owl-carousel {
        margin: 0;
        width: 100%;
        padding: 0;
        position: relative;
    }

    .fce-bpg-grid.owl-carousel .owl-stage-outer {
        overflow: hidden;
        padding: 0;
        margin: 0;
    }

    /* Fix height to prevent glitching during transitions */
    .fce-bpg-grid.owl-carousel .owl-stage {
        display: flex;
        align-items: flex-start;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .fce-bpg-grid.owl-carousel .owl-item {
        display: flex;
        justify-content: center;
        align-items: center;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0;
    }

    .fce-bpg-grid.owl-carousel .fce-bpg-card {
        margin: 0 auto 0 1px;
        width: 100%;
        max-width: 100%;
        min-height: 450px; /* Fixed height to prevent jumping */
        display: flex;
        flex-direction: column;
    }

    .fce-bpg-grid.owl-carousel .fce-bpg-card-link {
        display: flex;
        flex-direction: column;
        flex: 1;
        height: 100%;
    }

    .fce-bpg-grid.owl-carousel .fce-bpg-content {
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    /* Force proper width calculation */
    .fce-bpg-grid.owl-carousel.owl-loaded .owl-item {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Remove min-height after carousel loads */
    .fce-bpg-grid.owl-loaded {
        min-height: 0;
    }

    .fce-bpg-image {
        height: 200px;
    }

    .fce-bpg-content {
        padding: 25px 20px 10px;
    }

    .fce-bpg-date {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .fce-bpg-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .fce-bpg-excerpt {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .fce-bpg-button {
        font-size: 15px;
        margin-top: auto;
        padding-bottom: 10px;
    }
}

/* ============================================
   SMALL MOBILE
   ============================================ */

@media (max-width: 480px) {
    .fce-bpg-card {
        border-radius: 15px;
    }

    .fce-bpg-image {
        height: 180px;
        border-radius: 15px 15px 0 0;
    }

    .fce-bpg-content {
        padding: 20px 18px 10px;
    }

    .fce-bpg-title {
        font-size: 17px;
    }

    .fce-bpg-excerpt {
        font-size: 15px;
    }

    .fce-bpg-button {
        padding-bottom: 10px;
    }
}

/* ============================================
   OWL CAROUSEL CUSTOM STYLES (MOBILE ONLY)
   ============================================ */

@media (max-width: 767px) {
    /* Owl Carousel Dots - Increase specificity */
    .fc-element.fce-blog-posts-grid .owl-carousel .owl-dots {
        text-align: center;
        margin-top: 15px;
        display: flex;
        gap: 8px;
        justify-content: center;
        align-items: center;
        padding: 10px 0;
    }

    .fc-element.fce-blog-posts-grid .owl-carousel .owl-dot {
        flex-shrink: 0;
        cursor: pointer;
        margin: 0;
    }

    .fc-element.fce-blog-posts-grid .owl-carousel .owl-dot span {
        width: 10px;
        height: 10px;
        background-color: #d1d5db;
        border-radius: 50%;
        display: block;
        transition: all 0.3s ease;
        border: none;
        margin: 0;
    }

    .fc-element.fce-blog-posts-grid .owl-carousel .owl-dot.active span {
        background-color: #3b82f6;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        transform: scale(1.2);
    }

    .fc-element.fce-blog-posts-grid .owl-carousel .owl-dot:hover span {
        opacity: 0.7;
    }
}
/**
 * Courses Grid Styles
 * Matches the "Our Courses" design exactly
 */

/* Main Container */
.fce-courses-grid {
    padding:0px;
   
}

/* Grid Wrapper */
.fce-cg-wrapper {
    width: 100%;
}

/* Courses Grid */
.fce-cg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
}

/* Individual Course Card */
.fce-cg-card {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Card Inner - Container */
.fce-cg-card-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 450px;
    overflow: hidden;
}

/* Image Overlay - Dark gradient (inside title section) */
.fce-cg-title-section .fce-cg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

/* Title Section - Background Image Container */
.fce-cg-title-section {
    position: relative;
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.fce-cg-title-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

/* Hover zoom effect on title section using pseudo-element */
.fce-cg-card:hover .fce-cg-title-section::before {
    transform: scale(1.1);
}

/* Title Link - Makes entire title clickable */
.fce-cg-title-link {
    position: relative;
    z-index: 2;
    text-decoration: none;
    display: block;
    width: 100%;
}

.fce-cg-title-link:hover {
    text-decoration: none;
}

.fce-cg-title {
    position: relative;
    z-index: 2;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-family: 'Playfair Display', serif;
    transition: transform 0.3s ease;
}

.fce-cg-title {
    transition: transform 0.25s ease, color 0.25s ease;
}







/* Info Section - Dark Blue Background */
.fce-cg-info-section {
    position: relative;
    z-index: 2;
    background-color: #1a2942;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
}

/* Even cards get lighter background color for info section */
.fce-cg-card:nth-child(even) .fce-cg-info-section {
    background-color: rgba(46, 67, 92, 1);
}

/* Info Item */
.fce-cg-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    font-family: "Poppins", sans-serif;
    padding: 5px 20px;
}

/* Alternating Background Colors - Striped Pattern */
/* For odd cards (1st, 3rd) - Darker blue */
.fce-cg-card:nth-child(odd) .fce-cg-info-item:nth-child(odd) {
    background-color: #1a2942;
}

.fce-cg-card:nth-child(odd) .fce-cg-info-item:nth-child(even) {
    background-color: rgba(26, 41, 66, 0.7);
}

/* For even cards (2nd, 4th) - Lighter blue */
.fce-cg-card:nth-child(even) .fce-cg-info-item:nth-child(odd) {
    background-color: rgba(46, 67, 92, 1);
}

.fce-cg-card:nth-child(even) .fce-cg-info-item:nth-child(even) {
    background-color: rgba(46, 67, 92, 0.7);
}

.fce-cg-info-item i {
    font-size: 16px;
    color: #ffffff;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.fce-cg-info-item span {
    flex: 1;
}

/* Button Section */
.fce-cg-button-section {
    position: relative;
    z-index: 2;
    background-color: #0f1a2b;
    padding: 0;
}

.fce-cg-button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background-color:rgba(6, 32, 63, 1);
    color: #ffffff;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-family: "Poppins", sans-serif;
    border: none;
    cursor: pointer;
    border: 0.8px solid #ffffff96;
}

.fce-cg-button:hover {
    background-color: rgba(0, 128, 255, 1);
    color: #ffffff;
    text-decoration: none;
}

/* Hover Effect - Removed zoom transition */
/* .fce-cg-card:hover .fce-cg-card-inner {
    background-size: 105%;d
}

.fce-cg-card-inner {
    transition: background-size 0.5s ease;
} */

/* Responsive Styles */

/* Tablet - 2 columns */
@media (max-width: 991px) {
    .fce-courses-grid {
        padding: 0px 0;
    }

    .fce-cg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0px;
        /* padding: 0 15px; */
    }

    .fce-cg-card-inner {
        min-height: 420px;
    }

    .fce-cg-title {
        font-size: 24px;
    }

    .fce-cg-info-item {
        font-size: 13px;
    }

    .fce-cg-button {
        font-size: 14px;
        padding: 16px 20px;
    }
}

/* Mobile - 1 column */
@media (max-width: 767px) {
    .fce-cg-grid {
        grid-template-columns: 1fr;
        gap: 0px;
    }

    .fce-cg-card-inner {
        min-height: 400px;
    }

    .fce-cg-title {
        font-size: 22px;
        padding: 25px 15px;
        margin-bottom: -35px;
    }

    .fce-cg-info-section {
        padding: 10px 15px;
        gap: 1px;
    }

    .fce-cg-info-item {
        font-size: 13px;
    }

    .fce-cg-info-item i {
        font-size: 14px;
    }

    .fce-cg-button {
        font-size: 14px;
        padding: 15px 20px;
    }
}

/* Extra Small Mobile */
@media (max-width: 575px) {
    .fce-courses-grid {
        padding: 5px 0 0;
    }

    .fce-cg-card-inner {
        min-height: 380px;
    }

    .fce-cg-title {
        font-size: 25px;
    }

    .fce-cg-info-item {
        font-size: 12px;
    }
}/**
 * Cards Grid - Flexible Content Block
 * A responsive grid of 4 cards with icons, titles, and descriptions
 */

.fce-cards-grid {
    position: relative;
    width: 100%;
}

.cg-grid-wrapper {
    position: relative;
}

.cg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: 15px;
    width: 100%;
}

/* Individual Card */
.cg-card {
    position: relative;
    background-color: rgba(23, 46, 74, 1);
    border-radius: 24px;
    padding: 30px 25px;
    display: flex;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cg-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

/* Icon Styling */
.cg-card-icon {
    margin-bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.cg-icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cg-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Title Styling */
.cg-card-title {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    color: #ffffff;
    margin: 0 0 10px 0;
    font-family: 'Poppins', sans-serif;
}

/* Description Styling */
.cg-card-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

/* Tablet - 2 cards per row */
@media (max-width: 991px) {
    .cg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .cg-card {
        padding: 25px 25px;
        border-radius: 20px;
    }

    .cg-icon-wrapper {
        width: 70px;
        height: 70px;
        padding: 10px;
    }

    .cg-card-title {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .cg-card-description {
        font-size: 14px;
    }
}

/* Mobile - 1 card per row */
@media (max-width: 767px) {
    .cg-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cg-card {
        padding: 30px 20px;
        border-radius: 16px;
        height: auto;
        width: 100%;
    }

    .cg-card-inner {
        min-height: 100%;
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .cg-card-icon {
        margin-bottom: 20px;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .cg-icon-wrapper {
        width: 65px;
        height: 65px;
        padding: 14px;
    }

    .cg-card-title {
        font-size: 17px;
        margin-bottom: 12px;
        text-align: center;
        width: 100%;
    }

    .cg-card-description {
        font-size: 14px;
        line-height: 1.5;
        text-align: center;
        width: 100%;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .cg-card {
        padding: 25px 45px;
    }

    .cg-icon-wrapper {
        width: 60px;
        height: 60px;
        padding: 10px;
    }

    .cg-card-title {
        font-size: 18px;
    }

    .cg-card-description {
        font-size: 15px;
    }
}
/**
 * Testimonials Slider Styles
 * Matches the design from testimonials section.png
 */

/* Main Container */
.fce-testimonials-slider {
    padding: 10px 0;
    background-color: #ffffff;
    overflow: visible;
}

/* Wrapper */
.fce-ts-wrapper {
    position: relative;
    padding-top: 75px;
    overflow: hidden;
}

/* Carousel Container */s
.fce-ts-carousel {
    position: relative;
    overflow: visible;
}

/* Override Owl Carousel overflow - hide X, show Y */
.fce-ts-carousel.owl-carousel .owl-stage-outer {
    overflow-x: visible ;
    overflow-y: visible ;
}

/* Individual Testimonial Card */
.fce-ts-card {
    padding: 0px;
    margin-bottom: 20px;
    overflow: visible;
    display: flex;
}

.fce-ts-card-inner {
    background-color: rgba(23, 46, 74, 1);
    border-radius: 20px;
    padding: 70px 15px 35px;
    text-align: center;
    position: relative;
    min-height: 290px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); */
    z-index:2;
    width: 100%;
}

/* Student Photo */
.fce-ts-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: visible;
    margin: 0 auto 20px;
    position: absolute;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    z-index:4;
    padding: 5px;
    background: linear-gradient(180deg, rgba(23, 46, 74, 1) 0%, rgba(23, 46, 74, 1) 50%, #ffffff 50%, #ffffff 100%);
    box-shadow: none;
}

/* Remove the old ::after pseudo-element border */
.fce-ts-photo::after {
    display: none;
}

.fce-ts-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
    border-radius: 50%;
}

/* Student Name */
.fce-ts-name {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 15px 0 0px;
    line-height: 1.3;
}

/* Student Position */
.fce-ts-position {
    font-size: 16px;
    font-weight: 400;
    color: #b8c5d6;
    margin: 0 0 20px;
    line-height: 1.4;
}

/* Testimonial Text with Quotes */
.fce-ts-text {
    position: relative;
    margin: 5px 0 5px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fce-ts-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #d1dae5;
    margin: 0;
    position: relative;
    z-index: 1;
    padding: 0 30px;
}

/* Quote Marks */
.fce-ts-quote {
    line-height: 1;
    position: absolute;
}

.fce-ts-quote img {
    width: 30px;
    height: auto;
    display: block;
    opacity: 0.8;
    filter: brightness(0) invert(1);
}

.fce-ts-quote-open {
    top: 0px;
    left: 0;
}

.fce-ts-quote-open img {
    transform: rotate(180deg) scaleX(1);
}

.fce-ts-quote-close {
    bottom: 0px;
    right: 0;
}

/* Star Rating */
.fce-ts-rating {
    margin-top: auto;
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
}

.fce-ts-rating i {
    font-size: 18px;
}

.fce-ts-star-filled {
    color: #ffc107;
}

.fce-ts-star-outline {
    color: #ffc107;
}

/* Hide Default Owl Carousel Navigation */
.fce-testimonials-slider .owl-nav {
    display: none ;
}

.fce-testimonials-slider .owl-dots {
    display: none ;
}

/* Custom Navigation Arrows - Positioned relative to carousel */
.fce-ts-wrapper {
    position: relative;
}

.fce-ts-carousel.owl-carousel {
    position: relative;
}

.fce-ts-nav-arrows {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    max-width: 1320px;
    margin-left: -660px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 100;
    height: 50%;
}

/* Position arrows vertically centered to cards */
.fce-ts-nav-prev,
.fce-ts-nav-next {
    position: relative;
    top: 50%;
    /* transform: translateY(-50%); */
}

@media (max-width: 1400px) {
    .fce-ts-nav-arrows {
        max-width: 1140px;
        margin-left: -570px;
    }
}

@media (max-width: 1200px) {
    .fce-ts-nav-arrows {
        max-width: 960px;
        margin-left: -480px;
    }
}

.fce-ts-nav-arrow {
    pointer-events: all;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid #1a2942;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.fce-ts-nav-arrow:hover {
    transform: scale(1.1);
}

.fce-ts-nav-arrow i {
    font-size: 20px;
    color: #1a2942;
}

.fce-ts-nav-prev {
    margin-left: -60px;
}

.fce-ts-nav-next {
    margin-right: -60px;
}

/* Custom Pagination Dots */
.fce-ts-dots {
    text-align: center;
    margin-top: 10px;
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.fce-ts-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.fce-ts-dot.active {
    background-color: #3b82f6;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: scale(1.2);
}

.fce-ts-dot:hover {
    opacity: 0.7;
}

/* Responsive Styles */

/* Tablet */
@media (max-width: 1024px) {
 
    .fce-ts-nav-prev {
        margin-left: -20px;
    }

    .fce-ts-nav-next {
        margin-right: -20px;
    }
}
    
@media (max-width: 1024px) {
    .fce-testimonials-slider {
        padding: 10px 0;
    }

    .fce-ts-wrapper {
        padding-top: 70px;
    }

    .fce-ts-card-inner {
        padding: 60px 25px 30px;
        min-height: 360px;
    }

    .fce-ts-photo {
        width: 130px;
        height: 130px;
        top: -65px;
    }

    .fce-ts-name {
        font-size: 18px;
    }

    .fce-ts-position {
        font-size: 13px;
    }

    .fce-ts-text p {
        font-size: 13px;
        padding: 0 20px;
    }

    .fce-ts-quote-open {
        top: 10px;
    }

    .fce-ts-quote-close {
        bottom: 10px;
    }

    /* Navigation arrows for tablet */
    .fce-ts-nav-arrows {
        max-width: 720px;
        margin-left: -360px;
        display: none;
    }

    .fce-ts-nav-arrow {
        width: 45px;
        height: 45px;
    }

    .fce-ts-nav-arrow i {
        font-size: 18px;
    }

    .fce-ts-nav-prev {
        margin-left: -20px;
    }

    .fce-ts-nav-next {
        margin-right: -20px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .fce-testimonials-slider {
        padding: 10px 0;
    }

    .fce-ts-wrapper {
        padding-top: 65px;
    }

    .fce-ts-card {
        height: 340px;
    }

    .fce-ts-card-inner {
        padding: 55px 20px 25px;
        min-height: 340px;
        height: 100%;
        border-radius: 15px;
    }

    .fce-ts-photo {
        width: 130px;
        height: 130px;
        top: -65px;
        padding: 3px;
    }

    .fce-ts-name {
        font-size: 16px;
    }

    .fce-ts-position {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .fce-ts-text p {
        font-size: 14px;
        padding: 0 25px;
    }

    .fce-ts-quote-open {
        top: 35px;
    }

    .fce-ts-quote-close {
        bottom: 35px;
    }

    .fce-ts-quote img {
        width: 25px;
    }

    .fce-ts-rating i {
        font-size: 16px;
    }


    /* Navigation arrows for mobile */
    .fce-ts-nav-arrows {
        max-width:100%;
        left: 0;
        margin: 0;
        display: none;

    }

    .fce-ts-nav-arrow {
        width: 40px;
        height: 40px;
    }

    .fce-ts-nav-arrow i {
        font-size: 16px;
    }

    .fce-ts-nav-prev {
        margin-left:5px;
    }

    .fce-ts-nav-next {
        margin-right: 5px;
    }

    /* Dots for mobile */
    .fce-ts-dots {
        margin-top: 2px;
        gap: 8px;
    }

    .fce-ts-dot {
        width: 10px;
        height: 10px;
    }

    .fce-ts-dot.active {
        width: 10px;
        height: 10px;
        transform: scale(1.2);
    }

    .fce-testimonials-slider .owl-dots {
        margin-top: 20px;
        gap: 8px;
    }

    .fce-testimonials-slider .owl-dot {
        width: 10px;
        height: 10px;
    }

    .fce-testimonials-slider .owl-dot.active {
        width: 25px;
    }
}

/* Extra Small Mobile */
@media (max-width: 575px) {
    .fce-ts-card {
        padding: 0 0px;
    }

    .fce-testimonials-slider .owl-nav {
        display: none;
    }
}
/**
 * FAQ Accordion Styles
 * Clean and minimal accordion design with plus/minus toggle icons
 */

/* Main Container */
.fce-faq-accordion {
    padding:0px;
    background-color: #ffffff;
}

/* FAQ Wrapper */
.fce-faq-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

/* Individual FAQ Item */
.fce-faq-item {
    margin-bottom: 0;
}

/* FAQ Question (Header/Toggle) */
.fce-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    cursor: pointer;
    transition: all 0.5s ease-in-out;
    border-bottom: 1px solid #0e0d0d;
    user-select: none;
}
/* Smooth border animation */
.fce-faq-question {
    border-bottom: 1px solid #0e0d0d;
    transition: border-color 0.5s ease-in-out;
}

.fce-faq-item.active .fce-faq-question {
    border-bottom-color: transparent;
}

/* Remove question border when item is active (answer is open) */
.fce-faq-item.active .fce-faq-question {
    /* border-bottom: none; */
}

.fce-faq-question:hover {
    opacity: 0.8;
}

/* Question Text */
.fce-faq-q-text {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    line-height: 1.5;
    padding-right: 20px;
    font-family: "Poppins", sans-serif;
}

/* Toggle Icon */
.fce-faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s ease-in-out, opacity 0.35s ease-in-out;
}

.fce-faq-icon i {
    font-size: 18px;
    color: #000000;
    transition: all 0.35s ease-in-out;
}

/* Smooth rotation and scale when active */
.fce-faq-item.active .fce-faq-icon {
    transform: rotate(180deg);
}

/* Additional icon effect on hover */
.fce-faq-question:hover .fce-faq-icon {
    transform: scale(1.1);
}

.fce-faq-item.active .fce-faq-question:hover .fce-faq-icon {
    transform: rotate(180deg) scale(1.1);
}

/* FAQ Answer (Content) */
.fce-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease-in-out, padding 0.45s ease-in-out, opacity 0.35s ease-in-out;
    border-bottom: 1px solid #0e0d0d;
    opacity: 0;
}

.fce-faq-answer.active {
    max-height: 2000px; /* Large enough for most content */
    padding: 0px 0 30px;
    opacity: 1;
}

/* Answer Content */
.fce-faq-answer-content {
    font-size: 15px;
    font-weight: 400;
    color: #666666;
    line-height: 1.7;
    font-family: "Poppins", sans-serif;
}

.fce-faq-answer-content p {
    margin: 0 0 15px 0;
}

.fce-faq-answer-content p:last-child {
    margin-bottom: 0;
}

.fce-faq-answer-content ul,
.fce-faq-answer-content ol {
    margin: 0 0 15px 20px;
    padding: 0;
}

.fce-faq-answer-content li {
    margin-bottom: 8px;
}

/* Remove border from last item's answer when closed */
.fce-faq-item:last-child .fce-faq-answer:not(.active) {
    border-bottom: none;   
}

/* Responsive Styles */

/* Tablet */
@media (max-width: 991px) {
    .fce-faq-accordion {
        padding: 0px 0;
    }

    .fce-faq-question {
        padding: 18px 0;
    }

    .fce-faq-q-text {
        font-size: 17px;
    }

    .fce-faq-answer.active {
        padding: 18px 0;
    }

    .fce-faq-answer-content {
        font-size: 14px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .fce-faq-accordion {
        padding: 40px 0;
    }

    .fce-faq-question {
        padding: 16px 0;
    }

    .fce-faq-q-text {
        font-size: 16px;
        padding-right: 15px;
    }

    .fce-faq-icon i {
        font-size: 16px;
    }

    .fce-faq-answer.active {
        padding: 16px 0;
    }

    .fce-faq-answer-content {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* Extra Small Mobile */
@media (max-width: 575px) {
    .fce-faq-accordion {
        padding: 1px 0;
    }

    .fce-faq-question {
        padding: 14px 0;
    }

    .fce-faq-q-text {
        font-size: 15px;
    }

    .fce-faq-answer.active {
        padding:0 0 15px;
    }

    .fce-faq-answer-content {
        font-size: 14px;
    }
}
/**
 * Image Gallery Styles
 * Responsive image gallery with load more functionality and FancyBox integration
 */

/* ==========================================================================
   Gallery Container
   ========================================================================== */

.fce-image-gallery {
    position: relative;
}

/* Use CSS Grid instead of Bootstrap flex - more reliable */
.fce-image-gallery .ig-gallery-wrapper {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; /* Mobile: 2 per row */
    gap: 20px !important;
    width: 100% !important;
    margin: 0 !important;
}

/* ==========================================================================
   Gallery Item
   ========================================================================== */

.ig-gallery-item {
    opacity: 1;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    position: relative;
    box-sizing: border-box;
    padding: 0 !important; /* Remove Bootstrap padding */
    width: auto !important; /* Let grid handle width */
    max-width: none !important; /* Remove Bootstrap constraints */
    flex: none !important; /* Disable flex */
}

/* Tablets (768px+): 3 per row */
@media (min-width: 768px) {
    .fce-image-gallery .ig-gallery-wrapper {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 24px !important;
    }
}

/* Desktop (992px+): 4 per row */
@media (min-width: 992px) {
    .fce-image-gallery .ig-gallery-wrapper {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 30px !important;
    }
}

/* Fade animation for gallery items */
.fce-image-gallery .ig-gallery-item {
    animation: ig-fadeIn 0.5s ease-in-out;
}

@keyframes ig-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image Wrapper */
.ig-image-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ig-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.ig-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    border-radius: 10px;
    background-color: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ig-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

/* ==========================================================================
   Overlay Effects
   ========================================================================== */

.ig-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.ig-overlay-icon {
    color: #ffffff;
    font-size: 32px;
    transform: scale(0.5);
    transition: transform 0.3s ease;
}

/* Hover Effects */
.ig-image-link:hover .ig-overlay {
    opacity: 1;
}

.ig-image-link:hover .ig-overlay-icon {
    transform: scale(1);
}

.ig-image-link:hover .ig-image {
    transform: scale(1.1);
}

.ig-image-link:hover .ig-image-container {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Image Caption
   ========================================================================== */

.ig-caption {
    padding: 12px 0;
    text-align: center;
}

.ig-caption p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}


/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .ig-overlay-icon {
        font-size: 28px;
    }

    .ig-caption p {
        font-size: 13px;
    }
}

/* Mobile (below 768px) */
@media (max-width: 767px) {
    .ig-image-container {
        padding-bottom: 65%; /* Slightly different ratio for mobile */
        border-radius: 6px;
    }

    .ig-overlay-icon {
        font-size: 24px;
    }

    .ig-caption {
        padding: 10px 0;
    }

    .ig-caption p {
        font-size: 12px;
    }
}

/* Small Mobile (below 576px) */
@media (max-width: 575px) {
    .ig-image-container {
        border-radius: 4px;
    }
}

/* ==========================================================================
   FancyBox Customization (Optional)
   ========================================================================== */

/* Add custom styles for FancyBox if needed */
.fancybox__caption {
    font-size: 14px;
    padding: 10px 20px;
    text-align: center;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.ig-image-link:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.ig-image-link:focus .ig-overlay {
    opacity: 1;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .ig-gallery-item,
    .ig-image,
    .ig-overlay,
    .ig-overlay-icon,
    .ig-image-container,
    .ig-load-more-btn,
    .ig-btn-icon {
        transition: none;
        animation: none;
    }
}
/* ========================================
   Instructor Profile - Flexible Content Block
   ======================================== */

.fce-instructor-profile {
    padding: 25px 0;
}

.fce-ip-wrapper {
    max-width: 100%;
}

.fce-ip-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* Grid layout - Multiple cards in rows */
.fce-ip-grid.layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

/* Single Instructor Card */
.fce-ip-card {
    background: #ffffff;
    width: 100%;
}

.fce-ip-card-inner {
    display: flex;
    align-items: center;
    gap: 48px;
}

/* Image Section (Left Side) */
.fce-ip-image-section {
    flex-shrink: 0;
}

.fce-ip-image-wrapper {
    width: 350px;
    height: 350px;
    position: relative;
}

.fce-ip-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

/* Content Section (Right Side) */
.fce-ip-content-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 0;
}

/* Instructor Name */
.fce-ip-name {
    margin: 0;
    font-size: 25px;
    font-weight: 500;
    line-height: 1.2;
    color: #000000;
    font-family: 'Playfair Display', serif;
}

/* Instructor Title/Specialty */
.fce-ip-title {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    color: #888888;
    line-height: 1.4;
}

/* Biography */
.fce-ip-bio {
    margin: 8px 0 0 0;
    font-size: 15px;
    line-height: 1.7;
    color: #333333;
}

.fce-ip-bio p {
    margin: 0 0 12px 0;
}

.fce-ip-bio p:last-child {
    margin-bottom: 0;
}

/* Social Links */
.fce-ip-social-links {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.fce-ip-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    color: rgba(23, 46, 74, 1);
}

.fce-ip-social-link:hover {
    color: rgba(0, 128, 255, 1);
    text-decoration: none;
}

.fce-ip-social-link:active,
.fce-ip-social-link:focus,
.fce-ip-social-link:visited {
    color:rgba(23, 46, 74, 1);
    text-decoration: none;
}

.fce-ip-social-link i {
    font-size: 20px;
    color: #0077B5;
}

.fce-ip-social-link:hover i {
    color: #005582;
}

.fce-ip-social-link:active i,
.fce-ip-social-link:focus i,
.fce-ip-social-link:visited i {
    color: #0077B5;
}

/* Tablet */
@media (max-width: 991px) {
    .fce-instructor-profile {
        padding: 20px 0;
    }

    .fce-ip-card-inner {
        gap: 32px;
        align-items: flex-start;
    }

    .fce-ip-image-wrapper {
        width: 200px;
        height: 200px;
    }

    .fce-ip-name {
        font-size: 23px;
    }

    .fce-ip-grid {
        gap: 40px;
    }

    .fce-ip-grid.layout-grid {
        gap: 40px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .fce-instructor-profile {
        padding:0px;
    }

    .fce-ip-card-inner {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        text-align: center;
    }

    .fce-ip-image-wrapper {
        width: 180px;
        height: 180px;
    }

    .fce-ip-name {
        font-size: 20px;
    }

    .fce-ip-title {
        font-size: 15px;
    }

    .fce-ip-bio {
        font-size: 14px;
        text-align: center;
    }

    .fce-ip-social-links {
        justify-content: center;
    }

    .fce-ip-grid {
        gap: 32px;
    }

    .fce-ip-grid.layout-grid {
        gap: 32px;
    }
}
