/* =========================================================
   Home page alignment
   - Headings and short card text: centered
   - Longer paragraphs: justified (last line centered)
   Remove the <link> to this file in index.php to undo.
   ========================================================= */

/* ---------- Hero buttons: center text, even when it wraps ---------- */
.hero .hero-btn {
    text-align: center;
}

.hero .hero-btn .btn-default {
    text-align: center;
}

/* ---------- Service cards (hero) ---------- */
.hero .features-item {
    text-align: center;
}

.hero .features-item .icon-box {
    margin-left: auto;
    margin-right: auto;
}

/* ---------- About: counter, mission, vision ---------- */
.about-us .about-counter-box {
    text-align: center;
}

.about-us .about-counter-box .about-header {
    justify-content: center;
}

.about-us .about-counter-box .responsive-margin {
    margin-right: 0 !important;
}

.about-us .about-list-item {
    text-align: center;
}

.about-us .about-list-item .about-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-us .about-list-item p {
    text-align: center;
}

.about-us .about-us-body p {
    text-align: justify;
    text-align-last: center;
    hyphens: auto;
}

/* ---------- Two-column feature sections ---------- */
.our-success .section-title,
.who-we-are .section-title,
.our-facts .section-title {
    text-align: center;
}

.our-success .section-title p,
.who-we-are .section-title p {
    text-align: justify;
    text-align-last: center;
    hyphens: auto;
}

/* ---------- "As Featured In" logos ---------- */
.our-facts .photo-gallery,
.our-facts .image-anime-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ---------- Phones & small tablets: paragraph cards ---------- */
@media (max-width: 767px) {
    /* Big "About Us" statement: smaller and easier to scan */
    .about-us .section-title h2 {
        font-size: 24px;
        line-height: 1.4;
    }

    /* Shared card look: dark glass with a brand gradient border */
    .about-us .about-list-item,
    .about-us .about-us-body p,
    .our-success .section-title p,
    .who-we-are .section-title p {
        position: relative;
        padding: 22px 20px;
        border: 1px solid transparent;
        border-radius: 18px;
        background:
            linear-gradient(rgba(30, 29, 48, 0.92), rgba(30, 29, 48, 0.92)) padding-box,
            linear-gradient(135deg, rgba(65, 133, 221, 0.55), rgba(180, 47, 218, 0.55)) border-box;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    }

    /* Readable paragraph text */
    .about-us .about-list-item p,
    .about-us .about-us-body p,
    .our-success .section-title p,
    .who-we-are .section-title p {
        font-size: 15px;
        line-height: 1.75;
        color: #dcdbe8;
        letter-spacing: 0.1px;
    }

    /* Long paragraphs: left-aligned (easiest to read on small screens) */
    .about-us .about-us-body p,
    .our-success .section-title p,
    .who-we-are .section-title p {
        text-align: justify;
        text-align-last: auto;
        hyphens: manual;
        margin-top: 18px;
    }

    /* Mission / Vision cards */
    .about-us .about-list-item {
        margin-bottom: 18px;
        text-align: center;
    }

    .about-us .about-list-item .about-header img {
        width: 56px;
        height: 56px;
        padding: 6px;
        margin-bottom: 0;
        border-radius: 50%;
        background: rgba(65, 133, 221, 0.18);
        box-shadow: 0 0 18px rgba(65, 133, 221, 0.35);
    }

    .about-us .about-list-item .about-header h3 {
        margin-top: 4px;
        font-size: 20px;
    }

    .about-us .about-list-item p {
        margin: 0;
        text-align: center;
    }

    .about-us .about-us-body {
        margin-top: 6px;
    }

    /* The card already has padding, so drop the old side spacing */
    .about-us .about-us-body p {
        margin-bottom: 0;
    }
}

/* ---------- Phones ---------- */
@media (max-width: 575px) {
    .award-box h3 {
        font-size: 1.1rem;
        line-height: 1.35;
    }
}
