/* Responsive Design - Mobile & Tablet */

/* Tablet Devices (768px and below) */
@media screen and (max-width: 768px) {
    /* Navigation */
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--primary-darker);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .btn-login {
        display: none;
    }

    /* Hero Section */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .search-box {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .btn-search {
        width: 100%;
    }

    /* Sections */
    .section-title,
    .page-title {
        font-size: 2rem;
    }

    /* Semester Grid */
    .semester-grid {
        grid-template-columns: 1fr;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* Contact Section */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Resource Grid */
    .resource-grid {
        grid-template-columns: 1fr;
    }

    /* Chatbot */
    .chatbot-popup {
        width: calc(100% - 32px);
        right: 16px;
        bottom: 90px;
        height: 500px;
    }
    
    .chatbot-float-btn {
        right: 16px;
        bottom: 16px;
        width: 55px;
        height: 55px;
    }
}

/* Mobile Devices (480px and below) */
@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description br {
        display: none;
    }

    .version-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
    }

    .section-title,
    .page-title {
        font-size: 1.75rem;
    }

    .semester-card {
        padding: var(--spacing-md);
    }

    .semester-number {
        font-size: 3rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }
}
