/* Demo-Specific Styles for LaraNewsSun Match */

/* Section One */
.section-one {
    padding: 20px 0;
    background: #f5f5f5;
}

/* News List & Carousel */
.news-list {
    margin-bottom: 20px;
}

.news-active.owl-carousel .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5) !important;
    color: #fff !important;
    width: 40px;
    height: 40px;
    font-size: 24px;
    border-radius: 50%;
}

.news-active.owl-carousel .owl-nav button.owl-prev {
    left: 10px;
}

.news-active.owl-carousel .owl-nav button.owl-next {
    right: 10px;
}

.news_wrpp {
    position: relative;
}

.slide_image {
    position: relative;
}

.slide_image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.slide_title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 60px 20px 20px;
    margin: 0;
}

.slide_title a {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    text-decoration: none;
    display: block;
    line-height: 1.4;
}

.slide_title a:hover {
    color: #ffd700;
}

/* Recent Popular Tabs */
.recentPopular {
    background: #fff;
    border: 1px solid #e0e0e0;
    margin-bottom: 0;
}

.recentPopular .nav-pills {
    display: flex;
    margin: 0;
    background: #f8f8f8;
    border-bottom: 2px solid #d32f2f;
}

.recentPopular .nav-item {
    flex: 1;
    margin: 0;
}

.recentPopular .nav-link {
    background: transparent;
    color: #333;
    border: none;
    border-radius: 0;
    padding: 12px 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
}

.recentPopular .nav-link:hover {
    background: #e0e0e0;
}

.recentPopular .nav-link.active {
    background: #d32f2f;
    color: #fff;
}

/* Tab Content */
.tab-content {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
}

.news-tavs {
    padding: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.tab-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.tab-item:last-child {
    border-bottom: none;
}

.tab-image.tab-border {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tab-image.tab-border img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    flex-shrink: 0;
}

.tab_hadding {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
}

.tab_hadding a {
    color: #333;
    text-decoration: none;
    display: block;
}

.tab_hadding a:hover {
    color: #d32f2f;
}

/* Top Add Section */
.topAdd-section {
    margin: 20px 0;
}

.add-image {
    text-align: center;
    background: #f0f0f0;
    padding: 20px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-image img {
    max-width: 100%;
    height: auto;
}

/* Section One Content (Grid) */
.secOne-content {
    margin: 20px 0;
}

.themesBazar-3 {
    width: 33.333%;
    padding: 0 10px;
    margin-bottom: 20px;
}

.secOne-wrpp {
    background: #fff;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    height: 100%;
}

.secOne-image {
    position: relative;
    overflow: hidden;
}

.secOne-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.secOne-wrpp:hover .secOne-image img {
    transform: scale(1.1);
}

.secOne-title {
    padding: 12px;
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
}

.secOne-title a {
    color: #333;
    text-decoration: none;
    display: block;
}

.secOne-title a:hover {
    color: #d32f2f;
}

/* Section Two Padding (Category Sections) */
.secTwo-padding {
    margin: 20px 0;
}

/* ThemesBazar Cat */
.themesBazar_cat1 {
    background: #d32f2f;
    padding: 10px 15px;
    margin-bottom: 15px;
}

.themesBazar_cat1 a {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.themesBazar_cat1 i {
    margin-right: 8px;
}

/* Section One Wrpp2 (Category Items) */
.secOne-wrpp2 {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 15px;
}

.secOne-image2 {
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
}

.secOne-image2 img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.secOne-wrpp2:hover .secOne-image2 img {
    transform: scale(1.05);
}

.secOne-title2 {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.4;
}

.secOne-title2 a {
    color: #333;
    text-decoration: none;
}

.secOne-title2 a:hover {
    color: #d32f2f;
}

/* Section One Image3 (Small Items) */
.secOne-image3 {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.secOne-image3:last-of-type {
    border-bottom: none;
}

.secOne-image3 img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    flex-shrink: 0;
}

.secOne-title3 {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    flex: 1;
}

.secOne-title3 a {
    color: #333;
    text-decoration: none;
}

.secOne-title3 a:hover {
    color: #d32f2f;
}

/* More News Link */
.more_news {
    text-align: right;
    margin: 15px 0 0;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.more_news a {
    color: #d32f2f;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.more_news a:hover {
    color: #b71c1c;
}

.more_news i {
    margin-left: 5px;
}

/* Responsive Grid Fix */
@media (max-width: 768px) {
    .themesBazar-3 {
        width: 100%;
    }
}

/* Fix for col-md-4 */
.col-md-4 .secOne-wrpp2 {
    min-height: 400px;
}

/* Section Title Gallery */
.section-title-gallery {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #d32f2f;
}

.section-title-gallery h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.section-title-gallery span a {
    color: #d32f2f;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.section-title-gallery span a:hover {
    color: #b71c1c;
}

.section-title-gallery span i {
    margin-left: 5px;
}

/* Gallery Item */
.gallery-item {
    position: relative;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 5px;
    height: 250px;
}

.gallery-item a {
    display: block;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: #fff;
    padding: 40px 15px 15px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h5 {
    margin: 0;
    font-size: 16px;
    color: #fff;
    line-height: 1.4;
}

/* Video Gallery */
.video-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.video-item a {
    text-decoration: none;
}

.video-thumb {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-item:hover .video-thumb img {
    transform: scale(1.1);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    color: rgba(255,255,255,0.9);
    pointer-events: none;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.video-title {
    padding: 12px 15px;
    margin: 0;
    font-size: 14px;
    color: #333;
    background: #fff;
    line-height: 1.4;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.video-item:hover .video-title {
    color: #d32f2f;
}

