/* =========================================================
   RDTTM - CLEAN GLOBAL STYLES
========================================================= */

:root {
  --dark-blue: #020b1e;
  --navy-bg: #031127;
  --navy-light: #061633;
  --page-blue: #001b35;

  --gold: #ffbd59;
  --red: #e63946;

  --white: #ffffff;
  --gray: #f4f4f9;
  --text-dark: #172033;
  --text-gray: #777777;

  --border-light: #eeeeee;

  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.14);
}

/* =========================================================
   RESET
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;

  background: var(--page-blue);
  color: var(--text-dark);
}

img {
  max-width: 100%;
}

a {
  text-decoration: none;
}

/* =========================================================
   HEADER
========================================================= */

.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  width: 100%;
  padding: 10px 0;

  background: var(--navy-bg);

  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-container {
  width: 96%;
  max-width: 1400px;

  margin: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
}

.logo-container {
  display: block;
  flex-shrink: 0;
}

.logo-img {
  display: block;
  width: auto;
  height: 70px;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 20px;
}

/* =========================================================
   NAVIGATION
========================================================= */

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  padding: 8px 10px;

  color: var(--white);

  font-size: 15px;
  font-weight: 600;

  white-space: nowrap;

  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
}

/* =========================================================
   SEARCH
========================================================= */

.search-box {
  position: relative;

  width: 190px;
  height: 38px;

  flex-shrink: 0;
}

.search-box input {
  width: 100%;
  height: 100%;

  padding: 0 45px 0 16px;

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;

  outline: none;

  background: rgba(255, 255, 255, 0.1);
  color: var(--white);

  font-size: 14px;
}

.search-box input::placeholder {
  color: #aaa;
}

.search-box input:focus {
  border-color: var(--gold);

  box-shadow: 0 0 0 3px rgba(255, 189, 89, 0.12);
}

.search-box button {
  position: absolute;

  top: 50%;
  right: 5px;

  width: 30px;
  height: 30px;

  transform: translateY(-50%);

  border: 0;
  border-radius: 50%;

  background: var(--gold);
  color: var(--navy-bg);

  cursor: pointer;
}

.search-box button:hover {
  background: var(--red);
  color: var(--white);
}

/* =========================================================
   LANGUAGE
========================================================= */

.language-select {
  height: 38px;

  padding: 0 10px;

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;

  background: rgba(255, 255, 255, 0.1);
  color: var(--white);

  outline: none;
  cursor: pointer;
}

.language-select option {
  background: var(--navy-bg);
  color: var(--white);
}

/* =========================================================
   HERO
========================================================= */

.hero-section {
  padding: 100px 20px;

  color: var(--white);

  background:
    linear-gradient(rgba(2, 11, 30, 0.25), rgba(6, 22, 51, 0.3)),
    url("../images/BG_hero.jpeg") center / cover no-repeat;

  border-bottom: 5px solid var(--gold);
}

.hero-content {
  width: 100%;
  max-width: 1200px;

  margin: auto;

  padding-left: 22px;
}

.sub-title {
  margin-bottom: 10px;

  color: var(--gold);

  font-size: 18px;
  letter-spacing: 2px;
}

.main-title {
  margin-bottom: 20px;

  font-size: 48px;
  line-height: 1.2;
}

.main-title span {
  color: var(--red);
}

.scripture-ref {
  margin-bottom: 15px;

  color: #ccc;
  font-style: italic;
}

.telugu-quote {
  margin-bottom: 30px;

  font-size: 22px;
  line-height: 1.6;
  font-weight: 700;
}

