/* Fixes for Color Issues and Layout Problems */

/* ============================================
   HEADER - Original Theme Styles
   ============================================ */
.heder-one {
    background: #1E1E20 !important;
    max-width: 100% !important;
    margin: 0 !important;
    margin-top: 0 !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    position: relative !important;
    z-index: 1000 !important;
    width: 100% !important;
}

/* Header top section - white text on dark background */
.heder-one .top .end-top .single-info a,
.heder-one .top .end-top .single-info p {
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    line-height: 24px !important;
}

.heder-one .top .end-top .single-info i {
    color: #fff !important;
}

.heder-one .top .start-top .social-header span {
    color: #6E777D !important;
}

.heder-one .top .start-top .social-header ul li a {
    color: #fff !important;
}

/* Header bottom navigation - dark text */
.heder-one .bottom .nav-area ul li a {
    color: #0C0A0A !important;
    font-weight: 600 !important;
}

.heder-one .bottom .nav-area ul li a:hover {
    color: var(--color-primary) !important;
}

/* Header right area icons */
.heder-one .bottom .right-area .icon-area .search,
.heder-one .bottom .right-area .icon-area i {
    color: #0C0A0A !important;
}

/* Sticky Header - Dark background with white text */
.heder-one.header--sticky {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    z-index: 999 !important;
    background: #1E1E20 !important;
    max-width: 1820px !important;
    margin: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border-radius: 0 0 10px 10px !important;
    box-shadow: 0px 7px 18px rgba(24, 16, 16, 0.05) !important;
}

.heder-one.header--sticky.sticky {
    display: block !important;
}

