/* ========================================
   HOME PAGE TEMPLATE STYLES
   Extracted from: home-html-template.php
   ======================================== */

/* ========================================
   BANNER/SLIDER STYLES
   ======================================== */
.slide-item,
.banner-slide {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 590px;
    position: relative;
    display: flex;
    align-items: center;
}

.slide-1 {
    background-image: url('../images/main-slider/1.jpg');
}

.slide-2 {
    background-image: url('../images/main-slider/slider1.jpg');
}

.slide-3 {
    background-image: url('../images/main-slider/slider2.jpg');
}

.slide-4 {
    background-image: url('../images/main-slider/slider3.jpg');
}

.slide-5 {
    background-image: url('../images/main-slider/slider4.jpg');
}

.xs-banner-container-parent {
    padding: 60px 30px;
}

.banner-column h1,
.banner-column h2 {
    font-size: 2.5rem;
    font-weight: bold;
}

.banner-column p {
    font-size: 1.1rem;
}

.link-box {
    margin-top: 20px;
}

/* ✅ QR Box Styling */
.qr-box {
    position: absolute;
    right: 20px;
    bottom: 20px;
    text-align: center;
    z-index: 10;
}

.qr-box img {
    max-width: 100px;
    display: block;
    margin: 0 auto;
}

.qr-box p {
    font-size: 12px;
    color: #000;
    background: rgba(255, 255, 255, 0.8);
    padding: 3px 0px;
    border-radius: 4px;
    margin-top: 5px;
    line-height: 1.3;
    font-weight: bold;
}

/* Tablet View */
@media only screen and (max-width: 768px) {
    .slide-item,
    .banner-slide {
        min-height: 320px;
    }

    .banner-column h1,
    .banner-column h2 {
        font-size: 1.6rem;
    }

    .banner-column p {
        font-size: 0.95rem;
    }

    .xs-banner-container-parent {
        padding: 30px 15px;
    }

    .qr-box img {
        max-width: 0px;
    }

    .qr-box p {
        font-size: 0px;
    }
}

/* Mobile View */
@media only screen and (max-width: 480px) {
    .slide-item,
    .banner-slide {
        min-height: 190px;
    }

    .slide-1,
    .slide-2,
    .slide-3,
    .slide-4,
    .slide-5 {
        min-height: 190px;
    }

    .qr-box {
        right: 5px;
        bottom: 5px;
    }

    .qr-box img {
        max-width: 0px; /* ✅ Smaller size for mobile */
    }

    .qr-box p {
        font-size: 0px;
        padding: 2px 0px;
        line-height: 1.2;
    }
}

/* Extra small devices */
@media only screen and (max-width: 360px) {
    .qr-box img {
        max-width: 50px; /* ✅ Even smaller for tiny screens */
    }

    .qr-box p {
        font-size: 8px;
    }
}

/* ========================================
   FEATURED SECTION STYLES
   ======================================== */
.featured-section .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.featured-block {
    flex: 0 0 20%;
    max-width: 20%;
    padding: 15px;
    box-sizing: border-box;
    text-align: center;
}

.featured-block .inner-box {
    padding: 30px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0s ease;
    height: 100%;
}

.featured-block .icon-box {
    font-size: 40px;
    margin-bottom: 15px;
}

.featured-block h3 {
    font-size: 18px;
    font-weight: 600;
    transition: color 0s ease;
}

.featured-block h3 a {
    color: #222;
    text-decoration: none;
    transition: color 0s ease;
}

.featured-block:hover h3 a {
    color: navy;
}

/* Responsive Styling */
@media screen and (max-width: 1024px) {
    .featured-block {
        flex: 0 0 33.33%;
        max-width: 33.33%;
    }
}

@media screen and (max-width: 768px) {
    .featured-block {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media screen and (max-width: 480px) {
    .featured-block {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ========================================
   HOMEPAGE MOBILE WRAPPER STYLES
   ======================================== */
/* Center QR Box on mobile and tablet */
.homepage-mobile-wrapper {
    position: absolute;
    top: 5px;            /* top position */
    left: 50%;           /* center horizontally */
    transform: translateX(-50%); /* truly center it */
    z-index: 10;
    text-align: center;
}

/* Hide on desktop (width >= 769px) */
@media (min-width: 769px) {
    .homepage-mobile-wrapper {
        display: none;
    }
}

/* Tablet view: 481px to 768px */
@media (max-width: 768px) and (min-width: 481px) {
    .homepage-mobile-wrapper img {
        max-width: 60px;  /* slightly larger than mobile */
    }

    .homepage-mobile-wrapper p {
        font-size: 11px;
        padding: 3px 6px;
        line-height: 1.2;
    }

    .homepage-mobile-wrapper {
        top: 10px; /* small padding from top for tablet */
    }
}

/* Mobile view: up to 480px */
@media (max-width: 480px) {
    .homepage-mobile-wrapper img {
        max-width: 40px;
    }

    .homepage-mobile-wrapper p {
        font-size: 9px;
        padding: 2px 4px;
        line-height: 1.2;
    }

    .homepage-mobile-wrapper {
        top: 5px;
    }
}

/* Extra small devices: up to 360px */
@media (max-width: 360px) {
    .homepage-mobile-wrapper img {
        max-width: 35px;
    }

    .homepage-mobile-wrapper p {
        font-size: 8px;
    }
}

/* ========================================
   FULL-WIDTH BANNER SECTION STYLES
   ======================================== */
.full-width-banner-section {
    position: relative;
    width: 100%;
    display: block;
}

/* Hide all by default */
.banner-desktop1920,
.banner-desktop1366,
.banner-tablet,
.banner-mobile {
    display: none;
    width: 100%;
    height: auto;
}

/* Large Desktop (≥1200px) */
@media (min-width: 1200px) {
    .banner-desktop1920 {
        display: block;
    }
}

/* Medium Desktop / Laptop (992px–1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .banner-desktop1366 {
        display: block;
    }
}

/* Tablet (768px–991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .banner-tablet {
        display: block;
    }
}

/* Mobile (≤767px) */
@media (max-width: 767px) {
    .banner-mobile {
        display: block;
    }
}

/* ========================================
   INFO SECTION STYLES
   ======================================== */
.info-section {
    padding: 50px 20px;
    background-color: #fff;
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.info-box {
    background: #fff;
    border: 1px solid #eee;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-bottom: 4px solid #002f87;
}

.info-box h2, .info-box h3 {
    color: #002f87;
    margin-top: 0;
}

.info-box p {
    color: #000;
    font-size: 15px;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    background: #f26322;
    color: #fff;
    padding: 8px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
}

/* Responsive for screens below 768px */
@media (max-width: 768px) {
    .info-container {
        grid-template-columns: 1fr;
    }

    .info-section {
        padding: 30px 15px;
    }

    .info-box {
        padding: 20px;
    }

    .info-box p {
        font-size: 14px;
    }
}

/* ========================================
   CORE VALUES SECTION STYLES
   ======================================== */
.core-values-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.core-values-section h2 {
    font-size: 32px;
    color: #00060f;
    margin-bottom: 10px;
}

.core-values-section > p {
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #333;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.value-box {
    background: #fff;
    padding: 25px;
    border: 1px solid #ddd;
    border-bottom: 4px solid #002f87;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.value-box h3 {
    font-size: 20px;
    color: #002f87;
    margin-bottom: 10px;
}

.value-box p {
    color: #000;
    font-size: 15px;
    line-height: 1.5;
}

.core-values-section .closing-quote {
    font-size: 18px;
    font-weight: bold;
    margin-top: 50px;
    color: #00060f;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
