/* ============================================================
   St. Xavier's College Clone — Responsiveness CSS (Premium)
   ============================================================ */

/* Large Desktop and Down */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* Tablets and Down (992px) */
@media (max-width: 992px) {
    .section {
        padding: 4.5rem 0;
    }
    
    /* Header Navigation toggle */
    .main-nav {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    /* Welcome section */
    .welcome-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .welcome-image-badge {
        bottom: -10px;
        right: -10px;
        padding: 16px 20px;
    }
    
    .badge-number {
        font-size: 2.2rem;
    }
    
    /* Statistics section */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    /* Notices & Events */
    .ne-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Footer layout */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    /* Inner Pages Layout */
    .page-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }
    
    /* Contact grid */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Event card full */
    .event-card-full {
        grid-template-columns: 1fr;
    }
    
    .event-card-full-image {
        height: 250px;
    }
}

/* Mobile Devices (768px) */
@media (max-width: 768px) {
    .section {
        padding: 3.5rem 0;
    }

    .hero-title {
        font-size: 2.4rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }
    
    .hero-arrow {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    .hero-arrow-prev { left: 15px; }
    .hero-arrow-next { right: 15px; }
    
    /* Welcome stats badges */
    .welcome-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Gallery grid */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .gallery-item {
        height: 200px;
    }
    
    /* Footer layout */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    /* Program details badge layout */
    .program-detail-badges {
        flex-direction: column;
        gap: 10px;
    }
    
    .detail-badge {
        width: 100%;
        justify-content: center;
    }
    
    /* Values Grid */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Contact Info cards */
    .contact-cards-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-form-panel {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 340px;
    }

    .lightbox-prev, .lightbox-next {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { top: 15px; right: 15px; width: 40px; height: 40px; }
}

/* Small Screen Mobile Devices (576px) */
@media (max-width: 576px) {
    .section-header {
        margin-bottom: 2.5rem;
    }

    .hero-title {
        font-size: 1.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-title {
        font-size: 1.15rem;
    }
    
    .logo-subtitle {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
    
    .logo-icon {
        width: 44px;
        height: 44px;
    }
    
    .logo-x {
        font-size: 1.5rem;
    }

    .top-bar {
        display: none; /* Hide top bar on very small phones to maximize screen space */
    }
}
