:root {
    --primary-color: #ff6b35;
    --secondary-color: #1a9f8e;
    --accent-color: #ffb347;
    --teal-green: #1a9f8e;
    --greenish-yellow: #b8d430;
    --orange-yellow: #ffb347;
    --reddish-orange: #ff5722;
    --navbar-height: 80px;
}

/* Reset and box-sizing to avoid unexpected layout/overlap */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    box-sizing: border-box;
}
*, *::before, *::after {
    box-sizing: inherit;
}

body {
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
    /* font-family: 'Roboto', sans-serif; */
    font-family: math;
    transition: padding-top 0.3s ease;
    /* Reserve space for the fixed navbar so page content doesn't sit under it */
    /* padding-top: var(--navbar-height); */
}

body.scrolled {
    padding-top: 80px;
}

@media (max-width: 991px) {
    body {
        padding-top: 120px;
    }
    
    body.scrolled {
        padding-top: 80px;
    }
}

.navbar {
    background: #297f19;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    padding: 0px;
}

.navbar-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    padding: 0.5rem 1rem;
    position: relative;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 12px;
    order: 0;
    margin-left: 0;
    margin-right: auto;
    justify-content: flex-start;
    overflow: visible;
    top:18px;
}

@media (min-width: 992px) {
    .navbar-brand {
        margin-left: 0;
        margin-right: auto;
        padding-left: 0;
        position: relative;
        left: 0;
    }
    
    .navbar-container {
        padding-left: 0.5rem;
    }
}

.navbar-menu-wrapper {
    order: 2;
    margin-left: 1rem;
}

@media (min-width: 992px) {
    .navbar-menu-wrapper {
        display: none;
    }
}

.navbar-nav {
    order: 3;
    margin-left: auto;
}

.navbar-logo {
    height: 100px;
    width: auto;
    max-width: 350px;
    min-width: 200px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}
.nav-link{
    color: white !important;
}
.navbar-logo:hover {
    transform: scale(1.05);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    background: #297f19;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    color: #ffffff;
}

.dropdown-item:hover {
    /* background: linear-gradient(90deg, var(--teal-green), var(--primary-color)); */
    background-color: #d7610e;
    color: white;
    transform: translateX(5px);
}

.dropdown-item i {
    margin-right: 8px;
    width: 20px;
}
.dropdown-header{
    color: #f1f1f1;
}
.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.dropdown-toggle::after {
    height: 1px;
    background: none;
    margin-left: 8px;
    transition: transform 0.3s ease;
    border-top: 0.2em solid;
    border-right: .2em solid transparent;
    border-bottom: 0;
    border-left: .2em solid transparent;
}

/* Dropdown toggle arrow rotation disabled */
/* .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
} */
@media (min-width: 1080px ) and (max-width: 1920px) {
    .hero-section-home {
        min-height: calc(95vh - var(--navbar-height));
        background-size: cover;
    }
}


@media (max-width: 991px) {
    .navbar-container {
        flex-wrap: wrap;
    }
    
    .navbar-brand {
        order: 1;
        margin-right: auto;
    }
    
    .navbar-menu-wrapper {
        order: 2;
        margin-left: auto;
    }
    
    .navbar-nav {
        order: 3;
        width: 100%;
        margin-top: 0.5rem;
        margin-left: 0;
    }
    
    .navbar-logo {
        height: 70px;
        max-width: 200px;
        min-width: 150px;
    }
    
    .dropdown-menu {
        margin-top: 0;
        box-shadow: none;
        border-left: 3px solid var(--primary-color);
        background: #f8f9fa;
    }
}

/* Position logo so it overlaps the hero/header on larger screens
   while keeping mobile layout unchanged. */
@media (min-width: 992px) {
    .navbar-brand .navbar-logo {
        position: absolute;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        height: 110px;
        max-width: 220px;
        min-width: 140px;
        z-index: 1100;
        box-shadow: 0 6px 18px rgba(0,0,0,0.12);
        background: #fff;
        padding: 8px;
        border-radius: 6px;
    }

    /* Make sure the rest of the navbar keeps its spacing */
    .navbar-nav {
        margin-left: auto;
    }
}

