:root,
[data-bs-theme=light] {
    --bs-primary: #00972d;
    --bs-primary-text-emphasis: #007022;
    --bs-link-color: var(--bs-primary);
    --bs-link-color-rgb: 0, 151, 45;
    --bs-link-hover-color: var(--bs-primary-text-emphasis);
    --bs-link-hover-color-rgb: 0, 112, 34;
    --bs-dropdown-bg: rgba(0, 151, 45, 0.7);
    --gmmh-green-rgb: 0, 151, 45;
    --gmmh-text: #102416;
    --gmmh-muted: #4d5b52;
    --gmmh-border: #e0e0e0;
    --gmmh-card-radius: 4px;
}

body {
    font-family: var(--bs-body-font-family);
}

.btn {
    --bs-btn-border-radius: var(--gmmh-card-radius);
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: rgb(var(--gmmh-green-rgb));
    --bs-btn-border-color: rgb(var(--gmmh-green-rgb));
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #007022;
    --bs-btn-hover-border-color: #007022;
    --bs-btn-focus-shadow-rgb: var(--gmmh-green-rgb);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #005b1b;
    --bs-btn-active-border-color: #005b1b;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: rgb(var(--gmmh-green-rgb));
    --bs-btn-disabled-border-color: rgb(var(--gmmh-green-rgb));
}

.dropdown-menu {
    --bs-dropdown-border-radius: var(--gmmh-card-radius);
    --bs-dropdown-inner-border-radius: var(--gmmh-card-radius);
    --bs-dropdown-item-border-radius: 2px;
}

body.has-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.has-hero > .navbar-custom,
.has-hero > #top-image-container {
    grid-area: 1 / 1;
}

.has-hero > .navbar-custom {
    align-self: start;
}

.bg-primary {
    background-color: var(--bs-primary) !important;
}

.bi {
    vertical-align: -0.125em;
    fill: currentColor;
    padding: 0 2px;
}

.bi-edupage::before {
    content: "";
    width: 48px;
    height: 48px;
    background: url("../images/edupage.svg") no-repeat center / 48px 48px;
}

.bi-edupage:hover::before {
    background-image: url("../images/edupage.png");
}

.bi-facebook:hover {
    color: #1877f2;
}

.bi-youtube:hover {
    color: #ff0000;
}

.navbar-custom {
    --gmmh-menu-bg: rgba(var(--gmmh-green-rgb), 0.7);
    margin-top: 6rem !important;
    margin-bottom: 4rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: none !important;
    box-shadow: none;
    transition: all 0.4s ease;
}

.navbar-custom::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: var(--gmmh-menu-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    pointer-events: none;
}

html:not([data-scroll='0']) .navbar-custom {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    width: 32px;
    height: 44px;
    margin: 0 0 0 130px;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
    transform: scale(6) translate(-5px, 0);
    transition: transform ease 0.4s;
}

html:not([data-scroll='0']) .logo {
    transform: scale(3) translate(-9px, 10px);
}

