html {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: auto;
    padding: 0rem 0.5rem;
    max-width: 1200px;
    /* background-color: #f4f4f4; */
    min-height: 100%;
    position: relative;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.full-width-header {
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0rem 0.5rem;
    background-color: #fff;
    position: relative;
}

.logo-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-title a {
    color: black;
    text-decoration: none;
    font-size: 20px;
}

.logo-title img {
    height: 65px;
}


.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

    .hamburger svg {
        width: 24px;
        height: 24px;
    }

.nav-links nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    padding: 0.5rem 0;
}

    .nav-links a:hover {
        color: #0066cc;
    }

.active {
    color: #0066cc !important;
    font-weight: 600 !important;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

    .dropdown button.More {
        background: none;
        border: none;
        cursor: pointer;
        color: #333;
        font-weight: 500;
        font-family: inherit;
        font-size: inherit;
        display: flex;
        align-items: center;
        gap: 0.25rem;
        padding: 0.5rem 0;
    }

        .dropdown button.More svg {
            width: 16px;
            height: 16px;
        }

    .dropdown ul {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #fff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        border-radius: 4px;
        list-style: none;
        min-width: 150px;
        padding: 0.5rem 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
        z-index: 100;
    }

    .dropdown:hover ul,
    .dropdown:focus-within ul {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown ul li a {
        display: block;
        padding: 0.5rem 1rem;
        color: #333;
        text-decoration: none;
    }

        .dropdown ul li a:hover {
            background-color: #f5f5f5;
            color: #0066cc;
        }

.page-wrapper {
    padding-bottom: 84px;
}
/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

    .theme-toggle svg {
        width: 20px;
        height: 20px;
    }

/* Search Container */
.search-container {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 0.25rem 0.5rem 0.25rem 1rem;
}

#searchBar {
    border: none;
    outline: none;
    background: transparent;
    min-width: 150px;
}

.search {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}

    .search svg {
        width: 18px;
        height: 18px;
    }

.mobile-only {
    display: none;
}

@media (max-width: 1024px) {
    .hamburger {
        display: block;
    }

    .searchForm {
        width: 100%;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        padding: 1rem 2rem;
        display: none;
        z-index: 99;
    }

        .nav-links.active {
            display: block;
        }

        .nav-links nav {
            flex-direction: column;
            align-items: flex-start;
            gap: 1rem;
        }

    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }

    .search-container {
        width: 100%;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    #searchBar {
        width: 100%;
    }
}


.footer-container {
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #e9ecef;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    margin-top: 30px;
}


.footer-links {
    display: flex;
    gap: 20px;
}

    .footer-links a {
        color: #495057;
        text-decoration: none;
        font-size: 14px;
        transition: color 0.3s ease;
    }

        .footer-links a:hover {
            color: #007bff;
        }

.footer-brand a {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
}

footer.site-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    display: flex;
    justify-content: center;
}

/* Responsive Styles */
@media (max-width: 768px) {

    .logo-title img {
        height: 55px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 15px 10px;
    }

    .footer-links {
        flex-direction: row;
        gap: 8px;
    }

    .footer-container {
        margin-top: 0;
    }
}

@media (max-width: 480px) {

    .full-width-header{
        box-shadow:none;
    }

    header{
        padding:0px;
    }

    .logo-title img {
        height: 50px;
    }

    .footer-links a,
    .footer-brand a {
        font-size: 12px;
    }

    .footer-container{
        margin-top:0;
    }

}

.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

    .dark-mode .full-width-header {
        background-color: #1e1e1e;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    }

    .dark-mode .nav-links nav a {
        color: #e0e0e0;
    }

        .dark-mode .nav-links nav a:hover {
            color: #4dabf7;
        }

    .dark-mode .active-link {
        color: #4dabf7 !important;
    }

    .dark-mode .search-container {
        border-color: #444;
    }

    .dark-mode #searchBar {
        background-color: #2d2d2d;
        color: #e0e0e0;
    }

        .dark-mode #searchBar::placeholder {
            color: #999;
        }

    .dark-mode .dropdown ul {
        background-color: #2d2d2d;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }

        .dark-mode .dropdown ul li a {
            color: #e0e0e0;
        }

            .dark-mode .dropdown ul li a:hover {
                background-color: #3d3d3d;
            }

    .dark-mode .nav-links.active {
        display: block;
        background-color: #3d3d3d;
    }

    .dark-mode .footer-container {
        background-color: #1e1e1e;
        border-top: 1px solid #333;
    }

    .dark-mode .footer-links a,
    .dark-mode .footer-brand a {
        color: #b0b0b0;
    }

        .dark-mode .footer-links a:hover,
        .dark-mode .footer-brand a:hover {
            color: #4dabf7;
        }

    .dark-mode .More svg {
        fill: #e0e0e0;
    }

    /* Hamburger Menu Lines */
    .dark-mode .hamburger svg line {
        stroke: #e0e0e0;
    }

    .dark-mode .dropdown button.More {
        color: #fff;
    }

    .dark-mode .theme-toggle svg {
        fill: #fff;
    }

    .dark-mode .search svg {
        fill: #fff;
    }

.threelinedot {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.5em;
    cursor: pointer;
    transition: max-height 0.3s ease;
}

    /* When expanded, remove clamping */
    .threelinedot.expanded {
        -webkit-line-clamp: unset;
        max-height: none;
        overflow: visible;
    }