/* Hide main header when sticky is active */
body:has(.heder-one.header--sticky.sticky) .heder-one:not(.header--sticky) {
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Alternative method for browsers that don't support :has() */
.heder-one.header--sticky.sticky ~ * .heder-one:not(.header--sticky),
.sticky-active .heder-one:not(.header--sticky) {
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Sticky header navigation - white text */
.heder-one.header--sticky .bottom .nav-area ul li.main-nav > a,
.heder-one.header--sticky .bottom .nav-area ul li a {
    color: #fff !important;
}

.heder-one.header--sticky .bottom .nav-area ul li a:hover {
    color: var(--color-primary) !important;
}

/* Sticky header bottom section - dark background */
.heder-one.header--sticky .bottom {
    background: #1E1E20 !important;
}

/* Sticky header icons - white */
.heder-one.header--sticky .bottom .right-area .icon-area i,
.heder-one.header--sticky .bottom .right-area .icon-area .search i {
    color: #fff !important;
}

/* Sticky header nav-btn border - white */
.heder-one.header--sticky .bottom .right-area .nav-btn {
    border-color: #fff !important;
}

/* ============================================
   FOOTER - Modern & Stylish Design
   ============================================ */
.rts-footer-area {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    position: relative;
    overflow: hidden;
}

.rts-footer-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.rts-footer-area .title,
.rts-footer-area h1,
.rts-footer-area h2,
.rts-footer-area h3,
.rts-footer-area h4,
.rts-footer-area h5,
.rts-footer-area h6 {
    color: #fff !important;
}

.rts-footer-area .disc,
.rts-footer-area p {
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1.8;
}

.rts-footer-area a {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: all 0.3s ease;
    text-decoration: none;
}

.rts-footer-area a:hover {
    color: var(--color-primary) !important;
    transform: translateX(4px);
}

.rts-footer-area .footer-wrapper-left-one p.disc {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 15px;
    line-height: 1.8;
}

.rts-footer-area .single-nav-area-footer .title {
    color: #fff !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 24px !important;
}

.rts-footer-area .single-nav-area-footer.use-link ul li {
    margin-bottom: 12px;
}

.rts-footer-area .single-nav-area-footer.use-link ul li a {
    color: rgba(255, 255, 255, 0.7) !important;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.rts-footer-area .single-nav-area-footer.use-link ul li a i {
    font-size: 12px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.rts-footer-area .single-nav-area-footer.use-link ul li a:hover {
    color: var(--color-primary) !important;
    transform: translateX(5px);
}

.rts-footer-area .single-nav-area-footer.use-link ul li a:hover i {
    opacity: 1;
    transform: translateX(3px);
}

.rts-footer-area .single-nav-area-footer.news-letter p {
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 20px;
}

.rts-footer-area .single-nav-area-footer.news-letter form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rts-footer-area .single-nav-area-footer.news-letter form input[type="email"] {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 14px 18px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.rts-footer-area .single-nav-area-footer.news-letter form input[type="email"]:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.rts-footer-area .single-nav-area-footer.news-letter form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.rts-footer-area .single-nav-area-footer.news-letter form .btn-subscribe {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
}

.rts-footer-area .single-nav-area-footer.news-letter form .btn-subscribe:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.rts-footer-area .nav-footer-wrapper-one {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rts-footer-area .nav-footer-wrapper-one .footer-float-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.rts-footer-area .nav-footer-wrapper-one .footer-float-nav li {
    margin: 0;
}

.rts-footer-area .nav-footer-wrapper-one .footer-float-nav li a {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.rts-footer-area .nav-footer-wrapper-one .footer-float-nav li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.rts-footer-area .nav-footer-wrapper-one .footer-float-nav li a:hover {
    color: var(--color-primary) !important;
}

.rts-footer-area .nav-footer-wrapper-one .footer-float-nav li a:hover::after {
    width: 100%;
}

.rts-footer-area .copyright-area-one {
    background: rgba(0, 0, 0, 0.4);
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rts-footer-area .copyright-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.rts-footer-area .copyright-wrapper p {
    color: rgba(255, 255, 255, 0.6) !important;
    margin: 0;
    font-size: 14px;
}

.rts-footer-area .copyright-wrapper .right-nav ul {
    display: flex;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.rts-footer-area .copyright-wrapper .right-nav ul li {
    margin: 0;
}

.rts-footer-area .copyright-wrapper .right-nav ul li a {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.rts-footer-area .copyright-wrapper .right-nav ul li a::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.rts-footer-area .copyright-wrapper .right-nav ul li:first-child a::before {
    display: none;
}

.rts-footer-area .copyright-wrapper .right-nav ul li a:hover {
    color: var(--color-primary) !important;
}

.rts-footer-area .contact-area-footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 50px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rts-footer-area .contact-area-footer-top .single-contact-area-box {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rts-footer-area .contact-area-footer-top .single-contact-area-box:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: var(--color-primary);
}

.rts-footer-area .contact-area-footer-top .single-contact-area-box .icon {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: #fff;
    transition: all 0.3s ease;
}

.rts-footer-area .contact-area-footer-top .single-contact-area-box:hover .icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.rts-footer-area .contact-area-footer-top .single-contact-area-box .title,
.rts-footer-area .contact-area-footer-top .single-contact-area-box h6 {
    color: #fff !important;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.rts-footer-area .contact-area-footer-top .single-contact-area-box a {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 14px;
    display: block;
    line-height: 1.6;
}

.rts-footer-area .contact-area-footer-top .single-contact-area-box a:hover {
    color: var(--color-primary) !important;
}

.rts-footer-area .social-area-wrapper-one ul {
    display: flex;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 24px 0 0 0;
}

.rts-footer-area .social-area-wrapper-one ul li a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7) !important;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.rts-footer-area .social-area-wrapper-one ul li a:hover {
    background: var(--color-primary);
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
    border-color: var(--color-primary);
}

.rts-footer-area .footer-wrapper-left-one .logo img {
    max-height: 60px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

@media (max-width: 991px) {
    .rts-footer-area .contact-area-footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 40px 0;
    }
    
    .rts-footer-area .copyright-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .rts-footer-area .nav-footer-wrapper-one .footer-float-nav {
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .rts-footer-area .contact-area-footer-top {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 0;
    }
    
    .rts-footer-area .nav-footer-wrapper-one .footer-float-nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .rts-footer-area .footer-wrapper-right {
        margin-top: 40px;
    }
    
    .rts-footer-area .single-nav-area-footer {
        margin-bottom: 40px;
    }
}

/* ============================================
   HEADING COLORS - Normal sections
   ============================================ */
.title,
h1.title,
h2.title,
h3.title,
h4.title,
h5.title,
h6.title {
    color: var(--color-title) !important;
}

/* Dark background sections - white text */
.bg-dark .title,
.bg-dark h1.title,
.bg-dark h2.title,
.bg-dark h3.title,
.bg-dark h4.title,
.bg-dark h5.title,
.bg-dark h6.title,
.about-company-service-area .title,
.portfolio-team-area-bg .title,
.bg_image.bg-dark .title {
    color: #fff !important;
}

/* Fix all h1-h6 in normal sections (not in header, footer, banner, or dark sections) */
h1:not(.heder-one h1):not(.rts-footer-area h1):not(.banner-area-one-start h1):not(.bg-dark h1):not(.bg_image.bg-dark h1):not(.about-company-service-area h1):not(.portfolio-team-area-bg h1),
h2:not(.heder-one h2):not(.rts-footer-area h2):not(.banner-area-one-start h2):not(.bg-dark h2):not(.bg_image.bg-dark h2):not(.about-company-service-area h2):not(.portfolio-team-area-bg h2),
h3:not(.heder-one h3):not(.rts-footer-area h3):not(.banner-area-one-start h3):not(.bg-dark h3):not(.bg_image.bg-dark h3):not(.about-company-service-area h3):not(.portfolio-team-area-bg h3),
h4:not(.heder-one h4):not(.rts-footer-area h4):not(.banner-area-one-start h4):not(.bg-dark h4):not(.bg_image.bg-dark h4):not(.about-company-service-area h4):not(.portfolio-team-area-bg h4),
h5:not(.heder-one h5):not(.rts-footer-area h5):not(.banner-area-one-start h5):not(.bg-dark h5):not(.bg_image.bg-dark h5):not(.about-company-service-area h5):not(.portfolio-team-area-bg h5),
h6:not(.heder-one h6):not(.rts-footer-area h6):not(.banner-area-one-start h6):not(.bg-dark h6):not(.bg_image.bg-dark h6):not(.about-company-service-area h6):not(.portfolio-team-area-bg h6) {
    color: #ffffff !important;
}

/* ============================================
   PARAGRAPH/DISC COLORS
   ============================================ */
.disc,
p.disc {
    color: var(--color-body) !important;
}

/* Dark background sections - light text for paragraphs */
.bg-dark .disc,
.bg-dark p.disc,
.bg-dark p,
.about-company-service-area .disc,
.about-company-service-area p,
.portfolio-team-area-bg .disc,
.portfolio-team-area-bg p,
.bg_image.bg-dark .disc,
.bg_image.bg-dark p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ============================================
   PRE-TITLE COLORS
   ============================================ */
.pre,
span.pre {
    color: var(--color-primary) !important;
}

.bg-dark .pre,
.bg-dark span.pre,
.about-company-service-area .pre,
.about-company-service-area span.pre,
.portfolio-team-area-bg .pre,
.portfolio-team-area-bg span.pre,
.bg_image.bg-dark .pre,
.bg_image.bg-dark span.pre {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* ============================================
   ABOUT COMPANY SERVICE AREA
   ============================================ */
.about-company-service-area.bg-dark,
.rts-about-company-area.bg-dark,
.about-company-service-area.bg_image.bg-dark {
    background-color: var(--bg-dark-1) !important;
}

.about-company-service-area.bg-dark .title,
.rts-about-company-area.bg-dark .title,
.about-company-service-area.bg_image.bg-dark .title {
    color: #fff !important;
}

.about-company-service-area.bg-dark .disc,
.rts-about-company-area.bg-dark .disc,
.about-company-service-area.bg_image.bg-dark .disc,
.about-company-service-area.bg-dark p,
.rts-about-company-area.bg-dark p,
.about-company-service-area.bg_image.bg-dark p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ============================================
   PORTFOLIO AREA
   ============================================ */
.portfolio-team-area-bg.bg-dark,
.portfolio-team-area-bg.bg_image.bg-dark {
    background-color: var(--bg-dark-1) !important;
}

.portfolio-team-area-bg.bg-dark .title,
.portfolio-team-area-bg.bg_image.bg-dark .title {
    color: #fff !important;
}

.portfolio-team-area-bg.bg-dark .disc,
.portfolio-team-area-bg.bg_image.bg-dark .disc,
.portfolio-team-area-bg.bg-dark p,
.portfolio-team-area-bg.bg_image.bg-dark p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ============================================
   BANNER SLIDER TEXT COLORS
   ============================================ */
.banner-area-one-start .title,
.banner-inner-content-one .title,
.banner-area-one-start h1,
.banner-inner-content-one h1 {
    color: #fff !important;
}

.banner-area-one-start .pre,
.banner-inner-content-one .pre,
.banner-area-one-start span.pre,
.banner-inner-content-one span.pre {
    color: var(--color-primary) !important;
}

.banner-area-one-start .disc,
.banner-inner-content-one .disc,
.banner-area-one-start p,
.banner-inner-content-one p {
    color: #fff !important;
}

/* ============================================
   LINKS IN DARK SECTIONS
   ============================================ */
.bg-dark a,
.bg_image.bg-dark a,
.about-company-service-area a,
.portfolio-team-area-bg a {
    color: rgba(255, 255, 255, 0.9) !important;
}

.bg-dark a:hover,
.bg_image.bg-dark a:hover,
.about-company-service-area a:hover,
.portfolio-team-area-bg a:hover {
    color: #fff !important;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
main {
    padding-top: 0 !important;
}

/* Fix banner area padding for header */
.banner-swiper-area-one {
    padding-top: 0 !important;
    margin-top: 0 !important;
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Banner slider tam ekran ve sticky header'dan bağımsız */
.banner-area-one-start {
    padding-top: 0 !important;
    margin-top: 0 !important;
    min-height: 100vh !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.bg_banner-one {
    max-width: 100% !important;
    border-radius: 0 !important;
    height: 100vh !important;
    min-height: 100vh !important;
}

/* Banner içeriği ortalanmış ve biraz sola */
.banner-inner-content-one {
    text-align: left !important;
    max-width: 100% !important;
    margin-left: -250px !important;
    padding-left: 5% !important;
}

.banner-area-one-start .container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-left: 5% !important;
}

@media only screen and (min-width: 1200px) and (max-width: 1599px) {
    .banner-swiper-area-one {
        margin-right: 50px !important;
        margin-left: 0px !important;
    }
}

/* ============================================
   BODY COLOR
   ============================================ */
body {
    color: var(--color-body) !important;
}

/* ============================================
   SECTION SPECIFIC COLORS
   ============================================ */
.fun-facts-area .title {
    color: var(--color-title) !important;
}

.fun-facts-area .disc {
    color: var(--color-body) !important;
}

.why-choose-us-area .title {
    color: var(--color-title) !important;
}

.why-choose-us-area .disc {
    color: var(--color-body) !important;
}

.blog-area .title {
    color: var(--color-title) !important;
}

.blog-area .disc {
    color: var(--color-body) !important;
}

.rts-ervice-area .title,
.service-section-area .title {
    color: var(--color-title) !important;
}

.rts-ervice-area .disc,
.service-section-area .disc {
    color: var(--color-body) !important;
}

/* ============================================
   BUTTON WHITE - Text Color Fix
   ============================================ */
.rts-btn.btn-white {
    color: var(--color-primary) !important;
    background: #FFFFFF !important;
    font-weight: 700 !important;
}

.rts-btn.btn-white:hover {
    color: #fff !important;
}

/* Portfolio hover area button white */
.single-portfolio-area-one .hover-area .rts-btn.btn-white,
.single-project-card-inner .hover-area .rts-btn.btn-white {
    color: var(--color-primary) !important;
    background: #FFFFFF !important;
}

.single-portfolio-area-one .hover-area .rts-btn.btn-white:hover,
.single-project-card-inner .hover-area .rts-btn.btn-white:hover {
    color: #fff !important;
}

/* ============================================
   MEGA MENU - Text Color Fix
   ============================================ */
.rts-mega-menu .mega-menu-item li a,
.rts-mega-menu .mega-menu-item.with-list li a {
    color: var(--color-title) !important;
}

.rts-mega-menu .mega-menu-item li a:hover,
.rts-mega-menu .mega-menu-item.with-list li a:hover {
    color: var(--color-primary) !important;
}

/* ============================================
   HEADER BOTTOM - Original Theme (White Background)
   ============================================ */
.heder-one .bottom {
    background: #1e1e20 !important;
    border-radius: 0 0 10px 10px !important;
}

/* Main nav - beyaz renk (hover olmadığında) */
.heder-one .bottom .nav-area ul li.main-nav > a {
    color: #FFFFFF !important;
    font-weight: 600 !important;
}

/* Main nav hover - primary color */
.heder-one .bottom .nav-area ul li.main-nav:hover > a,
.heder-one .bottom .nav-area ul li.main-nav > a:hover {
    color: var(--color-primary) !important;
}

/* Diğer nav linkleri (main-nav olmayanlar) */
.heder-one .bottom .nav-area ul li:not(.main-nav) > a {
    color: #0C0A0A !important;
    font-weight: 600 !important;
}

.heder-one .bottom .nav-area ul li:not(.main-nav) > a:hover {
    color: var(--color-primary) !important;
}

.heder-one .bottom .right-area .icon-area i,
.heder-one .bottom .right-area .icon-area .search i {
    color: #ffffff !important;
}

/* Item content image fixes */
.item-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.item-content .item-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.item-content .item-gallery img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.item-content .item-gallery img:hover {
    transform: scale(1.02);
    cursor: pointer;
}

/* Service listing image fixes */
.single-service-area-inner .thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.single-service-area-inner:hover .thumbnail img {
    transform: scale(1.05);
}

/* Gallery image fixes */
.service-details-area .thumbnail img {
    transition: transform 0.3s ease;
}

.service-details-area .thumbnail:hover img {
    transform: scale(1.05);
}

/* Service slider responsive fixes */
.service-section-area .swiper-area-wrapper {
    position: relative;
    padding: 0 60px;
}

.service-section-area .service-swiper-next,
.service-section-area .service-swiper-prev {
    width: 50px !important;
    height: 50px !important;
    background: #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    color: var(--color-primary) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.service-section-area .service-swiper-next:hover,
.service-section-area .service-swiper-prev:hover {
    background: var(--color-primary) !important;
    color: #fff !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.service-section-area .service-swiper-next::after,
.service-section-area .service-swiper-prev::after {
    display: none !important;
}

.service-section-area .service-swiper-next {
    right: 0 !important;
}

.service-section-area .service-swiper-prev {
    left: 0 !important;
}

/* Service image wrapper */
.single-service-one .service-image-wrapper {
    margin-bottom: 20px;
}

/* Responsive fixes for homepage */
@media (max-width: 1199px) {
    .service-section-area .swiper-area-wrapper {
        padding: 0 50px;
    }
}

@media (max-width: 767px) {
    .service-section-area .swiper-area-wrapper {
        padding: 0 40px;
    }
    
    .service-section-area .service-swiper-next,
    .service-section-area .service-swiper-prev {
        width: 40px !important;
        height: 40px !important;
    }
    
    .single-service-one .service-image-wrapper {
        height: 150px !important;
    }
}

@media (max-width: 575px) {
    .service-section-area .swiper-area-wrapper {
        padding: 0 30px;
    }
    
    .service-section-area .service-swiper-next,
    .service-section-area .service-swiper-prev {
        width: 35px !important;
        height: 35px !important;
        font-size: 14px !important;
    }
}

/* Responsive homepage fixes */
@media (max-width: 1199px) {
    .banner-inner-content-one {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
}

@media (max-width: 767px) {
    .fun-facts-area .single-fun-facts-area {
        margin-bottom: 30px;
    }
    
    .about-company-service-area .about-thumbnail-inner-one {
        margin-bottom: 30px;
    }
    
    .portfolio-team-area-bg .single-portfolio-area-one {
        margin-bottom: 30px;
    }
}

/* ============================================
   REFERENCES SLIDER - Homepage
   ============================================ */
.mySwiper-references {
    padding: 20px 60px 60px !important;
    position: relative;
}

.modern-reference-slide {
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modern-reference-slide:hover {
    transform: translateY(-8px);
}

.reference-slide-thumbnail {
    position: relative;
    display: block;
    overflow: hidden;
    height: 320px;
    border-radius: 12px;
    background: #f8f9fa;
}

.reference-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.reference-slide-thumbnail:hover .reference-slide-image {
    transform: scale(1.1);
}

.reference-slide-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.reference-slide-logo {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
    filter: grayscale(0.3);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.reference-slide-thumbnail:hover .reference-slide-logo {
    filter: grayscale(0);
    transform: scale(1.05);
}

.reference-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reference-slide-thumbnail:hover .reference-slide-overlay {
    opacity: 1;
}

.view-details-text {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reference-slide-content {
    padding: 24px 0;
    text-align: center;
}

.reference-slide-content .pre {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.reference-slide-content .title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.reference-slide-content .title a {
    color: #fff;
    transition: color 0.3s ease;
}

.reference-slide-content .title a:hover {
    color: var(--color-primary);
}

.reference-slide-content .company-name {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.references-pagination {
    bottom: 20px !important;
}

.references-pagination .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.references-pagination .swiper-pagination-bullet-active {
    background: #fff;
}

.references-next,
.references-prev {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.2);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.references-next:hover,
.references-prev:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.references-next::after,
.references-prev::after {
    font-size: 20px !important;
    font-weight: bold;
}

@media (max-width: 991px) {
    .mySwiper-references {
        padding: 20px 50px 60px !important;
    }
    
    .reference-slide-thumbnail {
        height: 280px;
    }
}

@media (max-width: 767px) {
    .mySwiper-references {
        padding: 20px 40px 60px !important;
    }
    
    .reference-slide-thumbnail {
        height: 240px;
    }
    
    .references-next,
    .references-prev {
        width: 40px !important;
        height: 40px !important;
    }
    
    .references-next::after,
    .references-prev::after {
        font-size: 16px !important;
    }
}

@media (max-width: 575px) {
    .mySwiper-references {
        padding: 20px 30px 60px !important;
    }
    
    .reference-slide-thumbnail {
        height: 200px;
    }
    
    .references-next,
    .references-prev {
        width: 35px !important;
        height: 35px !important;
    }
    
    .references-next::after,
    .references-prev::after {
        font-size: 14px !important;
    }
}
