/* =====================================
   STIT MUHAMMADIYAH ACEH BARAT DAYA
   PORTAL UI VERSION 4.0
===================================== */

:root{
    --primary:#0B7A3E;
    --primary-dark:#075B2F;
    --secondary:#14532D;
    --gold:#F4C542;
    --light:#F8FAFC;
    --dark:#1E293B;
    --text:#64748B;
    --white:#FFFFFF;

    --radius:24px;

    --shadow:
        0 10px 30px rgba(0,0,0,.08);

    --transition:.3s ease;
}

/* =====================================
RESET
===================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#fff;
    color:var(--text);
    overflow-x:hidden;
}

a{
    text-decoration:none;
}

img{
    max-width:100%;
    display:block;
}

/* =====================================
CONTAINER
===================================== */

.container-xl-custom{
    width:100%;
    max-width:1350px;
    margin:auto;
    padding-left:24px;
    padding-right:24px;
}

/* =====================================
TOPBAR
===================================== */

.topbar{
    background:var(--primary-dark);
    color:#fff;
    padding:10px 0;
    font-size:14px;
}

.topbar-wrapper{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:15px;
}

.topbar .left,
.topbar .right{
    display:flex;
    gap:20px;
    align-items:center;
    flex-wrap:wrap;
}

.topbar a{
    color:#fff;
    transition:var(--transition);
}

.topbar a:hover{
    color:#FFD54F;
}

/* =====================================
NAVBAR
===================================== */
.main-navbar .nav-menu li {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 5px 20px rgba(0,0,0,.15);
    border-radius: 8px;
    top: 100%;
    left: 0;
    z-index: 999;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
}

.dropdown-menu li a:hover {
    background: #f5f5f5;
}

.nav-item:hover .dropdown-menu {
    display: block;
}

.main-navbar{
    background:#fff;
    position:sticky;
    top:0;
    z-index:9999;
    box-shadow:0 2px 20px rgba(0,0,0,.05);
}

