/* ============================================
   Mobile-Specific Styles for Services & Sectors Pages
   Loaded only on screens up to 768px
   ============================================ */
@font-face {
    font-family: 'AvenirRegular';
    src:url('/fonts/AvenirRegular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
/* Base mobile adjustments */
body {
    padding-top: 70px;
    height: auto;
    min-height: 100vh;
    background-image: url(/imgs/banner5.jpg);
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Banner background - full width cover */
.bac {
    height: 280px;
    width: 100vw;
    position: absolute;
    top: 0;
    left: 50%;
    right: 0;
    transform: translateX(-50%);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    margin: 0;
}

.sectionbox {
    overflow-x: hidden;
}

.sectionbox .header {
    min-height: 20vh;
}

.sectionbox .header .items {
    text-align: center;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.sectionbox .header .items .title {
    font-size: 2.5rem;
}

.sectionbox .header .items h2 {
    font-size: 1rem;
    text-align: center;
    margin: auto;
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
}

/* Intro section mobile adjustments */
.intro-section {
    margin: 0 auto 1.5rem;
    padding: 1rem 1.2rem;
    max-width: 90%;
}

.intro-text p {
    font-size: 1rem;
    line-height: 1.7;
}

.intro-divider {
    margin: 0.8rem auto 0;
}

/* Container centering */
.sectionbox .container {
    padding: 20px 0 20px 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Stack all boxes vertically and center them */
.sectionbox .box {
    flex-direction: column;
    border-left: none;
    border-right: none;
    margin: 0 auto 10px;
    width: 90%;
    max-width: 100%;
    background: transparent;
}

.sectionbox .box.right {
    flex-direction: column-reverse;
    border-left: none;
    border-right: none;
}

/* Full width for content and images */
.sectionbox .box .content,
.sectionbox .box .image-box {
    width: 100%;
    display: block;
    padding-left: 0;
    padding-right: 0;
}

.sectionbox .box .image-box {
    text-align: center;
}

.sectionbox .box .content {
    padding: 10px 0;
}

/* Responsive images */
.sectionbox .box img {
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 8px;
}

.sectionbox .box img:hover {
    scale: 1.02;
}

/* Typography adjustments */
.sectionbox .container .box .title {
    font-size: 1.4rem;
    padding: 10px 0;
}

.container .box .content h3 {
    font-size: 0.95rem;
    margin-left: 0;
}

.container .box .content ul {
    padding-left: 0.5rem;
}

.container .box .content ul li {
    font-size: 0.9rem;
}

.sectionbox .container .box p {
    padding: 12px 0;
}

/* Read More button - show on mobile */
.read-more-btn {
    display: inline-block;
    margin-left: 0;
}

/* Closing statement mobile */
.closing-statement {
    padding: 1.2rem;
    margin: 2rem auto 1.5rem;
    max-width: 90%;
}

.closing-statement p {
    font-size: 1rem;
    line-height: 1.7;
}

/* Small mobile devices (480px and below) */
@media screen and (max-width: 480px) {
    .bac {
        height: 220px;
    }
    
    .sectionbox .header {
        min-height: 20vh;
    }
    
    .sectionbox .header .items {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .sectionbox .header .items .title {
        font-size: 2rem;
    }
    
    .sectionbox .header .items h2 {
        font-size: 0.85rem;
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .intro-section {
        margin: 0 auto 1.2rem;
        padding: 0.8rem 1rem;
        border-radius: 12px;
        max-width: 88%;
    }
    
    .intro-text p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .sectionbox .box {
        width: 88%;
    }
    
    .sectionbox .container .box .title {
        font-size: 1.3rem;
    }
    
    .container .box .content h3 {
        font-size: 0.9rem;
    }
    
    .sectionbox .container .box p {
        font-size: 0.9rem;
    }
    
    .container .box .content ul li {
        font-size: 0.85rem;
    }
    
    .read-more-container.collapsed {
        max-height: 120px;
    }
    
    .closing-statement {
        padding: 1rem;
        margin: 1.5rem auto 1rem;
        border-radius: 12px;
        max-width: 88%;
    }
    
    .closing-statement p {
        font-size: 0.9rem;
    }
}