@import url('https://fonts.googleapis.com/css2?family=Gabarito:wght@400..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Gabarito:wght@400..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Global */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Gabarito', sans-serif;
}
body {
    font-family: 'Inter', sans-serif;
}
p {
    font-size: 1rem;
}
a {
    color: #fff;
    text-decoration: none;
}
hr {
    border: none; 
    border-top: 3px solid #0AAF47; 
    margin: 10px 0 0 0; 
    opacity: 1;
}
span {
    color: #00B233;
}
.icon {
    cursor: pointer;
    color: #00B233; 
    font-size: 20px;
}
.space-y-4 {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.space-y-2 {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.btn-green, .btn-learn {
    background-color: #0AAF47; 
    color: white;
    font-size: 14px;
    padding: 10px 17px;
}
.btn-green:hover {
    color: white;
    background-color: #000000;
}
.section {
    color: white;
    background-color: #222222;
    padding: 40px 0;
}
.left-section {
    justify-content: left;
}
.centered-section {
    justify-content: center;
}
.left-section, .centered-section {
    display: flex;
    flex-wrap: wrap;
    margin-top: 4rem;
    margin-bottom: 4rem;
    /* gap: 1rem; */
}
.pattern {
    width: 208px;
    height: 204px;
    top: -120px;
    position: absolute;
}
.pattern2 {
    height: 180px;
    position: absolute;
    object-fit: contain;
    transform: translateY(-80px);
    display: none;
}
.pattern3 {
    position: absolute;
    width: 84%;
    height: 200px;
    object-fit: contain;
}
.pattern4 {
    position: absolute;
    width:16%;
    height: auto;
    object-fit: contain;
}
.image-rounded-left {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    overflow: hidden;
}
.image-cover {
    display: block;
    height: 450px;
    width: 100%;
    object-fit: cover;
}
.image-full-cover {
    width: 100%;
    object-fit: cover;
    border-radius: 1rem;
    position: relative;
}
.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 40px 0;
}
.content-rounded {
    background-color: #E8F8EC;
    color: #000000;
    border-radius: 10px;
    max-width: 350px;
    box-shadow: 0px 2.6px 12.98px 0px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}
.content-rounded {
    transition: all 0.3s ease;
    position: relative;
    top: 0;
}
.content-rounded:hover {
    background-color: white;
    transform: translateY(20px);
}
.content-rounded h4 {
    color: #00B233;
}
.content-rounded-right {
    background-color: #E8F8EC;
    color: #000000;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
}
.content-rounded .content-header,
.content-rounded-right .content-header {
    display: flex;
    justify-content: end;
    gap: 20px;
    padding: 10px 15px 0 15px;
}
.content-rounded .content-body,
.content-rounded-right .content-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.content-body button {
    width: 120px;
}
.content-body li {
    color: #0AAF47;
    font-weight: 600;
}
.content-dark {
    background-color: #222222;
    color: white;
    border-radius: 10px;
    box-shadow: 0px 3.75px 28.12px 0px rgba(0, 0, 0, 0.75);
    padding: 40px;
    position: relative;
    z-index: 1;
    height: 320px;
    margin-bottom: 30px;
}
.content-dark hr {
    border: none; 
    border-top: 2px solid #0AAF47; 
    margin: 10px 0 15px 0; 
}

/* Accordion */
.accordion-container {
    width: 100%;
    z-index: 1;
}
.accordion {
    border-radius: 10px;
    margin-bottom: 20px;
}
.accordion-button {
    background-color: #E8F8EC !important;
    color: #0AAF47 !important;
    font-weight: bolder !important;
    font-size: 1.25rem !important;
    box-shadow: 0px 4px 0px 0px rgba(10, 175, 71, 1) !important;
}
.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2300B233'%3e%3cpath d='M1.646 4.646a.75.75 0 0 1 1.06 0L8 9.94l5.294-5.294a.75.75 0 0 1 1.06 1.06l-6 6a.75.75 0 0 1-1.06 0l-6-6a.75.75 0 0 1 0-1.06z'/%3e%3c/svg%3e") !important;
}
.accordion-body {
    background-color: #E8F8EC !important;
    color: #000000 !important;
}

