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

body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #f5e9d4;
  /* Fallback color */
  /* background-image: url('https://thumbs.dreamstime.com/b/vintage-grunge-old-paper-texture-as-background-38422538.jpg'); */
  /* background-image: url('../images/bgCraftvintage.jpg'); */
  background-image: url('../images/bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: 'Cormorant Garamond', serif;
  color: var(--acer-stuti-primary);

  font-family: 'Noto Serif Devanagari', serif !important;
}

:root {
  --acer-stuti-primary: #3a1902;
  --acer-stuti-secondary: #4a3c28;
  --acer-stuti-accent: #d2691e;
}

body::before {
  /* content: ''; */
  position: fixed;
  /* Stays fixed during scroll */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 216, 195, 0.2);
  /* Adjust darkness */
  z-index: 1;
}

/* All content goes above overlay */
main,
header,
footer,
.container {
  position: relative;
  z-index: 2;
}

.category {
  background-color: #8b4513;
}

body {
  /* font-family: 'Noto Sans Devanagari' !important, sans-serif; */
  /* background: linear-gradient(135deg, #f4e4bc 0%, #e8d5a3 50%, #d4c088 100%); */
  color: var(--acer-stuti-primary);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  background: radial-gradient(#ffffff, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(139, 69, 19, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo h1 {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--acer-stuti-primary);
  margin-bottom: 2px;
}

.logo .stuti {
  color: var(--acer-stuti-primary);
  font-style: italic;
}

.tagline {
  font-size: 0.85rem;
  color: var(--acer-stuti-primary);
  opacity: 0.8;
  font-weight: 400;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: var(--acer-stuti-primary);
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #d2691e;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #d2691e;
}

/* Hero Section */
.hero {
  background: url('../images/c2f7242a-f27b-4214-aab5-ba035698a0c9.png') center/cover;
  background-blend-mode: overlay;
  background-color: rgba(139, 69, 19, 0.5);
  min-height: 70vh;
  /*display: flex;*/
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.1) 0%, rgba(160, 82, 45, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 60px 40px;
  color: #f4e4bc;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: 4rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  color: #f4e4bc;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 20px;
  font-weight: 500;
  color: #f4e4bc;
  opacity: 0.9;
}

.hero-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #d2691e, #f4e4bc);
  margin: 25px 0;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 35px;
  color: #f4e4bc;
  opacity: 0.9;
}

.cta-button {
  background: linear-gradient(135deg, #d2691e 0%, #cd853f 100%);
  color: #f4e4bc;
  border: none;
  padding: 15px 35px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(210, 105, 30, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(210, 105, 30, 0.4);
  background: linear-gradient(135deg, #cd853f 0%, #d2691e 100%);
}

.hero-image {
  position: absolute;
  right: 40px;
  bottom: 40px;
  z-index: 2;
}

.book-image {
  width: 200px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transform: rotate(-5deg);
}

.lamp-image {
  width: 120px;
  height: auto;
  border-radius: 50%;
  position: absolute;
  top: -60px;
  right: -40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Categories Section */
.categories {
  padding: 80px 0;
  background: rgb(255 211 170 / 76%)
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  /* max-width: 1000px; */
  margin: 0 auto;
}

.category-card {
  background: rgb(255 255 255 / 29%);
  border-radius: 15px;
  /* padding: 30px 20px; */
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid rgba(139, 69, 19, 0.1);
  box-shadow: 0 5px 15px rgb(139 69 19 / 54%);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(139, 69, 19, 0.2);
  border-color: rgba(210, 105, 30, 0.3);
}

.category-icon {
  /* width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%; */
  overflow: hidden;
  /* border: 3px solid rgba(139, 69, 19, 0.2); */
}

.category-icon img {
  min-width: 10px;
  height: 100%;
  max-width: 100px;
  object-fit: cover;
}

.sword-icon {
  width: 50px;
  height: 50px;
  color: var(--acer-stuti-primary);
  margin-top: 15px;
}

.category-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--acer-stuti-primary);
  margin-bottom: 10px;
}

/* Search Section */
.search-section {
  padding: 16px 0;
  background: rgb(78 32 0 / 50%);
  border-bottom: 3px solid #ac5c22;
  border-top: 3px solid #ac5c22;
  box-shadow: 10px 5px 3px 4px #ac5c22;
}

.search-container {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: 15px;
}

.search-input {
  flex: 1;
  padding: 15px 20px;
  border: 2px solid rgba(139, 69, 19, 0.2);
  border-radius: 8px;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--acer-stuti-primary);
  font-family: 'Noto Sans Devanagari', sans-serif;
}

.search-input:focus {
  outline: none;
  border-color: #d2691e;
  box-shadow: 0 0 10px rgba(210, 105, 30, 0.2);
}

.search-button {
  background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
  color: #f4e4bc;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-button:hover {
  background: linear-gradient(135deg, #a0522d 0%, #8b4513 100%);
  transform: translateY(-2px);
}

/* Info Cards Section */
.info-cards {
  padding: 80px 0;
  background: rgba(244, 228, 188, 0.3);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.info-card {
  background: rgba(255, 255, 255, 0.3);
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid rgba(139, 69, 19, 0.1);
  box-shadow: 0 5px 15px rgba(139, 69, 19, 0.1);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(139, 69, 19, 0.15);
}

.card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--acer-stuti-primary);
  margin-bottom: 15px;
}

.card-description {
  font-size: 1rem;
  color: var(--acer-stuti-primary);
  opacity: 0.8;
}

/* Mission Section */
.mission {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.9) 0%, rgba(160, 82, 45, 0.8) 100%);
  text-align: center;
  color: #f4e4bc;
}