.nav-link {
    position: relative;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-link::after {
    content: "";
    position: absolute;
    right: 0;
    display: block;
    width: 0;
    height: 2px;
    margin-top: 4px;
    background: #fff;
    transition: width 0.3s ease, right 0.3s ease;
}

.nav-link:hover::after {
    left: 0;
    width: 100%;
}

.navbar-custom .mod-menu {
    display: flex;
    flex-grow: 1;
    justify-content: flex-end;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar-custom .mod-menu li {
    list-style: none;
}

.navbar-custom .mod-menu > li > a {
    cursor: pointer;
}

.navbar-custom .mod-menu .dropdown-menu {
    --bs-dropdown-bg: var(--gmmh-menu-bg);
    --bs-dropdown-link-hover-bg: transparent;
    --bs-dropdown-link-active-bg: transparent;
    background-color: var(--bs-dropdown-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.navbar-custom .mod-menu a,
.navbar-custom .mod-menu .nav-header,
.navbar-custom .mod-menu .separator {
    position: relative;
    display: block;
    padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
}

.navbar-custom .mod-menu a:hover,
.navbar-custom .mod-menu a:focus,
.navbar-custom .mod-menu .active > a,
.navbar-custom .mod-menu .current > a {
    color: #fff;
}

.navbar-custom .mod-menu a::after {
    content: "";
    position: absolute;
    right: 0;
    display: block;
    width: 0;
    height: 2px;
    margin-top: 4px;
    background: #fff;
    transition: width 0.3s ease, right 0.3s ease;
}

.navbar-custom .mod-menu a:hover::after,
.navbar-custom .mod-menu .active > a::after,
.navbar-custom .mod-menu .current > a::after {
    left: 0;
    width: 100%;
}

.loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    background-color: #f8f9fa;
    transition: opacity 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55), visibility 0.8s ease;
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo-img {
    width: 150px;
    animation: pulse 1.5s infinite alternate;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.loader-overlay.hidden .loader-logo-img {
    opacity: 0;
    transform: scale(0.2) translate(-50vw, -40vh);
}

@keyframes pulse {
    0% {
        filter: drop-shadow(0 0 5px rgba(var(--gmmh-green-rgb), 0.4));
        transform: scale(1);
    }

    100% {
        filter: drop-shadow(0 10px 15px rgba(var(--gmmh-green-rgb), 0.8));
        transform: scale(1.1);
    }
}

#top-image-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 30vh;
    min-height: 400px;
    margin-top: 6rem !important;
    overflow: hidden;
    background: #000;
}

#top-image-container::before,
#top-image-container::after {
    content: "";
    position: absolute;
    inset: 0;
}

#top-image-container::before {
    z-index: 1;
    background: linear-gradient(135deg, rgba(0, 100, 30, 0.9) 0%, rgba(0, 0, 0, 0.2) 100%);
}

#top-image-container::after {
    z-index: 0;
    background: url("../images/1.jpg") no-repeat top right / cover;
    animation: panLeftRight 35s infinite alternate linear;
}

#text {
    position: relative;
    z-index: 2;
    margin: 0;
    color: #fff;
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
}

@keyframes panLeftRight {
    0% {
        transform: scale(1.1) translateX(-4%);
    }

    100% {
        transform: scale(1) translateX(0);
    }
}

main h1,
main h2,
main h3,
main p,
main span,
main strong,
main em,
main .item-title a,
main .com-content-blog__link a,
main .readmore a.btn {
    font-family: var(--bs-body-font-family) !important;
}

.section-heading {
    margin: 0 0 1.75rem;
}

.section-heading-inline {
    margin-top: 3.5rem;
}

.section-kicker {
    margin: 0 0 0.45rem;
    color: var(--bs-primary);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.35;
    text-transform: uppercase;
}

.section-heading h1,
.section-heading h2 {
    margin: 0;
    color: var(--gmmh-text);
    font-size: 1.45rem;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.25;
    text-transform: uppercase;
}

.school-values {
    margin: 0 0 4rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #f6fbf7 0%, #fff 55%, #eef7f1 100%);
    border: 1px solid #dfece3;
    border-left: 6px solid var(--bs-primary);
    border-radius: var(--gmmh-card-radius);
}

.school-values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.school-value {
    min-width: 0;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(var(--gmmh-green-rgb), 0.14);
    border-radius: var(--gmmh-card-radius);
}

.school-value .bi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: var(--bs-primary-text-emphasis);
    background: rgba(var(--gmmh-green-rgb), 0.1);
    border-radius: var(--gmmh-card-radius);
    font-size: 1.55rem;
}

.school-value h2 {
    margin-bottom: 0.65rem;
    color: var(--gmmh-text);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.35;
    text-transform: uppercase;
}