/* Card */
.cards-container {
    position: relative;
    /* width: 100%; */
    z-index: 1;
    margin-top: 10px;
    margin-bottom: 10px;
}
.card-selector-wrapper {
    position: relative;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
}
.card-selector-container {
    background-color: #E8F8EC;
    /* border-top-right-radius: 10px; */
    /* border-bottom-right-radius: 10px; */
    /* border-radius: 10px; */
    display: flex;
    /* flex-direction: column; */
    gap: 10px;
    padding: 1.5rem;
}
.card {
    border-radius: 10px;
    background-color: #E8F8EC;
    border: none;
    display: none;
}
.card-body {
    padding: 2rem;
}
.card.active {
    display: block;
}
.card-selector-wrapper.active {
    display: none;
}
.card .position-relative {
    height: 200px;
    z-index: 0;
}
.card img {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card .overlay {
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.4);
}
.card-title-overlay {
    position: absolute; 
    bottom: 20px; 
    left: 10px; 
    margin: 0; 
    z-index: 1; 
    color: white;
    padding: 5px 10px;
}
.btn-img {
    background-size: cover !important; 
    background-color: transparent !important; 
    background-color: rgba(0, 0, 0, 0.4) !important;
    color: white;
    width: 250px;
    height: 65px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    background-position: center;
    position: relative;
    transition: opacity 0.3s ease;
}
.btn-img:focus {
    outline: none;
}
.btn-img.active {
    /* display: none; */
    opacity: 0.5;
    cursor: default;
}
.btn-img:not(.active):hover {
    opacity: 0.8;
}
/* Overlay for the button text readability */
.btn-img::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4));
    border-radius: 10px;
    z-index: 0;
}
.btn-img span {
    position: relative;
    z-index: 1;
    color: white;
}

/* Navbar */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 2rem 0;
    transition: all 0.3s ease-in-out;
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-dark-rgb), var(--bs-bg-opacity));
}
.nav-link {
    color: white;
    font-weight: 500;
}
.nav-link:hover {
    color: #00B233;
}
.nav-link.active {
    background: #0AAF47;
    font-weight: 600;
}

/* Mega Menu */
.mega-menu-parent .dropdown-menu {
    width: 100%;
    left: 0;
    right: 0;
    border: none;
}

.mega-menu {
    background: #222222;
    border-top: 3px solid #0FA958; /* optional green line */
    width: 100vw !important;
    left: 50% !important;
    /* transform: translateX(-50%) !important; */
}

.mega-menu ul {
    list-style: none;
    /* padding: 20px; */
    /* display: flex; */
    /* justify-content: space-around; */
    /* flex-wrap: wrap; */
    /* gap: 20px; */
}

.mega-menu ul > li {
    margin-bottom: 10px;
}

.mega-menu .card-body {
    background: #383838; 
    margin-top: -23px; 
    padding: 25px 0;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.mega-item {
    text-align: center;
    display: block;
    text-decoration: none;
    color: #000;
}

.mega-item img {
    border-radius: 8px;
    width: 100%;
    /* height: auto; */
    object-fit: cover;
    transition: transform .2s ease;
}

.mega-item img.card-img {
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}

.mega-item:hover img {
    transform: scale(1.05);
}

.mega-img-wrapper {
    position: relative;
    overflow: hidden;
    /* border-radius: 8px; */
}

.mega-img-wrapper .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35); /* overlay color */
    /* opacity: 0; */
    transition: opacity .3s ease;
}

.mega-item h5 {
    color: #fff;
    position: relative;
    left: 30px;
    bottom: 40px;
    text-align: left;
    z-index: 1;
    color: white;
    /* padding: 5px 20px; */
}

/* Show dropdown on hover */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Ensure Bootstrap animation doesn’t conflict */
.dropdown-menu {
    display: none;
    margin-top: 0;
}

/* Footer */
footer {
    background: linear-gradient(180deg, #222222 13.33%, #000000 206%);
    color: white;
    padding-bottom: 40px;
}
footer span {
    color: #00B233;
}

/* Contact */
#contact {
    padding: 40px 0;
}
.contact-wrapper {
    position: relative;
    z-index: 0;
    overflow: hidden;
}
.contact-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    width: 50vw;
    height: 80%;
    background-image: linear-gradient(to right, #222222 0%, rgba(34,34,34,0.9) 10%, rgba(34,34,34,0.4) 40%, transparent 60%),
                      url('/images/uploads/TTO_Premise_3.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}
.contact-form .row {
    margin-bottom: 1rem;
}
.form-control {
    padding: 0.7rem .75rem;
    background-color: #E8F8EC;
}
.form-control:focus {
    background-color: #E8F8EC;
}

/* Hero Section */
.hero-container {
    position: relative;
    width: 100%;
    height: 70vh;
    max-width: auto;
    overflow: hidden;
}
.hero-image {
    width: 100%;
    height: 70vh;
    display: block;
    object-fit: cover;
}
.hero-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    z-index: 1;
}
.hero-content {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 2; /* Ensure content stays above the overlay */
}
.hero-content h1 {
    margin-bottom: 1.5rem;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); */
}
.btn-hero {
    background: rgba(0, 0, 0, 0.5);
    border: 0.48px solid;
    border-image-source: linear-gradient(306.28deg, rgba(255, 255, 255, 0) 26.38%, #FFFFFF 50%, rgba(255, 255, 255, 0) 0%);
    box-shadow: 0px 3.88px 19.39px 0px rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12.89696979522705px);
    color: white;
    padding: 12px 30px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}
