/********** Template CSS **********/
:root {
    --primary: #348E38;
    --secondary: #525368;
    --light: #E8F5E9;
    --dark: #0F4229;
}

/* Performance optimizations */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus improvements for accessibility */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Loading states and transitions */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Improved button interactions */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
}

/* Skip to main content for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
}

.skip-link:focus {
    top: 6px;
}

/* ========== MODERN TOPBAR STYLES ========== */
.modern-topbar {
    background: linear-gradient(135deg, #0F4229 0%, #2d5f3f 100%);
    position: relative;
    overflow: hidden;
}

.modern-topbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="grain" width="100" height="20" patternUnits="userSpaceOnUse"><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="20" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.1;
}

/* Desktop Topbar */
.topbar-desktop {
    padding: 12px 0;
    position: relative;
    z-index: 2;
}

.contact-info {
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    color: #E8F5E9;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-item i {
    color: #4CAF50;
    margin-right: 8px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.contact-item:hover {
    color: #4CAF50;
    transform: translateY(-1px);
}

.social-section {
    gap: 1rem;
}

.follow-text {
    color: #E8F5E9;
    font-size: 14px;
    font-weight: 600;
    margin-right: 15px;
}

.social-links {
    display: flex;
    gap: 8px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transform: scale(0);
    transition: transform 0.3s ease;
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link i {
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.social-link.facebook {
    background: rgba(24, 119, 242, 0.2);
    border: 1px solid rgba(24, 119, 242, 0.3);
    color: #1877f2;
}

.social-link.facebook:hover {
    background: #1877f2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.social-link.youtube {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff0000;
}

.social-link.youtube:hover {
    background: #ff0000;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.social-link.whatsapp {
    background: rgba(37, 211, 102, 0.2);
    border: 1px solid rgba(37, 211, 102, 0.3);
    color: #25d366;
}

.social-link.whatsapp:hover {
    background: #25d366;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Mobile Topbar */
.topbar-mobile {
    padding: 15px 0;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.mobile-contact-info {
    padding: 8px 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    margin: 0 10px 15px 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

.mobile-contact-info span {
    color: #E8F5E9;
    font-size: 12px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.contact-number, .contact-email {
    display: inline-block;
}

.contact-separator {
    margin: 0 8px;
    opacity: 0.6;
}

.mobile-contact {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 0 10px;
    gap: 8px;
}

.mobile-contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #E8F5E9;
    font-size: 13px;
    font-weight: 600;
    padding: 12px 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mobile-contact-item i {
    font-size: 20px;
    margin-bottom: 6px;
    color: #4CAF50;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.mobile-contact-item.whatsapp i {
    color: #25d366;
}

.mobile-contact-item span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.mobile-contact-item:hover,
.mobile-contact-item:active {
    background: rgba(255,255,255,0.15);
    color: #4CAF50;
    transform: translateY(-2px);
    border-color: rgba(76, 175, 80, 0.3);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.mobile-contact-item.whatsapp:hover {
    color: #25d366;
    border-color: rgba(37, 211, 102, 0.3);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.mobile-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
}

.mobile-social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mobile-social-link i {
    font-size: 20px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.mobile-social-link.facebook {
    background: rgba(24, 119, 242, 0.15);
    border: 2px solid rgba(24, 119, 242, 0.3);
    color: #1877f2;
}

.mobile-social-link.facebook:hover {
    background: #1877f2;
    color: white;
    transform: translateY(-3px);
    border-color: #1877f2;
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
}

.mobile-social-link.youtube {
    background: rgba(255, 0, 0, 0.15);
    border: 2px solid rgba(255, 0, 0, 0.3);
    color: #ff0000;
}

.mobile-social-link.youtube:hover {
    background: #ff0000;
    color: white;
    transform: translateY(-3px);
    border-color: #ff0000;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

/* Responsive adjustments for mobile topbar */
@media (max-width: 576px) {
    .topbar-mobile {
        padding: 12px 0;
    }
    
    .mobile-contact-info {
        margin: 0 5px 12px 5px;
        padding: 6px 10px;
    }
    
    .mobile-contact-info span {
        font-size: 11px;
    }
    
    .mobile-contact {
        padding: 0 5px;
        gap: 5px;
        margin-bottom: 12px;
    }
    
    .mobile-contact-item {
        font-size: 12px;
        padding: 10px 6px;
        border-radius: 10px;
    }
    
    .mobile-contact-item i {
        font-size: 18px;
        margin-bottom: 5px;
    }
    
    .mobile-contact-item span {
        font-size: 10px;
    }
    
    .mobile-social {
        gap: 15px;
        padding: 0 15px;
    }
    
    .mobile-social-link {
        width: 40px;
        height: 40px;
    }
    
    .mobile-social-link i {
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .mobile-contact-info {
        margin: 0 2px 10px 2px;
        padding: 5px 8px;
    }
    
    .mobile-contact-info span {
        font-size: 10px;
    }
    
    .contact-separator {
        margin: 0 4px;
    }
    
    /* Stack contact info vertically on very small screens */
    .contact-email {
        display: block;
        margin-top: 2px;
    }
    
    .contact-separator {
        display: none;
    }
    
    .mobile-contact {
        padding: 0 2px;
        gap: 3px;
    }
    
    .mobile-contact-item {
        padding: 8px 4px;
        font-size: 11px;
    }
    
    .mobile-contact-item i {
        font-size: 16px;
    }
    
    .mobile-contact-item span {
        font-size: 9px;
    }
    
    .mobile-social-link {
        width: 36px;
        height: 36px;
    }
    
    .mobile-social-link i {
        font-size: 16px;
    }
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 142, 56, 0.3);
    cursor: pointer;
    user-select: none;
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(52, 142, 56, 0.4);
}

h1,
.h1,
h2,
.h2,
.fw-bold {
    font-weight: 700 !important;
}

h3,
.h3,
h4,
.h4,
.fw-medium {
    font-weight: 600 !important;
}

h5,
.h5,
h6,
.h6,
.fw-semi-bold {
    font-weight: 500 !important;
}


/*** 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);
}

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

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.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 ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 75px;
}

.nav-logo {
    height: 60px;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 18px;
    font-weight: 500;
    outline: none;
    transition: 0.3s;
}

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

.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-nav .nav-link {
        margin-right: 0;
        padding: 15px 20px;
        font-size: 16px;
        border-bottom: 1px solid #f8f9fa;
    }
    
    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
        margin-top: 10px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .nav-logo {
        height: 50px;
    }
    
    .navbar .navbar-brand h1 {
        font-size: 1.4rem;
        line-height: 1.2;
    }
    
    .navbar-toggler {
        border: none;
        padding: 8px 12px;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
}

@media (max-width: 768px) {
    .nav-logo {
        height: 45px;
        margin-right: 10px;
    }
}

@media (max-width: 576px) {
    .nav-logo {
        height: 40px;
        margin-right: 8px;
    }
    
    .navbar .navbar-brand h1 {
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    .btn {
        min-height: 44px;
        min-width: 44px;
        font-size: 14px;
    }
    
    .carousel-caption h1 {
        font-size: 1.8rem !important;
        line-height: 1.3;
    }
    
    .display-1, .display-5 {
        font-size: 2rem !important;
    }
    
    .fs-5 {
        font-size: 1rem !important;
    }
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        flex-basis: auto !important;
        visibility: visible !important;
        height: auto !important;
        opacity: 1 !important;
    }
    
    .navbar-expand-lg .navbar-nav {
        flex-direction: row !important;
        display: flex !important;
        visibility: visible !important;
    }
    
    .navbar-expand-lg .navbar-toggler {
        display: none !important;
    }
    
    #navbarNav, 
    #navbarCollapse {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
    }
}

/* Join TMS button styles */
.join-tms-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 45px;
    padding: 0 25px;
    border-radius: 30px;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.join-tms-btn-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    padding: 0 20px;
    border-radius: 30px;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

/* Special responsive adjustment for "Join TMS" button */
@media (max-width: 576px) {
    .navbar .navbar-brand {
        max-width: 70%; /* Ensure brand doesn't overflow */
    }
    
    .navbar .navbar-brand h1 {
        font-size: 1.1rem; /* Further reduce font size on very small screens */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 95%; /* Prevent text from overflowing */
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(15, 66, 41, .6);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 3rem;
    background-color: var(--primary);
    border: 10px 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(10, 50, 30, 0.9), rgba(15, 66, 41, 0.9)), url(../img/carousel-1.jpg) center center no-repeat;
    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);
}


/*** Top Feature ***/
@media (min-width: 991.98px) {
    .top-feature {
        position: relative;
        margin-top: -80px;
        z-index: 1;
    }
}

/* Feature Tiles Hover Effects */
.top-feature .col-lg-4 > div {
    transition: all 0.4s ease;
    cursor: pointer;
    border-radius: 12px !important;
    position: relative;
    overflow: hidden;
}

.top-feature .col-lg-4 > div::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.top-feature .col-lg-4 > div:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    border-color: rgba(76, 175, 80, 0.3);
}

.top-feature .col-lg-4 > div:hover::before {
    left: 100%;
}

.top-feature .col-lg-4 > div:hover .btn-lg-square {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #4CAF50, #45a049) !important;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.top-feature .col-lg-4 > div:hover .btn-lg-square i {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.top-feature .col-lg-4 > div:hover h4 {
    color: #2E7D32;
    transform: translateX(5px);
}

.top-feature .col-lg-4 > div:hover span {
    color: #4CAF50;
    transform: translateX(5px);
}

.top-feature .btn-lg-square {
    transition: all 0.4s ease;
    border: 3px solid rgba(76, 175, 80, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.top-feature h4, .top-feature span {
    transition: all 0.3s ease;
}

.top-feature .col-lg-4 > div:active {
    transform: translateY(-4px);
    transition: all 0.1s ease;
}

/* Mobile spacing for top feature tiles */
@media (max-width: 991.98px) {
    .top-feature .col-lg-4:not(:last-child) {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .top-feature .col-lg-4:not(:last-child) {
        margin-bottom: 15px;
    }
}

/* Key Achievements Tiles Hover Effects */
.container-xxl .row.g-4 .col-12 > div.text-center.rounded.shadow,
.container-xxl .row.g-4 .col-md-6 > div.text-center.rounded.shadow {
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.container-xxl .row.g-4 .col-12 > div.text-center.rounded.shadow::before,
.container-xxl .row.g-4 .col-md-6 > div.text-center.rounded.shadow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.08), transparent);
    transition: left 0.7s ease;
    z-index: 1;
}

.container-xxl .row.g-4 .col-12 > div.text-center.rounded.shadow:hover,
.container-xxl .row.g-4 .col-md-6 > div.text-center.rounded.shadow:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2) !important;
    border-color: rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #ffffff, #f8fffe);
}

.container-xxl .row.g-4 .col-12 > div.text-center.rounded.shadow:hover::before,
.container-xxl .row.g-4 .col-md-6 > div.text-center.rounded.shadow:hover::before {
    left: 100%;
}

.container-xxl .row.g-4 .col-12 > div.text-center.rounded.shadow:hover .btn-square,
.container-xxl .row.g-4 .col-md-6 > div.text-center.rounded.shadow:hover .btn-square {
    transform: scale(1.15) rotateY(15deg);
    background: linear-gradient(135deg, #4CAF50, #45a049) !important;
    box-shadow: 0 12px 25px rgba(76, 175, 80, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.9);
}

.container-xxl .row.g-4 .col-12 > div.text-center.rounded.shadow:hover .btn-square i,
.container-xxl .row.g-4 .col-md-6 > div.text-center.rounded.shadow:hover .btn-square i {
    color: white !important;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transform: scale(1.1);
}

.container-xxl .row.g-4 .col-12 > div.text-center.rounded.shadow:hover h4,
.container-xxl .row.g-4 .col-md-6 > div.text-center.rounded.shadow:hover h4 {
    color: #2E7D32 !important;
    transform: translateY(-3px);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.container-xxl .row.g-4 .col-12 > div.text-center.rounded.shadow:hover span,
.container-xxl .row.g-4 .col-md-6 > div.text-center.rounded.shadow:hover span {
    color: #4CAF50 !important;
    transform: translateY(-2px);
    font-weight: 600;
}

.container-xxl .row.g-4 .btn-square {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(76, 175, 80, 0.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.container-xxl .row.g-4 h4, 
.container-xxl .row.g-4 span {
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.container-xxl .row.g-4 .col-12 > div.text-center.rounded.shadow:active,
.container-xxl .row.g-4 .col-md-6 > div.text-center.rounded.shadow:active {
    transform: translateY(-6px);
    transition: all 0.1s ease;
}

/* Special animation for different achievement tiles */
.container-xxl .row.g-4 .col-12:first-child > div.text-center.rounded.shadow:hover .btn-square {
    animation: pulse-users 0.6s ease-in-out;
}

.container-xxl .row.g-4 .col-12:last-child > div.text-center.rounded.shadow:hover .btn-square {
    animation: pulse-handshake 0.6s ease-in-out;
}

.container-xxl .row.g-4 .col-md-6 > div.text-center.rounded.shadow:hover .btn-square {
    animation: pulse-ban 0.6s ease-in-out;
}

@keyframes pulse-users {
    0%, 100% { transform: scale(1.15) rotateY(15deg); }
    50% { transform: scale(1.25) rotateY(15deg) rotateX(10deg); }
}

@keyframes pulse-handshake {
    0%, 100% { transform: scale(1.15) rotateY(15deg); }
    50% { transform: scale(1.25) rotateY(15deg) rotateX(-10deg); }
}

@keyframes pulse-ban {
    0%, 100% { transform: scale(1.15) rotateY(15deg); }
    50% { transform: scale(1.25) rotateY(15deg) rotate(10deg); }
}

/* Movement Buttons Styling */
.movement-btn {
    position: relative;
    height: 200px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.movement-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.movement-btn:hover::before {
    left: 100%;
}

.movement-btn:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(76, 175, 80, 0.4);
}

.movement-btn i {
    transition: all 0.4s ease;
    color: inherit;
    z-index: 2;
    position: relative;
}

.movement-btn:hover i {
    transform: scale(1.2) rotateY(15deg);
    text-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.movement-btn strong {
    font-size: 1.2rem;
    z-index: 2;
    position: relative;
    transition: all 0.3s ease;
}

.movement-btn small {
    font-size: 0.85rem;
    opacity: 0.8;
    z-index: 2;
    position: relative;
    transition: all 0.3s ease;
}

.movement-btn:hover strong,
.movement-btn:hover small {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Specific styling for Million March (primary button) */
.movement-btn.btn-primary:hover {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

/* Specific styling for outline buttons */
.movement-btn.btn-outline-primary:hover {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-color: #4CAF50;
    color: white;
}

/* Responsive adjustments for movement buttons */
@media (max-width: 768px) {
    .movement-btn {
        height: 180px;
        padding: 20px 15px;
    }
    
    .movement-btn i {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .movement-btn strong {
        font-size: 1.1rem;
    }
    
    .movement-btn small {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .movement-btn {
        height: 160px;
        padding: 15px 10px;
    }
    
    .movement-btn i {
        font-size: 1.3rem;
    }
    
    .movement-btn strong {
        font-size: 1rem;
    }
    
    .movement-btn small {
        font-size: 0.75rem;
    }
}


/*** Facts & Quote ***/
.facts,
.quote {
    background: rgba(15, 66, 41, .6);
    position: relative;
}

.facts::before,
.quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 66, 41, .6);
    z-index: 1;
}

.facts .container,
.quote .container {
    position: relative;
    z-index: 2;
}

/* Ensure green overlay appears on all devices */
@media (max-width: 768px) {
    .facts,
    .quote {
        background: rgba(15, 66, 41, .7) !important;
    }
    
    .facts::before,
    .quote::before {
        background: rgba(15, 66, 41, .7) !important;
    }
    
    .facts h1,
    .facts span,
    .facts p {
        color: white !important;
    }
    
    /* Keep quote section content visible - only affect direct children not inside bg-white */
    .quote > .container h1,
    .quote > .container span,
    .quote > .container p {
        color: white !important;
    }
    
    /* Ensure volunteer section content stays dark */
    .quote .bg-white,
    .quote .bg-white h1,
    .quote .bg-white p,
    .quote .bg-white a {
        color: #333 !important;
        background-color: white !important;
    }
    
    /* Make Sign Up Now button more prominent green on mobile */
    .quote .bg-white .btn-primary {
        background-color: #348E38 !important;
        border-color: #348E38 !important;
        color: white !important;
        font-weight: bold !important;
        box-shadow: 0 4px 15px rgba(52, 142, 56, 0.3) !important;
    }
    
    .quote .bg-white .btn-primary:hover {
        background-color: #2a7a2e !important;
        border-color: #2a7a2e !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(52, 142, 56, 0.4) !important;
    }
}


/*** Service ***/
.service-item {
    position: relative;
    text-align: center;
}

.service-item .service-img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
}

.service-item .service-img img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    object-fit: cover;
    transform: scale(1.2);
    transition: .3s;
    z-index: -1;
}

.service-item:hover .service-img img {
    transform: scale(1);
}

.service-item .service-text {
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .3s;
}

.service-item:hover .service-text {
    background: rgba(15, 66, 41, .6);
}

.service-item .service-text h4,
.service-item .service-text p {
    transition: .3;
}

.service-item:hover .service-text h4 {
    color: #FFFFFF;
}

.service-item:hover .service-text p {
    color: var(--light);
}

.service-item .service-text .btn-square {
    width: 100px;
    height: 100px;
    background: transparent;
    transition: .5s;
}

.service-item:hover .service-text .btn-square {
    background: var(--light);
}

.service-item .service-text .btn {
    width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    color: var(--dark);
    background: var(--light);
    white-space: nowrap;
    overflow: hidden;
    transition: .3s;
}

.service-item:hover .service-text .btn {
    width: 112px;
}


/*** Project Portfolio ***/
#portfolio-flters {
    display: inline-block;
    background: var(--light);
    padding: 10px 15px;
}

#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--dark);
    border-color: var(--dark);
}

.portfolio-inner {
    position: relative;
    overflow: hidden;
}

.portfolio-inner::before,
.portfolio-inner::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(15, 66, 41, .6);
    transition: .5s;
}

.portfolio-inner::after {
    left: auto;
    right: 0;
}

.portfolio-inner:hover::before,
.portfolio-inner:hover::after {
    width: 50%;
}

.portfolio-inner .portfolio-text {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .5s;
    z-index: 3;
    opacity: 0;
}

.portfolio-inner:hover .portfolio-text {
    transition-delay: .3s;
    opacity: 1;
}

.portfolio-inner .portfolio-text .btn {
    background: var(--light);
    color: var(--primary);
}

.portfolio-inner .portfolio-text .btn:hover {
    background: var(--primary);
    color: var(--light);
}


/*** Team ***/
.team-item {
    position: relative;
    overflow: hidden;
}

.team-item .team-text {
    position: absolute;
    width: calc(100% - 45px);
    left: -100%;
    bottom: 45px;
    padding: 1.5rem;
    background: #FFFFFF;
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-text {
    left: 0;
    opacity: 1;
}

.team-item .team-social .btn {
    background: var(--light);
    color: var(--primary);
}

.team-item .team-social .btn:hover {
    background: var(--primary);
    color: var(--light);
}

.team-item .team-img .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
    z-index: 3;
    opacity: 0;
}

.team-item:hover .team-img .team-social {
    transition-delay: .3s;
    opacity: 1;
}


/*** Testimonial ***/

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin-right: 15px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--light);
    border-radius: 4px;
    font-size: 22px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: var(--light);
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    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;
    margin-right: 10px;
}

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

.copyright {
    color: var(--light);
    background: #072A19;
}

.copyright a {
    color: #FFFFFF;
}

.copyright a:hover {
    color: var(--primary);
}




/* Ensure the social button styles are consistent */
.btn-outline-light {
    border: 2px solid #f8f9fa; /* Make the border a bit bolder */
    color: #f8f9fa; /* Light text color */
}

/* Style for social media buttons */
.btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-left: 5px;
}

.rounded-circle {
    border-radius: 50%!important;
}

.me-3 {
    margin-right: 1rem!important;
}

/* Move "Latest Updates:" text a bit to the left */
.latest-updates-text {
    margin-right: 10px; /* Adjust space between text and icons */
}

/* Adjust topbar layout for small screens */
@media (max-width: 768px) {
    /* Topbar mobile improvements */
    .topbar-info, .topbar-social {
        text-align: center !important;
        padding: 5px 15px !important;
    }
    
    .topbar-info div {
        margin-bottom: 5px;
        display: block !important;
        text-align: center;
    }
    
    .topbar-social {
        padding-top: 0 !important;
        padding-bottom: 10px !important;
    }
    
    .navbar .navbar-brand h1 {
        font-size: 1.5rem; /* Adjust font size for mobile */
    }
    
    .navbar .navbar-toggler {
        margin-right: 10px;
    }
    
    /* Ensure proper padding for buttons */
    .btn-social {
        margin: 5px 2px;
        width: 30px;
        height: 30px;
    }
}


/* Mobile-specific styles start */
@media (max-width: 576px) {
    .text-light span, .text-light small {
        font-size: 14px;
    }
    
    .navbar .navbar-brand h1 {
        font-size: 1.2rem; /* Smaller font size for very small screens */
    }
    
    .latest-updates-text, .topbar-social small {
        font-size: 12px;
        margin-bottom: 5px;
        display: block;
    }
}
/* Mobile-specific styles end */


.join-tms-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* Ensures full height of the button is used */
    padding: 10px 20px; /* Adjust padding for better button sizing */
    text-align: center; /* Centers text horizontally */
}

/* Adjust button styles for mobile */
@media (max-width: 576px) {
    .join-tms-btn {
        padding: 8px 15px; /* Slightly smaller padding for mobile */
    }
}

/* Social Media Feed Section Styles */
.social-feeds-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: relative;
    overflow: hidden;
}

.social-feeds-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(76, 175, 80, 0.05), rgba(67, 160, 71, 0.03));
    z-index: 1;
}

.social-feeds-section .container {
    position: relative;
    z-index: 2;
}

.social-feed-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.social-feed-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(76, 175, 80, 0.2);
}

.social-feed-header {
    padding: 35px 30px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 2px solid #f8f9fa;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

.social-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.facebook-wrapper {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
    color: white;
}

.youtube-wrapper {
    background: linear-gradient(135deg, #ff0000, #ff4444);
    color: white;
}

.social-icon-wrapper:hover {
    transform: scale(1.1) rotate(10deg);
}

.icon-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.facebook-glow {
    background: radial-gradient(circle, rgba(24, 119, 242, 0.3), transparent);
}

.youtube-glow {
    background: radial-gradient(circle, rgba(255, 0, 0, 0.3), transparent);
}

.social-icon-wrapper:hover .icon-glow {
    opacity: 1;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.6; }
}

.social-text {
    flex: 1;
    text-align: left;
}

.social-text h3 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 8px;
}

.social-text p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
}

.social-feed-body {
    padding: 30px;
    flex-grow: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-content {
    width: 100%;
    height: 100%;
}

.social-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    justify-content: center;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

.feature-item i {
    font-size: 1.5rem;
    min-width: 30px;
}

.feature-item span {
    color: #495057;
    font-weight: 500;
    font-size: 0.95rem;
}

.social-feed-footer {
    padding: 25px 30px 35px;
    text-align: center;
    border-top: 2px solid #f8f9fa;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.btn-facebook {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.btn-facebook:hover {
    background: linear-gradient(135deg, #166fe5, #1976d2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
    color: white;
}

.btn-youtube {
    background: linear-gradient(135deg, #ff0000, #ff4444);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.btn-youtube:hover {
    background: linear-gradient(135deg, #e60000, #ff1744);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
    color: white;
}

.youtube-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
}

.youtube-stats {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 0, 0, 0.1);
}

.stat-item {
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 0, 0, 0.05);
    transform: translateY(-2px);
}

.stat-item h4 {
    font-weight: 700;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .social-feed-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 25px 20px;
    }
    
    .social-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .social-icon-wrapper i {
        font-size: 1.8rem;
    }
    
    .social-text {
        text-align: center;
    }
    
    .social-feed-body {
        padding: 20px;
    }
    
    .social-feed-footer {
        padding: 20px;
    }
    
    .social-features {
        gap: 15px;
    }
    
    .feature-item {
        padding: 12px 15px;
        gap: 12px;
    }
    
    .feature-item i {
        font-size: 1.3rem;
        min-width: 25px;
    }
    
    .feature-item span {
        font-size: 0.9rem;
    }
}

/* Footer Redesign */
.footer-section {
    position: relative;
    background-color: #0F4229;
    color: #fff;
}

.footer-top {
    padding: 80px 0 50px;
    position: relative;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget h4 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    color: #fff;
}

.footer-widget h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 50px;
    background-color: var(--primary);
}

