/*
Theme Name: Threepoint
Theme URI: http://example.com/threepoint
Author: Edwin Albert
Version: 1.0
*/

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html, body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: white;


    /* Hide horizontal scrollbar for Webkit browsers */
    ::-webkit-scrollbar {
        height: 0 !important;
        width: 8px;
    }

    ::-webkit-scrollbar-thumb:horizontal {
        background: transparent !important;
    }

    html, body {
        overflow-x: hidden;
        scrollbar-width: thin;
        scrollbar-color: #ccc #fff;
    }
}


.fade-in {
    opacity: 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 10px;
    color: #333;
}

.error-404 {
    padding: 100px 0;
}

a {
    text-decoration: none;
    color: #0073aa;
}

.error-404 .page-title {
    font-size: 48px;
    margin-bottom: 30px;
}

.error-404 .page-content {
    font-size: 18px;
    margin-bottom: 40px;
}

.error-404 .error-actions {
    margin-top: 30px;
}

.text-green {
    color: #90c53f;
}

.text-black {
    color: black !important;
}

.fw-400 {
    font-weight: 400;
}

.fw-600 {
    font-weight: 600;
}

.fw-700 {
    font-weight: 700;
}

.font-10 {
    font-size: 10px;
}

.font-12 {
    font-size: 12px;
}

.font-14 {
    font-size: 14px;
}

.font-16 {
    font-size: 16px;
}

.font-20 {
    font-size: 20px;
}

.font-32 {
    font-size: 32px;
}

.font-48 {
    font-size: 48px;
}

.font-56 {
    font-size: 56px;
}

.font-80 {
    font-size: 80px;
}

.lh-32 {
    line-height: 32px;
}

.lh-45 {
    line-height: 45px;
}

.lh-56 {
    line-height: 56px;
}

.lh-71 {
    line-height: 71px;
}

.news-article {
    margin-top: 50px;
    text-align: justify;
}

.text-justified {
    text-align: justify;
}

.news-article p {
    font-size: 16px !important;
    line-height: 32px !important;
}

.rounded-corners {
    border-radius: 1rem !important;
    overflow: hidden;
}

.rounded-corners-top {
    border-top-left-radius: 1rem !important;
    border-top-right-radius: 1rem !important;
    overflow: hidden;
}

.header-container {
    padding: 0 5.2vw;
}

.header-container-2 {
    padding: 1vh 5.6vw;
}

.bg-green {
    background-color: #FAFBF4;
}

.category {
    border: 1px solid #8cc63f;
    color: #8cc63f !important;
    border-radius: 1rem;
    padding: 0.25em 0.75em;
    background: transparent;
    font-weight: 500;
    display: inline-block;
}

.portfolio-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: #fff;
    width: 100%;
    max-width: 100vw;
    border-bottom: 1px solid #ccc;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

.portfolio-sticky-bar.stopped {
    position: absolute !important;
    left: 0;
    right: 0;
    width: 100%;
    bottom: 0;
    z-index: 1000;
}

.a-link-active {
    position: relative;
    font-weight: bold;
}

.a-link-active::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
}

.news-filters {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    /* border-bottom: 1px solid #eee; */
    padding-bottom: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
    /* Hide scrollbar in Firefox */
    scrollbar-width: none;
    /* Hide scrollbar in IE/Edge */
    -ms-overflow-style: none;
}

/* Hide scrollbar in Chrome/Safari */
.news-filters::-webkit-scrollbar {
    display: none;
}

.filters-list {
    display: flex;
    align-items: center;
    gap: 1rem;
    /* Prevent filter buttons from wrapping */
    white-space: nowrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    transition: color 0.3s;
    /* Prevent text from wrapping */
    white-space: nowrap;
}

.filter-btn.active {
    color: #000;
    font-weight: 500;
    border-bottom: 2px solid #8cc63f;
    /* Highlight active filter */
}

/* Mobile Styles */
@media (max-width: 991.98px) {

    .font-80 {
        font-size: 50px;
    }

    .news-meta-row {
        flex-direction: column !important;
    }

    .news-meta-row .post-date,
    .news-meta-row .share-buttons {
        width: 100% !important;
        text-align: left !important;
    }

    .news-meta-row .share-buttons {
        margin-top: 1rem !important;
        justify-content: flex-start !important;
    }

    .font-56 {
        font-size: 35px;
    }

    .font-48 {
        font-size: 30px;
    }

    .font-20 {
        font-size: 18px;
    }

    .font-14 {
        font-size: 12px;
    }

    .lh-71 {
        line-height: 60px;
    }

    .lh-56 {
        line-height: 42px;
    }

    .lh-45 {
        line-height: 30px;
    }

    .ps-sm--0 {
        padding-left: 0 !important;
        margin-left: -20px;
    }

    .ps-sm-1 {
        padding-left: 5px !important;
    }

    .hero-overlay .col-lg-8 {
        bottom: -170px !important;
    }

    .custom-container {
        padding: 0 25px;
    }

    .banner-image .img-fluid {
        width: 100%;
        height: auto;
        aspect-ratio: 0.8 / 1;
        object-fit: cover;
    }

    .mt-mobile-130 {
        margin-top: 130px !important;
    }
}

/* Desktop Styles */
@media (min-width: 992px) {
    .custom-container {
        padding: 0 7vw;
    }

    .article-container {
        padding: 0 10vw;
    }

    .banner-image .img-fluid {
        width: 100%;
        height: auto;
        aspect-ratio: 2.8 / 1;
        object-fit: cover;
        object-position: 0% 20%;
    }

    .footer-bottom-green {
        text-align: left
    }

    .mt-desktop-130 {
        margin-top: 130px !important;
    }

    .w-md-60 {
        width: 60%;
    }

    .mt-md-min-42 {
        margin-top: -2.35vw !important;
    }

    .border-left-md {
        border-left: 1px solid lightgrey;
    }
}

@media (max-height: 720px) {
    #hero-subtitle {
        bottom: -100px !important;
    }
}