/* ==========================================================================
   P.Swaminathan's Spiritual Journey — shared stylesheet
   Used by: index.html, profile.html, schedule.html, photos.html
   ========================================================================== */

:root {
  --teal: #00829b;       /* Exact Cyan/Teal from image */
  --gold: #bea567;       /* Exact Gold/Tan from image */
  --maroon: #a6182c;
  --maroon-dark: #6b1120;
  --ink: #3a2f28;
  --ink-soft: #6b5c4f;
  --peach-1: #fbe0c8;
  --peach-2: #f6d5b7;
  --page-bg: #f2ece3;
  --row-a: #efe7d6;
  --row-b: #dbeef0;
}



/* பக்கத் தலைப்புக்கான மெல்லிய மற்றும் நேர்த்தியான வடிவமைப்பு (Videos / காணொளிகள்) */
.contact-title-container1 {
  text-align: center;
  margin-bottom: 25px;
}

.contact-title1 {
  font-size: 32px !important;
  font-weight: 300 !important;
  color: #333333 !important;
  margin: 0;
  line-height: 1.2;
}

.contact-subtitle-tamil1 {
  font-size: 36px !important;
  font-weight: 200 !important; /* மிக மெல்லிய தோற்றம் */
  color: #00829b !important; /* குறிப்பிட்ட Teal Cyan நிறம் */
  margin-top: 2px;
  letter-spacing: 0.5px;
}





* {
  box-sizing: border-box;
}


.contact-title-container {
  text-align: center;
  margin-bottom: 15px;
}

/* மேலேயுள்ள ஆங்கிலத் தலைப்பு (Event Photos) */
.contact-title {
  
  font-size: 20px;
  font-weight: 300 !important; /* 'Event' வார்த்தை மெலிதாக (Light) இருக்க */
  color: #4a4a4a;
  margin: 0;
  line-height: 1.2;
}

/* 'Photos' வார்த்தை மட்டும் தடிமனாக மாற */
.contact-title span {
  font-weight: 800 !important; /* 'Photos' வார்த்தை Extra Bold ஆக மாற */
  color: #333333;
}

/* கீழே உள்ள தமிழ் தலைப்பு (நிகழ்வுகளின் நிழல்கள்) */
.contact-subtitle-tamil {
 
  color: #0080a0;
  font-size: 1.8rem;
  font-weight: 500 !important; /* படத்திலிருப்பது போல இயல்பான தடிமன் */
  margin-top: 5px;
  letter-spacing: 0.5px;
}


/* Sidebar Navigation Buttons Style */
.nav-btn, 
.sidebar a.nav-btn {

  
  /* Button Box Styling */
  background-color: #0080a0;   /* Matching Teal Blue Color */
  border: none;
  border-radius: 2px;          /* Minimal Curved Edge */
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: block;
  width: 100%;
  box-sizing: border-box;
  
  /* Text Spacing & Smooth Transitions */
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

/* Hover Effect (Mouse கொண்டு செல்லும் போது) */
.nav-btn:hover {
  background-color: #006680;   /* Slightly Darker Teal */
  font-weight: 300;            /* Slight weight increase on hover */
}






body {
  margin: 0;
  padding: 0;
   
  color: var(--ink);

  /* Background Image Setup - Full Page Scroll */
  background-image: url("images/Background-01.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: scroll;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}





.shloka {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #6b4a37;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 1.5rem 1.5rem 1.25rem;
}

/* ---------- Logo banner ---------- */

.logo-banner {
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 1115 / 395;
  background-image: url("images/Header Unit-01.png");
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  margin: 0 auto 1.5rem auto;
}

/* ---------- Layout: sidebar + (banner & main) column ---------- */

.page-body {
  display: flex;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.right-col {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 2.2rem;
}

/* Matching the Button style in the reference image */
.nav-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.6rem 1rem;
  border-radius: 0px; /* Square buttons as in original design */
 
  color: #ffffff;
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: opacity 0.2s ease;
}

.nav-btn:hover {
  opacity: 0.9;
}

.nav-btn.teal {
  background-color: var(--teal);
}

.nav-btn.gold {
  background-color: var(--gold);
}

/* ---------- Sidebar Widgets ---------- */

.side-widget {
  display: block;
  width: 100%;
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  margin-top: 0.5rem;
}

.side-widget .thumb {
  height: 110px;
  width: 100%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.side-widget .thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.side-widget .label {
  text-align: center;
  padding: 0.5rem 0.25rem;
  font-size: 0.95rem;
   font-family: 'HelveticaNeueLTStd-Th', sans-serif; /* தேவையான அளவுக்கு Font Size */
      font-size: 19px !important; 
  color: #ffffff;
}

.side-widget.teal .label {
  background-color: var(--teal);
}

.side-widget.gold .label {
  background-color: var(--gold);
}

.visitor-count {
  font-size: 0.95rem;
  color: #555;
  padding-top: 0.5rem;
  padding-right: 0.5rem;
}

.content {
  flex: 1;
  min-width: 280px;
  padding-top: 1rem;
}

/* ---------- Text Wrap Layout ---------- */

.story {
  line-height: 1.6;
  font-size: 0.98rem;
}

.story p {
  margin: 0 0 1rem 0;
  text-align: justify;
}

/* Image floating logic for Text Wrap */
.home-figure {
  float: right;
  width: 320px;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.home-figure .dummy-img {
  width: 100%;
  aspect-ratio: 1 / 1.3;
  background-image: url("images/Maha Periyava-01.png");
  background-size: contain;
  background-position: top center;
  background-repeat: no-repeat;
}

.story .signoff {
  text-align: center;
  margin-top: 2rem;
  clear: both;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .page-body {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    margin-top: 0;
  }
  .home-figure {
    float: none;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 1.5rem auto;
  }
}

.site-footer {
  background: transparent;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #6b4a37;
}


/* ---------- Event photos ---------- */

.page-heading {
  text-align: center;
  margin-top: -60px; /* உங்களுக்குத் தேவையான அளவு (எ.கா: -10px, -20px) மாற்றிக் கொள்ளலாம் */
  margin-bottom: -1rem;
}

.page-heading h2 {
  font-size: 1.8rem;
  font-weight: 400;
  color: #4a3e3d;
  margin: 0 0 0.3rem 0;
}

.page-heading .tamil {
  color: var(--teal);
  font-weight: 700;
  font-size: 1.5rem;
}

/* Gallery Layout */
.gallery-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.gallery-arrow {
  background: none;
  border: none;
  color: #cbb493; /* Subtle light gold arrow color from reference image */
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s ease, transform 0.2s ease;
  user-select: none;
}

.gallery-arrow:hover {
  color: #9e825e;
  transform: scale(1.1);
}

.gallery-main .frame {
  flex: 1;
  max-width: 650px;
  background: #000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  overflow: hidden;
}

.gallery-main .frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.gallery-caption {
  text-align: center;
  font-size: 0.95rem;
  color: #4a3e3d;
  margin: 1.5rem auto;
  max-width: 650px;
  line-height: 1.6;
}




.story-image-col {
    max-width: 80px; /* Frame அளவைக் கட்டுப்படுத்த */
    margin: 0 auto;
}

.glass-img {
    width: 100%;
    height: auto;
}


/* Thumbnails Strip */
.thumb-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  max-width: 750px;
  margin: 2rem auto 0 auto;
}

.thumb-arrow {
  background: none;
  border: none;
  color: #d1be9c;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  user-select: none;
}

.thumb-arrow:hover {
  color: #9e825e;
}

.thumb-strip .thumb-grid {
  display: flex;
  gap: 1.5rem;
}

.thumb-item {
  text-align: center;
  cursor: pointer;
}

.thumb-item .swatch {
  width: 110px;
  height: 110px;
  background-color: #55585a; /* Dark grey color as seen in the reference */
  transition: opacity 0.2s ease;
}

.thumb-item:hover .swatch {
  opacity: 0.85;
}

.thumb-item .date {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: #4a3e3d;
}

.profile-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.profile-details {
  flex: 1;
}

.profile-photo {
  width: 380px; /* Adjust width to fit design layout */
  display: flex;
  justify-content: center;
}

.periyava-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply; /* Helps blend light backgrounds smoothly */
}




/* பொத்தான்களின் பொதுவான ஸ்டைல் */
/* Header overflow ஆகாமல் பார்த்துக்கொள்ள */
.site-header {
  position: relative;
  width: 100%;
  overflow: visible; /* பொத்தான்கள் வெட்டப்படாமல் முழுமையாக தெரிய */
}




.visitor-count {
  font-size: 0.95rem;      /*[cite: 1] */
  color: #555;             /*[cite: 1] */
  padding-top: 0.5rem;     /*[cite: 1] */
  text-align: center;      /* உரையை நடுவில் வைக்கிறது */
  width: 100%;             /* Sidebar அகலத்திற்கு ஏற்ப நடுவில் வர */
}






/* ==========================================================================
   E-Paper Grid & Modal Popup Styles
   ========================================================================== */

/* Headings */
.page-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.page-heading h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #4a3e3d;
  margin: 0 0 0.2rem 0;
}

.page-heading .tamil {
  color: #00829b;
  font-size: 1.4rem;
  font-weight: 700;
}

/* 4-column Grid */
.epaper-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.2rem 1.8rem;
  max-width: 800px;
  margin: 0 auto 3rem auto;
  justify-items: center;
}

.epaper-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 140px;
  cursor: pointer;
}

.epaper-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #555;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.epaper-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.epaper-card:hover .epaper-thumb {
  opacity: 0.85;
  transform: translateY(-3px);
}

.epaper-date {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #4a3e3d;
  font-weight: 500;
  text-align: center;
}

/* ================= Lightbox Modal ================= */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85); /* Dark background */
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90%;
  max-height: 90vh;
}

.modal-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  background: #fff;
}

.modal-caption {
  color: #ffffff;
  margin-top: 12px;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #bea567; /* Gold hover color */
}

/* Responsive Grid adjustment */
@media (max-width: 768px) {
  .epaper-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }
}








/* Base Container */
.content {
  padding: 1.5rem;
  box-sizing: border-box;
  width: 100%;
}

/* 1. GLASS CARD EFFECT (Main Outer Container) */
.glass-card {
  /* Frosted Glass Background */
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(12px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(160%) !important;
  
  /* Glass Borders & Radius */
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 16px 32px 0 rgba(0, 0, 0, 0.08), 
              inset 0 0 0 1px rgba(255, 255, 255, 0.3) !important;
  padding: 2.5rem;
  box-sizing: border-box;
  width: 100%;
}

/* Grid Layout */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 2rem;
  align-items: start;
}

/* 2. GLASS IMAGE FRAME EFFECT */
.story-image-col {
  width: 240px !important;
  max-width: 100% !important;
  position: relative !important;
}

.glass-image-frame {
  display: block !important;
  width: 100% !important;
  padding: 8px !important;
  border-radius: 20px !important;
  
  /* Glass gradient & blur */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(212, 175, 55, 0.25)) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  
  /* Glowing Gold-White Glass Border */
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12),
              inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
  box-sizing: border-box !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-image-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(212, 175, 55, 0.25),
              inset 0 1px 2px rgba(255, 255, 255, 1) !important;
}

/* Image Inside Glass Frame */
.glass-img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  border-radius: 14px !important;
  object-fit: contain !important;
  box-sizing: border-box !important;
  position: static !important;
  transform: none !important;
}

/* 3. TYPOGRAPHY & GLASS MANTRA */
.story-body p {
  
  font-size: 0.98rem;
  line-height: 1.85;
  color: #111111;
  margin-bottom: 1.2rem;
  text-align: justify;
}

.story-body .lead-text {
  font-size: 1.05rem;
  font-weight: 500;
}

.story-body .lead-text span {
  font-size: 1.8rem;
  font-weight: 700;
  color: #8b0000;
  line-height: 1;
  display: inline-block;
  margin-right: 2px;
}

.story-body q {
  font-style: italic;
  color: #444444;
}

/* Footer & Glass Mantra Bar */
.story-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(212, 175, 55, 0.4);
}

