/* Responsive Design for HCI Course Landing Page */

/* Tablet Devices */
@media screen and (max-width: 992px) {
    .container {
        width: 90%;
    }
    
    /* Header */
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text {
        width: 100%;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-image {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Overview Section */
    .overview-grid {
        flex-direction: column;
    }
    
    .overview-text, .overview-details {
        width: 100%;
    }
    
    .overview-details {
        margin-top: 2rem;
    }
    
    .overview-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Learning Objectives */
    .learn-grid {
        flex-direction: column;
    }
    
    .learn-header {
        width: 100%;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .skills-container {
        width: 100%;
    }
    
    /* Modules Section */
    .module-content {
        padding: 1rem;
    }
    
    /* Instructors Section */
    .instructors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Testimonials */
    .testimonial-content {
        flex-direction: column;
    }
    
    .testimonial-image {
        width: 150px;
        height: 150px;
        margin: 0 auto 1.5rem;
    }
    
    .testimonial-text {
        width: 100%;
        text-align: center;
    }
    
    /* Prerequisites */
    .prerequisites-container {
        flex-direction: column;
    }
    
    .prerequisites-card, .requirements-card {
        width: 100%;
    }
    
    .requirements-card {
        margin-top: 2rem;
    }
    
    /* Careers */
    .careers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .company-logos {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Enrollment */
    .enroll-container {
        flex-direction: column;
    }
    
    .enroll-card {
        width: 100%;
    }
    
    .enrollment-faq {
        width: 100%;
        margin-top: 2rem;
    }
    
    .date-options {
        flex-direction: column;
    }
    
    .date-option {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Mobile Devices */
@media screen and (max-width: 768px) {
    /* Navigation */
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    /* Header */
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    /* Section Headers */
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    /* Overview Features */
    .overview-features {
        grid-template-columns: 1fr;
    }
    
    /* Skills */
    .skill-item {
        flex-direction: column;
    }
    
    .skill-icon {
        margin: 0 auto 1rem;
    }
    
    .skill-content {
        text-align: center;
    }
    
    /* Modules */
    .module-header h3 {
        font-size: 1.2rem;
    }
    
    /* Instructors */
    .instructors-grid {
        grid-template-columns: 1fr;
    }
    
    .instructor-card {
        flex-direction: column;
    }
    
    .instructor-image {
        width: 150px;
        height: 150px;
        margin: 0 auto 1.5rem;
    }
    
    .instructor-info {
        text-align: center;
    }
    
    .instructor-credentials p {
        justify-content: center;
    }
    
    .instructor-links {
        justify-content: center;
    }
    
    /* Quiz */
    .quiz-options {
        flex-direction: column;
    }
    
    .option {
        margin-bottom: 0.5rem;
    }
    
    /* Prerequisites */
    .prereq-icon {
        margin: 0 auto 1rem;
    }
    
    .prereq-content {
        text-align: center;
    }
    
    .prerequisites-list li {
        flex-direction: column;
    }
    
    /* Careers */
    .careers-grid {
        grid-template-columns: 1fr;
    }
    
    .company-logos {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Pricing */
    .pricing-tabs {
        flex-direction: column;
    }
    
    .pricing-tab {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* FAQ */
    .faq-question h4 {
        font-size: 1.1rem;
    }
    
    .faq-question {
        padding: 1rem 0.5rem;
    }
    
    .faq-toggle {
        padding: 0.5rem;
    }
}

/* Small Mobile Devices */
@media screen and (max-width: 480px) {
    .section {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .testimonial-image {
        width: 120px;
        height: 120px;
    }
    
    .testimonial-controls button {
        width: 40px;
        height: 40px;
    }
    
    .price-amount .discount-price {
        font-size: 2rem;
    }
    
    .enrollment-actions .btn {
        padding: 0.7rem 1.2rem;
    }
}

/* Touch-friendly interactions for mobile and tablet */
@media (hover: none) {
    .btn:hover {
        transform: none;
    }
    
    .module-header, .faq-question {
        cursor: pointer;
        padding: 15px; /* Larger touch target */
    }
    
    .module-toggle, .faq-toggle {
        padding: 10px; /* Larger touch target for toggle buttons */
    }
    
    .testimonial-controls button {
        width: 50px;
        height: 50px;
    }
    
    .pricing-tab {
        padding: 15px;
    }
    
    .date-option label {
        padding: 15px;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print Styles */
@media print {
    .navbar, .hero-buttons, .back-to-top, .enrollment-actions, .testimonial-controls {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .module-content, .faq-answer {
        display: block !important;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
    
    section {
        page-break-inside: avoid;
        margin-bottom: 2cm;
    }
}
