/*
==========================================
SMP NEGERI 6 TANJUNG
Theme Style v1.1 - Optimized & Responsive
==========================================
*/

:root {
    --primary: #0C7A43;
    --primary-dark: #085D31;
    --secondary: #F8F9FA;
    --text: #222;
    --muted: #6c757d;
    --border: #E9ECEF;
    --shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    --radius: 12px;
}

/* ===========================
   RESET & BASE
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: #fff;
    overflow-x: hidden;
}

::selection {
    background: var(--primary);
    color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: auto;
    padding: 0 20px;
}

/* ===========================
   HEADER
=========================== */
.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: var(--shadow);
    transition: 0.35s;
}

/* Nanti dipakai JS */
.site-header.scrolled {
    padding: 0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.site-header.scrolled .logo img {
    width: 65px;
}

/* ===========================
   TOP HEADER
=========================== */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.branding {
    display: flex;
    align-items: center;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    width: 78px;
    transition: 0.3s;
}

.site-info {
    margin-left: 18px;
}

.site-info h1 {
    margin: 0;
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--primary);
    font-weight: 800;
}

.site-info p {
    margin: 8px 0 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
}

/* ===========================
   LOGIN BUTTON
=========================== */
.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    border-radius: 50px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(12, 122, 67, 0.18);
}

.btn-login:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(12, 122, 67, 0.28);
}

/* ===========================
   NAVIGATION & DROPDOWN
=========================== */
.main-nav {
    border-top: 1px solid var(--border);
}

.main-menu {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-menu > li {
    position: relative;
}

.main-menu > li > a {
    display: block;
    padding: 22px 28px;
    color: #333;
    font-size: 17px;
    font-weight: 700;
    position: relative;
}

/* Hover & Active Nav */
.main-menu > li > a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 12px;
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 20px;
    transform: translateX(-50%);
    transition: 0.3s;
}

.main-menu > li:hover > a,
.current-menu-item > a {
    color: var(--primary);
}

.main-menu > li:hover > a::after,
.current-menu-item > a::after {
    width: 36px;
}

/* Dropdown */
.main-menu li ul{
    position:absolute;
    left:0;
    top:100%;
    min-width:260px;
    background:#fff;
    border-radius:12px;
    box-shadow:0 20px 40px rgba(0,0,0,.08);

    opacity:0;
    visibility:hidden;
    transform:translateY(10px);

    transition:.25s;

    max-height:70vh;
    overflow-y:auto;
    overflow-x:hidden;

    z-index:9999;
}

.main-menu li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-menu li ul li a {
    display: block;
    padding: 14px 20px;
    color: #333;
    font-size: 15px;
}

.main-menu li ul li a:hover {
    background: #F7F9FA;
    color: var(--primary);
}

/* ===========================
   HERO PREMIUM
=========================== */
.hero {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    background: url("../images/hero.jpg") center center no-repeat;
    background-size: cover;
    background-attachment: fixed; /* Berubah jadi fixed untuk efek paralaks ringan di desktop */
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(12, 122, 67, 0.82) 0%,
        rgba(12, 122, 67, 0.55) 45%,
        rgba(12, 122, 67, 0.28) 100%
    );
}

.hero .container {
    position: relative;
    z-index: 5;
}

.hero-content {
    max-width: 760px;
    padding-left: 0;
    color: #fff;
    animation: fadeUp 0.9s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 28px;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.08);
}

