/* ============================================
   GLOBAL RESPONSIVE STYLES
   Mobile, Tablet, Desktop (1920x1080)
   ============================================ */

/* Base Responsive Utilities */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container Responsive */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
}

/* ============================================
   MOBILE FIRST (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 1.75rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.25rem !important; }
    h4 { font-size: 1.1rem !important; }
    h5 { font-size: 1rem !important; }
    
    /* Hero Sections */
    .info-hero,
    .hero-section,
    section[class*="hero"] {
        padding: 50px 0 40px !important;
    }
    
    .info-hero h1,
    .hero-section h1 {
        font-size: 1.6rem !important;
    }
    
    .info-hero p,
    .hero-section p {
        font-size: 0.9rem !important;
    }
    
    /* Navigation */
    .navbar-brand img {
        max-height: 40px !important;
    }
    
    /* Cards */
    .card,
    .contact-info-card,
    .contact-form-card,
    .team-card {
        margin-bottom: 20px !important;
    }
    
    /* Buttons */
    .btn {
        font-size: 14px !important;
        padding: 10px 20px !important;
    }
    
    .btn-lg {
        font-size: 15px !important;
        padding: 12px 24px !important;
    }
    
    /* Forms */
    .form-control,
    .form-select {
        font-size: 14px !important;
    }
    
    .form-label {
        font-size: 13px !important;
    }
    
    /* Spacing */
    .mb-5 { margin-bottom: 2rem !important; }
    .mt-5 { margin-top: 2rem !important; }
    .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    
    /* Grid Adjustments */
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .row > * {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Team Cards */
    .team-card {
        max-width: 100% !important;
        margin: 0 auto 20px !important;
    }
    
    .team-card-img img {
        max-height: 300px;
        object-fit: cover;
    }
    
    /* Contact Section */
    .contact-item-detail {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon-wrapper {
        margin-bottom: 10px;
    }
    
    /* Map Container */
    .map-container iframe {
        height: 300px !important;
    }
    
    /* Footer */
    .footer-section {
        padding: 40px 0 20px !important;
    }
    
    .footer-section .col-lg-3,
    .footer-section .col-lg-4 {
        margin-bottom: 30px;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        font-size: 13px !important;
    }
    
    /* Badge */
    .badge {
        font-size: 12px !important;
        padding: 4px 10px !important;
    }
    
    /* Alert */
    .alert {
        font-size: 14px !important;
        padding: 12px !important;
    }
    
    /* Modal */
    .modal-dialog {
        margin: 10px !important;
    }
    
    .modal-content {
        border-radius: 12px !important;
    }
    
    /* Pagination */
    .pagination {
        font-size: 14px !important;
    }
    
    .pagination .page-link {
        padding: 6px 12px !important;
    }
}

/* ============================================
   SMALL MOBILE (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    h1 { font-size: 1.5rem !important; }
    h2 { font-size: 1.3rem !important; }
    h3 { font-size: 1.15rem !important; }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .btn {
        font-size: 13px !important;
        padding: 8px 16px !important;
    }
    
    .info-hero,
    .hero-section {
        padding: 40px 0 30px !important;
    }
    
    .map-container iframe {
        height: 250px !important;
    }
}

/* ============================================
   TABLET (769px - 1024px)
   ============================================ */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 960px;
    }
    
    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.75rem !important; }
    
    .info-hero,
    .hero-section {
        padding: 60px 0 50px !important;
    }
    
    .team-card {
        margin-bottom: 30px;
    }
    
    /* Adjust grid for tablet */
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* ============================================
   DESKTOP (1025px - 1919px)
   ============================================ */
@media (min-width: 1025px) and (max-width: 1919px) {
    .container {
        max-width: 1140px;
    }
}

