/*
|--------------------------------------------------------------------------
| TPQ AT-TAQWA
|--------------------------------------------------------------------------
| File      : assets/css/style.css
| Version   : 1.0.0
| Author    : OpenAI & Alif Rediansyah
|--------------------------------------------------------------------------
| Tema :
| Navy Blue + Royal Blue + Gold
| Mobile First
|--------------------------------------------------------------------------
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================
   RESET
========================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#F5F7FA;
    color:#1E293B;
    line-height:1.6;
    overflow-x:hidden;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
    color:inherit;
}

ul{
    list-style:none;
}

button{
    font-family:'Poppins',sans-serif;
    cursor:pointer;
    border:none;
}

input,
select,
textarea{
    font-family:'Poppins',sans-serif;
    outline:none;
}

/* ==========================================================
   ROOT COLOR
========================================================== */

:root{

    --primary:#0F2E6D;
    --secondary:#2F6EDB;
    --hover:#4B8DFF;
    --gold:#E7B35A;

    --white:#FFFFFF;

    --bg:#F5F7FA;

    --text:#1E293B;

    --muted:#64748B;

    --border:#E5E7EB;

    --success:#22C55E;

    --danger:#EF4444;

    --warning:#F59E0B;

    --shadow:0 12px 35px rgba(0,0,0,.08);

    --radius:18px;

    --transition:.3s;
}

/* ==========================================================
   CONTAINER
========================================================== */

.container{

    width:100%;
    max-width:1250px;

    margin:auto;

    padding-left:20px;
    padding-right:20px;

}

.section{

    padding:80px 0;

}

.section-title{

    text-align:center;

    margin-bottom:60px;

}

.section-title h2{

    font-size:34px;

    color:var(--primary);

    font-weight:700;

    margin-bottom:15px;

}

.section-title p{

    color:var(--muted);

    max-width:700px;

    margin:auto;

}

/* ==========================================================
   BUTTON
========================================================== */

.btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    padding:14px 28px;

    border-radius:50px;

    transition:.3s;

    font-weight:600;

}

.btn-primary{

    background:linear-gradient(
        135deg,
        var(--secondary),
        var(--primary)
    );

    color:white;

    box-shadow:var(--shadow);

}

.btn-primary:hover{

    transform:translateY(-3px);

}

.btn-outline{

    border:2px solid white;

    color:white;

}

.btn-outline:hover{

    background:white;

    color:var(--primary);

}

.btn-warning{

    background:var(--gold);
    color:#fff !important;

}

.btn-warning:hover{

    background:#d39d09;
    color:#fff !important;

}

/* ==========================================================
   CARD
========================================================== */

.card{

    background:white;

    border-radius:var(--radius);

    box-shadow:var(--shadow);

    padding:30px;

}

.card:hover{

    transform:translateY(-4px);

    transition:.3s;

}

/* ==========================================================
   NAVBAR
========================================================== */

.navbar{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    z-index:999;

    background:rgba(15,46,109,.92);

    backdrop-filter:blur(15px);

}

