/* Mobile Responsive Styles */

/* Events Section */
.events-modern {
    padding: 80px 0;
    background: white;
}

.events-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.event-card-modern {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 25px;
    align-items: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.event-card-modern:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2);
}

.event-date-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    min-width: 80px;
}

.event-date-modern .day {
    display: block;
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.event-date-modern .month {
    display: block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 5px;
}

.event-content-modern h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.event-content-modern p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.event-meta-modern {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #999;
}

.event-meta-modern span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.text-center {
    text-align: center;
}

/* Responsive - Tablet (1024px and below) */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 42px;
    }

    .section-title {
        font-size: 36px;
    }

    .stats-grid-modern,
    .faculties-grid-modern,
    .news-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }

    .events-grid-modern {
        grid-template-columns: 1fr;
    }

    .dashboard-wrapper,
    .admin-wrapper {
        grid-template-columns: 250px 1fr;
    }
}

/* Responsive - Mobile (768px and below) */
@media (max-width: 768px) {

    /* Hero Section */
    .hero-content-modern {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-image {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-modern {
        width: 100%;
        justify-content: center;
    }

    /* Section Headers */
    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    /* Stats */
    .stats-grid-modern {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-card-modern {
        padding: 25px 20px;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .stat-number {
        font-size: 32px;
    }

    /* Faculties */
    .faculties-grid-modern {
        grid-template-columns: 1fr;
    }

    /* News */
    .news-grid-modern {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    /* Events */
    .event-card-modern {
        flex-direction: column;
        text-align: center;
    }

    .event-meta-modern {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Header Responsive */
    .header-top .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .header-info,
    .header-links {
        flex-direction: column;
        gap: 10px;
    }

    .header-info span {
        margin-right: 0;
    }

    .header-links a {
        margin-left: 0;
    }

    .main-nav .container {
        position: relative;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 20px;
        gap: 15px;
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block !important;
        font-size: 24px;
        cursor: pointer;
        color: var(--primary-color);
    }

    /* Admin Tables Responsive */
    .admin-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table {
        min-width: 600px;
    }

    /* Dashboard Responsive */
    .dashboard-wrapper,
    .admin-wrapper {
        grid-template-columns: 1fr !important;
    }

    .admin-sidebar,
    .dashboard-sidebar {
        position: static;
        margin-bottom: 20px;
    }

    /* Forms Responsive */
    .form-row {
        grid-template-columns: 1fr !important;
    }

    .contact-wrapper {
        grid-template-columns: 1fr !important;
    }

    /* Programs Grid */
    .programs-grid {
        grid-template-columns: 1fr;
    }

    /* Faculties Grid */
    .faculties-grid {
        grid-template-columns: 1fr;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Mission Vision */
    .mission-vision {
        grid-template-columns: 1fr;
    }

    /* Values Grid */
    .values-grid {
        grid-template-columns: 1fr;
    }

    /* Footer Grid */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Responsive - Small Mobile (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 15px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-badge {
        font-size: 12px;
        padding: 6px 20px;
    }

    .btn-modern {
        padding: 12px 25px;
        font-size: 14px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 14px;
    }

    .faculty-card-modern,
    .news-card-modern,
    .event-card-modern {
        padding: 20px;
    }

    .news-content-modern h3 {
        font-size: 18px;
    }

    .faculty-card h3,
    .program-card h3 {
        font-size: 18px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .admin-header h1 {
        font-size: 24px;
    }
}

/* Print Styles */
@media print {

    .main-header,
    .main-footer,
    .hero-modern,
    .btn-modern,
    .admin-sidebar,
    .dashboard-sidebar,
    .mobile-menu-toggle {
        display: none !important;
    }

    .admin-content,
    .dashboard-content {
        width: 100%;
        margin: 0;
    }

    .admin-wrapper,
    .dashboard-wrapper {
        grid-template-columns: 1fr !important;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-modern {
        min-height: auto;
        padding: 40px 0;
    }

    .stats-modern,
    .faculties-modern,
    .news-modern,
    .events-modern {
        padding: 40px 0;
    }
}