/* =====================================================
   Responsive Stylesheet - Website SMPN 1 Ngasem
   ===================================================== */

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Desktop */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }

    .nav-menu > li > a {
        padding: 15px 12px;
        font-size: 12px;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }

    .hero {
        height: 400px;
    }

    .hero-title {
        font-size: 28px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Mobile Landscape */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
    }

    .top-bar {
        display: none;
    }

    .main-header {
        padding: 10px 0;
    }

    .logo img {
        width: 45px;
        height: 45px;
    }

    .logo-text h1 {
        font-size: 16px;
    }

    .logo-text span {
        font-size: 8px;
    }

    .mobile-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: static;
        top: auto;
    }

    .main-nav.active {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
    }

    .nav-menu > li > a {
        padding: 12px 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.1);
        display: none;
        border-radius: 0;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        color: var(--white);
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-left: 30px;
    }

    .dropdown-menu li a:hover {
        background: rgba(0,0,0,0.1);
        color: var(--white);
        padding-left: 35px;
    }

    .hero {
        height: 300px;
    }

    .hero-content {
        bottom: 40px;
    }

    .hero-title {
        font-size: 20px;
    }

    .hero-desc {
        font-size: 12px;
    }

    .hero-btn {
        padding: 10px 20px;
        font-size: 12px;
    }

    .hero-arrow {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .section {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: 22px;
    }

    .section-title p {
        font-size: 12px;
    }

    .berita-grid,
    .sarana-grid,
    .program-grid,
    .ekskul-grid,
    .prestasi-grid,
    .mitra-grid,
    .komite-grid,
    .mading-grid,
    .card-grid,
    .layanan-grid,
    .galeri-grid {
        grid-template-columns: 1fr;
    }

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

    .ppdb-content {
        flex-direction: column;
        text-align: center;
    }

    .ppdb-text h3 {
        font-size: 20px;
    }

    .sambutan-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .sambutan-img img {
        width: 200px;
        height: 250px;
        margin: 0 auto;
    }

    .sambutan-text h3 {
        font-size: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .statistik-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .statistik-item h3 {
        font-size: 28px;
    }

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

    .warga-tabs,
    .prestasi-tabs {
        flex-wrap: wrap;
    }

    .warga-tab,
    .prestasi-tab {
        padding: 8px 15px;
        font-size: 12px;
    }

    .admin-sidebar {
        transform: translateX(-100%);
        transition: var(--transition);
    }

    .admin-sidebar.active {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-header {
        padding: 10px 15px;
    }

    .admin-header h2 {
        font-size: 14px;
    }

    .admin-content {
        padding: 15px;
    }

    .admin-card {
        padding: 15px;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 8px 10px;
    }

    .login-box {
        padding: 25px;
    }

    .wa-button {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }

    .back-to-top {
        width: 35px;
        height: 35px;
        bottom: 80px;
        right: 20px;
        font-size: 14px;
    }
}

/* Mobile Portrait */
@media (max-width: 575px) {
    .container {
        padding: 0 10px;
    }

    .hero {
        height: 250px;
    }

    .hero-title {
        font-size: 18px;
    }

    .hero-desc {
        display: none;
    }

    .section {
        padding: 30px 0;
    }

    .section-title h2 {
        font-size: 20px;
    }

    .berita-card-title {
        font-size: 14px;
    }

    .program-card-body h4,
    .ekskul-card-body h4,
    .prestasi-card-body h4,
    .mitra-card-body h4,
    .komite-card h4,
    .mading-card-body h4 {
        font-size: 14px;
    }

    .cta h2 {
        font-size: 22px;
    }

    .cta p {
        font-size: 12px;
    }

    .cta-btn {
        padding: 12px 30px;
        font-size: 14px;
    }

    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .content-page h2 {
        font-size: 20px;
    }

    .content-page h3 {
        font-size: 16px;
    }

    .content-page p {
        font-size: 13px;
    }

    .form-control {
        padding: 10px 12px;
        font-size: 13px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .pagination a,
    .pagination span {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .faq-question {
        padding: 15px;
        font-size: 13px;
    }

    .faq-answer {
        padding: 0 15px;
    }

    .faq-item.active .faq-answer {
        padding: 0 15px 15px;
    }

    .download-item {
        flex-direction: column;
        text-align: center;
    }

    .download-item-btn {
        width: 100%;
        text-align: center;
    }
}

/* Print Styles */
@media print {
    .top-bar,
    .main-header,
    .main-nav,
    .main-footer,
    .wa-button,
    .back-to-top,
    .admin-sidebar,
    .admin-header {
        display: none !important;
    }

    .admin-main {
        margin-left: 0 !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        text-decoration: none;
        color: #000;
    }
}