.glass-mantra {
  
  font-size: 1rem;
  font-weight: 700;
  color: #b30000;
  margin: 0 0 1rem 0;
  padding: 0.7rem 1rem;
  
  /* Glass pill effect */
  background: rgba(212, 175, 55, 0.15) !important;
  backdrop-filter: blur(6px) !important;
  border-left: 4px solid #d4af37 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 0 12px 12px 0;
}

.signoff-sub {
  display: block;
  font-size: 0.85rem;
  color: #555;
  font-style: italic;
}

.signoff-name {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #008080;
}

/* Responsive Fix for Mobile */
@media (max-width: 768px) {
  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-image-col {
    grid-row: 1;
    margin: 0 auto 1.5rem auto !important;
  }

  .glass-card {
    padding: 1.5rem;
  }
}







/* ==========================================================================
   PREMIUM VIDEO GRID STYLES
   ========================================================================== */

/* 1. Grid Container Layout */
.epaper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.8rem;
  max-width: 950px;
  margin: 1rem auto 3rem auto;
  padding: 0.5rem;
}

/* 2. Glassmorphism Card Style */
.epaper-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06), 
              inset 0 1px 1px rgba(255, 255, 255, 0.8);
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

/* Hover Interaction: Premium Elevation & Subtle Gold Border Glow */
.epaper-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(190, 165, 103, 0.6); /* Soft Gold Accent */
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12),
              0 0 15px rgba(190, 165, 103, 0.2);
}

/* 3. Thumbnail Container (16:9 Aspect Ratio) */
.epaper-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #1a1a1a;
  overflow: hidden;
}

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

.epaper-card:hover .epaper-thumb img {
  transform: scale(1.06); /* Zoom Effect */
}

/* 4. Play Button Overlay Effect */
.epaper-thumb::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.3s ease;
  z-index: 1;
}

.epaper-thumb::after {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 42px;
  height: 42px;
  background: rgba(107, 17, 32, 0.85); /* Premium Maroon Overlay */
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  padding-left: 3px;
  opacity: 0;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.epaper-card:hover .epaper-thumb::before {
  background: rgba(0, 0, 0, 0.1);
}

.epaper-card:hover .epaper-thumb::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* 5. Card Typography Section */
.epaper-date {
  padding: 0.85rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #2c2523;
  line-height: 1.4;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Max 2 lines with ellipsis */
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.epaper-card:hover .epaper-date {
  color: #6b1120; /* Deep Maroon text on hover */
}

/* 6. Responsive Adjustments */
@media (max-width: 768px) {
  .epaper-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.2rem;
  }
  
  .epaper-date {
    font-size: 0.85rem;
    padding: 0.61rem;
  }
}



/* ==========================================================================
   2-ROW LIMIT & VIEW MORE BUTTON STYLES
   ========================================================================== */

/* Grid-ன் உயரத்தை 2 வரிசைகளுக்கு மட்டும் கட்டுப்படுத்துதல் */
.epaper-grid {
  max-height: 480px; /* 2 வரிசைகளின் தோராயமான உயரம் */
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Expanded நிலையில் முழு உயரத்தையும் காட்டுதல் */
.epaper-grid.expanded {
  max-height: 2500px; /* அனைத்து வீடியோக்களும் தெரிய போதுமான அளவு */
}

/* Button Container */
.expand-container {
  text-align: center;
  margin: 1.5rem 0 3rem 0;
}

/* Premium Button Styling */
.premium-toggle-btn {
  background: linear-gradient(135deg, #ffffff 0%, #f4ece1 100%);
  color: #6b1120;
  border: 1.5px solid #bea567;
  padding: 0.7rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.premium-toggle-btn:hover {
  background: #6b1120;
  color: #ffffff;
  border-color: #6b1120;
  box-shadow: 0 6px 18px rgba(107, 17, 32, 0.25);
  transform: translateY(-2px);
}

.btn-arrow {
  font-size: 0.75rem;
  transition: transform 0.4s ease;
}

/* expanded ஆகும்போது அம்புக்குறி தலைகீழாக மாற */
.epaper-grid.expanded + .expand-container .btn-arrow {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .epaper-grid {
    max-height: 420px; /* மொபைல் திரைகளுக்கான 2-row உயரம் */
  }
}




/

/* ==========================================================================
   2. HIGHLIGHT STORY BOX (கீழ் பகுதியில் உள்ள உரைக்கான கிளாஸ் பாக்ஸ்)
   ========================================================================== */
.highlight-story-box {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(190, 165, 103, 0.4);
  border-radius: 14px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}


/* ==========================================================================
   3. SIDEBAR WIDGETS (பிரீமியம் தோற்றம்)
   ========================================================================== */
.side-widget {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.side-widget:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.side-widget .thumb {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.side-widget .label {
  font-weight: 700;
  letter-spacing: 0.5px;
}





/* ==========================================================================
   PROFILE PAGE GLASSMORPHISM STYLES
   ========================================================================== */

/* Profile Glass Main Card Container */
.profile-glass-card {
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(12px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(160%) !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 16px 32px 0 rgba(0, 0, 0, 0.08), 
              inset 0 0 0 1px rgba(255, 255, 255, 0.3) !important;
  padding: 2.2rem;
  box-sizing: border-box;
  width: 100%;
}

/* Header Image / Heading inside Content */
.profile-header-thumb {
  text-align: center;
  margin-bottom: 1.5rem;
}

.profile-header-thumb img {
  max-width: 250px;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

/* Profile Details Body Styling */
.profile-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* Individual Glass Row Item for Text */
.profile-info-item {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-left: 4px solid #bea567; /* Gold Accent Bar */
  border-radius: 10px;
  padding: 0.85rem 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-info-item:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.75);
  border-left-color: #6b1120; /* Deep Maroon on Hover */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.profile-info-item p {
  margin: 0;
  
  font-size: 0.95rem;
  line-height: 1.6;
  color: #2c2523;
  text-align: justify;
}

.profile-info-item strong {
  color: #6b1120; /* Deep Maroon Label */
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.3px;
}

.profile-info-item .sub-label {
  display: inline-block;
  color: #00829b; /* Teal Sub-heading */
  font-weight: 700;
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

/* Right Side Image Frame Refinement */
.profile-photo-wrapper {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}








/* Swaminathan overlapping photo at bottom - Enlarged Version */
/* Right Side Composite Image Wrapper - கார்டின் அளவை உயர்த்தியுள்ளோம் */
/* Right Side Wrapper */
.profile-photo-wrapper {
  width: 420px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end; /* படத்தைக் கீழே சீரமைக்க */
  overflow: visible;
}

/* Maha Periyava Graphic Image */
.periyava-img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

/* Swaminathan Photo - படத்தில் உள்ளது போன்ற கச்சிதமான பொசிஷன் */
.swaminathan-bottom-photo {
  position: absolute;
  bottom: 0px;        /* கார்டின் அடியோடு சரியாக ஒட்டி நிற்க */
  left: -35px;        /* சற்று இடதுபுறம் தள்ளி வர */
  width: 350px !important; /* அளவான பெரிய அளவு */
  z-index: 5;
}

.swaminathan-bottom-photo img {
  width: 100% !important;
  height: auto !important;
  display: block;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
}







/* ==========================================================================
   EXACT MATCH FOOTER (படத்தில் உள்ள அதே டிசைன்)
   ========================================================================== */

.site-footer {
  width: 100%;
  background-color: #fbe0c8;
  border-top: none !important; /* CSS கோட்டை நீக்கி ஒற்றைக் கோடாக மாற்றுகிறது */
  text-align: center;
  padding: 1.2rem 1rem;
  margin-top: 3rem;
  box-sizing: border-box;
}

.site-footer p {
  margin: 0;
  padding: 0;
  color: #3a2f28;
  
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  line-height: 1.5;
}



/* ==========================================================================
   P.Swaminathan's Spiritual Journey — shared stylesheet
   Used by: index.html, profile.html, schedule.html, photos.html
   ========================================================================== */

:root {
  --teal: #00829b;       /* Exact Cyan/Teal from image */
  --gold: #bea567;       /* Exact Gold/Tan from image */
  --maroon: #a6182c;
  --maroon-dark: #6b1120;
  --ink: #3a2f28;
  --ink-soft: #6b5c4f;
  --peach-1: #fbe0c8;
  --peach-2: #f6d5b7;
  --page-bg: #f2ece3;
  --row-a: #efe7d6;
  --row-b: #dbeef0;
}

* {
  box-sizing: border-box;
}












body {
  margin: 0;
  padding: 0;
   
  color: var(--ink);

  /* Background Image Setup - Full Page Scroll */
  background-image: url("images/Background-01.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: scroll;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}


.shloka {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #6b4a37;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 1.5rem 1.5rem 1.25rem;
}

/* ---------- Logo banner ---------- */

.logo-banner {
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 1115 / 395;
  background-image: url("images/Header Unit-01.png");
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  margin: 0 auto 1.5rem auto;
}

/* ---------- Layout: sidebar + (banner & main) column ---------- */

.page-body {
  display: flex;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.right-col {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 2.2rem;
}

/* Matching the Button style in the reference image */
.nav-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.6rem 1rem;
  border-radius: 0px; /* Square buttons as in original design */
  
  color: #ffffff;
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: opacity 0.2s ease;
}

.nav-btn:hover {
  opacity: 0.9;
}

.nav-btn.teal {
  background-color: var(--teal);
}

.nav-btn.gold {
  background-color: var(--gold);
}

/* ---------- Sidebar Widgets ---------- */

.side-widget {
  display: block;
  width: 100%;
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  margin-top: 0.5rem;
}

.side-widget .thumb {
  height: 110px;
  width: 100%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.side-widget .thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.side-widget .label {
  text-align: center;
  padding: 0.5rem 0.25rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.side-widget.teal .label {
  background-color: var(--teal);
}

.side-widget.gold .label {
  background-color: var(--gold);
}

.visitor-count {
  font-size: 1rem;
  color: #555;
  padding-top: 0.5rem;
  padding-right: 0.5rem;
}

.content {
  flex: 1;
  min-width: 280px;
  padding-top: 1rem;
}

/* ---------- Text Wrap Layout ---------- */

.story {
  line-height: 1.6;
  font-size: 0.98rem;
}

.story p {
  margin: 0 0 1rem 0;
  text-align: justify;
}

/* Image floating logic for Text Wrap */
.home-figure {
  float: right;
  width: 320px;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.home-figure .dummy-img {
  width: 100%;
  aspect-ratio: 1 / 1.3;
  background-image: url("images/Maha Periyava-01.png");
  background-size: contain;
  background-position: top center;
  background-repeat: no-repeat;
}

.story .signoff {
  text-align: center;
  margin-top: 2rem;
  clear: both;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .page-body {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    margin-top: 0;
  }
  .home-figure {
    float: none;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 1.5rem auto;
  }
}

.site-footer {
  background: transparent;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #6b4a37;
}


/* ---------- Event photos ---------- */

.page-heading {
  text-align: center;
  margin-top: -60px; /* உங்களுக்குத் தேவையான அளவு (எ.கா: -10px, -20px) மாற்றிக் கொள்ளலாம் */
  margin-bottom: -1rem;
}

.page-heading h2 {
  font-size: 1.8rem;
  font-weight: 400;
  color: #4a3e3d;
  margin: 0 0 0.3rem 0;
}

.page-heading .tamil {
  color: var(--teal);
  font-weight: 700;
  font-size: 1.5rem;
}

/* Gallery Layout */
.gallery-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.gallery-arrow {
  background: none;
  border: none;
  color: #cbb493; /* Subtle light gold arrow color from reference image */
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s ease, transform 0.2s ease;
  user-select: none;
}

.gallery-arrow:hover {
  color: #9e825e;
  transform: scale(1.1);
}

.gallery-main .frame {
  flex: 1;
  max-width: 650px;
  background: #000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  overflow: hidden;
}

.gallery-main .frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.gallery-caption {
  text-align: center;
  font-size: 0.95rem;
  color: #4a3e3d;
  margin: 1.5rem auto;
  max-width: 650px;
  line-height: 1.6;
}




.story-image-col {
    max-width: 80px; /* Frame அளவைக் கட்டுப்படுத்த */
    margin: 0 auto;
}

.glass-img {
    width: 100%;
    height: auto;
}


/* Thumbnails Strip */
.thumb-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  max-width: 750px;
  margin: 2rem auto 0 auto;
}

.thumb-arrow {
  background: none;
  border: none;
  color: #d1be9c;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  user-select: none;
}

.thumb-arrow:hover {
  color: #9e825e;
}

.thumb-strip .thumb-grid {
  display: flex;
  gap: 1.5rem;
}

.thumb-item {
  text-align: center;
  cursor: pointer;
}

.thumb-item .swatch {
  width: 110px;
  height: 110px;
  background-color: #55585a; /* Dark grey color as seen in the reference */
  transition: opacity 0.2s ease;
}

.thumb-item:hover .swatch {
  opacity: 0.85;
}

.thumb-item .date {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: #4a3e3d;
}

.profile-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.profile-details {
  flex: 1;
}

.profile-photo {
  width: 380px; /* Adjust width to fit design layout */
  display: flex;
  justify-content: center;
}

.periyava-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply; /* Helps blend light backgrounds smoothly */
}









/* ==========================================================================
   E-Paper Grid & Modal Popup Styles
   ========================================================================== */

/* Headings */
.page-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.page-heading h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #4a3e3d;
  margin: 0 0 0.2rem 0;
}

.page-heading .tamil {
  color: #00829b;
  font-size: 1.4rem;
  font-weight: 700;
}

/* 4-column Grid */
.epaper-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.2rem 1.8rem;
  max-width: 800px;
  margin: 0 auto 3rem auto;
  justify-items: center;
}

.epaper-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 140px;
  cursor: pointer;
}

.epaper-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #555;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.epaper-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.epaper-card:hover .epaper-thumb {
  opacity: 0.85;
  transform: translateY(-3px);
}

.epaper-date {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #4a3e3d;
  font-weight: 500;
  text-align: center;
}

/* ================= Lightbox Modal ================= */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85); /* Dark background */
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90%;
  max-height: 90vh;
}

.modal-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  background: #fff;
}

.modal-caption {
  color: #ffffff;
  margin-top: 12px;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #bea567; /* Gold hover color */
}

/* Responsive Grid adjustment */
@media (max-width: 768px) {
  .epaper-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }
}








/* Base Container */
.content {
  padding: 1.5rem;
  box-sizing: border-box;
  width: 100%;
}

/* 1. GLASS CARD EFFECT (Main Outer Container) */
.glass-card {
  /* Frosted Glass Background */
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(12px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(160%) !important;
  
  /* Glass Borders & Radius */
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 16px 32px 0 rgba(0, 0, 0, 0.08), 
              inset 0 0 0 1px rgba(255, 255, 255, 0.3) !important;
  padding: 2.5rem;
  box-sizing: border-box;
  width: 100%;
}

/* Grid Layout */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 2rem;
  align-items: start;
}

/* 2. GLASS IMAGE FRAME EFFECT */
.story-image-col {
  width: 240px !important;
  max-width: 100% !important;
  position: relative !important;
}

.glass-image-frame {
  display: block !important;
  width: 100% !important;
  padding: 8px !important;
  border-radius: 20px !important;
  
  /* Glass gradient & blur */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(212, 175, 55, 0.25)) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  
  /* Glowing Gold-White Glass Border */
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12),
              inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
  box-sizing: border-box !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-image-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(212, 175, 55, 0.25),
              inset 0 1px 2px rgba(255, 255, 255, 1) !important;
}

/* Image Inside Glass Frame */
.glass-img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  border-radius: 14px !important;
  object-fit: contain !important;
  box-sizing: border-box !important;
  position: static !important;
  transform: none !important;
}