.footer-contact-info {
    margin-top: 20px;
}

.footer-address, .footer-phone, .footer-email {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.footer-address span, .footer-phone span, .footer-email span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    margin-right: 15px;
    color: var(--primary);
}

.footer-address p, .footer-phone p, .footer-email p {
    margin-bottom: 0;
    line-height: 1.6;
}

.footer-email p a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-email p a:hover {
    color: var(--primary);
}

.footer-menu {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu li a {
    color: #fff;
    text-decoration: none;
    position: relative;
    transition: all 0.3s;
    display: inline-block;
    padding-left: 22px;
}

.footer-menu li a i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--primary);
    font-size: 14px;
    transition: all 0.3s;
}

.footer-menu li a:hover {
    color: var(--primary);
    padding-left: 28px;
}

.footer-menu li a:hover i {
    left: 6px;
}

.footer-newsletter p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-newsletter-action {
    margin-top: 20px;
}

.footer-social {
    margin-top: 30px;
}

.footer-social h5 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s;
}

.social-links a.facebook:hover {
    background-color: #3b5998;
}

.social-links a.youtube:hover {
    background-color: #FF0000;
}

.social-links a.whatsapp:hover {
    background-color: #25D366;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
}

.footer-bottom p {
    color: #fff;
    margin-bottom: 0;
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-bottom a:hover {
    color: #fff;
}

.footer-bottom span {
    color: var(--primary);
}

/* Responsive adjustments for footer */
@media (max-width: 991px) {
    .footer-top {
        padding: 60px 0 30px;
    }
    
    .footer-widget {
        margin-bottom: 40px;
    }
}

@media (max-width: 767px) {
    .social-feed-card {
        margin-bottom: 30px;
    }
    
    .footer-widget h4 {
        font-size: 22px;
    }
    
    .footer-bottom p {
        text-align: center;
    }
    
    .footer-bottom .text-md-end {
        text-align: center !important;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .footer-top {
        padding: 50px 0 20px;
    }
    
    .footer-widget h4 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .social-feed-header {
        flex-direction: column;
        text-align: center;
    }
}

/* Donation Section Styles */
.donation-qr-container {
    padding: 15px;
    border-radius: 10px;
    background-color: #f8f9fa;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.donation-qr-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.donation-qr {
    max-width: 200px;
    border-radius: 10px;
    padding: 10px;
    background-color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.bank-details {
    padding: 20px;
    border-radius: 10px;
    background-color: #f8f9fa;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.bank-details p {
    margin-bottom: 10px;
}

/* Responsive styles for donation section */
@media (max-width: 768px) {
    .bank-details {
        margin-top: 20px;
    }
}

/* Topbar styles */
.topbar-info small {
    font-size: 0.85rem;
}

.topbar-social .btn-social {
    margin-left: 5px;
}

/* Navbar styles */
.nav-logo {
    height: 60px;
    margin-right: 15px;
}

.join-tms-btn {
    margin-left: 15px;
    padding: 8px 20px;
}

.join-tms-btn-mobile {
    display: block;
    text-align: center;
}

/* Footer styles */
.footer-section {
    background-color: var(--dark);
    color: var(--light);
    margin-top: 3rem;
}

.footer-top {
    padding: 5rem 0 3rem;
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget h4 {
    color: var(--light);
    margin-bottom: 1.5rem;
    position: relative;
    font-weight: 600;
}

.footer-contact-info > div {
    display: flex;
    margin-bottom: 1.5rem;
}

.footer-contact-info span {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 1rem;
}

.footer-contact-info p {
    margin-bottom: 0;
    line-height: 1.6;
}

.footer-contact-info a {
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-contact-info a:hover {
    color: var(--primary);
}

.footer-menu {
    list-style: none;
    padding-left: 0;
}

.footer-menu li {
    margin-bottom: 0.8rem;
}

.footer-menu li a {
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s;
    display: block;
}

.footer-menu li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-menu li a i {
    margin-right: 5px;
    color: var(--primary);
    font-size: 0.8rem;
}

.footer-social h5 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}



/* Media queries for responsiveness */
@media (max-width: 991.98px) {
    .topbar-info, .topbar-social {
        text-align: center !important;
        padding: 5px 15px !important;
    }
    
    .footer-contact, .footer-links, .footer-newsletter {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .nav-logo {
        height: 50px;
    }
    
    .footer-widget h4 {
        margin-bottom: 1rem;
    }
    
    .footer-top {
        padding: 3rem 0 1rem;
    }
}

/* Mobile specific fixes for OnePlus Nord and similar devices */
@media (max-width: 480px) {
    /* Fix for the navbar brand text being cropped */
    .navbar .navbar-brand {
        max-width: 70%;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .navbar .navbar-brand h1 {
        font-size: 1rem;
        max-width: 100%;
        display: inline-block;
        white-space: nowrap;
        overflow: visible;
        text-overflow: unset;
        line-height: 1.2;
    }
    
    .nav-logo {
        height: 40px;
        margin-right: 8px;
        flex-shrink: 0;
    }
    
    /* Fix for Join TMS button alignment */
    .join-tms-btn-mobile {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 8px 15px;
        margin: 8px 15px;
    }
    
    .join-tms-btn-mobile strong {
        margin-right: 5px;
    }
    
    /* Fix for navbar toggler not working properly */
    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }
    
    .navbar-toggler {
        border: none;
        padding: 8px;
    }
    
    .navbar-toggler-icon {
        width: 1.25em;
        height: 1.25em;
    }
}

/* Extra small screens and specific OnePlus Nord resolution */
@media (max-width: 420px) {
    .navbar .navbar-brand {
        max-width: 75%;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .navbar .navbar-brand h1 {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: visible;
        text-overflow: unset;
        line-height: 1.2;
    }
    
    .nav-logo {
        height: 38px;
        margin-right: 6px;
        flex-shrink: 0;
    }
    
    /* Ensure collapsed navbar shows properly */
    .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto;
    }
}

/* Extremely small screens */
@media (max-width: 360px) {
    .navbar .navbar-brand {
        max-width: 72%;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .navbar .navbar-brand h1 {
        font-size: 0.8rem;
        white-space: nowrap;
        overflow: visible;
        text-overflow: unset;
        line-height: 1.2;
    }
    
    .nav-logo {
        height: 35px;
        margin-right: 5px;
        flex-shrink: 0;
    }
}

/* Fix for dropdown menu display on mobile */
.navbar-collapse {
    transition: all 0.3s ease;
    display: block;
    height: 0;
    overflow: hidden;
    visibility: hidden;
}

.navbar-collapse.show {
    height: auto;
    visibility: visible;
    overflow: visible;
}

/* Fix glitchy toggle animation */
.navbar-toggler {
    transition: none !important;
}

.navbar-toggler:focus, 
.navbar-toggler:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.navbar-toggler-icon {
    transition: none !important;
}

/* Home page specific fix for navbar toggle */
.navbar-nav .nav-link.active[href="index.html"] {
    color: var(--primary);
}

/* Special handling for home-toggler */
.home-toggler {
    z-index: 1050;
}

/* Ensure visibility for mobile screens */
@media (max-width: 991.98px) {
    #navbarCollapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        background-color: white;
        padding-bottom: 15px;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
    #navbarCollapse.show {
        display: block !important;
        height: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
        transition: all 0.3s ease !important;
    }
}

/* New Topbar Styles */
.bg-dark {
    background-color: #0F4229 !important;
}

.container-fluid.bg-dark {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.text-primary {
    color: #348E38 !important;
}

.btn-sm.btn-outline-light.rounded-circle {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    padding: 0;
}

.btn-sm.btn-outline-light.rounded-circle:hover {
    background-color: #348E38;
    border-color: #348E38;
}

/* New Navbar Styles */
.navbar {
    z-index: 1030;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.navbar.shadow {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.nav-logo {
    height: 60px;
    transition: all 0.3s ease;
}

.navbar-brand h1 {
    color: #0F4229 !important;
    font-weight: 700;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    padding: 1.5rem 0.75rem !important;
    color: #0F4229;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #348E38 !important;
}

.navbar-nav .nav-link.active {
    position: relative;
}

.navbar-nav .nav-link.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.75rem;
    right: 0.75rem;
    height: 3px;
    background-color: #348E38;
}

/* Fix for desktop navbar display issue */
@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }
    
    .navbar-nav {
        display: flex !important;
        flex-direction: row;
    }
    
    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
    }
    
    .navbar-expand-lg .navbar-nav {
        display: flex !important;
    }
    
    #navbarNav {
        display: flex !important;
        visibility: visible !important;
    }
}

.btn-primary {
    background-color: #348E38;
    border-color: #348E38;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background-color: #2a7a2e;
    border-color: #2a7a2e;
}

.navbar-nav .nav-item .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.navbar-nav .nav-item .btn-primary strong {
    margin-right: 5px;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        padding: 0.75rem 0.75rem !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .navbar-nav .nav-link.active:after {
        display: none;
    }
    
    .navbar-brand h1 {
        font-size: 1.5rem;
    }
    
    .nav-logo {
        height: 45px;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand h1 {
        font-size: 1.2rem;
    }
    
    .nav-logo {
        height: 40px;
    }
    
    .d-flex.text-start {
        flex-direction: column;
    }
    
    .d-inline-flex.align-items-center.me-4 {
        margin-bottom: 0.5rem;
    }
}

/* Ensure text color for brand is dark green */
.navbar-brand h1.m-0,
.navbar-brand h1.m-0.text-primary {
    color: #0F4229 !important;
}

/* ========== ENHANCED FEATURE CARDS STYLES ========== */
.feature-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(52, 142, 56, 0.1) !important;
    min-height: 180px;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 142, 56, 0.05), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(52, 142, 56, 0.15) !important;
    border-color: var(--primary) !important;
}

.feature-icon {
    width: 55px !important;
    height: 55px !important;
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%) !important;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    opacity: 0.1;
}

.feature-card:hover .feature-icon::before {
    width: 100%;
    height: 100%;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary) 0%, #2d5f3f 100%) !important;
    transform: scale(1.05);
}

