/* create new stacking context */

@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,300;0,400;0,500;0,600;1,100;1,300&display=swap");
@import url("https://fonts.googleapis.com/css?family=Quicksand:400,500,700&subset=latin-ext");
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Baskervville:ital,wght@0,400..700;1,400..700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Quintessential&display=swap');


.mb-3 {
    margin-bottom: 1rem !important;
    font-size: 10px;
}

* {
  font-family: "Quintessential", serif; 
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;

  -webkit-transition: .2s linear;
  transition: .2s linear;
}
#heroBox{
  position: relative;
  isolation: isolate;   /* 🔥 MOST IMPORTANT LINE */
}

.home .photo-credit{
  position: absolute;
  right: 20px;
  bottom: 20px;

  z-index: 99999;

  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;

  color: #ffffff;

  /* 🔥 STRONG contrast */
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.9),
    rgba(0,0,0,0.6)
  );

  border-radius: 18px;

  box-shadow: 
    0 8px 25px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.15);

  backdrop-filter: blur(6px);

  opacity: 1 !important;
  transform: none !important;

  max-width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  pointer-events: none;
}





/* ============================= */
/* FAMOUS FOODS SECTION (UNIQUE) */
/* ============================= */

.tnf-food-section {
  padding: 6rem 2rem;
  background: #fafafa;
  text-align: center;
}

.tnf-food-heading {
  font-size: 3rem;
  margin-bottom: 4rem;
  color: #17333B;
  font-weight: 700;
}

.tnf-food-container {
  max-width: 1200px;
  margin: 0 auto;
}

.tnf-food-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

/* Food Card */
.tnf-food-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1.2rem 2.4rem rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.tnf-food-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 2rem 3.4rem rgba(0,0,0,0.12);
}

.tnf-food-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.tnf-food-content {
  padding: 2rem;
  text-align: left;
}

/* Tags */
.tnf-food-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 1.2rem;
  border-radius: 50px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* New tag colours */
.tnf-food-tag--sweet {
  background: #e8590c;   /* orange / sweet */
}

.tnf-food-tag--street {
  background: #845ef7;   /* purple / street food */
}

.tnf-food-tag--coastal {
  background: #228be6;   /* blue / sea */
}

/* Old tags if you still want to reuse
.tnf-food-tag--sea { background: #228be6; }
.tnf-food-tag--spicy { background: #fa5252; }
.tnf-food-tag--veg { background: #40c057; }
*/

.tnf-food-title {
  font-size: 2rem;
  color: #222;
  margin-bottom: 0.8rem;
}