.nav-wrapper{
    min-height:90px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo-area{
    display:flex;
    align-items:center;
    gap:15px;
}

.logo-area img{
    width:70px;
}

.logo-title{
    line-height:1.2;
}

.logo-title .small{
    font-size:25px;
    color:var(--primary);
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:-1px;
}

.logo-title .main{
    font-size:12px;
    color:var(--primary);
    font-weight:800;
    letter-spacing:3px;
}

.nav-menu{
    list-style:none;
    display:flex;
    gap:32px;
    margin:0;
    padding:0;
    align-items:center;
}

.nav-menu a{
    color:var(--dark);
    font-weight:600;
    transition:var(--transition);
    position:relative;
}

.nav-menu a:hover{
    color:var(--primary);
}

.nav-menu a::after{
    content:"";
    position:absolute;
    width:0;
    height:3px;
    background:var(--primary);
    bottom:-8px;
    left:0;
    transition:var(--transition);
    border-radius:10px;
}

.nav-menu a:hover::after{
    width:100%;
}

/* =====================================
HERO
===================================== */

.hero{
    position:relative;
    min-height:550px;
    display:flex;
    align-items:center;
    overflow:hidden;
    background:#0B7A3E;
}

/* Gambar gedung sisi kanan */
.hero::after{
    content:"";
    position:absolute;
    top:0;
    right:0;
    width:65%;
    height:100%;

    background-image:
        linear-gradient(
            to right,
            rgba(11,122,62,1) 0%,
            rgba(11,122,62,.96) 8%,
            rgba(11,122,62,.82) 16%,
            rgba(11,122,62,.55) 26%,
            rgba(11,122,62,.20) 38%,
            rgba(11,122,62,0) 52%
        ),
        url('/assets/img/kampus-new.jpg');

    background-size:cover;
    background-position:center right;
    background-repeat:no-repeat;

    z-index:1;
}


.hero-content{
    position:relative;
    z-index:5;
    max-width:720px;
    padding-top:10px;
}

/* =====================================
BADGE
===================================== */

.hero-badge{
    display:inline-block;
    background:#F4C542;
    color:#000;
    padding:12px 24px;
    border-radius:999px;
    font-size:20px;
    font-weight:700;
    letter-spacing:1px;
    margin-bottom:20px;
    box-shadow:0 10px 25px rgba(0,0,0,.15);
}

/* =====================================
TEXT HERO
===================================== */

.hero h1{
    margin:0;
    font-family:Poppins, Helvetica, sans-serif;
    color:#fff;
}

/* Sekolah Tinggi Ilmu Tarbiyah */
.hero-line-1{
    display:block;
    font-size:30px;
    font-weight:800;
    line-height:1.1;
    letter-spacing:3px;
    margin-bottom:1px;
    color:#FFFFFF;
}

/* Muhammadiyah Aceh Barat Daya */
.hero-line-2{
    display:block;
    font-size:28px;
    font-weight:500;
    line-height:1.5;
    letter-spacing:2px;
    margin-bottom:1px;
    color:#E8F5E9;
    max-width:620px;
}

/* Deskripsi */
.hero p{
    margin-top:30px;
    font-size:20px;
    line-height:1.9;
    color:#F1F5F9;
    max-width:600px;
}

/* =====================================
BUTTON HERO
===================================== */

.hero-buttons{
    display:flex;
    gap:18px;
    margin-top:42px;
    flex-wrap:wrap;
}

.btn-pmb{
    background:#F4C542;
    color:#000;
    padding:16px 34px;
    border-radius:18px;
    font-weight:700;
    transition:.3s ease;
    box-shadow:0 10px 25px rgba(0,0,0,.18);
}

.btn-pmb:hover{
    transform:translateY(-4px);
}

.btn-profile{
    border:2px solid rgba(255,255,255,.85);
    color:#fff;
    padding:16px 34px;
    border-radius:18px;
    font-weight:700;
    transition:.3s ease;
    background:rgba(255,255,255,.05);
    backdrop-filter:blur(4px);
}

.btn-profile:hover{
    background:#fff;
    color:var(--primary);
}

/* =====================================
RESPONSIVE HERO
===================================== */

@media(max-width:991px){

    .hero{
        min-height:auto;
        padding:120px 0;
    }

    .hero::after{
        width:100%;
        opacity:.18;
    }

    .hero::before{
        display:none;
    }

    .hero-line-1{
        font-size:40px;
    }

    .hero-line-2{
        font-size:24px;
    }

    .hero p{
        font-size:18px;
    }
}

@media(max-width:768px){

    .hero{
        padding:100px 0;
    }

    .hero-line-1{
        font-size:32px;
        line-height:1.15;
    }

    .hero-line-2{
        font-size:20px;
    }

    .hero p{
        font-size:16px;
        line-height:1.7;
    }

    .hero-buttons{
        flex-direction:column;
    }

    .btn-pmb,
    .btn-profile{
        width:100%;
        text-align:center;
    }
}

/* =====================================
QUICK ACCESS
===================================== */

.quick-access{
    margin-top:-70px;
    position:relative;
    z-index:10;
}

.quick-wrapper{
    background:#fff;
    border-radius:30px;
    box-shadow:var(--shadow);
    padding:35px;
}

.quick-grid{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:25px;
}

.quick-card{
    text-align:center;
    transition:var(--transition);
    text-decoration:none;
    color:var(--dark);
}

.quick-card:hover{
    transform:translateY(-5px);
}

.quick-icon{
    width:90px;
    height:90px;
    margin:auto;
    border-radius:22px;
    background:#ECFDF5;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:36px;
    color:var(--primary);
    margin-bottom:20px;
}

.quick-card h5{
    color:var(--dark);
    font-weight:700;
    margin-bottom:10px;
}

.quick-card p{
    font-size:14px;
    color:#64748B;
}

/* =====================================
STATISTICS
===================================== */

.statistics{
    padding-top:60px;
}

.stats-wrapper{
    background:#F1F5F9;
    border-radius:30px;
    padding:35px 20px;
}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
}

.stat-item{
    text-align:center;
    border-right:1px solid #DCE3EA;
}

.stat-item:last-child{
    border-right:none;
}

.stat-icon{
    font-size:45px;
    color:var(--primary);
    margin-bottom:15px;
}

.stat-item h3{
    color:var(--primary);
    font-size:42px;
    font-weight:800;
}

.stat-item p{
    margin-top:8px;
    color:var(--dark);
    font-weight:600;
}

/* =====================================
SECTION
===================================== */

.section{
    padding:100px 0;
}


.section-title span{
    color:var(--primary);
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:1px;
}

.section-title h2{
    font-size:48px;
    font-weight:800;
    color:var(--dark);
    margin-top:10px;
}

/* =====================================
CARDS
===================================== */

.card-custom{
    background:#fff;
    border-radius:24px;
    padding:30px;
    box-shadow:var(--shadow);
    height:100%;
}

/* =====================================
NEWS
===================================== */

