/* ============================================
   Hero Carousel/Slideshow Styles
   ============================================ */
.hero-section {
    margin-bottom: 3rem;
}

.hero-carousel {
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.12);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.hero-carousel:hover {
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.18);
}

.carousel-item {
    height: 450px;
    position: relative;
    overflow: hidden;
}

.carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

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

.carousel-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    transition: transform 0.8s ease;
}

.carousel-item.active .carousel-background,
.carousel-item.carousel-item-start .carousel-background,
.carousel-item.carousel-item-end .carousel-background {
    transform: scale(1);
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.carousel-caption-custom {
    text-align: center;
    color: white;
    padding: 2.5rem 3rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 90%;
    animation: fadeInUp 0.6s ease-out;
}

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

.carousel-caption-custom h2 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    line-height: 1.3;
}

.carousel-caption-custom p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    line-height: 1.6;
    opacity: 0.95;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 1.25rem;
    width: 3rem;
    height: 3rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.carousel-indicators {
    margin-bottom: 1.5rem;
}

.carousel-indicators button {
    background-color: rgba(255, 255, 255, 0.6);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin: 0 6px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.carousel-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-indicators button.active {
    background-color: rgba(255, 255, 255, 1);
    width: 16px;
    height: 16px;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-hero,
.btn-service,
.btn-quick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    direction: rtl;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.btn-hero {
    background: linear-gradient(135deg, #4B7BEC 0%, #6EC1FF 100%);
    color: #FFFFFF;
    border: none;
    padding: 1rem 2.5rem;
    box-shadow: 0 0.5rem 1.5rem rgba(75, 123, 236, 0.3);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.btn-hero:hover,
.btn-hero:focus {
    color: #FFFFFF;
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 2rem rgba(75, 123, 236, 0.4);
    background: linear-gradient(135deg, #3d6bd8 0%, #5db0f0 100%);
}

.btn-hero:active {
    transform: translateY(-2px);
}

.btn-hero:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(110, 193, 255, 0.4), 0 0.75rem 2rem rgba(75, 123, 236, 0.4);
}

.btn-service {
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #FFFFFF;
    padding: 0.65rem 1.9rem;
    backdrop-filter: blur(6px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.2);
}

.btn-service:hover,
.btn-service:focus {
    background: rgba(255, 255, 255, 0.32);
    color: #FFFFFF;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.55);
}

.btn-service.disabled,
.btn-service.disabled:hover,
.btn-service.disabled:focus {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-quick {
    background: #F5F7FF;
    border: 1px solid rgba(91, 108, 235, 0.18);
    color: #2D3A8C;
    padding: 0.65rem 1.6rem;
    box-shadow: 0 0.65rem 1.3rem rgba(45, 58, 140, 0.12);
}

.btn-quick:hover,
.btn-quick:focus {
    background: #EEF2FF;
    color: #1F2A68;
    transform: translateY(-2px);
    border-color: rgba(91, 108, 235, 0.35);
    box-shadow: 0 0.9rem 1.8rem rgba(45, 58, 140, 0.16);
}

.btn-icon {
    font-size: 1.1rem;
}

.btn-label {
    font-size: 1.05rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-item {
        height: 300px;
    }
    
    .carousel-caption-custom h2 {
        font-size: 1.5rem;
    }
    
    .carousel-caption-custom p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 250px;
    }
    
    .carousel-caption-custom h2 {
        font-size: 1.2rem;
    }
    
    .carousel-caption-custom p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        font-size: 0.95rem;
    }
    
    .btn-hero {
        padding: 0.65rem 1.65rem;
        font-size: 0.95rem;
    }
}

/* ============================================
   Services Section Styles
   ============================================ */
.services-section {
    padding: 2rem 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #4B7BEC 0%, #6EC1FF 100%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: #6c757d;
    margin-top: 1.5rem;
    line-height: 1.6;
}

/* Service Boxes Styles */
.service-box {
    position: relative;
    height: 380px;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.service-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}

.service-box-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s ease;
}

.service-box:hover .service-box-bg {
    transform: scale(1.1);
}

.service-box-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.75) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 2rem;
    transition: background 0.3s ease;
}

.service-box:hover .service-box-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.service-box-content {
    text-align: center;
    color: white;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.service-icon {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-box:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-box-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    line-height: 1.3;
}

.service-box-content p {
    font-size: 1.05rem;
    margin-bottom: 0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    line-height: 1.6;
    opacity: 0.95;
}

.service-box-footer {
    width: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    padding: 1.25rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.service-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-5px);
}

.service-link.disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.service-link.disabled:hover {
    transform: none;
    background: transparent;
}

/* ============================================
   Staff Section Styles
   ============================================ */
.staff-section .card {
    border: none;
    transition: box-shadow 0.3s ease;
}

.staff-section .card:hover {
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.15) !important;
}

.staff-actions-section .card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.staff-actions-section .btn {
    transition: all 0.3s ease;
    font-weight: 500;
}

.staff-actions-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 992px) {
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption-custom {
        padding: 2rem 2.5rem;
    }
    
    .carousel-caption-custom h2 {
        font-size: 2.25rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .service-box {
        height: 360px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        margin-bottom: 2rem;
    }
    
    .carousel-item {
        height: 350px;
    }
    
    .carousel-caption-custom {
        padding: 1.75rem 2rem;
        max-width: 95%;
    }
    
    .carousel-caption-custom h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .carousel-caption-custom p {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-hero {
        padding: 0.85rem 2rem;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.05rem;
    }
    
    .services-section {
        padding: 1.5rem 0;
    }
    
    .service-box {
        height: 320px;
        margin-bottom: 1.5rem;
    }
    
    .service-icon {
        font-size: 3rem;
        margin-bottom: 1.25rem;
    }
    
    .service-box-content h3 {
        font-size: 1.5rem;
    }
    
    .service-box-content p {
        font-size: 1rem;
    }
    
    .service-box-footer {
        padding: 1rem;
    }
    
    .service-link {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 300px;
    }
    
    .carousel-caption-custom {
        padding: 1.5rem 1.5rem;
    }
    
    .carousel-caption-custom h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .carousel-caption-custom p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    
    .btn-hero {
        padding: 0.75rem 1.75rem;
        font-size: 0.95rem;
    }
    
    .btn-icon {
        font-size: 1rem;
    }
    
    .btn-label {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .service-box {
        height: 280px;
    }
    
    .service-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .service-box-content h3 {
        font-size: 1.3rem;
    }
    
    .service-box-content p {
        font-size: 0.9rem;
    }
    
    .service-box-footer {
        padding: 0.875rem;
    }
    
    .service-link {
        font-size: 0.95rem;
        padding: 0.4rem 0.875rem;
    }
    
    .staff-actions-section .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

