/* 
   =========================================================
   Custom Styles for Tamil Nadu Tourism Imported Sections
   =========================================================
*/

/* --- Typography & Base Adjustments --- */
.font-primary {
    font-weight: 700;
}
.font-secondary {
    font-weight: 400;
    line-height: 1.6;
}

/* Ensure the wrapper doesn't overflow */
.card-wrapper {
    position: relative;
    padding-bottom: 70px; /* Room for dots and button */
}

/* --- Owl Carousel Customization --- */
.section-slide-wrap {
    margin-top: 30px;
}

/* Navigation Arrows (Top Right) */
.card-wrapper .owl-nav {
    position: absolute;
    top: -85px;
    right: 0;
    display: flex;
    gap: 15px;
}

.card-wrapper .owl-nav .owl-prev,
.card-wrapper .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid #e0e0e0 !important;
    background: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 24px;
    color: #666;
    cursor: pointer;
}

.card-wrapper .owl-nav .owl-prev:hover,
.card-wrapper .owl-nav .owl-next:hover {
    border-color: #fbb03b !important;
    color: #fbb03b !important;
    box-shadow: 0 4px 10px rgba(251, 176, 59, 0.2);
}

/* Pagination Dots (Bottom Center) */
.card-wrapper .owl-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
    margin-top: 25px;
    margin-bottom: 10px;
}

.card-wrapper .owl-dots .owl-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e0e0e0 !important;
    transition: all 0.3s;
    border: 3px solid transparent !important;
}

.card-wrapper .owl-dots .owl-dot.active {
    background: #666 !important;
    border: 2px solid #fff !important;
    box-shadow: 0 0 0 1px #666;
    transform: scale(1.2);
}

/* --- Card Styles & Unique Animations --- */
.slide-item {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.slide-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Image Wrappers */
.img-wrap3 {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 300px;
}

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

.slide-item:hover .img-wrap3 img {
    transform: scale(1.1) rotate(1deg);
}

/* Gradient Overlay for Images */
.image-overlay-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
    transition: background 0.4s ease;
}

.slide-item:hover .image-overlay-block::after {
    background: linear-gradient(to bottom, rgba(0,0,0,0) 10%, rgba(0,0,0,0.9) 100%);
}