.news-card{
    background:#fff;
    border-radius:24px;
    overflow:hidden;
    box-shadow:var(--shadow);
    transition:var(--transition);
}

.news-card:hover{
    transform:translateY(-6px);
}

.news-card img{
    width:100%;
    height:240px;
    object-fit:cover;
}

.news-content{
    padding:25px;
}

.news-content h4{
    color:var(--dark);
    font-size:22px;
    font-weight:700;
    line-height:1.5;
}

.news-content p{
    margin-top:15px;
}

/* =====================================
FOOTER
===================================== */

.footer{
    background:#0F172A;
    color:#CBD5E1;
    padding:90px 0 30px;
}

.footer h5{
    color:#fff;
    margin-bottom:20px;
    font-weight:700;
}

.footer a{
    color:#CBD5E1;
}

.footer a:hover{
    color:#fff;
}

.card {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.section-heading {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 35px;
    position: relative;
}

/* garis kecil modern */
.section-heading::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 10px;
}

.section-heading i {
    color: var(--primary);
    font-size: 24px;
}

.announcement-card h5{
    font-size:15px;
    font-weight:600;
    line-height:1.4;
    height:42px;
    overflow:hidden;
}

.announcement-card p{
    font-size:13px;
    line-height:1.5;
    height:40px;
    overflow:hidden;
}

.announcementSwiper{
    padding:10px 50px;
}

.announcementSwiper .swiper-slide{
    height:auto;
}

.announcement-card{
    height:100%;
}

.announcement-card h5{
    font-size:15px;
    font-weight:600;
}

.announcement-card p{
    font-size:13px;
    color:#666;
}


/* =========================
   NEWS SLIDER
========================= */

.newsSwiper{
    padding:10px 50px;
}

.newsSwiper .swiper-slide{
    height:auto;
}

.news-card{
    height:100%;
}

.news-card .card-title{
    font-size:15px;
    line-height:1.4;
    height:42px;
    overflow:hidden;
}

.news-card p{
    font-size:13px;
}

.news-next,
.news-prev{
    color:#0B7A3E;
}

@media (max-width: 992px){

    .nav-wrapper{
        flex-direction:column;
        padding:15px 0;
    }

    .nav-menu{
        flex-wrap:wrap;
        justify-content:center;
        gap:15px;
        margin-top:15px;
    }

    .quick-grid{
        grid-template-columns:repeat(3,1fr);
    }

    .stats-grid{
        grid-template-columns:repeat(2,1fr);
        gap:20px;
    }

    .stat-item{
        border-right:none;
    }

    .hero-line-1{
        font-size:28px;
    }

    .hero-line-2{
        font-size:20px;
    }

}


@media (max-width:768px){

    .container-xl-custom{
        padding-left:15px;
        padding-right:15px;
    }

    .logo-area{
        flex-direction:column;
        text-align:center;
    }

    .logo-area img{
        width:55px;
    }

    .logo-title .small{
        font-size:18px;
    }

    .logo-title .main{
        font-size:10px;
        letter-spacing:1px;
    }

    .nav-menu{
        flex-direction:column;
        gap:12px;
    }

    .quick-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .stats-grid{
        grid-template-columns:1fr;
    }

    .hero{
        text-align:center;
    }

    .hero-content{
        max-width:100%;
    }

    .hero-line-1{
        font-size:24px;
    }

    .hero-line-2{
        font-size:18px;
    }

    .hero p{
        font-size:15px;
    }

    .section-heading{
        font-size:20px;
    }

}

/* ==========================
   MOBILE MENU
========================== */

.mobile-menu-btn{
    display:none;
    border:none;
    background:none;
    font-size:28px;
    color:var(--primary);
    cursor:pointer;
}

@media(max-width:768px){

    .nav-wrapper{
        flex-wrap:wrap;
    }

    .mobile-menu-btn{
        display:block;
    }

    .nav-menu{
        display:none;
        width:100%;
        flex-direction:column;
        gap:15px;
        padding:20px 0;
        margin-top:15px;
        border-top:1px solid #eee;
    }

    .nav-menu.show{
        display:flex;
    }

    .dropdown-menu{
        position:static;
        display:none;
        box-shadow:none;
        background:#f8f9fa;
        margin-top:10px;
    }

    .nav-item:hover .dropdown-menu{
        display:block;
    }

}

@media (max-width:768px){

    .topbar .right{
        display:none;
    }

    .topbar-wrapper{
        justify-content:center;
    }

}

