/* ===== Google Font Import - Poppins ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    transition: all 0.4s ease;;
}


/* ===== GLOBAL VARIABLE SYSTEM ===== */
:root {
    /* --- Base Colors (Palette) --- */
    --primary-color: #23AE62;
    --primary-rgb: 35, 174, 98;
    
    /* --- Light Mode Semantics --- */
    --bg-body: #F5F7FA;
    --bg-surface: #FFFFFF;
    --bg-sidebar: #ECEFF4;
    --bg-glass: rgba(255, 255, 255, 0.75);
    
    /* Text */
    --text-heading: #1B263B;
    --text-body: #1D3557;
    --text-inverse: #FFFFFF;
    
    /* Borders & Outlines */
    --border-subtle: rgba(27, 38, 59, 0.1);
    --border-medium: rgba(27, 38, 59, 0.2);
    --border-strong: rgba(27, 38, 59, 0.8);
    
    /* Functional Overlays */
    --overlay-hover: rgba(27, 38, 59, 0.1);
    --overlay-active: rgba(27, 38, 59, 0.05);

    /* Specific UI Elements Colors */
    --footer-bg: var(--bg-body);
    --footer-plus-bg: var(--bg-body);
    --faq-border: #010718;
    --footer-text-hover: #4fd68c;
    --progress-bar-bg: aliceblue;
    --certificate-bg: var(--bg-sidebar);
    
    /* Top Banner Specifics */
    --banner-bg: rgba(0, 255, 116, 0.015);
    --banner-type-box-bg: var(--bg-surface);

    /* Price Section Specifics */
    --price-card-bg: rgba(141, 252, 191, 0.05);
    --price-card-bg-hover: rgba(141, 252, 191, 0.12);

    /* Opacity Variations for Primary Color (rgba) */
    --primary-alpha-05: rgba(35, 174, 98, 0.05);
    --primary-alpha-10: rgba(35, 174, 98, 0.1);
    --primary-alpha-20: rgba(35, 174, 98, 0.2);
    --primary-alpha-30: rgba(35, 174, 98, 0.3);
    --primary-alpha-40: rgba(35, 174, 98, 0.4);
    --primary-alpha-50: rgba(35, 174, 98, 0.5);
    --primary-alpha-60: rgba(35, 174, 98, 0.6);
    --primary-alpha-65: rgba(35, 174, 98, 0.65);
    --primary-alpha-100: rgba(35, 174, 98, 1);

    /* White Variations */
    --white-alpha-05: rgba(255, 255, 255, 0.05);
    --white-alpha-125: rgba(255, 255, 255, 0.125);

    /* Spacing System */
    --gap-xs: 5px;
    --gap-sm: 10px;
    --gap-md: 15px;
    --gap-lg: 20px;
    --gap-xl: 25px;
    --gap-xxl: 30px;
    --gap-huge: 40px;
    
    --padding-xs: 5px;
    --padding-sm: 10px;
    --padding-md: 15px;
    --padding-lg: 20px;
    --padding-xl: 30px;
    --padding-container: 1.25rem;
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 30px;
    --radius-circle: 50%;
    
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    background-color: var(--bg-body);
}

body.dark {
    /* --- Dark Mode Semantics --- */
    --bg-body: #101622;
    --bg-surface: #0c111a;
    --bg-sidebar: #010718;
    --bg-glass: rgba(17, 25, 40, 0.67);
    
    /* Text */
    --text-heading: #23AE62; 
    --text-body: #8dfcbf;
    
    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.125);
    --border-medium: rgba(62, 240, 142, 0.15);
    --border-strong: rgba(62, 240, 142, 0.15);

    /* Top Banner Specifics */
    --banner-bg: rgba(0, 255, 116, 0.015);
    --banner-type-box-bg: rgba(12, 17, 26, 0.8);
    
    /* Functional Overlays */
    --overlay-hover: rgba(62, 240, 142, 0.1);
    --overlay-active: rgba(35, 174, 98, 0.05);

    /* Specific UI Overrides */
    --faq-border: #393838;
    --progress-bar-bg: #1e293b;

    --footer-bg: #111928;
    --footer-plus-bg: #090d15;
    --footer-text-hover: #4fd68c;
    --certificate-bg: #0c111a;
}

/* ===========================
   Navbar Specific Styles
   =========================== */

nav{
    position: fixed;
    top: 0;
    left: 0;
    height: 70px;
    width: 100%;
    background-color: var(--bg-surface);
    z-index: 100;
}

body.dark nav{
    border: 1px solid #393838; 
}