/* 3. TYPOGRAPHY & GLASS MANTRA */
.story-body p {
  
  font-size: 0.98rem;
  line-height: 1.85;
  color: #111111;
  margin-bottom: 1.2rem;
  text-align: justify;
}

.story-body .lead-text {
  font-size: 1.05rem;
  font-weight: 500;
}

.story-body .lead-text span {
  font-size: 1.8rem;
  font-weight: 700;
  color: #8b0000;
  line-height: 1;
  display: inline-block;
  margin-right: 2px;
}

.story-body q {
  font-style: italic;
  color: #444444;
}

/* Footer & Glass Mantra Bar */
.story-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(212, 175, 55, 0.4);
}

.glass-mantra {
  
  font-size: 1rem;
  font-weight: 700;
  color: #b30000;
  margin: 0 0 1rem 0;
  padding: 0.7rem 1rem;
  
  /* Glass pill effect */
  background: rgba(212, 175, 55, 0.15) !important;
  backdrop-filter: blur(6px) !important;
  border-left: 4px solid #d4af37 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 0 12px 12px 0;
}

.signoff-sub {
  display: block;
  font-size: 0.85rem;
  color: #555;
  font-style: italic;
}

.signoff-name {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #008080;
}

/* Responsive Fix for Mobile */
@media (max-width: 768px) {
  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-image-col {
    grid-row: 1;
    margin: 0 auto 1.5rem auto !important;
  }

  .glass-card {
    padding: 1.5rem;
  }
}







/* ==========================================================================
   PREMIUM VIDEO GRID STYLES
   ========================================================================== */

/* 1. Grid Container Layout */
.epaper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.8rem;
  max-width: 950px;
  margin: 1rem auto 3rem auto;
  padding: 0.5rem;
}

/* 2. Glassmorphism Card Style */
.epaper-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06), 
              inset 0 1px 1px rgba(255, 255, 255, 0.8);
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

/* Hover Interaction: Premium Elevation & Subtle Gold Border Glow */
.epaper-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(190, 165, 103, 0.6); /* Soft Gold Accent */
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12),
              0 0 15px rgba(190, 165, 103, 0.2);
}

/* 3. Thumbnail Container (16:9 Aspect Ratio) */
.epaper-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #1a1a1a;
  overflow: hidden;
}

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

.epaper-card:hover .epaper-thumb img {
  transform: scale(1.06); /* Zoom Effect */
}

/* 4. Play Button Overlay Effect */
.epaper-thumb::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.3s ease;
  z-index: 1;
}

