/* Case Study Cards Container */
#studies {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 16px 0;
    margin: 0;
}

/* Fix horizontal scroll without changing visual appearance */
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Custom column classes for 20/80 split */
@media (min-width: 768px) {
    .col-md-2-4 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    .col-md-9-6 {
        flex: 0 0 80%;
        max-width: 80%;
    }
}

/* Filters Section */
.filters-section {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 24px;
    margin-top: 0;
    margin-left: 0;
    position: sticky;
    top: 100px;
    transition: all 0.3s ease;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.filters-section h3 {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #153021;
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.filter-group {
    margin-bottom: 28px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #212529;
    margin-bottom: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    transition: all 0.2s ease;
}

.filter-header:hover {
    color: #153021;
}

.filter-icon {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.filter-header.collapsed .filter-icon {
    transform: rotate(-90deg);
}

.filter-options {
    max-height: 200px;
    overflow-y: auto;
    transition: max-height 0.3s ease;
}

.filter-options.collapsed {
    max-height: 0;
    overflow: hidden;
}

.filter-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background-color: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.filter-option:hover {
    background-color: #e9ecef;
    transform: translateX(3px);
}

.filter-option.active {
    background-color: #e8f5f2;
    border-left: 3px solid #153021;
}

.filter-option.active span {
    color: #153021;
    font-weight: 500;
}

/* System filter options - always use system tag colors */
.system-filter-group .filter-option {
    background-color: #E6F3FF !important;
    color: #3A6B9A !important;
    border-left: 3px solid transparent !important;
}

.system-filter-group .filter-option span {
    color: #3A6B9A !important;
    font-weight: 500 !important;
}

.system-filter-group .filter-option:hover {
    background-color: #D1E7FF !important;
    transform: translateX(3px);
}

/* Multi-select indicator for System filter */
.system-filter-group .filter-option.active {
    background-color: #E6F3FF !important;
    border-left: 3px solid #3A6B9A !important;
    position: relative;
}

.system-filter-group .filter-option.active::after {
    content: "✓";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #3A6B9A !important;
    font-weight: bold;
    font-size: 12px;
    z-index: 1;
}

/* Ensure text doesn't overlap with checkmark */
.system-filter-group .filter-option.active span {
    padding-right: 25px;
    color: #3A6B9A !important;
    font-weight: 500 !important;
}

/* Geography filter options - always use geography tag colors */
.geography-filter-group .filter-option {
    background-color: #E6FFE6 !important;
    color: #3A9A3A !important;
    border-left: 3px solid transparent !important;
}

.geography-filter-group .filter-option span {
    color: #3A9A3A !important;
    font-weight: 500 !important;
}

.geography-filter-group .filter-option:hover {
    background-color: #D1FFD1 !important;
    transform: translateX(3px);
}

/* Multi-select indicator for Geography filter */
.geography-filter-group .filter-option.active {
    background-color: #E6FFE6 !important;
    border-left: 3px solid #3A9A3A !important;
    position: relative;
}

.geography-filter-group .filter-option.active::after {
    content: "✓";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #3A9A3A !important;
    font-weight: bold;
    font-size: 12px;
    z-index: 1;
}

/* Ensure text doesn't overlap with checkmark */
.geography-filter-group .filter-option.active span {
    padding-right: 25px;
    color: #3A9A3A !important;
    font-weight: 500 !important;
}

/* Member Type filter options - always use member type tag colors */
.member-type-filter-group .filter-option {
    background-color: #E6E6FF !important;
    color: #3A3A9A !important;
    border-left: 3px solid transparent !important;
}

.member-type-filter-group .filter-option span {
    color: #3A3A9A !important;
    font-weight: 500 !important;
}

.member-type-filter-group .filter-option:hover {
    background-color: #D1D1FF !important;
    transform: translateX(3px);
}

/* Multi-select indicator for Member Type filter */
.member-type-filter-group .filter-option.active {
    background-color: #E6E6FF !important;
    border-left: 3px solid #3A3A9A !important;
    position: relative;
}

.member-type-filter-group .filter-option.active::after {
    content: "✓";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #3A3A9A !important;
    font-weight: bold;
    font-size: 12px;
    z-index: 1;
}

/* Ensure text doesn't overlap with checkmark */
.member-type-filter-group .filter-option.active span {
    padding-right: 25px;
    color: #3A3A9A !important;
    font-weight: 500 !important;
}

/* Case Study Type filter options - always use case study type tag colors */
.case-study-type-filter-group .filter-option {
    background-color: #FFF8DC !important;
    color: #B8860B !important;
    border-left: 3px solid transparent !important;
}

.case-study-type-filter-group .filter-option span {
    color: #B8860B !important;
    font-weight: 500 !important;
}

.case-study-type-filter-group .filter-option:hover {
    background-color: #FFF2C7 !important;
    transform: translateX(3px);
}

/* Multi-select indicator for Case Study Type filter */
.case-study-type-filter-group .filter-option.active {
    background-color: #FFF8DC !important;
    border-left: 3px solid #B8860B !important;
    position: relative;
}

.case-study-type-filter-group .filter-option.active::after {
    content: "✓";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #B8860B !important;
    font-weight: bold;
    font-size: 12px;
    z-index: 1;
}

/* Ensure text doesn't overlap with checkmark */
.case-study-type-filter-group .filter-option.active span {
    padding-right: 25px;
    color: #B8860B !important;
    font-weight: 500 !important;
}

/* Disclosure filter options - always use disclosure tag colors */
.disclosure-filter-group .filter-option {
    background-color: #FFE6E6 !important;
    color: #B85C5C !important;
    border-left: 3px solid transparent !important;
}

.disclosure-filter-group .filter-option span {
    color: #B85C5C !important;
    font-weight: 500 !important;
}

.disclosure-filter-group .filter-option:hover {
    background-color: #FFD1D1 !important;
    transform: translateX(3px);
}

/* Multi-select indicator for Disclosure filter */
.disclosure-filter-group .filter-option.active {
    background-color: #FFE6E6 !important;
    border-left: 3px solid #B85C5C !important;
    position: relative;
}

.disclosure-filter-group .filter-option.active::after {
    content: "✓";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #B85C5C !important;
    font-weight: bold;
    font-size: 12px;
    z-index: 1;
}

/* Ensure text doesn't overlap with checkmark */
.disclosure-filter-group .filter-option.active span {
    padding-right: 25px;
    color: #B85C5C !important;
    font-weight: 500 !important;
}

.filter-option span {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    color: #4A4A4A;
}

.filter-option .count {
    background-color: #e9ecef;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: #6D6D6D;
    font-weight: 500;
}

/* Case Study Card Styling */
.post-preview {
    width: 100%;
    text-align: left !important;
    padding: 18px 24px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    min-height: 200px;
    margin-bottom: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.post-preview:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
    border-left: 4px solid #153021;
}

.post-preview > a {
    text-decoration: none;
    color: #212529;
}

.post-preview > a:focus, 
.post-preview > a:hover {
    text-decoration: none;
    color: #153021;
}

.post-preview > a > .post-title {
    font-family: "Poppins", sans-serif !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

/* Make the entire box a link */
.post-preview-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    text-decoration: none;
    color: inherit;
}

/* Ensure tags and learn more button stay above the link */
.post-preview .bottom-section {
    position: relative;
    z-index: 2;
}

/* Style the arrow icon - small visual cue for clickability */
.post-preview .arrow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #153021;
    font-size: 14px;
    transition: all 0.2s ease;
    margin-left: 12px;
}

.post-preview .arrow-icon:hover {
    color: #0A1A12;
    transform: translateX(2px);
}

.title-date-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
}

.title-date-container a {
    text-decoration: none;
    color: #212529;
    flex: 1;
    margin-right: 16px;
}

.title-date-container a:hover {
    color: #153021;
}

.post-preview .post-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    font-size: 12px;
    color: #6D6D6D;
    margin-bottom: 13px;
}

