

/* =====================================================
   1. ROOT VARIABLES
===================================================== */

:root {
    --indigo: #45a192;
    --footer: #33308f;
    --teal: #3a9f8e;
    --mint: #edf7f4;
    --orange: #f26b21;
    --text: #111;
    --white: #fff;
    --border: #e8e8e8;

    /* Keep only ONE background image path */
    --amogs-bg-image: url("../images/home-three-banner-2.jpg");

    /* Overlay images (use PNG / WebP with transparency) */
    --amogs-overlay-image: url("../images/bg-overlay.png");
    --amogs-overlay-image-2: url("../images/tab-mobile-ovarlay.png");
}

/* =====================================================
   2. GLOBAL RESET
===================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}

body {
    margin: 0;
    padding: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

body.header-over {
    padding-top: 0 !important;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

address {
    font-style: normal;
}

:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =====================================================
   3. MAIN CONTAINER
===================================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =====================================================
   4. SKIP LINK
===================================================== */

.skip-link {
    position: absolute;
    top: -100px;
    left: 15px;
    z-index: 2000;
    padding: 12px 18px;
    color: var(--white);
    background: var(--indigo);
    border-radius: 4px;
}

.skip-link:focus {
    top: 10px;
}

/* =====================================================
   5. HEADER
   Normal document flow, NOT fixed or sticky.
===================================================== */

.site-header,
.site-header.at-top,
body.header-over .site-header {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    display: block;
    width: 100%;
    max-width: 100%;

    transform: none !important;
    z-index: 100;

    background-color: #f6ecf0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.35),
            rgba(255, 255, 255, 0.35)),
        var(--amogs-bg-image);

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Mobile menu open background */
.site-header.menu-open {
    background-color: #fff;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.90),
            rgba(255, 255, 255, 0.90)),
        var(--amogs-bg-image);

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Header inner layout */

.header-inner {
    position: relative;
    min-height: 100px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}

/* =====================================================
   6. LOGO
===================================================== */

.logo {
    display: inline-flex;
    align-items: center;

    flex: 0 0 auto;
    max-width: 180px;
}

.logo img {
    display: block;
    width: 200px;
    max-width: 100%;
    height: 100px;

    object-fit: contain;
    object-position: left center;
}

/* =====================================================
   7. DESKTOP NAVIGATION
===================================================== */

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    flex: 1 1 auto;
    min-width: 0;
}

.menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 3px;
    width: 100%;
}

.menu>li {
    position: relative;

    display: flex;
    align-items: center;

    flex: 0 0 auto;
}

.menu>li>a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 10px 11px;

    color: #342f93;

    font-size: 15px;
    font-weight: 600;
    line-height: 26px;
    text-align: center;

    border-radius: 4px;

    transition:
        color 0.25s ease,
        background-color 0.25s ease;
}

.menu>li>a:hover,
.menu>li>a:focus-visible,
.menu>li>a.active,
.menu>li.active>a {
    color: var(--indigo);
}

/* =====================================================
   8. DROPDOWN ARROW BUTTON
===================================================== */

.dd-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 26px;
    width: 26px;
    height: 36px;

    margin-left: -7px;
    padding: 0;

    color: #342F93;
    background: transparent;
    border: 0;
    border-radius: 4px;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.dd-toggle i {
    font-size: 13px;
}

.has-dropdown.open>.dd-toggle {
    transform: rotate(180deg);
}

/* =====================================================
   9. DESKTOP DROPDOWN MENU
===================================================== */

.menu>li>.dropdown {
    position: absolute;
    top: 100%;
    left: 0;

    display: block;

    min-width: 245px;
    max-width: 320px;
    padding: 8px 0;

    background: var(--white);
    border: 1px solid #eee;
    border-radius: 5px;

    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(8px);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;

    z-index: 150;
}

.dropdown li {
    display: block;
    width: 100%;
}

.dropdown li a {
    display: block;
    width: 100%;
    padding: 11px 18px;

    color: #342f93;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 26px;

    overflow-wrap: anywhere;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.dropdown li a:hover,
.dropdown li a:focus-visible,
.dropdown li a.active {
    color: var(--indigo);
    background: #f5f4fc;
}

/* Desktop dropdown hover and keyboard support */

@media (min-width: 1101px) {

    .menu>li.has-dropdown:hover>.dropdown,
    .menu>li.has-dropdown:focus-within>.dropdown,
    .menu>li.has-dropdown.open>.dropdown {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
}

/* Two-column dropdown (desktop only) */
@media (min-width: 1101px) {
    .menu>li>.dropdown.dropdown-cols {
        display: grid;
        grid-auto-flow: column;
        grid-template-rows: repeat(var(--dd-rows, 7), auto);
        grid-template-columns: minmax(250px, max-content) max-content;

        width: max-content;
        min-width: 0;
        max-width: none;
        padding: 8px 0;

        border: 1px solid #b9ece4;
        border-radius: 0;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }

    .dropdown-cols li a {
        padding: 10px 20px;
        white-space: nowrap;
    }
}

/* =====================================================
   10. HAMBURGER BUTTON
===================================================== */

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;

    flex: 0 0 44px;
    width: 44px;
    height: 44px;

    padding: 0;

    color: var(--indigo);
    background: #f5f4fc;

    border: 1px solid #e7e5f5;
    border-radius: 5px;

    font-size: 23px;
    line-height: 1;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.nav-toggle:hover {
    color: var(--white);
    background: var(--indigo);
}

/* =====================================================
   11. PAGE BANNER
===================================================== */

.page-banner {
    position: relative;
    isolation: isolate;

    display: flex;
    flex-direction: column;
    justify-content: center;

    width: 100%;
    min-height: 250px;

    background-color: #f6ecf0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.35),
            rgba(255, 255, 255, 0.35)),
        var(--amogs-bg-image);

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background-image: var(--amogs-overlay-image);
    background-repeat: no-repeat;

    /* Full width, sits at the bottom edge of the banner */
    background-position: center bottom;
    background-size: 100% auto;

    opacity: 0.13;
    pointer-events: none;
}

/* Keep banner text above the overlay */
.page-banner>.container {
    position: relative;
    z-index: 1;
}

.page-banner h1 {
    margin-bottom: 6px;

    color: #342F93;
    font-size: 36px;
    font-weight: 700;
    line-height: 37px;

    overflow-wrap: anywhere;
}

/* =====================================================
   12. BREADCRUMB
===================================================== */

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    font-size: 16px;
    font-weight: 700;
    line-height: 26px;

    color: #555;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
}