/* On small screens keep logo in the normal flow so hamburger/menu positions correctly */
@media (max-width: 991px) {
    .navbar-brand .navbar-logo {
        position: static;
        transform: none;
        height: 70px;
        max-width: 200px;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }
}

@media (min-width: 992px) {
    .navbar-nav {
        flex-direction: row;
        align-items: center;
    }
}

.hero-section {
    background-image: url(../imgs/educ_ban.png);
    color: white;
    min-height: 123vh;
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
    position: relative;
    overflow: hidden;
    background-blend-mode: color;
    background-color: #000000a6;
}
.coming-section{
    background-image: url(../imgs/com_ban.png);
    color: white;
    padding: 95px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background-position: right;
    margin: 74px 0px 0px 0px;
    position: relative;
    overflow: hidden;
    background-color: #0000008c;
    background-blend-mode: color;
}
.hero-section-home{
    background-image: url(../imgs/home1.jpg);
    color: white;
    display: flex;
    align-items: center;
    overflow: hidden;
    min-height: calc(140vh - var(--navbar-height));
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: color;
    background-color: #000000ab;
}
.hero-content{
    text-align: center;
}
.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-bottom: 1.5rem;
    /* text-shadow: 4px 3px 5px #38a6208f; */
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.section {
    padding: 50px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    text-align: center;
    color: #333;
}

.success-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: left;
    color: #d7610e;
}
.list-styled {
    padding-left: 0;
    list-style: none;
    font-family: math;
    font-size: 1.25rem;
}
.text-color {
    color: #d7610e;
}
.text-green {
    color: #297f19;
}
.text-yellow {
    color: #ffc107;
}
.text-lgreen {
    color: #649f68;
}
.bg-grn {
    background: #297f19;
}
.bg-ogn {
    background: #d7610e;
}
.bg-ylw {
    background: #ffc107;
}
.bg-blue {
    background: #295ca9;
}
.bg-grn, .bg-ogn, .bg-ylw, .bg-logn, .bg-blue {
    color: white;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.bg-img-certification {
    background-image: url(../imgs/certifi4.png);
    background-size: cover;
    background-position: center;
    height: 400px;
    background-attachment: fixed;
    background-blend-mode: color;
    background-color: #0000008a;
}
.bg-grey {
    background: #eaedef;
}
.bg-logn{
    background: #e79231;
}
.p-200{
    padding-left: 200px;
    padding-right: 200px;
}
.certi-title{
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #fff;
}

.card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.btn-primary {
    background: #297f19;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #ffc359;
    transform: scale(1.05);
}

.about-section {
    padding: 60px 0 20px;
}
#about-title {
    text-align: justify;
    font-size: 2.5rem;
    font-weight: 600;
    color: #d76102;
}
#learn-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    color: #295ca9;
}
.benefits-title{
    color: #d7610e;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
}
.why-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    color: #297f19;
}
.contact-section {
    /* background: linear-gradient(135deg, var(--teal-green) 0%, var(--primary-color) 100%); */
    color: #d7610e;
}
.contact-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #297f19;
}
.alert-success {
  background-color: #e6f7ee;
  color: #0f5132;
  border: 1px solid #b7e4c7;
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: auto;
  max-width: 90%;
}

.footer {
    background: linear-gradient(45deg, #f1b33a, #46a74f, #22489a);
    color: white;
    padding: 20px 0 2px;
}
.navbar-collapse{
    position: relative;
    right: 85px;
}
.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container img {
    max-width: 300px;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
}

.content-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 2rem;
}
.card-img {
  position: relative;
}
.card-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  transition: background 0.4s ease;
}
.card-title a {
    color: white;
    text-decoration: none;
}
.card-img:hover::before {
  background: rgba(0, 0, 0, 0.6);
}
.justify{
    text-align: justify;
}

/* ============== ANIMATED SHAPES ============== */

/* Animated floating circles */
.floating-circle {
    position: fixed;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    pointer-events: none;
    z-index: 1;
    animation: float-slow 20s infinite ease-in-out;
}

.floating-circle-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 5%;
    animation: float-slow 25s infinite ease-in-out;
    background: rgba(255, 255, 255, 0.12);
}

.floating-circle-2 {
    width: 150px;
    height: 150px;
    top: 40%;
    right: 8%;
    animation: float-slow 30s infinite ease-in-out reverse;
    background: rgba(255, 255, 255, 0.1);
}

