/* =========================================
   ===== GLOBAL VARIABLES & CONTAINERS =====
   ========================================= */
:root {
    --primary-green: #10b981; /* Ensure your theme colors are set */
    --light-green: #d1fae5;
    --dark-blue: #1e293b;
}

.max-w-custom {
    max-width: 1200px; /* Prevents stretching on ultra-wide monitors */
    margin: 0 auto;
}

/* =========================================
   ===== ABOUT US PAGE SEAMLESS GRADIENT =====
   ========================================= */

/* 1. Header */
.about-page-header {
    background: linear-gradient(to bottom, #f8fafc 0%, #f0fdf4 100%);
    padding: 5rem 0 3rem;
    text-align: center;
    margin-bottom: 0 !important;
}

/* 2. Section 1 */
.about-sec-1 {
    background: linear-gradient(to bottom, #f0fdf4 0%, #ffffff 100%);
    padding: 5rem 0;
    margin: 0 !important;
}

/* 3. Section 2 */
.about-sec-2 {
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
    padding: 5rem 0;
    margin: 0 !important;
}

/* 4. Section 3 */
.about-sec-3 {
    background: linear-gradient(to bottom, #f8fafc 0%, #f0fdf4 100%);
    padding: 5rem 0;
    margin: 0 !important;
}

/* 5. Connect Section */
.connect-section {
    background: linear-gradient(to bottom, #f0fdf4 0%, #e8f5e9 100%);
    padding: 5rem 0;
    margin-top: 0 !important;
}

/* =========================================
   ===== TYPOGRAPHY & IMAGES =====
   ========================================= */
.about-main-title {
    font-size: clamp(2rem, 4vw, 2.8rem); /* Responsive font scaling */
    font-weight: 700;
    color: var(--dark-blue);
}

.about-main-title span, 
.connect-section .about-heading span {
    color: var(--primary-green);
}

.about-subtitle {
    color: #64748b;
    font-size: clamp(1rem, 2vw, 1.1rem);
    max-width: 700px;
    margin: 0 auto;
}

.about-heading {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
}

.about-text {
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    text-align: justify; /* Default for desktop */
}

/* Image Wrapping and Decor */
.about-img-wrapper {
    position: relative;
    padding: 1rem;
    z-index: 1; /* Keep image above decor */
}

.about-img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: transform 0.4s ease;
    object-fit: cover;
}

.about-img:hover {
    transform: translateY(-8px);
}

/* Background decorative box */
.about-img-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    height: 70%;
    background-color: var(--light-green);
    border-radius: 16px;
    z-index: -1;
    transform: translate(15px, -15px);
}

.about-img-wrapper.left-decor::before {
    left: 0;
    right: auto;
    transform: translate(-15px, -15px);
}

/* =========================================
   ===== CONNECT CARDS =====
   ========================================= */
.connect-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.connect-card:hover {
    border-color: var(--primary-green);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.15);
    transform: translateY(-5px);
}

.connect-icon {
    width: 70px;
    height: 70px;
    background-color: var(--light-green);
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.connect-card:hover .connect-icon {
    background-color: var(--primary-green);
    color: #ffffff;
}

.connect-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 0.75rem;
}

.connect-detail {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

/* =========================================
   ===== MEDIA QUERIES FOR RESPONSIVENESS ==
   ========================================= */

/* Tablets & Small Screens */
@media (max-width: 991px) {
    .about-sec-1, .about-sec-2, .about-sec-3, .connect-section {
        padding: 4rem 0;
    }
    
    /* Give spacing between stacked image and text */
    .about-img-wrapper {
        margin-top: 2rem; 
    }
    
    /* Reset order on section 2 so image stays below text on mobile if preferred, 
       or let bootstrap handle it. Currently Bootstrap handles order via `order-lg-*` */
}

/* Mobile Screens */
@media (max-width: 767px) {
    .about-page-header {
        padding: 4rem 0 2rem;
    }
    
    .about-sec-1, .about-sec-2, .about-sec-3, .connect-section {
        padding: 3rem 0; /* Reduce padding on phones to save space */
    }

    .about-text {
        text-align: left; /* Justify text looks stretched and bad on mobile */
    }

    /* Reduce offset of decorative background box so it doesn't cause horizontal scrolling */
    .about-img-wrapper::before {
        transform: translate(8px, -8px);
    }
    .about-img-wrapper.left-decor::before {
        transform: translate(-8px, -8px);
    }
    
    .connect-card {
        padding: 2rem 1rem;
    }
}