@charset "utf-8";
/* CSS Document */
/* =====================================================
   BASE RESET
   ===================================================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Verdana, Arial, Noto Serif Devanagari","Mangal",serif;
  background: #ffffff;
  color: #0033cc;
}

img {
  max-width: 100%;
}



/* =====================================================
   HEADER
   ===================================================== */
.masthead {
  position: relative;
  border-bottom: 2px solid #990000;
  background: #ffffff;
}

.top-links {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 3rem;
}

.top-nav a {
  display: block;
  font-size: 0.75rem;
}

.site-brand {
  text-align: center;
}

.site-brand img {
  display: block;
  margin: 0 auto;
}

.tagline {
  font-size: 0.75rem;
  color: #0099ff;
  text-align: center;
}

/* =====================================================
   HAMBURGER BUTTONS
   ===================================================== */
.menu-toggle {
  display: none;
  position: absolute;
  top: 14px;
  font-size: 1.7rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #0033cc;
  z-index: 3200;
  transition: transform 0.25s ease, color 0.25s ease;
}

.menu-toggle.left { left: 12px; }
.menu-toggle.right { right: 12px; }

.menu-toggle.active {
  transform: rotate(90deg);
  color: #996600;
}

/* =====================================================
   HERO (DESKTOP)
   ===================================================== */
/* =====================================================
   HERO (DESKTOP)
   ===================================================== */
.hero-split {
  display: flex;
  align-items: center;
  /* Changed from fixed height to min-height so it can expand */
  min-height: 400px; 
  overflow: hidden;
}

.hero-image {
  flex: 0 0 42%;
  max-width: 520px;
  /* Removed fixed height: 400px here so it doesn't crop */
}

.hero-image img {
  width: 100%;
  height: auto; /* Changed from 400px to auto (Shows full image) */
  display: block; /* Removes small gap under image */
  object-fit: contain; /* Ensures the whole image is visible */
  object-position: center top;
}
.hero-text {
  flex: 1;
  margin-left: 2rem;
  padding: 1.75rem 2rem;
 
  text-align: center;

}

.hero-text a{
  color: #006699;
	text-decoration: none;
  text-align: center;
}

a:link{color: #0099FF;}
a:visited{color: #FFCC00;}
a:hover{
	color: #CC0000;
	border: 2px;
}

.hero-title {
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: #006699;
}

.hero-subtitle {
  font-size: 0.9rem;
  color: #555;
}

.hero-mantra {
  font-family: "Noto Serif Devanagari","Mangal",serif;
  letter-spacing: 0.18em;
  color: #9b7a2f;
}

/* Scroll cue */
.scroll-cue {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #9b7a2f;
  animation: floatDown 2s ease-in-out infinite;
}

@keyframes floatDown {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Background variants */

.hero-split.bg-1 {
	background-repeat: repeat;
  background-image: url("../images/bgFlowerSy/BG33.jpg");
}

.hero-split.bg-2 {
	background-repeat: repeat;
  background-image: url("../images/bgFlowerSy/bg3.gif");
}

.hero-split.bg-3 {
	background-repeat: repeat;
  background-image: url("../images/bgFlowerSy/bg6.gif");
}

.hero-split.bg-4 {
	background-repeat: repeat;
  background-image: url("../images/bgFlowerSy/BG27.jpg");
}





/* =====================================================
   PRIMARY NAV (DESKTOP)
   ===================================================== */
.language-bar {
  text-align: center;
  font-size: 0.75rem;
 background: linear-gradient(
    to right,
    transparent,
    rgba(0,153,255,0.35),   /*    rgba(220,180,90,0.6), */
    transparent
  );
  border-top: 1px solid rgba(200,170,90,0.35);
  border-bottom: 1px solid rgba(200,170,90,0.35);
  padding: 0.6rem 1rem;

	
}

.language-bar a { 
	margin: 0 6px; 
font-size: 0.8rem;
  font-weight: bold;
  color:#0033CC;
          /* color: #ff6600;    */    
  text-decoration: none;
}
.language-bar a:hover {
  color: #b8903c;
}


.primary-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
	background: linear-gradient(
    to right,
    transparent,
    rgba(0,153,255,0.35),   /*    rgba(220,180,90,0.6), */
    transparent
  );
   border-top: 1px solid rgba(200,170,90,0.35);
  border-bottom: 1px solid rgba(200,170,90,0.35);
  padding: 0.6rem 1rem;
  padding: 4px;
}

.primary-nav a {
  margin: 4px 6px;
  font-size: 0.8rem;
  font-weight: bold;
  color: #0033CC;
  text-decoration: none;
}

.primary-nav a:hover {
  color: #b8903c;
}

/* =====================================================
   LAYOUT
   ===================================================== */
.layout {
  display: flex;
  align-items: flex-start;
	/* Add these two lines: */
  justify-content: center; /* Keeps the whole group centered in the middle of the screen */
  gap: 15px;               /* Defines the exact space between Sidebars and Content. Adjust as needed! */
}

.sidebar {
  width: 180px;
  padding: 1rem;
  background: #f6f6f6;
}

.sidebar.left {
  border-right: 2px solid rgba(201,162,77,0.18);
}

.sidebar.right {
  border-left: 2px solid rgba(201,162,77,0.18);
}

.side-nav h3 {
  font-size: 0.8rem;
  color: #9b7a2f;
}

.side-nav a {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.85rem;
  color: #0033cc;
  text-decoration: none;
}

.content {
  flex: 1;
 /* max-width: clamp(560px, 65vw, 760px);*/
	 width: 100%;
  max-width: none;     /* CRITICAL FIX */
	
  margin: 0 auto;
  padding: 1.5rem;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.98),
    rgba(255,255,255,0.94)
  );
  border-radius: 4px;
}

