/* =========================================================
   1. GLOBAL / BASE
========================================================= */
*{margin:0;padding:0;box-sizing:border-box;}

body.ramadhan-body{
font-family:system-ui,sans-serif;
color:#1e293b;
background:#f8fafc;
line-height:1.7;
}

.ramadhan-container{
width:90%;
max-width:1200px;
margin:auto;
}

.ramadhan-section{padding:70px 0;}

.ramadhan-body h1,
.ramadhan-body h2,
.ramadhan-body h3{font-weight:700;}

.ramadhan-body a{text-decoration:none;}



/* =========================================================
   2. HEADER / NAVBAR
========================================================= */
.ramadhan-header{
background:white;
border-bottom:1px solid #e2e8f0;
position:sticky;
top:0;
z-index:999;
}

.ramadhan-navbar{
display:flex;
align-items:center;
justify-content:space-between;
padding:15px 0;
}

.ramadhan-logo{
display:flex;
align-items:center;
gap:10px;
font-weight:bold;
font-size:20px;
color:#111;
}

.ramadhan-logo img{width:42px;}

.ramadhan-nav a{
margin-left:25px;
color:#475569;
font-weight:500;
}

.ramadhan-nav a:hover{color:#111;}

.ramadhan-support-btn{
background:#facc15;
padding:10px 18px;
border-radius:30px;
font-weight:600;
color:#111;
}



/* =========================================================
   3. MOBILE NAVIGATION
========================================================= */
.ramadhan-menu-toggle{
display:none;
font-size:26px;
cursor:pointer;
}

@media(max-width:768px){

.ramadhan-menu-toggle{display:block;}

.ramadhan-nav{
position:absolute;
top:70px;
right:0;
background:white;
width:100%;
flex-direction:column;
text-align:center;
padding:20px 0;
display:none;
box-shadow:0 10px 30px rgba(0,0,0,.1);
}

.ramadhan-nav a{
display:block;
margin:12px 0;
}

.ramadhan-nav.show{display:flex;}

}

@media(max-width:1000px){
.ramadhan-main-grid{
grid-template-columns:1fr;
}

.ramadhan-right{
position:relative;
top:auto;
}
}

/*reflection popup*/
.reflection-popup{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.7);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:999999;
  padding:20px;
}

.reflection-box{
  position:relative;
  background:#fff;
  width:100%;
  max-width:720px;
  max-height:90vh;
  overflow-y:auto;
  padding:40px;
  border-radius:20px;
  box-shadow:0 40px 100px rgba(0,0,0,.4);
}

.reflection-popup{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.7);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:999999;
  padding:20px;
}

.reflection-box{
  position:relative;
  background:#fff;
  width:100%;
  max-width:720px;
  max-height:90vh;
  overflow-y:auto;
  padding:40px;
  border-radius:20px;
  box-shadow:0 40px 100px rgba(0,0,0,.4);
}


.reflection-close:hover{
color:#000;
transform:scale(1.1);
}



/* =========================================================
   4. HERO SECTION
========================================================= */
.ramadhan-hero{
height:85vh;
display:flex;
align-items:center;
justify-content:center;
text-align:center;
color:white;
position:relative;
overflow:hidden;
background:url("../photos/ramadhan/hero1.jpg") right center/cover no-repeat;
}

.ramadhan-home-hero{
height:85vh;
display:flex;
align-items:center;
justify-content:center;
text-align:center;
color:white;
position:relative;
overflow:hidden;
background:url("../photos/ramadhan/img3.jpeg") right center/cover no-repeat;
}

.ramadhan-hero::before{
content:"";
position:absolute;
inset:0;
background:
radial-gradient(circle at center,
rgba(0,0,0,.65) 0%,
rgba(0,0,0,.55) 30%,
rgba(0,0,0,.35) 55%,
rgba(0,0,0,.15) 75%,
rgba(0,0,0,0) 100%);
z-index:1;
}

.ramadhan-hero-content{
position:relative;
z-index:2;
background:rgba(0,0,0,.25);
padding:30px 40px;
border-radius:18px;
backdrop-filter:blur(6px);
}

.ramadhan-main-slogan{
font-size:42px;
line-height:1.3;
margin-bottom:28px;
font-weight:800;
text-shadow:0 5px 25px rgba(0,0,0,.7);
}

