/* ======================================================
   RESET & BASE
====================================================== */
*{margin:0;padding:0;box-sizing:border-box;}

/* GLOBAL IMAGE SAFETY NET — applies to every <img> on the page.
   Ensures no image ever overflows its container or stretches/distorts.
   object-fit: contain keeps the full image visible without cropping. */
img{
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Base font-size in % (NOT px) so user's browser/phone "text size"
   accessibility setting is respected. 100% = browser default (usually 16px). */
html{
  font-size: 100%;
}

html, body{
  font-family:'Noto Sans Devanagari',sans-serif;
  background:#4b0000;
  color:#fff;
  overflow-x:hidden;
  width:100%;
  font-size: 1rem;
  line-height: 1.6;
}

/* Slightly scale the root size down on very small phones so the fluid
   clamp() values below have a sensible floor — still 100% driven by
   the user's own accessibility text-size setting, just a smaller base. */
@media(max-width:380px){
  html{ font-size: 93.75%; } /* ~15px equivalent base */
}

/* ======================================================
   CORNER NOTIFICATION
====================================================== */
.corner-notify{
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    animation: slideIn .5s ease;
    width: 340px;
    max-width: calc(100vw - 20px);
}

.notify-box{
    width: 100%;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0,0,0,.25);
    overflow: hidden;
    position: relative;
    font-family: 'Segoe UI', sans-serif;
}

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

.text-banner{
    background: linear-gradient(135deg,#8b0000,#c62828);
    color: #fff;
    padding: 20px;
    text-align: center;
}

.text-banner h4{
    margin: 0 0 0.5rem;
    font-size: clamp(0.9375rem, 3vw, 1rem);
    font-weight: 600;
}

.text-banner p{
    font-size: clamp(0.8125rem, 2.6vw, 0.875rem);
    margin: 0;
}

.notify-date{
    padding: 0.625rem 0.9375rem;
    font-size: clamp(0.8125rem, 2.6vw, 0.875rem);
    background: #f5f5f5;
    color: #555;
    text-align: center;
}

.close-btn{
    position: absolute;
    top: 8px;
    right: 12px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    cursor: pointer;
    color: #fff;
    background: rgba(0,0,0,.25);
    border-radius: 50%;
    z-index: 2;
    border: none;
    transition: .3s ease;
}

.close-btn:hover{
    background: #dc3545;
    color: #fff;
}

@keyframes slideIn{
    from{ transform: translateX(120%); opacity: 0; }
    to{ transform: translateX(0); opacity: 1; }
}

/* Mobile: notification full width, comfortably above bottom UI */
@media(max-width:480px){
    .corner-notify{
        right: 10px;
        left: 10px;
        bottom: 20px;
        width: auto;
        max-width: none;
    }
}

/* ======================================================
   OM FLOATING ANIMATION
====================================================== */
.om-floating {
    position: fixed;
    font-size: 7.5rem;
    color: rgba(255, 180, 0, 0.15);
    pointer-events: none;
    z-index: 1;
    animation: float-up 20s infinite ease-in;
    font-weight: 700;
    letter-spacing: 10px;
}

.om-floating:nth-child(1) { left: 5%; animation-delay: 0s; animation-duration: 20s; }
.om-floating:nth-child(2) { left: 20%; animation-delay: 5s; animation-duration: 25s; }
.om-floating:nth-child(3) { right: 15%; animation-delay: 10s; animation-duration: 22s; }
.om-floating:nth-child(4) { right: 5%; animation-delay: 15s; animation-duration: 28s; }

@keyframes float-up {
    0% { opacity: 0; transform: translateY(100vh) rotate(0deg) scale(0.8); }
    10% { opacity: 0.15; }
    50% { opacity: 0.1; }
    90% { opacity: 0; }
    100% { opacity: 0; transform: translateY(-100vh) rotate(360deg) scale(1); }
}

@media(max-width:576px){
    .om-floating{ font-size: 3.75rem; letter-spacing: 4px; }
}

/* ======================================================
   COMMON SCROLL ANIMATIONS
====================================================== */
.fade-up {
    opacity:0;
    transform:translateY(40px);
    transition:all 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fade-up.show{ opacity:1; transform:translateY(0); }

.fade-left {
    opacity:0;
    transform:translateX(-60px);
    transition:all 1s ease;
}
.fade-left.show{ opacity:1; transform:translateX(0); }

.fade-right {
    opacity:0;
    transform:translateX(60px);
    transition:all 1s ease;
}
.fade-right.show{ opacity:1; transform:translateX(0); }

.pulse {
    animation: pulse-animate 2s infinite;
}
@keyframes pulse-animate {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.glow-text {
    text-shadow: 0 0 10px rgba(255, 180, 0, 0.8),
                 0 0 20px rgba(232, 92, 26, 0.6);
}

/* ======================================================
   HERO SECTION
====================================================== */
.hero {
    background: url('../images/BH.jpg') no-repeat center center / cover;
    min-height: 92vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero::before { display: none; }

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    width: 100%;
}

.hero-img img {
    width: 380px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,.7));
}

@media (max-width: 1200px) { .hero { min-height: 80vh; } }
@media (max-width: 992px)  { .hero { min-height: 70vh; } }

/* Mobile: hero becomes a compact image block instead of a full-screen
   background, so it doesn't look zoomed-in/oversized and content
   follows right after it. */
@media (max-width: 768px) {
    .hero {
        min-height: 0;
        height: 45vh;
        background-size: contain;
        background-position: center center;
        background-color: #fff7e6;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 32vh;
        background-size: contain;
        background-position: center center;
        background-color: #fff7e6;
    }
}

@media (max-width: 380px) {
    .hero {
        height: 26vh;
    }
}

/* ======================================================
   NAV
====================================================== */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    flex-wrap: wrap;
    gap: 10px;
}

