/* Premium Gallery Styles */
.gallery-section-title {
    font-family: inherit;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 15px;
    text-align: left;
}
.gallery-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: #FC5220;
}
.gallery-swiper {
    padding-bottom: 50px !important;
    padding-top: 10px;
    width: 100%;
}
.gallery-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    height: 260px; /* Reduced height to make it less 'long' */
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}
.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.gallery-card:hover img {
    transform: scale(1.1);
}
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-card:hover .gallery-overlay {
    opacity: 1;
}
.gallery-zoom-icon {
    width: 45px;
    height: 45px;
    background: #FC5220;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}
/* Navigation Controls */
.gallery-swiper .swiper-button-next, 
.gallery-swiper .swiper-button-prev {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.gallery-swiper .swiper-button-next:after, 
.gallery-swiper .swiper-button-prev:after {
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 800;
}
.swiper-pagination-bullet-active {
    background: #FC5220 !important;
}

/* Hide old static structures if needed, but we will replace them in HTML */
.glry-row, .glry-row-2 {
    display: none !important;
}

/* Main Product Image Styling */
.fx-projects-details-img {
    width: 50% !important;
    margin: 30px auto !important;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.fx-projects-details-img img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
}

/* Admin Editor Table Fixes - Dynamic & Readable */
.fx-projects-details-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    border: 1px solid #ddd;
    table-layout: auto;
    background-color: #fff;
}

.fx-projects-details-content table th,
.fx-projects-details-content table td {
    border: 1px solid #ddd !important;
    padding: 15px 20px !important; /* Increased padding for better column width */
    vertical-align: middle;
    line-height: 1.6;
    font-size: 15px;
    min-width: 150px; /* Ensures columns don't get too squeezed */
}

.fx-projects-details-content table th {
    background-color: #f8f9fa;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.fx-projects-details-content table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.fx-projects-details-content table tr:hover {
    background-color: #f5f5f5; /* Subtle hover effect for readability */
}

/* Ensure ONLY tables scroll horizontally, not the text above them */
.fx-description-wrap {
    width: 100%;
    overflow-x: visible; /* Prevent the container from scrolling */
    margin-bottom: 30px;
}

.fx-description-wrap table {
    display: block; /* Required for direct table scrolling */
    width: 100%;
    overflow-x: auto; /* Specifically scroll only the table */
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar specifically for the table */
.fx-description-wrap table::-webkit-scrollbar {
    height: 8px;
}

.fx-description-wrap table::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.fx-description-wrap table::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.fx-description-wrap table::-webkit-scrollbar-thumb:hover {
    background: var(--fx-clr-pr-1);
}

.fx-projects-details-content {
    overflow-x: hidden; /* Remove the scroller from the main container */
}

@media (max-width: 768px) {
    .fx-projects-details-content table th,
    .fx-projects-details-content table td {
        padding: 10px 12px !important;
        min-width: 120px;
        font-size: 14px;
    }
    .fx-projects-details-img {
        width: 100% !important;
    }
}

/* Brochure Dropdown Styles - Premium Glassmorphism */
.fx-brochure-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-toggle-btn {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.icon-arrow {
    font-size: 14px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.fx-brochure-dropdown:hover .icon-arrow {
    transform: rotate(180deg);
}

.brochure-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 280px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    border-top: 3px solid #FC5220;
    padding: 10px 0;
    margin-top: 10px; /* Reduced gap for easier hover */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 9999;
    list-style: none;
    text-align: left;
}

.fx-brochure-dropdown:hover .brochure-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.brochure-dropdown-menu li {
    padding: 0;
    display: block;
}

.brochure-dropdown-menu li a {
    display: flex !important;
    align-items: center;
    padding: 14px 25px;
    color: #363539 !important;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.brochure-dropdown-menu li:last-child a {
    border-bottom: none;
}

.brochure-dropdown-menu li a:hover {
    background: rgba(252, 82, 32, 0.08); /* More visible hover */
    color: #FC5220 !important;
    padding-left: 30px;
}

.brochure-dropdown-menu li a i {
    color: #FC5220;
    font-size: 18px;
    margin-right: 15px;
}

/* Spacer to maintain hover state - bridge the gap */
.fx-brochure-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 15px; /* Bridge the 10px margin-top */
    background: transparent;
    z-index: 10;
}

/* Updated Testimonials - Image Based Glass Design (Multi-Card) */
.fx-testimonial-1-area {
    padding: 120px 0 !important;
    position: relative !important;
    background: #0f172a !important; 
    overflow: hidden !important;
    z-index: 1 !important;
}

/* Background Glowing Blobs */
.fx-testimonial-1-area::before {
    content: "" !important;
    position: absolute !important;
    top: 5% !important;
    left: 5% !important;
    width: 350px !important;
    height: 350px !important;
    background: radial-gradient(circle, rgba(252, 82, 32, 0.3) 0%, rgba(252, 82, 32, 0) 70%) !important;
    z-index: -1 !important;
    filter: blur(80px) !important;
}

.fx-testimonial-1-area::after {
    content: "" !important;
    position: absolute !important;
    bottom: 5% !important;
    right: 5% !important;
    width: 450px !important;
    height: 450px !important;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0) 70%) !important;
    z-index: -1 !important;
    filter: blur(100px) !important;
}