.school-value p {
    margin: 0;
    color: var(--gmmh-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.blog-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
    gap: 2.5rem;
}

.blog-item {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid var(--gmmh-border);
    border-radius: var(--gmmh-card-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-item:hover {
    box-shadow: 0 12px 24px rgba(var(--gmmh-green-rgb), 0.1);
    transform: translateY(-5px);
}

.blog-item > .blog-item-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.blog-item :is(a, button, input, select, textarea, summary, [role="button"]):not(.blog-item-link) {
    position: relative;
    z-index: 2;
}

.item-img-placeholder,
.blog-item .item-image {
    width: 100%;
    height: 200px;
    flex-shrink: 0;
    margin: 0;
    overflow: hidden;
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--gmmh-card-radius) var(--gmmh-card-radius) 0 0;
}

.item-img-placeholder img,
.item-img-placeholder svg,
.blog-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-item:hover .item-img-placeholder img,
.blog-item:hover .item-img-placeholder svg,
.blog-item:hover .item-image img {
    transform: scale(1.05);
}

.item-content {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    overflow: hidden;
    padding: 1.5rem;
    transition: max-height 0.5s ease;
}

.item-content::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(transparent, #fff);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.item-content.has-fade::after {
    opacity: 1;
}

.blog-item .item-title {
    margin-bottom: 0.5rem;
}

.blog-item .item-title a {
    color: var(--bs-primary-text-emphasis);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.35;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s;
}

.blog-item .item-title a:hover {
    color: var(--bs-primary);
}

.blog-item p {
    margin-bottom: 1rem;
    color: #555;
    font-size: 0.95rem;
}

.blog-item .item-content > p,
.blog-item .item-content > p * {
    font-family: var(--bs-body-font-family) !important;
    font-size: 0.95rem !important;
    line-height: 1.55;
}

.blog-item > :not(.item-image):not(.item-img-placeholder):not(.item-content):not(.blog-item-link) {
    margin-right: 1.5rem;
    margin-left: 1.5rem;
}

.blog-item > .item-title,
.blog-item > h2:first-child {
    margin-top: 1.5rem;
}

.blog-item > .readmore:last-child {
    margin-bottom: 1.5rem;
}

/* Joomla renders the leading article and intro articles in separate groups. */
.blog-featured:has(> .items-leading) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

.blog-featured:has(> .items-leading) > .blog-items {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    min-width: 0;
}

@media (min-width: 992px) {
    .blog-featured:has(> .items-leading) {
        --featured-preview-height: 11rem;
        --featured-leading-height: calc(3 * var(--featured-preview-height) + 3rem);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        column-gap: 2rem;
    }

    .blog-featured:has(> .items-leading) > * {
        grid-column: 1 / -1;
        min-width: 0;
    }

    .blog-featured > .items-leading {
        grid-column: 1;
    }

    .blog-featured > .items-leading + .blog-items {
        grid-column: 2;
    }

    .blog-featured > .items-leading > .blog-item {
        height: var(--featured-leading-height);
        min-height: 0;
    }

    .blog-featured > .items-leading .item-content {
        flex: 1;
        min-height: 0;
        height: auto;
        max-height: 100%;
        padding: 2rem;
    }

    .blog-featured > .items-leading .item-title a {
        font-size: 1.6rem;
    }

    .blog-featured > .items-leading + .blog-items > .blog-item {
        flex-direction: row;
        height: var(--featured-preview-height);
    }

    .blog-featured > .items-leading + .blog-items .item-content {
        min-width: 0;
        min-height: 0;
        max-height: var(--featured-preview-height);
        padding: 1.25rem;
    }

    .blog-featured > .items-leading + .blog-items .item-image,
    .blog-featured > .items-leading + .blog-items .item-img-placeholder {
        width: 30%;
        height: 100%;
        border-bottom: 0;
    }

    .blog-featured:has(> .items-leading) .blog-item:hover .item-content.has-fade::after {
        opacity: 1;
    }
}

.readmore a.btn {
    align-self: flex-start;
    margin-top: auto;
    border-radius: var(--gmmh-card-radius);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.readmore a.btn,
.readmore a.btn * {
    font-size: 0.8rem !important;
}

.icon-chevron-right::before {
    content: ">";
}

.items-more {
    margin: 3rem 0 1rem;
}

.com-content-blog__links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0;
    list-style: none;
}

.com-content-blog__link {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--gmmh-card-radius);
    transition: all 0.3s ease;
}

.com-content-blog__link:hover {
    background: #fff;
    border-color: var(--bs-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.com-content-blog__link a {
    display: block;
    padding: 1.25rem;
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.45;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.com-content-blog__link a:hover {
    color: var(--bs-primary);
}

.icon-angle-double-left::before {
    content: "<<";
}

.icon-angle-left::before {
    content: "<";
}

.icon-angle-double-right::before {
    content: ">>";
}

.icon-angle-right::before {
    content: ">";
}

.pagination {
    --bs-pagination-active-bg: var(--bs-primary);
    --bs-pagination-active-border-color: var(--bs-primary);
    --bs-pagination-hover-color: var(--bs-link-hover-color);
    display: flex;
    justify-content: center !important;
    gap: 0.5rem;
}

.pagination__wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    clear: both;
    min-width: 0;
    max-width: 100%;
    margin-top: 2rem;
}

.pagination__wrapper > .pagination {
    justify-content: flex-start !important;
    justify-content: safe center !important;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    padding: 0.25rem 0.25rem 0.75rem;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--gmmh-green-rgb), 0.5) transparent;
}

.pagination__wrapper > .pagination > .page-item {
    flex: 0 0 auto;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #555;
    background-color: #f8f9fa;
    border: none !important;
    border-radius: 10% !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-link:hover {
    color: var(--bs-primary);
    background-color: #e9ecef;
}

.page-item.active .page-link {
    color: #fff;
    background-color: var(--bs-primary) !important;
    box-shadow: 0 4px 10px rgba(var(--gmmh-green-rgb), 0.3);
}

.page-item.disabled .page-link {
    color: #ccc;
    cursor: not-allowed;
    background-color: transparent;
}

.counter {
    display: none;
    color: #888;
    font-size: 0.9rem;
    font-weight: 400;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}

.content-area {
    min-width: 0;
}

.content-grid.has-sidebar-left {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
}

.content-grid.has-sidebar-right {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
}

.content-grid.has-sidebar-left.has-sidebar-right {
    grid-template-columns: minmax(200px, 260px) minmax(0, 1fr) minmax(200px, 260px);
}

.site-sidebar .card,
.site-sidebar .moduletable {
    margin-bottom: 1.5rem;
}

.footer-custom {
    position: relative;
    overflow: hidden;
    color: #e9ecef;
    background-color: #0b1a10;
    border-top: 5px solid var(--bs-primary);
}

.footer-custom::after {
    content: "";
    position: absolute;
    right: -5%;
    bottom: -10%;
    z-index: 0;
    width: 500px;
    height: 500px;
    background: url("../images/logo.png") no-repeat right bottom / contain;
    opacity: 0.04;
    pointer-events: none;
}

.footer-custom h5 {
    margin-bottom: 1.5rem;
    color: #fff;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-custom a {
    color: #adb5bd !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-custom a:hover {
    color: var(--bs-primary) !important;
}

footer .bi {
    color: #fff;
    font-size: 48px;
}

@media (min-width: 768px) {
    .com-content-blog__links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991.98px) {
    .school-values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-grid,
    .content-grid.has-sidebar-left,
    .content-grid.has-sidebar-right,
    .content-grid.has-sidebar-left.has-sidebar-right {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .navbar-custom .offcanvas {
        --bs-offcanvas-bg: var(--gmmh-menu-bg);
        --bs-offcanvas-color: #fff;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
  
    #top-image-container {
        min-height: 300px;
    }

    .navbar-custom {
        margin-top: 4rem !important;
    }

    .logo {
        margin-left: 58px;
        transform: scale(4) translate(-4px, 0);
    }

    html:not([data-scroll='0']) .logo {
        transform: scale(2.4) translate(-9px, 10px);
    }

    .navbar-custom .mod-menu {
        flex-direction: column;
        gap: 0.25rem;
    }

    #text {
        font-size: 2.5rem;
    }
}

@media (max-width: 575.98px) {
    .school-values {
        padding: 1.25rem;
    }

    .school-values-grid,
    .blog-items {
        grid-template-columns: 1fr;
    }

    .section-heading h1,
    .section-heading h2 {
        font-size: 1.2rem;
    }
}

.site-main {
    padding-top: 3rem;
}

.banneritem {
    text-align: center;
}