/* =====================================================
   CONTENT TYPOGRAPHY & GRID
   ===================================================== */
.content h1,
.content h2,
.content h3 {
  text-align: center;
  color: #006699;
  margin: 1rem 0 1rem;
}

.content p {
  font-size: 1.2rem;
  line-height: 1.7;
}

.content blockquote {
  margin: 1rem auto;  
/*  max-width: 640px; */
	
		 width: 100%;
  max-width: none;     /* CRITICAL FIX */
	
  font-style: italic;
  color: #444;
}

.divider {
  text-align: center;
  color: #c9a24d;
  letter-spacing: 0.4em;
  margin: 1rem 0;
}

.content-grid {
  display: grid;
  row-gap: 2.0rem;
}

.row:nth-child(even) {
  background: rgba(248,248,248,0.7);
}

/* Image grids */
.image-2,
.image-3 {
	 width: 100%;
  height: auto;
  display: grid;
  gap: 1rem;
	 
}

.image-2 { grid-template-columns: repeat(2,1fr); }
.image-3 { grid-template-columns: repeat(3,1fr); }

.image-row img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
	 vertical-align: middle; /* Aligns baseline */

}
.image-2 img,
.image-3 img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
	 vertical-align: middle; /* Aligns baseline */
}



.image-2 figure,
.image-3 figure {
  width: 100%;
  max-width: 100%;
	
}


figure { margin: 0; }

figcaption {
  font-size: 1.2rem;
  text-align: center;
  color: #666;
}

.center-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}


.image-text-link {
  display: inline-flex; /* Keeps image+text in one row */
  align-items: center;  /* Vertically centers text with image */
  text-decoration: none;
  color: inherit;
max-width: 90%;  /* Prevents overflow on mobile */
	margin-right: 18px;
	font-size: 1rem;
}

.image-text-link img {
  margin-right: 12px;  /* Gap between image and text */
  vertical-align: middle; /* Aligns baseline */
}

.image-text-link1 {
  display: inline-flex; /* Keeps image+text in one row */
     flex-direction: column;
  align-items: center;  /* Vertically centers text with image */
  text-decoration: none;
  color: inherit;
max-width: 90%;  /* Prevents overflow on mobile */
	margin-right: 18px;
	font-size: 1rem;
}

.image-text-link1 img {
     display: block;
  margin-right: 12px;  /* Gap between image and text */
  vertical-align: middle; /* Aligns baseline */
}


/* =====================================================
                  Main Navigation 
   ===================================================== */
#mainNav {
  position: relative;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0,153,255,0.35),   /*    rgba(220,180,90,0.6), */
    transparent
  );
  border-top: 1px solid rgba(200,170,90,0.35);
  border-bottom: 1px solid rgba(200,170,90,0.35);
  padding: 0.6rem 1rem;
  text-align: center;
	
	 margin-bottom: 0;
}

/* soft golden divider glow */
#mainNav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 70%;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    to right,
    transparent,
    rgba(220,180,90,0.6),
    transparent
  );
}

#mainNav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.4rem;
  justify-content: center;
  flex-wrap: wrap;
}

#mainNav a {
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0033CC;
  transition: color 0.3s ease;
}

#mainNav a:hover {
  color: #b8903c;
}




/* =====================================================
   MENU EFFECTS & ANIMATIONS
   ===================================================== */
@keyframes menuShimmer {
  0% {
    box-shadow:
      0 12px 28px rgba(0,0,0,0.18),
      0 0 12px rgba(201,162,77,0.15);
  }
  100% {
    box-shadow:
      0 14px 32px rgba(0,0,0,0.22),
      0 0 26px rgba(201,162,77,0.45);
  }
}

