/* About Us Page Responsive Styles */

/* 1280x768 Resolution Optimizations */
@media (max-width: 1280px) and (min-width: 993px) {
    /* About Hero Section for 1280x768 */
    .about-hero-content-wrapper {
        padding: 60px 40px;
        gap: 40px;
    }

    .about-hero-text-column {
        width: 55%;
        padding-right: 32px;
    }

    .about-hero-text-column h1 {
        font-size: 44px;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .about-hero-text-column p {
        font-size: 18px;
        line-height: 1.5;
        margin-bottom: 24px;
    }

    .about-hero-image-column {
        width: 45%;
    }

    .hero-image-overlay-card {
        right: -30px;
        bottom: 50px;
        width: 85%;
        max-width: 320px;
        padding: 20px;
        gap: 16px;
    }
    
    .overlay-card-icon-wrapper {
        width: 48px;
        height: 48px;
    }
    
    .overlay-card-title {
        font-size: 18px;
    }
    
    .overlay-card-subtitle {
        font-size: 14px;
    }

    /* Our Story Section for 1280x768 */
    .our-story-section {
        padding: 60px 40px;
    }

    .our-story-content-wrapper {
        gap: 40px;
    }

    .our-story-image-column {
        width: 45%;
    }

    .our-story-text-column {
        width: 55%;
    }

    .story-main-content h3 {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .story-main-content p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 18px;
    }

    /* Our Core Section for 1280x768 */
    .our-core-section {
        padding: 60px 40px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 36px;
        margin-bottom: 16px;
    }

    .core-items-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
        max-width: 1100px;
        margin: 0 auto;
    }

    .core-item {
        padding: 24px;
    }

    .core-item-text h3 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .core-item-text p {
        font-size: 15px;
        line-height: 1.5;
    }

    /* What We Do Section for 1280x768 */
    .what-we-do-section {
        padding: 60px 40px;
    }

    .what-we-do-header {
        margin-bottom: 40px;
    }

    .what-we-do-header h2 {
        font-size: 36px;
        margin-bottom: 16px;
    }

    .what-we-do-header p {
        font-size: 16px;
        line-height: 1.6;
        max-width: 80%;
    }

    .what-we-do-toggles {
        gap: 16px;
        margin-bottom: 32px;
    }

    .toggle-btn {
        padding: 12px 24px;
        font-size: 15px;
        min-width: 140px;
    }

    .product-cards-row {
        gap: 24px;
    }

    .product-card {
        min-width: 300px;
        padding: 24px;
    }

    .services-cards-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        max-width: 1100px;
        margin: 0 auto;
    }

    .service-card {
        padding: 24px;
    }

    .service-card-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .service-card-description {
        font-size: 15px;
        line-height: 1.5;
    }

    /* Statistics Section for 1280x768 */
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
        max-width: 1000px;
        margin: 0 auto;
    }

    .stat-card {
        padding: 24px 16px;
    }
}

