/* General tablet style improvements */
@media (min-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.05rem;
    }
    
    .btn-get-started {
        padding: 12px 25px;
    }
}

/* Improved Split Layout Hero Section with Enhanced Responsiveness */

.hero-section {
    padding: 50px 0;
    background-color: #f8f9fc;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 166, 81, 0.05) 0%, rgba(51, 51, 51, 0.02) 100%);
    z-index: 0;
}

.hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    z-index: 2;
    gap: 30px;
}

.hero-slider-column {
    flex: 1 1 50%;
    max-width: 55%;
}

.hero-content-column {
    flex: 1 1 45%;
    max-width: 45%;
    position: relative;
    padding: 20px;
}

/* Vertical line separator */
.hero-content-column::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 3px;
    background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
    border-radius: 3px;
    display: none; /* Hide by default for mobile, show for larger screens */
}

/* Hero content styling */
.hero-content {
    padding: 30px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondary-color);
    line-height: 1.3;
}

.hero-content h2 span {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.hero-content h2 span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0;
}

.hero-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.stat-item {
    text-align: center;
    padding: 15px 10px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.hero-cta {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-get-started {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 166, 81, 0.3);
    text-align: center;
}

.btn-get-started:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 166, 81, 0.4);
    background-color: #008c44;
    border-color: #008c44;
    color: white;
}

.btn-video-tour {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-video-tour i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.btn-video-tour:hover {
    color: var(--primary-color);
}

.btn-video-tour:hover i {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 166, 81, 0.3);
}

/* Featured badges */
.featured-badges {
    margin-top: 25px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.featured-badges span {
    font-size: 0.85rem;
    color: #666;
}

.badge-item {
    display: inline-block;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.badge-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

.badge-item img {
    height: 30px;
    width: auto;
}

/* Responsive styles for tablet and larger screens */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-section {
        padding: 70px 0;
    }
    
    .hero-container {
        flex-direction: column;
    }
    
    .hero-slider-column,
    .hero-content-column {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .btn-get-started {
        padding: 14px 30px;
    }
}

/* Desktop layout */
@media (min-width: 992px) {
    .hero-container {
        gap: 40px;
    }
    
    .hero-slider-column {
        max-width: 55%;
    }
    
    .hero-content-column {
        max-width: 45%;
        padding-left: 40px;
    }
    
    .hero-content-column::before {
        display: block;
    }
    
    .hero-content {
        padding: 35px;
    }
    
    .hero-content h2 {
        font-size: 2.4rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .hero-cta {
        margin-top: 30px;
    }
}

/* Large desktop layout */
@media (min-width: 1200px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-slider-column {
        max-width: 55%;
    }
    
    .hero-content-column {
        max-width: 45%;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
}

/* Extra small screens - portrait phones */
@media (max-width: 575px) {
    .hero-section {
        padding: 30px 0;
    }
    
    .hero-container {
        gap: 20px;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        margin-bottom: 20px;
    }
    
    .hero-stats {
        gap: 10px;
        margin: 20px 0;
    }
    
    .stat-item {
        padding: 10px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-get-started,
    .btn-video-tour {
        width: 100%;
        justify-content: center;
    }
    
    .featured-badges {
        justify-content: center;
        margin-top: 20px;
    }
}

/* Hero Section with Split Layout */
.hero-section {
    position: relative;
    background-color: #f8f9fc;
    overflow: hidden;
    padding: 0;
    min-height: 600px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 166, 81, 0.05) 0%, rgba(0, 166, 81, 0.02) 100%);
    z-index: 0;
}

.hero-container {
    display: flex;
    flex-direction: row;
    height: 100%;
    position: relative;
    z-index: 1;
    padding: 0;
    max-width: 1320px;
}

/* Left Side - Slider */
.hero-slider-column {
    flex: 0 0 58%;
    padding: 30px 15px 30px 0;
}

.hero-slider {
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.carousel, .carousel-inner, .carousel-item {
    height: 100%;
    border-radius: 15px;
}

.carousel-item {
    background-size: cover;
    background-position: center;
    position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
}

.carousel-caption {
    text-align: left;
    left: 10%;
    right: 10%;
    bottom: 50%;
    transform: translateY(50%);
    max-width: 80%;
}

.carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.5s ease-out;
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.7s ease-out;
}

.slider-buttons {
    animation: fadeInUp 0.9s ease-out;
}

.btn-hero {
    background-color: #00a651;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 166, 81, 0.3);
}

.btn-hero:hover {
    background-color: #008c44;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 166, 81, 0.4);
}

.carousel-control-prev, .carousel-control-next {
    width: 10%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-slider:hover .carousel-control-prev,
.hero-slider:hover .carousel-control-next {
    opacity: 0.7;
}

.carousel-indicators {
    margin-bottom: 20px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
}

.carousel-indicators button.active {
    background-color: #00a651;
    transform: scale(1.2);
}

/* Right Side - Content */
.hero-content-column {
    flex: 0 0 42%;
    padding: 30px 0 30px 15px;
    display: flex;
    align-items: center;
}

.hero-content {
    background-color: rgba(0, 30, 60, 0.03);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: #00a651;
    border-radius: 3px 0 0 3px;
}

.hero-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h2 span {
    color: #00a651;
    position: relative;
    display: inline-block;
}

.hero-content h2 span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #00a651;
    bottom: -5px;
    left: 0;
}

.hero-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
    background-color: white;
    border-radius: 10px;
    padding: 15px 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #00a651;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.hero-cta {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-get-started {
    background-color: #00a651;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 166, 81, 0.3);
}

.btn-get-started:hover {
    background-color: #008c44;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 166, 81, 0.4);
}

/* Update the video tour button styling for proper icon display */
.btn-video-tour {
    background-color: white;
    color: #333;
    border: 1px solid #e0e0e0;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-video-tour i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: #00a651;
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-video-tour:hover {
    background-color: #f8f9fc;
    color: #00a651;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-video-tour:hover i {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 166, 81, 0.3);
}

.featured-badges {
    display: flex;
    align-items: center;
    gap: 15px;
}

.featured-badges span {
    font-size: 0.9rem;
    color: #999;
}

.badge-item img {
    height: 30px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.badge-item img:hover {
    opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-container {
        flex-direction: column;
    }
    
    .hero-slider-column, .hero-content-column {
        flex: 0 0 100%;
        padding: 30px 15px;
    }
    
    .hero-content {
        height: auto;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .carousel-caption h2 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