.feature-card:hover .feature-icon i {
    color: white !important;
    transform: scale(1.1);
}

.feature-icon i {
    transition: all 0.4s ease;
    z-index: 2;
    position: relative;
}

.feature-content h5 {
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.feature-content p {
    transition: all 0.3s ease;
    line-height: 1.5;
}

.feature-card:hover .feature-content h5 {
    color: var(--primary) !important;
    transform: translateX(5px);
}

.feature-card:hover .feature-content p {
    color: var(--secondary) !important;
    transform: translateX(5px);
}

/* Responsive adjustments for feature cards */
@media (max-width: 991.98px) {
    .feature-card {
        min-height: 160px;
        margin-bottom: 1rem;
    }
    
    .feature-icon {
        width: 50px !important;
        height: 50px !important;
    }
    
    .feature-content h5 {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .feature-card {
        min-height: 140px;
        padding: 1rem !important;
    }
    
    .feature-icon {
        width: 45px !important;
        height: 45px !important;
        margin-right: 1rem !important;
    }
    
    .feature-content h5 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem !important;
    }
    
    .feature-content p {
        font-size: 0.85rem;
    }
}

/* Enhanced animation for the entire top-feature section */
.top-feature {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.top-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><defs><pattern id="dots" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="1" fill="rgba(52,142,56,0.05)"/></pattern></defs><rect width="60" height="60" fill="url(%23dots)"/></svg>') repeat;
    opacity: 0.3;
}

.top-feature .container {
    position: relative;
    z-index: 2;
}

/* Staggered animation enhancement */
.feature-card.wow.fadeIn {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

/* Simplified icon animation - no pulse effect *//* ===
======= ENHANCED JOIN TMS MODAL STYLES ========== */

/* Modal Backdrop */
.modal-backdrop {
    background-color: rgba(15, 66, 41, 0.8);
    backdrop-filter: blur(5px);
}

/* Modal Content */
.tms-modal-content {
    border-radius: 20px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    overflow: hidden;
    position: relative;
}

.tms-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #2d5f3f 50%, var(--primary) 100%);
}

/* Modal Header */
.tms-modal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1.5rem 1.5rem 0.75rem 1.5rem;
    position: relative;
}