.ramadhan-hero-btn{
background:#22c55e;
padding:14px 30px;
border-radius:40px;
display:inline-block;
margin-top:5px;
font-weight:600;
color:white;
box-shadow:0 6px 20px rgba(0,0,0,.5);
transition:.3s;
}

.ramadhan-hero-btn:hover{
transform:translateY(-2px);
box-shadow:0 12px 25px rgba(34,197,94,.45);
}



/* =========================================================
   5. HERO AYAH DECORATION
========================================================= */
.ramadhan-ayah-wrap{
position:relative;
display:inline-block;
padding:10px 20px;
}

.ramadhan-ayah-wrap::before{
content:"☾";
position:absolute;
left:50%;
top:50%;
transform:translate(-50%,-50%);
font-size:120px;
color:#fbbf24;
text-shadow:0 0 30px rgba(251,191,36,.6);
opacity:.15;
filter:blur(2px);
animation:ramadhanCrescentGlow 4s ease-in-out infinite;
pointer-events:none;
z-index:0;
}

.ramadhan-ayah-ar{
font-size:24px;
line-height:2;
margin-bottom:14px;
font-weight:600;
text-shadow:0 4px 15px rgba(0,0,0,.6);
position:relative;
z-index:1;
}

.ramadhan-ayah-en{
font-size:15px;
opacity:.85;
margin-bottom:22px;
font-style:italic;
border-bottom:1px solid rgba(255,255,255,.25);
padding-bottom:12px;
margin-bottom:18px;
}

@keyframes ramadhanCrescentGlow{
0%{opacity:.12; transform:translate(-50%,-50%) scale(1);}
50%{opacity:.28; transform:translate(-50%,-50%) scale(1.08);}
100%{opacity:.12; transform:translate(-50%,-50%) scale(1);}
}



/* =========================================================
   6. TOPIC CARDS GRID
========================================================= */
.ramadhan-section-title{
text-align:center;
font-size:36px;
margin-bottom:60px;
color:#1e3a8a;
letter-spacing:.5px;
}

.ramadhan-cards{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:30px;
}