.fx-testimonial-1-wrap-v2 {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 80px 0 100px !important;
    width: 100% !important;
}

.fx-testimonial-v2-active {
    padding: 40px 0 60px !important;
    overflow: hidden !important; 
    cursor: grab;
}

.fx-testimonial-v2-active:active {
    cursor: grabbing;
}

.fx-testimonial-1-wrap-v2 .swiper-slide {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    transition: all 0.5s ease !important;
    opacity: 0.4;
    transform: scale(0.85);
}

.fx-testimonial-1-wrap-v2 .swiper-slide-active {
    opacity: 1 !important;
    transform: scale(1) !important;
    z-index: 10;
}

.testimonial-glass-card {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    padding: 50px 40px !important;
    text-align: center !important;
    position: relative !important;
    transition: all 0.5s ease !important;
    min-height: 320px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
    width: 100% !important;
}

.swiper-slide-active .testimonial-glass-card {
    background: rgba(255, 255, 255, 0.09) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4) !important;
}

.testimonial-glass-card .quote-icon {
    margin-bottom: 25px !important;
}

.testimonial-glass-card .quote-icon i {
    font-size: 35px !important;
    color: #FC5220 !important;
    opacity: 0.6 !important;
}

.testimonial-text {
    font-size: 17px !important;
    line-height: 1.7 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 40px !important;
    font-weight: 400 !important;
    font-style: italic !important;
}

.author-name-badge {
    position: absolute !important;
    bottom: -22px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 12px 25px !important;
    border-radius: 10px !important;
    min-width: 200px !important;
    transition: all 0.4s ease !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Rely on swiper's active slide class */
.swiper-slide-active .author-name-badge {
    background: #FC5220 !important;
    border-color: #FC5220 !important;
    box-shadow: 0 10px 25px rgba(252, 82, 32, 0.5) !important;
}

.author-name-badge span {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
}

/* Hide legacy sidebar images */
.fx-testimonial-1-slider-preview {
    display: none !important;
}

/* Fix section title for dark bg */
.fx-testimonial-1-scn-title .fx-scn-title-1 {
    color: #fff !important;
}
.fx-testimonial-1-scn-title .fx-subtitle-1 span {
    color: #FC5220 !important;
}

.fx-gap-100 {
    display: block;
    height: 100px;
    width: 100%;
}

@media (max-width: 1200px) {
    .fx-testimonial-1-wrap-v2 {
        padding: 50px 20px !important;
    }
}

@media (max-width: 768px) {
    .testimonial-glass-card {
        padding: 40px 25px !important;
        min-height: 280px !important;
    }
    .testimonial-text {
        font-size: 15px !important;
    }
    .fx-testimonial-1-area {
        padding: 80px 0 !important;
    }
}
/* Fix Image Stretching in About Section Slider */
.fx-about-2-slider-item-gellary img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* General helper to prevent stretching for all cover images */
.img-cover img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
