/* ===== Telugu Page Specific ===== */

body {
  height: auto;
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

#telugu-content {
  font-family: "Noto Serif Telugu", serif;
  color: #f5f5f5;
  margin: 0 auto;
  padding: 20px;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom:20px;
}
/* Override the global .section rule only inside Telugu page */
#telugu-content .section {
  max-width: 100%;
}

/* Main heading */
.telugu-title {
  font-family: "Noto Serif Telugu", serif;
  font-size: 2.2rem;
  text-align: center;
  color: #ff9933;
  text-shadow: 0 0 10px rgba(255, 153, 51, 0.4);
  letter-spacing: 1px;
  margin-top: 40px;
}

.telugu-subtitle {
  font-family: "Noto Serif Telugu", serif;
  font-size: 1.3rem;
  color: #ffc47e;
  text-align: center;
  font-style: italic;
  margin-block-start: 0;
  margin-block-end: 0;
  margin-top: 10px;
}

/* ========== HISTORY PANEL ========== */
.history-panel {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px 28px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
}

.history-panel h3 {
  color: #ff9933;
  font-family: "Noto Serif Telugu", serif;
  font-size: 1.2rem;
  border-bottom: 1px solid rgba(255, 153, 51, 0.3);
  padding-bottom: 4px;
  display: inline-block;
  margin-block-start: 0em;
  margin-block-end: 0em;
}

.history-panel p {
  color: #f5f5f5;
  font-size: 1rem;
  line-height: 1.8;
  text-align: justify;
  margin: 0;
}

/* ========== PROVERBS PANEL ========== */
.proverbs-panel-link {
  display: block;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.proverbs-panel-link:focus-visible {
  outline: 0;
}

.proverbs-panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 20px 28px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  overflow: hidden;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.proverbs-panel-link:hover .proverbs-panel,
.proverbs-panel-link:focus-visible .proverbs-panel {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 153, 51, 0.28);
  transform: translateY(-1px);
}

/* smaller box inside panel that creates the 20px gap */
.proverbs-inner {
  width: calc(100% - 20px); /* 20px gap on each side */
  overflow: hidden;
  box-sizing: border-box;
}

.proverbs-panel h3 {
  color: #ff9933;
  font-family: "Noto Serif Telugu", serif;
  font-size: 1.2rem;
  border-bottom: 1px solid rgba(255, 153, 51, 0.3);
  padding-bottom: 4px;
  display: inline-block;
  margin-block-start: 0em;
  margin-block-end: 0em;
}

.proverbs-panel-header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.proverbs-more-link {
  color: #ff9933;
  flex: 0 0 auto;
  font-family: "Noto Serif Telugu", serif;
  font-size: 12px;
  line-height: 1;
  margin-top: 2px;
}

.proverbs-panel-link:hover .proverbs-more-link,
.proverbs-panel-link:focus-visible .proverbs-more-link {
  color: #ffc47e;
}

.proverbs-scroll {
  color: #f5f5f5;
  display: flex;
  gap: 50px;
  white-space: nowrap;
  animation: scrollProverbs 90s linear infinite;
  font-family: "Noto Serif Telugu", serif;
  font-size: 1rem;
  line-height: 1.8;
  text-align: justify;
  /*Below options help in reducing the Text blur while scrolling*/
 -webkit-font-smoothing: antialiased; 
  transform: translateZ(0);
}

/* Smooth infinite scroll motion */
@keyframes scrollProverbs {
  0%   { transform: translateX(0%); }   /* start slightly inside */
  100% { transform: translateX(-100%); } /* end before touching left edge */
}

.proverbs-scroll:hover {
  animation-play-state: paused;
}


/* Two-column layout  */
.grid-wrap.two-cols {
  display: grid;
  grid-template-columns: 1.5fr 0.5fr;
  gap: 24px;
  align-items: start;
}

.grid-wrap.two-cols {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}


/* ========== Literature Panel ========== */


.literature-panel {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px 28px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  height: 320px;               
  overflow: hidden;            
  position: relative;
}

.literature-panel h3 {
  color: #ff9933;
  font-family: "Noto Serif Telugu", serif;
  font-size: 1.2rem;
  border-bottom: 1px solid rgba(255, 153, 51, 0.3);
  padding-bottom: 4px;
  display: inline-block;
  margin-block-start: 0em; /*intentional override*/
  margin-block-end: 0em; /*intentional override*/
}

.literature-slide {
  transition: opacity 0.6s ease;
  width: 100%;
  height: calc(100% - 32px);   /* leave space for heading */
  overflow-y: auto;            
  overflow-x: hidden;          
  white-space: normal;         /* allow wrapping */
  word-wrap: break-word;       /* wrap long words if any */
  color: #f5f5f5;
  font-family: "Noto Serif Telugu", serif;
  font-size: 1.05rem;
  line-height: 1.7;
  scrollbar-width: thin;       /* subtle scrollbar for Firefox */
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

/* ===== Literature section styling ===== */
.lit-item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 6px 0;
}

.lit-title {
  color: #ffc47e;        /* highlight title */
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 4px;
}

.lit-lyrics {
  color: #f5f5f5;        /* normal poem text */
  line-height: 1.7;
  font-size: 1rem;
  white-space: pre-wrap;
  text-align: justify;
}

.lit-author {
  color: #ffc47e;        /* highlight author */
  font-style: italic;
  font-size: 0.95rem;
  margin-top: 6px;
  text-align: center;
}


/* Subtle scrollbar for WebKit browsers */
.literature-slide::-webkit-scrollbar {
  width: 6px;
}
.literature-slide::-webkit-scrollbar-thumb {
  background-color: rgba(255,255,255,0.1);
  border-radius: 6px;
}
.literature-slide::-webkit-scrollbar-track {
  background: transparent;
}

/*  Literature navigation arrows  */

.lit-arrows {
  position: absolute;
  bottom: 12px;
  right: 48px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}


.lit-arrows span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lit-arrows span:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}



/* ========== teluguwords panel ========== */

.teluguwords-panel {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px 28px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
}

.teluguwords-panel h3 {
  color: #ff9933;
  font-family: "Noto Serif Telugu", serif;
  font-size: 1.2rem;
  border-bottom: 1px solid rgba(255, 153, 51, 0.3);
  padding-bottom: 4px;
  display: inline-block;
  margin-block-start: 0em;
  margin-block-end: 0em;
}

.teluguwords-panel, .word-scroll {
  height: 320px;
  overflow: hidden;
}

.word-scroll div {
  font-size: 1rem;
  padding: 4px 0;
  animation: scrollUp 20s linear infinite;
}


@keyframes scrollUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(-100%);
  }
}

/* telugu words list */
#wordScroll {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* left-align items */
  justify-content: center;
  height: 100%;
  box-sizing: border-box;
  padding-left: 20px; /* visual inset */
}
.word-item {
  width: 100%;
  max-width: 720px;
  padding: 6px 0;
  font-size: 1rem;
  text-align: left;    /* left-align text */
  color: #f5f5f5;
}
.word-item .pure { 
color:#ffffff; font-weight:700;
 }

/* strike-through the influenced word */
.word-item .infl {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(255, 217, 166, 0.9);
  color: rgba(255, 217, 166, 0.9);
  opacity: 0.95;
  margin-left: 6px;
}

/* optional: soften the separator so strike is clear */
.word-item .sep {
  color: rgba(255,255,255,0.45);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 900px) {
  .grid-wrap.two-cols {
    grid-template-columns: 1fr;
  }
}