.tms-modal-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, #2d5f3f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 6px 20px rgba(52, 142, 56, 0.25);
    position: relative;
    overflow: hidden;
}

.tms-modal-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

.tms-modal-icon i {
    font-size: 1.5rem;
    color: white;
    z-index: 2;
    position: relative;
}

.tms-modal-title {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.tms-modal-subtitle {
    font-size: 0.85rem;
    color: var(--secondary) !important;
}

.tms-btn-close {
    position: absolute !important;
    top: 0.75rem !important;
    right: 0.75rem !important;
    background: rgba(0, 0, 0, 0.05) !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
    z-index: 1050 !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    font-size: 1.5rem !important;
    font-weight: 300 !important;
    color: #6c757d !important;
    line-height: 1 !important;
    padding: 0 !important;
}

.tms-btn-close::before {
    display: none !important;
}

.tms-btn-close:hover {
    background: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
    transform: scale(1.05) !important;
    border-color: rgba(220, 53, 69, 0.2) !important;
}

.tms-btn-close:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
    outline: none !important;
}

/* Modal Body */
.tms-modal-body {
    background: white;
    border-radius: 0 0 20px 20px;
    padding: 1.5rem !important;
}

/* Form Styling */
.tms-form-group {
    position: relative;
}

.tms-form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    display: block;
}

