/* Full width content */
.placement-content-area.full-width {
    width: calc(100% - 350px);
    margin-left: 0;
    max-width: 1200px;
    margin: 0px;
    padding: 20px;
}

/* Page Header Styles */
.page-header {
    background-color: var(--card-bg);
    border-bottom-left-radius: 7px !important;
    border-bottom-right-radius: 7px !important;
    overflow: hidden;
    padding: 15px !important;
    margin: 15px 15px 15px 15px;
    box-shadow: var(--shadow);
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0px;
}

.header-left {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
}

.page-icon {
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    flex-shrink: 0;
}

.page-info-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-icon img {
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.page-info h1 {
    font-size: 32px;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 600;
    margin: 15px 0 0 20px;
}

.page-info p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    max-width: 600px;
    margin: 5px 0 0 20px;
}

/* Page Title and Description */
.page-title {
    font-size: 28px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.page-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 800px;
    line-height: 1.5;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    background-color: var(--card-bg);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.filter-dropdowns {
    display: flex;
    gap: 15px;
}

.filter-dropdown {
    position: relative;
    display: inline-block;
}


.dropdown-item {
    padding: 10px 15px;
    cursor: pointer;
    color: var(--text-color);
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: rgba(133, 169, 71, 0.1);
}

.search-wrapper {
    display: flex;
    align-items: center;
    background-color: var(--input-bg);
    border-radius: 4px;
    overflow: hidden;
    width: 300px;
}

.problem-search {
    border: none;
    padding: 8px 15px;
    width: 100%;
    background-color: transparent;
    color: var(--text-color);
}


/* Tags Container */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 20px 0px;
}

.tag {
    background-color: rgba(133, 169, 71, 0.1);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tag i {
    cursor: pointer;
}

.clear-tags {
    color: var(--primary-color);
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
}

/* Problems Header */
.problems-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.problems-header h2 {
    font-size: 22px;
    color: var(--text-color);
}

.sort-dropdown {
    position: relative;
}

.solve-btn:hover {
    background-color: #9DC45F;
}

.problem-cards {

    max-width: 1200px !important;
}

/* Responsive Styles */
@media (max-width: 992px) {

    #mobileNavDropdown.active {
        display: block !important;
        max-height: none !important;
        height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

.filter-bar {
    flex-direction: column;
    gap: 15px;
}

.search-wrapper {
    width: 100%;
}

.placement-content-area {
    width: 100%;
    margin-left: 0;
}

.right-sidebar {
    width: 100%;
    position: static;
    height: auto;
}

.ad-container {
    flex-direction: row;
    flex-wrap: wrap;
}

.ad-box {
    flex: 1;
    min-width: 250px;
}



@media (max-width: 850px) {
    .filter-dropdowns {
        flex-wrap: wrap;
    }

    .placement-content-area.full-width {
        width: 100%;
    }

}

@media (max-width: 480px) {
    .header-content {
        align-items: center;
    }

    .page-info h1 {
        font-size: 20px;
    }

    .page-info p {
        font-size: 12px;
    }


}

/* Dark Theme Adjustments */
.dark-theme .problem-tag,
.dark-theme .tag {
    background-color: rgba(157, 196, 95, 0.2);
}

.dark-theme .dropdown-item:hover,
.dark-theme .sort-item:hover {
    background-color: rgba(157, 196, 95, 0.2);
}