/* Sobre Section Styling */
#sobre {
    padding-top: 0; /* Remove default padding to make it full-height */
    padding-bottom: 0;
    min-height: auto;
    overflow: hidden;
}

#sobreRow {
    background-color: #1a1a1a;
}

.sobre-info {
    background-color: #1a1a1a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 85vh; /* Minimum height for the info panel */
}

.sobre-info::before {
    content:'  ';
    position: absolute;
    left: 41.6%;
    z-index: 1;
    border-top: 0px solid transparent;
    border-bottom: 85vh solid transparent;
    border-left: 85px solid #1a1a1a;
    max-width: 100%;
    overflow: hidden;
}

.sobre-info-content {
    padding: 5rem;
    margin-left: 8%;
    z-index: 2;
    padding-right: unset;
    max-width: 100%;
    overflow: hidden;
}

.sobre-info .btn-lg {
    padding: 1rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sobre-info .btn-danger {
     background-color: #db3545;
     border-color: #db3545;
}

.sobre-info .btn-danger:hover {
    background-color: #c9302c;
    border-color: #c12e2a;
}

/* Carousel Styling */
#sobreCarousel .carousel-item img {
    object-fit: cover; /* Ensures the image covers the area without distortion */
    min-height: 85vh;
    max-height: 85vh;
    object-position: center;
    max-width: 100%;
    width: 100%;
}

/* Carousel controls styling */
#sobreCarousel .carousel-control-prev,
#sobreCarousel .carousel-control-next {
    width: 5%;
    top: 90%;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
#sobreCarousel .carousel-control-next{
        right: 50px !important;
}
#sobreCarousel .carousel-control-prev{
        left: 100px!important;
}

#sobreCarousel .carousel-control-prev:hover,
#sobreCarousel .carousel-control-next:hover {
    opacity: 1;
}

#sobreCarousel .carousel-control-prev-icon,
#sobreCarousel .carousel-control-next-icon {
    background-color: rgb(0 0 0 / 50%);
    border-radius: 50%;
    padding: 1.3rem;
    transition: background-color 0.3s ease;
    background-size: 70% 70%;
}

#sobreCarousel .carousel-control-prev-icon:hover,
#sobreCarousel .carousel-control-next-icon:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

/* Carousel indicators styling */
#sobreCarousel .carousel-indicators {
    bottom: 20px;
    left: 50px;
}

#sobreCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

#sobreCarousel .carousel-indicators button.active {
    background-color: #d9534f;
    border-color: #d9534f;
}

/* Mobile-first responsive adjustments */
@media (max-width: 991.98px) {
    .sobre-info {
        min-height: auto; /* Reset min-height for stacked layout */
        padding: 2rem 0;
    }
    
    .sobre-info::before {
        display: none; /* Remove diagonal decoration on mobile */
    }
    
    .sobre-info-content {
        padding: 2rem 1rem;
        margin-left: 0;
        text-align: center;
        max-width: 100%;
        overflow: hidden;
    }
    
    .sobre-info-content h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
        margin-bottom: 1.5rem !important;
    }
    
    .sobre-info-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem !important;
    }
    
    .sobre-info .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
        margin-bottom: 1rem;
        width: 100%;
        max-width: 280px;
    }
    
    .d-flex.flex-column.flex-sm-row {
        align-items: center;
    }
    
    #sobreCarousel {
        height: 60vh; /* Give carousel a fixed height on mobile */
        min-height: 350px;
        max-width: 100%;
        overflow: hidden;
    }
    
    #sobreCarousel .carousel-item img {
        min-height: 60vh;
        max-height: 60vh;
    }
    
    /* Mobile carousel controls */
    #sobreCarousel .carousel-control-prev,
    #sobreCarousel .carousel-control-next {
        width: 8%;
    }
    
    #sobreCarousel .carousel-control-prev-icon,
    #sobreCarousel .carousel-control-next-icon {
        padding: 1rem;
    }
}

/* Extra small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    .sobre-info-content {
        padding: 1.5rem 1rem;
    }
    
    .sobre-info-content h1 {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .sobre-info-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem !important;
    }
    
    .sobre-info .btn-lg {
        padding: 0.65rem 1.25rem;
        font-size: 0.8rem;
        width: 100%;
        max-width: 100%;
    }
    
    #sobreCarousel {
        height: 50vh;
        min-height: 300px;
    }
    
    #sobreCarousel .carousel-item img {
        min-height: 50vh;
        max-height: 50vh;
    }
}

/* Sobre Section Styling */
#sobre.content-section {
    padding-top: 80px;
    padding-bottom: 120px;
}

.sobre-content-wrapper .btn-lg {
    padding: 0.8rem 2.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 0.5rem;
}

/* Video Player Styling */
.video-container {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
}

.video-container img {
    width: 100%;
    height: auto;
    display: block;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(217, 83, 79, 0.9); /* Red with transparency */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.play-btn:hover {
    background: #db3545; /* Solid red on hover */
    transform: translate(-50%, -50%) scale(1.1);
    color: #fff;
}

.aboutus {
    margin-top: 80px;
    background: #f6f6f6;
    padding-top: 55px;
    padding-bottom: 55px;
}

/* Mobile improvements for aboutus section */
@media (max-width: 991.98px) {
    .aboutus {
        margin-top: 0;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .sobre-content-wrapper {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .sobre-content-wrapper h1 {
        font-size: 2rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .sobre-content-wrapper p {
        font-size: 1rem;
        margin-bottom: 2rem !important;
    }
    
    .sobre-content-wrapper .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 0.85rem;
    }
    
    .video-container {
        margin-top: 2rem;
    }
}

@media (max-width: 575.98px) {
    .aboutus {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .sobre-content-wrapper h1 {
        font-size: 1.75rem !important;
    }
    
    .sobre-content-wrapper .btn-lg {
        width: 100%;
        max-width: 280px;
    }
    
    .play-btn {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}