.epaper-thumb::after {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 42px;
  height: 42px;
  background: rgba(107, 17, 32, 0.85); /* Premium Maroon Overlay */
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  padding-left: 3px;
  opacity: 0;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.epaper-card:hover .epaper-thumb::before {
  background: rgba(0, 0, 0, 0.1);
}

.epaper-card:hover .epaper-thumb::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* 5. Card Typography Section */
.epaper-date {
  padding: 0.85rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #2c2523;
  line-height: 1.4;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Max 2 lines with ellipsis */
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.epaper-card:hover .epaper-date {
  color: #6b1120; /* Deep Maroon text on hover */
}

/* 6. Responsive Adjustments */
@media (max-width: 768px) {
  .epaper-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.2rem;
  }
  
  .epaper-date {
    font-size: 0.85rem;
    padding: 0.61rem;
  }
}



/* ==========================================================================
   2-ROW LIMIT & VIEW MORE BUTTON STYLES
   ========================================================================== */

/* Grid-ன் உயரத்தை 2 வரிசைகளுக்கு மட்டும் கட்டுப்படுத்துதல் */
.epaper-grid {
  max-height: 480px; /* 2 வரிசைகளின் தோராயமான உயரம் */
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Expanded நிலையில் முழு உயரத்தையும் காட்டுதல் */
.epaper-grid.expanded {
  max-height: 2500px; /* அனைத்து வீடியோக்களும் தெரிய போதுமான அளவு */
}

/* Button Container */
.expand-container {
  text-align: center;
  margin: 1.5rem 0 3rem 0;
}

/* Premium Button Styling */
.premium-toggle-btn {
  background: linear-gradient(135deg, #ffffff 0%, #f4ece1 100%);
  color: #6b1120;
  border: 1.5px solid #bea567;
  padding: 0.7rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.premium-toggle-btn:hover {
  background: #6b1120;
  color: #ffffff;
  border-color: #6b1120;
  box-shadow: 0 6px 18px rgba(107, 17, 32, 0.25);
  transform: translateY(-2px);
}

.btn-arrow {
  font-size: 0.75rem;
  transition: transform 0.4s ease;
}

/* expanded ஆகும்போது அம்புக்குறி தலைகீழாக மாற */
.epaper-grid.expanded + .expand-container .btn-arrow {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .epaper-grid {
    max-height: 420px; /* மொபைல் திரைகளுக்கான 2-row உயரம் */
  }
}




/* ==========================================================================
   1. UNIFIED PREMIUM BUTTONS SYSTEM (ஒருங்கிணைக்கப்பட்ட பொத்தான் ஸ்டைல்கள்)
   ========================================================================== */

/* அனைத்து பொத்தான்களுக்குமான பொதுவான அடிப்படை ஸ்டைல் */
.nav-btn, 
.lang-toggle button, 
.lang-toggle a.buttonr, 
.premium-toggle-btn {
   font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-radius: 8px; /* மென்மையான நவீன வளைவு */
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08), 
              inset 0 1px 0 rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}

/* Hover Effect - அனைத்து பொத்தான்களுக்கும் ஒரே மாதிரியான மிதக்கும் உணர்வு */
.nav-btn:hover, 
.lang-toggle button:hover, 
.lang-toggle a.buttonr:hover, 
.premium-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15), 
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* --- Sidebar Navigation Buttons --- */
.sidebar .nav-btn {

}





/* Teal Buttons Gradient */
.nav-btn.teal {
  background: linear-gradient(135deg, #00829b 0%, #005b6d 100%);
  color: #ffffff !important;
}
.nav-btn.teal:hover {
  background: linear-gradient(135deg, #0099b7 0%, #006e84 100%);
}

/* Gold Buttons Gradient */
.nav-btn.gold {
  background: linear-gradient(135deg, #c5a059 0%, #9e7d3b 100%);
  color: #ffffff !important;
}
.nav-btn.gold:hover {
  background: linear-gradient(135deg, #d4af66 0%, #ad8a45 100%);
}

/* Active Nav Link (தற்போது இருக்கும் பக்கம்) */
.nav-btn.current {
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 12px rgba(0, 130, 155, 0.5);
}

/* --- Language Toggle Buttons (Top Right) --- */
.lang-toggle {
  display: flex;
  flex-direction: row; /* பக்கவாட்டில் அழகாக சீரமைக்க */
  gap: 8px;
  position: absolute;
  top: 15px;
  right: 25px;
  z-index: 999;
}

.lang-toggle button,
.lang-toggle a.buttonr {
  width: 80px;
  height: 32px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(190, 165, 103, 0.5);
  color: var(--ink) !important;
}

/* Language Button Active State (ENGLISH - Blue Color) */
.lang-toggle button.active,
.lang-toggle a.buttonr.active {
  background: linear-gradient(135deg, #0f4c81 0%, #082d50 100%) !important; /* Maroon-க்கு பதிலாக Deep Blue */
  color: #ffffff !important;
  border-color: #bea567 !important;
  box-shadow: 0 4px 12px rgba(15, 76, 129, 0.35) !important; /* Blue Shadow */
}

/* ==========================================================================
   2. HIGHLIGHT STORY BOX (கீழ் பகுதியில் உள்ள உரைக்கான கிளாஸ் பாக்ஸ்)
   ========================================================================== */
.highlight-story-box {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(190, 165, 103, 0.4);
  border-radius: 14px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}


/* ==========================================================================
   3. SIDEBAR WIDGETS (பிரீமியம் தோற்றம்)
   ========================================================================== */
.side-widget {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.side-widget:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.side-widget .thumb {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.side-widget .label {
  font-weight: 600;
  letter-spacing: 0.3px;
}





/* ==========================================================================
   PROFILE PAGE GLASSMORPHISM STYLES
   ========================================================================== */

/* Profile Glass Main Card Container */
.profile-glass-card {
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(12px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(160%) !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 16px 32px 0 rgba(0, 0, 0, 0.08), 
              inset 0 0 0 1px rgba(255, 255, 255, 0.3) !important;
  padding: 2.2rem;
  box-sizing: border-box;
  width: 100%;
}

/* Header Image / Heading inside Content */
.profile-header-thumb {
  text-align: center;
  margin-bottom: 1.5rem;
}

.profile-header-thumb img {
  max-width: 250px;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

/* Profile Details Body Styling */
.profile-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* Individual Glass Row Item for Text */
.profile-info-item {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-left: 4px solid #bea567; /* Gold Accent Bar */
  border-radius: 10px;
  padding: 0.85rem 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-info-item:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.75);
  border-left-color: #6b1120; /* Deep Maroon on Hover */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.profile-info-item p {
  margin: 0;
  
  font-size: 0.95rem;
  line-height: 1.6;
  color: #2c2523;
  text-align: justify;
}

.profile-info-item strong {
  color: #6b1120; /* Deep Maroon Label */
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.3px;
}

.profile-info-item .sub-label {
  display: inline-block;
  color: #00829b; /* Teal Sub-heading */
  font-weight: 700;
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

/* Right Side Image Frame Refinement */
.profile-photo-wrapper {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}








/* Swaminathan overlapping photo at bottom - Enlarged Version */
/* Right Side Composite Image Wrapper - கார்டின் அளவை உயர்த்தியுள்ளோம் */
/* Right Side Wrapper */
.profile-photo-wrapper {
  width: 420px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end; /* படத்தைக் கீழே சீரமைக்க */
  overflow: visible;
}

/* Maha Periyava Graphic Image */
.periyava-img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

/* Swaminathan Photo - படத்தில் உள்ளது போன்ற கச்சிதமான பொசிஷன் */
.swaminathan-bottom-photo {
  position: absolute;
  bottom: 0px;        /* கார்டின் அடியோடு சரியாக ஒட்டி நிற்க */
  left: -35px;        /* சற்று இடதுபுறம் தள்ளி வர */
  width: 350px !important; /* அளவான பெரிய அளவு */
  z-index: 5;
}

.swaminathan-bottom-photo img {
  width: 100% !important;
  height: auto !important;
  display: block;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
}







/* ==========================================================================
   EXACT MATCH FOOTER (படத்தில் உள்ள அதே டிசைன்)
   ========================================================================== */

.site-footer {
  width: 100%;
  background-color: #fbe0c8;
  border-top: none !important; /* CSS கோட்டை நீக்கி ஒற்றைக் கோடாக மாற்றுகிறது */
  text-align: center;
  padding: 1.2rem 1rem;
  margin-top: 3rem;
  box-sizing: border-box;
}

.site-footer p {
  margin: 0;
  padding: 0;
  color: #3a2f28;
  
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  line-height: 1.5;
}





.nav-btn {
 
 
}




/* ==========================================================================
   P.Swaminathan's Spiritual Journey — shared stylesheet
   Used by: index.html, profile.html, schedule.html, photos.html
   ========================================================================== */

:root {
  --teal: #00829b;       /* Exact Cyan/Teal from image */
  --gold: #bea567;       /* Exact Gold/Tan from image */
  --maroon: #a6182c;
  --maroon-dark: #6b1120;
  --ink: #3a2f28;
  --ink-soft: #6b5c4f;
  --peach-1: #fbe0c8;
  --peach-2: #f6d5b7;
  --page-bg: #f2ece3;
  --row-a: #efe7d6;
  --row-b: #dbeef0;
}

* {
  box-sizing: border-box;
}











body {
  margin: 0;
  padding: 0;
  
  color: var(--ink);

  /* Background Image Setup - Full Page Scroll */
  background-image: url("images/Background-01.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: scroll;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---------- Header ---------- */

.site-header {
  background: transparent;
  position: relative;
  overflow: hidden;
}



/* ---------- Logo banner ---------- */

.logo-banner {
  width: 100%;
   max-width: 1200px;
  aspect-ratio: 1115 / 395;
  background-image: url("images/Header Unit-01.png");
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  margin: 0 auto 1.5rem auto;
}

/* ---------- Layout: sidebar + (banner & main) column ---------- */

.page-body {
  display: flex;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.right-col {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 2.2rem;
}

/* Matching the Button style in the reference image */
.nav-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.6rem 1rem;
  border-radius: 0px; /* Square buttons as in original design */
  font-size: 1.05rem;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: opacity 0.2s ease;
}

.nav-btn:hover {
  opacity: 0.9;
}

.nav-btn.teal {
  background-color: var(--teal);
}

.nav-btn.gold {
  background-color: var(--gold);
}

/* ---------- Sidebar Widgets ---------- */


.side-widget {
  display: block;
  width: 100%;
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  margin-top: 0.5rem;
}

.side-widget .thumb {
  height: 150px !important; /* உயரத்தை 150px ஆக மாற்றவும் */
  width: 100% !important;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  overflow: hidden !important;
}

.side-widget .thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important; /* படம் கட் ஆகாமல் முழுமையாகத் தெரிய */
  transform: scale(1.6) !important; /* படம் சிறிதாகத் தெரியாமல் 30% Zoom செய்யும் */
  display: block !important;
}


.side-widget .label {
  text-align: center;
  padding: 0.5rem 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.side-widget.teal .label {
  background-color: var(--teal);
}

.side-widget.gold .label {
  background-color: var(--gold);
}

.visitor-count {
  font-size: 0.95rem;
  color: #555;
  padding-top: 0.5rem;
  padding-right: 0.5rem;
}

.content {
  flex: 1;
  min-width: 280px;
  padding-top: 1rem;
}

/* ---------- Text Wrap Layout ---------- */

.story {
  line-height: 1.6;
  font-size: 0.98rem;
}

.story p {
  margin: 0 0 1rem 0;
  text-align: justify;
}

/* Image floating logic for Text Wrap */
.home-figure {
  float: right;
  width: 320px;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.home-figure .dummy-img {
  width: 100%;
  aspect-ratio: 1 / 1.3;
  background-image: url("images/Maha Periyava-01.png");
  background-size: contain;
  background-position: top center;
  background-repeat: no-repeat;
}

.story .signoff {
  text-align: center;
  margin-top: 2rem;
  clear: both;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .page-body {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    margin-top: 0;
  }
  .home-figure {
    float: none;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 1.5rem auto;
  }
}

.site-footer {
  background: transparent;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #6b4a37;
}


/* ---------- Event photos ---------- */

.page-heading {
  text-align: center;
  margin-top: -60px; /* உங்களுக்குத் தேவையான அளவு (எ.கா: -10px, -20px) மாற்றிக் கொள்ளலாம் */
  margin-bottom: -1rem;
}

.page-heading h2 {
  font-size: 1.8rem;
  font-weight: 400;
  color: #4a3e3d;
  margin: 0 0 0.3rem 0;
}

.page-heading .tamil {
  color: var(--teal);
  font-weight: 700;
  font-size: 1.5rem;
}

/* Gallery Layout */
.gallery-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.gallery-arrow {
  background: none;
  border: none;
  color: #cbb493; /* Subtle light gold arrow color from reference image */
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s ease, transform 0.2s ease;
  user-select: none;
}

.gallery-arrow:hover {
  color: #9e825e;
  transform: scale(1.1);
}

.gallery-main .frame {
  flex: 1;
  max-width: 650px;
  background: #000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  overflow: hidden;
}

.gallery-main .frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.gallery-caption {
  text-align: center;
  font-size: 0.95rem;
  color: #4a3e3d;
  margin: 1.5rem auto;
  max-width: 650px;
  line-height: 1.6;
}




.story-image-col {
    max-width: 80px; /* Frame அளவைக் கட்டுப்படுத்த */
    margin: 0 auto;
}

.glass-img {
    width: 100%;
    height: auto;
}


/* Thumbnails Strip */
.thumb-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  max-width: 750px;
  margin: 2rem auto 0 auto;
}

.thumb-arrow {
  background: none;
  border: none;
  color: #d1be9c;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  user-select: none;
}

.thumb-arrow:hover {
  color: #9e825e;
}

.thumb-strip .thumb-grid {
  display: flex;
  gap: 1.5rem;
}

.thumb-item {
  text-align: center;
  cursor: pointer;
}

.thumb-item .swatch {
  width: 110px;
  height: 110px;
  background-color: #55585a; /* Dark grey color as seen in the reference */
  transition: opacity 0.2s ease;
}

.thumb-item:hover .swatch {
  opacity: 0.85;
}

.thumb-item .date {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: #4a3e3d;
}

.profile-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.profile-details {
  flex: 1;
}

.profile-photo {
  width: 380px; /* Adjust width to fit design layout */
  display: flex;
  justify-content: center;
}

.periyava-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply; /* Helps blend light backgrounds smoothly */
}








/* ==========================================================================
   E-Paper Grid & Modal Popup Styles
   ========================================================================== */

/* Headings */
.page-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.page-heading h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #4a3e3d;
  margin: 0 0 0.2rem 0;
}

.page-heading .tamil {
  color: #00829b;
  font-size: 1.4rem;
  font-weight: 700;
}

/* 4-column Grid */
.epaper-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.2rem 1.8rem;
  max-width: 800px;
  margin: 0 auto 3rem auto;
  justify-items: center;
}

.epaper-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 140px;
  cursor: pointer;
}

.epaper-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #555;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.epaper-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.epaper-card:hover .epaper-thumb {
  opacity: 0.85;
  transform: translateY(-3px);
}

.epaper-date {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #4a3e3d;
  font-weight: 500;
  text-align: center;
}

/* ================= Lightbox Modal ================= */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85); /* Dark background */
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90%;
  max-height: 90vh;
}

.modal-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  background: #fff;
}

.modal-caption {
  color: #ffffff;
  margin-top: 12px;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #bea567; /* Gold hover color */
}

/* Responsive Grid adjustment */
@media (max-width: 768px) {
  .epaper-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }
}








/* Base Container */
.content {
  padding: 1.5rem;
  box-sizing: border-box;
  width: 100%;
}

/* 1. GLASS CARD EFFECT (Main Outer Container) */
.glass-card {
  /* Frosted Glass Background */
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(12px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(160%) !important;
  
  /* Glass Borders & Radius */
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 16px 32px 0 rgba(0, 0, 0, 0.08), 
              inset 0 0 0 1px rgba(255, 255, 255, 0.3) !important;
  padding: 2.5rem;
  box-sizing: border-box;
  width: 100%;
}

/* Grid Layout */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 2rem;
  align-items: start;
}

/* 2. GLASS IMAGE FRAME EFFECT */
.story-image-col {
  width: 240px !important;
  max-width: 100% !important;
  position: relative !important;
}

.glass-image-frame {
  display: block !important;
  width: 100% !important;
  padding: 8px !important;
  border-radius: 20px !important;
  
  /* Glass gradient & blur */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(212, 175, 55, 0.25)) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  
  /* Glowing Gold-White Glass Border */
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12),
              inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
  box-sizing: border-box !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-image-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(212, 175, 55, 0.25),
              inset 0 1px 2px rgba(255, 255, 255, 1) !important;
}

/* Image Inside Glass Frame */
.glass-img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  border-radius: 14px !important;
  object-fit: contain !important;
  box-sizing: border-box !important;
  position: static !important;
  transform: none !important;
}

/* 3. TYPOGRAPHY & GLASS MANTRA */
.story-body p {
  
  font-size: 0.98rem;
  line-height: 1.85;
  color: #111111;
  margin-bottom: 1.2rem;
  text-align: justify;
}

.story-body .lead-text {
  font-size: 1.05rem;
  font-weight: 500;
}

.story-body .lead-text span {
  font-size: 1.8rem;
  font-weight: 700;
  color: #8b0000;
  line-height: 1;
  display: inline-block;
  margin-right: 2px;
}

.story-body q {
  font-style: italic;
  color: #444444;
}

/* Footer & Glass Mantra Bar */
.story-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(212, 175, 55, 0.4);
}

