/* ============================================
   DESIGN FIXES - Address All Visual Issues
   ============================================ */

/* Fix Hero Slider Text Cut-off */
.hero-slider-section {
    height: 100vh !important;
    min-height: 650px !important;
    max-height: 900px !important;
    overflow: hidden !important;
}

.slide-content {
    padding-top: 120px !important;
    padding-bottom: 150px !important;
    min-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.slide-title {
    font-size: 64px !important;
    line-height: 1.15 !important;
    margin-bottom: 25px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
    padding: 0 20px !important;
}

.slide-title .highlight {
    display: inline !important;
    white-space: nowrap !important;
}

.slide-subtitle {
    max-width: 800px !important;
    margin: 0 auto 35px !important;
    padding: 18px 30px !important;
    font-size: 20px !important;
    line-height: 1.6 !important;
}

@media (min-width: 992px) {
    .slide-title {
        font-size: 72px !important;
        margin-bottom: 30px !important;
    }
    
    .slide-subtitle {
        font-size: 22px !important;
        padding: 20px 35px !important;
    }
}

@media (max-width: 991px) {
    .hero-slider-section {
        min-height: 550px !important;
    }
    
    .slide-content {
        padding-top: 80px !important;
        padding-bottom: 100px !important;
    }
    
    .slide-title {
        font-size: 48px !important;
    }
    
    .slide-subtitle {
        font-size: 18px !important;
        padding: 15px 25px !important;
    }
}

@media (max-width: 767px) {
    .hero-slider-section {
        min-height: 500px !important;
    }
    
    .slide-content {
        padding-top: 22px !important; /* Half of previous value for minimal spacing */
        padding-bottom: 80px !important;
    }
    
    .slide-title {
        font-size: 36px !important;
        margin-bottom: 20px !important;
    }
    
    .slide-subtitle {
        font-size: 16px !important;
        padding: 12px 20px !important;
        margin-bottom: 25px !important;
    }
}

/* Fix Service Cards */
.service-card {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 40px 30px !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.service-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #01c057 0%, #60caf9 100%) !important;
    transform: scaleX(0) !important;
    transition: transform 0.3s ease !important;
}

.service-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    border-color: rgba(1, 192, 87, 0.2) !important;
}

.service-card:hover::before {
    transform: scaleX(1) !important;
}

