/********** Template CSS **********/
.img {
    margin-right: 130px !important;
    margin-bottom: 20px !important;
    background-color: red;
}

.product-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.beanut-flower {
    object-fit: cover;
}

:root {
    --primary: #01841a;
    --secondary: #523103;
    --light: #f8f9fa;
    --dark: #230e6f;

    --bs-primary: #01841a;
    --bs-secondary: #523103;
    --bs-light: #f8f9fa;
    --bs-dark: #230e6f;

    --bs-primary-rgb: 1, 132, 26;
    --bs-secondary-rgb: 82, 49, 3;
    --bs-light-rgb: 248, 249, 250;
    --bs-dark-rgb: 35, 14, 111;
}

p {
    text-align: left;
}

.text-center p {
    text-align: center !important;
}

.back-to-top {
    position: fixed;
    display: none;

    /*** Spinner ***/
    #spinner {
        opacity: 0;
        visibility: hidden;
        transition: opacity .5s ease-out, visibility 0s linear .5s;
        z-index: 99999;
    }

    #spinner.show {
        transition: opacity .5s ease-out, visibility 0s linear 0s;
        visibility: visible;
        opacity: 1;
    }


    /*** Button ***/
    .btn {
        transition: .5s;
        font-weight: 500;
    }

    .btn-primary,
    .btn-outline-primary:hover {
        color: var(--light);
    }
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 3.5rem;
    background-color: var(--primary);
    border: 15px solid var(--primary);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }

    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(rgba(var(--bs-dark-rgb), 0.7), rgba(var(--bs-primary-rgb), 0.7));
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}


/*** Section Title ***/
.section-title {
    position: relative;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
}

.section-title::before {
    position: absolute;
    content: "";
    width: 50%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--primary);
}

.section-title::after {
    position: absolute;
    content: "";
    width: 28px;
    height: 28px;
    bottom: -13px;
    left: calc(25% - 13px);
    background: var(--dark);
    border: 10px solid #FFFFFF;
    border-radius: 28px;
}

.section-title.text-center::before {
    left: 25%;
}

.section-title.text-center::after {
    left: calc(50% - 13px);
}


/*** Products ***/
.product {
    background: linear-gradient(rgba(136, 180, 78, .1), rgba(238, 173, 54, 0.1)), url(../img/product-bg.png) left bottom no-repeat;
    background-size: auto;
}

.product-carousel .owl-nav {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.product-carousel .owl-nav .owl-prev,
.product-carousel .owl-nav .owl-next {
    margin: 0 10px;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 55px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .15);
    font-size: 25px;
    transition: .5s;
}

.product-carousel .owl-nav .owl-prev:hover,
.product-carousel .owl-nav .owl-next:hover {
    background: #FFFFFF;
    color: var(--primary);
}


/*** About ***/
.video {
    background: linear-gradient(rgba(136, 180, 78, .85), rgba(136, 180, 78, .85)), url(../img/video-bg.jpg) center center no-repeat;
    background-size: cover;
}

.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 65px;
    height: 75px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 28px 30px 30px 38px;
    background: #FFFFFF;
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 120px;
    height: 120px;
    background: #FFFFFF;
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 120px;
    height: 120px;
    background: #FFFFFF;
    border-radius: 100%;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: 13px;
    border-left: 40px solid var(--primary);
    border-top: 28px solid transparent;
    border-bottom: 28px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

.modal-video .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

.modal-video .modal-body {
    position: relative;
    padding: 0px;
}

.modal-video .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}


/*** Store ***/
.store-item .store-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(138, 180, 78, .3);
    opacity: 0;
    transition: .5s;
}

.store-item:hover .store-overlay {
    opacity: 1;
}


/*** Contact ***/
.contact .btn-square {
    width: 100px;
    height: 100px;
    border: 20px solid var(--light);
    background: var(--primary);
    border-radius: 50px;
}


