/* OAB News Carousel Styles */
.oab-news-carousel-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.oab-news-carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.oab-news-carousel-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 30px;
    padding: 20px 0;
    will-change: transform;
    margin: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.oab-news-card {
    width: calc(50% - 15px);
    min-width: calc(50% - 15px);
    max-width: calc(50% - 15px);
    flex-shrink: 0;
    background-color: #2c3e50;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    opacity: 1;
    position: relative;
    min-height: 280px;
    display: block;
    text-decoration: none;
    color: inherit;
}

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

.oab-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1;
    transition: background 0.3s ease;
}

/* Darker overlay for cards without background image */
.oab-news-card:not([style*="background-image"]) .oab-card-overlay {
    background: rgba(255, 255, 255, 0.95);
}

.oab-news-card:hover .oab-card-overlay {
    background: rgba(255, 255, 255, 0.98);
}

.oab-news-card:not([style*="background-image"]):hover .oab-card-overlay {
    background: rgba(255, 255, 255, 0.98);
}

.oab-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    height: 100%;
    min-height: 280px;
    padding: 30px;
}

.oab-card-text {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.oab-card-meta {
    margin-bottom: 12px;
}

.oab-date-author {
    font-size: 13px;
    color: #888888;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.oab-card-title {
    margin: 0 0 16px 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a237e;
    pointer-events: none;
}

.oab-card-excerpt {
    font-size: 15px;
    color: #333333;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.oab-card-footer {
    margin-top: auto;
}

.oab-reading-time {
    font-size: 13px;
    color: #888888;
    font-weight: 400;
}

/* Image is now background, so these styles are no longer needed */

.oab-carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding: 0;
}

.oab-carousel-progress {
    display: flex;
    align-items: center;
}

.oab-progress-bar {
    width: 156px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.oab-progress-fill {
    height: 100%;
    background-color: #1976d2;
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 0%;
}


.oab-carousel-buttons {
    display: flex;
    gap: 15px;
}

.oab-carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.oab-carousel-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.oab-carousel-btn:active {
    transform: scale(0.95);
}

.oab-carousel-btn:not(:disabled) {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.oab-carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.oab-carousel-btn svg {
    width: 24px;
    height: 24px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .oab-news-card {
        width: calc(50% - 15px);
        min-width: calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
    
    .oab-card-content {
        min-height: 250px;
    }
    
    .oab-card-text {
        padding: 25px;
    }
    
    .oab-card-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .oab-news-carousel-container {
        padding: 30px 15px;
    }
    
    .oab-news-card {
        min-width: 100%;
    }
    
    .oab-card-content {
        min-height: auto;
        padding: 20px;
    }
    
    .oab-card-text {
        padding: 0;
    }
    
    .oab-card-title {
        font-size: 18px;
    }
    
    .oab-card-excerpt {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .oab-news-carousel-container {
        padding: 20px 10px;
    }
    
    .oab-card-content {
        padding: 15px;
    }
    
    .oab-card-title {
        font-size: 16px;
    }
}


/* SHAID */
.oab-news-carousel-container {
    padding: 0px !important;
}

span.oab-date-author {
    font-size: 14px !important;
}

h3.oab-card-title {
    font-size: 18px !important;
    color: #000 !important;
    line-height: 150% !important;
}

.oab-card-excerpt {
    font-size: 16px !important;
    line-height: 24px !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 4 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.5 !important;
    max-height: calc(1.5em * 4) !important;
    word-break: break-word !important;
}

.oab-card-meta {
    margin-bottom: 4px !important;
}

.oab-card-content {
    min-height: auto !important;
}

.oab-card-text {
    padding-right: 24px !important;
}

div#oab-carousel-track {
    padding: 0px !important;
}

.oab-progress-bar {
    background: #fff !important;
    width: 100% !important;
}

.oab-progress-fill {
    background: #26AAE1 !important;
}

.oab-carousel-progress {
    border-radius: 999px !important;
    min-width: 200px !important;
}

.oab-carousel-btn:disabled {
    border: none !important;
    background: none !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

.oab-carousel-btn svg {
    width: 32px !important;
    height: 32px !important;
}

button.oab-carousel-btn.oab-carousel-prev {
    background: #ffffff !important;
    border: none !important;
    color: #000C24 !important;
}

button.oab-carousel-btn.oab-carousel-prev:hover {
    transform: none !important;
}

button.oab-carousel-btn.oab-carousel-next {
    background: #fff !important;
    border: none !important;
    color: #000C24 !important;
}

button.oab-carousel-btn.oab-carousel-next:hover {
    transform: none !important;
}

.oab-card-overlay {
    background: rgb(255 255 255 / 80%) !important;
}

    padding-right: 24px !important;
}

div#oab-carousel-track {
    padding: 0px;
}

.oab-progress-bar {
    background: #fff;
    width: 100%;
}

.oab-progress-fill {
    background: #26AAE1;
}

.oab-carousel-progress {
    border-radius: 999px;
    min-width: 200px;
}

.oab-carousel-btn:disabled {border: none !important;background: none !important;color: #ffffff !important;opacity: 1 !important;}

.oab-carousel-btn svg {
    width: 32px;
    height: 32px;
}

button.oab-carousel-btn.oab-carousel-prev {
    background: #ffffff;
    border: none;
    color: #000C24;
}
button.oab-carousel-btn.oab-carousel-prev:hover {
   transform:none;
}

button.oab-carousel-btn.oab-carousel-next {
    background: #fff;
    border: none;
    color: #000C24;
}

button.oab-carousel-btn.oab-carousel-next:hover {
   transform:none;
}


.oab-card-overlay {
    background: rgb(255 255 255 / 80%);
}