.mission-title {
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.mission-divider {
  margin: 30px 0;
}

.star {
  font-size: 1.5rem;
  color: #d2691e;
  margin: 0 10px;
}

.mission-description {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto 50px;
  opacity: 0.9;
  line-height: 1.8;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.social-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link svg {
  width: 24px;
  height: 24px;
}

.social-link.youtube {
  background: #ff0000;
  color: white;
}

.social-link.facebook {
  background: #1877f2;
  color: white;
}

.social-link.twitter {
  background: #1da1f2;
  color: white;
}

.social-link:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
  background: rgba(139, 69, 19, 0.9);
  color: #f4e4bc;
  padding: 30px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  color: #f4e4bc;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-link:hover {
  opacity: 1;
}

.footer-divider {
  color: #f4e4bc;
  opacity: 0.5;
}

.footer-text {
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header .container {
    /* flex-direction: column; */
    /* gap: 20px; */
  }

  .nav {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    min-height: 60vh;
    text-align: center;
  }

  .hero-content {
    padding: 40px 20px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-image {
    position: static;
    margin-top: 30px;
  }

  .book-image {
    width: 150px;
  }

  .lamp-image {
    width: 80px;
    top: -40px;
    right: -20px;
  }

  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
  }

  .search-container {
    flex-direction: column;
  }

  .mission-title {
    font-size: 2rem;
  }

  .mission-description {
    font-size: 1.1rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .logo h1 {
    font-size: 1.8rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .category-card {
    padding: 20px 15px;
  }

  .category-icon {
    width: 60px;
    height: 60px;
    display:inline-flex;
  }

  .info-card {
    padding: 30px 20px;
  }
}



/* start for certificate */

:root {
  --skintone-color: #DE9B72;
  --dark-color: var(--acer-stuti-primary);
}

.main {
  height: 100%;
}

body {
  padding: 0;
  margin: 0;
  height: 100%;
}


.body {
  height: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  background-size: 140% !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

@media (min-width: 992px) {
  .body {
    background-size: 148vh !important;
    background-repeat: no-repeat !important;
    background-position: 50% -31vh !important;
  }
}

.row {
  margin-right: 0;
  margin-left: 0;
}

.social-row {
  display: flex;
  flex-direction: column;
  right: 0;
  position: absolute;
}

@media (min-width: 768px) {
  .social-row {
    position: relative;
    flex-direction: row;
    justify-content: flex-end;
  }
}

.social-row a {
  width: 2em;
  height: 2em;
  background-repeat: no-repeat;
  background-size: contain;
  padding: 1em 0;
  z-index: 99;
  margin-bottom: 1em;
  margin-right: 1em;
}

@media (min-width: 768px) {
  .social-row a {
    width: 2.5em;
    height: 2.5em;
    padding: 1em 0;
    margin-bottom: 0;
  }
}

@media (min-width: 1200px) {
  .social-row a {
    width: 3em;
    height: 3em;
    padding: 0;
  }
}

.countach {
  font-family: countach, sans-serif;
  font-weight: 400;
  font-style: normal;
}

.tilda-petite {
  font-family: tilda-petite, sans-serif;
  font-weight: 400;
  font-style: normal;
}

.montserrat {
  font-family: montserrat, sans-serif;
  font-weight: 300;
  font-style: normal;
}

.skintone-text {
  color: var(--skintone-color);
}

.dark-text {
  color: var(--dark-color);
}

.white-text {
  color: #fff;
}

a:hover {
  color: #c2c2c2;
}

.dark-background {
  /* background: var(--dark-color); */
}


.logo {
  /* width: 20vh; */
}

@media (min-width: 768px) {
  .logo {
    width: 16em;
  }
}

@media (min-width: 992px) {
  .logo {
    width: 18em;
  }
}

@media (min-width: 1200px) {
  .logo {
    /* width: 28vh; */
    /* height: 28vh; */
  }
}

h1 {
  font-size: 4.5vh;
  /* letter-spacing: 4px; */
  padding-top: .5em;
}

@media (min-width: 992px) {
  h1 {
    font-size: 2.75em;
  }
}

@media (min-width: 1200px) {
  h1 {
    font-size: 3em;
    letter-spacing: 5px;
  }
}

.lead {
  font-size: 1.5rem;
  padding-top: 0.5em;
}

@media (min-width: 992px) {
  .lead {
    font-size: 2rem;
    padding-top: 0.5em;
  }
}

@media (min-width: 1200px) {
  .lead {
    font-size: 2.5rem;
    padding-top: 1em;
  }
}

p.general {
  font-size: 2.5vh;
  margin-bottom: 0.5em;
  line-height: 1.25em;
}

@media (min-width: 992px) {
  p.general {
    font-size: 1.25em;
    line-height: 1.5em;
  }
}

@media (min-width: 1200px) {
  p.general {
    font-size: 1.5em;
  }
}


.inner-border {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.outer-border {
  box-shadow: 0 5px 15px rgb(139 69 19 / 54%);
  background-color: rgb(255 238 222 / 59%);
  border-radius: 6.7px;
  border: 2px solid #ac5c22;
  height: 99%;
  width: 98%;
  padding: 6px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .outer-border {
    height: 94%;
  }
}

.mid-border {
  border-radius: 6.7px;
  border: 6px solid #ac5c22;
  height: 100%;
  width: 100%;
  padding: 6px;
  margin: auto;
}

.inner-border {
  border-radius: 6.7px;
  position: relative;
  border: 2px solid #ac5c22;
  height: 100%;
  width: 100%;
  margin: auto;
}


/* Decorations */
.corner-decoration {
  position: absolute;
  width: 3em;
  margin: -3px;
}

@media (min-width: 768px) {
  .corner-decoration {
    width: 3.5em;
    margin: -4px;
  }
}

@media (min-width: 992px) {
  .corner-decoration {
    width: 4em;
    margin: -5px;
  }
}

@media (min-width: 1200px) {
  .corner-decoration {
    width: 5em;
    margin: -6px;
  }
}

.corner-decoration.corner-left-top {
  left: 0;
  top: 0;
}

.corner-decoration.corner-right-top {
  top: 0;
  right: 0;
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
}

.corner-decoration.corner-right-bottom {
  right: 0;
  bottom: 0;
  -webkit-transform: scale(-1);
  transform: scale(-1);
}

.corner-decoration.corner-left-bottom {
  left: 0;
  bottom: 0;
  -webkit-transform: scaleY(-1);
  transform: scaleY(-1);
}


.vertical-decoration {
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  width: 11em;
}


@media (min-width: 768px) {
  .vertical-decoration {
    width: 16em;
  }
}


@media (min-width: 992px) {
  .vertical-decoration {
    width: 20em;
  }
}

@media (min-width: 1200px) {
  .vertical-decoration {
    width: 27em;
  }
}

.vertical-decoration.top {
  top: 0;

}

.vertical-decoration.bottom {
  bottom: 0;
  -webkit-transform: scaleY(-1);
  transform: scaleY(-1);
}

/* End of certificate */
.info-h3 {
  font-size: 25px;
  font-weight: 600;
}

.inner-border p,
.inner-border li {
  font-size: 20px;
}

.inner-border ul {
  list-style-type: none;
}

.center-justified {
  text-align: justify;
  /* Justifies text inside */
  text-align-last: center;
  /* Optional: centers last line */
}

ol,
ul {
  padding-left: 0
}

/* audio.php */
.asa-page {
  font-family: "Noto Serif", serif;
  color: var(--acer-stuti-primary);
  background: rgb(255 211 170 / 41%);
}

/* ---------- SECTION TITLE ---------- */
.asa-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.asa-subtitle {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 24px;
}

/* ---------- CURRENT LISTENING ---------- */
.listening-card {
  background: #f6ecd9b5;
  border: 1px solid #d9c6a3;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
  font-size: 110%;
}

.listening-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.listening-icon {
  font-size: 1.4rem;
  width: 36px;
  text-align: center;
}

.progress {
  height: 4px;
  background: #dbc7a6;
  margin-top: 8px;
}

.progress-bar {
  background: #c08b3e;
}

.time {
  font-size: 0.85rem;
  white-space: nowrap;
}

/* ---------- CATEGORY GRID ---------- */
.category-card {
  background: #f6ecd9a4;
  border: 1px solid #d9c6a3;
  border-radius: 14px;
  padding: 18px;
  height: 100%;
  text-align: center;
}

.category-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.category-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.category-meta {
  font-size: 0.85rem;
  opacity: 0.85;
  font-weight: 550;
}

/* ---------- FOOTER STRIP ---------- */
.asa-footer {
  border-top: 1px solid #d9c6a3;
  margin-top: 40px;
  padding-top: 14px;
  font-size: 0.85rem;
  text-align: center;
  opacity: 0.75;
}


.nav-link:focus, .nav-link:hover {
    color: #d2691e;
}
.category-title{
    min-height:50px;
}
.category-description{
    min-height:50px;
}
/* audiolist.php */