.nav-container{

    height:80px;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.logo{

    display:flex;
    align-items:center;
    gap:14px;
    color:#fff;

}

.logo img{

    width:58px;
    height:58px;
    object-fit:contain;
    display:block;
    flex-shrink:0;

}


.logo h2{

    margin:0;
    line-height:1;
    display:flex;
    align-items:center;
    height:58px;

    color:#fff;

    font-size:24px;
    font-weight:700;

}

.logo span{

    color:var(--gold);

}

.menu{

    display:flex;

    gap:35px;

}

.menu a{

    color:white;

    font-weight:500;

    position:relative;

}

.menu a::after{

    content:"";

    position:absolute;

    width:0;

    height:2px;

    background:var(--gold);

    left:0;

    bottom:-6px;

    transition:.3s;

}

.menu a:hover::after{

    width:100%;

}

.login-btn{

    background:var(--gold);

    color:var(--primary);

    padding:10px 22px;

    border-radius:50px;

    font-weight:600;

}

.login-btn:hover{

    background:white;

}

/* ==========================================================
   HERO
========================================================== */

.hero{

    padding-top:140px;

    padding-bottom:100px;

    background:linear-gradient(
        135deg,
        #2F6EDB 0%,
        #173E87 40%,
        #0F2E6D 100%
    );

    position:relative;

    overflow:hidden;

}

.hero::before{

    content:"";

    position:absolute;

    inset:0;

    background-image:radial-gradient(rgba(255,255,255,.08) 1px,transparent 1px);

    background-size:25px 25px;

}

.hero-content{

    position:relative;

    display:grid;

    grid-template-columns:1fr;

    gap:50px;

    align-items:center;

}

.hero-text h1{

    color:white;

    font-size:52px;

    font-weight:700;

    line-height:1.2;

    margin-bottom:20px;

}

.hero-text h1 span{

    color:var(--gold);

}

.hero-text p{

    color:rgba(255,255,255,.85);

    font-size:18px;

    margin-bottom:35px;

}

.hero-button{

    display:flex;

    gap:15px;

    flex-wrap:wrap;

}

/* ==========================================================
   HERO IMAGE
========================================================== */

.hero-image{
    display:flex;
    justify-content:center;
    align-items:center;
}

.hero-image img{
    max-width:480px;
    width:100%;
    animation:float 4s ease-in-out infinite;
}

@keyframes float{

    0%{
        transform:translateY(0px);
    }

    50%{
        transform:translateY(-15px);
    }

    100%{
        transform:translateY(0px);
    }

}

/* ==========================================================
   STATISTIC
========================================================== */

.stats{

    margin-top:-70px;
    position:relative;
    z-index:5;

}

.stats-grid{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:25px;

}

.stat-card{

    background:#fff;
    border-radius:20px;
    padding:30px;
    text-align:center;
    box-shadow:var(--shadow);
    transition:.3s;

}

.stat-card:hover{

    transform:translateY(-6px);

}

.stat-icon{

    width:70px;
    height:70px;

    margin:auto;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:rgba(47,110,219,.1);

    color:var(--secondary);

    font-size:30px;

    margin-bottom:20px;

}

.stat-card h2{

    font-size:42px;

    color:var(--primary);

    margin-bottom:5px;

}

.stat-card p{

    color:var(--muted);

}

/* ==========================================================
   ABOUT
========================================================== */

.about-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

    gap:50px;

    align-items:center;

}

.about-image img{

    border-radius:20px;

    box-shadow:var(--shadow);

}

.about-content h2{

    color:var(--primary);

    font-size:36px;

    margin-bottom:20px;

}

.about-content p{

    margin-bottom:18px;

    color:var(--muted);

}

/* ==========================================================
   FEATURE
========================================================== */

.feature-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:25px;

}

.feature-card{

    background:white;

    border-radius:18px;

    padding:30px;

    text-align:center;

    box-shadow:var(--shadow);

    transition:.3s;

}

.feature-card:hover{

    transform:translateY(-8px);

}

.feature-icon{

    width:75px;

    height:75px;

    margin:auto;

    margin-bottom:25px;

    border-radius:50%;

    background:linear-gradient(
        135deg,
        var(--secondary),
        var(--primary)
    );

    color:white;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:32px;

}

.feature-card h3{

    color:var(--primary);

    margin-bottom:15px;

}

.feature-card p{

    color:var(--muted);

}

/* ==========================================================
   CLASS
========================================================== */

.class-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));

    gap:25px;

}

.class-card{

    background:white;

    border-radius:20px;

    overflow:hidden;

    box-shadow:var(--shadow);

    transition:.3s;

}

.class-card:hover{

    transform:translateY(-8px);

}

.class-image{

    height:220px;

    overflow:hidden;

}

.class-image img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:.5s;

}

