:root {
    --primary-color: #fc4c69;
    --secondary-color: rgb(245, 237, 222);
    --accent-color: #2c5282;
    --text-color: #2d3748;
    --border-color: #e2e8f0;
    --hover-color: #fff;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
}

.resources-hero {
    color: var(--text-dark);
    padding: 2rem 0 0 0;
    text-align: center;
}

@media (max-width: 768px) {
    .resources-hero {
        padding: 1rem 0 0 0;
    }
}

.resources-hero .container {
    display: grid;
    grid-template-columns: 44% 54%;
    grid-gap: 2%;
    margin-top: 32px;
    /* align-items: center; */
}

.resources-hero-text {
    text-align: left;
}

.company-name {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: inline-block;
    position: relative;
    padding-bottom: 8px;
}

.company-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.resources-hero img {
    max-width: 100%;
    /* margin: 32px 0 0; */
    padding: 0 0 0 6vw;
    height: auto;
}
.resources-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.resources-hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    opacity: 0.9;
}

.rep-details {
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
    margin-top: 2rem;
}

.rep-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color);
}

.rep-position {
    font-size: 0.9rem;
    color: #718096;
    margin-top: 0.25rem;
}

.categories-section {
    background: var(--secondary-color);
    margin: 0;
    padding: 40px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 305px);
    gap: 20px;
    justify-content: center;
    padding: 20px 0;
}

.category-card {
    background: white;
    border-radius: 12px;
    height: 205px;
    display: flex;
    flex-direction: column;
    align-items: start;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    overflow: hidden;
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    border-color: var(--primary-color);
}

.category-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: start;
    justify-content: start;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.category-icon i {
    background: white;
}

.category-card h3 {
    font-size: 1.25rem;
    text-align: start;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    background: white;
    transition: color 0.3s ease;
}

.category-card:hover h3 {
    color: var(--primary-color);
}

.category-card p {
    color: #718096;
    text-align: start;
    margin-bottom: 0;
    font-size: 0.95rem;
    background: white;
}

.popular-articles {
    padding: 4rem 0;
    background: white;
}

.article-link {
    display: block;
    padding: 1.5rem;
    border-radius: 12px;
    background: var(--secondary-color);
    margin-bottom: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-link:hover {
    transform: translateX(10px);
    background: var(--hover-color);
}

.article-link h5 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.article-link p {
    color: #718096;
    margin: 0;
    font-size: 0.95rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--text-color);
    text-align: center;
}

/* Article Pages */
.article-header {
    background: var(--secondary-color);
    text-align: left;
}

.article-header h1 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.article-header .breadcrumb {
    justify-content: flex-start;
}

.article-header .lead {
    color: black;
    font-size: 1.2rem;
}


.article-content {
    display: grid;
    justify-content: center;
    background: var(--secondary-color);
    padding: 0 4vw;
}

.article-content .container {
    /* max-width: 1320px; */
    display: grid;
    grid-template-rows: 2fr;
    grid-template-columns: 35% 65%;
    grid-gap: 2%;
    margin-left: 0;
    margin-right: 0;
    justify-self: center;
}

@media (max-width: 1000px) {
    .article-content .container {
        display: block;
        margin-bottom: 5rem;
    }

    .article-sidebar {
        display: none;
    }
}

/* .article-content .row {
    width: 100%;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
*/

.article-content .col-lg-7 {
    width: 100%;
    background: var(--secondary-color);
    border-radius: 12px;
    padding: 0 5vw 0 4vw;
}

.article-content .col-lg-3 {
    width: 100%;
    flex-shrink: 0;
    padding: 0 0 0 4vw;
}

/* .article-main {
    width: 56vw;
} */

.article-main p, .article-main strong, .article-main li,
.article-main span, .article-main b, .article-main a,
.article-main h2, .article-main h3, .article-main h4,
.article-main h5, .article-main h6, .article-main ul,
.article-main ol, .article-main em {
    background-color: #fff;
    color: var(--text-dark);
    margin-bottom: 0;
    font-family: 'Montserrat', sans-serif;
}

.article-main ol {
    padding-left: 0px;
    margin-left: 20px;
}