.service-icon {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto 25px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, rgba(1, 192, 87, 0.1) 0%, rgba(96, 202, 249, 0.1) 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.service-icon i {
    font-size: 36px !important;
    color: #01c057 !important;
    transition: all 0.3s ease !important;
    display: block !important;
    line-height: 1 !important;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, #01c057 0%, #60caf9 100%) !important;
    transform: scale(1.1) !important;
}

.service-card:hover .service-icon i {
    color: #ffffff !important;
    transform: scale(1.1) !important;
}

.service-card h3 {
    font-family: 'Poppins', sans-serif !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin-bottom: 15px !important;
    text-align: center !important;
    line-height: 1.3 !important;
}

.service-card p {
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    color: #4a4a4a !important;
    line-height: 1.7 !important;
    margin-bottom: 25px !important;
    flex-grow: 1 !important;
    text-align: center !important;
}

.service-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 28px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #01c057 !important;
    text-decoration: none !important;
    border: 2px solid #01c057 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    margin-top: auto !important;
    text-align: center !important;
    width: fit-content !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.service-link:hover {
    background: #01c057 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(1, 192, 87, 0.3) !important;
}

.service-link i {
    font-size: 16px !important;
    transition: transform 0.3s ease !important;
}

.service-link:hover i {
    transform: translateX(4px) !important;
}

/* Fix About Section Placeholder */
.about-image-placeholder {
    width: 100% !important;
    height: 500px !important;
    background: linear-gradient(135deg, rgba(1, 192, 87, 0.05) 0%, rgba(96, 202, 249, 0.05) 100%) !important;
    border: 2px dashed rgba(1, 192, 87, 0.3) !important;
    border-radius: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.about-image-placeholder::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: linear-gradient(45deg, transparent 30%, rgba(1, 192, 87, 0.05) 50%, transparent 70%) !important;
    animation: shimmer 3s infinite !important;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.about-image-placeholder i {
    font-size: 80px !important;
    color: #01c057 !important;
    opacity: 0.6 !important;
    z-index: 1 !important;
    position: relative !important;
}

.about-image-placeholder p {
    font-family: 'Poppins', sans-serif !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin: 0 !important;
    z-index: 1 !important;
    position: relative !important;
}

.about-image-wrapper:hover .about-image-placeholder {
    border-color: rgba(1, 192, 87, 0.5) !important;
    background: linear-gradient(135deg, rgba(1, 192, 87, 0.08) 0%, rgba(96, 202, 249, 0.08) 100%) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(1, 192, 87, 0.15) !important;
}

/* Fix About Section Content */
.about-content {
    padding-right: 30px !important;
}

.about-content .section-label {
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: #01c057 !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
    display: inline-block !important;
    width: auto !important;
    max-width: fit-content !important;
}

.about-content .section-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: 48px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 25px !important;
    line-height: 1.2 !important;
}

.about-content .section-description {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    color: #4a4a4a !important;
    line-height: 1.7 !important;
    margin-bottom: 20px !important;
}

.about-stats {
    display: flex !important;
    gap: 30px !important;
    margin-top: 40px !important;
    margin-bottom: 30px !important;
    flex-wrap: wrap !important;
}

.stat-item {
    flex: 1 !important;
    min-width: 120px !important;
}

.stat-number {
    font-family: 'Poppins', sans-serif !important;
    font-size: 36px !important;
    font-weight: 700 !important;
    color: #01c057 !important;
    margin-bottom: 5px !important;
    line-height: 1 !important;
}

.stat-label {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    color: #6b6b6b !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

/* Fix Section Spacing */
.about-company-section .block {
    padding: 80px 0 !important;
}

.services-section .block {
    padding: 80px 0 !important;
}

.why-choose-us-section .block {
    padding: 80px 0 !important;
}

/* Fix Service Section Grid */
.services-section .row {
    margin-left: -15px !important;
    margin-right: -15px !important;
}

.services-section .col-md-4 {
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-bottom: 30px !important;
}

/* Fix Why Choose Us Cards */
.block-feature {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 40px 30px !important;
    height: 100% !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
}

.block-feature.top-icon i {
    font-size: 48px !important;
    color: #01c057 !important;
    margin-bottom: 25px !important;
    display: block !important;
}

.block-feature.top-icon a {
    font-family: 'Poppins', sans-serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    text-decoration: none !important;
    margin-bottom: 15px !important;
    display: block !important;
}

.block-feature.top-icon p {
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    color: #4a4a4a !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

/* Fix Navigation Active State */
.navbar-nav > li.active > a,
.navbar-nav > li.active > a:hover,
.navbar-nav > li.active > a:focus {
    background: rgba(1, 192, 87, 0.15) !important;
    color: #01c057 !important;
    border-radius: 6px !important;
}

/* Fix Image Paths - Ensure all images use proper paths */
img[src^="img/"] {
    /* Images will be handled by base_path() in PHP */
}

/* Fix Button Consistency */
.btn-default.blue {
    background: linear-gradient(135deg, #01c057 0%, #00a048 100%) !important;
    color: #ffffff !important;
    border: 2px solid #01c057 !important;
    border-radius: 8px !important;
    padding: 14px 32px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(1, 192, 87, 0.25) !important;
}

.btn-default.blue:hover {
    background: linear-gradient(135deg, #00a048 0%, #01c057 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(1, 192, 87, 0.35) !important;
    color: #ffffff !important;
}

/* Fix Section Titles */
.section-sub-title .head-title.with-effect-border {
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: #01c057 !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
}

.section-sub-title .head-title:not(.with-effect-border) {
    font-family: 'Poppins', sans-serif !important;
    font-size: 42px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 20px !important;
    text-transform: none !important;
}

.section-sub-title .head-text {
    font-family: 'Inter', sans-serif !important;
    font-size: 17px !important;
    color: #4a4a4a !important;
    line-height: 1.7 !important;
    max-width: 750px !important;
    margin: 0 auto !important;
}

/* Responsive Fixes */
@media (max-width: 991px) {
    .about-content {
        padding-right: 0 !important;
        margin-bottom: 40px !important;
    }
    
    .about-image-placeholder {
        height: 400px !important;
    }
    
    .about-content .section-title {
        font-size: 36px !important;
    }
    
    .about-stats {
        gap: 20px !important;
    }
    
    .stat-number {
        font-size: 28px !important;
    }
}

@media (max-width: 767px) {
    .service-card {
        padding: 30px 20px !important;
    }
    
    .service-icon {
        width: 70px !important;
        height: 70px !important;
    }
    
    .service-icon i {
        font-size: 32px !important;
    }
    
    .service-card h3 {
        font-size: 20px !important;
    }
    
    .about-content .section-title {
        font-size: 32px !important;
    }
    
    .about-image-placeholder {
        height: 300px !important;
    }
    
    .about-image-placeholder i {
        font-size: 60px !important;
    }
    
    .about-image-placeholder p {
        font-size: 20px !important;
    }
    
    .about-stats {
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .stat-item {
        width: 100% !important;
    }
}

/* Fix Container Max Width */
.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

@media (max-width: 1199px) {
    .container {
        max-width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

@media (max-width: 767px) {
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Fix Text Alignment Issues */
.text-center {
    text-align: center !important;
}

/* Remove any unwanted uppercase */
.service-card h3,
.block-feature.top-icon a,
.section-title,
.about-content .section-title {
    text-transform: none !important;
}