.class-card:hover img{

    transform:scale(1.08);

}

.class-body{

    padding:25px;

}

.class-body h3{

    color:var(--primary);

    margin-bottom:12px;

}

.class-body p{

    color:var(--muted);

    margin-bottom:20px;

}

.class-footer{

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.class-footer span{

    color:var(--gold);

    font-weight:600;

}

/* ==========================================================
   GURU
========================================================== */

.teacher-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:25px;

}

.teacher-card{

    background:white;

    border-radius:20px;

    padding:30px;

    text-align:center;

    box-shadow:var(--shadow);

    transition:.3s;

}

.teacher-card:hover{

    transform:translateY(-8px);

}

.teacher-photo{

    width:120px;

    height:120px;

    border-radius:50%;

    overflow:hidden;

    margin:auto;

    margin-bottom:20px;

    border:5px solid rgba(47,110,219,.1);

}

.teacher-photo img{

    width:100%;

    height:100%;

    object-fit:cover;

}

.teacher-card h3{

    color:var(--primary);

    margin-bottom:6px;

}

.teacher-card p{

    color:var(--muted);

}

.teacher-social{

    display:flex;

    justify-content:center;

    gap:12px;

    margin-top:20px;

}

.teacher-social a{

    width:40px;

    height:40px;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:50%;

    background:rgba(47,110,219,.1);

    color:var(--secondary);

    transition:.3s;

}

.teacher-social a:hover{

    background:var(--secondary);

    color:white;

}

/* ==========================================================
   PENGUMUMAN
========================================================== */

.news-grid{

    display:grid;

    gap:20px;

}

.news-card{

    background:white;

    border-left:5px solid var(--gold);

    border-radius:18px;

    padding:25px;

    box-shadow:var(--shadow);

}

.news-card h4{

    color:var(--primary);

    margin-bottom:10px;

}

.news-card small{

    color:var(--muted);

}

.news-card p{

    margin-top:15px;

    color:var(--muted);

}

/* ==========================================================
   FOOTER
========================================================== */

.footer{
    background:var(--primary);
    color:#fff;
    padding:70px 0 20px;
}

.footer-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:40px;
}

.footer h3,
.footer h4{
    margin-bottom:20px;
}

.footer p{
    color:rgba(255,255,255,.75);
    margin-bottom:10px;
}

.footer ul li{
    margin-bottom:10px;
}

.footer ul li a{
    color:rgba(255,255,255,.75);
    transition:.3s;
}

.footer ul li a:hover{
    color:var(--gold);
    padding-left:6px;
}

.footer-bottom{
    margin-top:50px;
    border-top:1px solid rgba(255,255,255,.15);
    text-align:center;
    padding-top:20px;
    font-size:14px;
}

/* ==========================================================
   FORM
========================================================== */

.form-group{
    margin-bottom:20px;
}

.form-label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
    color:var(--primary);
}

.form-control{
    width:100%;
    border:1px solid var(--border);
    border-radius:12px;
    padding:12px 16px;
    font-size:15px;
    transition:.3s;
}

.form-control:focus{
    border-color:var(--secondary);
    box-shadow:0 0 0 3px rgba(47,110,219,.15);
}

/* ==========================================================
   TABLE
========================================================== */

.table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:var(--shadow);
}

.table thead{
    background:var(--primary);
    color:#fff;
}

.table th,
.table td{
    padding:14px;
    border-bottom:1px solid #eee;
    text-align:left;
}

.table tbody tr:hover{
    background:#F8FAFC;
}

/* ==========================================================
   DASHBOARD CARD
========================================================== */