.post-preview .author-info,
.post-preview .date-info {
    display: flex;
    align-items: center;
}

.post-preview .post-author {
    font-weight: 300;
    font-size: 12px;
    color: #4A4A4A;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.post-preview .post-date {
    font-weight: 300;
    font-size: 12px;
    color: #4A4A4A;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.post-preview .post-summary {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #606060;
    line-height: 1.5;
    margin-top: 0;
    margin-bottom: 12px;
}

.post-preview .tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-preview .tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.post-preview .tag-system {
    background-color: #E6F3FF;  /* Soft pastel blue */
    color: #3A6B9A;
}

.post-preview .tag-disclosure {
    background-color: #FFE6E6;  /* Soft pastel pink */
    color: #B85C5C;
}

.post-preview .tag-region {
    background-color: #E6FFE6;  /* Soft pastel green */
    color: #3A9A3A;
}

.post-preview .tag-case-study {
    background-color: #FFF8DC;  /* Soft pastel yellow */
    color: #B8860B;
}

.post-preview .tag:last-child {
    margin-right: 0;
}

/* Add a flex container for tags and learn more button */
.post-preview .bottom-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.post-preview .tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-preview .tags-container .tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-preview .tags-container .tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}


.post-preview .tags-container .tag-system {
    background-color: #E6F3FF !important;  /* Soft pastel blue */
    color: #3A6B9A !important;
}

