/* =====================================================
   TPQ DIGITAL V4
   PREMIUM PORTAL
===================================================== */

:root{

--primary:#0B8F63;
--primary-dark:#066548;

--gold:#F4B400;

--wali:#16A34A;
--guru:#2563EB;
--admin:#7C3AED;

--bg:#F3F7F5;

--text:#1F2937;
--muted:#64748B;

--radius:28px;

}

*{

margin:0;
padding:0;
box-sizing:border-box;

}

html{

scroll-behavior:smooth;

}

body{

font-family:
"Segoe UI",
Arial,
sans-serif;

background:
linear-gradient(
135deg,
#0B6F4B,
#11855D);

color:var(--text);

}

.page{

padding:18px;

}

.container{

max-width:1650px;

margin:auto;

background:white;

border-radius:30px;

overflow:hidden;

box-shadow:
0 30px 70px rgba(0,0,0,.18);

}

/* =====================================================
   TOP BAR
===================================================== */

.topbar{

display:flex;

justify-content:space-between;

align-items:center;

flex-wrap:wrap;

gap:15px;

padding:18px 30px;

background:var(--primary);

color:white;

}

.topbar-left{

display:flex;

flex-wrap:wrap;

gap:12px;

}

.info-box{

display:flex;

align-items:center;

gap:8px;

padding:12px 18px;

border-radius:50px;

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

backdrop-filter:blur(10px);

font-size:15px;

font-weight:500;

}

.portal-chip{

padding:12px 24px;

background:white;

color:var(--primary);

border-radius:40px;

font-weight:700;

box-shadow:0 8px 20px rgba(0,0,0,.15);

}

.online-dot{

display:inline-block;

width:10px;

height:10px;

border-radius:50%;

background:#00ff80;

margin-left:6px;

animation:pulse 1.2s infinite;

}

@keyframes pulse{

0%{

transform:scale(.8);

opacity:.5;

}

50%{

transform:scale(1.3);

opacity:1;

}

100%{

transform:scale(.8);

opacity:.5;

}

}
/* =====================================================
   HERO
===================================================== */

.hero{

position:relative;

height:650px;

margin:25px;

border-radius:28px;

overflow:hidden;

}

.hero-bg{

position:absolute;

top:0;

left:0;

width:100%;

height:100%;

object-fit:cover;

filter:blur(3px) brightness(.42);

transform:scale(1.08);

z-index:1;

}

.hero-overlay{

position:absolute;

top:0;
right:0;
bottom:0;
left:0;

display:flex;

flex-direction:column;

justify-content:center;

align-items:center;

text-align:center;

padding:40px;

background:linear-gradient(
rgba(0,60,30,.20),
rgba(0,60,30,.35)
);

z-index:2;

}

.hero-overlay .logo{

width:170px;

height:170px;

object-fit:contain;

background:#fff;

padding:12px;

border-radius:50%;

box-shadow:0 15px 40px rgba(0,0,0,.35);

margin-bottom:25px;

}

.hero h1{

font-size:64px;

font-weight:800;

color:#fff;

letter-spacing:1px;

margin-bottom:12px;

text-shadow:0 4px 15px rgba(0,0,0,.45);

}

.hero h2{

font-size:30px;

font-weight:600;

color:#FFE082;

margin-bottom:22px;

text-shadow:0 2px 10px rgba(0,0,0,.35);

}

.hero p{

max-width:850px;

font-size:20px;

line-height:1.9;

color:#fff;

text-shadow:0 2px 10px rgba(0,0,0,.55);

}

/* =====================================================
   HERO RESPONSIVE
===================================================== */

@media (max-width:768px){

.hero{

height:420px;

margin:10px;

}

.hero-overlay{

padding:20px;

}

.hero-overlay .logo{

width:90px;

height:90px;

padding:8px;

margin-bottom:15px;

}

.hero h1{

font-size:30px;

}

.hero h2{

font-size:20px;

margin-bottom:12px;

}

.hero p{

font-size:15px;

line-height:1.6;

max-width:95%;

}

}

/* =====================================================
   PORTAL MENU
===================================================== */

.portal-menu{

padding:70px 35px;

background:#f7faf8;

}

.cards{

display:grid;

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

gap:32px;

align-items:stretch;

}

.portal-btn{

display:block;

width:100%;

padding:16px;

margin-top:25px;

border-radius:14px;

text-decoration:none;

font-weight:700;

color:#fff;

text-align:center;

transition:.3s;

}

.portal-card.wali .portal-btn{

background:#16a34a;

}

.portal-card.guru .portal-btn{

background:#2563eb;

}

.portal-card.admin .portal-btn{

background:#7c3aed;

}

.portal-btn:hover{

transform:translateY(-3px);

filter:brightness(.95);

}

.portal-content{

display:flex;

flex-direction:column;

height:100%;

}

.portal-card{

background:#fff;

border-radius:24px;

overflow:hidden;

box-shadow:0 18px 40px rgba(0,0,0,.08);

transition:.35s;

display:flex;

flex-direction:column;

border:1px solid #edf2f7;

}

.portal-card:hover{

transform:translateY(-10px);

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

}

.menu-image{

width:100%;

height:230px;

object-fit:cover;

display:block;

}

.portal-content{

padding:28px;

display:flex;

flex-direction:column;

height:100%;

}

.portal-icon{

width:70px;

height:70px;

border-radius:18px;

display:flex;

align-items:center;

justify-content:center;

font-size:34px;

color:#fff;

margin-bottom:20px;

}

.portal-card.wali .portal-icon{

background:var(--wali);

}

.portal-card.guru .portal-icon{

background:var(--guru);

}

.portal-card.admin .portal-icon{

background:var(--admin);

}

.portal-content h3{

font-size:28px;

font-weight:700;

margin-bottom:15px;

color:#111827;

}

.portal-content p{

color:var(--muted);

line-height:1.8;

margin-bottom:22px;

}

.portal-content ul{

list-style:none;

margin:0;

padding:0;

margin-bottom:28px;

}

.portal-content li{

padding:10px 0;

border-bottom:1px solid #eef2f7;

display:flex;

align-items:center;

gap:10px;

color:#475569;

}

.portal-content li:last-child{

border:none;

}

.portal-content li::before{

content:"✔";

color:#16a34a;

font-weight:bold;

}

.portal-btn{

margin-top:auto;

display:block;

width:100%;

padding:16px;

border-radius:14px;

text-align:center;

text-decoration:none;

font-weight:700;

color:#fff;

transition:.3s;

}

.portal-card.wali .portal-btn{

background:var(--wali);

}

.portal-card.guru .portal-btn{

background:var(--guru);

}

.portal-card.admin .portal-btn{

background:var(--admin);

}

.portal-btn:hover{

transform:translateY(-3px);

filter:brightness(.95);

}

/* =====================================================
   STATISTIK
===================================================== */

.stats{

padding:80px 35px;

background:#ffffff;

text-align:center;

}

.stats h2{

font-size:42px;

color:var(--primary);

margin-bottom:15px;

}

.stats p{

max-width:760px;

margin:auto;

line-height:1.8;

color:var(--muted);

margin-bottom:50px;

}

.stats-grid{

display:grid;

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

gap:25px;

}

.stat-card{

background:#f8fafc;

border-radius:22px;

padding:35px 20px;

box-shadow:0 12px 30px rgba(0,0,0,.08);

transition:.3s;

}

.stat-card:hover{

transform:translateY(-8px);

}

.stat-number{

font-size:44px;

font-weight:800;

color:var(--primary);

margin-bottom:10px;

}

.stat-title{

color:var(--muted);

font-size:16px;

}

/* =====================================================
   FEATURES
===================================================== */

.features{

padding:80px 35px;

background:#f7faf8;

}

.features h2{

text-align:center;

font-size:42px;

color:var(--primary);

margin-bottom:15px;

}

.features>p{

text-align:center;

max-width:760px;

margin:auto;

line-height:1.8;

color:var(--muted);

margin-bottom:50px;

}

.feature-grid{

display:grid;

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

gap:28px;

}

.feature-box{

background:white;

padding:35px;

border-radius:22px;

box-shadow:0 12px 30px rgba(0,0,0,.08);

transition:.3s;

text-align:center;

}

.feature-box:hover{

transform:translateY(-8px);

}

.feature-icon{

font-size:42px;

margin-bottom:20px;

}

.feature-box h3{

margin-bottom:15px;

}

.feature-box p{

line-height:1.8;

color:var(--muted);

}

/* =====================================================
   FOOTER
===================================================== */

.footer{

background:#0f172a;

color:white;

padding:70px 40px 30px;

}

.footer-grid{

display:grid;

grid-template-columns:2fr 1fr 1fr;

gap:40px;

}

.footer h3{

margin-bottom:18px;

}

.footer p{

line-height:1.8;

color:#cbd5e1;

}

.footer-menu{

list-style:none;

padding:0;

}

.footer-menu li{

margin-bottom:12px;

}

.footer-menu a{

text-decoration:none;

color:#cbd5e1;

}

.footer-menu a:hover{

color:white;

}

.footer hr{

margin:45px 0 25px;

border:none;

height:1px;

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

}

.copyright{

text-align:center;

color:#94a3b8;

}

/* =====================================================
   RESPONSIVE
===================================================== */

@media(max-width:1200px){

.stats-grid{

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

}

.feature-grid{

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

}

.footer-grid{

grid-template-columns:1fr 1fr;

}

}

@media(max-width:768px){

.page{

padding:8px;

}

.container{

border-radius:18px;

}

.topbar{

justify-content:center;

text-align:center;

padding:18px;

}

.topbar-left{

justify-content:center;

}

.portal-chip{

width:100%;

}

.hero{

height:400px;

margin:10px;

}

.hero h1{

font-size:30px;

}

.hero h2{

font-size:20px;

}

.hero p{

font-size:15px;

line-height:1.7;

}

.welcome{

padding-top:20px;

padding-bottom:40px;

position:relative;

z-index:5;

background:#fff;

}

.welcome h2{

font-size:26px;

}

.welcome p{

font-size:13px;

} 

.cards{

display:grid;

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

gap:10px;

}

.portal-card{

border-radius:16px;

}

.portal-content{

padding:12px;

}

.menu-image{

height:95px;

border-radius:12px;

}

.portal-content h3{

font-size:15px;

margin-bottom:8px;

}

.portal-content p{

font-size:11px;

line-height:1.4;

margin-bottom:10px;

}

.portal-content ul{

margin-bottom:12px;

}

.portal-content li{

font-size:10px;

padding:5px 0;

}

.portal-btn{

padding:9px;

font-size:11px;

border-radius:10px;

}
.menu-image{

height:180px;

}

.stats-grid{

grid-template-columns:1fr;

}

.feature-grid{

grid-template-columns:1fr;

}

.footer-grid{

grid-template-columns:1fr;

text-align:center;

}

}

/* ==========================================================
CALL TO ACTION
========================================================== */

.cta{

padding:90px 30px;

text-align:center;

background:linear-gradient(135deg,#0b8f63,#066548);

color:#fff;

}

.cta h2{

font-size:42px;

font-weight:800;

margin-bottom:20px;

}

.cta p{

font-size:18px;

line-height:1.8;

max-width:800px;

margin:0 auto 35px;

opacity:.95;

}

.ctaButton{

display:inline-block;

padding:18px 45px;

background:#ffffff;

color:#0b8f63;

text-decoration:none;

font-weight:700;

font-size:18px;

border-radius:50px;

transition:.3s;

box-shadow:0 12px 30px rgba(0,0,0,.2);

}

.ctaButton:hover{

transform:translateY(-5px);

background:#f3f4f6;

box-shadow:0 18px 40px rgba(0,0,0,.25);

}

@media(max-width:768px){

.cta{

padding:60px 20px;

}

.cta h2{

font-size:30px;

}

.cta p{

font-size:16px;

}

.ctaButton{

width:100%;

max-width:320px;

}

}