.dashboard-card{
    background:#fff;
    border-radius:20px;
    padding:25px;
    box-shadow:var(--shadow);
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.dashboard-card .icon{
    width:65px;
    height:65px;
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(47,110,219,.12);
    color:var(--secondary);
    font-size:28px;
}

.dashboard-card h2{
    color:var(--primary);
    margin-bottom:5px;
}

.dashboard-card small{
    color:var(--muted);
}

/* ==========================================================
   BADGE
========================================================== */

.badge{
    display:inline-block;
    padding:5px 12px;
    border-radius:30px;
    font-size:12px;
    font-weight:600;
}

.badge-success{
    background:#DCFCE7;
    color:#15803D;
}

.badge-danger{
    background:#FEE2E2;
    color:#B91C1C;
}

.badge-warning{
    background:#FEF3C7;
    color:#B45309;
}

.badge-primary{
    background:#DBEAFE;
    color:#1D4ED8;
}

/* ==========================================================
   ALERT
========================================================== */

.alert{
    padding:15px 20px;
    border-radius:15px;
    margin-bottom:20px;
}

.alert-success{
    background:#DCFCE7;
    color:#166534;
}

.alert-danger{
    background:#FEE2E2;
    color:#991B1B;
}

.alert-warning{
    background:#FEF3C7;
    color:#92400E;
}

.alert-info{
    background:#DBEAFE;
    color:#1E40AF;
}

/* ==========================================================
   PAGINATION
========================================================== */

.pagination{
    display:flex;
    justify-content:center;
    gap:8px;
    margin-top:30px;
}

.pagination a{
    width:42px;
    height:42px;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#fff;
    border-radius:12px;
    box-shadow:var(--shadow);
    transition:.3s;
}

.pagination a.active{
    background:var(--secondary);
    color:#fff;
}

.pagination a:hover{
    background:var(--secondary);
    color:#fff;
}

/* ==========================================================
   UTILITIES
========================================================== */

.text-center{text-align:center;}
.text-right{text-align:right;}

.mt-1{margin-top:10px;}
.mt-2{margin-top:20px;}
.mt-3{margin-top:30px;}
.mt-4{margin-top:40px;}
.mt-5{margin-top:50px;}

.mb-1{margin-bottom:10px;}
.mb-2{margin-bottom:20px;}
.mb-3{margin-bottom:30px;}
.mb-4{margin-bottom:40px;}
.mb-5{margin-bottom:50px;}

.py-5{
    padding:80px 0;
}

.d-flex{
    display:flex;
}

.justify-between{
    justify-content:space-between;
}

.align-center{
    align-items:center;
}

/* ==========================================================
   LOADER
========================================================== */

.loader{
    width:45px;
    height:45px;
    border:5px solid #ddd;
    border-top:5px solid var(--secondary);
    border-radius:50%;
    animation:spin 1s linear infinite;
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

/* ==========================================================
   BACK TO TOP
========================================================== */

.back-top{
    position:fixed;
    right:25px;
    bottom:25px;
    width:50px;
    height:50px;
    border-radius:50%;
    background:var(--secondary);
    color:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:22px;
    box-shadow:var(--shadow);
    transition:.3s;
    z-index:999;
}

.back-top:hover{
    background:var(--primary);
    transform:translateY(-5px);
}

/* ==========================================================
   CUSTOM SCROLLBAR
========================================================== */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#EEF2F7;
}

::-webkit-scrollbar-thumb{
    background:var(--secondary);
    border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{
    background:var(--primary);
}

/* ==========================================================
   EMPTY DATA
========================================================== */

.empty-data{

    background:#fff;

    border-radius:20px;

    padding:60px 30px;

    text-align:center;

    box-shadow:var(--shadow);

}

.empty-icon{

    width:90px;

    height:90px;

    margin:auto;

    margin-bottom:20px;

    border-radius:50%;

    background:rgba(47,110,219,.08);

    display:flex;

    justify-content:center;

    align-items:center;

    color:var(--secondary);

    font-size:42px;

}

.empty-data h3{

    color:var(--primary);

    margin-bottom:10px;

}

.empty-data p{

    color:var(--muted);

}

.page-content{

    padding-top:100px;

    min-height:calc(100vh - 100px);

}