/* Tablet Styles */
@media (max-width: 992px) {
    /* About Hero Section */
    .about-hero-content-wrapper {
        flex-direction: column;
        padding: 40px 20px;
    }

    .about-hero-text-column {
        width: 100%;
        padding-right: 0;
        margin-bottom: 30px;
        text-align: center;
    }

    .about-hero-image-column {
        width: 80%;
        margin: 0 auto;
    }

    .about-hero-image-column {
        width: 100%;
        margin: 0 auto 20px;
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        background-color: #f5f7fa;
    }
    
    .about-hero-image {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 12px;
    }

    .hero-image-overlay-card {
        position: absolute;
        right: -20px;
        bottom: 40px;
        width: 90%;
        max-width: 300px;
        background-color: #ffffff;
        border-radius: 12px;
        box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
        padding: 15px;
        display: flex;
        align-items: center;
        gap: 12px;
        z-index: 2;
    }
    
    .overlay-card-icon-wrapper {
        background-color: #f5f9fd;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .overlay-card-text-content {
        flex-grow: 1;
    }

    /* Our Story Section */
    .our-story-content-wrapper {
        flex-direction: column;
    }

    .our-story-image-column {
        width: 100%;
        max-width: 400px;
        margin: 0 auto 30px;
    }

    .our-story-text-column {
        width: 100%;
    }

    /* Our Core Section */
    .core-items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* What We Do Section */
    .what-we-do-header p {
        width: 90%;
    }

    .product-cards-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 20px;
        justify-content: flex-start;
    }

    .product-card {
        min-width: 280px;
        margin-right: 15px;
    }

    .services-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Statistics Section if present */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* About Hero Section */
    .about-hero-content-wrapper {
        padding: 30px 15px;
    }

    .about-hero-text-column h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    .about-hero-text-column p {
        font-size: 14px;
        line-height: 1.5;
    }

    .about-hero-image-column {
        width: 100%;
        height: 300px;
    }
    
    .about-hero-image {
        height: 100%;
        object-fit: cover;
    }

    .hero-image-overlay-card {
        display: none; /* Hide overlay card in mobile */
    }
    
    .overlay-card-subtitle {
        font-size: 12px;
        color: #1181D0;
        margin: 0;
        line-height: 1.2;
    }
    
    .overlay-card-title {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        margin: 0;
        line-height: 1.2;
    }

    /* Our Story Section */
    .our-story-section {
        padding: 30px 15px;
    }

    .story-main-content h3 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .story-main-content p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .signature-block {
        flex-direction: column;
        align-items: flex-start;
    }

    .signature-image {
        margin-bottom: 10px;
    }

    /* Our Core Section */
    .our-core-section {
        padding: 30px 15px;
    }

    .section-header h2 {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .core-items-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .core-item {
        padding: 15px;
    }

    .core-item-text h3 {
        font-size: 18px;
    }

    .core-item-text p {
        font-size: 14px;
    }

    /* What We Do Section */
    .what-we-do-section {
        padding: 30px 15px;
    }

    .what-we-do-header h2 {
        font-size: 26px;
    }

    .what-we-do-header p {
        width: 100%;
        font-size: 14px;
        margin-bottom: 20px;
    }

    .what-we-do-toggles {
        flex-direction: column;
    }

    .toggle-btn {
        width: 100%;
        margin: 5px 0;
        padding: 10px;
    }

    .product-cards-row {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .product-card {
        min-width: 240px;
    }

    .services-cards-container {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 15px;
    }

    .carousel-nav {
        margin-top: 20px;
    }

    .nav-arrow {
        width: 36px;
        height: 36px;
    }
}

/* Very Small Screens */
@media (max-width: 480px) {
    /* About Hero Section */
    .about-hero-content-wrapper {
        padding: 20px 10px;
    }
    
    .about-hero-text-column h1 {
        font-size: 22px;
        line-height: 1.2;
    }

    .about-hero-text-column h1 br {
        display: none;
    }
    
    .about-hero-text-column h1 .text-highlight {
        display: inline;
    }

    .about-hero-text-column p {
        font-size: 13px;
        line-height: 1.4;
        padding: 0 5px;
    }

    .hero-image-overlay-card {
        display: none; /* Hide overlay card on very small screens */
    }
    
    .about-hero-image {
        height: 100%;
        object-fit: cover;
    }

    .overlay-card-subtitle {
        font-size: 11px;
    }

    .overlay-card-title {
        font-size: 14px;
    }
    
    /* Core Section */
    .core-item {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .core-item-icon-container img {
        width: 40px;
        height: 40px;
    }
    
    /* Image alignment */
    .about-hero-image-column {
        margin-bottom: 10px;
    }

    /* Our Story Section */
    .story-main-content h3 {
        font-size: 22px;
    }

    .story-main-content p {
        font-size: 13px;
    }

    .signature-block {
        align-items: center;
        margin: 0 auto;
    }

    /* What We Do Section */
    .product-cards-row {
        padding-bottom: 15px;
    }

    .product-card {
        min-width: 200px;
        margin-right: 10px;
    }

    .product-card-text h3 {
        font-size: 16px;
    }

    .product-card-text p {
        font-size: 12px;
    }

    .service-card-title {
        font-size: 16px;
    }

    .service-card-description {
        font-size: 12px;
    }
}
