/* Ruboo Alkhair Custom Slider Styles */
/* Brand Colors - Aligned with main style.css */
:root {
    --ruboo-primary-green: #27ae60;
    --ruboo-secondary-green: #2ecc71;
    --ruboo-dark-green: #1e8449;
    
    /* Ensure these match the main stylesheet */
    --primary: #27ae60 !important;
    --primary-light: #2ecc71;
    --primary-dark: #1e8449;
    
    /* Override Bootstrap primary color */
    --bs-primary: #27ae60 !important;
    --bs-primary-rgb: 39, 174, 96 !important;
}

/* Force override for any remaining old green colors */
.btn-primary,
.bg-primary,
.text-primary,
.border-primary,
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.nav-pills .nav-link.active {
    --bs-primary: #27ae60 !important;
}

.btn-primary {
    background-color: #27ae60 !important;
    border-color: #27ae60 !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #2ecc71 !important;
    border-color: #2ecc71 !important;
}

.btn-primary:active {
    background-color: #1e8449 !important;
    border-color: #1e8449 !important;
}

.bg-primary {
    background-color: #27ae60 !important;
}

.text-primary {
    color: #27ae60 !important;
}

.border-primary {
    border-color: #27ae60 !important;
}

/* Hero Carousel Styling */
.hero-carousel-ruboo {
    position: relative;
    overflow: hidden;
}

.hero-carousel-ruboo .carousel-item {
    transition: transform 0.6s ease-in-out;
}

/* Slider Content Animation */
.slider-content-ruboo {
    animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced Carousel Controls */
.hero-carousel-ruboo .carousel-control-prev,
.hero-carousel-ruboo .carousel-control-next {
    width: 60px;
    height: 60px;
    background-color: var(--ruboo-primary-green);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.hero-carousel-ruboo .carousel-control-prev {
    left: 30px;
}

.hero-carousel-ruboo .carousel-control-next {
    right: 30px;
}

.hero-carousel-ruboo .carousel-control-prev:hover,
.hero-carousel-ruboo .carousel-control-next:hover {
    background-color: var(--ruboo-dark-green);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.hero-carousel-ruboo .carousel-control-prev-icon,
.hero-carousel-ruboo .carousel-control-next-icon {
    width: 30px;
    height: 30px;
}

/* Carousel Indicators (if needed) */
.hero-carousel-ruboo .carousel-indicators {
    bottom: 30px;
}

.hero-carousel-ruboo .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--ruboo-primary-green);
    margin: 0 5px;
    transition: all 0.3s ease;
}

.hero-carousel-ruboo .carousel-indicators button.active {
    background-color: var(--ruboo-primary-green);
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .slider-content-ruboo h1.display-2 {
        font-size: 2.5rem !important;
    }
    
    .slider-content-ruboo h3 {
        font-size: 1.2rem !important;
    }
    
    .slider-content-ruboo h1.display-1 {
        font-size: 80px !important;
    }
}

@media (max-width: 992px) {
    .hero-carousel-ruboo .carousel-item {
        height: 600px !important;
    }
    
    .carousel-caption {
        right: 3% !important;
    }
    
    .slider-content-ruboo h1.display-2 {
        font-size: 2rem !important;
    }
    
    .slider-content-ruboo h3 {
        font-size: 1rem !important;
    }
    
    .slider-content-ruboo h1.display-1 {
        font-size: 60px !important;
    }
    
    /* Hide decorative dots on tablets */
    .carousel-item > div:last-of-type {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .hero-carousel-ruboo .carousel-item {
        height: 500px !important;
    }
    
    .carousel-caption {
        top: 50% !important;
        right: 50% !important;
        transform: translate(50%, -50%) !important;
        text-align: center !important;
        width: 90%;
        left: 50% !important;
    }
    
    .slider-content-ruboo h1.display-2 {
        font-size: 1.8rem !important;
    }
    
    .slider-content-ruboo h3 {
        font-size: 0.9rem !important;
    }
    
    .slider-content-ruboo h1.display-1 {
        font-size: 50px !important;
    }
    
    /* Adjust green overlay for mobile */
    .carousel-item > div:first-of-type {
        width: 100% !important;
        clip-path: none !important;
        background: linear-gradient(135deg, rgba(39, 174, 96, 0.75) 0%, rgba(46, 204, 113, 0.85) 100%) !important;
    }
    
    .hero-carousel-ruboo .carousel-control-prev,
    .hero-carousel-ruboo .carousel-control-next {
        width: 45px;
        height: 45px;
    }
    
    .hero-carousel-ruboo .carousel-control-prev {
        left: 15px;
    }
    
    .hero-carousel-ruboo .carousel-control-next {
        right: 15px;
    }
}

@media (max-width: 576px) {
    .hero-carousel-ruboo .carousel-item {
        height: 400px !important;
    }
    
    .slider-content-ruboo h1.display-2 {
        font-size: 1.5rem !important;
    }
    
    .slider-content-ruboo h3 {
        font-size: 0.8rem !important;
        margin-bottom: 15px !important;
    }
    
    .slider-content-ruboo h1.display-1 {
        font-size: 40px !important;
    }
}

/* Loading Animation */
.hero-carousel-ruboo .carousel-item img,
.hero-carousel-ruboo .carousel-item video {
    animation: zoomIn 10s ease-in-out infinite alternate;
}

@keyframes zoomIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

/* Smooth Transitions */
.hero-carousel-ruboo .carousel-item {
    transition: opacity 0.7s ease-in-out;
}

/* Page Header Styling (for inner pages) */
.page-header {
    background: linear-gradient(135deg, var(--ruboo-primary-green) 0%, var(--ruboo-secondary-green) 100%);
    /* padding: 80px 0 60px; */
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    background-image: 
        radial-gradient(circle, rgba(255,255,255,0.15) 2px, transparent 2px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

.page-header h1 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.page-header .breadcrumb {
    background: transparent;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.page-header .breadcrumb-item a:hover {
    color: white;
    text-decoration: underline;
}

.page-header .breadcrumb-item.active {
    color: white;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
}