/*** Testimonial ***/
.testimonial {
    background: linear-gradient(rgba(136, 180, 78, .85), rgba(136, 180, 78, .85)), url(../img/testimonial-bg.jpg) center center no-repeat;
    background-size: cover;
}

.testimonial-item {
    margin: 0 auto;
    max-width: 600px;
    text-align: center;
    background: #FFFFFF;
    border: 30px solid var(--primary);
}

.testimonial-item img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 60px;
}

.testimonial-carousel .owl-dots {
    margin-top: 35px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: var(--primary);
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--dark);
}


/*** Footer ***/
.footer {
    color: #B0B9AE;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #B0B9AE;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

transform: scale(1);
box-shadow: 0 0 0 0 rgba(9, 79, 180, 0.7);
}

70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 12px rgba(9, 79, 180, 0);
}

100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(9, 79, 180, 0);
}
}

/* WhatsApp Icon Bounce */
@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* Call Icon Shake */
@keyframes iconShake {
    0% {
        transform: rotate(0);
    }

    25% {
        transform: rotate(10deg);
    }

    50% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(6deg);
    }

    100% {
        transform: rotate(0);
    }
}

/* ========================================= */
/* PREMIUM TYPOGRAPHY & COLOR SYSTEM ADDED   */
/* ========================================= */
body {
    font-family: 'Inter', sans-serif;
    color: #000000;
    /* Black */
}

h1,
.h1,
h2,
.h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--dark) !important;
}

h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--secondary) !important;
}

p,
span,
li,
a,
button,
input {
    font-family: 'Inter', sans-serif;
}

/* Ensure text-secondary matches Navy precisely */
.text-secondary {
    color: var(--secondary) !important;
}

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


/* Ensure text-secondary (Deep Navy) is visible on the dark footer by switching it to primary (Gold) */
.footer .text-secondary {
    color: var(--primary) !important;

}

/* Mobile View Logo Size Fix */
@media (max-width: 991.98px) {
    .navbar-brand img {
        max-height: 70px !important;
        max-width: 25vw !important;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand img {
        max-height: 80px !important;
        max-width: 31vw !important;
        margin-right: 8px !important;
    }

    .navbar-brand h2 {
        font-size: 1.1rem !important;
    }
}

.back-to-top {
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.fw-medium {
    font-weight: 600;
}

.fw-bold {
    font-weight: 700;
}

.fw-black {
    font-weight: 900;
}

.gradient-text-animated {
    background: linear-gradient(270deg, #0f3172, #f5b806, #fc4f00, #0f3172);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.brand-text {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    line-height: 1.2;
    display: inline-block;
    animation: floatText 3s ease-in-out infinite;
}

@keyframes floatText {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-2px);
    }

    100% {
        transform: translateY(0px);
    }
}

@media (min-width: 768px) {
    .brand-text {
        font-size: 1.25rem;
    }
}

/* Emergency UI Fixes */
.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** Navbar Fixes ***/
.sticky-top {
    top: -150px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 25px 0;
    color: var(--dark) !important;
    font-weight: 600;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-brand {
        width: 126px;
        height: 80px;
    }

    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 15px;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 2rem !important;
    }

    .carousel-caption p {
        font-size: 1.1rem !important;
    }
}

