/* OAB News Grid Styles */
.oab-news-grid-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #0a1929; /* Dark blue background */
}

/* Filters */
.oab-news-grid-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    width: 100%;
}

.oab-news-grid-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.oab-news-grid-filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.oab-news-grid-filter-select {
    width: 100%;
    padding: 12px 40px 12px 15px;
    font-size: 14px;
    color: #333333;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.oab-news-grid-filter-select:hover {
    border-color: #64b5f6;
}

.oab-news-grid-filter-select:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.oab-news-grid-filter-select option {
    padding: 10px;
}

.oab-news-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    position: relative;
    min-height: 200px;
}

.oab-news-grid-wrapper.oab-news-grid-loading {
    opacity: 0.6;
    pointer-events: none;
}

.oab-news-grid-wrapper.oab-news-grid-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: oab-news-grid-spin 0.8s linear infinite;
}

@keyframes oab-news-grid-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.oab-news-grid-no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #ffffff;
    font-size: 18px;
}

/* Grid Card */
.oab-news-grid-card {
    background-color: transparent;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.oab-news-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}


/* Card Image */
.oab-news-grid-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f5f5f5;
    position: relative;
    border-radius: 12px 12px 0 0;
}

.oab-news-grid-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
    min-width: 100%;
    min-height: 100%;
}

.oab-news-grid-card-image:hover img {
    transform: scale(1.05);
}

.oab-news-grid-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.oab-news-grid-placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    color: #999999;
    font-size: 14px;
}

/* Card Content */
.oab-news-grid-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    background-color: #0a1929;
    border-radius: 0 0 12px 12px;
}

.oab-news-grid-card-category {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.oab-news-grid-card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 15px 0;
    color: #ffffff;
    flex-grow: 0;
}

.oab-news-grid-card-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.oab-news-grid-card-title a:hover {
    color: #64b5f6;
}

.oab-news-grid-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.oab-news-grid-card-link {
    margin-top: 0;
    margin-bottom: 0;
}

.oab-news-grid-view-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 0;
}

.oab-news-grid-view-more:hover {
    color: #64b5f6;
}

.oab-news-grid-arrow {
    font-size: 14px;
    transition: transform 0.3s ease;
    margin-left: 2px;
}

.oab-news-grid-view-more:hover .oab-news-grid-arrow {
    transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .oab-news-grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .oab-news-grid-container {
        padding: 40px 15px;
    }
    
    .oab-news-grid-filters {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .oab-news-grid-filter-group {
        min-width: 100%;
    }
    
    .oab-news-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .oab-news-grid-card-image {
        height: 200px;
    }
    
    .oab-news-grid-card-content {
        padding: 20px;
    }
    
    .oab-news-grid-card-title {
        font-size: 18px;
    }
    
    .oab-news-grid-card-excerpt {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .oab-news-grid-container {
        padding: 30px 10px;
    }
    
    .oab-news-grid-card-content {
        padding: 15px;
    }
    
    .oab-news-grid-card-title {
        font-size: 16px;
    }
    
    .oab-news-grid-card-image {
        height: 180px;
    }
}

/* Custom grid columns */
.oab-news-grid-wrapper[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.oab-news-grid-wrapper[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .oab-news-grid-wrapper[data-columns="4"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .oab-news-grid-wrapper[data-columns="2"],
    .oab-news-grid-wrapper[data-columns="4"] {
        grid-template-columns: 1fr;
    }
}


/* SHAHID */


.elementor-element.elementor-element-3532b09.e-con-full.e-flex.e-con.e-child {
    padding: 0px !important;
}

.oab-news-grid-container {
    padding: 0px !important;
    background: none !important;
}

.oab-news-grid-card-content {
    background: none !important;
}

.oab-news-grid-card:hover {
    box-shadow: none !important;
    transform: none !important;
}

.oab-news-grid-card-image a {
    max-height: 260px !important;
}

.oab-news-grid-card-image img {
    max-height: 260px !important;
}

.oab-news-grid-card-image {
    border-radius: 16px !important;
}

.oab-news-grid-card-content {
    padding-top: 24px !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
}

.oab-news-grid-card-category {
    margin-bottom: 24px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}

h3.oab-news-grid-card-title {
    margin-bottom: 24px !important;
    font-size: 28px !important;
}

.oab-news-grid-card-excerpt {
    margin-bottom: 24px !important;
    font-size: 18px !important;
}

a.oab-news-grid-view-more {
    font-size: 14px !important;
}

