/* Executive Board List (list-uvtw) Styles */

/* Main list-uvtw styles */
.list-uvtw .box-1 .box-content .story:first-child {
    width: 185px;
    margin-top: 20px;
}

.list-uvtw .box-1 .box-content .story:first-child .story__thumb {
    width: 108px;
    height: 133px;
}

.list-uvtw .box-1 .box-content .story:first-child .story__heading {
    align-items: center;
    flex-direction: column;
    font-size: 1.4rem;
    line-height: 2rem;
    font-weight: 600;
}

.list-uvtw .box-1 .box-content .story:first-child .story__heading a {
    margin-top: 0;
}

.list-uvtw .box-2 .result .item {
    height: auto;
}

.list-uvtw .box-2 .filter .input-selectbox input, 
.list-uvtw .box-2 .filter .input-selectbox select {
    width: 215px;
}

.list-uvtw .box-2 .filter .input-selectbox input:nth-child(4n), 
.list-uvtw .box-2 .filter .input-selectbox select:nth-child(4n) {
    margin-right: 15px;
}

.list-uvtw .box-2 .filter .input-selectbox input:nth-child(5n), 
.list-uvtw .box-2 .filter .input-selectbox select:nth-child(5n) {
    margin-right: 0;
}

/* No first person specific styles */
.list-uvtw .no-first-person .box-content .story:first-child {
    width: 185px;
    margin-top: 20px;
    position: relative;
    padding-bottom: 0;
}

.list-uvtw .no-first-person .box-content .story:first-child .story__thumb {
    width: 108px; 
    height: 133px;
}

.list-uvtw .no-first-person .box-content .story:first-child .story__heading {
    align-items: center; 
    flex-direction: column;
    font-size: 1.4rem; 
    line-height: 2rem; 
    font-weight: 600;
}

.list-uvtw .no-first-person.divTBT .box-content .story .story__thumb {
    width: 200px; 
    height: 250px;
}

.list-uvtw .no-first-person.divTBT .box-content .story {
    width: 220px;
}

/* Additional grid and layout styles */
#divUVTW hr {
    flex-basis: 100%; 
    height: 0; 
    margin: 0;
    border: 0;
}

.tbt-grid {
    width: 800px; 
    margin: auto;
}

.tbt-grid .story.is-first .story__heading {
    line-height: normal!important;
    margin-top: 10px;
    display: block;
    justify-content: center;
    font-weight: 400;
    text-align: left;
}

.tbt-grid .story.is-first .story__heading span {
    text-align: left;
}

.tbt-grid .story__heading a {
    color: #d20d25!important;
}

/* Box content styles */
.box-content .story {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.box-content .story:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.box-content .story.is-first {
    background-color: #f8f9fa;
    border: 2px solid #d20d25;
}

.story__thumb {
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 10px;
}

.story__thumb img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.story__heading {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.story__heading a {
    color: inherit;
    text-decoration: none;
}

.story__heading a:hover {
    color: #d20d25;
}

/* Filter styles */
.filter {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.check-box {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.radio:hover {
    background-color: rgba(210, 13, 37, 0.1);
}

.radio input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-radius: 3px;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s;
}

.radio input[type="checkbox"]:checked + .checkmark {
    background-color: #d20d25;
    border-color: #d20d25;
}

.radio input[type="checkbox"]:checked + .checkmark::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.radio .text {
    font-size: 14px;
    color: #333;
}

.input-selectbox {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.input-selectbox input,
.input-selectbox select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    min-width: 150px;
}

.input-selectbox input:focus,
.input-selectbox select:focus {
    outline: none;
    border-color: #d20d25;
    box-shadow: 0 0 0 2px rgba(210, 13, 37, 0.1);
}

/* Results grid */
.result {
    margin-top: 30px;
}

.text-count {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.text-count span {
    color: #d20d25;
}

.grid-result {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.grid-result .item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.grid-result .item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.grid-result .item .thumb {
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 4px;
}

.grid-result .item .thumb img {
    width: 65px;
    height: 80px;
    object-fit: cover;
}

.grid-result .item .text-1 {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.grid-result .item .text-1 a {
    color: #333;
    text-decoration: none;
}

.grid-result .item .text-1 a:hover {
    color: #d20d25;
}

.grid-result .item .text-2,
.grid-result .item .text-3,
.grid-result .item .text-4 {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    line-height: 1.4;
}

/* Navigation controls */
.directionbox {
    margin-top: 30px;
}

.control-direction {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.directioncontrol {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.directioncontrol:hover {
    background-color: #d20d25;
    color: white;
    border-color: #d20d25;
}

.directioncontrol i {
    font-size: 16px;
}

/* Responsive design */
@media (max-width: 768px) {
    .list-uvtw .box-2 .filter .input-selectbox input,
    .list-uvtw .box-2 .filter .input-selectbox select {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .check-box {
        flex-direction: column;
        gap: 10px;
    }
    
    .grid-result {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .list-uvtw .box-1 .box-content .story:first-child,
    .list-uvtw .no-first-person .box-content .story:first-child {
        width: 100%;
    }
    
    .list-uvtw .no-first-person.divTBT .box-content .story {
        width: 100%;
    }
}
.fa, .far, .fas{

    color: #d20d25;
}
/* Box headings */
.box-heading {
    background-color: #d20d25;
    color: white;
    padding: 15px 20px;
    /* margin-bottom: 20px; */
    /* border-radius: 5px; */
}

.box-heading a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
}

.box-heading a:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* DHD Heading styles */
.dhd-heading {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
}

.dhd-heading a {
    font-size: 28px;
    font-weight: 700;
    color: #d20d25;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dhd-heading a:hover {
    color: #b50d23;
}

/* Box content flex layout */
.box-content {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.box-content .story {
    flex: 0 0 auto;
    min-width: 150px;
    max-width: 220px;
}

/* Hide/show functionality */
.hidden {
    display: none;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #d20d25;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile filter toggle */
.filter-toggle {
    background-color: #d20d25;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.filter-toggle:hover {
    background-color: #b50d23;
}

.filter-toggle i {
    margin-right: 8px;
}

.filter.mobile-hidden {
    display: none;
}

.filter.show-mobile {
    display: block !important;
}

/* Enhanced mobile responsive styles */
@media (max-width: 768px) {
    .input-selectbox {
        flex-direction: column;
        align-items: stretch;
    }
    
    .input-selectbox input,
    .input-selectbox select {
        min-width: unset;
        width: 100%;
        margin-right: 0;
    }
    
    .dhd-heading a {
        font-size: 24px;
    }
    
    .box-heading {
        padding: 10px 15px;
        margin-bottom: 15px;
    }
    
    .box-heading a {
        font-size: 16px;
    }
    
    .control-direction {
        flex-direction: column;
        gap: 10px;
    }
    
    .directioncontrol {
        width: 100%;
        justify-content: center;
    }
}