.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background-color: #00B233;
}

/* About Us Section */
.hero-container-about-us {
    position: relative;
    width: 100%;
    height: 60vh;
    max-width: auto;
    overflow: hidden;
}
.hero-container-about-us p {
    font-size: 1.75rem;
}
.hero-container-about-us::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    z-index: 1;
}
.hero-content-about-us {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 2; /* Ensure content stays above the overlay */
}

/* Category Section */
.category-container {
    display: flex;
    justify-content: space-evenly;
    gap: 1.5rem;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    background: #E8F8EC59;
    backdrop-filter: blur(20px);
}
.category-item, .category-item p {
    margin-top: 1.5rem;
}

/* Media Queries */
@media screen and (min-width: 992px) {
    h1 {
        font-size: 3.5rem;
    }
    h2 {
        font-size: 2.5rem;
    }
    .navbar-logo {
        height: 64px;
    }
    .footer-logo {
        height: 48px;
    }
    .left-section, .centered-section {
        flex-wrap: nowrap;
    }
    .pattern2 {
        left: -18em;
        display: block;
    }
    .image-cover {
        width: 350px;
    }
    .pattern-container, .pattern-heading {
        position: relative;
        margin-top: 120px;
    }
    .pattern-heading {
        margin-left: 100px;
        margin-bottom: 40px;
    }
    .accordion-container {
        width: 70%;
    }
    .card.active {
        width: 700px;
    }
    .card-offset-1 {
        position: relative;
        top: 50px;
        left: -50px;
    }
    .card-offset-2 {
        position: relative;
        top: 100px;
        left: -100px;
    }
    .navbar {
        background-color: unset;
    }
    .hero-image {
        /* height: 620px; */
    }
}
@media screen and (min-width: 1600px) {
    h1 {
        font-size: 4rem;
    }
    h2 {
        font-size: 3rem;
    }
    .navbar-logo {
        height: 84px;
    }
    .footer-logo {
        height: 64px;
    }
    .pattern {
        width: 248px;
        height: 244px;
        top: -140px;
    }
    .pattern2 {
        left: -16em;
    }
    .pattern3 {
        width: 56%;
    }
    .pattern4 {
        width: 14%;
    }
    .pattern-heading {
        margin-left: 120px;
    }
}

@media screen and (min-width: 1800px) {
    .pattern4 {
        width: 9%;
    }
}

/* Animations */
.card {
  opacity: 0;
  transform: translateY(30px) scale(0.98) rotateX(5deg);
  transform-origin: center bottom;
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
  will-change: transform, opacity;
  filter: blur(6px);
}

.card.active {
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(0deg);
  filter: blur(0);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* “Pop-in” effect when activated */
@keyframes popCard {
  0% {
    transform: scale(0.9) rotateX(10deg);
    opacity: 0;
    filter: blur(6px);
  }
  50% {
    transform: scale(1.02) rotateX(0deg);
    opacity: 1;
    filter: blur(0);
  }
  100% {
    transform: scale(1) rotateX(0deg);
    opacity: 1;
  }
}

@keyframes zoomOutIn {
  0% {
    transform: scale(1.1);
    opacity: 0;
    filter: blur(6px);
  }
  60% {
    transform: scale(0.95);
    opacity: 1;
    filter: blur(0);
  }
  100% {
    transform: scale(1);
  }
}

.card.animate {
  animation: zoomOutIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Fancy entry for inner elements */
.card.active .card-body,
.card.active .card-title-overlay {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 0.6s ease forwards;
}

.card.active .card-title-overlay {
  animation-delay: 0.2s;
}

.card.active .card-body {
  animation-delay: 0.35s;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}