.glass-mantra {
  
  font-size: 1rem;
  font-weight: 700;
  color: #b30000;
  margin: 0 0 1rem 0;
  padding: 0.7rem 1rem;
  
  /* Glass pill effect */
  background: rgba(212, 175, 55, 0.15) !important;
  backdrop-filter: blur(6px) !important;
  border-left: 4px solid #d4af37 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 0 12px 12px 0;
}

.signoff-sub {
  display: block;
  font-size: 0.85rem;
  color: #555;
  font-style: italic;
}

.signoff-name {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #008080;
}

/* Responsive Fix for Mobile */
@media (max-width: 768px) {
  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-image-col {
    grid-row: 1;
    margin: 0 auto 1.5rem auto !important;
  }

  .glass-card {
    padding: 1.5rem;
  }
}







/* ==========================================================================
   PREMIUM VIDEO GRID STYLES
   ========================================================================== */

/* 1. Grid Container Layout */
.epaper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.8rem;
  max-width: 950px;
  margin: 1rem auto 3rem auto;
  padding: 0.5rem;
}

/* 2. Glassmorphism Card Style */
.epaper-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06), 
              inset 0 1px 1px rgba(255, 255, 255, 0.8);
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

/* Hover Interaction: Premium Elevation & Subtle Gold Border Glow */
.epaper-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(190, 165, 103, 0.6); /* Soft Gold Accent */
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12),
              0 0 15px rgba(190, 165, 103, 0.2);
}

/* 3. Thumbnail Container (16:9 Aspect Ratio) */
.epaper-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #1a1a1a;
  overflow: hidden;
}

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

.epaper-card:hover .epaper-thumb img {
  transform: scale(1.06); /* Zoom Effect */
}

/* 4. Play Button Overlay Effect */
.epaper-thumb::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.3s ease;
  z-index: 1;
}

.epaper-thumb::after {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 42px;
  height: 42px;
  background: rgba(107, 17, 32, 0.85); /* Premium Maroon Overlay */
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  padding-left: 3px;
  opacity: 0;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.epaper-card:hover .epaper-thumb::before {
  background: rgba(0, 0, 0, 0.1);
}

.epaper-card:hover .epaper-thumb::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* 5. Card Typography Section */
.epaper-date {
  padding: 0.85rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #2c2523;
  line-height: 1.4;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Max 2 lines with ellipsis */
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.epaper-card:hover .epaper-date {
  color: #6b1120; /* Deep Maroon text on hover */
}

/* 6. Responsive Adjustments */
@media (max-width: 768px) {
  .epaper-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.2rem;
  }
  
  .epaper-date {
    font-size: 0.85rem;
    padding: 0.61rem;
  }
}



/* ==========================================================================
   2-ROW LIMIT & VIEW MORE BUTTON STYLES
   ========================================================================== */

/* Grid-ன் உயரத்தை 2 வரிசைகளுக்கு மட்டும் கட்டுப்படுத்துதல் */
.epaper-grid {
  max-height: 480px; /* 2 வரிசைகளின் தோராயமான உயரம் */
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Expanded நிலையில் முழு உயரத்தையும் காட்டுதல் */
.epaper-grid.expanded {
  max-height: 2500px; /* அனைத்து வீடியோக்களும் தெரிய போதுமான அளவு */
}

/* Button Container */
.expand-container {
  text-align: center;
  margin: 1.5rem 0 3rem 0;
}

/* Premium Button Styling */
.premium-toggle-btn {
  background: linear-gradient(135deg, #ffffff 0%, #f4ece1 100%);
  color: #6b1120;
  border: 1.5px solid #bea567;
  padding: 0.7rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.premium-toggle-btn:hover {
  background: #6b1120;
  color: #ffffff;
  border-color: #6b1120;
  box-shadow: 0 6px 18px rgba(107, 17, 32, 0.25);
  transform: translateY(-2px);
}

.btn-arrow {
  font-size: 0.75rem;
  transition: transform 0.4s ease;
}

/* expanded ஆகும்போது அம்புக்குறி தலைகீழாக மாற */
.epaper-grid.expanded + .expand-container .btn-arrow {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .epaper-grid {
    max-height: 420px; /* மொபைல் திரைகளுக்கான 2-row உயரம் */
  }
}





















/* ==========================================================================
   2. HIGHLIGHT STORY BOX (கீழ் பகுதியில் உள்ள உரைக்கான கிளாஸ் பாக்ஸ்)
   ========================================================================== */
.highlight-story-box {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(190, 165, 103, 0.4);
  border-radius: 14px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}


/* ==========================================================================
   3. SIDEBAR WIDGETS (பிரீமியம் தோற்றம்)
   ========================================================================== */
.side-widget {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.side-widget:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.side-widget .thumb {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.side-widget .label {
  font-weight: 600;
  letter-spacing: 0.3px;
}





/* ==========================================================================
   PROFILE PAGE GLASSMORPHISM STYLES
   ========================================================================== */

/* Profile Glass Main Card Container */
.profile-glass-card {
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(12px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(160%) !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 16px 32px 0 rgba(0, 0, 0, 0.08), 
              inset 0 0 0 1px rgba(255, 255, 255, 0.3) !important;
  padding: 2.2rem;
  box-sizing: border-box;
  width: 100%;
}

/* Header Image / Heading inside Content */
.profile-header-thumb {
  text-align: center;
  margin-bottom: 1.5rem;
}

.profile-header-thumb img {
  max-width: 250px;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

/* Profile Details Body Styling */
.profile-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* Individual Glass Row Item for Text */
.profile-info-item {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-left: 4px solid #bea567; /* Gold Accent Bar */
  border-radius: 10px;
  padding: 0.85rem 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-info-item:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.75);
  border-left-color: #6b1120; /* Deep Maroon on Hover */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.profile-info-item p {
  margin: 0;

  font-size: 0.95rem;
  line-height: 1.6;
  color: #2c2523;
  text-align: justify;
}

.profile-info-item strong {
  color: #6b1120; /* Deep Maroon Label */
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.3px;
}

.profile-info-item .sub-label {
  display: inline-block;
  color: #00829b; /* Teal Sub-heading */
  font-weight: 700;
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

/* Right Side Image Frame Refinement */
.profile-photo-wrapper {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}








/* Swaminathan overlapping photo at bottom - Enlarged Version */
/* Right Side Composite Image Wrapper - கார்டின் அளவை உயர்த்தியுள்ளோம் */
/* Right Side Wrapper */
.profile-photo-wrapper {
  width: 420px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end; /* படத்தைக் கீழே சீரமைக்க */
  overflow: visible;
}

/* Maha Periyava Graphic Image */
.periyava-img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

/* Swaminathan Photo - படத்தில் உள்ளது போன்ற கச்சிதமான பொசிஷன் */
.swaminathan-bottom-photo {
  position: absolute;
  bottom: 0px;        /* கார்டின் அடியோடு சரியாக ஒட்டி நிற்க */
  left: -35px;        /* சற்று இடதுபுறம் தள்ளி வர */
  width: 350px !important; /* அளவான பெரிய அளவு */
  z-index: 5;
}

.swaminathan-bottom-photo img {
  width: 100% !important;
  height: auto !important;
  display: block;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
}







/* ==========================================================================
   EXACT MATCH FOOTER (படத்தில் உள்ள அதே டிசைன்)
   ========================================================================== */

.site-footer {
  width: 100%;
  background-color: #fbe0c8;
  border-top: none !important; /* CSS கோட்டை நீக்கி ஒற்றைக் கோடாக மாற்றுகிறது */
  text-align: center;
  padding: 1.2rem 1rem;
  margin-top: 3rem;
  box-sizing: border-box;
}

.site-footer p {
  margin: 0;
  padding: 0;
  color: #3a2f28;
 
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  line-height: 1.5;
}



/* ==========================================================================
   P.Swaminathan's Spiritual Journey — shared stylesheet
   Used by: index.html, profile.html, schedule.html, photos.html
   ========================================================================== */

:root {
  --teal: #00829b;       /* Exact Cyan/Teal from image */
  --gold: #bea567;       /* Exact Gold/Tan from image */
  --maroon: #a6182c;
  --maroon-dark: #6b1120;
  --ink: #3a2f28;
  --ink-soft: #6b5c4f;
  --peach-1: #fbe0c8;
  --peach-2: #f6d5b7;
  --page-bg: #f2ece3;
  --row-a: #efe7d6;
  --row-b: #dbeef0;
}

* {
  box-sizing: border-box;
}





/* Sidebar Navigation Buttons Style */
.nav-btn, 
.sidebar a.nav-btn {
  /* Font Family Matching Helvetica Neue Thin Extended */
 
  
  
  /* Button Box Styling */
  background-color: #0080a0;   /* Matching Teal Blue Color */
  border: none;
  border-radius: 2px;          /* Minimal Curved Edge */
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: block;
  width: 100%;
  box-sizing: border-box;
  
  /* Text Spacing & Smooth Transitions */
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

/* Hover Effect (Mouse கொண்டு செல்லும் போது) */
.nav-btn:hover {
  background-color: #006680;   /* Slightly Darker Teal */
  font-weight: 300;            /* Slight weight increase on hover */
}






body {
  margin: 0;
  padding: 0;
  
  color: var(--ink);

  /* Background Image Setup - Full Page Scroll */
  background-image: url("images/Background-01.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: scroll;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}



/* ---------- Logo banner ---------- */

.logo-banner {
  width: 100%;
   max-width: 1200px;
  aspect-ratio: 1115 / 395;
  background-image: url("images/Header Unit-01.png");
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  margin: 0 auto 1.5rem auto;
}

/* ---------- Layout: sidebar + (banner & main) column ---------- */

.page-body {
  display: flex;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.right-col {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 2.2rem;
}

/* Matching the Button style in the reference image */
.nav-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.6rem 1rem;
  border-radius: 0px; /* Square buttons as in original design */
  font-size: 1.05rem;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: opacity 0.2s ease;
}

.nav-btn:hover {
  opacity: 0.9;
}

.nav-btn.teal {
  background-color: var(--teal);
}

.nav-btn.gold {
  background-color: var(--gold);
}

/* ---------- Sidebar Widgets ---------- */

.side-widget {
  display: block;
  width: 100%;
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  margin-top: 0.5rem;
}

.side-widget .thumb {
  height: 150px;
  width: 100%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}



.side-widget .label {
  text-align: center;
  padding: 0.5rem 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.side-widget.teal .label {
  background-color: var(--teal);
}

.side-widget.gold .label {
  background-color: var(--gold);
}

.visitor-count {
  font-size: 0.95rem;
  color: #555;
  padding-top: 0.5rem;
  padding-right: 0.5rem;
}

.content {
  flex: 1;
  min-width: 280px;
  padding-top: 1rem;
}

/* ---------- Text Wrap Layout ---------- */

.story {
  line-height: 1.6;
  font-size: 0.98rem;
}

.story p {
  margin: 0 0 1rem 0;
  text-align: justify;
}

/* Image floating logic for Text Wrap */
.home-figure {
  float: right;
  width: 320px;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.home-figure .dummy-img {
  width: 100%;
  aspect-ratio: 1 / 1.3;
  background-image: url("images/Maha Periyava-01.png");
  background-size: contain;
  background-position: top center;
  background-repeat: no-repeat;
}

.story .signoff {
  text-align: center;
  margin-top: 2rem;
  clear: both;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .page-body {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    margin-top: 0;
  }
  .home-figure {
    float: none;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 1.5rem auto;
  }
}

.site-footer {
  background: transparent;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #6b4a37;
}


/* ---------- Event photos ---------- */

.page-heading {
  text-align: center;
  margin-top: -60px; /* உங்களுக்குத் தேவையான அளவு (எ.கா: -10px, -20px) மாற்றிக் கொள்ளலாம் */
  margin-bottom: -1rem;
}

.page-heading h2 {
  font-size: 1.8rem;
  font-weight: 400;
  color: #4a3e3d;
  margin: 0 0 0.3rem 0;
}

.page-heading .tamil {
  color: var(--teal);
  font-weight: 700;
  font-size: 1.5rem;
}

/* Gallery Layout */
.gallery-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.gallery-arrow {
  background: none;
  border: none;
  color: #cbb493; /* Subtle light gold arrow color from reference image */
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s ease, transform 0.2s ease;
  user-select: none;
}

.gallery-arrow:hover {
  color: #9e825e;
  transform: scale(1.1);
}

.gallery-main .frame {
  flex: 1;
  max-width: 650px;
  background: #000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  overflow: hidden;
}

.gallery-main .frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.gallery-caption {
  text-align: center;
  font-size: 0.95rem;
  color: #4a3e3d;
  margin: 1.5rem auto;
  max-width: 650px;
  line-height: 1.6;
}




.story-image-col {
    max-width: 80px; /* Frame அளவைக் கட்டுப்படுத்த */
    margin: 0 auto;
}

.glass-img {
    width: 100%;
    height: auto;
}


/* Thumbnails Strip */
.thumb-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  max-width: 750px;
  margin: 2rem auto 0 auto;
}

.thumb-arrow {
  background: none;
  border: none;
  color: #d1be9c;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  user-select: none;
}

.thumb-arrow:hover {
  color: #9e825e;
}

.thumb-strip .thumb-grid {
  display: flex;
  gap: 1.5rem;
}

.thumb-item {
  text-align: center;
  cursor: pointer;
}

.thumb-item .swatch {
  width: 110px;
  height: 110px;
  background-color: #55585a; /* Dark grey color as seen in the reference */
  transition: opacity 0.2s ease;
}

.thumb-item:hover .swatch {
  opacity: 0.85;
}

.thumb-item .date {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: #4a3e3d;
}

.profile-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.profile-details {
  flex: 1;
}

.profile-photo {
  width: 380px; /* Adjust width to fit design layout */
  display: flex;
  justify-content: center;
}

.periyava-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply; /* Helps blend light backgrounds smoothly */
}




/* பொத்தான்களின் பொதுவான ஸ்டைல் */
/* Header overflow ஆகாமல் பார்த்துக்கொள்ள */
.site-header {
  position: relative;
  width: 100%;
  overflow: visible; /* பொத்தான்கள் வெட்டப்படாமல் முழுமையாக தெரிய */
}




.visitor-count {
  font-size: 0.95rem;      /*[cite: 1] */
  color: #555;             /*[cite: 1] */
  padding-top: 0.5rem;     /*[cite: 1] */
  text-align: center;      /* உரையை நடுவில் வைக்கிறது */
  width: 100%;             /* Sidebar அகலத்திற்கு ஏற்ப நடுவில் வர */
}






/* ==========================================================================
   E-Paper Grid & Modal Popup Styles
   ========================================================================== */

/* Headings */
.page-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.page-heading h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #4a3e3d;
  margin: 0 0 0.2rem 0;
}

.page-heading .tamil {
  color: #00829b;
  font-size: 1.4rem;
  font-weight: 700;
}

/* 4-column Grid */
.epaper-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.2rem 1.8rem;
  max-width: 800px;
  margin: 0 auto 3rem auto;
  justify-items: center;
}

.epaper-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 140px;
  cursor: pointer;
}

.epaper-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #555;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.epaper-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.epaper-card:hover .epaper-thumb {
  opacity: 0.85;
  transform: translateY(-3px);
}

.epaper-date {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #4a3e3d;
  font-weight: 500;
  text-align: center;
}

/* ================= Lightbox Modal ================= */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85); /* Dark background */
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90%;
  max-height: 90vh;
}

.modal-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  background: #fff;
}

.modal-caption {
  color: #ffffff;
  margin-top: 12px;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #bea567; /* Gold hover color */
}

/* Responsive Grid adjustment */
@media (max-width: 768px) {
  .epaper-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }
}








/* Base Container */
.content {
  padding: 1.5rem;
  box-sizing: border-box;
  width: 100%;
}

/* 1. GLASS CARD EFFECT (Main Outer Container) */
.glass-card {
  /* Frosted Glass Background */
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(12px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(160%) !important;
  
  /* Glass Borders & Radius */
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 16px 32px 0 rgba(0, 0, 0, 0.08), 
              inset 0 0 0 1px rgba(255, 255, 255, 0.3) !important;
  padding: 2.5rem;
  box-sizing: border-box;
  width: 100%;
}

/* Grid Layout */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 2rem;
  align-items: start;
}

/* 2. GLASS IMAGE FRAME EFFECT */
.story-image-col {
  width: 240px !important;
  max-width: 100% !important;
  position: relative !important;
}

.glass-image-frame {
  display: block !important;
  width: 100% !important;
  padding: 8px !important;
  border-radius: 20px !important;
  
  /* Glass gradient & blur */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(212, 175, 55, 0.25)) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  
  /* Glowing Gold-White Glass Border */
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12),
              inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
  box-sizing: border-box !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-image-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(212, 175, 55, 0.25),
              inset 0 1px 2px rgba(255, 255, 255, 1) !important;
}

/* Image Inside Glass Frame */
.glass-img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  border-radius: 14px !important;
  object-fit: contain !important;
  box-sizing: border-box !important;
  position: static !important;
  transform: none !important;
}