.ramadhan-card{
position:relative;
background:linear-gradient(145deg,#ffffff,#f1f5f9);
padding:35px 28px;
border-radius:22px;
box-shadow:
0 10px 30px rgba(0,0,0,.07),
inset 0 1px 0 rgba(255,255,255,.6);
transition:.35s;
overflow:hidden;
border:1px solid rgba(30,58,138,.06);
cursor:pointer;
}

.ramadhan-card:hover{
transform:translateY(-12px) scale(1.02);
box-shadow:0 25px 60px rgba(0,0,0,.18);
}

.ramadhan-card::before{
content:"";
position:absolute;
inset:-1px;
border-radius:22px;
background:linear-gradient(120deg,#1e3a8a,#22c55e,#facc15);
opacity:0;
transition:.35s;
z-index:0;
}

.ramadhan-card:hover::before{opacity:.18;}

.ramadhan-card::after{
content:"";
position:absolute;
top:0;
left:-120%;
width:60%;
height:100%;
background:linear-gradient(120deg,transparent,rgba(255,255,255,.6),transparent);
transition:.6s;
}

.ramadhan-card:hover::after{left:130%;}

.ramadhan-card h3{
position:relative;
z-index:1;
font-size:20px;
margin-bottom:10px;
color:#1e3a8a;
font-weight:700;
}

.ramadhan-card h3::before{
content:"✦";
display:inline-flex;
align-items:center;
justify-content:center;
width:34px;
height:34px;
margin-right:10px;
border-radius:50%;
background:linear-gradient(135deg,#1e3a8a,#22c55e);
color:white;
font-size:14px;
box-shadow:0 6px 15px rgba(0,0,0,.2);
}

.ramadhan-card p{
position:relative;
z-index:1;
color:#475569;
font-size:15px;
}

/* =========================================================
   7. CONTENT LAYOUT
========================================================= */
/* ================= MAIN 2 GRID LAYOUT ================= */

.ramadhan-main-grid{
display:grid;
grid-template-columns: 1fr 360px;
gap:40px;
align-items:start;
}


.ramadhan-right{
position:sticky;
top:100px;
height:fit-content;
}


.ramadhan-content{
background:white;
padding:50px;
border-radius:18px;
margin-bottom:35px;
box-shadow:0 10px 30px rgba(0,0,0,.07);
}

.ramadhan-alt{background:#f1f5f9;}

.ramadhan-content-grid{
display:grid;
grid-template-columns:260px 1fr;
gap:30px;
align-items:start;
}



/* =========================================================
   8. SIDEBAR NAVIGATION
========================================================= */
.ramadhan-sidenav{
position:sticky;
top:90px;
align-self:start;
background:#fff;
border:1px solid rgba(15,23,42,.08);
border-radius:14px;
padding:18px;
box-shadow:0 10px 25px rgba(0,0,0,.06);
}

.ramadhan-sidenav h3{
font-size:16px;
margin-bottom:10px;
color:#0f172a;
}

.ramadhan-sidenav a{
display:block;
padding:10px;
margin:4px 0;
border-radius:10px;
color:#334155;
font-size:14px;
}

.ramadhan-sidenav a:hover{
background:#f1f5f9;
color:#0f172a;
}



/* =========================================================
   9. ARTICLE CONTENT
========================================================= */
.ramadhan-article h2{
margin-bottom:18px;
color:#1e3a8a;
}

.ramadhan-block{
padding:18px 0;
border-bottom:1px dashed rgba(15,23,42,.15);
}

.ramadhan-block h3{
margin-bottom:8px;
color:#0f172a;
}

.ramadhan-quote{
margin:12px 0;
padding:14px 16px;
border-left:4px solid #1e3a8a;
background:#f8fafc;
border-radius:10px;
color:#0f172a;
}

.ramadhan-summary-box{
margin-top:20px;
padding:18px;
border-radius:14px;
background:linear-gradient(120deg,#ecfeff,#f0fdf4);
border:1px solid rgba(15,23,42,.08);
}

.ramadhan-daycard{
margin-top:16px;
padding:18px;
border-radius:14px;
background:#fff;
border:1px solid rgba(15,23,42,.08);
box-shadow:0 10px 25px rgba(0,0,0,.06);
}

.ramadhan-tag{
display:inline-block;
margin-left:10px;
padding:4px 10px;
border-radius:999px;
background:#eef2ff;
color:#1e3a8a;
font-size:12px;
font-weight:700;
}

.ramadhan-arabic{
font-size:22px;
text-align:center;
margin:12px 0;
line-height:1.9;
}

.ramadhan-muted{color:#64748b;font-size:14px;}

.ramadhan-link{color:#2563eb;font-weight:600;}
.ramadhan-link:hover{text-decoration:underline;}



/* =========================================================
   10. CALENDAR
========================================================= */

/* ===== SIDEBAR RAMADAN CARD ===== */

.ramadhan-calendar-card{
position:relative;
border-radius:22px;
overflow:hidden;
padding:18px 12px;
color:white;
background:
linear-gradient(rgba(0,0,0,.6),rgba(0,0,0,.75)),
url("../photos/ramadhan/hero1.jpg") center/cover no-repeat;
box-shadow:0 18px 45px rgba(0,0,0,.25);
}

/* glowing crescent decoration */
.ramadhan-calendar-card::before{
content:"☾";
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
font-size:160px;
color:#fde047;
opacity:.12;
filter:blur(3px);
animation:moonPulse 5s ease-in-out infinite;
pointer-events:none;
}

@keyframes moonPulse{
0%,100%{opacity:.12; transform:translate(-50%,-50%) scale(1);}
50%{opacity:.25; transform:translate(-50%,-50%) scale(1.08);}
}

.ramadhan-calendar-inner{
position:relative;
z-index:2;
}

.ramadhan-cal-title{
text-align:center;
font-size:24px;
margin-bottom:22px;
color:#fde68a;
font-weight:700;
}

.ramadhan-cal-list{
list-style:none;
display:flex;
flex-direction:column;
gap:16px;
font-size:15px;
}

.ramadhan-cal-list li{
background:rgba(255,255,255,.12);
padding:12px 14px;
border-radius:12px;
line-height:1.5;
}

.ramadhan-cal-list span{
display:block;
font-weight:600;
color:#fde68a;
margin-bottom:3px;
}


/* ===== SIDEBAR FATWA CARD ===== */

.ramadhan-fatwa-card{
margin-top:25px;
background:white;
border-radius:18px;
box-shadow:0 12px 35px rgba(0,0,0,.08);
overflow:hidden;
border:1px solid rgba(0,0,0,.05);
}

/* header */
.ramadhan-fatwa-header{
display:flex;
justify-content:space-between;
align-items:center;
padding:16px 18px;
font-weight:700;
font-size:17px;
background:#f8fafc;
border-bottom:1px solid #e2e8f0;
}

.ramadhan-fatwa-header span{
color:#065f46;
}

.ramadhan-fatwa-link{
font-size:13px;
padding:6px 12px;
border-radius:8px;
border:1px solid #22c55e;
color:#22c55e;
font-weight:600;
}

.ramadhan-fatwa-link:hover{
background:#22c55e;
color:white;
}

/* list */
.ramadhan-fatwa-list{
list-style:none;
}

.ramadhan-fatwa-list li{
padding:14px 18px;
border-bottom:1px solid #eef2f7;
}

.ramadhan-fatwa-list li:last-child{
border-bottom:none;
}

.ramadhan-fatwa-list a{
font-weight:600;
color:#1e3a8a;
display:block;
line-height:1.4;
}

.ramadhan-fatwa-list a:hover{
text-decoration:underline;
}

/* date */
.ramadhan-fatwa-date{
margin-top:6px;
font-size:12px;
color:#64748b;
}

/* empty */
.ramadhan-fatwa-empty{
font-size:14px;
color:#64748b;
}

/* button */
.ramadhan-fatwa-btn{
display:block;
margin:16px;
text-align:center;
background:#16a34a;
color:white;
padding:12px;
border-radius:10px;
font-weight:600;
transition:.3s;
}

.ramadhan-fatwa-btn:hover{
background:#15803d;
transform:translateY(-2px);
}



/* =========================================================
   11. FOOTER
========================================================= */
.ramadhan-site-footer{
background:#e5e7eb;
padding-top:60px;
margin-top:60px;
}

.ramadhan-footer-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:60px;
}

.ramadhan-footer-col h4{
margin-bottom:15px;
font-size:18px;
color:#111827;
}

.ramadhan-footer-col a{
display:block;
margin:6px 0;
color:#475569;
font-size:15px;
}

.ramadhan-footer-col a:hover{color:#000;}

.ramadhan-footer-bottom{
border-top:1px solid #d1d5db;
margin-top:50px;
padding:20px 0;
font-size:14px;
color:#475569;
}

.ramadhan-footer-bottom-wrap{
display:flex;
justify-content:space-between;
flex-wrap:wrap;
gap:10px;
}

.ramadhan-designer span{
color:#2563eb;
font-weight:600;
}



/* =========================================================
   12. SCROLL TO TOP BUTTON
========================================================= */
#ramadhanScrollTop{
position:fixed;
bottom:30px;
right:30px;
width:50px;
height:50px;
border:none;
border-radius:50%;
background:linear-gradient(135deg,#1e3a8a,#22c55e);
color:white;
font-size:22px;
cursor:pointer;
display:none;
align-items:center;
justify-content:center;
box-shadow:0 10px 25px rgba(0,0,0,.3);
transition:.3s;
z-index:9999;
}

#ramadhanScrollTop:hover{
transform:translateY(-4px);
box-shadow:0 18px 35px rgba(0,0,0,.4);
}



/* =========================================================
   13. RESPONSIVE DESIGN
========================================================= */

/* content stack */
@media(max-width:900px){
.ramadhan-content-grid{grid-template-columns:1fr;}
.ramadhan-sidenav{position:relative;top:auto;}
}

/* footer */
@media(max-width:700px){
.ramadhan-footer-bottom-wrap{
flex-direction:column;
text-align:center;
}
}

/* hero text */
@media(max-width:768px){
.ramadhan-hero h1{font-size:42px;}
.ramadhan-hero p{font-size:18px;}
.ramadhan-nav{display:none;}
}

/* hero small */
@media(max-width:768px){
.ramadhan-main-slogan{font-size:28px;}
.ramadhan-ayah-ar{font-size:20px;}
}


textarea#editor{
  height:450px;
}

.cke{
  border-radius:12px !important;
  overflow:hidden;
}