.hero h1 {
    font-size: 64px;
    line-height: 1.05;
    font-weight: 900;
    color: #fff;
    margin-bottom: 28px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.hero p {
    max-width: 650px;
    font-size: 22px;
    line-height: 1.9;
    color: #f5f5f5;
    margin-bottom: 45px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Button Component */
.btn-primary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 42px;
    border-radius: 60px;
    font-size: 17px;
    font-weight: 700;
    transition: 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 30px rgba(12, 122, 67, 0.25);
}

.btn-primary:hover {
    transform: translateY(-4px);
    background: var(--primary-dark);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: var(--primary);
}

.hero-wave {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
}

.hero-wave svg {
    width: 100%;
    height: 170px;
    display: block;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*====================================
STATISTIK
====================================*/

.stats-section{

    padding:110px 0;

    background:linear-gradient(
        180deg,
        #ffffff,
        #f8fbfa
    );

}

.section-title{

    text-align:center;

    margin-bottom:70px;

}

.section-title span{

    display:inline-block;

    padding:8px 20px;

    border-radius:40px;

    background:#EDF8F1;

    color:#0C7A43;

    font-weight:700;

    font-size:14px;

    margin-bottom:18px;

}

.section-title h2{

    font-size:46px;

    font-weight:800;

    margin-bottom:18px;

}

.section-title p{

    max-width:650px;

    margin:auto;

    color:#777;

}

.stat-card{

    background:#fff;

    border-radius:24px;

    padding:45px 30px;

    text-align:center;

    box-shadow:0 15px 35px rgba(0,0,0,.05);

    transition:.35s;

    position:relative;

    overflow:hidden;

}

.stat-card::before{

    content:"";

    position:absolute;

    left:0;

    top:0;

    width:100%;

    height:5px;

    background:#0C7A43;

    transform:scaleX(0);

    transition:.35s;

}

.stat-card:hover{

    transform:translateY(-12px);

    box-shadow:0 25px 55px rgba(0,0,0,.12);

}

.stat-card:hover::before{

    transform:scaleX(1);

}

.stat-icon{

    width:90px;

    height:90px;

    margin:auto;

    border-radius:50%;

    background:#EDF8F1;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:40px;

    margin-bottom:25px;

    transition:.35s;

}

.stat-card:hover .stat-icon{

    transform:scale(1.12) rotate(8deg);

}

.stat-card h3{

    font-size:54px;

    font-weight:800;

    color:#0C7A43;

    margin-bottom:8px;

}

.stat-card p{

    color:#666;

    font-size:18px;

    margin:0;

}

@media(max-width:768px){

.stats-section{

padding:80px 0;

}

.section-title h2{

font-size:34px;

}

.stat-card{

padding:35px 25px;

}

.stat-card h3{

font-size:42px;

}

}

/* ===========================
   FOOTER
=========================== */
.site-footer {
    background: #0B1320;
    color: #fff;
    padding: 70px 0;
}

.site-footer a {
    color: #ddd;
}

.site-footer a:hover {
    color: #fff;
}

/* ===========================
   RESPONSIVE (MEDIA QUERIES)
=========================== */

/* Tablet & Laptop Kecil */
@media (max-width: 992px) {
    .hero {
        min-height: 620px;
        background-attachment: scroll;
    }
    .hero h1 {
        font-size: 52px;
    }
    .hero p {
        font-size: 18px;
    }
}

/* Mobile & Tablet Portrait */
@media (max-width: 768px) {
    .header-top {
        padding: 12px 0;
    }
    .logo img {
        width: 52px;
    }
    .site-info {
        margin-left: 12px;
    }
    .site-info h1 {
        font-size: 24px;
        line-height: 1.2;
    }
    .site-info p {
        font-size: 12px;
        margin-top: 4px;
    }
    

    .hero {
        text-align: center;
        background-attachment: scroll;
    }
    .hero-content {
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero h1 {
        font-size: 40px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-wave svg {
        height: 80px;
    }
}

/* HP Layar Kecil (Extra Small) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 32px;
    }
    .hero p {
        font-size: 16px;
    }
    .hero-buttons {
        width: 100%;
        flex-direction: column; /* Tombol menjadi atas-bawah */
    }
    .btn-primary, .btn-outline {
        width: 100%; /* Tombol memenuhi lebar layar */
        padding: 15px;
    }
    .hero-badge {
        font-size: 11px;
        padding: 8px 18px;
    }
}

@media(max-width:992px){

.stats-grid{

grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:768px){

.statistics{

padding:70px 0;

}

.section-title h2{

font-size:32px;

}

.section-title p{

font-size:16px;

}

.stats-grid{

grid-template-columns:1fr;

gap:20px;

}

.stat-card{

padding:30px 20px;

}

.stat-card h3{

font-size:40px;

}

}

/*====================================
WELCOME SECTION
====================================*/

.welcome-section{

    position:relative;

    background:linear-gradient(
        180deg,
        #ffffff 0%,
        #f7fbf8 100%
    );

    overflow:hidden;

}

.welcome-section::before{

content:"";

position:absolute;

width:420px;

height:420px;

background:#0C7A43;

opacity:.04;

border-radius:50%;

left:-180px;

top:-150px;

}

.welcome-section::after{

content:"";

position:absolute;

width:260px;

height:260px;

background:#0C7A43;

opacity:.03;

border-radius:50%;

right:-80px;

bottom:-80px;

}

.kepsek-photo{

padding:18px;

background:#fff;

border-radius:32px;

box-shadow:0 30px 60px rgba(0,0,0,.08);

}

.kepsek-photo img{

width:100%;

max-width:420px;

border-radius:28px;

box-shadow:0 25px 60px rgba(0,0,0,.12);

transition:.4s;

}

.kepsek-photo:hover img{

transform:translateY(-10px);

}

.photo-badge{

position:absolute;

bottom:20px;

left:50%;

transform:translateX(-50%);

background:#0C7A43;

color:#fff;

padding:12px 26px;

border-radius:40px;

font-weight:700;

box-shadow:0 12px 30px rgba(12,122,67,.25);

}

.section-badge{

display:inline-block;

padding:8px 20px;

border-radius:40px;

background:#EDF8F1;

color:#0C7A43;

font-weight:700;

margin-bottom:20px;

}

.welcome-content{

padding-left:40px;

}

.welcome-content h2{

font-size:46px;

font-weight:800;

margin-bottom:25px;

line-height:1.2;

}

.welcome-content p{

font-size:18px;

line-height:1.9;

color:#666;

margin-bottom:20px;

}

.kepsek-name{

margin-top:40px;

padding-top:25px;

border-top:1px solid #eee;

}

.kepsek-name strong{

display:block;

font-size:24px;

color:#0C7A43;

}

.kepsek-name span{

color:#777;

}

@media(max-width:991px){

.welcome-content{

padding-left:0;

margin-top:50px;

text-align:center;

}

.kepsek-photo{

margin:auto;

}

}

/*====================================
BERITA TERBARU
====================================*/

.news-section{

padding:120px 0;

background:#f8fbfa;

}

.featured-news{

background:#fff;

border-radius:26px;

overflow:hidden;

box-shadow:0 20px 50px rgba(0,0,0,.06);

transition:.35s;

height:100%;

}

.featured-news:hover{

transform:translateY(-10px);

box-shadow:0 35px 70px rgba(0,0,0,.12);

}

.featured-news img{

width:100%;

height:420px;

object-fit:cover;

transition:.4s;

}

.featured-news:hover img{

transform:scale(1.05);

}

.featured-content{

padding:35px;

}

.news-meta{

display:flex;

gap:20px;

font-size:14px;

margin-bottom:15px;

color:#777;

}

.news-meta span:first-child{

color:#0C7A43;

font-weight:700;

}

.featured-content h3{

font-size:34px;

font-weight:800;

margin-bottom:20px;

}

.featured-content h3 a{

color:#222;

}

.featured-content h3 a:hover{

color:#0C7A43;

}

.featured-content p{

color:#666;

line-height:1.8;

margin-bottom:25px;

}

.read-more{

color:#0C7A43;

font-weight:700;

}

.small-news{

display:flex;

gap:20px;

background:#fff;

padding:18px;

border-radius:20px;

margin-bottom:20px;

box-shadow:0 10px 25px rgba(0,0,0,.05);

transition:.35s;

}

.small-news:hover{

transform:translateX(8px);

box-shadow:0 20px 40px rgba(0,0,0,.10);

}

.small-thumb{

width:150px;

flex-shrink:0;

overflow:hidden;

border-radius:16px;

}

.small-thumb img{

width:100%;

height:110px;

object-fit:cover;

transition:.35s;

}

.small-news:hover img{

transform:scale(1.08);

}

.news-date{

font-size:13px;

color:#888;

margin-bottom:8px;

}

.small-content h4{

font-size:20px;

line-height:1.4;

margin:0;

}

.small-content h4 a{

color:#222;

}

.small-content h4 a:hover{

color:#0C7A43;

}

@media(max-width:991px){

.featured-news{

margin-bottom:35px;

}

}

@media(max-width:768px){

.news-section{

padding:80px 0;

}

.featured-news img{

height:260px;

}

.featured-content{

padding:25px;

}

.featured-content h3{

font-size:28px;

}

.small-news{

flex-direction:column;

}

.small-thumb{

width:100%;

}

.small-thumb img{

height:220px;

}

}

/*==================================================
FOOTER
==================================================*/

.site-footer{

background:#111827;

color:#fff;

margin-top:80px;

}

.footer-grid{

display:grid;

grid-template-columns:1.3fr 1fr 1fr;

gap:70px;

padding:70px 0;

}

.footer-logo{

display:flex;

gap:20px;

align-items:flex-start;

margin-bottom:25px;

}

.footer-logo img{

width:70px;

}

.footer-logo h3{

font-size:30px;

margin-bottom:15px;

}

.footer-logo p{

color:#d6d6d6;

line-height:1.9;

}

.footer-about h4{

margin-bottom:18px;

font-size:22px;

}

.social-media{

display:flex;

gap:14px;

}

.social-media a{

width:50px;

height:50px;

border-radius:50%;

display:flex;

align-items:center;

justify-content:center;

background:#1F2937;

color:#fff;

font-size:20px;

transition:.35s;

}

.social-media a:hover{

background:#0C7A43;

transform:translateY(-4px);

}

.footer-contact h3,

.footer-map h3{

font-size:28px;

margin-bottom:28px;

}

.footer-contact ul{

padding:0;

}

.footer-contact li{

list-style:none;

margin-bottom:20px;

font-size:18px;

line-height:1.8;

color:#ddd;

}

.footer-map iframe{

width:100%;

height:280px;

border:none;

border-radius:18px;

overflow:hidden;

box-shadow:0 15px 35px rgba(0,0,0,.15);

}

.copyright{

border-top:1px solid rgba(255,255,255,.08);

text-align:center;

padding:22px;

font-size:15px;

color:#cfcfcf;

}

@media(max-width:992px){

.footer-grid{

grid-template-columns:1fr;

gap:45px;

}

.footer-map iframe{

height:250px;

}

}

@media(max-width:768px){

.site-footer{

text-align:center;

}

.footer-logo{

flex-direction:column;

align-items:center;

}

.social-media{

justify-content:center;

}

.footer-contact li{

font-size:16px;

}

.footer-map iframe{

height:220px;

}

}

/*====================================
CARD BERITA & GALERI
====================================*/

.post-card{

    background:#fff;
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 15px 35px rgba(0,0,0,.06);
    transition:.35s;
    height:100%;

}

.post-card:hover{

    transform:translateY(-10px);
    box-shadow:0 30px 60px rgba(0,0,0,.12);

}

.post-card-thumb{

    overflow:hidden;

}

.post-card-thumb img{

    width:100%;
    height:250px;
    object-fit:cover;
    transition:.45s;

}

.post-card:hover img{

    transform:scale(1.08);

}

.post-card-body{

    padding:28px;

}

.post-date{

    font-size:14px;
    color:#888;
    margin-bottom:10px;

}

.post-card-title{

    font-size:24px;
    line-height:1.4;
    font-weight:800;
    margin-bottom:18px;

}

.post-card-title a{

    color:#222;

}

.post-card-title a:hover{

    color:#0C7A43;

}

.post-card-body p{

    color:#666;
    line-height:1.8;
    margin-bottom:22px;

}

.btn-read{

    display:inline-block;
    padding:12px 28px;
    background:#0C7A43;
    color:#fff;
    border-radius:40px;
    font-weight:700;

}

.btn-read:hover{

    background:#085D31;
    color:#fff;

}

@media (max-width:768px){

    .main-menu li ul{

        position:fixed;

        top:70px;

        left:10px;

        right:10px;

        width:auto;

        max-height:70vh;

        overflow-y:auto;

        border-radius:15px;

        z-index:99999;

    }

}

/*=====================================
HAMBURGER MENU
=====================================*/

.menu-toggle{

    display:none;

    width:46px;

    height:46px;

    border:none;

    background:transparent;

    cursor:pointer;

    padding:0;

    margin-left:15px;

}

.menu-toggle span{

    display:block;

    width:28px;

    height:3px;

    background:#0C7A43;

    margin:6px auto;

    border-radius:30px;

    transition:.3s;

}

/* Tablet & Mobile */

@media(max-width:992px){
    
    .header-action{
    display:flex;
    align-items:center;
}

    .btn-login{

        display:none;

    }

    .menu-toggle{

        display:block;

    }

    .main-nav{

        display:none;

        width:100%;

    }

    .main-nav.active{

        display:block;

    }

    .main-menu{

        display:block;

        background:#fff;

        border-top:1px solid #eee;

    }

    .main-menu>li>a{

        display:block;

        padding:16px 20px;

        border-bottom:1px solid #f5f5f5;

    }

}