.logo {
    color: #ffb400;
    font-size: clamp(1.25rem, 4vw, 1.625rem);
    font-weight: 700;
    animation: logo-glow 2s ease-in-out infinite;
}

@keyframes logo-glow {
    0%, 100% { text-shadow: 0 0 5px rgba(255,180,0,0.5); }
    50% { text-shadow: 0 0 20px rgba(255,180,0,0.9), 0 0 30px rgba(232,92,26,0.6); }
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-size: clamp(0.8125rem, 2.6vw, 0.875rem);
}

@media(max-width:768px){
    .nav{ padding: 14px 16px; flex-direction: column; align-items: flex-start; }
    .nav ul{ gap: 16px; }
}

/* ======================================================
   HERO TEXT
====================================================== */
.hero-text {
    max-width: 620px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: clamp(1.5rem, 6vw, 2.625rem);
    margin-bottom: 20px;
    animation: text-glow-in 1.5s ease-out;
}

@keyframes text-glow-in {
    0% { opacity: 0; transform: translateY(20px); text-shadow: none; }
    100% { opacity: 1; transform: translateY(0); text-shadow: 0 0 20px rgba(255,180,0,0.6); }
}

.hero-text p {
    font-size: clamp(0.9rem, 3.2vw, 1.125rem);
    line-height: 1.9;
    margin-bottom: 12px;
}

/* ======================================================
   BUTTON
====================================================== */
.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 0.75rem 1.5rem;
    background: #e85c1a;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
    font-size: clamp(0.875rem, 2.8vw, 0.9375rem);
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover {
    background: #d73b4a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(232, 92, 26, 0.4);
}

.btn:hover::before { left: 100%; }

/* ======================================================
   ABOUT
====================================================== */
.about {
    background: linear-gradient(rgba(90,0,0,.85),rgba(90,0,0,.85));
    padding: 80px 0;
    position: relative;
}

.about::before {
    content: '✦';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(1.25rem, 4vw, 1.875rem);
    color: #ffb400;
}

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

.about-top {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.about-left { flex: 1 1 300px; }

.about-left h2 {
    color: #ffb400;
    margin-bottom: 25px;
    font-size: clamp(1.375rem, 4.5vw, 2rem);
    text-shadow: 0 0 10px rgba(255, 180, 0, 0.5);
    animation: title-shine 3s ease-in-out infinite;
}

@keyframes title-shine {
    0%, 100% { text-shadow: 0 0 10px rgba(255, 180, 0, 0.5); }
    50% { text-shadow: 0 0 20px rgba(255, 180, 0, 0.8), 0 0 30px rgba(232, 92, 26, 0.4); }
}

.about-left p {
    line-height: 1.9;
    margin-bottom: 25px;
}

.about-right {
    flex: 0 1 300px;
    text-align: center;
    padding: 4px;
}

.about-right img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.about-right img:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 15px 40px rgba(255,180,0,0.3);
}

.about-right span {
    display: block;
    margin-top: 10px;
    color: #ffb400;
}

.hero-image { transition: all 0.4s ease !important; }
.hero-image:hover { transform: scale(1.05); }

@media(max-width:576px){
    .about{ padding: 40px 0; }
    .about-container{ padding: 0 16px; }
    .about-top{ flex-direction: column; }
    .about-right, .about-right img{ width: 100%; max-width: 220px; margin: 0 auto; }
}

/* ===== ABOUT CONTINUATION ===== */
.about-continue {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 60px;
}

.about-continue-left { flex: 1 1 300px; margin-top: 0; }

.about-continue-left p { line-height: 1.9; margin-bottom: 22px; }

