/**
 * About Banner Image Section Styles
 * Full-width edge-to-edge banner image with text below
 */

/* About Banner Image Section Container */
.about-banner-image-section {
    position: relative;
    margin-top: 50px; /* Maximum spacing for perfect vertical alignment */
    margin-bottom: 0; /* No gap after section */
    padding-top: 0; /* No internal padding - spacing handled by parent section */
    animation: fadeIn 1s ease-out;
}

/* Banner Image Container - Full Width Edge-to-Edge */
.about-banner-image-section .banner-image-container {
    width: 100vw; /* Full viewport width */
    max-width: none; /* Remove max-width constraint */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw; /* Break out of container to full width */
    margin-right: -50vw;
    margin-bottom: 0; /* No gap between banner and brochure text */
    height: 400px; /* Set fixed height for full-bleed effect */
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Gradient Overlay - Left to Middle for Text Readability */
.about-banner-image-section .banner-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%; /* Covers left to middle area */
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
    pointer-events: none; /* Allow clicks to pass through */
}

/* Main Banner Image - Full Bleed Cover */
.about-banner-image-section .main-banner-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; /* Covers entire area while maintaining aspect ratio */
    object-position: center; /* Centers the image */
    transition: transform 0.4s ease;
}

.about-banner-image-section .banner-image-container:hover .main-banner-image {
    transform: scale(1.05); /* Subtle zoom on hover */
}

/* Text Overlay on Left Side of Banner */
.about-banner-image-section .banner-text-overlay {
    position: absolute;
    top: 50%;
    left: 80px; /* Position on left side */
    transform: translateY(-50%);
    max-width: 600px;
    z-index: 10; /* Above gradient overlay */
    text-align: left;
    animation: fadeInLeft 1.2s ease-out;
}

/* Main Title Overlay - White Color */
.about-banner-image-section .overlay-main-title {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.2;
    color: #ffffff; /* White color */
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* Subtitle Overlay - White Color without Background */
.about-banner-image-section .overlay-subtitle {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    color: #ffffff; /* White color */
    margin-bottom: 0;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7); /* Dark text shadow for readability */
}

/* Fade in from left animation */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .about-banner-image-section {
        margin-top: 36px; /* Proportionally increased spacing for tablets */
    }

    .about-banner-image-section .banner-image-container {
        height: 350px; /* Adjust height for tablets */
        margin-bottom: 0; /* No gap */
    }

    .about-banner-image-section .banner-image-container::before {
        width: 70%; /* Wider overlay on tablets */
        background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0) 100%);
    }

    .about-banner-image-section .banner-text-overlay {
        left: 40px;
        max-width: 500px;
    }

    .about-banner-image-section .overlay-main-title {
        font-size: 36px;
    }

    .about-banner-image-section .overlay-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .about-banner-image-section {
        margin-top: 25px; /* Proportionally increased spacing for mobile */
        margin-bottom: 0; /* No gap */
    }

    .about-banner-image-section .banner-image-container {
        height: 300px; /* Adjust height for mobile */
        margin-bottom: 0; /* No gap */
    }

    .about-banner-image-section .banner-image-container::before {
        width: 100%; /* Full overlay on mobile for better readability */
        background: linear-gradient(to right, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 70%, rgba(0, 0, 0, 0) 100%);
    }

    .about-banner-image-section .banner-text-overlay {
        left: 20px;
        right: 20px;
        max-width: none;
        text-align: center;
    }

    .about-banner-image-section .overlay-main-title {
        font-size: 28px;
        letter-spacing: 0.5px;
    }

    .about-banner-image-section .overlay-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 575px) {
    .about-banner-image-section {
        margin-top: 10px; /* Reduced spacing for small mobile */
        margin-bottom: 0; /* No gap */
    }

    .about-banner-image-section .banner-image-container {
        height: 250px; /* Adjust height for small mobile */
        margin-bottom: 0; /* No gap */
    }

    .about-banner-image-section .banner-image-container::before {
        background: linear-gradient(to right, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.15) 70%, rgba(0, 0, 0, 0) 100%);
    }

    .about-banner-image-section .banner-text-overlay {
        left: 15px;
        right: 15px;
    }

    .about-banner-image-section .overlay-main-title {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .about-banner-image-section .overlay-subtitle {
        font-size: 14px;
        line-height: 1.4;
    }
}

/* Print Styles */
@media print {
    .about-banner-image-section .banner-image-container {
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .about-banner-image-section .banner-text-content {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* Brochure Text Section - Full Width Blue Background */
.brochure-text-section {
    width: 100vw; /* Full viewport width */
    max-width: none;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw; /* Break out of container to full width */
    margin-right: -50vw;
    background-color: #33A6DD; /* Blue background */
    padding: 60px 0;
    margin-top: 0; /* No gap above - sticks to banner */
    margin-bottom: 50px; /* Space below for next section */
    animation: fadeIn 1.2s ease-out;
}

/* Brochure Text Content Container */
.brochure-text-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: #FFFFFF; /* White text color */
}

/* Brochure Text Paragraphs */
.brochure-text-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #FFFFFF; /* White text */
    text-align: justify;
    font-weight: 400;
}

.brochure-text-content p:last-child {
    margin-bottom: 0;
}

/* Responsive Design for Brochure Section */
@media (max-width: 991px) {
    .brochure-text-section {
        padding: 50px 0;
    }

    .brochure-text-content {
        padding: 0 40px;
    }

    .brochure-text-content p {
        font-size: 17px;
        line-height: 1.7;
    }
}

@media (max-width: 767px) {
    .brochure-text-section {
        padding: 40px 0;
    }

    .brochure-text-content {
        padding: 0 25px;
    }

    .brochure-text-content p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 15px;
    }
}

@media (max-width: 575px) {
    .brochure-text-section {
        padding: 30px 0;
    }

    .brochure-text-content {
        padding: 0 20px;
    }

    .brochure-text-content p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 12px;
        text-align: left;
    }
}