@keyframes mantraFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.mantra-divider {
  text-align: center;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: #9b7a2f;
  margin: 1rem 0;
  padding: 0.4rem 0;
  border-top: 1px solid rgba(201,162,77,0.35);
  border-bottom: 1px solid rgba(201,162,77,0.15);
  font-family: "Noto Serif Devanagari","Mangal",serif;
}

/* =====================================================
   READING MODE
   ===================================================== */
.reading-toggle {
  display: inline-block;
  margin: 0.5rem auto;
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  border: 1px solid rgba(201,162,77,0.5);
  color: #9b7a2f;
  background: transparent;
  cursor: pointer;
}

body.reading-mode .sidebar {
  opacity: 0.25;
}

body.reading-mode .content {
  box-shadow:
    0 0 0 1px rgba(201,162,77,0.25),
    0 0 40px rgba(201,162,77,0.15);
}

/* =====================================================
   MOBILE (≤900px)
   ===================================================== */
@media (max-width: 900px) {

  /* HERO STACK */
  .hero-split {
    flex-direction: column;
    height: auto;
  }

  .hero-image,
  .hero-image img {
    width: 100%;
    height: 400px;
  }

  .hero-text {
    margin: 0;
    padding: 1.5rem 1.25rem;
    background: #ffffff;
  }
	

  /* HAMBURGERS */
  .menu-toggle { display: block; }

  /* HIDE DESKTOP NAV */
  .top-nav.left,
  .top-nav.right,
  .primary-nav,
  .language-bar {
    display: none;
  }

  .layout { display: block; }
	
/* =====================================================
   PRIMARY NAV 
   ===================================================== */
.language-bar {
  text-align: center;
  font-size: 0.75rem;
  padding: 4px 0;	
	  display: flex;
  justify-content: center;
  flex-wrap: wrap;

	  border-top: 1px solid rgba(200,170,90,0.35);
  border-bottom: 1px solid rgba(200,170,90,0.35);
}

.language-bar a { margin: 0 6px; 
	margin: 4px 6px;
  font-size: 0.8rem;
  font-weight: bold;
  color: #0033CC;
  text-decoration: none;
	}

.primary-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;

  padding: 4px;
	  border-top: 1px solid rgba(200,170,90,0.35);
  border-bottom: 1px solid rgba(200,170,90,0.35);
}

.primary-nav a {
  margin: 4px 6px;
  font-size: 0.8rem;
  font-weight: bold;
  color: #0033CC;
  text-decoration: none;
}

  /* MOBILE SIDEBAR */
  .sidebar {
    position: fixed;
    top: 120px;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    display: none;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(6px);
    box-shadow:
      0 12px 28px rgba(0,0,0,0.18),
      0 0 18px rgba(201,162,77,0.18);
    z-index: 3000;
  }

  .sidebar.open {
    display: block;
    animation: menuShimmer 0.6s ease-out;
  }

  .sidebar .mantra-divider {
    animation: mantraFade 0.8s ease-out;
  }

  .image-2,
  .image-3 {
    grid-template-columns: 1fr;
  }

  body.reading-mode .sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  #mainNav ul {
    gap: 0.8rem;
  }

  #mainNav a {
    font-size: 0.75rem;
  }
}

/* ================= Daily Darshan centering ================= */

.daily-darshan picture {
  display: block;
  width: 100%;
}

.daily-darshan img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}



.darshan-landscape img { max-width: 100%; }
.daily-portrait img    { max-width: 300px; }

/* Desktop containment (optional, but recommended) */
@media (min-width: 900px) {
  .daily-darshan img {
    max-width: 960px;   /* or 720px if you prefer */
  }
}
@media (max-width: 768px) {
  .image-row.cols-3,
  .image-row.cols-2 {
    grid-template-columns: 1fr;
  }
.image-text-link img {
    margin-right: 8px;  /* Smaller gap on small screens */
  }	
}

/* For off-set Poetry*/
.poetry {
  font-family: Georgia, serif;
  
}
.poetry .left {
  margin-left: 0;
}
.poetry .right {
  margin-left: 8ch; /* ≈ 8 spaces */
}
.poetry .right6 {
  margin-left: 6ch; /* ≈ 6 spaces */
}
/*  height only for selected images in case of Desktop   for in a row Two images [Use both classes together (per-image control)]  */
@media (min-width: 1024px) {
  

  .row.image-2 img {
    max-height: 85vh;
    object-fit: contain;
  }
}
/* Responsive  Back Button ------------------------------------------ */

.back-btn {
  background: none;
  border: none;
  font-family: Georgia, serif;
  font-size: 1rem;
  color: #8c6a1c;
  cursor: pointer;
  padding: 6px 0;
  margin-bottom: 20px;
}

.back-btn:hover {
  opacity: 0.8;
}
