/* ==================================================
   GLOBAL RESET
================================================== */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:'Poppins', sans-serif;
  background:#f8f3e8;
  color:#333;
  line-height:1.7;
}


/* ==================================================
   LAYOUT
================================================== */

.container{
  width:100%;
  max-width:1300px;
  margin:auto;
  padding:0 15px;
}

.center-box{
  text-align:center;
  margin:25px 0;
}


/* ==================================================
   TOP BAR
================================================== */

.top-bar{
  background:#7a3e00;
  color:#fff;
  font-size:14px;
  padding:8px 0;
}

.top-bar .container{
  display:flex;
  justify-content:space-between;
  align-items:center;
}


/* ==================================================
   HEADER
================================================== */

.main-header{
  background:linear-gradient(90deg,#ff9900,#ffcc33);
  padding:18px 0;
  position:sticky;
  top:0;
  z-index:999;
  box-shadow:0 3px 10px rgba(0,0,0,0.15);
}

.header-flex{
  display:flex;
  justify-content:space-between;
  align-items:center;
}


/* LOGO */

.logo{
  display:flex;
  align-items:center;
  gap:12px;
}

.logo-symbol{
  font-size:32px;
  color:white;
}

.logo-text h1{
  font-family:'Cinzel', serif;
  font-size:28px;
  color:#fff;
  letter-spacing:1px;
  line-height:1.1;
}

.logo-text span{
  font-size:13px;
  color:#fff;
  opacity:0.95;
}


/* ==================================================
   NAVIGATION
================================================== */

.nav-menu{
  list-style:none;
  display:flex;
  gap:22px;
}

.nav-menu a{
  color:#fff;
  text-decoration:none;
  font-size:15px;
  font-weight:500;
  transition:0.3s ease;
}

.nav-menu a:hover{
  color:#5a2c00;
}

.menu-toggle{
  display:none;
  font-size:28px;
  color:white;
  cursor:pointer;
}


/* ==================================================
   HERO SECTIONS
================================================== */

.hero,
.ask-hero{
  position:relative;
  height:60vh;
  overflow:hidden;
}

.ask-hero{
  background:url('/images/sai-hero.jpg') center center no-repeat;
  background-size:cover;
}

.hero-overlay,
.ask-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.6);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.hero-content,
.ask-content{
  color:white;
  padding:20px;
}

.hero-content h1,
.ask-content h1{
  font-size:42px;
  margin-bottom:15px;
}

.hero-content p,
.ask-content p{
  font-size:18px;
  color:#ffcc66;
}


/* ==================================================
   GENERAL SECTION (CONTENT SYSTEM)
================================================== */

.section,
.ask-section{
  padding:80px 20px;
  background:#f8f3e8;
}

/* Headings */
.section h2{
  text-align:center;
  font-size:34px;
  color:#cc6600;
  margin-bottom:45px;
  font-family:'Cinzel', serif;
}

/* Unified Content Column Width */
.section p,
.section ul,
.section ol,
.content-img{
  max-width:850px;
  margin-left:auto;
  margin-right:auto;
}

/* Paragraphs */
.section p{
  margin-bottom:22px;
  font-size:17px;
  line-height:1.9;
  text-align:justify;
}

/* Lists */
.section ul,
.section ol{
  margin-top:15px;
  margin-bottom:25px;
  padding-left:25px;
}

.section ul li,
.section ol li{
  margin-bottom:10px;
  font-size:16px;
  line-height:1.8;
}

/* Images */
.content-img{
  display:block;
  width:100%;
  margin:35px auto;
  border-radius:12px;
}


/* ==================================================
   DEVOTIONAL CARD
================================================== */

.devotional-card{
  background:#fff;
  padding:22px;
  margin-bottom:25px;
  border-radius:14px;
  box-shadow:0 4px 15px rgba(0,0,0,0.08);
  border-left:6px solid #f4a300;
  transition:0.3s ease;
}

.devotional-card:hover{
  transform:translateY(-3px);
  box-shadow:0 8px 18px rgba(0,0,0,0.12);
}

.devotional-topic{
  display:inline-block;
  background:#fff1cc;
  color:#7a4e00;
  padding:5px 14px;
  border-radius:30px;
  font-size:13px;
  margin-bottom:12px;
  font-weight:600;
}

.devotional-text{
  font-size:17px;
  line-height:1.8;
  margin:10px 0;
}

.devotional-meta{
  font-size:14px;
  color:#777;
  margin-top:12px;
}