.breadcrumb li+li::before {
    content: "::";
    margin: 0 8px;
    color: #888;
}

.breadcrumb a {
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--teal);
}

/* =====================================================
   13. CONTACT SECTION
===================================================== */

.contact-section {
    padding: 50px 0;
    background: var(--white);
}

.section-title {
    margin-bottom: 28px;

    color: #342F93;
    font-size: 22px;
    font-weight: 700;
    line-height: 29px;
    text-align: center;
}

/* Contact cards layout */

.info-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 20px;
}

.info-card {
    display: flex;
    flex-direction: column;
    align-items: center;

    flex: 0 0 calc((100% - 40px) / 3);
    min-width: 0;
    min-height: 190px;

    padding: 20px 16px;

    text-align: center;

    background: var(--mint);
    border: 1px solid var(--teal);
    border-radius: 3px;

    overflow-wrap: anywhere;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
}

/* Contact icons */

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 46px;
    width: 46px;
    height: 46px;

    border: 2px solid var(--teal);
    border-radius: 50%;

    color: var(--teal);
    font-size: 18px;
}

/* Contact card headings */

.info-card h3 {
    margin: 12px 0 4px;
    font-family: Urbanist, sans-serif;
    color: var(--teal);
    font-size: 16px;
    font-weight: 700;
    line-height: 21px;
}

/* Contact card text */

.info-card p,
.info-card address {
    max-width: 100%;
    font-family: Urbanist, sans-serif;
    color: #000;
    font-size: 15px;
    font-weight: 600;
    line-height: 26px;

    overflow-wrap: anywhere;
}

.info-card a {
    transition: color 0.2s ease;
}

.info-card a:hover {
    color: var(--teal);
}

/* =====================================================
   14. FOOTER
===================================================== */

.site-footer {
    margin-top: 70px;
    padding-top: 30px;

    color: var(--white);
    background: var(--footer);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.15fr 1.05fr 0.9fr 1.15fr;

    gap: 38px;
    padding: 44px;
}

.f-col {
    min-width: 0;
}

.f-col h2 {
    margin-bottom: 20px;

    color: var(--white);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

/* Footer logo */

.f-logo {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 10px;
}

.f-logo img {
    width: auto;
    max-width: 240px;
    height: auto;
}

/* Footer about */

.f-about p {
    margin-bottom: 18px;

    color: var(--white);
    font-size: 15px;
    line-height: 26px;
}

/* Footer social links */

.social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    color: var(--white);
    background: #4b46c8;

    font-size: 20px;
    border-radius: 2px;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.social a:hover {
    background: #282474;
    transform: translateY(-3px);
}

/* Footer links */

.f-links li {
    padding: 7px 0;
}

.f-links a {
    display: flex;
    align-items: flex-start;
    gap: 8px;

    font-size: 15px;
    line-height: 1.5;

    overflow-wrap: anywhere;

    transition: color 0.2s ease;
}

.f-links i {
    flex: 0 0 14px;
    margin-top: 5px;

    font-size: 12px;
}

.f-links a:hover {
    color: #ffc9a8;
}

.f-links .view-all {
    margin-top: 14px;
}

.f-links .view-all a {
    color: var(--orange);
}

.f-links .view-all a:hover {
    color: #ff9a5f;
}

/* Footer contact information */

.f-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-bottom: 18px;

    font-size: 14.5px;
    line-height: 26px;

    overflow-wrap: anywhere;
}

.f-info i {
    flex: 0 0 16px;
    margin-top: 6px;

    font-size: 14px;
}

.f-info a {
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
}

.f-info a:hover {
    color: #ffc9a8;
}

/* Copyright */

