/* 
 * MPSC Alumni Website Responsive Styles
 * Responsive styling for various screen sizes
 */

/* Large screens (desktops) */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .feature-grid,
    .number-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Medium screens (tablets) */
@media screen and (max-width: 992px) {
    .container {
        max-width: 95%;
    }
    
    /* Header styles */
    .header-right {
        gap: 1rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* Navigation styles */
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--bg-light);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        transition: left var(--transition-speed);
        z-index: 200;
        overflow-y: auto;
        padding: 1rem 0;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-menu > li > a {
        padding: 1rem 1.5rem;
    }
    
    .nav-menu > li.active > a::after,
    .nav-menu > li > a:hover::after {
        display: none;
    }
    
    .dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
        display: none;
        background-color: var(--bg-gray);
    }
    
    .has-dropdown.active .dropdown {
        display: block;
    }
    
    .has-dropdown > a::before {
        content: '+';
        float: right;
        transform: none;
    }
    
    .has-dropdown.active > a::before {
        content: '-';
    }
    
    /* Overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 199;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-speed);
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Section styles */
    .hero-section {
        height: 60vh;
        min-height: 500px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .events-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .alumni-slider {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 1rem;
    }
    
    .alumni-card {
        scroll-snap-align: start;
        min-width: 280px;
        max-width: 350px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Small screens (mobile) */
@media screen and (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* Top bar */
    .top-bar .container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .contact-info {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Header */
    .header-actions {
        display: none;
    }
    
    /* Hero section */
    .hero-section {
        height: auto;
        min-height: 400px;
        padding: 3rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.25rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Features section */
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Alumni slider */
    .alumni-slider {
        margin: 0 -1.5rem;
        padding: 0 1.5rem 1rem;
    }
    
    .alumni-card {
        min-width: 250px;
    }
    
    /* Events and News */
    .events-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    /* Numbers section */
    .number-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* CTA section */
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Extra small screens */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-date {
        width: 100%;
        padding: 0.75rem;
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        align-items: center;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}