/* ==================================================
   BUTTON SYSTEM
================================================== */

.btn-primary,
.load-more-btn,
.add-prayer-btn{
  background:linear-gradient(45deg,#f4a300,#ffcc33);
  border:none;
  padding:14px 28px;
  border-radius:40px;
  font-weight:600;
  cursor:pointer;
  color:white;
  transition:0.3s ease;
  box-shadow:0 6px 18px rgba(255,153,0,0.35);
}

.btn-primary:hover,
.load-more-btn:hover,
.add-prayer-btn:hover{
  transform:translateY(-2px);
  background:linear-gradient(45deg,#e69500,#ffbb00);
}


/* ==================================================
   FORM SYSTEM
================================================== */

.form-box textarea,
.form-box input,
.form-box select,
.devotional-modal input,
.devotional-modal select,
.devotional-modal textarea{
  width:100%;
  padding:12px;
  margin-bottom:15px;
  border-radius:8px;
  border:1px solid #ddd;
  font-size:15px;
}

.form-box textarea{
  resize:none;
  min-height:150px;
  line-height:1.6;
  padding:15px;
}


/* ==================================================
   MODAL SYSTEM
================================================== */

.devotional-modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.6);
  justify-content:center;
  align-items:center;
  z-index:9999;
}

.devotional-modal.active{
  display:flex;
}

.devotional-modal-content{
  background:#fff;
  width:90%;
  max-width:550px;
  padding:30px;
  border-radius:18px;
  position:relative;
  box-shadow:0 12px 30px rgba(0,0,0,0.25);
}

.modal-close{
  position:absolute;
  right:18px;
  top:12px;
  font-size:28px;
  cursor:pointer;
}


/* ==================================================
   FOOTER
================================================== */

.footer{
  background:#7a3e00;
  color:white;
  text-align:center;
  padding:25px 0;
  font-size:14px;
  margin-top:60px;
}


/* ==================================================
   RESPONSIVE
================================================== */

@media(max-width:1000px){

  .nav-menu{
    flex-direction:column;
    position:absolute;
    top:100%;
    right:0;
    background:#ff9900;
    width:260px;
    display:none;
    padding:20px;
  }

  .nav-menu.menu-active{
    display:flex;
  }

  .menu-toggle{
    display:block;
  }

  .hero-content h1,
  .ask-content h1{
    font-size:28px;
  }

  .hero-content p,
  .ask-content p{
    font-size:15px;
  }

  .section p{
    text-align:left; /* better readability on mobile */
  }
}


/* ==================================================
   PREMIUM DIVINE ANSWER DESIGN
================================================== */

.sai-answer-wrapper{
  margin-top:40px;
  display:flex;
  justify-content:center;
  animation:fadeInSai 1.2s ease forwards;
}

.sai-answer-card{
  background:linear-gradient(145deg,#fff9e6,#fff3cc);
  border-left:6px solid #f4a300;
  padding:35px;
  border-radius:18px;
  max-width:700px;
  width:100%;
  box-shadow:0 15px 40px rgba(0,0,0,0.12);
  position:relative;
}

.sai-answer-card:before{
  content:"✨";
  position:absolute;
  top:-18px;
  right:20px;
  font-size:28px;
  animation:floatSai 3s infinite ease-in-out;
}

.sai-answer-title{
  font-family:'Cinzel', serif;
  font-size:20px;
  color:#cc6600;
  margin-bottom:20px;
}

.sai-answer-text{
  font-size:19px;
  line-height:1.8;
  color:#333;
  margin-bottom:20px;
}

.sai-answer-footer{
  font-size:15px;
  color:#7a4e00;
  font-weight:500;
}

@keyframes fadeInSai{
  from{opacity:0; transform:translateY(15px);}
  to{opacity:1; transform:translateY(0);}
}

@keyframes floatSai{
  0%{transform:translateY(0);}
  50%{transform:translateY(-6px);}
  100%{transform:translateY(0);}
}

.announcement-bar{
  background:linear-gradient(90deg,#8b4000,#cc6600);
  color:#fff;
  text-align:center;
  padding:10px 40px;
  font-size:14px;
  position:relative;
  animation:slideDown 0.6s ease;
}

.close-announcement{
  position:absolute;
  right:15px;
  top:8px;
  cursor:pointer;
  font-size:16px;
}

@keyframes slideDown{
  from{transform:translateY(-100%);}
  to{transform:translateY(0);}
}