/* Card Body Overlay (for Absolute Positioning) */
.slide-item .card-body.position-absolute {
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Content visibility on hover */
.slide-item .line-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* --- Explore Button Styles (Bottom Right) --- */
.btn-wrap.position-absolute {
    position: absolute !important;
    bottom: -10px;
    right: 0;
    margin-top: 0;
    text-align: right;
    z-index: 5;
}

.btn-explore {
    display: inline-flex;
    align-items: center;
    background: transparent !important;
    color: #fbb03b !important;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    padding: 0;
}

.btn-explore::after {
    content: "\2192"; /* Right arrow character */
    margin-left: 8px;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.btn-explore:hover {
    color: #ff9800 !important;
}

.btn-explore:hover::after {
    transform: translateX(5px);
}


/* --- Section Title Animations --- */
.section-title {
    animation: fadeInDown 0.8s ease forwards;
}

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

/* --- Utilities & Adjustments --- */
.section-block {
    padding: 60px 0;
}
.section-block-pt-0 {
    padding-top: 0;
}
.secondary-bg {
    background-color: #f7f9fa;
}
.bg-white {
    background-color: #fff;
}
.bg-light {
    background-color: #f0f4f8;
}

/* Fix missing container paddings if necessary */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Add custom styling to Newsletter form */
.block-newsletter {
    background: #2b2b2b;
    padding: 0px 0;
    color: #fff;
    border-radius: 12px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.block-newsletter h2 {
    color: #fff;
}

.block-newsletter .form-control {
    padding: 12px 20px;
    border-radius: 30px;
    border: none;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

.block-newsletter .btn-theme {
    background: #fbb03b;
    color: #fff;
    border-radius: 30px;
    padding: 12px 30px;
    border: none;
    transition: all 0.3s ease;
}

.block-newsletter .btn-theme:hover {
    background: #e69c24;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(251, 176, 59, 0.4);
}

/* Fix Heritage Section Map */
.section-heritage img.w-100 {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- Heritage Section Styles --- */
.section-heritage {
    position: relative;
    width: 100%;
}
.heritage-slide .slide-item {
    width: 100%;
    height: 70vh;
    min-height: 500px;
    position: relative;
}
.heritage-slide .slide-item picture, 
.heritage-slide .slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.heritage-slide .badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 10;
    font-size: 16px;
    background: rgba(0,0,0,0.7) !important;
    color: #fff;
    padding: 15px 20px !important;
    letter-spacing: 1px;
}
.heritage-slide .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    margin: 0;
}
.heritage-slide .owl-nav .owl-prev,
.heritage-slide .owl-nav .owl-next {
    pointer-events: auto;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    color: rgba(255,255,255,0.7) !important;
    background: transparent !important;
    border: none !important;
    transition: all 0.3s ease;
}
.heritage-slide .owl-nav .owl-prev:hover,
.heritage-slide .owl-nav .owl-next:hover {
    color: #fff !important;
    transform: scale(1.1);
}
.card-heritage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 100%;
    max-width: 800px;
}
.card-heritage .row {
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}
.card-heritage .card-black {
    background: #222 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.card-heritage h2 {
    color: #fbb03b !important;
    font-size: 42px;
    line-height: 1.2;
}
.card-heritage h2 .text-grey {
    color: #999 !important;
    display: block;
}
.card-heritage .card-white {
    background: rgba(248, 249, 250, 0.95) !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
}

/* --- Attractions Section Grid Styles --- */
.section-alternate .item-alternate {
    display: flex;
    flex-wrap: wrap;
}
.section-alternate .item-alternate > div {
    display: flex;
    flex-direction: column;
}
.section-alternate .slide-item {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.section-alternate .slide-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.section-alternate .slide-item .img-wrap4,
.section-alternate .slide-item .img-wrap {
    height: 100%;
    min-height: 250px;
    position: relative;
    overflow: hidden;
}
.section-alternate .slide-item .img-wrap4 img,
.section-alternate .slide-item .img-wrap img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.section-alternate .slide-item:hover img {
    transform: scale(1.1);
}
.section-alternate .slide-item .card-body {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    text-align: left;
    padding: 0 !important;
}
.section-alternate h3.card-title {
    font-size: 32px;
    font-weight: 700;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
    color: #fff !important;
}

/* --- Eat & Drink (Promo Block) Styles --- */
.section-promo {
    background-color: #f8f9fa !important;
    padding: 60px 0;
}
.promo-block {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.promo-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.promo-block img {
    width: 100%;
    display: block;
    transition: transform 0.6s ease;
}
.promo-block:hover img {
    transform: scale(1.05);
}
/* Gradient overlay for readability */
.promo-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 1;
}
.promo-block .desc {
    position: absolute;
    bottom: 40px;
    left: 50px;
    z-index: 2;
    color: #fff;
    max-width: 45%;
}
@media (max-width: 768px) {
    .promo-block .desc {
        max-width: 80%;
        left: 20px;
        bottom: 20px;
    }
}
.promo-block .desc h2 {
    color: #fff !important;
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}
.promo-block .desc p {
    color: #eee !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
    line-height: 1.6;
}
.promo-block .desc .btn-explore-white {
    color: #fff !important;
    font-weight: 500;
}

/* --- Gallery Section Styles --- */
.section-gallery .gallery-active-link {
    color: #fbb03b !important;
    font-weight: 500;
}
.section-gallery .color-primary {
    color: #fbb03b !important;
}
.section-gallery .row {
    margin: 0 !important;
}
.section-gallery .gallery-item,
.section-gallery .px-0 {
    padding: 0 !important;
}
.section-gallery .gallery-item {
    position: relative;
    overflow: hidden;
}
/* Ensure equal height distribution */
.section-gallery .img-wrap3 {
    height: 600px;
}
.section-gallery .img-wrap1 .row {
    height: 100%;
    margin: 0;
}
.section-gallery .img-wrap1 .gallery-item {
    height: 300px; /* Exactly half of 600px */
}
/* Ensure images cover the area */
.section-gallery .gallery-item img.img-responsive {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease, filter 0.5s ease;
}
/* Hover effect for gallery */
.section-gallery .gallery-item:hover img.img-responsive {
    transform: scale(1.08);
    filter: brightness(0.85);
}
/* Play Button styling */
.play-btn.posCenter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none; /* Let clicks pass through to the <a> tag */
}
.play-btn .btn-stroke {
    display: inline-block;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.play-btn .btn-stroke img {
    width: 45px; 
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.section-gallery .gallery-item:hover .play-btn .btn-stroke {
    transform: scale(1.15);
    opacity: 1;
}

/* Responsiveness */
@media (max-width: 991px) {
    .section-gallery .img-wrap3,
    .section-gallery .img-wrap1 .gallery-item {
        height: 350px;
    }
}

/* --- Fix Card Body Overlay for ALL Sliders --- */
.section-slide-wrap .slide-item .card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    padding: 30px 25px 15px 25px !important;
    z-index: 10;
    border-radius: 0 0 10px 10px;
}
.section-slide-wrap .slide-item {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.section-slide-wrap .slide-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
.section-slide-wrap .slide-item h3.card-title {
    font-size: 26px;
    font-weight: 700;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

/* --- Newsletter Section Styles --- */
.block-newsletter,
.block-newsletter .container,
.block-newsletter .bg-dark,
.form-newsletter {
    background-color: #ffffff !important;
}
.block-newsletter h2.font-primary {
    color: #000000 !important;
}
.block-newsletter p.font-secondary {
    color: #333333 !important;
}
.block-newsletter label {
    color: #fbb03b !important; /* Yellow text for labels */
    font-weight: 600;
    margin-bottom: 8px;
    display: inline-block;
}
.block-newsletter .form-control {
    background-color: #f9f9f9 !important;
    border: 1px solid #ccc !important;
    color: #000 !important;
}
.block-newsletter .form-control::placeholder {
    color: #999 !important;
}
.block-newsletter .btn-primary {
    background-color: #fbb03b !important;
    border-color: #fbb03b !important;
    color: #fff !important;
    font-weight: bold;
}

/* --- Hero Banner Slider Styles --- */
.nri-banner-slider-section {
    position: relative;
    height: 700px;
    overflow: hidden;
    margin-top: 0;
}
.nri-banner-slider-section .banner-carousel {
    height: 100%;
}
.nri-banner-slider-section .owl-stage-outer, 
.nri-banner-slider-section .owl-stage, 
.nri-banner-slider-section .owl-item {
    height: 100%;
}
.nri-banner-slider-section .banner-slide-item {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: kenBurns 25s infinite alternate; /* The premium zoom animation */
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.nri-banner-slider-section .banner-content-overlay {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; 
}
.nri-banner-slider-section .dark-overlay-box {
    /* background: rgba(0, 0, 0, 0.25);
    padding: 60px 80px;
    border-radius: 15px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    pointer-events: auto; 
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.1); */
}
.nri-banner-slider-section .owl-nav { display: none !important; }
.nri-banner-slider-section .owl-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}
.nri-banner-slider-section .owl-dots .owl-dot span {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    margin: 0 6px;
    transition: all 0.3s ease;
    display: block;
}
.nri-banner-slider-section .owl-dots .owl-dot.active span {
    background: #fbb03b;
    transform: scale(1.3);
}

@media (max-width: 991px) {
    .nri-banner-slider-section,
    .nri-banner-slider-section .banner-slide-item {
        height: 550px;
    }
    .nri-banner-slider-section .dark-overlay-box {
        padding: 40px 30px;
        width: 90%;
    }
    .nri-cursive-title {
        font-size: 40px !important;
    }
    .nri-banner-title {
        font-size: 32px !important;
    }
}
@media (max-width: 576px) {
    .nri-banner-slider-section,
    .nri-banner-slider-section .banner-slide-item {
        height: 500px;
    }
    .nri-cursive-title {
        font-size: 32px !important;
    }
    .nri-banner-title {
        font-size: 24px !important;
    }
    .nri-banner-buttons {
        flex-direction: column;
        align-items: center;
    }
}


@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}



/* --- Global Card/Slider Image Heights & Alignment --- */
.slide-item {
    height: 480px !important; /* Force uniform portrait height across all sliders and grids */
    width: 100%;
    display: flex;
    flex-direction: column;
}
.slide-item .img-wrap, 
.slide-item .img-wrap3, 
.slide-item .img-wrap4,
.slide-item .image-overlay-block,
.slide-item a {
    height: 100% !important;
    min-height: 100% !important;
    display: block !important;
    width: 100% !important;
}
.slide-item img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important; /* Prevents stretching and fills the entire card */
}

/* Move the slider arrows to the top right of the section */
.card-wrapper {
    position: relative;
    margin-top: 15px;
}
.section-slide-wrap .owl-nav {
    position: absolute;
    top: -75px;
    right: 0;
    margin: 0 !important;
    display: flex;
    gap: 15px;
}
.section-slide-wrap .owl-nav button {
    background: transparent !important;
    color: #999 !important;
    font-size: 32px !important;
    font-weight: 300 !important;
    transition: color 0.3s ease;
}
.section-slide-wrap .owl-nav button:hover {
    color: #fbb03b !important;
}

@media (max-width: 768px) {
    .section-slide-wrap .owl-nav {
        top: -65px;
    }
}



/* --- "Things To Do" Section Specific Layout (Text Below Image) --- */
.things-slide .slide-item {
    height: auto !important; /* Let the card expand to fit text below */
    display: block;
}
.things-slide .slide-item .img-wrap,
.things-slide .slide-item .img-wrap3,
.things-slide .slide-item .image-overlay-block,
.things-slide .slide-item a {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    border-radius: 0 !important;
    overflow: hidden;
}
.things-slide .slide-item img {
    border-radius: 0 !important;
    height: 100% !important;
    object-fit: cover !important;
}
.things-slide .slide-item .card-body {
    position: relative !important; /* Move text below the image */
    background: transparent !important; /* Remove gradient overlay */
    padding: 20px 0 0 0 !important; /* Add spacing below image */
}
.things-slide .slide-item .card-body .text-white {
    color: #000 !important; /* Make text black */
    text-shadow: none !important; /* Remove white text shadow */
}
.things-slide .slide-item .card-title a {
    color: #000 !important;
    font-size: 22px;
    font-weight: 800;
}
.things-slide .slide-item .font-secondary {
    color: #666 !important;
    line-height: 1.5;
}
.things-slide .slide-item .btn-explore {
    color: #fbb03b !important;
    font-weight: 600;
    margin-top: 10px;
    display: inline-block;
}



/* --- BULLETPROOF THINGS TO DO FIX --- */
.things-slide .slide-item {
    height: auto !important;
    min-height: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    display: block !important;
}
.things-slide .slide-item .card-body {
    position: relative !important;
    bottom: auto !important;
    padding: 15px 0 0 0 !important;
    background: transparent !important;
}
.things-slide .slide-item h3.card-title, 
.things-slide .slide-item .card-title a {
    color: #000 !important;
    text-shadow: none !important;
    margin-bottom: 5px !important;
}
.things-slide .slide-item p.font-secondary {
    color: #555 !important;
    text-shadow: none !important;
    margin-top: 0 !important;
    margin-bottom: 15px !important;
}


/* --- AGGRESSIVE GAP FIX FOR THINGS TO DO --- */
.things-slide .slide-item h3.card-title {
    margin: 10px 0 5px 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}
.things-slide .slide-item h3.card-title a {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    display: inline-block !important;
}
.things-slide .slide-item p.line-2 {
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}
.things-slide .slide-item .card-body {
    padding: 0 !important;
}



/* --- ULTIMATE GAP FIX & BUTTON FIX --- */
.things-slide .slide-item {
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
}
.things-slide .owl-item {
    height: auto !important;
}
.things-slide .slide-item .card-body {
    height: auto !important;
    display: block !important;
    position: relative !important;
}
.section-alternate .container .heading-wrap {
    width: 100% !important;
    padding-right: 140px !important; /* Leave plenty of space for the navigation arrows */
}