.copyright {
    padding-top: 14px;
    padding-bottom: 26px;

    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.copyright p {
    font-size: 15px;
    line-height: 1.5;
}

.copyright a {
    color: var(--orange);
}

.copyright a:hover {
    text-decoration: underline;
}

/* =====================================================
   15. BACK TO TOP BUTTON
===================================================== */

.to-top {
    position: fixed;
    right: 30px;
    bottom: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    padding: 0;

    color: var(--white);
    background: #2d7be5;

    border: 0;
    border-radius: 3px;

    font-size: 14px;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        background 0.25s ease;

    z-index: 900;
}

.to-top.show {
    opacity: 0.95;
    visibility: visible;
    pointer-events: auto;
}

.to-top:hover {
    background: var(--indigo);
}

/* =====================================================
   16. LAPTOP / SMALL DESKTOP
   1101px to 1250px
===================================================== */

@media (max-width: 1250px) and (min-width: 1101px) {
    .container {
        padding-right: 20px;
        padding-left: 20px;
    }

    .header-inner {
        gap: 12px;
    }

    .logo {
        max-width: 150px;
    }

    .logo img {
        width: 140px;
        height: 70px;
    }

    .menu {
        gap: 0;
    }

    .menu>li>a {
        padding-right: 7px;
        padding-left: 7px;
        font-size: 11px;
    }

    .dd-toggle {
        flex-basis: 22px;
        width: 22px;
        margin-left: -5px;
    }
}

/* =====================================================
   17. TABLET AND MOBILE NAVIGATION
   1100px and below
===================================================== */

@media (max-width: 1100px) {

    .site-header,
    .site-header.at-top,
    body.header-over .site-header {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        width: 100%;
        transform: none !important;
    }

    .header-inner {
        min-height: 76px;

        flex-wrap: wrap;
        gap: 12px;

        padding-top: 5px;
        padding-bottom: 5px;
    }

    .logo img {
        width: 135px;
        height: 64px;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    /* Keep mobile navigation in normal header flow */
    .main-nav {
        position: static;

        display: none;

        flex: 0 0 100%;
        width: 100%;
        min-width: 0;

        max-height: 70vh;
        overflow-x: hidden;
        overflow-y: auto;

        padding: 8px 0 15px;

        background: transparent;
        border-top: 1px solid rgba(0, 0, 0, 0.10);
    }

    .main-nav.open {
        display: block;
        box-shadow: none;
    }

    .menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;

        gap: 0;
        width: 100%;
    }

    .menu>li {
        display: flex;
        flex-wrap: wrap;
        align-items: center;

        width: 100%;

        border-bottom: 1px solid rgba(0, 0, 0, 0.10);
    }

    .menu>li:last-child {
        border-bottom: 0;
    }

    .menu>li>a {
        display: flex;

        flex: 1 1 0;
        justify-content: flex-start;

        min-height: 46px;
        padding: 12px 10px;

        font-size: 13px;
        text-align: left;
    }

    .dd-toggle {
        display: inline-flex;

        flex: 0 0 42px;
        width: 42px;
        height: 42px;

        margin: 0;

        font-size: 15px;
    }

    .has-dropdown.open>.dd-toggle {
        color: var(--teal);
        transform: rotate(180deg);
    }

    /* Mobile dropdown */
    .menu>li>.dropdown {
        position: static;

        display: none;

        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
        max-width: none;

        max-height: none;
        overflow: visible;

        padding: 5px 0 8px 12px;

        background: rgba(248, 248, 252, 0.95);

        border: 0;
        border-radius: 0;
        box-shadow: none;

        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transform: none;
        transition: none;
    }

    .menu>li.has-dropdown.open>.dropdown {
        display: block;
    }

    .menu>li.has-dropdown:hover>.dropdown {
        transform: none;
    }

    .dropdown li {
        border-bottom: 1px solid #e3e2f3;
    }

    .dropdown li:last-child {
        border-bottom: 0;
    }

    .dropdown li a {
        padding: 11px 14px;
        font-size: 12px;
    }

    /* Tablet banner */
    .page-banner {
        min-height: 260px;
        padding: 30px 0;

        background-position: center center;
    }

    .page-banner h1 {
        font-size: 34px;
    }

    /* Tablet + mobile overlay: replaces the desktop image, bottom of banner */
    .page-banner::before {
        inset: 0 auto 0 50%;
        width: max(100%, 1000px);
        transform: translateX(-50%);

        background-image: var(--amogs-overlay-image-2);
        background-position: center bottom;
        background-size: 100% auto;

        opacity: 0.13;
    }
}

/* =====================================================
   18. TABLETS
   768px to 991px
===================================================== */

@media (min-width: 768px) and (max-width: 991px) {
    .container {
        padding-right: 25px;
        padding-left: 25px;
    }

    .header-inner {
        min-height: 76px;
    }

    .logo img {
        width: 145px;
        height: 65px;
    }

    .main-nav {
        max-height: 72vh;
    }

    .section-title {
        font-size: 22px;
    }

    .info-card {
        flex: 0 0 calc((100% - 20px) / 2);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 34px 30px;
    }
}

/* =====================================================
   19. MOBILE
   767px and below
===================================================== */

@media (max-width: 767px) {
    body {
        font-size: 14.5px;
    }

    .container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .header-inner {
        min-height: 66px;
        gap: 10px;

        padding-top: 5px;
        padding-bottom: 5px;
    }

    .logo {
        max-width: 145px;
    }

    .logo img {
        width: 120px;
        height: 54px;
    }

    .nav-toggle {
        flex-basis: 40px;
        width: 40px;
        height: 40px;

        font-size: 21px;
    }

    .main-nav {
        max-height: 70vh;
        padding-top: 5px;
        padding-bottom: 10px;
    }

    .menu>li>a {
        min-height: 44px;
        padding: 11px 8px;
        font-size: 12px;
    }

    .dd-toggle {
        flex-basis: 38px;
        width: 38px;
        height: 40px;
    }

    .dropdown li a {
        padding: 10px 12px;
        font-size: 11px;
    }

    /* Banner */
    .page-banner {
        min-height: 210px;
        padding: 26px 0;

        background-position: center center;
    }

    .page-banner h1 {
        font-size: 30px;
    }

    /* Mobile overlay: bigger relative to screen, still bottom of banner */
    .page-banner::before {
        width: max(100%, 300px);
    }

    .breadcrumb ol {
        font-size: 14px;
    }

    /* Contact section */
    .contact-section {
        padding: 36px 0;
    }

    .section-title {
        margin-bottom: 22px;
        font-size: 20px;
    }

    .info-cards {
        gap: 16px;
    }

    .info-card {
        flex: 0 0 100%;
        min-height: 0;
        padding: 20px 16px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 30px;
    }

    .f-col h2 {
        margin-bottom: 14px;
    }

    .f-logo img {
        max-width: 200px;
    }

    .copyright p {
        font-size: 13px;
    }

    /* Back to top */
    .to-top {
        right: 14px;
        bottom: 20px;
    }
}

/* =====================================================
   20. SMALL MOBILE
   480px and below
===================================================== */

@media (max-width: 480px) {
    .container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .logo img {
        width: 115px;
        height: 50px;
    }

    .main-nav .menu {
        padding: 4px 8px 12px;
    }

    .page-banner h1 {
        font-size: 26px;
    }

    .section-title {
        font-size: 19px;
    }

    .social a {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .info-card p,
    .info-card address {
        font-size: 14px;
    }
}

/* =====================================================
   21. EXTRA SMALL MOBILE
   360px and below
===================================================== */

@media (max-width: 360px) {
    .container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .header-inner {
        min-height: 62px;
    }

    .logo img {
        width: 108px;
        height: 49px;
    }

    .nav-toggle {
        flex-basis: 38px;
        width: 38px;
        height: 38px;

        font-size: 20px;
    }

    .menu>li>a {
        font-size: 11px;
    }

    .page-banner h1 {
        font-size: 24px;
    }

    .breadcrumb ol {
        font-size: 12px;
    }

    .info-card {
        padding-right: 12px;
        padding-left: 12px;
    }
}

/* =====================================================
   =====================================================
   HOME PAGE SECTIONS
   =====================================================
===================================================== */

.home {
    --hi: #342f93;
    --ht: #45a192;
    --ho: #f26b21;
    --hm: #edf7f4;
    --hbg: linear-gradient(135deg, #fcefe9, #f3effa);
    color: #333;
    overflow-x: hidden;
}

.home .container {
    padding-left: 20px;
    padding-right: 20px;
}

/* ---------- Buttons / titles ---------- */
.h-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    color: #fff;
    background: var(--ht);
    font-size: 15px;
    font-weight: 700;
    border-radius: 5px;
    transition: background .25s, transform .25s;
}

.h-btn:hover {
    background: var(--hi);
    transform: translateY(-2px);
}

.h-btn-white {
    color: var(--hi);
    background: #fff;
    margin-top: 10px;
}

.h-btn-white:hover {
    color: #fff;
    background: var(--ht);
}

.h-more {
    text-align: center;
    margin-top: 28px;
}

.h-title {
    margin-bottom: 28px;
    color: var(--hi);
    font-size: 32px;
    font-weight: 700;
    line-height: 38px;
    text-align: center;
}

/* ---------- Hero (full width image + min height) ---------- */
.h-hero {
    width: 100%;
    min-height: 560px;              /* desktop min height */
    overflow: hidden;
    background:
        linear-gradient(rgba(255, 255, 255, .35), rgba(255, 255, 255, .35)),
        var(--amogs-bg-image) center / cover no-repeat;
}

.h-hero-img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 560px;              /* keep the same value as .h-hero */
    object-fit: cover;
    object-position: left top;
}

/* ---------- Header sits on top of the hero image (home page only) ---------- */
html body.home-page .site-header {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100%;
    z-index: 100;
}

/* Transparent so the hero image shows behind the logo and menu */
html body.home-page .site-header:not(.menu-open) {
    background: transparent !important;
}

/* =====================================================
   LATEST NEWS TICKER
===================================================== */

.news-ticker {
    --news-bg: #33308f;
    --news-label: #45a192;
    --news-text: #edf8f6;
    --news-diamond: #ff6c08;

    display: flex;
    align-items: stretch;
    width: 100%;
    height: 60px;
    overflow: hidden;
    background: var(--news-bg);
}

/* "Latest News:" label */
.news-label {
    flex: 0 0 20%;
    min-width: 130px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 10px;
    color: #fff;
    background: var(--news-label);
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

/* Scrolling area */
.news-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Starts fully off-screen on the right, scrolls out on the left */
.news-track {
    display: flex;
    align-items: center;
    width: max-content;
    padding-left: 100%;
    white-space: nowrap;
    animation: news-scroll 45s linear infinite;
}

.news-wrap:hover .news-track,
.news-track:focus-within {
    animation-play-state: paused;
}

@keyframes news-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

/* News links */
.news-track a {
    display: inline-flex;
    align-items: center;
    padding: 0 18px;

    color: var(--news-text);
    font-family: "Urbanist", "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;

    transition: color 0.2s ease;
}

.news-track a::before {
    content: "\2666";               /* diamond */
    margin-right: 8px;
    color: var(--news-diamond);
}

.news-track a:hover,
.news-track a:focus-visible {
    color: #ffc9a8;
}

/* ---------- Welcome ---------- */
.h-about {
    padding: 60px 0 40px;
}

.h-about-grid {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 40px;
    align-items: center;
}

.h-frame {
    position: relative;
    padding: 0 0 12px 12px;
}

.h-frame::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    background: var(--ho);
    border-radius: 10px;
}

.h-frame img {
    position: relative;
    width: 100%;
    border-radius: 10px;
}

.h-kicker {
    color: var(--ht);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1.5px;
}

.h-about h2 {
    margin: 4px 0 14px;
    color: var(--hi);
    font-size: 32px;
    font-family: Urbanist, sans-serif;
    font-weight: 700;
    line-height: 38px;
}

.h-text {
    margin-bottom: 20px;
    color: #777387;
    font-family: Urbanist, sans-serif;
    font-size: 16px;
    line-height: 26px;
    text-align: justify;
}

/* ---------- Vision / Mission ---------- */
.h-vm-sec {
    padding: 48px 0 50px;
}

.h-vm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.h-box {
    position: relative;
    isolation: isolate;             /* keeps the orange frame behind the tab */
    padding: 114px 21px 20px;       /* space for the tab above the text */

    color: #1f1f1f;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 26px;
    text-align: justify;

    border: 1px solid;
    border-radius: 3px;
}

.h-vision {
    background: #e8f7f4;
    border-color: #00a392;
}

.h-mission {
    background: #f1f1fd;
    border-color: #312e91;
}

/* Tab */
.h-tab {
    position: absolute;
    top: 29px;
    left: 0;
    right: 0;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 46%;
    height: 56px;

    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;

    border-radius: 5px;
}

.h-vision .h-tab {
    background: #00a392;
}

.h-mission .h-tab {
    background: #312e91;
}

/* Orange frame behind the tab: narrower, but taller than the tab */
.h-tab::before {
    content: "";
    position: absolute;
    inset: -9px 12px;
    z-index: -1;

    border: 2px solid var(--ho);
    border-radius: 5px;
}

/* ---------- Card sections ---------- */
.h-sec {
    padding: 50px 0;
    background: var(--hbg);
}

.h-proj {
    padding: 50px 0;
    background: #fff;
}

.h-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.h-card {
    display: block;
    overflow: hidden;
    background: #fff;
    border: 3px solid #D1FFF7;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(69, 161, 146, .12);
    transition: transform .25s, box-shadow .25s;
}

.h-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .1);
}

