﻿@keyframes ticker {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.animate-ticker {
    animation: ticker 30s linear infinite;
    display: inline-block;
}

.news-ticker:hover .animate-ticker {
    animation-play-state: paused;
}

/* Responsive Styles */
@media screen and (max-width: 767px) {
    /* Hide entire header section on mobile - using multiple selectors */
    header.fixed,
    header[class*="fixed"],
    body > header {
        display: none !important;
    }
    
    /* Adjust navbar to top when header is hidden */
    nav.relative,
    nav[class*="relative"] {
        margin-top: 0 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 50 !important;
    }
    
    /* Target the navbar flex container with py-4 class */
    nav .flex.justify-between.items-center {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
    
    /* Adjust navbar logo size on mobile */
    nav .flex.items-center img {
        width: 50px !important;
        height: auto !important;
    }
    
    /* Adjust main content padding */
    main {
        padding-top: 70px !important;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-content {
        padding: 2rem 0;
    }

        .hero-content h1 {
            font-size: 2rem;
            line-height: 1.2;
        }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .opd-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-track > div {
        width: 100%;
    }

    .cta-container {
        flex-direction: column;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .emergency-bar {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }

    .news-ticker {
        font-size: 1.875rem;
    }

    .button-group {
        flex-direction: column;
        width: 100%;
    }

        .button-group > * {
            width: 100%;
            margin: 0.5rem 0;
        }

    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    h2 {
        font-size: 1.875rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .image-container {
        margin: 1.5rem 0;
    }

    /* 🔧 Mobile Menu Wrapper */
    #mobile-menu {
        background-color: #ffffff;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        border-top: 1px solid #e5e7eb;
        padding: 12px 16px;
        font-family: 'Segoe UI', Roboto, sans-serif;
        transition: max-height 0.3s ease-out, opacity 0.3s ease-in;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
    }

        /* ✅ Active State */
        #mobile-menu.active {
            max-height: 500px; /* enough for all links */
            opacity: 1;
            overflow: visible;
        }

        /* 📌 Menu Link Styling */
        #mobile-menu a {
            display: block;
            padding: 10px 12px;
            font-size: 15px;
            font-weight: 500;
            color: #374151;
            border-left: 4px solid transparent;
            text-decoration: none;
            transition: all 0.25s ease-in-out;
        }

            /* ✨ Hover Effects */
            #mobile-menu a:hover {
                color: #0d9488;
                border-left-color: #0d9488;
                background-color: #f9fafa;
            }

            /* 🧼 Rounded + Spacing Touch */
            #mobile-menu a:first-child {
                margin-top: 4px;
            }

            #mobile-menu a:last-child {
                margin-bottom: 4px;
                border-bottom: none;
            }

}