.tnf-food-desc {
  font-size: 1.5rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.tnf-food-meta {
  font-size: 1.4rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

.tnf-food-contact {
  font-size: 1.4rem;
  color: #444;
}

.tnf-food-contact a {
  color: #0b76ff;
  text-decoration: none;
}

.tnf-food-contact a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .tnf-food-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .tnf-food-grid {
    grid-template-columns: 1fr;
  }
}



/* ===================================================== */
/* LEGENDS OF NAGAPATTINAM - UNIQUE SECTION (tnl-*) */
/* ===================================================== */

.tnl-section {
  width: 100%;
  padding: 6rem 0;
  background: #f3f8fc;
  text-align: center;
}

.tnl-heading {
  font-size: 3rem;
  margin-bottom: 4rem;
  color: #17333B;
  font-weight: 700;
}

/* Slider Container */
.tnl-slider {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.tnl-slide-row {
  display: flex;
  transition: 0.5s ease;
}

/* Each slide = full width */
.tnl-slide-col {
  flex: 0 0 100%;
  display: flex;
  position: relative;
  height: 380px;
}

/* Content Box */
.tnl-legend-content {
  width: 60%;
  background: rgba(255, 255, 255, 0.9);
  padding: 3rem;
  margin: auto 0;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  text-align: left;
}

.tnl-legend-content p {
  font-size: 1.5rem;
  color: #333;
  line-height: 1.4;
}

.tnl-legend-content h3 {
  margin-top: 2rem;
  font-size: 2rem;
  color: #17333B;
  font-weight: 700;
}

.tnl-role {
  font-size: 1.4rem;
  color: #666;
}

/* Image Box */
.tnl-legend-img {
  width: 40%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.tnl-legend-img img {
  width: 260px;
  height: 100%;
  object-fit: fill;
  border-radius: 12px;
  box-shadow: 0 15px 25px rgba(0,0,0,0.15);
}

/* Indicators */
.tnl-indicators {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.tnl-btn {
  height: 12px;
  width: 12px;
  background: #aaa;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s;
}

.tnl-btn.active {
  width: 30px;
  background: #17333B;
}
.tnl-slider {
  overflow: hidden;
  width: 100%;
}

.tnl-slide-row {
  display: flex;
  transition: transform 0.6s ease;
}

.tnl-slide-col {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Responsive */
@media (max-width: 900px) {
  .tnl-slide-col {
    flex-direction: column-reverse;
    height: auto;
  }

  .tnl-legend-img {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
  }

  .tnl-legend-img img {
    width: 200px;
    height: 200px;
    border-radius: 14px;
  }

  .tnl-legend-content {
    width: 100%;
    margin-top: 1rem;
  }
}

@media (max-width: 600px) {
  .tnl-heading {
    font-size: 2.4rem;
  }

  .tnl-legend-content {
    padding: 2.2rem;
  }

  .tnl-legend-content p {
    font-size: 1.4rem;
  }
}
/* ===================================== */
/* LEGENDS MODAL POPUP (NEEDED FOR OPEN) */
/* ===================================== */

.tnl-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: none;           /* default hidden */
  justify-content: center;
  align-items: center;
  z-index: 999999;
  padding: 20px;
}

.tnl-modal-box {
  background: #fff;
  width: 90%;
  max-width: 700px;
  border-radius: 12px;
  padding: 20px;
  position: relative;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.tnl-modal-img {
  width: 200px;
  height: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.tnl-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  color: #333;
  font-weight: bold;
  cursor: pointer;
}

.tnl-modal-text {
  text-align: left;
  font-size: 1.5rem;
  margin-top: 10px;
  line-height: 1.6;
  color: #444;
}

/* Modal fade animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* ============================= */
/* HERITAGE SITES SCROLL SECTION */
/* ============================= */

/* --- SECTION LAYOUT --- */
.tnh-heritage-section {
    display: flex;
    gap: 2rem;
    padding: 40px 20px;
    align-items: flex-start;
    box-sizing: border-box;
    margin-bottom: -182px;
}

/* --- LEFT FIXED INTRO CARD --- */
.tnh-heritage-intro {
    width: 977px;
    height: 517px;
    background: #ffffff;
    padding: 65px;
    border-radius: 14px;
   
   
}

.tnh-heritage-intro h1 {
    font-size: 60px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.tnh-heritage-intro span {
    color: #034051;;
    font-weight: 700;
    font-size: 54px;
}

.tnh-heritage-intro p {
    font-size: 1.4rem;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #333;
}

.tnh-heritage-intro button {
    background:#002833;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    margin-top: 4px;
    cursor: pointer;
    font-size: 1.4rem;
}

.tnh-heritage-intro .heritage-btn {
    display: inline-block;
    background: #002833;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    margin-top: 4px;
    cursor: pointer;
    font-size: 1.4rem;
    text-decoration: none;
    transition: 0.3s ease;
}

.tnh-heritage-intro .heritage-btn:hover {
    background: #006c8d;
    transform: translateY(-2px);
}

/* --- RIGHT SIDE HORIZONTAL SCROLLER --- */
.tnh-heritage-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 15px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

/* hide scrollbar */
.tnh-heritage-scroll::-webkit-scrollbar {
    display: none;
}
.tnh-heritage-scroll {
    scrollbar-width: none;
}

/* --- HERITAGE CARDS --- */
.tnh-heritage-card {
    position: relative;
    min-width: 300px;
    height: 300px;
    color: #ffffff;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* dark gradient layer on hover (image shadow) */
.tnh-heritage-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.8),
        rgba(0,0,0,0.35),
        transparent
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* text overlay container */
.tnh-heritage-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* hover effects: show overlay + stronger shadow + lift */
.tnh-heritage-card:hover::before {
    opacity: 1;
}

.tnh-heritage-card:hover .tnh-heritage-overlay {
    opacity: 1;
}

.tnh-heritage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.45),
                0 4px 12px rgba(0,0,0,0.3);
}

/* overlay text styles */
.tnh-heritage-overlay h2 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.tnh-heritage-overlay p {
    font-size: 1rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.tnh-heritage-overlay a {
    color: #ffd86b;
    text-decoration: underline;
    font-weight: 600;
    font-size: 0.95rem;
}

/* --- BACKGROUND IMAGES (CHANGE TO YOUR REAL PHOTOS) --- */
.card1 { background-image: url('https://i.ytimg.com/vi/WsvP-AEiSQc/maxresdefault.jpg?sqp=-oaymwEmCIAKENAF8quKqQMa8AEB-AH-CYACygWKAgwIABABGEMgWyhyMA8=&rs=AOn4CLDS5fVSwSGY9VFy6gNDcu14-aIvzA'); }
.card2 { background-image: url('https://cochin.xyz/wp-content/uploads/2019/01/Tombs-in-Dutch-Cemetery.jpg'); }
.card3 { background-image: url('/Still\ 2025-12-19\ 112751_2.1.1.jpg'); }
.card4 { background-image: url('../images/card4.jpg'); }
.card5 { background-image: url('../images/card5.jpg'); }
.card6 { background-image: url('../images/card6.jpg'); }
.card7 { background-image: url('../images/card7.jpg'); }

/* 🔥 NEW CARDS */
.card8  { background-image: url('https://lh3.googleusercontent.com/gps-cs-s/AG0ilSzohFWvJqG9JyQReUK-LdJS_8mk5I8jK_CxV_8jK4HxKYhLhedwlTRtrv0_6ZqJH9SPQd0-U81kBmEROu4Jqa3xJmwcNzf9lNmtNAclr-5B8iXIqzkuxdwot_H4lN6EKF9axi4=w408-h307-k-no'); }
.card9  { background-image: url('https://th.bing.com/th/id/OIP.YGR6qGqpUw1wd-hXwTN7LQHaFj?w=244&h=183&c=7&r=0&o=7&cb=defcachec2&dpr=1.3&pid=1.7&rm=3'); }
.card10 { background-image: url('https://1.bp.blogspot.com/-x_rnnK5XPSs/XrvNB0eMZ8I/AAAAAAAAWNg/vlVPmZVEpoQPRkCqyVgoXiVf9s1ibKcfgCK4BGAsYHg/w1200-h630-p-k-no-nu/NAGAI.png'); }
.card11 { background-image: url('../images/card11.jpg'); }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .tnh-heritage-section {
        flex-direction: column;
    }

    .tnh-heritage-intro {
        width: 100%;
        min-width: 100%;
    }
}

@media (max-width: 600px) {
    .tnh-heritage-intro {
        padding: 32px 24px;
    }

    .tnh-heritage-intro h1 {
        font-size: 30px;
    }

    .tnh-heritage-intro span {
        font-size: 32px;
    }

    .tnh-heritage-card {
        min-width: 260px;
        height: 260px;
    }
}

/* Slider arrows */
.tn-slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
}

.tn-slider-btn {
  pointer-events: all;
  width: 45px;
  height: 45px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tn-slider-btn:hover {
  background: #ff9800; /* theme-friendly highlight */
}

.tn-slider-prev {
  margin-left: 10px;
}

.tn-slider-next {
  margin-right: 10px;
}



.tnl-readmore{
  padding:6px 12px;
  background:#8b1c1c;
  color:#fff;
  border:none;
  cursor:pointer;
}

.tnl-modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.7);
  justify-content:center;
  align-items:center;
  z-index:9999;
}

.tnl-modal-box{
  background:#fff;
  padding:20px;
  width:90%;
  max-width:400px;
  border-radius:6px;
  position:relative;
}

.tnl-close{
  position:absolute;
  right:10px;
  top:5px;
  cursor:pointer;
  font-size:22px;
}
.tnl-modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.7);
  z-index:9999;
  justify-content:center;
  align-items:center;
}