.h-card img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    background: #f2f2f2;
}

.h-body {
    padding: 10px 12px 14px;
}

.h-by {
    margin-bottom: 6px;
    color: var(--ht);
    font-family: Urbanist, sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.h-by i {
    margin-right: 4px;
}

.h-body h3 {
    color: var(--hi);
    font-size: 18px;
    font-weight: 700;
    line-height: 23px;
}

/* ---------- Conference ---------- */
.h-conf {
    padding: 60px 0;
    color: #fff;
    background-color: #33308f;
    background-image: url("../images/video-home-3-bg-2.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.h-conf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.h-conf-grid>* {
    min-width: 0;                   /* stops a column pushing wider than the screen */
}

.h-conf h2 {
    margin-bottom: 12px;
    color: #edf8f6;
    font-family: Urbanist, sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 38px;
    text-transform: uppercase;
}

.h-conf p {
    margin-bottom: 4px;
    font-size: 17px;
}

/* PDF box: fluid width, fixed shape */
.h-pdf {
    width: 100%;
    aspect-ratio: 16 / 10;          /* change the shape here */
    overflow: hidden;
    background: #323639;
    border: 1px solid #555;
    border-radius: 3px;
}

.h-pdf iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- Gallery ---------- */
.h-gal-sec {
    background: var(--hbg);
}

.h-gal .h-card {
    padding: 0 0 18px;
    background-color: #f1f2f9;
}

.h-gal img {
    aspect-ratio: 4 / 3;
}

.h-gal span {
    display: block;
    padding: 20px 12px 0;
    color: var(--hi);
    font-size: 15px;
    font-weight: 700;
    line-height: 15px;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.25s ease, text-underline-offset 0.25s ease;
}

/* Hover: caption color changes */
.h-gal .h-card:hover span,
.h-gal .h-card:focus-visible span {
    color: var(--indigo);
}

/* ---------- Scroll reveal (home.js) ---------- */
.h-rev {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s, transform .6s;
}

.h-rev.in {
    opacity: 1;
    transform: none;
}

/* =====================================================
   HOME - TABLET AND BELOW (1100px)
   Header is in mobile style, so show the full hero image
===================================================== */
@media (max-width: 1100px) {
    .h-hero {
        min-height: 0;
        padding-top: 76px;          /* = header height */
    }

    .h-hero-img {
        min-height: 0;
        height: auto;
        object-fit: contain;
    }
}

/* =====================================================
   HOME - TABLET (991px and below)
===================================================== */
@media (max-width: 991px) {
    .h-about {
        padding: 46px 0 30px;
    }

    .h-about-grid,
    .h-vm,
    .h-conf-grid {
        grid-template-columns: 1fr;
    }

    .h-about-grid {
        gap: 30px;
    }

    .h-about h2 {
        font-size: 26px;
        line-height: 32px;
    }

    .h-frame {
        max-width: 520px;
        margin: 0 auto;
    }

    .h-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .h-title {
        font-size: 28px;
        line-height: 34px;
    }

    /* Conference */
    .h-conf-grid {
        gap: 30px;
    }

    .h-conf h2 {
        font-size: 26px;
        line-height: 32px;
    }

    .h-conf p {
        font-size: 16px;
    }

    .h-pdf {
        max-width: 680px;
        margin: 0 auto;
    }

    /* News ticker */
    .news-ticker {
        height: 46px;
    }

    .news-label {
        flex-basis: 150px;
        font-size: 14px;
    }

    .news-track {
        animation-duration: 38s;
    }

    .news-track a {
        font-size: 14px;
    }

    /* Gallery */
    .h-gal span {
        padding-top: 16px;
        font-size: 14px;
    }
}

/* =====================================================
   HOME - LARGE PHONE (767px and below)
===================================================== */
@media (max-width: 767px) {
    .h-hero {
        padding-top: 66px;          /* = mobile header height */
    }

    .h-frame {
        max-width: 480px;
    }
}

/* =====================================================
   HOME - MOBILE (575px and below)
===================================================== */
@media (max-width: 575px) {
    .home .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* News ticker */
    .news-ticker {
        height: 44px;
    }

    .news-label {
        flex-basis: 96px;
        min-width: 96px;
        padding: 0 6px;
        font-size: 12px;
        line-height: 1.2;
    }

    .news-track {
        animation-duration: 32s;
    }

    .news-track a {
        padding: 0 12px;
        font-size: 13px;
        letter-spacing: 0.3px;
    }

    /* Welcome */
    .h-about {
        padding: 36px 0 20px;
    }

    .h-about h2 {
        font-size: 23px;
        line-height: 29px;
    }

    .h-text {
        font-size: 15px;
        line-height: 25px;
    }

    .h-kicker {
        font-size: 13px;
    }

    /* Vision / Mission */
    .h-vm-sec {
        padding: 40px 0;
    }

    .h-box {
        padding: 100px 16px 20px;
        font-size: 15px;
        line-height: 26px;
    }

    .h-tab {
        top: 20px;
        width: 62%;
        height: 55px;
        font-size: 22px;
    }

    .h-tab::before {
        inset: -8px 10px;
    }

    /* Cards */
    .h-sec,
    .h-proj {
        padding: 38px 0;
    }

    .h-title {
        margin-bottom: 20px;
        font-size: 26px;
        line-height: 32px;
    }

    .h-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .h-more {
        margin-top: 22px;
    }

    .h-body h3 {
        font-size: 17px;
        line-height: 22px;
    }

    /* Conference */
    .h-conf {
        padding: 38px 0;
    }

    .h-conf h2 {
        font-size: 21px;
        line-height: 27px;
    }

    .h-conf p {
        font-size: 14.5px;
    }

    .h-btn-white {
        width: 100%;
        justify-content: center;
    }

    .h-pdf {
        aspect-ratio: 4 / 5;        /* taller on phones */
    }

    /* Gallery */
    .h-gal span {
        padding-top: 14px;
        font-size: 14px;
    }
}

/* =====================================================
   HOME - SMALL MOBILE (360px and below)
===================================================== */
@media (max-width: 360px) {
    .home .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .news-label {
        flex-basis: 84px;
        min-width: 84px;
        font-size: 11px;
    }

    .news-track a {
        font-size: 12.5px;
    }

    .h-about h2,
    .h-title {
        font-size: 21px;
        line-height: 27px;
    }

    .h-tab {
        width: 70%;
        font-size: 18px;
    }

    .h-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .h-conf h2 {
        font-size: 19px;
        line-height: 25px;
    }
}

/* =====================================================
   REDUCED MOTION: ticker becomes swipeable, no animation
===================================================== */
@media (prefers-reduced-motion: reduce) {
    .news-wrap {
        overflow-x: auto;
    }

    .news-track {
        padding-left: 0;
        animation: none !important;
    }
}
/* =====================================================
   ABOUT - WELCOME SECTION
===================================================== */

.about-section {
    --ab-indigo: #342f93;
    --ab-teal: #00a392;
    --ab-orange: #ff6c08;
    --ab-text: #777387;

    padding: 80px 0;
    background: #fff;
    overflow-x: hidden;
}

.about-section .container {
    padding-left: 20px;
    padding-right: 20px;
}

.about-grid {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 40px;
    align-items: center;
}

.about-grid > * {
    min-width: 0;
}

/* ---------- Image with orange frame ---------- */
.about-img {
    position: relative;
    isolation: isolate;
    margin: 0 0 15px 15px;          /* room for the frame on the left and bottom */
}

.about-img::before {
    content: "";
    position: absolute;
    inset: 15px 14px -15px -15px;   /* top right bottom left */
    z-index: -1;

    background: var(--ab-orange);
    border-radius: 10px;
}

.about-img img {
    width: 100%;
    border-radius: 10px;
}

/* ---------- Text ---------- */
.about-kicker {
    color: var(--ab-teal);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.6;
}

.about-text h2 {
    margin: 2px 0 14px;

    color: var(--ab-indigo);
    font-family: Urbanist,  sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 38px;
}

.about-text p:not(.about-kicker) {
    margin-bottom: 14px;

    color: var(--ab-text);
    font-family: Urbanist, sans-serif;
    font-size: 15px;
    line-height: 26px;
    text-align: justify;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* =====================================================
   TABLET (991px and below)
===================================================== */
@media (max-width: 991px) {
    .about-section { padding: 56px 0; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-img {
        max-width: 560px;
        margin: 0 auto 15px;
        left: 7px;                  /* balances the frame sticking out on the left */
    }

    .about-text h2 {
        font-size: 28px;
        line-height: 34px;
    }
}

/* =====================================================
   MOBILE (575px and below)
===================================================== */
@media (max-width: 575px) {
    .about-section { padding: 40px 0; }

    .about-section .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .about-grid { gap: 34px; }

    .about-img {
        max-width: none;
        margin: 0 0 12px 12px;
        left: 0;
    }

    .about-img::before { inset: 12px 11px -12px -12px; }

    .about-kicker { font-size: 14px; }

    .about-text h2 {
        font-size: 24px;
        line-height: 30px;
    }

    .about-text p:not(.about-kicker) {
        font-size: 15px;
        line-height: 25px;
        text-align: left;           /* justified text leaves big gaps on narrow screens */
    }
}

/* =====================================================
   SMALL MOBILE (360px and below)
===================================================== */
@media (max-width: 360px) {
    .about-section .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .about-text h2 {
        font-size: 22px;
        line-height: 28px;
    }
}
/* =====================================================
   OFFICE BEARERS
===================================================== */

.ob-section {
    --ob-indigo: #342f93;
    --ob-teal: #6cc3b5;
    --ob-bg: #eef8f6;

    padding: 65px 0 70px;
    background: #fff;
    overflow-x: hidden;
}

.ob-section .container {
    padding-left: 20px;
    padding-right: 20px;
}

.ob-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 10px;
}

/* ---------- Card ---------- */
.ob-card {
    min-width: 0;
    padding: 18px 10px 16px;

    text-align: center;
    background: var(--ob-bg);
    border: 1px solid var(--ob-teal);
    border-radius: 6px;

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ob-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

/* Your image already has the round shape: show it as it is */
.ob-card img {
    display: block;
    width: 100%;
    max-width: 240px;
    height: auto;
    margin: 0 auto 14px;
}

/* ---------- Text ---------- */
.ob-card h3 {
    margin-bottom: 8px;

    color: var(--ob-indigo);
    font-family: Urbanist, "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
}

.ob-card p {
    color: #111;
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
}

/* =====================================================
   TABLET (991px and below): 2 columns
===================================================== */
@media (max-width: 991px) {
    .ob-section { padding: 50px 0 55px; }

    .ob-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .ob-card img { max-width: 230px; }
}

/* =====================================================
   MOBILE (575px and below): 2 smaller columns
===================================================== */
@media (max-width: 575px) {
    .ob-section { padding: 36px 0 40px; }

    .ob-section .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ob-grid { gap: 14px 12px; }

    .ob-card { padding: 14px 8px; }
    .ob-card img { max-width: 180px; margin-bottom: 10px; }

    .ob-card h3 { font-size: 15px; line-height: 20px; margin-bottom: 6px; }
    .ob-card p  { font-size: 13.5px; line-height: 19px; }
}

/* =====================================================
   SMALL MOBILE (400px and below): 1 column
===================================================== */
@media (max-width: 400px) {
    .ob-grid { grid-template-columns: 1fr; }

    .ob-card { padding: 18px 12px; }
    .ob-card img { max-width: 220px; }

    .ob-card h3 { font-size: 17px; line-height: 23px; }
    .ob-card p  { font-size: 15px; }
}
/* =====================================================
   AMOGS CO-ORDINATORS
===================================================== */

.co-section {
    --co-indigo: #342f93;
    --co-teal: #6cc3b5;
    --co-bg: #eef8f6;
    --co-gap: 10px;                 /* gap between cards (both ways) */

    padding: 65px 0 70px;
    background: #fff;
    overflow-x: hidden;
}

.co-section .container {
    padding-left: 20px;
    padding-right: 20px;
}

.co-wrap {
    max-width: 1130px;
    margin: 0 auto;
}

/* Each row is centered, so a single card sits in the middle */
.co-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--co-gap);
}

.co-row + .co-row {
    margin-top: 20px;
}

/* ---------- Card: 4 per row on desktop ---------- */
.co-card {
    flex: 0 0 calc((100% - 3 * var(--co-gap)) / 4);
    min-width: 0;
    padding: 18px 10px 16px;

    text-align: center;
    background: var(--co-bg);
    border: 1px solid var(--co-teal);
    border-radius: 6px;

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.co-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

/* Your image already has the round shape: show it as it is */
.co-card img {
    display: block;
    width: 100%;
    max-width: 240px;
    height: auto;
    margin: 0 auto 14px;
}

/* ---------- Text ---------- */
.co-card h3 {
    margin-bottom: 8px;

    color: var(--co-indigo);
    
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
}

.co-card p {
    color: #111;
    
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
}

/* =====================================================
   TABLET (991px and below): 2 per row
===================================================== */
@media (max-width: 991px) {
    .co-section {
        --co-gap: 20px;
        padding: 50px 0 55px;
    }

    .co-card {
        flex-basis: calc((100% - var(--co-gap)) / 2);
    }

    .co-card img { max-width: 230px; }
}

/* =====================================================
   MOBILE (575px and below): 2 smaller per row
===================================================== */
@media (max-width: 575px) {
    .co-section {
        --co-gap: 12px;
        padding: 36px 0 40px;
    }

    .co-section .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .co-row + .co-row { margin-top: 14px; }

    .co-card { padding: 14px 8px; }
    .co-card img { max-width: 180px; margin-bottom: 10px; }

    .co-card h3 { font-size: 15px; line-height: 20px; margin-bottom: 6px; }
    .co-card p  { font-size: 13.5px; line-height: 19px; }
}

/* =====================================================
   SMALL MOBILE (400px and below): 1 per row
===================================================== */
@media (max-width: 400px) {
    .co-card { flex-basis: 100%; padding: 18px 12px; }
    .co-card img { max-width: 220px; }

    .co-card h3 { font-size: 17px; line-height: 23px; }
    .co-card p  { font-size: 15px; }
}
/* =====================================================
   VISION & MISSION PAGE
===================================================== */

.vm-section {
    --vm-orange: #f26b21;

    padding: 50px 0 55px;
    background: #fff;
    overflow-x: hidden;
}

.vm-section .container {
    padding-left: 20px;
    padding-right: 20px;
}

.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.vm-grid > * { min-width: 0; }

/* ---------- Box ---------- */
.vm-box {
    position: relative;
    isolation: isolate;             /* keeps the orange frame behind the tab */
    padding: 29px 20px 28px;

    text-align: center;
    border: 1px solid;
    border-radius: 3px;
}

.vm-vision  { background: #e8f7f4; border-color: #00a392; }
.vm-mission { background: #f1f1fd; border-color: #312e91; }

/* ---------- Tab with orange frame ---------- */
.vm-tab {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 45%;
    height: 56px;
    margin: 0 auto;

    color: #fff;
    font-family: Urbanist, "Poppins", sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;

    border-radius: 4px;
}

.vm-vision  .vm-tab { background: #00a392; }
.vm-mission .vm-tab { background: #312e91; }

/* Orange frame: narrower than the tab, taller above and below */
.vm-tab::before {
    content: "";
    position: absolute;
    inset: -9px 11px;
    z-index: -1;

    border: 2px solid var(--vm-orange);
    border-radius: 4px;
}

/* ---------- Icon circle ---------- */
.vm-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 70px;
    height: 70px;
    margin: 28px auto 24px;

    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.vm-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* ---------- Text ---------- */
.vm-box p {
    color: #111;

    font-size: 15px;
    font-weight: 600;
    line-height: 26.5px;
    text-align: justify;
}

/* =====================================================
   TABLET (991px and below): still 2 columns, tighter
===================================================== */
@media (max-width: 991px) {
    .vm-section { padding: 44px 0 48px; }

    .vm-box { padding: 26px 16px 24px; }

    .vm-tab {
        width: 58%;
        height: 50px;
        font-size: 21px;
    }

    .vm-box p {
        font-size: 15px;
        line-height: 25px;
    }
}

/* =====================================================
   LARGE PHONE (767px and below): stacked
===================================================== */
@media (max-width: 767px) {
    .vm-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .vm-tab { width: 46%; min-width: 180px; }
}

/* =====================================================
   MOBILE (575px and below)
===================================================== */
@media (max-width: 575px) {
    .vm-section { padding: 36px 0 40px; }

    .vm-section .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .vm-box { padding: 24px 14px 22px; }

    .vm-tab {
        width: 62%;
        height: 48px;
        font-size: 20px;
    }

    .vm-tab::before { inset: -8px 9px; }

    .vm-icon {
        width: 62px;
        height: 62px;
        margin: 24px auto 20px;
    }

    .vm-icon img { width: 34px; height: 34px; }

    .vm-box p {
        font-size: 15px;
        line-height: 25px;
        text-align: left;           /* justified text leaves wide gaps on narrow screens */
    }
}

/* =====================================================
   SMALL MOBILE (360px and below)
===================================================== */
@media (max-width: 360px) {
    .vm-section .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .vm-tab { width: 72%; font-size: 19px; }
}
/* ---------- Card text ---------- */
.h-body {
    padding: 12px 14px 16px;
}

/* Doctor name line */
.h-by {
    margin-bottom: 6px;
    color: #45a192;                 /* teal: change the color here */
    font-family: Urbanist, "Poppins", sans-serif;
    font-size: 14px;                /* change the size here */
    font-weight: 600;
    line-height: 20px;
}

.h-by i {
    margin-right: 4px;
}

/* Committee title */
.h-body h3 {
    color: #342f93;                 /* indigo: change the color here */
    font-family: Urbanist, "Poppins", sans-serif;
    font-size: 18px;                /* change the size here */
    font-weight: 700;
    line-height: 23px;
}

/* =====================================================
   TABLET (991px and below)
===================================================== */
@media (max-width: 991px) {
    .h-by { font-size: 13.5px; }
    .h-body h3 { font-size: 17px; line-height: 22px; }
}

/* =====================================================
   MOBILE (575px and below)
===================================================== */
@media (max-width: 575px) {
    .h-body { padding: 12px 14px 16px; }
    .h-by { font-size: 14px; }
    .h-body h3 { font-size: 17px; line-height: 22px; }
}

/* =====================================================
   SMALL MOBILE (360px and below)
===================================================== */
@media (max-width: 360px) {
    .h-by { font-size: 13px; }
    .h-body h3 { font-size: 16px; line-height: 21px; }
}