/* ===== MOBILE RESPONSIVE FIXES ===== */
@media (max-width: 576px) {

    /* Fix navbar logo overflow */
    .navbar-brand {
        font-size: 1rem !important;
        max-width: 65%;
        white-space: normal;
        line-height: 1.2;
    }

    /* Fix page header text sizes */
    .page-header h1.display-2 {
        font-size: 2rem !important;
    }

    /* Fix floating action buttons overlapping content */
    .floating-buttons,
    [style*="position: fixed"][style*="bottom"],
    .whatsapp-float,
    .call-float,
    .back-to-top {
        bottom: 15px !important;
        right: 15px !important;
    }

    /* Ensure floating call/whatsapp don't stack on content */
    .floating-call-btn,
    .floating-whatsapp-btn {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.2rem !important;
    }

    /* Fix about/index section text padding on mobile */
    .col-lg-6.d-flex.flex-column.p-5 {
        padding: 1.5rem !important;
    }

    /* Fix product carousel items on mobile */
    .owl-carousel .product-item {
        margin: 0 5px;
    }

    /* Fix contact form padding */
    .contact-form {
        padding: 1.5rem !important;
    }

    /* Fix footer columns spacing */
    footer .col-lg-4 {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {

    /* About section - stack image grid and text vertically */
    .row.g-0.align-items-stretch>.col-lg-6 {
        width: 100% !important;
    }

    /* Prevent images in the 2x2 grid from overflowing */
    .col-6 img.img-fluid {
        max-height: 140px;
        object-fit: contain;
        width: 100%;
    }


    /* Reduce product card image height on mobile */
    .product-item img,
    img[style*="height: 350px"] {
        height: 200px !important;
    }

    /* Fix padding on about section side by side */
    [style*="padding: 3rem"] {
        padding: 1.2rem !important;
    }

    /* Fix section titles */
    .display-6 {
        font-size: 1.5rem !important;
    }

    /* Ensure page-header has enough height */
    .page-header {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* ========================================= */
/* NAVBAR BRAND ANIMATION & MOBILE CENTERING */
/* ========================================= */

.brand-animated {
    background: linear-gradient(90deg, #0f3172, #f5b806, #fc4f00, #0f3172);
    background-size: 200% auto;
    color: #0f3172;
    /* Fallback */
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShine 3s linear infinite;
}

@keyframes gradientShine {
    to {
        background-position: 200% center;
    }
}

/* Mobile Navbar Layout Fix */
@media (max-width: 991px) {
    .navbar {
        position: relative;
        padding-top: 5px;
        padding-bottom: 5px;
        margin-left: -10px !important;
        margin-right: -10px !important;
        justify-content: flex-start !important;
    }

    .navbar-brand {
        margin: 0 !important;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        width: calc(100% - 40px);
        /* Leave exact room for toggle button */
    }

    .navbar-brand img {
        margin-right: 5px !important;
    }

    .navbar-brand h2 {
        font-size: 1.25rem !important;
        white-space: nowrap !important;
        text-align: center !important;
        line-height: 1.3;
        flex-grow: 1;
        /* Centers text in the remaining space */
    }

    .navbar-toggler {
        position: absolute;
        right: 0px !important;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        padding: 4px 6px;
    }
}

/* Header Carousel Fix */
@media (max-width: 768px) {
    #header-carousel .carousel-item {
        height: 500px !important;
    }

    .carousel-caption {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.explore-btn {
    background-color: #f5b806 !important;
    color: black !important;
    font-weight: bold;
}

.explore-btn:hover {
    background-color: #fc4f00 !important;
    color: white !important;
}

/* Fix mobile horizontal overflow */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

/* Comprehensive Mobile Fixes for Courses & Cards */
@media (max-width: 767px) {
    /* Reduce header padding to save screen space */
    .page-header {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    .page-header .py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* Reduce padding on service cards for better fit */
    .service-item {
        padding: 1rem !important;
    }

    /* Ensure text wrapping */
    p, h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Adjust Spoken English Banner sizes */
    .spoken-english-promo .fs-5 {
        font-size: 1.1rem !important;
    }
}

/* Force single column for services on mobile */
@media (max-width: 767px) {
    .force-single-col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

.social-icon-fb {
    background-color: #1877F2 !important;
    border-color: #1877F2 !important;
    color: #fff !important;
}

.social-icon-fb:hover {
    background-color: #166FE5 !important;
    border-color: #166FE5 !important;
    color: #fff !important;
}

.social-icon-ig {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.social-icon-ig:hover {
    background: linear-gradient(45deg, #e6683c 0%, #dc2743 25%, #cc2366 50%, #bc1888 75%, #f09433 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
}