nav .nav-bar{
    position: relative;
    height: 100%;
    max-width: 1000px;
    width: 100%;
    background-color: var(--bg-surface);
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav .nav-bar .sidebarOpen{
    color: var(--text-heading);
    font-size: 25px;
    padding: var(--padding-xs);
    cursor: pointer;
    display: none;
}

nav .nav-bar .logo a{
    font-size: 25px;
    font-weight: 500;
    color: var(--text-heading);
    text-decoration: none;
}

.menu .logo-toggle{
    display: none;
}

.nav-bar .nav-links{
    display: flex;
    align-items: center;
}

.nav-bar .nav-links li{
    margin: 0 var(--gap-xs);
    list-style: none;
}

.nav-links li a{
    position: relative;
    font-size: 17px;
    font-weight: 400;
    color: var(--text-heading);
    text-decoration: none;
    padding: var(--padding-sm);
}

.nav-links li a::before{
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    height: 6px;
    width: 6px;
    border-radius: var(--radius-circle);
    background-color: var(--text-heading);
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-links li:hover a::before{
    opacity: 1;
}

.nav-bar .darkLight-searchBox{
    display: flex;
    align-items: center;
}

.darkLight-searchBox .dark-light,
.darkLight-searchBox .searchToggle{
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 var(--gap-xs);
}

.dark-light i,
.searchToggle i{
    position: absolute;
    color: var(--text-heading);
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-light i.sun{
    opacity: 0;
    pointer-events: none;
}

.dark-light.active i.sun{
    opacity: 1;
    pointer-events: auto;
}

.dark-light.active i.moon{
    opacity: 0;
    pointer-events: none;
}

.searchToggle i.cancel{
    opacity: 0;
    pointer-events: none;
}

.searchToggle.active i.cancel{
    opacity: 1;
    pointer-events: auto;
}

.searchToggle.active i.search{
    opacity: 0;
    pointer-events: none;
}

.searchBox{
    position: relative;
}

.searchBox .search-field{
    position: absolute;
    bottom: -85px;
    right: 5px;
    height: 50px;
    width: 300px;
    display: flex;
    align-items: center;
    background-color: var(--bg-surface);
    padding: 3px;
    border-radius: var(--radius-sm);
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.searchToggle.active ~ .search-field{
    bottom: -74px;
    opacity: 1;
    pointer-events: auto;
}

.search-field::before{
    content: '';
    position: absolute;
    right: 14px;
    top: -4px;
    height: 12px;
    width: 12px;
    background-color: var(--bg-surface);
    transform: rotate(-45deg);
    z-index: -1;
}

.search-field input{
    height: 100%;
    width: 100%;
    padding: 0 45px 0 15px;
    outline: none;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    color: var(--primary-color);
    background-color: var(--bg-surface);
}

body.dark .search-field input{
    color: var(--text-heading);
}

.search-field i{
    position: absolute;
    color: var(--bg-surface);
    right: 15px;
    font-size: 22px;
    cursor: pointer;
}

body.dark .search-field i{
    color: var(--text-heading);
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background-color: var(--bg-surface);
    border-radius: var(--radius-sm);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    max-height: 300px;
    overflow-y: auto;
    z-index: 101;
    display: none;
    box-sizing: border-box;
}

.search-results.active {
    display: block;
}

.search-results li {
    list-style: none;
    padding: var(--padding-sm) var(--padding-md);
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-heading);
    display: flex;
    flex-direction: column;
}

.search-results li:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.search-results li:last-child {
    border-bottom: none;
}

.search-results li .category {
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 2px;
}

.search-results li .title {
    font-size: 14px;
    font-weight: 500;
}


@media (max-width: 790px) {
    nav .nav-bar .sidebarOpen{
        display: block;
    }

    .menu{
        position: fixed;
        height: 100%;
        width: 320px;
        left: -100%;
        top: 0;
        padding: var(--padding-lg);
        background-color: var(--bg-sidebar);
        z-index: 100;
        transition: all 0.4s ease;
    }

    nav.active .menu{
        left: -0%;
    }

    nav.active .nav-bar .navLogo a{
        opacity: 0;
        transition: all 0.3s ease;
    }

    .menu .logo-toggle{
        display: block;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logo-toggle .siderbarClose{
        color: var(--text-heading);
        font-size: 24px;
        cursor: pointer;
    }

    .nav-bar .nav-links{
        flex-direction: column;
        padding-top: 30px;
    }

    .nav-links li a{
        display: block;
        margin-top: 20px;
    }
}
