/**
 * CWS Public Website Styles
 * Location: /css/public-pages.css
 */

/* =========================================================================
   CWS Brand Colors
   ========================================================================= */
.cws-custom-blue { color: #37B6FF; }
.cws-custom-grey { color: #A6A6A6; }
.bg-cws-blue { background-color: #37B6FF; }

/* CWS Brand Color Utilities */
.border-cws { border-color: #37B6FF !important; }
.bg-cws { background-color: #37B6FF !important; }
.bg-cws-light { background-color: #e8f7ff !important; }
.text-cws { color: #37B6FF !important; }

/* CWS Brand Button */
.btn-cws {
    background-color: #37B6FF;
    color: white;
    border-color: #37B6FF;
}
.btn-cws:hover {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

/* =========================================================================
   Hero Section
   ========================================================================= */
.hero-section {
    background: radial-gradient(circle, #37B6FF 0%, #0d6efd 100%);
    color: white;
    padding: 1.5rem 0;
    border-radius: 0.75rem;
}

/* Home page hero - subtle variant */
.hero-home {
    background: linear-gradient(180deg, #f0faff 0%, #ffffff 100%);
    padding: 2rem 0;
    border-radius: 0.75rem;
    text-align: center;
}



/* =========================================================================
   Services Page Accordion
   ========================================================================= */
/* Round all service item headers */
.service-item {
    border-radius: 0.375rem 0.375rem 0 0 !important;
    margin-top: 0.5rem;
}
.service-item:first-child {
    margin-top: 0;
}
.service-item:hover {
    background-color: #f8f9fa;
}
.service-item .badge {
    background-color: #37B6FF !important;
}
.service-detail {
    background-color: #e8f7ff;
    border-radius: 0 0 0.375rem 0.375rem;  /* rounded bottom only */
    margin-top: -1px;  /* tight fit with header */
    border-top: none;
}

/* =========================================================================
   Card Styling
   ========================================================================= */
.card-header-gradient {
    background: radial-gradient(circle, #37B6FF 0%, #0d6efd 100%);
    color: white;
}
.card-body-light {
    background-color: #e8f7ff;
}

/* =========================================================================
   Carousel
   ========================================================================= */
.carousel-wrapper {
    position: relative;
    background-color: #000;
}

.carousel-fixed-height {
    height: 500px;
    background-color: #000;
}

.carousel-fixed-height .carousel-item {
    height: 500px;
    background-color: #000;
}

.carousel-fixed-height .carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: contain;
    object-position: center;
}

.carousel-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    background: #37B6FF;
    z-index: 100;
    transition: width 0.1s linear;
    pointer-events: none;
}

.carousel-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 100;
}

.carousel-indicators button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    margin: 0 5px !important;
}

.carousel-indicators .active {
    background-color: #37B6FF !important;
}

.carousel-caption {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    left: 0;
    right: 0;
    bottom: 0;
    padding: 50px 20px 40px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 20px;
    background-size: 50%;
}

.btn-play-pause {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.btn-play-pause:hover {
    background: #37B6FF;
}

/* Thumbnail strip */
.carousel-thumbnails {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    background: #111;
    overflow-x: auto;
}

.carousel-thumbnails img {
    width: 80px;
    height: 50px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.3s;
}

.carousel-thumbnails img.portrait {
    width: 35px;
    object-fit: contain;
    background: #000;
}

.carousel-thumbnails img:hover {
    opacity: 0.8;
}

.carousel-thumbnails img.active {
    opacity: 1;
    border-color: #37B6FF;
}

/* =========================================================================
   Responsive - Carousel
   ========================================================================= */
@media (max-width: 768px) {
    .carousel-fixed-height,
    .carousel-fixed-height .carousel-item,
    .carousel-fixed-height .carousel-item img {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .carousel-fixed-height,
    .carousel-fixed-height .carousel-item,
    .carousel-fixed-height .carousel-item img {
        height: 250px;
    }
}