.carousel {
    height: calc(100vh - 52px);
    overflow: hidden;
    margin-top: -1px;
}

.carousel-inner {
    height: 100%;
}

.carousel-item {
    height: 100%;
}

.carousel-item {
    position: relative;
    background-size: cover;
    background-position: center;
}

.carousel-item .carousel-bg-blur {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(30px);
    transform: scale(1.1);
    z-index: 0;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 1;
}

.carousel-caption {
    bottom: 40px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    padding: 0;
    z-index: 2;
}

.carousel-caption .btn-explore {
    background-color: #C4132A;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 32px;
    border-radius: 8px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 16px rgba(196, 19, 42, 0.3);
}

.carousel-caption .btn-explore:hover {
    background-color: #a81023;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 19, 42, 0.4);
}

.carousel .carousel-indicators {
    bottom: 12px;
}

.carousel .carousel-indicators button {
    padding: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    margin: 0 4px;
    background-color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.carousel .carousel-indicators button.active {
    background-color: #fff;
    width: 24px;
    border-radius: 4px;
}

/* Video container specific styling - auto height with aspect ratio */
.video-container {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9; /* Maintains video aspect ratio */
    overflow: hidden;
}

/* Ensure YouTube iframe is clickable and not blocked by carousel controls */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: auto; /* Ensure video controls are clickable */
    z-index: 1; /* Place iframe above any potential overlays */
}

/* Hide carousel controls when video is active to prevent interference */
.carousel-item.active .carousel-control-prev,
.carousel-item.active .carousel-control-next {
    display: none;
}

/* Show carousel controls for non-video items */
.carousel-item:not(.active) .carousel-control-prev,
.carousel-item:not(.active) .carousel-control-next {
    display: block;
}

/* Hide carousel indicators when video slide is active - handled by JavaScript */
.carousel-indicators.hidden {
    display: none !important;
}


