/*
 * Home Page Styles (index.php)
 * Hero, Services, News, Contact sections
 */

/* Hero Section */
.hero-section {
    background: var(--primary-dark);
    color: var(--text-light);
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.hero-container {
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 45% 55%;
    width: 100%;
    max-width: 1400px;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    align-items: center;
    gap: 40px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
    overflow: hidden;
}

.hero-text {
    background: var(--primary-dark);
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    position: relative;
    z-index: 2;
    max-width: 100%;
    overflow: visible;
    padding: 20px 0;
    box-sizing: border-box;
}

.hero-text > * {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.6s ease-out forwards;
    will-change: transform, opacity;
}

@media (min-width: 769px) {
    .hero-text {
        overflow: visible;
    }
    
    .hero-content {
        overflow: visible;
    }
    
    .hero-section {
        overflow: visible;
    }
    
    .hero-container {
        overflow: visible;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 16px;
    border-radius: 25px;
    margin-bottom: 32px;
    width: fit-content;
    border: 1px solid rgba(22, 60, 107, 0.1);
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-red);
    border-radius: 50%;
    position: relative;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 0 0 rgba(230, 30, 43, 0.7);
}

.badge-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: var(--primary-red);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: wave 1.5s infinite;
}

.badge-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: var(--primary-red);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: wave 1.5s infinite 0.5s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(230, 30, 43, 0.7);
    }
    50% {
        transform: scale(1.2);
        opacity: 0.9;
        box-shadow: 0 0 0 4px rgba(230, 30, 43, 0.3);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(230, 30, 43, 0.7);
    }
}