em {
    background-color: #fff;
}
.article-sidebar {
    position: sticky;
    top: 2rem;
    /* width: 24vw; */
    background: white;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.article-sidebar i {
    color: var(--primary-color);
    background-color: #fff;
}

.article-list,
.category-list {
    max-height: calc(50vh - 100px);
    overflow-y: auto;
    font-size: 0.875rem;
    padding-right: 0.5rem;
    background-color: #fff;
}

.article-list::-webkit-scrollbar,
.category-list::-webkit-scrollbar {
    width: 4px;
}

.article-list::-webkit-scrollbar-thumb,
.category-list::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 4px;
}

.article-list .list-group-item,
.category-list .list-group-item {
    border: none;
    border-left: 3px solid transparent;
    padding: 0.3rem 0.3rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.article-list .list-group-item:hover,
.category-list .list-group-item:hover {
    background-color: #fff;
    color: var(--primary-color);
}

.article-list .list-group-item.active,
.category-list .list-group-item.active {
    border-color: var(--primary-color);
    background-color: #fff;
    color: var(--primary-color);
    font-weight: 500;
}

.article-sidebar h4 {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    background-color: #fff;
    color: var(--text-color);
}

/* Mobile styles */
.mobile-sidebar-dropdown {
    display: none;
}

@media (max-width: 991px) {
    .article-content .container {
        flex-direction: column;
        padding: 0 1rem;
    }

    .article-content .col-lg-7 {
        width: 100%;
        padding: 1.5rem;
    }

    .article-content .col-lg-3 {
        width: 100%;
    }

    .mobile-sidebar-dropdown {
        display: block;
    }

    .article-sidebar {
        display: none;
    }
}

/* Responsive container padding */
/* @media (max-width: 1200px) {
    .help-header .container,
    .article-header .container,
    .article-content .container {
        padding-left: 4rem;
        padding-right: 4rem;
    }
} */

@media (max-width: 992px) {
    .help-header .container,
    .article-header .container,
    .article-content .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .article-main {
        width: 100%;
    }

    .article-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .resources-hero .container1 {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .resources-hero img {
        padding: 0;
    }
    
    
    .help-header .container,
    .article-header .container,
    .article-content .container,
    .categories-section .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        max-width: 100%;
    }

    .article-content .row {
        flex-direction: column;
        margin-left: 0;
        margin-right: 0;
    }

    .article-content .col-lg-7,
    .article-content .col-lg-3 {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0;
    }

    .category-card {
        width: 100%;
        margin: 0 -0.5rem;
        border-radius: 12px;
        box-shadow: none;
        border-bottom: 1px solid #eee;
    }

    .article-sidebar {
        position: relative;
        top: 0;
        margin-top: 2rem;
        padding: 0;
    }

    .article-list,
    .category-list {
        max-height: none;
        margin: 0 -0.5rem;
    }

    .article-list .list-group-item,
    .category-list .list-group-item {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .article-header h1 {
        font-size: 1.75rem;
    }

    .article-header .lead {
        font-size: 1rem;
    }

    .article-main {
        border-radius: 0;
        width: auto;
    }
}

@media (max-width: 576px) {
    .article-main {
        padding: 1rem;
        box-shadow: none;
    }

    .article-main h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .article-main .lead {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .article-main p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .article-main ul, 
    .article-main ol {
        font-size: 0.95rem;
        padding-left: 1.25rem;
    }

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

@media (max-width: 768px) {
    .help-header h1 {
        font-size: 2rem;
    }
    
    .search-container {
        margin: 1.5rem auto;
    }
    
    .category-card {
        margin-bottom: 1.5rem;
    }

    .article-header {
        padding: 2rem 0;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-sidebar {
        margin-bottom: 2rem;
        position: static;
    }
    
    .article-main {
        padding: 1.5rem;
    }
    
    .article-main h3 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .article-main .lead {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .article-featured-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .categories-grid {
        grid-template-columns: repeat(1, 350px);
    }
}

@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(2, 350px);
    }
}

@media (max-width: 640px) {
    .categories-grid {
        grid-template-columns: repeat(1, 350px);
    }
}

@media (max-width: 991px) {
    .article-sidebar {
        display: none;
    }
    
    .mobile-sidebar-dropdown.show + .article-content .article-sidebar {
        display: none !important;
    }

    .article-content .col-lg-7 {
        width: 100%;
        /* padding-left: 1.5rem;
        padding-right: 1.5rem; */
    }
    
    .article-main {
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .article-featured-image {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 992px) {
    .mobile-sidebar-dropdown {
        display: none;
    }
}


/* Specific tablet adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    /* .article-main {
        padding: 2rem;
        max-width: 90%;
        margin: 0 auto 2rem;
    } */
    
    .article-featured-image {
        margin: 2rem -1rem;
    }
    
    .article-featured-image img {
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* .article-content .col-lg-7 {
        padding-left: 2rem;
        padding-right: 2rem;
    } */
    
    /* Improve typography for better readability on tablets */
    .article-main p {
        font-size: 1.05rem;
        line-height: 1.7;
        margin-bottom: 1.2rem;
    }
}

/* Video Container Styles */
.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-container::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .video-container {
        max-width: 100%;
        margin: 1.5rem auto;
    }
}

@media (max-width: 576px) {
    .video-container {
        margin: 1rem auto;
        border-radius: 4px;
    }
}

/* Footer */
.footer {
    background-color: rgb(245, 237, 222); 
    color: black; 
    text-align: center; 
    display: flex;
    flex-direction: column; 
    align-items: center; 
    margin-bottom: 20px;
    padding: 20px;
}

.footer-links {
    background-color: rgb(245, 237, 222);
    display: grid; 
    grid-template-columns: auto 1fr 1fr 1fr; /* Responsive grid */
    gap: 20px; 
    padding: 0 20px; 
    justify-items: center; 
    align-items: start; /* Align items to the start vertically */
    max-width: 1200px; /* Set a max width for the grid */
    width: 100%; /* Ensure the grid takes the full width of its container */
}

.footer-column img {
    background-color: rgb(245, 237, 222);
    width: 100px;
}

.footer-column h4 {
    background-color: rgb(245, 237, 222);
    margin-bottom: 20px; /* Space below the headings */
    font-size: 1.2em; /* Font size for headings */
}

.footer-column ul {
    list-style: none; /* This removes the bullet points */
    padding-left: 0; /* This removes any default left padding */
}

.footer-column ul li {
    margin: 5px 0;
}

.footer-column a {
    background-color: rgb(245, 237, 222);
    color: black; /* Footer link color */
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #33010A; /* Hover color for links */
}

.footer p {
    background-color: rgb(245, 237, 222);
    margin-top: 50px;
    font-size: 0.8em; 
}

/* Footer Responsive Design */
@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: 1fr; /* Stack columns on small screens */
    }

    .cta1 h2 {
        font-size: 1.5rem;
        padding: 0 40px;
    }

    .footer-column img {
        background-color: rgb(245, 237, 222);
        width: 200px;
    }
}

/* Mobile Sidebar Dropdown */
.mobile-sidebar-dropdown {
    background: var(--secondary-color);
}

.mobile-sidebar-dropdown .btn {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-color: #e9ecef;
}

.mobile-sidebar-dropdown .btn:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

.mobile-sidebar-dropdown .card {
    border: 1px solid #e9ecef;
    margin-top: 0.5rem;
}

.mobile-sidebar-dropdown .list-group-item {
    border: none;
    border-bottom: 1px solid #f1f1f1;
    padding: 0.75rem 1rem;
}

.mobile-sidebar-dropdown .list-group-item:last-child {
    border-bottom: none;
}

.mobile-sidebar-dropdown .list-group-item.active {
    background: #f8f9fa;
    color: var(--primary-color);
    font-weight: 500;
    border-color: #f1f1f1;
}

@media (max-width: 768px) {
    .mobile-sidebar-dropdown {
        background-color: antiquewhite;
        justify-self: center;
        width: 100%;
    }
}

html {
    scroll-behavior: auto;
}

/* Breadcrumb styles */
.breadcrumb {
    --bs-breadcrumb-divider: ">";
}

.breadcrumb-item a {
    text-decoration: none;
    color: inherit;
}

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

.breadcrumb-item + .breadcrumb-item::before {
    content: var(--bs-breadcrumb-divider);
    font-weight: 500;
}