:root {
  --bg: #fafafa;
  --panel: #ffffff;
  --line: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --link: #2563eb;
  --brand: #00A0C8; /* menu headers */
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ✅ Header */
.topbar {
  display: flex;
  align-items: center;
  background-color: #00A0C8; /* keep same background */
  color: white;
  padding: 12px 20px;
  gap: 20px;
  position: relative;
}

/* ✅ Square logo */
.logo-square {
  height: 50px;
  width: auto;
  border-radius: 0; /* square */
}

/* ✅ Header title */
.header-title {
  font-size: 1.6rem;
  margin: 0;
}

/* ✅ Guru images (round, in center) */
.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.round-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
}

/* ✅ Right actions */
.topbar-actions {
  margin-left: auto;
}

.topbar-actions button {
  background-color: #34495e;
  color: white;
  border: none;
  padding: 6px 12px;
  margin-left: 10px;
  border-radius: 4px;
  cursor: pointer;
}

.topbar-actions button:hover {
  background-color: #1a252f;
}

/* Layout */
.layout {
  display: grid;
  grid-template-columns: 320px 1fr 320px; /* left, content, right */
  min-height: calc(100vh - 80px);
}

.menu-panel {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--panel);
  overflow-y: auto; 
}

.menu-panel:last-child {
  border-right: none;
  border-left: 1px solid var(--line);
}

.menu-header {
  margin: 0;
  padding: 14px;
  background: var(--brand);
  text-align: center;
  font-weight: bold;
  border-bottom: 1px solid var(--line);
  color: #fff;
}

.menu {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
}

.content {
  padding: 20px;
}

.section {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  margin-bottom: 10px;
  overflow: hidden;
}

.section-header {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  background: var(--brand);
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

.section-body {
  padding: 8px 12px;
  display: none;
}

.month {
  margin: 6px 0 6px 10px;
  border-left: 2px solid var(--line);
  padding-left: 10px;
}

.month button {
  background: transparent !important;
  color: black !important; /* Month text black */
  font-weight: 600;
  padding: 6px 0;
  border: none;
  cursor: pointer;
  text-align: left;
}

.post {
  padding: 6px 0;
  cursor: pointer;
  color: var(--link);
}
.post:hover { text-decoration: underline; }

.foot {
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 8px 16px;
  text-align: center;
}

@media (max-width: 1000px) {
  .layout { grid-template-columns: 1fr; }
  .menu-panel { border: none; border-bottom: 1px solid var(--line); }
}

.post.highlight {
  background: yellow;
  font-weight: bold;
}

.submenu {
  display: none;
  list-style: none;
  padding-left: 15px;
}

.menu-item {
  cursor: pointer;
  font-weight: bold;
}

.submenu li {
  cursor: pointer;
  padding: 6px 0;
  font-weight: normal;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.image-grid img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ===============================
   Admin Post Textbox Styling
   =============================== */

.admin-content {
  width: 100%;
  display: flex;
  justify-content: center;
}

.admin-content textarea {
  width: 90%;              /* slightly less than content div */
  max-width: 90%;
  resize: vertical;        /* allow vertical resize only */
  padding: 12px;
  font-size: 16px;
  line-height: 1.5;
  box-sizing: border-box;

  /* Height = 50% of width */
  aspect-ratio: 2 / 1;     /* width : height = 2 : 1 */
}

/* ===============================
   Full Image Viewer
   =============================== */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
}

.image-modal img {
  max-width: 90%;
  max-height: 90%;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  color: white;
  cursor: pointer;
}

.image-modal .nav {
  position: absolute;
  top: 50%;
  font-size: 50px;
  color: white;
  cursor: pointer;
  user-select: none;
}

.image-modal .left { left: 20px; }
.image-modal .right { right: 20px; }

.athvani-video {
  width: 100%;
  border-radius: 10px;
}



.event-marquee {
  width: 100%;
  background: #fff3cd;
  border-bottom: 1px solid #f0c36d;
  overflow: hidden;
  box-sizing: border-box;
}

.marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.marquee-track {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: marqueeScroll 18s linear infinite;
}

.event-marquee:hover .marquee-track {
  animation-play-state: paused;
}

/* individual clickable event */
.marquee-event {
  display: inline-block;
  margin-right: 40px;
  font-weight: bold;
  color: #7a4a00;
  cursor: pointer;
  text-decoration: underline;
}

.marquee-event:hover {
  color: #c0392b;
}

/* animation */
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.sadhana-scroll {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #ddd;
  padding: 10px;
}

.sadhana-title {
  padding: 6px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.sadhana-title:hover {
  background: #f5f5f5;
}

.sadhana-scroll {
  max-height: 350px;
  overflow-y: auto;
}

.admin-editor {
  min-height: 250px;
  font-size: 16px;
}

.image-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.image-modal img {
  max-width: 90%;
  max-height: 90%;
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.nav {
  position: absolute;
  top: 50%;
  font-size: 50px;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 20px;
}

.nav.left { left: 10px; }
.nav.right { right: 10px; }

.zoom-container {
  overflow: hidden;
}