.post-preview .tags-container .tag-disclosure {
    background-color: #FFE6E6 !important;  /* Soft pastel pink */
    color: #B85C5C !important;
}

.post-preview .tags-container .tag-region {
    background-color: #E6FFE6 !important;  /* Soft pastel green */
    color: #3A9A3A !important;
}

.post-preview .tags-container .tag-member-type {
    background-color: #E6E6FF !important;  /* Soft pastel purple */
    color: #3A3A9A !important;
}

/* Search Bar Styling */
.search-bar {
    width: 100% !important;
    max-width: 97% !important;
    margin: 0 0 20px 20px !important;
    border-radius: 12px !important;
    background-color: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    box-sizing: border-box !important;
}

.search-bar .input-group {
    position: relative;
    width: 100%;
    border-radius: 12px !important;
}

.search-bar .form-control {
    padding: 16px 16px 16px 60px !important;
    border: none !important;
    background-color: #fff !important;
    box-shadow: none !important;
    border-radius: 12px !important;
    position: relative !important;
    z-index: 1 !important;
}

.search-bar .form-control:focus {
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    background-color: #fff !important;
}

.search-bar .search-icon {
    position: absolute !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    background-image: url('/assets/img/search-icon.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    z-index: 3 !important;
    pointer-events: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.search-bar .btn {
    background-color: transparent !important;
    border: none !important;
    color: #666 !important;
    padding: 16px 24px !important;
}

.search-bar .btn:hover {
    color: #333 !important;
    background-color: transparent !important;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.loading-state i {
    font-size: 32px;
    color: #A8CEB8;
    margin-bottom: 16px;
}

.loading-state p {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #6D6D6D;
    margin: 0;
}

/* Load More Visual Cue */
#load-more-container, .load-more-container {
    text-align: center;
    margin: 15px 0 10px 0;
    padding: 5px 0;
}

.load-more-cue {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
}

.load-more-cue i,
.load-more-cue svg {
    font-size: 20px;
    color: #153021 !important;
    transition: all 0.3s ease;
    width: 20px;
    height: 20px;
}

.load-more-cue:hover i,
.load-more-cue:hover svg {
    transform: translateY(5px) !important;
    color: #0A1A12 !important;
    width: 22px !important;
    height: 22px !important;
}

.cue-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, #A8CEB8, transparent);
    flex: 1;
    max-width: 100px;
}

.cue-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #6D6D6D;
    white-space: nowrap;
}

/* Sticky Header */
#mainNav {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(5px) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
}

/* User Account Info */
#account-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: -30px !important;
} 