/* Hero Slider Styles */
.hero-slider {
    min-height: 60vh;
    position: relative;
    overflow: hidden;
}

/* Compact Consulting Sidebar */
.consulting-sidebar {
    position: fixed;
    top: 165px;
    right: 0px;
    width: 220px;
    max-height: calc(100vh - 40px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.consulting-sidebar.collapsed {
    width: 35px;
    height: auto;
}

.consulting-sidebar.collapsed .consulting-content {
    display: none;
}

.consulting-toggle {
    position: relative;
    width: 100%;
    background: #c92a2a;
    color: white;
    border: none;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: all 0.3s ease;
    border-radius: 12px 12px 0 0;
}

.consulting-sidebar.collapsed .consulting-toggle {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 20px 15px;
    border-radius: 12px;
    height: auto;
    min-height: 150px;
}

.consulting-toggle:hover {
    background: #a82020;
}

.toggle-text {
    flex: 1;
    text-align: left;
}

.consulting-sidebar.collapsed .toggle-text {
    text-align: center;
}

.toggle-arrow {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.consulting-sidebar.collapsed .toggle-arrow {
    transform: rotate(180deg);
    writing-mode: horizontal-tb;
}

.consulting-content {
    padding: 25px 20px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.consulting-header {
    border-bottom: 2px solid #c92a2a;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.consulting-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.consulting-message {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
}

.consulting-form .form-group {
    margin-bottom: 18px;
}

.consulting-form label {
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    font-size: 0.9rem;
    display: block;
}

.consulting-form .required {
    color: #c92a2a;
}

.consulting-form .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.consulting-form .form-control:focus {
    outline: none;
    border-color: #c92a2a;
    box-shadow: 0 0 0 3px rgba(201, 42, 42, 0.1);
}

.consulting-form textarea.form-control {
    resize: vertical;
    min-height: 90px;
}

.btn-send-message {
    width: 100%;
    background: #c92a2a;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.btn-send-message:hover {
    background: #a82020;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 42, 42, 0.3);
}

/* Scrollbar Styling for Sidebar */
.consulting-content::-webkit-scrollbar {
    width: 6px;
}

.consulting-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.consulting-content::-webkit-scrollbar-thumb {
    background: #c92a2a;
    border-radius: 3px;
}

.consulting-content::-webkit-scrollbar-thumb:hover {
    background: #a82020;
}

/* Tab Navigation */
.hero-tabs-wrapper {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-tabs {
    border: none;
    gap: 10px;
}

.hero-tabs .nav-link {
    background: transparent;
    border: none;
    color: #333;
    font-weight: 500;
    padding: 10px 25px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.hero-tabs .nav-link:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.hero-tabs .nav-link.active {
    background: var(--primary);
    color: white;
}

/* Carousel Styles */
#heroCarousel {
    height: 60vh;
}

.carousel-inner {
    height: 100%;
}

.carousel-item {
    height: 60vh;
    position: relative;
}

.carousel-item1 {
    height: 30vh;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    bottom: auto;
    padding-top: 0;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.carousel-caption p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Search Box */
.search-box-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    background: white;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 25px;
    color: #999;
    font-size: 1.2rem;
    z-index: 1;
}

.search-box input {
    border: none;
    padding: 15px 20px 15px 60px;
    font-size: 1rem;
    border-radius: 50px;
    width: 100%;
    outline: none;
}

.search-box input::placeholder {
    color: #999;
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
}

.carousel-indicators .active {
    background-color: white;
}

/* Fade Animation */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-slider,
    #heroCarousel,
    .carousel-item {
        height: 50vh;
    }
    
    .carousel-caption h1 {
        font-size: 2.5rem;
    }
    
    .hero-tabs-wrapper {
        position: relative;
        top: 0;
    }
    
    .consulting-sidebar {
        width: 280px;
        top: 200px;
        right: 0px;
    }
}

@media (max-width: 767px) {
    .hero-slider,
    #heroCarousel,
    .carousel-item {
        height: 45vh;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .hero-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .hero-tabs .nav-link {
        white-space: nowrap;
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .search-box input {
        padding: 12px 15px 12px 50px;
        font-size: 0.9rem;
    }
    
    .consulting-sidebar {
        width: 260px;
        top: 160px;
        right: 0px;
    }
    
    .consulting-content {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .consulting-sidebar {
        width: calc(100% - 20px);
        top: 160px;
        right: 0px;
        left: 10px;
    }
    
    .consulting-sidebar.collapsed {
        width: 35px;
        left: auto;
    }
}