@keyframes wave {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

.badge-text {
    font-size: 14px;
    font-weight: 500;
    color: #D0D1DB;
}

.hero-title {
    font-family: var(--framer-font-family-bold);
    font-size: 48px;
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: -0.02em;
    max-width: 500px;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 2rem;
    opacity: 0.7;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 480px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    min-height: 60px;
    padding: 10px 0;
    box-sizing: border-box;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: #fff;
    color: var(--primary-red);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.btn-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.hero-carousel-container {
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.7s ease-out 0.35s forwards;
    will-change: transform, opacity;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.fade-in-up.animated {
    opacity: 1;
    transform: translateY(0);
}

.hero-buttons.fade-in-up {
    min-height: 60px;
    padding: 10px 0;
    overflow: visible;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 800px;
    transform-style: preserve-3d;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    opacity: 0;
    transform: translateX(100%) translateY(30px);
    /* Default transition for incoming (active) slide */
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.6s ease;
    cursor: pointer;
    z-index: 1;
    visibility: hidden;
    will-change: transform, opacity;
}


.carousel-slide.active {
    opacity: 1;
    transform: translateX(0) translateY(0);
    transition: transform 1.15s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 4s ease;
    z-index: 3; /* ensure active is above previous for overlap */
    visibility: visible;
    /* Remove vertical fade-in so horizontal slide is prominent */
    /* Slight elevation to emphasize overlap */
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.carousel-slide.prev {
    /* Slide out slightly less and slower for parallax-like overlap */
    transform: translateX(-102%) translateY(100px) rotateX(6deg) scale(0.99);
    transition: transform 1.15s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 4s ease;
    /* Keep visible during slide-out to avoid blank gap */
    opacity: 1;
    z-index: 2;
    visibility: visible;
    filter: brightness(0.95);
    transform-origin: center top;
}

.initial-load.prev {
    /* Slide out slightly less and slower for parallax-like overlap */
    animation: slideOut 1.15s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes slideOut {
    from {
        transform: translateX(0) translateY(0);
    }
    to {
        transform: translateX(-102%) translateY(100px) rotateX(6deg) scale(0.99);
    }
}

.carousel-slide.next {
    transform: translateX(100%) translateY(30px);
    opacity: 0;
    z-index: 1;
    visibility: hidden;
}

.initial-load {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    opacity: 0;
    transform: translateX(0) translateY(0);
    visibility: visible;
    animation: fadeInUp 0.8s ease-out forwards;
    cursor: pointer;
    will-change: transform, opacity;
}

.initial-load.active {
    opacity: 1;
    transform: translateX(0) translateY(0);
    transition: transform 1.15s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 4s ease;
    z-index: 3; /* Same as carousel-slide.active for consistent positioning */
    visibility: visible;
    /* Same elevation as carousel-slide.active */
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carousel-slide img,
.initial-load img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}



.carousel-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 12px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-red);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(230, 30, 43, 0.5);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: none;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}


.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

    .carousel-dot.active {
        background: var(--primary-red);
        transform: scale(1.2);
    }

/* Services Section */
/* CRITICAL: Use highest specificity to override any conflicting CSS */
section.services-section {
    padding: 60px 0; /* Reduced padding for better layout balance */
    background: #f8f9fa;
    overflow: visible !important; /* CRITICAL: Must be visible for sticky positioning */
    overflow-x: visible !important;
    overflow-y: visible !important;
    position: relative;
}

section.services-section .container,
.services-section > .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    overflow: visible !important; /* CRITICAL: Must be visible for sticky positioning */
    overflow-x: visible !important;
    overflow-y: visible !important;
    position: relative;
}

.services-section .section-title {
    text-align: center;
}

/* Services Container - Parent container for sticky containers */
.services-container,
section.services-section .services-container {
    display: flex;
    flex-direction: column;
    gap: 0; /* No gap, using individual margin-bottom instead */
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    position: relative; /* Not sticky itself, each item will be sticky */
}

/* Sticky Container for each service item - Based on reference code structure */
/* CRITICAL: Use highest specificity and !important to ensure sticky works */
.service-sticky-container,
.services-container > .service-sticky-container,
section.services-section .service-sticky-container,
section.services-section > .container > .services-container > .service-sticky-container {
    position: -webkit-sticky !important; /* Safari */
    position: sticky !important;
    top: 60px !important; /* Reduced top offset to match reduced padding */
    z-index: 100;
    will-change: transform;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    /* CRITICAL: Add margin-bottom to create scroll space */
    /* Reduced to balance layout better */
    margin-bottom: 10vh; /* Reduced space for better layout balance */
}

/* Last container doesn't need large margin-bottom */
.service-sticky-container:last-child {
    margin-bottom: 0;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background-color: #FFF9EB;    
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(15,23,42,0.08);
    overflow: visible !important;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    min-height: 620px;
    position: relative;
    top: 60px
}

.service-item:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

/* First service - custom colors */
.service-sticky-container:first-child .service-item {
    /* Background uses base .service-item color */
}
.service-sticky-container:first-child .service-item .service-price {
    color: var(--primary-red);
}
.service-sticky-container:first-child .service-item .feature-icon {
    background: var(--primary-red);
    box-shadow: 0 6px 16px rgba(230, 30, 43, 0.25);
}
.service-sticky-container:first-child .service-item .service-btn {
    background: var(--primary-red);
}
.service-sticky-container:first-child .service-item .service-btn:hover {
    box-shadow: 0 12px 22px rgba(15, 36, 63, 0.3);
}

/* Second service - dark theme */
.service-sticky-container:nth-child(2) .service-item {
    background-color: #0f243f;
}
.service-sticky-container:nth-child(2) .service-item .service-content h3 {
    color: #fff;
}
.service-sticky-container:nth-child(2) .service-item .service-price {
    color: #fff;
}
.service-sticky-container:nth-child(2) .service-item .service-description {
    color: rgba(255, 255, 255, 0.8);
}
.service-sticky-container:nth-child(2) .service-item .service-features li {
    color: #fff;
}
.service-sticky-container:nth-child(2) .service-item .service-features li + li {
    border-top-color: rgba(22, 60, 107, 0.1);
}
.service-sticky-container:nth-child(2) .service-item .feature-icon {
    background: rgba(22, 60, 107, 0.1);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.service-sticky-container:nth-child(2) .service-item .service-btn {
    background: rgba(22, 60, 107, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.service-sticky-container:nth-child(2) .service-item .service-btn-icon {
    background: rgba(255, 255, 255, 0.15);
}
.service-sticky-container:nth-child(2) .service-item .service-btn:hover {
    border-color: transparent;
    box-shadow: 0 12px 22px rgba(15, 36, 63, 0.3);
}

/* Third service - same colors as first service */
.service-sticky-container:nth-child(3) .service-item {
    /* Background uses base .service-item color */
}
.service-sticky-container:nth-child(3) .service-item .service-price {
    color: var(--primary-red);
}
.service-sticky-container:nth-child(3) .service-item .feature-icon {
    background: var(--primary-red);
    box-shadow: 0 6px 16px rgba(230, 30, 43, 0.25);
}
.service-sticky-container:nth-child(3) .service-item .service-btn {
    background: var(--primary-red);
}
.service-sticky-container:nth-child(3) .service-item .service-btn:hover {
    box-shadow: 0 12px 22px rgba(15, 36, 63, 0.3);
}

/* Fourth service - same colors as second service */
.service-sticky-container:nth-child(4) .service-item {
    background-color: #0f243f;
}
.service-sticky-container:nth-child(4) .service-item .service-content h3 {
    color: #fff;
}
.service-sticky-container:nth-child(4) .service-item .service-price {
    color: #fff;
}
.service-sticky-container:nth-child(4) .service-item .service-description {
    color: rgba(255, 255, 255, 0.8);
}
.service-sticky-container:nth-child(4) .service-item .service-features li {
    color: #fff;
}
.service-sticky-container:nth-child(4) .service-item .service-features li + li {
    border-top-color: rgba(22, 60, 107, 0.1);
}
.service-sticky-container:nth-child(4) .service-item .feature-icon {
    background: rgba(22, 60, 107, 0.1);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.service-sticky-container:nth-child(4) .service-item .service-btn {
    background: rgba(22, 60, 107, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.service-sticky-container:nth-child(4) .service-item .service-btn-icon {
    background: rgba(255, 255, 255, 0.15);
}
.service-sticky-container:nth-child(4) .service-item .service-btn:hover {
    border-color: transparent;
    box-shadow: 0 12px 22px rgba(15, 36, 63, 0.3);
}

/* Even items: reverse layout (Content left, Image right) */
.service-sticky-container:nth-child(even) .service-item .service-image {
    order: 2;
}

.service-sticky-container:nth-child(even) .service-item .service-content {
    order: 1;
}

.service-image {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    padding: 1rem;
    height: 100%;
}

.service-image img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.3s ease;
    display: block;
    border-radius: 12px;
}

.service-item:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

.service-content h3 {
    color: #0f172a;
    margin-bottom: 1rem;
    font-size: 2.25rem;
    line-height: 1.2;
    font-weight: 500;
}

.service-price {
    font-size: 1.1rem;
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.service-description {
    font-size: 1.06rem;
    color: #64748b;
    margin: 0 0 1.25rem 0;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    margin: 0 0 1.75rem 0;
}

.service-features li {
    display: flex;
    align-items: center;
    padding: 14px 0;
    font-size: 1rem;
    color: #334155;
    gap: 12px;
}
.service-features li + li { border-top: 1px solid rgba(15,23,42,0.08); }

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--primary-red);
    color: #ffffff;
    margin-right: 0.8rem;
    box-shadow: 0 6px 16px rgba(230, 30, 43, 0.25);
    overflow: hidden;
    line-height: 1;
}
.feature-icon i {
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.feature-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}
/* Ensure emoji/icons are centered */
.feature-icon > * {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.service-btn {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: var(--primary-red);
    color: white;
    padding: 0;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-self: flex-start;
    position: relative;
    box-sizing: border-box;
    line-height: 1;
}

.service-btn-text {
    padding: 0.875rem 1.5rem;
    color: white;
    line-height: 1;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.service-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    background: var(--primary-dark);
    color: white;
    flex-shrink: 0;
    flex-grow: 0;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    vertical-align: middle;
    margin-right: 2px;
}

.service-btn-icon i {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.3s ease;
    display: inline-block;
    color: white;
    opacity: 1;
    visibility: visible;
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(15, 36, 63, 0.3);
}

.service-btn:hover .service-btn-icon i {
    transform: rotate(45deg);
}

/* Services View More Button */
.services-view-more {
    text-align: center;
    margin-top: 3rem;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: #f5f5f5;
    color: #334155;
    padding: 0;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    line-height: 1;
}

.view-more-text {
    padding: 1rem 2rem;
    font-size: 1rem;
    white-space: nowrap;
}

.view-more-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    background: var(--primary-red);
    color: #fff;
    flex-shrink: 0;
    flex-grow: 0;
    position: relative;
    box-sizing: border-box;
    vertical-align: middle;
    margin-right: 2px;
}

.view-more-icon i {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.3s ease;
    display: inline-block;
    color: white;
    opacity: 1;
    visibility: visible;
}

.view-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.view-more-btn:hover .view-more-icon i {
    transform: rotate(45deg);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    section#services.services-section {
        padding: 60px 0; /* Reset large padding-bottom on mobile */
    }
    
    .services-container {
        gap: 2rem;
    }
    
    /* Disable sticky on mobile */
    section#services.services-section .service-sticky-container,
    .service-sticky-container {
        position: relative !important; /* Disable sticky on mobile */
        top: auto !important;
        margin-bottom: 2rem; /* Reduce margin on mobile */
    }
    
    .service-sticky-container:last-child {
        margin-bottom: 0;
    }
    
    .service-item {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    /* Mobile: reset order so all items have natural order (no symmetry) */
    .service-sticky-container:nth-child(even) .service-item .service-image,
    .service-sticky-container:nth-child(even) .service-item .service-content {
        order: unset;
    }
    
    .service-image {
        height: 280px;
    }
    
    .service-content {
        padding: 2rem;
    }
    
    .service-content h3 {
        font-size: 1.75rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: left;
    }
    
    .hero-text {
        text-align: left;
        order: 1;
    }
    
    .hero-carousel-container {
        order: 2;
        position: relative;
        overflow: visible;
    }
    
    .hero-carousel {
        height: 100%;
        margin-bottom: 0;
    }
    
    .hero-title {
        font-size: 40px;
        text-align: left;
    }
    
    .hero-subtitle {
        font-size: 16px;
        max-width: 100%;
        text-align: left;
    }
    
    .hero-buttons {
        justify-content: flex-start;
    }
}

/* News Section */
.news-section {
    padding: 100px 0;
    background: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.news-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.news-image {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-content h3 {
    color: #1e293b;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.news-content h3 a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-content h3 a:hover {
    color: #667eea;
    text-decoration: underline;
}

.news-content p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}

.news-meta {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-top: auto;
}

/* News View More Button */
.news-view-more {
    text-align: center;
    margin-top: 4rem;
}

.news-view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: #f5f5f5;
    color: #334155;
    padding: 0;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    line-height: 1;
}

.news-view-more-text {
    padding: 1rem 2rem;
    font-size: 1rem;
    white-space: nowrap;
}

.news-view-more-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    background: var(--primary-red);
    color: #fff;
    flex-shrink: 0;
    flex-grow: 0;
    position: relative;
    box-sizing: border-box;
    vertical-align: middle;
    margin-right: 2px;
}

.news-view-more-icon i {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.3s ease;
    display: inline-block;
    color: white;
    opacity: 1;
    visibility: visible;
}

.news-view-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.news-view-more-btn:hover .news-view-more-icon i {
    transform: rotate(45deg);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: #fff;
}

.faq-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.faq-sidebar {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 15px;
}

.faq-sidebar h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.faq-sidebar p {
    color: #64748b;
    margin-bottom: 2rem;
}

.faq-button {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: var(--primary-red);
    color: white;
    padding: 0;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    line-height: 1;
    width: 100%;
    justify-content: space-between;
}

.faq-button-text {
    padding: 1rem 1.5rem;
    white-space: nowrap;
    flex: 1;
}

.faq-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    background: var(--primary-dark);
    color: white;
    flex-shrink: 0;
    flex-grow: 0;
    position: relative;
    box-sizing: border-box;
    vertical-align: middle;
    margin-right: 2px;
}

.faq-button-icon i {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.3s ease;
    display: inline-block;
    color: white;
    opacity: 1;
    visibility: visible;
}

.faq-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(230, 30, 43, 0.28);
}

.faq-button:hover .faq-button-icon i {
    transform: rotate(45deg);
}

.faq-list {
    list-style: none;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    background: #fff;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question.active {
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.faq-question h4 {
    color: #1e293b;
    margin: 0;
    font-size: 1.1rem;
}

.faq-toggle {
    font-size: 1.2rem;
    color: #64748b;
    transition: transform 0.3s ease;
}

.faq-question.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.faq-answer.active {
    padding: 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    color: #475569;
    margin: 0;
    line-height: 1.6;
}

/* Statistics Section */
.stats-section {
    padding: 60px 0;
    background: #fff;
    position: relative;
}

.stats-content {
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    margin-top: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #000;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #000;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover {
    transform: translateY(-10px) scale(1.02);
}

.stat-item:hover::before,
.stat-item:hover::after {
    width: 80px;
}

.stat-number-wrapper {
    margin-bottom: 1.5rem;
    display: block;
}

.stat-number {
    font-size: 6.5rem;
    font-weight: 900;
    color: #000;
    display: inline-block;
    line-height: 0.9;
    letter-spacing: -4px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.stat-number-suffix {
    font-size: 6.5rem;
    font-weight: 900;
    color: #000;
    display: inline-block;
    line-height: 0.9;
    letter-spacing: -4px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover .stat-number,
.stat-item:hover .stat-number-suffix {
    transform: scale(1.1);
}

.stat-label {
    font-size: 1.1rem;
    color: #000;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.stat-description {
    font-size: 1.05rem;
    color: #000;
    margin-top: 0.75rem;
    line-height: 1.8;
    font-weight: 300;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.3px;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background: #f8fafc;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.testimonial-content {
    margin-bottom: 1.5rem;
    flex: 1;
}

.testimonial-content p {
    color: #475569;
    font-style: italic;
    line-height: 1.6;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-red), var(--primary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 1.2rem;
}

.testimonial-info h5 {
    color: #1e293b;
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.testimonial-info p {
    color: #64748b;
    margin: 0;
    font-size: 0.9rem;
}

/* Company Logos Section */
.logos-section {
    padding: 60px 0;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.logos-section .container {
    overflow: hidden;
    position: relative;
}

.logos-wrapper {
    overflow: hidden;
    width: 100%;
}

.logos-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: flex-start;
    opacity: 0.6;
    animation: scroll-logos 8s linear infinite;
    will-change: transform;
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}

.logos-grid:hover {
    animation-play-state: paused;
}

.logo-item {
    text-align: center;
    padding: 1rem;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
    min-width: 120px;
    max-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item img {
    max-width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

.logo-item:hover {
    opacity: 1;
}

.logo-item img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%);
}

/* Why Choose Section */
.why-choose-section {
    padding: 80px 0;
    background: var(--primary-dark);
    color: var(--text-light);
}

.why-choose-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-choose-text h2 {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.why-choose-text p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.features-list {
    list-style: none;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(22, 60, 107, 0.1);
}

.why-choose-section .feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(22, 60, 107, 0.1);
    color: var(--primary-red);
    box-shadow: 0 4px 12px rgba(230, 30, 43, 0.2);
    overflow: hidden;
    line-height: 1;
}

.why-choose-section .feature-icon i {
    font-size: 24px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
}

.feature-content {
    flex: 1;
}

.feature-content h4 {
    color: var(--text-light);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.feature-content p {
    color: var(--text-gray);
    margin: 0;
    font-size: 0.95rem;
}

.why-choose-image {
    position: relative;
}

.why-choose-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

/* Mobile Responsive for additional sections */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .why-choose-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .logos-grid {
        gap: 1rem;
        animation: scroll-logos 6s linear infinite;
    }
    
    .logo-item {
        min-width: 100px;
        max-width: 140px;
        padding: 0.5rem;
    }
    
}


/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .hero-container {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
        max-width: 100%;
        width: 100%;
        padding: 40px 20px 60px;
        gap: 2.5rem;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .hero-text {
        padding: 0;
        height: auto;
        min-height: auto;
        order: 1;
        text-align: left;
    }
    
    .hero-carousel-container {
        height: 50vh;
        min-height: 280px;
        order: 2;
        margin-top: 0;
        position: relative;
        overflow: hidden;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .hero-carousel {
        height: 100%;
        border-radius: 16px;
        overflow: hidden;
        position: relative;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .carousel-track {
        border-radius: 16px;
        overflow: hidden;
        height: 100%;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .carousel-slide {
        width: 100%;
        max-width: 100%;
        height: 100%;
        border-radius: 16px;
        box-sizing: border-box;
    }
    
    .carousel-slide img {
        width: 100%;
        max-width: 100%;
        height: 100%;
        object-fit: cover;
        box-sizing: border-box;
        border-radius: 16px;
    }
    
    .hero-title {
        font-size: 32px;
        text-align: left;
        margin-bottom: 16px;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 15px;
        text-align: left;
        margin-bottom: 24px;
        line-height: 1.5;
        opacity: 0.9;
    }
    
    .hero-badge {
        margin-bottom: 24px;
        justify-content: flex-start;
    }
    
    .hero-buttons {
        justify-content: flex-start;
        margin-top: 0;
        margin-bottom: 0;
    }
    
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .why-choose-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .hero-container {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .hero-content {
        max-width: 100%;
        width: 100%;
        padding: 30px 16px 50px;
        gap: 2rem;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .hero-text {
        padding: 0;
        height: auto;
        min-height: auto;
        text-align: left;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .hero-carousel-container {
        height: 45vh;
        min-height: 240px;
        order: 2;
        position: relative;
        overflow: hidden;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .hero-carousel {
        height: 100%;
        border-radius: 12px;
        overflow: hidden;
        position: relative;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .carousel-track {
        border-radius: 12px;
        overflow: hidden;
        height: 100%;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .carousel-slide {
        border-radius: 12px;
        height: 100%;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .carousel-slide img {
        border-radius: 12px;
        width: 100%;
        max-width: 100%;
        height: 100%;
        object-fit: cover;
        box-sizing: border-box;
    }
    
    .hero-title {
        font-size: 28px;
        text-align: left;
        margin-bottom: 12px;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 14px;
        text-align: left;
        margin-bottom: 20px;
        line-height: 1.5;
        opacity: 0.9;
    }
    
    .hero-badge {
        margin-bottom: 20px;
    }
    
    .hero-buttons {
        justify-content: flex-start;
        margin-top: 0;
        margin-bottom: 0;
    }
    
    .btn {
        padding: 16px 28px;
        font-size: 15px;
    }
    
    .carousel-slide {
        width: 100%;
        height: 100%;
    }
    
    .hero-badge {
        padding: 3px 12px;
        margin-bottom: 20px;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .carousel-dots {
        bottom: 20px;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}

/* Hide carousel UI: no dots, no arrows */
.carousel-dots,
.carousel-prev,
.carousel-next {
    display: none !important;
}

/* ==========================================================================
   CRITICAL: Services Section Sticky - MUST BE AT END TO OVERRIDE EVERYTHING
   ========================================================================== */
/* This section must be at the END of home.css to ensure highest priority */
/* It overrides ALL other CSS that might break sticky positioning */
/* Including any WordPress core or plugin CSS */

/* Ensure services section and all parents have overflow visible */
/* Use ID selector for maximum specificity */
section#services.services-section,
#services.services-section,
section#services {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

section#services.services-section > .container,
#services.services-section > .container,
section#services > .container {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

section#services.services-section .services-container,
section#services.services-section > .container > .services-container,
#services.services-section .services-container,
#services > .container > .services-container {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

/* CRITICAL: Ensure sticky containers have position sticky */
/* Multiple selectors with ID for maximum specificity */
section#services.services-section .service-sticky-container,
section#services.services-section > .container > .services-container > .service-sticky-container,
section#services .services-container > .service-sticky-container,
#services.services-section .service-sticky-container,
#services > .container > .services-container > .service-sticky-container,
#services .services-container > .service-sticky-container,
.services-container > .service-sticky-container {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 60px !important; /* Reduced to match padding */
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

/* Desktop only - ensure sticky works on desktop */
@media (min-width: 769px) {
    section#services.services-section,
    #services.services-section,
    section#services {
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
    }
    
    section#services.services-section .service-sticky-container,
    section#services.services-section > .container > .services-container > .service-sticky-container,
    #services.services-section .service-sticky-container,
    #services > .container > .services-container > .service-sticky-container {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 60px !important; /* Reduced to match padding */
    }
}