/* ============================================
   LARGE DESKTOP (1920x1080 and above)
   ============================================ */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
    
    h1 { font-size: 2.8rem !important; }
    h2 { font-size: 2.4rem !important; }
    h3 { font-size: 2rem !important; }
    
    .info-hero,
    .hero-section {
        padding: 100px 0 80px !important;
    }
    
    .info-hero h1 {
        font-size: 3rem !important;
    }
    
    .info-hero p {
        font-size: 1.2rem !important;
    }
    
    /* Larger buttons */
    .btn {
        font-size: 16px !important;
        padding: 14px 28px !important;
    }
    
    .btn-lg {
        font-size: 18px !important;
        padding: 16px 32px !important;
    }
    
    /* Forms */
    .form-control,
    .form-select {
        font-size: 16px !important;
        padding: 12px 16px !important;
    }
    
    /* Cards */
    .card {
        padding: 30px !important;
    }
    
    /* Team Cards */
    .team-card-img img {
        max-height: 400px;
    }
    
    /* Spacing */
    .mb-5 { margin-bottom: 4rem !important; }
    .mt-5 { margin-top: 4rem !important; }
    .py-5 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
}

/* ============================================
   SPECIFIC COMPONENT FIXES
   ============================================ */

/* Swiper Slider Responsive */
@media (max-width: 768px) {
    .swiper-slide {
        padding: 10px !important;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 35px !important;
        height: 35px !important;
    }
}

/* Statistics Cards */
@media (max-width: 768px) {
    .stat-card,
    .stats-card {
        margin-bottom: 15px !important;
    }
    
    .stat-card h3,
    .stats-card h3 {
        font-size: 1.5rem !important;
    }
}

/* Timeline Responsive */
@media (max-width: 768px) {
    .timeline-item {
        padding-left: 0 !important;
    }
    
    .timeline-item::before {
        display: none !important;
    }
}

/* Profile Photo */
@media (max-width: 768px) {
    .profile-photo {
        max-width: 200px !important;
        margin: 0 auto 20px !important;
        display: block !important;
    }
}

/* Social Icons */
@media (max-width: 768px) {
    .profile-social,
    .team-social-icons {
        justify-content: center !important;
        margin-top: 15px !important;
    }
}

/* Video Container */
@media (max-width: 768px) {
    .video-container-modern,
    .video-wrapper-modern {
        height: 250px !important;
    }
    
    .video-wrapper-modern iframe {
        height: 250px !important;
    }
}

/* Agenda/Calendar */
@media (max-width: 768px) {
    .agenda-item,
    .calendar-item {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .agenda-date,
    .calendar-date {
        margin-bottom: 10px !important;
    }
}

/* News/Berita Cards */
@media (max-width: 768px) {
    .news-card,
    .berita-card {
        margin-bottom: 20px !important;
    }
    
    .news-card img,
    .berita-card img {
        max-height: 200px !important;
        object-fit: cover !important;
    }
}

/* Foto Kegiatan Gallery */
@media (max-width: 768px) {
    .gallery-item {
        margin-bottom: 15px !important;
    }
    
    .gallery-item img {
        height: 200px !important;
        object-fit: cover !important;
    }
}

/* Regulasi/Document List */
@media (max-width: 768px) {
    .document-item,
    .regulasi-item {
        padding: 15px !important;
    }
    
    .document-icon,
    .regulasi-icon {
        font-size: 32px !important;
    }
}

/* Search Bar */
@media (max-width: 768px) {
    .search-bar,
    .search-form {
        margin-bottom: 20px !important;
    }
    
    .search-bar input,
    .search-form input {
        font-size: 14px !important;
    }
}

/* Filter Buttons */
@media (max-width: 768px) {
    .filter-buttons {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    
    .filter-buttons .btn {
        font-size: 12px !important;
        padding: 6px 12px !important;
    }
}

/* Overflow Fix */
@media (max-width: 768px) {
    body {
        overflow-x: hidden !important;
    }
    
    .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer-section,
    .btn,
    .social-icons {
        display: none !important;
    }
    
    .container {
        max-width: 100% !important;
    }
}