/* 3. TYPOGRAPHY & GLASS MANTRA */
.story-body p {
 
  font-size: 0.98rem;
  line-height: 1.85;
  color: #111111;
  margin-bottom: 1.2rem;
  text-align: justify;
}

.story-body .lead-text {
  font-size: 1.05rem;
  font-weight: 500;
}

.story-body .lead-text span {
  font-size: 1.8rem;
  font-weight: 700;
  color: #8b0000;
  line-height: 1;
  display: inline-block;
  margin-right: 2px;
}

.story-body q {
  font-style: italic;
  color: #444444;
}

/* Footer & Glass Mantra Bar */
.story-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(212, 175, 55, 0.4);
}

.glass-mantra {
 
  font-size: 1rem;
  font-weight: 700;
  color: #b30000;
  margin: 0 0 1rem 0;
  padding: 0.7rem 1rem;
  
  /* Glass pill effect */
  background: rgba(212, 175, 55, 0.15) !important;
  backdrop-filter: blur(6px) !important;
  border-left: 4px solid #d4af37 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 0 12px 12px 0;
}

.signoff-sub {
  display: block;
  font-size: 0.85rem;
  color: #555;
  font-style: italic;
}

.signoff-name {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #008080;
}

/* Responsive Fix for Mobile */
@media (max-width: 768px) {
  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-image-col {
    grid-row: 1;
    margin: 0 auto 1.5rem auto !important;
  }

  .glass-card {
    padding: 1.5rem;
  }
}







/* ==========================================================================
   PREMIUM VIDEO GRID STYLES
   ========================================================================== */

/* 1. Grid Container Layout */
.epaper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.8rem;
  max-width: 950px;
  margin: 1rem auto 3rem auto;
  padding: 0.5rem;
}

/* 2. Glassmorphism Card Style */
.epaper-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06), 
              inset 0 1px 1px rgba(255, 255, 255, 0.8);
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

/* Hover Interaction: Premium Elevation & Subtle Gold Border Glow */
.epaper-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(190, 165, 103, 0.6); /* Soft Gold Accent */
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12),
              0 0 15px rgba(190, 165, 103, 0.2);
}

/* 3. Thumbnail Container (16:9 Aspect Ratio) */
.epaper-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #1a1a1a;
  overflow: hidden;
}

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

.epaper-card:hover .epaper-thumb img {
  transform: scale(1.06); /* Zoom Effect */
}

/* 4. Play Button Overlay Effect */
.epaper-thumb::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.3s ease;
  z-index: 1;
}