.carousel-control-next, .carousel-control-prev {
    background-color: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    opacity: 0;
    transition: all 0.25s ease;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.carousel-control-prev {
    left: 16px;
}

.carousel-control-next {
    right: 16px;
}

.carousel-control-next:hover, .carousel-control-prev:hover {
    background-color: rgba(0, 0, 0, 0.45);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 14px;
    height: 14px;
}

@media screen and (max-width: 768px) {
    .carousel {
        height: calc(100vh - 48px);
    }

    .carousel-caption {
        bottom: 16px;
    }

    .carousel-caption .btn-explore {
        font-size: 11px;
        padding: 8px 20px;
    }

    .carousel-control-next, .carousel-control-prev {
        width: 30px;
        height: 30px;
        opacity: 1;
    }
}
/*Section 2*/
.section-two {
    padding: 60px 0;
    background-color: #fafafa;
}

.section-two-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-two-title {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.section-two-subtitle {
    font-size: 15px;
    color: #888;
    font-weight: 400;
}

.section-two-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.section-two-card {
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

.section-two-link {
    display: block;
    position: relative;
    text-decoration: none;
}

.section-two-img {
    overflow: hidden;
    border-radius: 14px;
}

.section-two-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.section-two-card:hover .section-two-img img {
    transform: scale(1.06);
}

.section-two-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
    border-radius: 14px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section-two-card:hover .section-two-overlay {
    opacity: 1;
}

.section-two-cta {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 24px;
    border: 1.5px solid #fff;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    transform: translateY(8px);
}

.section-two-card:hover .section-two-cta {
    transform: translateY(0);
}

.section-two-cta:hover {
    background-color: #fff;
    color: #222;
}


.model-page-footer .col {
    margin: 10px;
    background-color: #e7e7e7;
}

.model-page-footer .col a {

    text-decoration: none;
    color: black;
}

.model-page-footer .custom-icon {
    width: 2em;
    margin-bottom: 20px;
}

@media screen and (min-width: 769px) {
    .section-two-carousel {
        display: none;
    }

    .section-two {
        display: block;
    }
}

@media screen and (max-width: 768px) {
    .section-two-carousel {
        display: block;
    }

    .section-two {
        display: none;
    }

    .section-two-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .section-two-title {
        font-size: 22px;
    }

    .section-two {
        padding: 40px 0;
    }
}

.brochure-modal .brochure-image { 
    max-height: 90vh;
    width: auto;
}

.brochure-modal .modal-header {
    border-bottom: none;
}

.brochure-modal .modal-content {
    background-color: transparent;
    border: none;
}

.model-page-footer .row .model-footer-col-block {
    background-color: red;
    border-radius: 5px;
}

.model-page-footer .row .model-footer-col-block h6,.model-page-footer .row .model-footer-col-block img {
    filter: brightness(0) invert(1);
}

/* Additional Slider Section */
.additional-slider-section {
    background-color: #f8f9fa;
    padding: 3rem 0;
    margin: 2rem 0;
}

.additional-slider-section h3 {
    color: #333;
    font-weight: 600;
    margin-bottom: 2rem;
}

.additional-slider-section .carousel-item {
    padding: 2rem 0;
    min-height: 300px;
}

.additional-slider-section .carousel-item h4 {
    color: #dc3545;
    font-weight: 700;
    margin-bottom: 1rem;
}

.additional-slider-section .carousel-item p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.additional-slider-section .btn-primary {
    background-color: #dc3545;
    border-color: #dc3545;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.additional-slider-section .btn-primary:hover {
    background-color: #c82333;
    border-color: #bd2130;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.additional-slider-section .carousel-indicators {
    bottom: -50px;
}

.additional-slider-section .carousel-indicators button {
    background-color: #dc3545;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    margin: 0 5px;
}

.additional-slider-section .carousel-indicators .active {
    background-color: #333;
}

.additional-slider-section .carousel-control-prev,
.additional-slider-section .carousel-control-next {
    width: 5%;
    color: #dc3545;
}

.additional-slider-section .carousel-control-prev-icon,
.additional-slider-section .carousel-control-next-icon {
    background-color: #dc3545;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .additional-slider-section .carousel-item {
        text-align: center;
    }
    
    .additional-slider-section .carousel-item .col-md-6:first-child {
        margin-bottom: 2rem;
    }
    
    .additional-slider-section h3 {
        font-size: 1.5rem;
    }
    
    .additional-slider-section .carousel-item h4 {
        font-size: 1.3rem;
    }
}

/* Blog Posts Section */
.section-blog {
    padding: 60px 0;
    background-color: #fff;
}

.section-blog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 36px;
}

.section-blog-title {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
}

.section-blog-subtitle {
    font-size: 15px;
    color: #888;
    margin: 0;
}

.section-blog-viewall {
    font-size: 14px;
    font-weight: 600;
    color: #C4132A;
    text-decoration: none;
    padding: 8px 20px;
    border: 1.5px solid #C4132A;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.section-blog-viewall:hover {
    background-color: #C4132A;
    color: #fff;
}

.section-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    border-radius: 14px;
    overflow: hidden;
    background-color: #fafafa;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-color: #e8e8e8;
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card-img {
    height: 200px;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.05);
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eee;
    color: #ccc;
    font-size: 40px;
}

.blog-card-body {
    padding: 20px;
}

.blog-card-date {
    font-size: 12px;
    color: #aaa;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.blog-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 8px 0 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card:hover .blog-card-title {
    color: #C4132A;
}

.blog-card-read {
    font-size: 13px;
    font-weight: 600;
    color: #C4132A;
    transition: gap 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.blog-card:hover .blog-card-read {
    gap: 8px;
}

@media screen and (max-width: 768px) {
    .section-blog {
        padding: 40px 0;
    }

    .section-blog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .section-blog-title {
        font-size: 22px;
    }

    .section-blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .blog-card-img {
        height: 180px;
    }
}
/**/