.tms-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.tms-input-icon {
    position: absolute;
    left: 1rem;
    color: var(--primary);
    font-size: 1rem;
    z-index: 3;
    transition: all 0.3s ease;
}

.tms-form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: var(--dark);
}

.tms-form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(52, 142, 56, 0.15);
    background: white;
    transform: translateY(-1px);
}

.tms-form-control:focus + .tms-input-icon,
.tms-form-control:not(:placeholder-shown) + .tms-input-icon {
    color: var(--primary);
    transform: scale(1.1);
}

.tms-form-control::placeholder {
    color: #adb5bd;
    font-size: 0.9rem;
}

/* Submit Button */
.tms-submit-btn {
    background: linear-gradient(135deg, var(--primary) 0%, #2d5f3f 100%);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(52, 142, 56, 0.25);
}

.tms-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.tms-submit-btn:hover::before {
    left: 100%;
}

.tms-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 142, 56, 0.4);
    background: linear-gradient(135deg, #2d5f3f 0%, var(--primary) 100%);
}

.tms-submit-btn:active {
    transform: translateY(0);
}

.btn-text {
    position: relative;
    z-index: 2;
}

/* Responsive Design */
@media (max-width: 767.98px) {
    .modal-dialog {
        max-width: 95%;
        margin: 1rem auto;
    }
    
    .tms-modal-header {
        padding: 1.25rem 1.25rem 0.75rem 1.25rem;
    }
    
    .tms-modal-body {
        padding: 1.25rem !important;
    }
    
    .tms-modal-icon {
        width: 45px;
        height: 45px;
    }
    
    .tms-modal-icon i {
        font-size: 1.25rem;
    }
    
    .tms-modal-title {
        font-size: 1.1rem;
    }
    
    .tms-modal-subtitle {
        font-size: 0.8rem;
    }
    
    .tms-form-control {
        padding: 0.65rem 0.875rem 0.65rem 2.5rem;
        font-size: 0.85rem;
    }
    
    .tms-input-icon {
        left: 0.75rem;
        font-size: 0.85rem;
    }
    
    .tms-submit-btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Animation for modal appearance */
.modal.fade .modal-dialog {
    transform: scale(0.8) translateY(-50px);
    transition: all 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* Form validation states */
.tms-form-control:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
    background: #fff5f5;
}

.tms-form-control:valid:not(:placeholder-shown) {
    border-color: var(--primary);
    background: #f0f8f0;
}

/* Loading state for submit button */
.tms-submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.tms-submit-btn.loading .btn-text::after {
    content: '';
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}