.tnl-modal-box{
  background:#fff;
  width:90%;
  max-width:600px;
  max-height:80vh;
  padding:20px;
  border-radius:8px;
  position:relative;
  overflow-y:auto;
}

.tnl-modal-img{
  width:150px;
  height:150px;
  object-fit:cover;
  border-radius:50%;
  display:block;
  margin:0 auto 15px;
}

.tnl-close{
  position:absolute;
  top:10px;
  right:15px;
  font-size:22px;
  cursor:pointer;
}

.tnl-modal-text{
  font-size:14px;
  line-height:1.6;
}
.podcast-section {
  padding: 60px 0;
  background: #f5f6fa;
}

.podcast-title {
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
}

.podcast-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.podcast-slider {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 90px;
}

.podcast-slider::-webkit-scrollbar {
  height: 10px;
}

.podcast-slider::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 10px;
}

/* CARD */
.episode-card {
  min-width: 420px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
  overflow: hidden;
  transition: 0.3s ease;
}

.episode-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.episode-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.episode-name {
  padding: 18px 20px;
  font-size: 20px;
  font-weight: 700;
}

/* ARROWS */
.podcast-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: none;
  font-size: 26px;
  cursor: pointer;
  background: white;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  z-index: 10;
}

.podcast-arrow:hover {
  background: #1e3799;
  color: white;
}

.podcast-arrow.left {
  left: 20px;
}

.podcast-arrow.right {
  right: 20px;
}


.tnl-modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  padding: 20px;
}

.tnl-modal-box{
  background: #fff;
  border-radius: 10px;
  max-width: 700px;
  width: 90%;
  padding: 20px;
  text-align: center;
  position: relative;
}

.tnl-close{
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 26px;
  cursor: pointer;
}

.tnl-modal-img{
  width: 200px;
  height: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.tnl-modal-text{
  font-size: 1.5rem;
  text-align: left;
  line-height: 1.5;
}

/* LEGENDS MODAL */
.tnl-modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  padding: 20px;
}

.tnl-modal-box{
  background: #fff;
  border-radius: 10px;
  max-width: 700px;
  width: 90%;
  padding: 20px;
  text-align: center;
  position: relative;
}

.tnl-close{
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
}

.tnl-modal-img{
  width: 200px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.tnl-modal-text{
  font-size: 1.5rem;
  text-align: left;
  line-height: 1.6;
}