.floating-circle-3 {
    width: 80px;
    height: 80px;
    bottom: 15%;
    left: 12%;
    animation: float-slow 28s infinite ease-in-out;
    background: rgba(255, 255, 255, 0.14);
}

.floating-circle-4 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    right: 5%;
    animation: float-slow 35s infinite ease-in-out reverse;
    background: rgba(255, 255, 255, 0.11);
}

/* Animated triangles */
.floating-triangle {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    animation: float-medium 22s infinite ease-in-out;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 90px solid rgba(255, 255, 255, 0.12);
    top: 25%;
    right: 15%;
    animation: float-medium 20s infinite ease-in-out;
}

.triangle-2 {
    width: 0;
    height: 0;
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-bottom: 60px solid rgba(255, 255, 255, 0.1);
    top: 60%;
    left: 8%;
    animation: float-medium 25s infinite ease-in-out reverse;
}

.triangle-3 {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(255, 255, 255, 0.13);
    bottom: 10%;
    right: 20%;
    animation: float-medium 28s infinite ease-in-out;
}

.triangle-4 {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 50px solid rgba(255, 255, 255, 0.11);
    top: 45%;
    right: 3%;
    animation: float-medium 24s infinite ease-in-out reverse;
}

/* Keyframe animations for floating shapes */
@keyframes float-slow {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translate(30px, -50px) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: translate(0, -100px) rotate(180deg);
        opacity: 0.5;
    }
    75% {
        transform: translate(-30px, -50px) rotate(270deg);
        opacity: 0.7;
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
        opacity: 0.6;
    }
}

@keyframes float-medium {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.5;
    }
    25% {
        transform: translateY(-40px) rotate(45deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-80px) rotate(90deg);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-40px) rotate(180deg);
        opacity: 0.6;
    }
    100% {
        transform: translateY(0) rotate(360deg);
        opacity: 0.5;
    }
}

/* ============== HERO SECTION ANIMATED SHAPES ============== */

.hero-section .floating-circle,
.hero-section .floating-triangle {
    position: absolute;
    pointer-events: none;
}

.hero-section .floating-circle-1 {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 3%;
    background: rgba(255, 255, 255, 1);
    animation: float-hero 15s infinite ease-in-out;
}

.hero-section .floating-circle-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 40%;
    background: rgba(255, 255, 255, 1);
    animation: float-hero 18s infinite ease-in-out reverse;
}

.hero-section .floating-circle-3 {
    width: 100px;
    height: 100px;
    bottom: 10%;
    left: 1%;
    background: rgba(255, 255, 255, 1);
    animation: float-hero 20s infinite ease-in-out;
}

.hero-section .floating-circle-4 {
    width: 60px;
    height: 60px;
    top: 35%;
    right: 25%;
    background: rgba(255, 255, 255, 1);
    animation: float-hero 16s infinite ease-in-out reverse;
}

.hero-section .triangle-1 {
    width: 0;
    height: 0;
    border-left: 45px solid transparent;
    border-right: 45px solid transparent;
    border-bottom: 80px solid rgba(255, 255, 255, 1);
    top: 20%;
    right: 25%;
    animation: float-hero-triangle 17s infinite ease-in-out;
}

.hero-section .triangle-2 {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 50px solid rgba(255, 255, 255, 1);
    bottom: 20%;
    left: 15%;
    animation: float-hero-triangle 19s infinite ease-in-out reverse;
}

.hero-section .triangle-3 {
    width: 0;
    height: 0;
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-bottom: 60px solid rgba(255, 255, 255, 1);
    top: 50%;
    right: 30%;
    animation: float-hero-triangle 21s infinite ease-in-out;
}

.hero-section .triangle-4 {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 45px solid rgba(255, 255, 255, 1);
    top: 10%;
    left: 5%;
    animation: float-hero-triangle 18s infinite ease-in-out reverse;
}

/* Hero-specific floating animations */
@keyframes float-hero {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translate(30px, -50px) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
        opacity: 0.6;
    }
}

@keyframes float-hero-triangle {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-60px) rotate(180deg);
        opacity: 0.7;
    }
    100% {
        transform: translateY(0) rotate(360deg);
        opacity: 0.5;
    }
}

