/**
 * Responsive Styles
 * Mobile-first approach
 */

/* Mobile devices (up to 768px) */
@media (max-width: 768px) {
    /* Hide header-top on mobile - it will be shown in main-content instead */
    .header-top {
        display: none;
    }
    
    /* Show mobile header content inside main-content */
    .mobile-header-content {
        display: block;
    }
    
    .mobile-header-content .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .mobile-header-content .header-left {
        flex-direction: column;
        width: 100%;
    }
    
    .mobile-header-content .logo .chp-logo {
        height: 50px;
    }
    
    .mobile-header-content .site-title h1 {
        font-size: 20px;
    }
    
    .mobile-header-content .site-title p {
        font-size: 13px;
    }
    
    .mobile-header-content .header-right {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .mobile-header-content .header-images {
        display: flex;
        gap: 10px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .mobile-header-content .header-img {
        width: 45px;
        height: 60px;
    }
    
    /* Navigation stays sticky at top */
    .main-nav {
        position: -webkit-sticky; /* Safari support */
        position: sticky;
        top: 0;
        z-index: 1001;
        padding: 0;
        background-color: var(--chp-blue);
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
    
    .nav-wrapper {
        padding: 10px 20px;
        justify-content: space-between;
    }
    
    .nav-logo-section {
        display: flex;
    }
    
    .nav-logo {
        display: block;
        height: 35px;
    }
    
    .nav-title {
        display: block;
        font-size: 16px;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--chp-blue);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        padding: 0;
        margin: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu a {
        padding: 15px 20px;
    }
    
    .mobile-menu-toggle {
        display: block;
        order: 2;
    }
    
    .nav-logo-section {
        order: 1;
    }
    
    .hero-section h2 {
        font-size: 32px;
    }
    
    .hero-section p {
        font-size: 16px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .management-grid {
        grid-template-columns: 1fr;
    }
    
    .management-member {
        flex-direction: column;
        text-align: center;
    }
    
    .management-photo {
        margin: 0 auto;
        width: 80px;
        height: 120px;
    }
    
    .management-member img {
        width: 100%;
        height: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Contact page responsive */
    .card > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* Tablet devices (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .management-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header-img {
        width: 60px;
        height: 85px;
    }
}

/* Desktop devices (1025px and above) */
@media (min-width: 1025px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .management-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

