:root {
    --nav-width-desktop: 300px;
    --nav-width-tablet: 40%;
    --nav-width-mobile: 80%;
    --primary-color: #5bc1ac;
    --primary-dark: #4aa892;
    --primary-light: #7cd4c1;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Lato', sans-serif;
}

/* Desktop Navigation */
#desktop-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--nav-width-desktop);
    height: 100vh;
    background-color: #5bc1ac;
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
}

#main-content {
    margin-left: var(--nav-width-desktop);
    transition: margin-left 0.3s ease;
}

/* Mobile Navigation */
#mobile-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--nav-width-mobile);
    height: 100vh;
    background-color: #5bc1ac;
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
}

#mobile-nav.open {
    transform: translateX(0);
}

#main-content.shifted {
    margin-left: var(--nav-width-mobile);
}

/* Tablet Navigation */
@media (min-width: 768px) and (max-width: 1200px) {
    #mobile-nav {
        width: var(--nav-width-tablet);
    }

    #main-content.shifted {
        margin-left: var(--nav-width-tablet);
    }
}

/* Mobile Navigation Toggle */
.navbar-toggler {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1200;
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Navigation Styling */
.nav-logo {
    padding: 20px;
    text-align: center;
    border-bottom: 0px solid #444;
}

.nav-logo img {
    max-width: 150px;
}

.top-social-icons {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px 0;
}

.top-social-icons a {
  height:40px;
  width: 40px;
  display: inline-block;
  text-align: center;
  color: #fff;
  display: inline;
  font-size: 30px !important;
  padding:5px;
}

.top-social-icons a:hover {
    color: #444;
}

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

.nav-menu li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 5px 10px;
    color: #fff;
    text-decoration: none;
    border-bottom: 0px solid #444;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-menu > li > a:hover {
    background-color: #444;

}

.nav-menu > li.active > a {
    background-color: #ffffff;
    color:#000000;
}

/* Submenu indicator for desktop */
.nav-menu > li.has-submenu > a::after {
    content: "\e64b";
    font-family: 'themify';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #222;
    display: none;
}

/* Show submenu on hover for desktop */
@media (min-width: 1201px) {
    .nav-menu > li.has-submenu:hover .sub-menu {
        display: block;
    }
}

/* Show submenu when active for mobile */
.nav-menu > li.active .sub-menu {
    display: block;
}

.sub-menu li a {
    display: block;
    padding: 5px 10px 5px 50px;
    color: #ddd;
    text-decoration: none;
    border-bottom: 1px solid #333;
    font-size: 14px;
    transition: all 0.3s;
}

.sub-menu li a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Trial */

.sub-menus {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #222;
    display: block;
}

.nav-menu > li .sub-menus {
    display: block;
}

.sub-menus li a {
    display: block;
    padding: 5px 10px 5px 50px;
    color: #ddd;
    text-decoration: none;
    border-bottom: 1px solid #333;
    font-size: 14px;
    transition: all 0.3s;
}

.sub-menus li a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Footer styling (centered, no float) */
.nav-footer {
  text-align: center;
  margin-top: auto; /* Ensures it stays at bottom */
  padding: 20px 10px;
  color: #fff;
  font-size: 12px;
  float: none; /* Remove float */
  flex-shrink: 0; /* Prevent footer from shrinking */
  font-weight: bolder;
}


#quote-section {
    background-color: #fff000;
    padding: 60px 0;
    text-align: center;
}

#quote-section .quote {
    font-size: 20px;
    font-style: italic;
    color: #000000;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: bold;
}
.libutton {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7px;
  text-align: center;
  outline: none;
  font-weight: bold;
  text-decoration: none !important;
  color: #ffffff !important;
  width: 200px;
  height: 24px;
  border-radius: 10px;
  background-color: #0A66C2;
  font-family: "SF Pro Text", Helvetica, sans-serif;
}
.author {
    display: block;
    margin-top: 15px;
    font-size: 25px;
    color: var(--primary-color);
    font-style: normal;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.preloader-logo img {
    max-width: 150px;
    margin-bottom: 30px;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #333;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.preloader-text {
    color: #fff;
    margin-bottom: 10px;
}

.preloader-progress {
    width: 200px;
    height: 6px;
    background-color: #333;
    border-radius: 3px;
    margin: 20px 0;
    overflow: hidden;
}

.preloader-progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.3s;
}

/* Hide/Show Navigation Based on Screen Size */
@media (min-width: 1201px) {
    #desktop-nav {
        display: block;
    }
    #mobile-nav, .navbar-toggler {
        display: none;
    }
}

@media (max-width: 1200px) {
    #desktop-nav {
        display: none;
    }
    #mobile-nav, .navbar-toggler {
        display: block;
    }
    #main-content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 120px 0 80px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section h4 {
        font-size: 1rem;
    }
}

.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.section-heading h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.section-heading p {
    font-size: 1.2rem;
    color: #ddd;
}

.highlight-box {
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 15px;
    background-color: rgba(91, 193, 172, 0.1);
    margin-top: 20px;
}

.owl-carousel .item {
    padding: 20px;
}

/* WhatsApp Icon Styling */
.whatsapp-icon {
    position: relative;
}

.whatsapp-icon::before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='white' d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}
/* Navigation Layout Fixes - Fixed Version */
#desktop-nav {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

#mobile-nav {
    display: flex;
    flex-direction: column;
    height: 100vh;
    transform: translateX(-100%); /* Keep hidden by default */
    transition: transform 0.3s ease; /* Keep transition */
}

#mobile-nav.open {
    transform: translateX(0); /* Show when open */
}

/* Menu should be scrollable */
.nav-menu {
    flex: 1;
    overflow-y: auto;
}
/* Keep existing mobile nav behavior */
@media (max-width: 1200px) {
    #desktop-nav {
        display: none;
    }
    #mobile-nav, .navbar-toggler {
        display: flex; /* Change to flex but keep hidden */
    }
    #main-content {
        margin-left: 0;
    }
}

@media (min-width: 1201px) {
    #desktop-nav {
        display: flex; /* Show on desktop */
    }
    #mobile-nav, .navbar-toggler {
        display: none; /* Hide on desktop */
    }
}
/* Active State Styling - Compatible with main.js navigation */
.nav-menu > li.active > a,
#fh5co-primary-menu > li.active > a,
#fh5co-mobile-menu ul li.active > a {
    background-color: #ffffff !important;
    color: #000000 !important;
    font-weight: bold;
}

/* Submenu active states */
.sub-menu li.active a,
.fh5co-sub-menu li.active a {
    background-color: var(--primary-color) !important;
    color: white !important;
    font-weight: bold;
}

/* Ensure submenus are visible when parent is active */
.nav-menu > li.has-submenu.active .sub-menu,
#fh5co-primary-menu > li.has-submenu.active .fh5co-sub-menu {
    display: block !important;
}

/* Mobile menu active states */
#mobile-nav .nav-menu > li.active > a,
#fh5co-mobile-menu ul li.active > a {
    background-color: #ffffff !important;
    color: #000000 !important;
}

#mobile-nav .has-submenu.active .sub-menu,
#fh5co-mobile-menu .has-submenu.active .fh5co-sub-menu {
    display: block !important;
}
