/* BODY */
body{
    margin:0;
    font-family:'Kanit',sans-serif;
    background:#0b1020;
    color:#fff;
    overflow-x:hidden;
}

/* BACKGROUND GLOW */
.bg-glow{
    position:fixed;
    width:500px;
    height:500px;
    filter:blur(120px);
    opacity:.25;
    z-index:-1;
    border-radius:50%;
}

.glow1{
    background:#7c3aed;
    top:-150px;
    left:-150px;
}

.glow2{
    background:#06b6d4;
    bottom:-150px;
    right:-150px;
}

/* HERO */
.hero-wow{
    min-height:90vh;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:60px 20px;
}

.hero-inner h1{
    font-size:52px;
    line-height:1.2;
    margin:20px 0;
}

.hero-inner h1 span{
    background:linear-gradient(90deg,#06b6d4,#7c3aed);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.hero-inner p{
    color:#cbd5e1;
    font-size:18px;
}

/* BADGE */
.badge{
    display:inline-block;
    padding:8px 16px;
    border-radius:50px;
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(10px);
    font-size:14px;
}

/* BUTTONS */
.hero-actions{
    margin-top:25px;
    display:flex;
    gap:15px;
    justify-content:center;
    flex-wrap:wrap;
}

.btn-primary-wow{
    background:linear-gradient(135deg,#7c3aed,#06b6d4);
    padding:14px 26px;
    border-radius:14px;
    color:#fff;
    text-decoration:none;
    font-weight:600;
    box-shadow:0 10px 30px rgba(124,58,237,.4);
}

.btn-outline-wow{
    border:1px solid rgba(255,255,255,.2);
    padding:14px 26px;
    border-radius:14px;
    color:#fff;
    text-decoration:none;
}

/* SECTION */
.section-wow{
    padding:80px 20px;
}

.section-header{
    text-align:center;
    margin-bottom:40px;
}

.section-header h2{
    font-size:34px;
}

/* GRID */
.grid-wow{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
    max-width:1200px;
    margin:auto;
}

/* CARD */
.card-wow{
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    border-radius:20px;
    overflow:hidden;
    backdrop-filter:blur(15px);
    transition:.4s;
}

.card-wow:hover{
    transform:translateY(-10px) scale(1.02);
    box-shadow:0 20px 60px rgba(0,0,0,.5);
}

.card-image{
    position:relative;
}

.card-image img{
    width:100%;
    height:200px;
    object-fit:cover;
}

.card-badge{
    position:absolute;
    top:10px;
    left:10px;
    background:#22c55e;
    padding:6px 12px;
    border-radius:12px;
    font-size:12px;
}

.card-body{
    padding:15px;
}

.card-body h3{
    margin:0 0 10px 0;
}

.card-body p{
    color:#cbd5e1;
    font-size:14px;
}

/* BUTTON CARD */
.btn-card{
    display:inline-block;
    margin-top:10px;
    padding:10px 16px;
    background:#7c3aed;
    border-radius:10px;
    color:#fff;
    text-decoration:none;
}
.live-counter{
    margin-top:20px;
    display:flex;
    justify-content:center;
    gap:30px;
    color:#fff;
}

.live-counter div{
    background:rgba(255,255,255,.08);
    padding:12px 20px;
    border-radius:14px;
    backdrop-filter:blur(10px);
}
.particle{
    position:fixed;
    bottom:0;
    width:8px;
    height:8px;
    background:gold;
    border-radius:50%;
    animation:floatUp linear forwards;
    opacity:.8;
}

@keyframes floatUp{
    from{
        transform:translateY(0);
        opacity:1;
    }
    to{
        transform:translateY(-100vh);
        opacity:0;
    }
}
.candle-section{
    text-align:center;
    padding:40px 20px;
}

.candle-btn{
    padding:14px 24px;
    border:none;
    border-radius:16px;
    background:linear-gradient(135deg,#f59e0b,#ef4444);
    color:#fff;
    font-size:16px;
    cursor:pointer;
    box-shadow:0 10px 30px rgba(0,0,0,.2);
    transition:.3s;
}

.candle-btn:hover{
    transform:scale(1.05);
}
#liveFeed{
    max-height:300px;
    overflow:auto;
    padding:10px;
}

.feed-item{
    background:rgba(255,255,255,.06);
    margin-bottom:10px;
    padding:10px;
    border-radius:12px;
    backdrop-filter:blur(10px);
}
/* BACKGROUND */
.bg-glow{
    position:fixed;
    width:500px;
    height:500px;
    filter:blur(140px);
    opacity:.2;
    z-index:-1;
    border-radius:50%;
}

.glow1{
    background:#7c3aed;
    top:-150px;
    left:-150px;
}

.glow2{
    background:#06b6d4;
    bottom:-150px;
    right:-150px;
}

/* HERO */
.events-hero{
    padding:80px 20px 40px;
    text-align:center;
}

.events-hero h1{
    font-size:42px;
    margin-bottom:10px;
}

/* FILTER */
.filter-bar{
    display:flex;
    justify-content:center;
    gap:10px;
    margin-bottom:30px;
}

.filter-btn{
    padding:10px 18px;
    border:none;
    border-radius:12px;
    background:rgba(255,255,255,.08);
    color:#fff;
    cursor:pointer;
    backdrop-filter:blur(10px);
}

.filter-btn.active{
    background:linear-gradient(135deg,#7c3aed,#06b6d4);
}

/* GRID */
.grid-wow{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:25px;
    max-width:1200px;
    margin:auto;
    padding:20px;
}

/* CARD */
.event-card{
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    border-radius:20px;
    overflow:hidden;
    backdrop-filter:blur(15px);
    transition:.4s;
}

.event-card:hover{
    transform:translateY(-10px) scale(1.02);
    box-shadow:0 25px 60px rgba(0,0,0,.5);
}

/* IMAGE */
.event-image{
    position:relative;
}

.event-image img{
    width:100%;
    height:200px;
    object-fit:cover;
}

/* STATUS */
.status-badge{
    position:absolute;
    top:10px;
    left:10px;
    padding:6px 12px;
    border-radius:10px;
    font-size:12px;
}

.status-open{
    background:#22c55e;
    color:#fff;
}

.status-closed{
    background:#ef4444;
    color:#fff;
}

.status-draft{
    background:#f59e0b;
    color:#fff;
}

/* BODY */
.event-body{
    padding:15px;
}

.event-body h3{
    margin-bottom:10px;
}

.event-body p{
    color:#cbd5e1;
    font-size:14px;
}

/* INFO */
.event-info{
    display:flex;
    justify-content:space-between;
    font-size:13px;
    margin:10px 0;
    color:#94a3b8;
}

/* BUTTON */
.event-btn{
    display:block;
    text-align:center;
    padding:10px;
    border-radius:12px;
    background:linear-gradient(135deg,#7c3aed,#06b6d4);
    color:#fff;
    text-decoration:none;
    font-weight:600;
}
/* HERO */
.detail-hero{
    text-align:center;
    padding:60px 20px;
    color:#fff;
}

/* FORM */
.ritual-box{
    max-width:600px;
    margin:auto;
    background:rgba(255,255,255,.06);
    padding:25px;
    border-radius:20px;
    backdrop-filter:blur(15px);
}

.offerings{
    display:flex;
    justify-content:space-around;
    margin:15px 0;
}

textarea{
    width:100%;
    height:120px;
    border-radius:12px;
    padding:10px;
    border:none;
}

/* BUTTON */
.ritual-btn{
    width:100%;
    padding:14px;
    border:none;
    border-radius:14px;
    background:linear-gradient(135deg,#7c3aed,#06b6d4);
    color:#fff;
    font-size:16px;
    cursor:pointer;
}

/* PARTICLES */
.ritual-particle{
    position:fixed;
    bottom:0;
    width:10px;
    height:10px;
    border-radius:50%;
    background:gold;
    animation:floatUp linear forwards;
    opacity:.9;
}

@keyframes floatUp{
    to{
        transform:translateY(-100vh);
        opacity:0;
    }
}
.event-description{
    color:#cbd5e1;
    line-height:1.8;
    font-size:16px;
}

.event-description p{
    margin-bottom:12px;
}

.event-description strong{
    color:#fff;
}
/* HERO */
.article-hero{
    padding:80px 20px 40px;
    text-align:center;
    color:#fff;
}

.article-container h1{
    font-size:40px;
    margin:10px 0;
}

.article-badge{
    display:inline-block;
    padding:6px 14px;
    background:rgba(255,255,255,.08);
    border-radius:50px;
    backdrop-filter:blur(10px);
}

/* LAYOUT */
.article-layout{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:25px;
    max-width:1200px;
    margin:auto;
    padding:20px;
}

/* ARTICLE CARD */
.article-card{
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    border-radius:20px;
    overflow:hidden;
    backdrop-filter:blur(15px);
}

.article-image{
    width:100%;
    height:300px;
    object-fit:cover;
}

.article-body{
    padding:20px;
    color:#e2e8f0;
    line-height:1.9;
    font-size:16px;
}

/* TYPOGRAPHY FIX (CKEditor support) */
.article-body p{
    margin-bottom:14px;
}

.article-body strong{
    color:#fff;
}

/* SIDEBAR */
.article-sidebar{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.sidebar-card{
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    padding:15px;
    border-radius:16px;
    backdrop-filter:blur(15px);
}

.sidebar-card h3{
    margin-bottom:10px;
}

/* BUTTON */
.btn-ritual{
    display:block;
    text-align:center;
    padding:12px;
    border-radius:12px;
    background:linear-gradient(135deg,#7c3aed,#06b6d4);
    color:#fff;
    text-decoration:none;
    margin-top:10px;
}

/* RESPONSIVE */
@media(max-width:900px){
    .article-layout{
        grid-template-columns:1fr;
    }
}
/* LAYOUT */
.event-layout{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:20px;
    max-width:1200px;
    margin:auto;
    padding:20px;
}

/* LIVE COUNTER */
.live-counter{
    display:flex;
    gap:20px;
    justify-content:center;
    color:#fff;
}

/* BOX */
.event-box,.event-feed{
    background:rgba(255,255,255,.06);
    border-radius:20px;
    padding:20px;
    backdrop-filter:blur(15px);
}

/* BUTTON */
.btn-wow{
    width:100%;
    padding:14px;
    background:linear-gradient(135deg,#7c3aed,#06b6d4);
    border:none;
    border-radius:14px;
    color:#fff;
}

/* PARTICLE */
.particle{
    position:fixed;
    bottom:0;
    width:10px;
    height:10px;
    border-radius:50%;
    background:gold;
    animation:up 3s linear;
}

@keyframes up{
    to{
        transform:translateY(-100vh);
        opacity:0;
    }
}
.feed-item{

    padding:15px;

    border-radius:16px;

    margin-bottom:12px;

    background:
    rgba(255,255,255,.05);

    border:
    1px solid rgba(255,255,255,.08);

    backdrop-filter:
    blur(10px);

}

.feed-header{

    display:flex;

    align-items:center;

    gap:10px;

    margin-bottom:8px;

}

.feed-icon{

    font-size:22px;

}

.feed-header small{

    margin-left:auto;

    color:#94a3b8;

}

.feed-prayer{

    color:#e2e8f0;

    line-height:1.7;

}
.wow-form{

    background:
    rgba(255,255,255,.08);

    backdrop-filter:
    blur(25px);

    border:
    1px solid rgba(255,255,255,.15);

    border-radius:32px;

    padding:35px;

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

}

.ritual-header{

    text-align:center;

    margin-bottom:30px;

}

.ritual-icon{

    font-size:55px;

    margin-bottom:10px;

    animation:
    floatY 3s ease-in-out infinite;

}

@keyframes floatY{

    0%,100%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-10px);
    }

}

.offering-grid{

    display:grid;

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

    gap:15px;

    margin-bottom:25px;

}

.offering-card{

    cursor:pointer;

    border-radius:22px;

    padding:20px;

    text-align:center;

    background:
    rgba(255,255,255,.05);

    border:
    2px solid transparent;

    transition:.3s;

}

.offering-card:hover{

    transform:
    translateY(-5px);

}

.offering-card input{

    position:absolute;

    opacity:0;

    width:1px;

    height:1px;

    pointer-events:none;

}

.offering-card input:checked + .offering-icon{

    transform:scale(1.15);

}

.offering-card:has(input:checked){

    border-color:#fbbf24;

    background:
    rgba(251,191,36,.12);

}

.offering-icon{

    font-size:38px;

    margin-bottom:10px;

    transition:.3s;

}

/* FORM GRID */
.form-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
    margin-bottom:15px;
    width:100%;
}

/* INPUT GROUP */
.input-group-custom{
    position:relative;
    width:100%;
}

.input-group-custom i{
    position:absolute;
    left:16px;
    top:50%;
    transform:translateY(-50%);
    color:#94a3b8;
    z-index:2;
}

.input-group-custom input{
    width:100%;
    box-sizing:border-box; /* สำคัญ */
    padding:14px 15px 14px 48px;
    border:none;
    border-radius:16px;
    background:rgba(255,255,255,.08);
    color:#fff;
}

/* TEXTAREA */
.prayer-area{
    position:relative;
    width:100%;
}

.prayer-area i{
    position:absolute;
    left:15px;
    top:18px;
    color:#fbbf24;
    z-index:2;
}

.prayer-area textarea{
    width:100%;
    box-sizing:border-box; /* สำคัญ */
    min-height:180px;
    padding:16px 16px 16px 50px;
    border:none;
    border-radius:20px;
    background:rgba(255,255,255,.08);
    color:#fff;
    resize:none;
}
@media(max-width:768px){

    .form-grid{
        grid-template-columns:1fr;
    }

}

.btn-wow{

    width:100%;

    margin-top:20px;

    border:none;

    border-radius:20px;

    padding:18px;

    font-size:18px;

    font-weight:700;

    color:#fff;

    background:
    linear-gradient(
    135deg,
    #f59e0b,
    #f97316
    );

    transition:.3s;

}

.btn-wow:hover{

    transform:
    translateY(-4px);

    box-shadow:
    0 15px 40px rgba(249,115,22,.4);

}
.floating-blessing{

    position:fixed;

    bottom:-50px;

    z-index:99999;

    pointer-events:none;

    animation:
    blessingFloat linear forwards;

}

@keyframes blessingFloat{

    0%{

        transform:
        translateY(0)
        rotate(0deg);

        opacity:0;

    }

    10%{

        opacity:1;

    }

    100%{

        transform:
        translateY(-110vh)
        rotate(360deg);

        opacity:0;

    }

}
.hero-inner{
    position:relative;
    z-index:10;
}
.hero-wow{

    min-height:100vh;

    display:flex;

    align-items:center;

    justify-content:center;

    text-align:center;

    position:relative;

    overflow:hidden;

    background:
    linear-gradient(
    135deg,
    #0f172a,
    #1e293b
    );

}

.hero-overlay{
    position:relative;
    inset:0;
    pointer-events:none;

    background:
    radial-gradient(
    circle at center,
    rgba(251,191,36,.25),
    transparent 70%
    );

}

.hero-wow h1{

    font-size:clamp(3rem,8vw,6rem);

    font-weight:800;

    color:#fff;

    margin-bottom:20px;

}

.hero-wow h1 span{

    display:block;

    color:#fbbf24;

}

.stats-section{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(220px,1fr));

    gap:20px;

    margin:60px auto;

}

.stat-box{

    background:
    rgba(255,255,255,.08);

    backdrop-filter:
    blur(25px);

    border-radius:25px;

    padding:25px;

    color:#fff;

    display:flex;

    gap:15px;

    align-items:center;

}

.live-feed-card{

    background:
    rgba(255,255,255,.08);

    backdrop-filter:
    blur(20px);

    border-radius:30px;

    padding:25px;

    margin-top:30px;

}

.dot{

    width:10px;

    height:10px;

    background:red;

    border-radius:50%;

    display:inline-block;

    animation:pulse 1s infinite;

}

@keyframes pulse{

    0%{transform:scale(1);}
    50%{transform:scale(1.4);}
    100%{transform:scale(1);}

}

.card-wow{

    background:#fff;

    border-radius:30px;

    overflow:hidden;

    transition:.35s;

    box-shadow:
    0 20px 50px rgba(0,0,0,.08);

}

.card-wow:hover{

    transform:
    translateY(-10px);

}

.card-image img{

    width:100%;

    height:260px;

    object-fit:cover;

}

.card-status{

    position:absolute;

    top:15px;

    right:15px;

    background:#16a34a;

    color:#fff;

    padding:8px 15px;

    border-radius:50px;

}
.pulse-dot{
    width:10px;
    height:10px;
    background:#22c55e;
    border-radius:50%;
    display:inline-block;
    margin-right:8px;
    animation:pulse 1s infinite;
}
.live-counter{
    display:flex;
    justify-content:center;
    gap:20px;
}

.live-item{
    min-width:140px;
    text-align:center;
    padding:15px;
    border-radius:16px;
    background:rgba(255,255,255,.08);
    color:#fff;
}

.live-item .icon{
    display:block;
    font-size:24px;
}

.live-item span[id]{
    display:block;
    font-size:32px;
    font-weight:700;
    margin-top:5px;
}

.live-item small{
    display:block;
    margin-top:5px;
    opacity:.8;
}