.epaper-thumb::after {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 42px;
  height: 42px;
  background: rgba(107, 17, 32, 0.85); /* Premium Maroon Overlay */
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  padding-left: 3px;
  opacity: 0;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.epaper-card:hover .epaper-thumb::before {
  background: rgba(0, 0, 0, 0.1);
}

.epaper-card:hover .epaper-thumb::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* 5. Card Typography Section */
.epaper-date {
  padding: 0.85rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #2c2523;
  line-height: 1.4;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Max 2 lines with ellipsis */
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.epaper-card:hover .epaper-date {
  color: #6b1120; /* Deep Maroon text on hover */
}

/* 6. Responsive Adjustments */
@media (max-width: 768px) {
  .epaper-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.2rem;
  }
  
  .epaper-date {
    font-size: 0.85rem;
    padding: 0.61rem;
  }
}



/* ==========================================================================
   2-ROW LIMIT & VIEW MORE BUTTON STYLES
   ========================================================================== */

/* Grid-ன் உயரத்தை 2 வரிசைகளுக்கு மட்டும் கட்டுப்படுத்துதல் */
.epaper-grid {
  max-height: 480px; /* 2 வரிசைகளின் தோராயமான உயரம் */
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Expanded நிலையில் முழு உயரத்தையும் காட்டுதல் */
.epaper-grid.expanded {
  max-height: 2500px; /* அனைத்து வீடியோக்களும் தெரிய போதுமான அளவு */
}

/* Button Container */
.expand-container {
  text-align: center;
  margin: 1.5rem 0 3rem 0;
}

/* Premium Button Styling */
.premium-toggle-btn {
  background: linear-gradient(135deg, #ffffff 0%, #f4ece1 100%);
  color: #6b1120;
  border: 1.5px solid #bea567;
  padding: 0.7rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.premium-toggle-btn:hover {
  background: #6b1120;
  color: #ffffff;
  border-color: #6b1120;
  box-shadow: 0 6px 18px rgba(107, 17, 32, 0.25);
  transform: translateY(-2px);
}

.btn-arrow {
  font-size: 0.75rem;
  transition: transform 0.4s ease;
}

/* expanded ஆகும்போது அம்புக்குறி தலைகீழாக மாற */
.epaper-grid.expanded + .expand-container .btn-arrow {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .epaper-grid {
    max-height: 420px; /* மொபைல் திரைகளுக்கான 2-row உயரம் */
  }
}















/* ==========================================================================
   1. UNIFIED PREMIUM BUTTONS SYSTEM (ஒருங்கிணைக்கப்பட்ட பொத்தான் ஸ்டைல்கள்)
   ========================================================================== */

/* அனைத்து பொத்தான்களுக்குமான பொதுவான அடிப்படை ஸ்டைல் */
.nav-btn, 

.lang-toggle a.buttonr, 
.premium-toggle-btn {
  
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-radius: 8px; /* மென்மையான நவீன வளைவு */
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08), 
              inset 0 1px 0 rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}

/* Hover Effect - அனைத்து பொத்தான்களுக்கும் ஒரே மாதிரியான மிதக்கும் உணர்வு */
.nav-btn:hover, 
.lang-toggle button:hover, 
.lang-toggle a.buttonr:hover, 
.premium-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15), 
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* --- Sidebar Navigation Buttons --- */
.sidebar .nav-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 0.4rem;
 
  font-weight: 600 !important;      /* Extra Bold */
  padding: 12px 10px !important; 

    font-family: 'HelveticaNeueLTStd-Th', sans-serif; /* தேவையான அளவுக்கு Font Size */
      font-size: 20px !important; 
  
  /* Extra Bold ஆக மாற்றுவதற்கு */ color: #2b1d0c;                
  /* Dark Brown Color */ letter-spacing: 1.5px;        
  /* மெல்லிய எழுத்துக்களை தடிமனாக்க உதவும் */ margin-bottom: 5px;
  
}








/* Teal Buttons Gradient */
.nav-btn.teal {
  background: linear-gradient(135deg, #00829b 0%, #005b6d 100%);
  color: #ffffff !important;
}
.nav-btn.teal:hover {
  background: linear-gradient(135deg, #0099b7 0%, #006e84 100%);
}

/* Gold Buttons Gradient */
.nav-btn.gold {
  background: linear-gradient(135deg, #c5a059 0%, #9e7d3b 100%);
  color: #ffffff !important;
}
.nav-btn.gold:hover {
  background: linear-gradient(135deg, #d4af66 0%, #ad8a45 100%);
}

/* Active Nav Link (தற்போது இருக்கும் பக்கம்) */
.nav-btn.current {
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 12px rgba(0, 130, 155, 0.5);
}

/* --- Language Toggle Buttons (Top Right) --- */
div.lang-toggle button.active,
div.lang-toggle a.buttonr.active,
.site-header .lang-toggle button.active,
.site-header .lang-toggle a.buttonr.active {
  background: #0f4c81 !important; /* Base Blue */
  background: linear-gradient(180deg, #00a2c7 0%, #0084a5 45%, #005b76 100%);
  color: #ffffff !important;
  border: 1px solid #bea567 !important;
  box-shadow: 0 4px 12px rgba(15, 76, 129, 0.35) !important;
}

/* ==========================================================================
   2. HIGHLIGHT STORY BOX (கீழ் பகுதியில் உள்ள உரைக்கான கிளாஸ் பாக்ஸ்)
   ========================================================================== */
.highlight-story-box {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(190, 165, 103, 0.4);
  border-radius: 14px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}


/* ==========================================================================
   3. SIDEBAR WIDGETS (பிரீமியம் தோற்றம்)
   ========================================================================== */
.side-widget {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.side-widget:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.side-widget .thumb {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.side-widget .label {
 
}





/* ==========================================================================
   PROFILE PAGE GLASSMORPHISM STYLES
   ========================================================================== */

/* Profile Glass Main Card Container */
.profile-glass-card {
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(12px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(160%) !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 16px 32px 0 rgba(0, 0, 0, 0.08), 
              inset 0 0 0 1px rgba(255, 255, 255, 0.3) !important;
  padding: 2.2rem;
  box-sizing: border-box;
  width: 100%;
}

/* Header Image / Heading inside Content */
.profile-header-thumb {
  text-align: center;
  margin-bottom: 1.5rem;
}

.profile-header-thumb img {
  max-width: 250px;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

/* Profile Details Body Styling */
.profile-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* Individual Glass Row Item for Text */
.profile-info-item {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-left: 4px solid #bea567; /* Gold Accent Bar */
  border-radius: 10px;
  padding: 0.85rem 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-info-item:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.75);
  border-left-color: #6b1120; /* Deep Maroon on Hover */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.profile-info-item p {
  margin: 0;
  
  font-size: 0.95rem;
  line-height: 1.6;
  color: #2c2523;
  text-align: justify;
}

.profile-info-item strong {
  color: #6b1120; /* Deep Maroon Label */
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.3px;
}

.profile-info-item .sub-label {
  display: inline-block;
  color: #00829b; /* Teal Sub-heading */
  font-weight: 700;
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

/* Right Side Image Frame Refinement */
.profile-photo-wrapper {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}








/* Swaminathan overlapping photo at bottom - Enlarged Version */
/* Right Side Composite Image Wrapper - கார்டின் அளவை உயர்த்தியுள்ளோம் */
/* Right Side Wrapper */
.profile-photo-wrapper {
  width: 420px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end; /* படத்தைக் கீழே சீரமைக்க */
  overflow: visible;
}

/* Maha Periyava Graphic Image */
.periyava-img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

/* Swaminathan Photo - படத்தில் உள்ளது போன்ற கச்சிதமான பொசிஷன் */
.swaminathan-bottom-photo {
  position: absolute;
  bottom: 0px;        /* கார்டின் அடியோடு சரியாக ஒட்டி நிற்க */
  left: -35px;        /* சற்று இடதுபுறம் தள்ளி வர */
  width: 350px !important; /* அளவான பெரிய அளவு */
  z-index: 5;
}

.swaminathan-bottom-photo img {
  width: 100% !important;
  height: auto !important;
  display: block;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
}







/* ==========================================================================
   EXACT MATCH FOOTER (படத்தில் உள்ள அதே டிசைன்)
   ========================================================================== */

.site-footer {
  width: 100%;
  background-color: #fbe0c8;
  border-top: none !important; /* CSS கோட்டை நீக்கி ஒற்றைக் கோடாக மாற்றுகிறது */
  text-align: center;
  padding: 1.2rem 1rem;
  margin-top: 3rem;
  box-sizing: border-box;
}

.site-footer p {
  margin: 0;
  padding: 0;
  color: #3a2f28;
  
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  line-height: 1.5;
}





.nav-btn {
 
}






/* 1. படங்களை கட்டாயமாக பெரிதாக்க */
.side-widget .thumb img {
  width: auto !important;
  max-width: 200px !important; /* படத்திற்கு ஏற்ற அகலம் */
  height: 75px !important;     /* 40px-ல் இருந்து 75px ஆக அதிகரிக்கப்பட்டுள்ளது */
  max-height: 85px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
}

/* 2. படத்தை சுற்றியுள்ள பெட்டியின் அளவை சரிசெய்ய */
.side-widget .thumb {
  background: #ffffff !important;
  padding: 10px 5px !important;
  border: 1px solid #dcdcdc !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 90px !important; /* பெட்டியின் உயரம் */
}







/* =========================================================
   2. Text Wrap Around Image (மகா பெரியவா படத்தைச் சுற்றி உரை அமைத்தல்)
   ========================================================= */

/* Flex layout-ஐ ரத்து செய்து Normal Block Layout ஆக மாற்றுதல் */
.story-card .story-grid,
.story-card .story-container {
  display: block !important;
  position: relative !important;
}

/* 2-Column layout இருந்தால் Image column-ஐ float செய்யுதல் */
.story-image-col {
  float: right !important;
  width: auto !important;
  max-width: 340px !important;
  margin-left: 25px !important;
  margin-bottom: 15px !important;
  margin-top: 10px !important;
  padding: 0 !important;
}

/* படத்தை பெரியதாகவும், வலதுபுறம் அமையுமாறும் செய்தல் */
.story-image-col img, 
.story-image-col .glass-img,
.floating-periyava-img {
  float: right !important;
  width: 320px !important; 
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.25)) !important;
  transition: transform 0.3s ease !important;
}

/* Hover Zoom Effect */
.story-image-col img:hover, 
.story-image-col .glass-img:hover {
  transform: scale(1.03) !important;
}

/* மந்திரம் மற்றும் Footer பகுதி படத்தின் கீழ் சரியாக அமைய Clearfix */
.story-footer {
  clear: both !important;
  padding-top: 15px !important;
}





/* Sidebar Button Styling */

/* Sidebar Button Base Styling */
.nav-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-size: 12.5px !important;
  white-space: nowrap !important;
  padding: 8px 4px !important;
  letter-spacing: 0.2px !important;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

/* Gold Button - Hover Color-ஐ Default Style ஆக மாற்றியது */
.nav-btn.gold {
  background: linear-gradient(to bottom, #d4af37 0%, #aa820a 100%) !important; /* பிரகாசமான Gold Hover Color */
  border: 1px solid #8a6d2b !important;
  color: #ffffff !important;
}

/* Teal Blue Button - Hover Color-ஐ Default Style ஆக மாற்றியது */
.nav-btn.teal {
  background: linear-gradient(to bottom, #00a8cc 0%, #006b85 100%) !important; /* பிரகாசமான Teal Hover Color */
  border: 1px solid #00566b !important;
  color: #ffffff !important;
}

/* Hover effect-ஐ ரத்து செய்ய (Default நிறமே மாறாமல் இருக்கும்) */
.nav-btn.gold:hover, 
.nav-btn.teal:hover {
  filter: none !important;
  opacity: 1 !important;
}

/* Sidebar Width */
.sidebar {
  width: 250px !important;
  box-sizing: border-box !important;
}




/* CUSTOM STYLING FOR VISITOR COUNT CARD */
.visitor-card {
  margin-top: 20px;
  padding: 14px 12px;
  background: linear-gradient(135deg, #ffffff 0%, #fdfaf3 100%);
  border: 1px solid #e0d5c1;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(163, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.visitor-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(163, 0, 0, 0.1);
  border-color: #c49a45;
}

.visitor-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  color: #8c6828;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Green Live Dot Animation */
.visitor-label::before {
  content: '●';
  color: #27ae60;
  font-size: 10px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}





/* ================= Subtle Spiritual Background Animation ================= */
body {
  position: relative;
  overflow-x: hidden;
  background-color: #fdfbf7;
}

/* ஒளிரும் துகள்களுக்கான கண்டெய்னர் */
.spiritual-bg-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* துகள்களின் அடிப்படை வடிவமைப்பு */
.spiritual-bg-particles .particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.6) 0%, rgba(255, 180, 0, 0) 70%);
  animation: floatParticles 18s infinite ease-in-out;
}

/* துகள்களின் வெவ்வேறு அளவுகள் மற்றும் இடங்கள் 
.spiritual-bg-particles .particle:nth-child(1) {
  width: 120px;
  height: 120px;
  top: 80%;
  left: 10%;
  animation-duration: 22s;
}

.spiritual-bg-particles .particle:nth-child(2) {
  width: 80px;
  height: 80px;
  top: 60%;
  left: 75%;
  animation-duration: 16s;
  animation-delay: -4s;
}

.spiritual-bg-particles .particle:nth-child(3) {
  width: 150px;
  height: 150px;
  top: 90%;
  left: 45%;
  animation-duration: 25s;
  animation-delay: -7s;
}

.spiritual-bg-particles .particle:nth-child(4) {
  width: 60px;
  height: 60px;
  top: 70%;
  left: 25%;
  animation-duration: 14s;
  animation-delay: -2s;
}

.spiritual-bg-particles .particle:nth-child(5) {
  width: 100px;
  height: 100px;
  top: 85%;
  left: 85%;
  animation-duration: 20s;
  animation-delay: -10s;
}

.spiritual-bg-particles .particle:nth-child(6) {
  width: 90px;
  height: 90px;
  top: 75%;
  left: 60%;
  animation-duration: 18s;
  animation-delay: -5s;
}

மேலே மெதுவாக மிதந்து மறையும் Animation 
@keyframes floatParticles {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 0;
  }
  30% {
    opacity: 0.35;
  }
  70% {
    opacity: 0.25;
  }
  100% {
    transform: translateY(-100vh) scale(1.2);
    opacity: 0;
  }
}*/

/* முக்கிய உள்ளடக்கங்கள் துகள்களுக்கு மேலே தெரியுமாறு அமைத்தல் */
.site-header, .page-body, .site-footer {
  position: relative;
  z-index: 1;
}



/* அனைத்து கார்டுகளுக்கும் இயல்பான கோல்டன் பார்டர் */
.card-transparent-premium {
  border: 2px solid #D4AF37 !important; /* பிரகாசமான தங்க நிற பார்டர் */
}

/* ஹோவர் செய்யும்போது நிறம் இன்னும் அடர்த்தியாக மாறும் */
.card-transparent-premium:hover {
  border-color: #B8860B !important; /* அடர் தங்க நிறம் (Dark Goldenrod) */
}



/* தளத்தில் உள்ள அனைத்து கார்டுகளுக்கும் இயல்பான கோல்டன் பார்டர் */
.card-item,
.card-transparent-premium {
  border: 2px solid #D4AF37 !important; /* பிரகாசமான தங்க நிற பார்டர் */
}

/* ஹோவர் செய்யும்போது பார்டர் நிறம் மாறும் */
.card-item:hover,
.card-transparent-premium:hover {
  border-color: #B8860B !important; /* அடர் தங்க நிறம் */
}


/* வெப்சைட் முழுவதும் உள்ள அனைத்து கார்டுகளுக்கும் இயல்பான கோல்டன் பார்டர் */
.card-transparent-premium,
.card-item,
.epaper-card {
  border: 2px solid #D4AF37 !important; /* பிரகாசமான தங்க நிற பார்டர் */
}

/* மாவுஸ் கொண்டு ஹோவர் செய்யும்போது நிறம் மாறும் */
.card-transparent-premium:hover,
.card-item:hover,
.epaper-card:hover {
  border-color: #B8860B !important; /* அடர் தங்க நிறம் (Dark Goldenrod) */
}




/* வெளிப்பக்க Align-க்கான Wrapper */
.shloka-wrapper {
  display: flex;
  justify-content: center; /* Screen-ன் நடுவில் வைக்கும் */
  width: 100%;
  margin: 10px 0;
}

/* நடுவில் உள்ள Box மற்றும் பக்கவாட்டு கோடுகள் (Borders) */
.shloka-box {
  width: 80%; /* தேவைக்கு ஏற்ப அகலத்தை மாற்றிக்கொள்ளலாம் */
  max-width: 850px;
  overflow: hidden;
  position: relative;
  border-left: 2px solid #333;  /* இடது பக்கக் கோடு */
  border-right: 2px solid #333; /* வலது பக்கக் கோடு */
  padding: 8px 0;
  background-color: transparent;
}














/* Header Container Fix */
.site-header {
  position: relative;
  width: 100%;
  min-height: 60px; /*Header-க்கு தேவையான நிலையான உயரம் */
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Language Toggle-ஐ வலது ஓரத்தில் வைப்பதற்கு */
.lang-toggle {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

/* Shloka Container - நடுவில் சரியாக வைப்பதற்கு */
.shloka-container {
  width: 50%;              /* Buttons மீது மோதாமல் இருக்க */
  max-width: 650px;
  height: 26px;            /* துல்லியமான உயரம் */
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

/* Scroll Text Style */
.shloka-scroll-text {
  position: absolute;
  white-space: nowrap;
  font-weight: 600 !important;     
 
  /* Extra Bold */ padding: 12px 10px !important; font-family: 'HelveticaNeueLTStd-Th', sans-serif;
   color: #333;
   font-size: 18px;
  animation: fixed-shloka-scroll 18s linear infinite;
}

/* Keyframes Animation */
@keyframes fixed-shloka-scroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Header-ன் உயரத்தை அதிகரித்து கீழே இடவெளி ஏற்படுத்த */
.site-header {
  padding-bottom: 25px; /* தேவைக்கேற்ப 20px முதல் 40px வரை மாற்றிக்கொள்ளலாம் */
}

/* அல்லது கீழே உள்ள Main Body பகுதிக்கு Margin சேர்க்க */
.page-body {
  margin-top: 20px; /* இந்த அளவை அதிகரித்தால் Layout இன்னும் கீழே இறங்கும் */
}

/* Header உயரத்தை அதிகரிக்க */
.site-header {
  min-height: 110px;      /* Header-ன் மொத்த உயரத்தை அதிகரிக்கும் */
  padding-bottom: 40px;   /* கீழே உள்ள Layout-ஐ தள்ளி வைக்கும் */
  box-sizing: border-box;
}

/* கீழே உள்ள Main Layout-ஐ இன்னும் தள்ள */
.page-body {
  margin-top: 10px;       /* தேவைப்பட்டால் இந்த அளவை 50px அல்லது 60px எனவும் மாற்றலாம் */
}


/* Footer Container */
.site-footer {
  width: 100%;
  padding: 15px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

/* Footer Shloka Box (Center Scroll Box) */
.footer-shloka-container {
  width: 60%;               /* Screen-ன் நடுப்பகுதியில் மட்டும் Scroll ஆக */
  max-width: 750px;
  height: 28px;             /* நிலையான உயரம் */
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

/* Footer Scroll Text Style */
.footer-shloka-scroll-text {
  position: absolute; white-space: nowrap; font-weight: 600 !important; /* Extra Bold */ 
  padding: 12px 10px !important; font-family: 'HelveticaNeueLTStd-Th', sans-serif; color: #333; 
  font-size: 20px; animation: fixed-shloka-scroll 18s linear infinite;
}

/* Footer Scroll Animation */
@keyframes smooth-footer-scroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}




/* =========================================================
   1. Font Face Definition
   ========================================================= */


/* Inside your CSS file where @font-face is defined */
@font-face {
  font-family: 'HelveticaNeueLTStd-Th';
  src: url('../font/HelveticaNeueLTStd-Th.otf') format('opentype'),
       url('font/HelveticaNeueLTStd-Th.otf') format('opentype'),
	   url('HelveticaNeueLTStd-Th.otf') format('opentype');
 
}


/* Replace your global text rule with this */
 span, li, td, label, a {
  font-family: 'HelveticaNeueLTStd-Th', sans-serif;
  
  letter-spacing: 1.5px; /* Slightly tighter spacing prevents overly thin look */
  opacity: 1; /* Set to 1 so text isn't washed out */
  -webkit-font-smoothing: subpixel-antialiased; /* Sharper text rendering */
  text-transform: none !important;    /* Prevents forced UPPERCASE */
  font-variant: normal !important;    /* Prevents small-caps style */
  
  
}

/* Restrict thin styling strictly to specific sections if needed */
.sidebar {
  font-family: 'HelveticaNeueLTStd-Th', sans-serif;
  letter-spacing: 2px; 
  font-size: 60px !important; /* Ungaluku thevaiyana size-ku pixel-a maathikonga (eg: 20px) */
  
 
  padding: 12px 15px !important; /* Button-க்குள் போதிய இடைவெளி பெற */
  text-align: center;
  display: block;
  text-decoration: none;
}

.menu-item, button, h1, h2, h3 {
  text-transform: none !important;
}


p {
	
	font-family: 'HelveticaNeueLTStd-Th', sans-serif;
  font-weight: 600; /* Increased weight from 400 to make readable */
  letter-spacing: 1.5px; /* Slightly tighter spacing prevents overly thin look */
  opacity: 1; /* Set to 1 so text isn't washed out */
  
}


.contact-title {
  
 
 font-weight: 700 !important;      /* Extra Bold */ padding: 12px 10px !important;
 font-family: 'HelveticaNeueLTStd-Th', sans-serif; /* தேவையான அளவுக்கு Font Size */ font-s ize: 20px !i25ortant;
  
  
}

.contact-title, 
.contact-title span {
  font-size: 40px!important; /* Ungaluku thevaiyana size-ku pixel-a maathikonga (eg: 20px) */
	
	font-family: 'HelveticaNeueLTStd-Th', sans-serif;
            /* தேவையான அளவுக்கு Font Size */
  font-weight: 600 !important;   /* Extra Bold ஆக மாற்றுவதற்கு */
  color: #2b1d0c;                /* Dark Brown Color */
  letter-spacing: 0.5px;         /* மெல்லிய எழுத்துக்களை தடிமனாக்க உதவும் */
  margin-bottom: 5px;
  
  
}



.contact-subtitle-tamil{
	 font-weight: 800 !important;   /* Extra Bold ஆக மாற்றுவதற்கு */
	  font-size: 30px!important; /* Ungaluku thevaiyana size-ku pixel-a maathikonga (eg: 20px) */
	  margin-bottom: 50px;
}
}


/* Page Heading CSS Fix */
.page-heading {
  text-align: center;
  margin-bottom: 25px;
}

.page-heading .contact-title h2,
.page-heading h2.contact-title,
.contact-title span {
  font-size: 1.5rem;       /* Adjust size as needed */
  font-weight: 700;
  color: #2b1d0c;          /* Deep primary heading color */
  margin: 0;
  padding: 0;
  display: block;
}


/* ==========================================================================
   1. DESKTOP ORIGINAL STYLES (டெஸ்க்டாப் டிசைன் - எந்த மாற்றமும் இல்லை)
   ========================================================================== */

:root {
  --teal: #00829b;
  --gold: #bea567;
  --maroon: #a6182c;
  --maroon-dark: #6b1120;
  --ink: #3a2f28;
  --ink-soft: #6b5c4f;
  --peach-1: #fbe0c8;
  --peach-2: #f6d5b7;
  --page-bg: #f2ece3;
  --row-a: #efe7d6;
  --row-b: #dbeef0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  background-image: url("images/Background-01.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: scroll;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Original Desktop Layout Structure */
.page-body {
  display: flex;
  margin: 0 auto;
  padding: 20px;
}

.sidebar {
  width: 220px;
  flex-shrink: 0;
}

.right-col {
  flex: 1;
}

.site-header {
  width: 100%;
  padding: 10px 20px;
}

.shloka {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #6b4a37;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 1rem;
}

.logo-banner {
  width: 100%;
    max-width: 1200px;
  aspect-ratio: 1115 / 395;
  background-image: url("images/Header Unit-01.png");
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  margin: 0 auto 1.5rem auto;
}

.contact-title-container {
  text-align: center;
  margin-bottom: 15px;
}

.contact-title {
  font-size: 20px;
  font-weight: 300 !important;
  color: #4a4a4a;
  margin: 0;
  line-height: 1.2;
}

.contact-title span {
  font-weight: 800 !important;
  color: #333333;
}

.contact-subtitle-tamil {
  color: #0080a0;
  font-size: 1.8rem;
  font-weight: 500 !important;
  margin-top: 5px;
  letter-spacing: 0.5px;
}

.nav-btn, 
.sidebar a.nav-btn {
  background-color: #0080a0;
  border: none;
  border-radius: 2px;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: block;
  width: 100%;
  box-sizing: border-box;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  margin-bottom: 8px;
  color: #ffffff;
}

.nav-btn:hover {
  background-color: #006680;
}


/* ==========================================================================
   2. MOBILE ONLY STYLES (768px-க்கு கீழே உள்ள மொபைலுக்கு மட்டும்)
   ========================================================================== */

@media screen and (max-width: 768px) {
  .page-body {
    flex-direction: column;
    padding: 10px;
  }

  .sidebar {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .sidebar .nav-btn, 
  .sidebar a.nav-btn {
    margin-bottom: 0;
    padding: 8px;
    font-size: 0.85rem;
  }

  .visitor-card {
    grid-column: span 2;
  }

  .right-col {
    width: 100%;
  }

  .logo-banner {
    width: 100%;
  }

  /* மொபைலில் மட்டும் Vertical layout */
  .contact-main-glass-box,
  .profile-flex {
    flex-direction: column !important;
    padding: 15px !important;
  }

  .floating-periyava-img,
  .profile-photo-wrapper {
    float: none !important;
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto 15px auto !important;
    display: block !important;
  }

  .nav-arrow {
    width: 32px !important;
    height: 32px !important;
  }
}

@media screen and (max-width: 480px) {
  .sidebar {
    grid-template-columns: 1fr;
  }

  .visitor-card {
    grid-column: span 1;
  }

  .contact-title {
    font-size: 16px;
  }

  .contact-subtitle-tamil {
    font-size: 1.3rem;
  }
}



/* ==========================================================================
   MOBILE BUTTON OPTIMIZATION (768px-க்கு கீழே உள்ள மொபைல்களுக்கு மட்டும்)
   ========================================================================== */

@media screen and (max-width: 768px) {
  
  /* Sidebar பொத்தான்கள் - 2 columns லேஅவுட் */
  .sidebar {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; /* இரண்டு வரிசைகளாகப் பிரிக்கிறது */
    gap: 8px !important; /* பொத்தான்களுக்கு இடையே சீரான இடைவெளி */
    width: 100% !important;
    margin-bottom: 20px;
  }

  .nav-btn, 
  .sidebar a.nav-btn {
    width: 100% !important;
    margin-bottom: 0 !important; /* Grid gap பயன்படுவதால் margin தேவையில்லை */
    padding: 12px 8px !important; /* தொடுவதற்கு வசதியான உயரம் (Touch Target) */
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important; /* Mobile Touch Standards-க்கு ஏற்ற அளவு */
    border-radius: 6px !important; /* மொபைலில் பார்க்க அழகாக இருக்க லேசான வளைவு */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* சிறிய Shadow விளைவு */
  }

  /* Visitor Count போன்ற அட்டைகள் முழு அகலத்திற்கு வர */
  .visitor-card {
    grid-column: span 2 !important; 
  }
}

/* மிகச் சிறிய மொபைல் திரைகளுக்கு (Small Mobile - 480px-க்கு கீழே) */
@media screen and (max-width: 480px) {
  .sidebar {
    grid-template-columns: 1fr !important; /* ஒரே நெட்டு வரிசையாக (Single Column) மாறும் */
    gap: 10px !important;
  }

  .visitor-card {
    grid-column: span 1 !important;
  }

  .nav-btn, 
  .sidebar a.nav-btn {
    padding: 14px 10px !important;
    font-size: 0.95rem !important; /* படிக்க எளிதாக இருக்க பெரிய எழுத்துகள் */
  }
}



