/* Responsive styles for about.php */

/* General responsive adjustments */
@media (max-width: 1200px) {
    .vm-container,
    .showcase-container {
        max-width: 90%;
    }
}

/* Medium screens */
@media (max-width: 992px) {
    /* Vision and Mission section */
    .vision-section, .mission-section {
        flex-basis: 100%;
        margin-bottom: 30px;
    }
    
    /* Product showcase */
    .showcase-item {
        flex-basis: calc(50% - 15px);
    }
    
    /* Timeline section */
    [style*="position: relative; padding: 10px 40px; background-color: inherit; width: 50%"] {
        width: 100% !important;
        left: 0 !important;
        text-align: left !important;
        margin-top: 30px !important;
        padding-left: 50px !important;
    }
    
    [style*="position: absolute; content: ''; width: 4px; background-color: #0D2233; top: 0; bottom: 0; left: 50%"] {
        left: 20px !important;
        margin-left: 0 !important;
    }
    
    /* Add circle markers for timeline on mobile */
    [style*="position: relative; padding: 10px 40px; background-color: inherit; width: 50%"]::before {
        content: '' !important;
        position: absolute !important;
        width: 20px !important;
        height: 20px !important;
        background-color: #0D2233 !important;
        border-radius: 50% !important;
        left: 10px !important;
        top: 15px !important;
        z-index: 1 !important;
    }
    
    /* Company history section */
    [style*="display: flex; flex-wrap: wrap; justify-content: space-between;"] > [style*="flex-basis: 48%"] {
        flex-basis: 100% !important;
        margin-bottom: 30px !important;
    }
    
    /* Improve spacing for mobile */
    [style*="padding: 80px 0; background-color: #f5f5f5;"] {
        padding: 50px 0 !important;
    }
    
    [style*="max-width: 1200px; margin: 0 auto; padding: 0 20px;"] {
        padding: 0 15px !important;
    }
}

/* Small screens */
@media (max-width: 768px) {
    /* Hero section */
    .hero-section {
        height: 300px !important;
    }
    
    .hero-section h1 {
        font-size: 36px !important;
    }
    
    .hero-section p {
        font-size: 16px !important;
    }
    
    /* Product showcase */
    .showcase-item {
        flex-basis: 100%;
    }
    
    /* Timeline items */
    [style*="padding: 20px; background-color: white; position: relative; border-radius: 6px;"] {
        padding: 15px !important;
    }
    
    [style*="font-family: 'Abel', sans-serif; font-size: 24px; color: #0D2233;"] {
        font-size: 20px !important;
    }
    
    /* Section headings */
    [style*="text-align: center; font-family: 'Abel', sans-serif; font-size: 48px; margin-bottom: 50px;"] {
        font-size: 36px !important;
        margin-bottom: 30px !important;
    }
    
    [style*="font-family: 'Abel', sans-serif; font-size: 36px; margin-bottom: 40px; color: #0D2233;"] {
        font-size: 28px !important;
        margin-bottom: 25px !important;
    }
    
    [style*="font-family: 'Abel', sans-serif; font-size: 30px; margin-bottom: 20px; color: #0D2233;"] {
        font-size: 24px !important;
    }
    
    /* Footer adjustments */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Extra small screens */
@media (max-width: 576px) {
    /* Navbar */
    .navbar {
        padding: 0.5rem 3%;
        height: 80px;
    }
    
    .logo img {
        max-height: 60px;
        max-width: 60px;
    }
    
    /* Fix mobile navigation */
    .nav-links {
        top: 80px;
        height: calc(100vh - 80px);
    }
    
    /* Hero section */
    .hero-section {
        height: 250px !important;
    }
    
    .hero-section h1 {
        font-size: 28px !important;
    }
    
    .hero-section p {
        font-size: 14px !important;
        max-width: 90% !important;
    }
    
    /* Vision and Mission */
    .vision-section, .mission-section {
        padding: 20px;
    }
    
    .vision-section h2, .mission-section h2 {
        font-size: 28px;
    }
    
    .vision-section p, .mission-section p {
        font-size: 16px;
    }
    
    /* Company history */
    [style*="padding: 80px 0; background-color: #f5f5f5;"] {
        padding: 40px 0 !important;
    }
    
    /* Timeline */
    [style*="position: relative; max-width: 1000px; margin: 0 auto;"] {
        max-width: 100% !important;
    }
    
    /* Product showcase */
    .product-showcase {
        padding: 40px 0;
    }
    
    .showcase-category h3 {
        font-size: 28px;
    }
    
    .view-more {
        width: 180px;
        font-size: 16px;
    }
}