.about-continue-left .row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.about-continue-left img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-continue-left img:hover {
    transform: translateY(-5px);
    filter: drop-shadow(0 15px 30px rgba(255,180,0,0.4));
}

.highlight-title { color: #ffb400; margin: 30px 0 15px; }

.about-continue-right { flex: 1 1 280px; }

.info-box { margin-bottom: 35px; }

.info-box h4 { font-size: clamp(1.125rem, 3.6vw, 1.375rem); margin-bottom: 8px; }

.info-box a {
    color: #ffd27a;
    text-decoration: none;
    word-break: break-all;
}

.date {
    display: block;
    margin-top: 8px;
    color: #ffb400;
    font-size: clamp(0.8125rem, 2.6vw, 0.875rem);
}

.download-btn {
    display: block;
    padding: 14px;
    margin-bottom: 15px;
    background: #d73b4a;
    text-align: center;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
}

/* ======================================================
   SCROLL TOP
====================================================== */
.scroll-top {
    position: fixed;
    bottom: 90px;
    right: 16px;
    width: 42px;
    height: 42px;
    background: #e85c1a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(232, 92, 26, 0.4);
    animation: bounce-scroll 2s infinite;
    z-index: 998;
}

.scroll-top:hover {
    background: #d73b4a;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(232, 92, 26, 0.6);
}

@keyframes bounce-scroll {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media(max-width:480px){
    .scroll-top{ bottom: 80px; right: 12px; width: 38px; height: 38px; }
}

/* ======================================================
   GENERAL RESPONSIVE LAYOUT
====================================================== */
@media(max-width:1200px){
    .hero-content,
    .about-top,
    .about-continue,
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .nav { padding: 20px; }
    .about-right,
    .about-continue-right { width: 100%; }
}

@media(min-width:1200px){
    .hero-content{ min-height: 92vh; }
}

@media(max-width:576px){
    .hero-content{ gap: 10px; padding: 40px 20px; }
    .about-container{ padding: 0 10px; }
}

/* ======================================================
   COMMON CARD STYLE
====================================================== */
.card{
  border:0;
  border-radius:16px;
  transition:.4s ease;
}
.card:hover{
  transform:translateY(-6px);
  box-shadow:0 15px 35px rgba(0,0,0,.15);
}
.card-header{
  background:linear-gradient(135deg,#a40000,#d00000);
  color:#fff;
  font-weight:600;
  font-size: clamp(1rem, 3.2vw, 1.125rem);
  border-radius:16px 16px 0 0 !important;
}

/* ======================================================
   SECTION TITLE
====================================================== */
.section-title{
  text-align:center;
  margin:40px 0 20px;
  padding: 0 16px;
}
.section-title h2{
  font-weight:700;
  color:#ffb400;
  font-size: clamp(1.25rem, 5vw, 1.75rem);
}

/* ======================================================
   AARTI
====================================================== */
.aarti-list{
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.aarti-card{
  background:#fff;
  border-radius:12px;
  padding:14px 16px;
  display:flex;
  align-items:center;
  gap:14px;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
  transition:.3s ease;
}
.aarti-card:hover{
  transform:scale(1.02);
  background:rgba(255,255,255,.9);
}
.aarti-icon{
  width:52px;
  height:52px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size: clamp(1.125rem, 3.6vw, 1.25rem);
  flex:0 0 52px;
}
.aarti-sun{background:linear-gradient(135deg,#ffb400,#f07a2f);}
.aarti-moon{background:linear-gradient(135deg,#7aa7ff,#5b8cff);}
.aarti-label{font-size: clamp(0.8125rem, 2.6vw, 0.875rem);color:#666;}
.aarti-time{font-size: clamp(1.0625rem, 3.4vw, 1.25rem);color:#4b0000;font-weight:700;}

@media(max-width:991px){
  .aarti-icon{width:44px;height:44px;}
}

/* ======================================================
   PANCHANG TABLE
====================================================== */
.panchang-table th{
  background:#fff3f3;
  color:#a40000;
  font-weight:600;
  font-size: clamp(0.75rem, 3vw, 0.875rem);
}
.panchang-table td{
  padding:10px;
  vertical-align:middle;
  white-space:nowrap;
  transition:.3s;
  font-size: clamp(0.75rem, 3vw, 0.875rem);
}
.panchang-table tbody tr:hover{
  background:rgba(164,0,0,.08);
  transform:scale(1.01);
}
.panchang-table tbody tr td:first-child{
  font-weight:600;
  color:#a40000;
}

/* ======================================================
   GLOBAL MOBILE SAFETY NET
====================================================== */
@media(max-width:576px){
  .section-title h2{ font-size: 1.375rem; }
  img{ max-width: 100%; height: auto; }
  table{ font-size: 0.8125rem; }
}