/* =========================================================
   BUTTONS
========================================================= */

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.btn {
  display: inline-block;

  padding: 12px 25px;

  border-radius: 25px;

  font-weight: 700;

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.btn-red {
  background: var(--red);
  color: var(--white);
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
}

.btn:hover {
  transform: translateY(-2px);
}

/* =========================================================
   FEATURES
========================================================= */

.features-section {
  width: 100%;

  padding: 35px 25px;

  background: var(--white);
}

.feature-grid {
  width: 100%;
  max-width: 1400px;

  margin: auto;

  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 24px;
}

.feature-card {
  padding: 30px;

  background: var(--white);

  border-radius: 12px;

  box-shadow: var(--shadow-sm);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* =========================================================
   FEATURE HEADER
========================================================= */

.feature-header {
  display: flex;
  align-items: center;
  gap: 18px;
}

.feature-logo {
  width: 96px;
  height: 78px;
  flex-shrink: 0;
}

.feature-header h2 {
  margin-bottom: 7px;

  color: var(--text-dark);

  font-size: 30px;
}

.feature-header p {
  color: var(--text-gray);
  font-size: 18px;
}

/* =========================================================
   FEATURE DESCRIPTION
========================================================= */

.description {
  margin-top: 25px;

  color: var(--text-dark);

  font-size: 17px;
  line-height: 1.8;
}

.description > p {
  display: -webkit-box;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;

  overflow: hidden;
}

.more-text {
  display: none;
}

.read-more {
  display: inline-block;

  margin-top: 12px;

  padding: 0;

  border: 0;

  background: transparent;

  color: var(--red);

  font-size: 16px;
  font-weight: 600;

  cursor: pointer;
}

.read-more:hover {
  color: #b91c28;
  text-decoration: underline;
}
/* =========================================================
Marquee Style
========================================================= */
marquee {
  color: red;
  font-size: larger;
  cursor: pointer;
}

RDTV
  LINKS
  =========================================================
  */
  .rdtv-links-section {
  width: 100%;

  padding: 30px 25px 20px;

  background: var(--page-blue);
}

.rdtv-links {
  width: 100%;
  max-width: 1900px;

  margin: auto;

  display: grid;

  grid-template-columns: repeat(7, minmax(0, 1fr));

  gap: 25px;

  align-items: center;
}

.rdtv-link {
  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 8px;

  overflow: hidden;

  transition: transform 0.25s ease;
}

.rdtv-link img {
  display: block;

  width: 100%;
  max-width: 240px;

  aspect-ratio: 1 / 1;

  object-fit: cover;

  border-radius: 8px;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.rdtv-link:hover {
  transform: translateY(-5px);
}

.rdtv-link:hover img {
  transform: scale(1.03);

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   FREE E-BOOKS
========================================================= */

.ebooks-section {
  width: 100%;

  padding: 30px 25px 50px;

  background: var(--white);
}

.ebooks-container {
  width: 100%;
  max-width: 1400px;

  margin: auto;
}

.ebooks-container h2 {
  margin-bottom: 20px;

  color: var(--text-dark);

  font-size: 28px;
}

/* =========================================================
   EBOOK GRID

   4 BOOKS = ONE ROW
========================================================= */

.ebook-grid {
  width: 80%;

  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 20px;

  align-items: stretch;
}

.ebook-card {
  display: block;

  width: 100%;

  padding: 10px;

  border-left: 4px solid var(--gold);
  border-radius: 5px;

  background: var(--white);

  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* Uniform ratio box — full image visible, no cropping */
.ebook-card .img-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 2px;
  overflow: hidden;
}

.ebook-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ebook-card:hover {
  transform: translateY(-5px);

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* =========================================================
   MODAL
========================================================= */

.read-more-modal {
  position: fixed;

  inset: 0;

  z-index: 9999;

  display: none;

  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(0, 0, 0, 0.65);
}

.read-more-modal.show {
  display: flex;
}

.modal-box {
  position: relative;

  width: 100%;
  max-width: 700px;

  max-height: 80vh;

  padding: 35px 40px;

  background: var(--white);

  border-radius: 16px;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);

  overflow: hidden;
}

.modal-box h2 {
  padding-right: 45px;
  padding-bottom: 15px;

  border-bottom: 1px solid var(--border-light);

  color: var(--text-dark);

  font-size: 30px;
}

.modal-body {
  max-height: calc(80vh - 130px);

  margin-top: 20px;
  padding-right: 15px;

  overflow-y: auto;

  color: #333;

  font-size: 17px;
  line-height: 1.8;
}

.modal-body p {
  margin-bottom: 18px;
}

.modal-close {
  position: absolute;

  top: 15px;
  right: 18px;

  width: 40px;
  height: 40px;

  border: 0;
  border-radius: 50%;

  background: #f1f1f1;

  color: #333;

  font-size: 28px;

  cursor: pointer;
}

.modal-close:hover {
  background: var(--red);
  color: var(--white);
}

/* =========================================================
   FOOTER
========================================================= */

.main-footer {
  background: var(--dark-blue);
  color: #8892b0;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  width: 96%;
  max-width: 1300px;
  margin: auto;
  padding: 20px 0 10px;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  align-items: start;
}

/* Brand column */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logo {
  width: 200px;
  height: auto;
}

.footer-tagline {
  color: var(--white);
  font-size: 13px;
  font-weight: 200;
  line-height: 1.6;
  margin-top: 2px;
}

.footer-scripture {
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  margin-top: 6px;
  letter-spacing: 0.3px;
}

/* Column headings */
.footer-heading {
  margin-bottom: 16px;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Quick links */
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: white;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease;
  padding-left: 10px;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-col3 {
  padding-left: 20px;
}

/* Contact */
.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: white;
  font-size: 13px;
  line-height: 1.6;
}

.footer-contact span {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 1px;
}

.footer-contact a {
  color: white;
  font-weight: 700;
  transition: color 0.2s ease;
  word-break: break-all;
}

.footer-contact a:hover {
  color: var(--gold);
}

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  text-align: center;
  color: white;
  font-size: 13px;
  width: 96%;
  max-width: 1300px;
  margin: 0 auto;
}

/* Social icons */
.social-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 14px;
  margin-top: 4px;
}

.social-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  flex-shrink: 0;
}

.social-icon .icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.social-icon img,
.social-icon svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.social-icon span {
  color: #8892b0;
  font-size: 11px;
  text-align: center;
  transition: color 0.2s ease;
}

.social-icon--whatsapp .icon-circle {
  background: #25d366;
  border-color: #25d366;
}

.social-icon:hover .icon-circle {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.social-icon--whatsapp:hover .icon-circle {
  background: #1ebe5d;
}

.social-icon:hover span {
  color: var(--gold);
}

/* Footer tablet */
@media (max-width: 1000px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* Footer mobile */
@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 0 24px;
  }

  .footer-bottom {
    text-align: center;
  }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {
  .header-container {
    flex-wrap: wrap;
  }

  .header-right {
    flex-wrap: wrap;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rdtv-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* Still 4 books in one row */
  .ebook-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 15px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {
  .main-header {
    position: relative;
  }

  .header-container {
    width: 94%;

    flex-direction: column;

    align-items: center;
  }

  .logo-img {
    height: 60px;
  }

  .header-right {
    width: 100%;

    flex-direction: column;

    justify-content: center;

    gap: 12px;
  }

  .nav-links {
    width: 100%;

    justify-content: center;

    gap: 2px;
  }

  .nav-links a {
    padding: 6px 5px;
    font-size: 13px;
  }

  .search-box {
    width: 100%;
    max-width: 300px;
  }

  /* HERO */

  .hero-section {
    padding: 70px 20px;
  }

  .hero-content {
    padding-left: 0;
    text-align: center;
  }

  .sub-title {
    font-size: 14px;
    letter-spacing: 1px;
  }

  .main-title {
    font-size: 38px;
  }

  .telugu-quote {
    font-size: 19px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 320px;

    text-align: center;
  }

  /* FEATURES */

  .features-section {
    padding: 30px 15px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card {
    padding: 25px;
  }

  .feature-logo {
    width: 78px;
  }

  .feature-header h2 {
    font-size: 26px;
  }

  .feature-header p {
    font-size: 16px;
  }

  /* RDTV LINKS */

  .rdtv-links-section {
    padding: 25px 18px;
  }

  .rdtv-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;
  }

  /* EBOOKS */

  .ebooks-section {
    padding: 25px 18px 40px;
  }

  .ebook-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 15px;
  }

  /* MODAL */

  .read-more-modal {
    padding: 15px;
  }

  .modal-box {
    max-height: 85vh;

    padding: 30px 25px;
  }

  .modal-box h2 {
    font-size: 25px;
  }

  .modal-body {
    max-height: calc(85vh - 120px);

    font-size: 16px;
  }

  /* FOOTER — handled by footer-specific responsive rules above */
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {
  .ebook-grid {
    grid-template-columns: 1fr;
  }

  .rdtv-links {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   CROSS SYMBOL — matches the red cross in the logo
========================================================= */

.cross {
  color: var(--red);
}

/* =========================================================
   SEARCH FEEDBACK
========================================================= */

.search-feedback {
  position: absolute;
  bottom: -22px;
  left: 0;
  width: 100%;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

/* =========================================================
   SEARCH HIGHLIGHT
========================================================= */

mark.search-highlight {
  background: #ffe066;
  color: #1a1a1a;
  border-radius: 3px;
  padding: 0 2px;
  font-weight: inherit;
}
