

/* KEEP EVERYTHING SAME — YOUR CSS UNCHANGED */

body{
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.tamil-text {
  font-family: "Noto Sans Tamil", "Latha", sans-serif;
  line-height: 1.8;
}
/* HEADER */
.header{
    background:#f5c242;
    padding:10px;
    text-align:center;
    position:relative;
}

.center-block{text-align:center;}
.center-block img{height:80px;}
.sri{font-size:18px;font-weight:bold;}
.site-title{margin-top:5px;font-size:18px;font-weight:600;color:#7a4d00;}

.hamburger{
    position:absolute;
    right:15px;
    top:15px;
    font-size:22px;
    cursor:pointer;
    display:none;
}

/* ================= NAV ================= */

.nav{
    display:flex;
    justify-content:center;
    gap:18px;
    padding:10px 12px;

    background:#f5c242;              /* 🔥 match header */
    border-top:1px solid #e0b030;
    border-bottom:1px solid #e0b030;

    flex-wrap:wrap;
}

/* LINKS */
.nav a{
    text-decoration:none !important;
    color:#5a3a00 !important;

    font-weight:600;
    font-size:14px;

    padding:6px 10px;
    border-radius:6px;

    transition:0.2s ease;
}

/* HOVER */
.nav a:hover{
    background:rgba(0,0,0,0.08);
}


/* ================= MOBILE MENU ================= */

.mobile-menu{
    position:fixed;
    top:0;                  /* 🔥 FULL TOP */
    right:-100%;
    width:75%;
    height:100vh;

    background:#f5c242;

    display:flex;
    flex-direction:column;

    padding-top:20px;       /* 🔥 SMALL ONLY */
    padding-bottom:40px;    /* 🔥 bottom space */

    transition:0.3s ease;

    z-index:3000;           /* 🔥 ABOVE HEADER */
    overflow-y:auto;
}

.mobile-menu.show{
    right:0;
}

/* MOBILE LINKS */
.mobile-menu a{
    padding:16px;
    border-bottom:1px solid rgba(0,0,0,0.1);

    text-decoration:none;
    color:#5a3a00;

    font-weight:600;
    font-size:15px;
}


/* ================= MOBILE ================= */

@media(max-width:768px){

    /* HIDE DESKTOP NAV */
    .nav{
        display:none;
    }

    /* SHOW HAMBURGER */
    .hamburger{
        display:block;
    }

    /* 🔥 DO NOT FORCE DISPLAY HERE */
    /* REMOVE THIS LINE:
       .mobile-menu{ display:flex; }
    */

    /* SMALL HEADER ADJUSTMENTS */
    .site-title{
        font-size:16px;
    }

    .center-block img{
        height:60px;
    }
}

/* ================= LANGUAGE ================= */

.lang-switch{
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap:8px;
    padding:8px 10px;
    max-width:500px;
    margin:0 auto;
}

.lang-item{
    text-align:center;
    font-size:14px;
}

.lang-item span{
    font-size:9px;
}


/* ================= CONTENT ================= */

.content{
    max-width:800px;
    margin:20px auto;
    padding:0 15px;
    line-height:1.8;
}


/* ================= FOOTER ================= */

.footer{
    background:#f5c242;
    text-align:center;
    padding:15px 10px;
    font-size:13px;
}

.footer-text{
    font-size:13px;
    line-height:1.6;
}

.footer-links{
    margin-top:8px;
}

.footer-links a{
    margin:0 8px;
    font-size:12px;
    color:#000;
    text-decoration:none;
}

.social-icons{
    margin-top:10px;
}

.social-icons a{
    margin:0 10px;
    font-size:18px;
    color:#333;
    transition:0.3s;
}

.social-icons a:hover{
    color:#b8860b;
    transform:scale(1.2);
}


/* ================= TREE ================= */

.tree-list{
  margin-top:20px;
}

.tree-item{
  padding:14px 12px;
  margin:8px 0;
  font-size:17px;
  color:#5a3a00;
  cursor:pointer;

  background:#fff8e1;
  border-radius:8px;

  transition:all 0.2s ease;
}

.tree-item:hover{
  background:#fde8a3;
  transform:translateX(4px);
}

.tree-item:active{
  background:#f5c242;
  color:#000;
}

.tree-btn{
  background:#f5c242;
  border:none;
  padding:14px 18px;
  border-radius:8px;
  font-size:16px;
  font-weight:600;
  cursor:pointer;
}


/* ================= META ================= */

.meta-text{
  font-size:11px;
  color:#777;
  line-height:1.4;
  margin-top:2px;
}

.meta-inline{
  font-size:11px;
  color:#666;
  margin-top:6px;
}

.meta-center{
  font-size:11px;
  color:#777;
  text-align:center;
  margin-top:12px;
}

/* ============================= */
/* 🔥 THANIYAN STYLES (NEW) */
/* ============================= */

/* Container */
.thaniyan-container {
  max-width: 500px;
  margin: 0 auto 30px auto;
  padding: 0 10px;
}

/* Title (Main Heading) */
.thaniyan-title {
  text-align: center;
  font-weight: 700;
  margin: 20px 0;
  font-size: 18px;
}

/* SUBHEAD → CENTER */
.thaniyan-subhead {
  text-align: center;        /* ✅ changed */
  font-weight: 500;
  margin: 10px 0 6px;
}
/* Group block (controls breathing space) */
.thaniyan-group {
  margin-bottom: 15px;
}

/* LINE → LEFT */
.thaniyan-line {
  text-align: left;          /* ✅ ensure left */
  margin-left: 8px;          /* slight indent for readability */
  line-height: 1.9;
  margin-bottom: 4px;
}

/* Prosody (small, subtle) */
.thaniyan-prosody {
  font-size: 12px;
  color: #666;
  margin-bottom: 2px;
}

.display-block {
  font-size: 11px;
  opacity: 0.7;
  text-align: center;
  margin: 6px 0 2px 0;
}

.display-item {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}
.pasuram-local {
  text-align: right;
  font-size: 11px;
  opacity: 0.7;
}


.pathu-header {
  margin-top: 20px;
  font-weight: bold;
  text-align: center;
}

.thirumozhi-header {
  margin-top: 15px;
  font-weight: 600;
  text-align: center;
}


.prabandham-header {
  text-align: center;
  margin-top: 12px;
  margin-bottom: 4px;
}

.line1 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.line2 {
  font-size: 14px;
  line-height: 1.4;
}

.line3-bold {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin: 8px 0;
  line-height: 1.5;
  word-break: break-word;
}

.prabandham-header,
.line1,
.line2,
.line3-bold {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

.line {
  margin-bottom: 6px;
  line-height: 1.8;
}

.line {
  margin-bottom: 6px;
  line-height: 1.8;
  padding: 4px 6px;
  border-radius: 4px;
}

/* ================= SECTION HEADER ================= */

.section-header {
  text-align: center;
  font-weight: 600;
  margin: 20px 0 10px;
}

/* ================= GLOBAL NUMBER ================= */

.global-no {
  text-align: left;
  font-weight: 600;
  margin: 5px 0 10px;
}

/* ================= CONTAINERS ================= */

.madal-container,
.kootrirukkai-container {
  text-align: left;
}

/* ================= LINE ================= */

.line {
  text-align: left;
  padding: 4px 6px;
  margin-bottom: 6px;
  line-height: 1.8;
  border-radius: 4px;
}

/* ================= COUPLET ================= */

.couplet {
  margin-bottom: 10px;
}

/* ================= ALIGN NUMBER ================= */

.line-with-no {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 4px 6px;
}

/* ================= COUPLET NUMBER ================= */

.couplet-no {
  font-size: 12px;
  color: #666;
  margin-left: 10px;
}

/* ================= DUAL BLOCK ================= */

.dual-block {
  background: #fff9d6 !important;
  padding: 6px 6px;
  border-radius: 4px;
}

/* ================= LINE DUAL ================= */

.dual-line {
  background: #fffdf0 !important;
}

/* ================= RECITAL BUTTON ================= */

.recital-btn-container {
  text-align: center;
  margin: 20px 0;
}

/* ================= OVERLAY ================= */

#overlay{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;

  background:rgba(0,0,0,0.4);

  display:none;
  pointer-events:none;

  z-index:2500;   /* 🔥 FIXED */
}

#overlay.show{
  display:block;
  pointer-events:auto;
}
/* 🔥 FORCE NAV STYLE — FINAL OVERRIDE */
.nav a,
.nav a:visited,
.nav a:active {
  color: #5a3a00 !important;
  text-decoration: none !important;
}

.nav {
  background: #f5c242 !important;
}

body{
  margin:0;
}

/* 🔥 HEADER ALWAYS ON TOP */
.header{
  position:relative;
  z-index:2000;
}

/* 🔥 HAMBURGER ABOVE EVERYTHING */
.hamburger{
  position:absolute;   /* ✅ REQUIRED */
  z-index:2100;
}

/* 🔥 FINAL COLOR STANDARDIZATION (SAFE OVERRIDE) */

.dual-block,
.dual-line,
.tree-item {
  background:#fff8e1 !important;
}

/* 🔥 FORCE CLICK PRIORITY */
.hamburger{
  position:absolute;
  z-index:9999 !important;
}

.mobile-menu a:first-child{
  margin-top:10px;
}