/* Mobile and Responsive Styles */

/* Header and Navigation Mobile Styles */
@media (max-width: 768px) {

    .nav-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
    }
    
    #logo {
        width: 180px;
    }
    
    .emergency-contact {
        gap: 8px;
        margin-right: 10px;
    }
    
    .phone-icon {
        width: 40px;
        height: 40px;
    }
    
    .phone-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .contact-text h2 {
        font-size: 14px;
    }
    
    .contact-text h3 {
        font-size: 18px;
    }
    
    /* Hamburger Menu Mobile */
    .hamburger-menu {
        display: flex !important;
        position: static;
        transform: none;
        margin-left: auto;
        margin-right: 0;
    }
    
    /* Navigation styles */
    nav .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--main-color-yellow);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    nav .nav-links.active {
        max-height: 300px;
    }
    
    nav .nav-links li {
        text-align: center;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    nav .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }
    
    nav .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    nav .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
    nav .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
    nav .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }
    nav .nav-links.active li:nth-child(5) { transition-delay: 0.5s; }
    
    nav .nav-links li:last-child {
        border-bottom: none;
    }
    
    nav .nav-links a {
        display: block;
        padding: 15px 20px;
        font-size: 16px;
    }
}

/* Hero Section Mobile Styles */
@media (max-width: 768px) {
    .hero-section {
        height: 400px;
        background-position: center center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-text-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        height: 100%;
        width: 100%;
    }
    
    .hero-text {
        position: static !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
        max-width: 320px;
        padding: 25px;
        font-size: 18px;
        text-align: center;
        background-color: rgba(255, 255, 255, 0.95);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
        border-radius: 8px;
    }
    
    .hero-text h1 {
        font-size: 28px;
        margin-bottom: 15px;
        color: var(--main-color-red);
    }
    
    .hero-text p {
        font-size: 16px;
        line-height: 1.5;
        margin: 0;
        color: var(--main-text-color);
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 350px;
    }
    
    .hero-text-wrapper {
        padding: 15px;
    }
    
    .hero-text {
        max-width: 280px !important;
        padding: 20px;
        font-size: 16px;
    }
    
    .hero-text h1 {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .hero-text p {
        font-size: 14px;
        line-height: 1.4;
    }
    
    #logo {
        width: 160px;
    }
    
    .nav-header h2 {
        font-size: 16px;
    }
    
    .nav-header h3 {
        font-size: 18px;
    }
}

@media (max-width: 992px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}


@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .about-text {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .partner-item {
        height: 100px;
    }
    
    .partner-logo {
        max-height: 60px;
    }
}

/* Footer responsive styles */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-logo-img {
        max-width: 200px;
    }
    
    .footer-bottom {
        text-align: center;
    }

    .contact-page-container {
        padding: 0 15px;
    }
    
    .contact-header h1 {
        font-size: 28px;
    }
    
    .office-hours {
        font-size: 16px;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
    
    .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .checkbox-group input[type="checkbox"] {
        margin-top: 0;
        align-self: flex-start;
    }
    
    .checkbox-text {
        font-size: 13px;
    }
}
