/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Baloo+Da+2:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Atma:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tiro+Bangla:ital@0;1&display=swap');

/* CSS Variables */
:root {
    --text-color: #0A1930;
    --text-size: 14px;
    --text-size-16: 16px;
    --title-font-family: 'Tiro Bangla', serif;
    --border-bottom: 1px solid rgba(0,0,0,.1);
    --section-heading-font-size: 20px;
    --primary-color: #e63946;
    --secondary-color: #2a9d8f;
    --text-muted: #6c757d;
    --border-light: #e5e5e5;
    --bg-light: #f8f9fa;
    --shadow-light: 0 2px 5px rgba(0,0,0,0.05);
    --shadow-medium: 0 5px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;


     --footer-bg: #1a1a1a;
            --footer-text: #e0e0e0;
            --footer-text-muted: #b8b8b8;
            --footer-heading: #ffffff;
            --primary1-color: #e63946;
            --primary1-hover: #d63447;
            --border-color: #333333;
            --card-bg: #252525;
            --input-bg: #2d2d2d;
            --shadow: 0 4px 20px rgba(0,0,0,0.15);
            --shadow-hover: 0 8px 30px rgba(0,0,0,0.25);
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

             --gradient-primary: linear-gradient(135deg, #e63946, #d63447);
            --gradient-secondary: linear-gradient(135deg, #2a9d8f, #238b7d);
}

/* Base Styles */
body {
    font-family: var(--title-font-family);
    background: #f5f5f5;
}

.desktop-hide {
    display: none;
}

/* Common Typography */
.f-heading,
.web-title,
.news-title,
.featured-big-title,
.featured-right-title,
.featured-news-title,
.news-list-title {
    font-family: var(--title-font-family);
    font-weight: 600;
}

.f-heading {
    font-size: 16px;
    font-weight: 500;
}

.web-title {
    font-size: 18px;
}

.featured-big-title {
    font-size: 20px;
    line-height: 27px;
}

.featured-right-title {
    font-size: 16px;
}

/* Common Card Styles */
.card {
    border: none;
    border-radius: 6px;
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* Common Image Styles */
.card-img-top,
.news-img,
.featured-news-img img,
.news-list-img img {
    width: 100%;
/*    height: 70px;*/
    object-fit: cover;
    transition: transform 0.3s;
}

.firstCategoryImage{
    height: 200px!important;
    width: 100%;
}

.news-list-img img{
    height: 70px;
}

.card:hover .card-img-top,
.news-card:hover .news-img,
.featured-news:hover .featured-news-img img,
.news-list-item:hover .news-list-img img {
    transform: scale(1.05);
}

/* HEADER STYLES */
.main-header {
    padding: 0px 0;
    border-bottom: 1px solid var(--border-light);
    background: #fff;
    padding-top:20px;
}

.date {
    font-size: var(--text-size);
    color: #555;
}

.temperature_text {
    display: inline-block;
    margin-top: 65px;
    font-size: 16px;
    font-weight: 500;
    color: #000;
}
.social_language{
    margin-top: 65px;
    font-size: 16px;
    font-weight: 500;
}

.logo img {
    max-height: 100px;
}

/*.header-social-icon a {
    display: inline-block;
    margin-left: 8px;
    font-size: var(--text-size);
    color: #444;
    transition: var(--transition);
}*/

.header-social-icon a {
    display: inline-block;
    margin-left: 8px;
    /* font-size: var(--text-size); */
    color: #444;
    transition: var(--transition);
    font-weight: 600;
    text-decoration: none;
}

.header-social-icon a:hover {
    color: var(--primary-color);
}

/* Navigation Styles */
.navbar {
    /* padding: 0; */
    /* border-top: 1px solid rgba(0,0,0,.2); */
    padding: 0px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid red;
}

.navbar-nav {
    width: 100%;
    justify-content: center;
}

.nav-item {
    position: relative;
    margin: 0 0px;
}

/*.nav-link {
    color: #333;
    font-weight: 500;
    padding: 10px 15px;
    font-size: 15px;
    transition: var(--transition);
}*/

.nav-link {
    color: #333;
    font-weight: 600;
    padding: 5px 15px 2px 15px;
    font-size: 16px;
    /* transition: var(--transition); */
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary-color);
}

.dropdown-menu {
    border-radius: 0;
    border: none;
    box-shadow: var(--shadow-medium);
    padding: 0;
}

.dropdown-item {
/*    padding: 8px 15px;*/
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
}

/*.dropdown-item:last-child {
    border-bottom: none;
}*/

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* Fixed Header */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: var(--shadow-medium);
    z-index: 1000;
    padding: 5px 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.fixed-header .navbar {
    /* padding: 0; */
    /* border-top: 1px solid rgba(0,0,0,.2); */
    padding: 0px 0;
    border-top: 0px solid rgba(0, 0, 0, 0.3);
    border-bottom: 0px solid red;
}

.fixed-header .nav-link {
    color: #333;
    font-weight: 600;
    padding: 5px 15px 2px 15px;
    font-size: 16px;
    /* transition: var(--transition); */
}

.fixed-header .dropdown-item {
/*    padding: 8px 15px;*/
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
}

.fixed-header.show {
    transform: translateY(0);
}

.fixed-header .logo img {
    max-height: 40px;
}

.fixed-header .nav-link {
    /* padding: 10px; */
    /* font-size: var(--text-size); */
    color: #333;
    font-weight: 600;
    padding: 5px 15px 2px 15px;
    padding-right: 15px;
    padding-left: 15px;
    font-size: 16px;
}

/* Search Styles */
.search-icon1 {
    cursor: pointer;
    font-size: 16px;
    border: none;
    width: 50px;
    height: 40px;
    line-height: 0px;
    border-radius: 5px;
/*    border: 1px solid rgba(0,0,0,.6);*/
    background: #fff;
}

.search-box {
    position: absolute;
    top: 100%;
    right: 6%;
    width: 300px;
    display: none;
    padding: 10px;
    background: white;
    box-shadow: var(--shadow-medium);
}

.search-box input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e0e0e0;
}


/*search box*/
.search {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon1 {
/*    background: linear-gradient(45deg, #4CAF50, #45a049);*/
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #000;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
/*    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);*/
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon1:hover {
    transform: scale(1.1) rotate(10deg);
/*    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);*/
}

.search-container-2 {
    display: none;
    position: absolute;
    top: 55px;
    right: 0;
    background: #fff;
    padding: 15px;
/*    border-radius: 12px;*/
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 350px;
    z-index: 1000;
    animation: slideDown 0.3s ease;
    border-top:2px solid red;
}

.search-container-2.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-form-2 {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    overflow: hidden;
}

.search-input-2 {
    flex: 1;
    border: 1px solid rgba(0,0,0,.4);
    padding: 12px 20px;
    font-size: 14px;
    outline: none;
    background: transparent;
    border-radius: 25px 0 0 25px;

}

.search-button-2 {
    background: linear-gradient(45deg, #9C27B0, #E91E63);
    border: none;
    padding: 12px 20px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0 25px 25px 0;
    min-width: 80px;
    background: #f44336;
}

.close-search {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f44336;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    color: white;
    font-size: 12px;
    cursor: pointer;
}
/*search box*/

/* FEATURED SECTION */
.featured-section {
    background-color: var(--bg-light);
    padding: 20px 0;
}

.featured-section .card {
    box-shadow: var(--shadow-light);
    border-radius: 0;
}

.featured-section .card-header {
    border-bottom: var(--border-bottom);
    font-weight: 600;
    background-color: #fff;
    margin: 0;
    padding: 8px 5px 3px 5px;
}

.featured-section .card-header h5 {
    font-size: var(--section-heading-font-size);
}

.featured-section .featured-news .card-img-top {
    height: 320px;
}

.featured-section .badge {
    font-weight: 500;
    padding: 5px 10px;
}

.featured-section .badge.rounded-circle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Equal Height Columns */
.featured-section .equal-height-row {
    display: flex;
    flex-wrap: wrap;
}

.featured-section .equal-height-column {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-section .equal-height-column .card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-section .equal-height-column .card-body {
    flex: 1;
}

.viral-board ul li img {
    width: 90px;
    height: 70px;
    margin-right: 10px;
}

/* CATEGORY SECTIONS */
.category-section,
.second-category-section {
    margin: 0px 0;
    padding: 20px 0;
/*    background-color: #fff;*/
}

.category-section{
    background: #f5f5f5;
}

/* Category Headers */
.category-header,
.second-category-section .section-header {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.category-header {
    border-bottom: 2px solid var(--primary-color);
}

.second-category-section .section-header {
    border-bottom: 2px solid;
/*    margin-bottom: 25px;*/
    background: linear-gradient(to right, black, red) bottom / 100% 1px no-repeat;
}

/* Category Titles */
/*.category-title {
    background-color: var(--primary-color);
    color: white;
    display: inline-block;
    padding: 5px 15px;
    margin: 0;
    font-weight: 600;
    font-size: 18px;
}*/

.category-title {
    /* background-color: var(--primary-color); */
    color: #000;
    display: inline-block;
    padding: 5px 15px 5px 0;
    margin: 0;
    font-weight: 600;
    font-size: 18px;
}
.blogo{
    height: 30px;
}

.second-category-section .section-title {
    display: inline-block;
    position: relative;
    font-weight: 700;
    font-size: 22px;
    color: #000;
    padding-bottom: 5px;
    margin-bottom: 0;
}

.second-category-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
/*    background-color: var(--secondary-color);*/
}

/* Category More Links */
.category-more,
.second-category-section .section-more {
    color: var(--text-muted);
    text-decoration: none;
    font-size: var(--text-size);
    transition: var(--transition);
}

.category-more:hover {
    color: var(--primary-color);
}

.second-category-section .section-more {
    position: absolute;
    right: 0;
    bottom: 10px;
}

.second-category-section .section-more:hover {
    color: var(--secondary-color);
}

/* News Cards */
.category-section .news-card,
.second-category-section .featured-news {
    height: 100%;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    border: var(--border-bottom);
    transition: var(--transition);
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.category-section .news-img-container,
.second-category-section .featured-news-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.second-category-section .featured-news-img {
    height: 250px;
}

/* Category Badges */
.category-section .news-category-badge,
.second-category-section .featured-news-category {
    position: absolute;
    left: 10px;
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 3px;
    z-index: 2;
    color: white;
}

.category-section .news-category-badge {
    bottom: 10px;
    background-color: rgba(230, 57, 70, 0.9);
}

.second-category-section .featured-news-category {
    top: 15px;
    background-color: var(--secondary-color);
}

/* News Body Content */
.category-section .news-body,
.second-category-section .featured-news-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.second-category-section .featured-news-content {
    padding: 15px 5px;
}

/* News Titles */
.category-section .news-title,
.second-category-section .featured-news-title {
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
    font-size: var(--text-size-16);
}

.second-category-section .featured-news-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.category-section .news-title a,
.second-category-section .featured-news-title a {
    color: #212529;
    text-decoration: none;
    transition: var(--transition);
}

.category-section .news-title a:hover {
    color: var(--primary-color);
}

.second-category-section .featured-news-title a:hover {
    color: var(--secondary-color);
}

/* News Meta */
.category-section .news-meta,
.second-category-section .featured-news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: auto;
}

.category-section .news-meta {
    border-top: 1px dotted #e9ecef;
    padding-top: 8px;
}

.category-section .news-time {
    display: flex;
    align-items: center;
}

.category-section .news-time i {
    margin-right: 5px;
    font-size: var(--text-size);
}

/* News List Items */
.second-category-section .news-list-item {
    display: flex;
    margin-bottom: 5px;
    padding: 5px;
    border: var(--border-bottom);
    transition: var(--transition);
}

.second-category-section .news-list-img {
    flex: 0 0 100px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 15px;
}

.second-category-section .news-list-content {
    flex: 1;
}

.second-category-section .news-list-category {
    display: inline-block;
    font-size: 11px;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.second-category-section .news-list-title {
    font-size: var(--text-size);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 5px;
    font-size: var(--text-size-16);
}

.second-category-section .news-list-title a {
    color: #212529;
    text-decoration: none;
    transition: var(--transition);
}

.second-category-section .news-list-title a:hover {
    color: var(--secondary-color);
}

.second-category-section .news-list-meta {
    font-size: 11px;
    color: var(--text-muted);
}

/* THIRD CATEGORY SECTION */
.third-category-section {
    padding: 40px 0;
    background: #f5f5f5;
}

.third-category-section .news-card {
    background: white;
/*    border-radius: 16px;*/
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
}

.third-category-section .news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* Section Header with Arrow */
/*.third-category-section .section-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    position: relative;
    overflow: hidden;
}*/

.third-category-section .section-header {
    background: linear-gradient(135deg, #f80606 10%, #000 100%);
    color: white;
    padding: 5px 10px;
    position: relative;
    overflow: hidden;
    /* background: #000; */
    /* background: linear-gradient(to right, black, red) bottom / 100% 1px no-repeat; */
}

.third-category-section .section-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.third-category-section .section-header::after {
    content: '';
    position: absolute;
    right: -30px;
    top: 0;
    width: 0;
    height: 0;
    border-left: 30px solid #764ba2;
    border-top: 32px solid transparent;
    border-bottom: 32px solid transparent;
}

.third-category-section .section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 2;
}

.third-category-section .section-more {
    color: white;
    text-decoration: none;
    font-size: var(--text-size);
    font-weight: 500;
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    transition: var(--transition);
}

.third-category-section .section-more:hover {
    color: #f0f0f0;
    transform: translateY(-50%) translateX(5px);
}

.third-category-section .section-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.third-category-section .section-more:hover i {
    transform: translateX(3px);
}

/* Featured News in Third Category */
.third-category-section .featured-news {
    position: relative;
    height: 280px;
    overflow: hidden;
/*    border-radius: 0 0 16px 16px;*/
}

.third-category-section .featured-news img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.third-category-section .featured-news:hover img {
    transform: scale(1.08);
}

.news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 50px 25px 25px;
    color: white;
}

.breaking-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(238, 90, 36, 0.4);
}

.featured-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* News List Section */
.news-list-section {
    padding: 0;
}

/*.news-list-section .news-list-item {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #f0f2f5;
    transition: var(--transition);
    position: relative;
}*/

.news-list-section .news-list-item {
    display: flex;
    align-items: center;
    padding: 10px 10px;
    border-bottom: 1px solid #f0f2f5;
    transition: var(--transition);
    position: relative;
}

.news-list-section .news-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.news-list-section .news-list-item:hover {
    background: linear-gradient(135deg, #f8f9ff, #f0f2ff);
    transform: translateX(8px);
}

.news-list-section .news-list-item:hover::before {
    transform: scaleY(1);
}

.news-list-section .news-list-item:last-child {
    border-bottom: none;
}

.news-list-section .news-list-img {
    width: 90px;
    height: 70px;
    border-radius: 0px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}

.news-list-section .news-list-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(102, 126, 234, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-list-section .news-list-item:hover .news-list-img::after {
    opacity: 1;
}

.news-list-section .news-list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-list-section .news-list-item:hover .news-list-img img {
    transform: scale(1.1);
}

.news-list-section .news-list-content {
    flex: 1;
}

.news-list-section .news-list-title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

/*.news-list-section .news-list-title a {
    color: #2d3748;
    text-decoration: none;
    transition: var(--transition);
    display: block;
}*/

.news-list-section .news-list-title a {
    color: #2d3748;
    text-decoration: none;
    transition: var(--transition);
    display: block;
    font-size: var(--text-size-16);
    font-weight: 600;
}

.news-list-section .news-list-title a:hover {
    color: #667eea;
    text-decoration: none;
}

.news-list-section .news-list-meta {
    font-size: 12px;
    color: #718096;
    margin-top: 8px;
    display: flex;
    align-items: center;
}

.news-list-section .news-list-meta i {
    margin-right: 5px;
    color: #a0aec0;
}

/* Header Container Styles */
.header-container .section-header {
    background: linear-gradient(135deg, #4a4a4a, #333333);
    color: white;
    padding: 12px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
}

.header-container .section-header::after {
    content: '';
    position: absolute;
    right: -25px;
    top: 0;
    width: 0;
    height: 0;
    border-left: 25px solid #333333;
    border-top: 24px solid transparent;
    border-bottom: 24px solid transparent;
}

.header-container .section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    padding-left: 20px;
    color: white;
}

.header-container .more-news {
    color: white;
    text-decoration: none;
    font-size: var(--text-size);
    padding-right: 20px;
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.header-container .more-news:hover {
    opacity: 0.8;
    color: white;
}

.header-container .arrow-icon {
    background: white;
    color: #333;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-left: 8px;
}

/* Header Variants */
.header-container .header-variant-1 {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

.header-container .header-variant-1::after {
    border-left-color: #34495e;
}

.header-container .header-variant-2 {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.header-container .header-variant-2::after {
    border-left-color: #2ecc71;
}

.header-container .header-variant-3 {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.header-container .header-variant-3::after {
    border-left-color: #c0392b;
}

/* Animations */
.news-card {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 300% 100%;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* RESPONSIVE DESIGN */
@media (max-width: 991.98px) {
    .mobile-hide {
        display: none;
    }
    
    .desktop-hide {
        display: block;
    }
    
    .mobile-menu {
        position: relative;
        position: sticky;
        border-bottom: 1px solid var(--border-light);
    }
    
    .menu-icon, .search-icon {
        font-size: 20px;
        color: #333;
        padding: 10px;
    }
    
    .logo-img {
        max-height: 60px;
    }
    
    .search-input {
        display: none;
        position: absolute;
        top: 100%;
    left: 2%;
    width: 96%;
        padding: 10px;
        background: var(--bg-light);
        border: none;
        border-top: 1px solid #e0e0e0;
        z-index: 999;
    }
    
    .offcanvas {
        width: 80%;
        max-width: 300px;
    }
    
    .offcanvas-title {
        font-weight: bold;
        color: var(--primary-color);
    }
    
    .offcanvas .nav-link {
        padding: 10px 5px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .offcanvas .collapse {
        background-color: #f9f9f9;
    }
}

@media (max-width: 767.98px) {
    .featured-section .col-md-3, 
    .featured-section .col-md-6 {
        margin-bottom: 20px;
    }
    
    .category-section .news-row {
        display: flex;
        flex-wrap: wrap;
    }
    
    .category-section .news-col {
        margin-bottom: 20px;
        display: flex;
    }
    
    .second-category-section .featured-news-img {
        height: 200px;
    }
    
    .second-category-section .section-title {
        font-size: 18px;
    }
    
    .third-category-section {
        padding: 20px 0;
    }
    
    .third-category-section .section-header {
        padding: 16px 20px;
    }
    
    .third-category-section .section-title {
        font-size: 20px;
    }
    
    .third-category-section .section-more {
        right: 20px;
        font-size: 13px;
    }
    
    .third-category-section .featured-news {
        height: 220px;
    }
    
    .featured-title {
        font-size: 16px;
    }
    
    .news-list-section .news-list-item {
        padding: 16px 20px;
    }
    
    .news-list-section .news-list-img {
        width: 80px;
        height: 60px;
        margin-right: 15px;
    }
    
    .news-list-section .news-list-title {
        font-size: var(--text-size);
    }
}

@media (max-width: 768px) {
    .header-container .section-header {
        padding: 10px 0;
    }
    
    .header-container .section-header::after {
        right: -20px;
        border-left-width: 20px;
        border-top-width: 20px;
        border-bottom-width: 20px;
    }
    
    .header-container .section-title {
        font-size: 16px;
        padding-left: 15px;
    }
    
    .header-container .more-news {
        font-size: 13px;
        padding-right: 15px;
    }
    
    .header-container .arrow-icon {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    .third-category-section .section-header::after {
        right: -25px;
        border-left-width: 25px;
        border-top-width: 27px;
        border-bottom-width: 27px;
    }
    
    .news-list-section .news-list-img {
        width: 70px;
        height: 55px;
    }
    
    .news-list-section .news-list-title {
        font-size: 13px;
    }
}

/* Responsive Grid */
@media (min-width: 768px) {
    .category-section .news-row {
        display: flex;
        flex-wrap: wrap;
    }
    
    .category-section .news-col {
        margin-bottom: 20px;
        display: flex;
    }
}


 /* Footer Styles */
        .footer {
            background: var(--footer-bg);
            color: var(--footer-text);
            position: relative;
        }

        /* Footer Top Border */
        .footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-color), #f39c12, var(--primary-color));
            background-size: 200% 100%;
            animation: gradientFlow 3s ease-in-out infinite;
        }

        @keyframes gradientFlow {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        /* Main Footer Section */
        .footer-main {
    padding: 30px 0px 10px 0px;
    position: relative;
}

        /* Column Styling */
        .footer-column {
            padding: 10px;
            height: 100%;
        }

        /* Logo Section */
        .logo-section {
            text-align: center;
            margin-bottom: 30px;
        }

        .footer-logo {
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            padding: 40px 20px;
            border-radius: 15px;
            box-shadow: var(--shadow);
            margin-bottom: 25px;
            position: relative;
            overflow: hidden;
            transition: var(--transition);
        }

        .footer-logo:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }

        .footer-logo::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: linear-gradient(45deg, var(--primary-color), #f39c12, var(--primary-color));
            border-radius: 17px;
            z-index: -1;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .footer-logo:hover::before {
            opacity: 1;
        }

        .footer-logo h2 {
            font-size: 32px;
            font-weight: 800;
            color: #1a1a1a;
            margin: 0;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
        }

        .logo-tagline {
            font-size: 14px;
            color: var(--footer-text-muted);
            font-style: italic;
            margin-top: 10px;
            text-align: center;
        }

        /* Social Media */
        .social-section {
            text-align: center;
        }

        .social-title {
    color: var(--footer-heading);
    font-size: 16px;
    font-weight: 600;
    /* margin-bottom: 20px; */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
}

        .social-links {
            display: flex;
            justify-content: center;
            gap: 15px;
            flex-wrap: wrap;
        }

        .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 12px;
    text-decoration: none;
    /* font-size: 20px; */
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

        .social-link::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
            transform: translateX(-100%);
            transition: transform 0.6s ease;
        }

        .social-link:hover::before {
            transform: translateX(100%);
        }

        .social-link.facebook {
            background: #1877f2;
            color: white;
            box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
        }

        .social-link.twitter {
            background: #1da1f2;
            color: white;
            box-shadow: 0 4px 15px rgba(29, 161, 242, 0.3);
        }

        .social-link.linkedin {
            background: #0077b5;
            color: white;
            box-shadow: 0 4px 15px rgba(0, 119, 181, 0.3);
        }

        .social-link.instagram {
            background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
            color: white;
            box-shadow: 0 4px 15px rgba(225, 48, 108, 0.3);
        }

        .social-link.youtube {
            background: #ff0000;
            color: white;
            box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
        }

        .social-link:hover {
            transform: translateY(-5px) scale(1.1);
            box-shadow: 0 8px 25px rgba(0,0,0,0.3);
        }

        /* Office Information */
        .office-section {
           /* background: var(--card-bg);
            border-radius: 15px;
            padding: 30px;
            box-shadow: var(--shadow);
            border: 1px solid var(--border-color);
            height: 100%;*/
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

       /* .office-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            transition: all 0.3s ease;
        }

        .office-section.usa::before {
            background: linear-gradient(90deg, #002868, #bf0a30);
        }

        .office-section.bangladesh::before {
            background: linear-gradient(90deg, #006a4e, #f42a41);
        }*/

        /*.office-section:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }*/

        .office-header {
    display: flex;
    align-items: center;
    /* margin-bottom: 25px; */
    padding: 5px;
    border-bottom: 1px solid var(--border-color);
}

        .office-flag {
            width: 45px;
            height: 45px;
            border-radius: 10px;
            margin-right: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.2);
        }

        .office-flag.usa {
            background: linear-gradient(135deg, #002868, #bf0a30);
            color: white;
        }

        .office-flag.bangladesh {
            background: linear-gradient(135deg, #006a4e, #f42a41);
            color: white;
        }

        .office-title {
            color: var(--footer-heading);
            font-size: 20px;
            font-weight: 700;
            margin: 0;
        }

        .contact-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .contact-item {
    display: flex;
    align-items: flex-start;
    /* margin-bottom: 20px; */
    padding: 5px;
    /* border-radius: 8px; */
    transition: var(--transition);
}
       /* .contact-item:hover {
            background: rgba(255,255,255,0.05);
            transform: translateX(5px);
        }*/

        .contact-icon {
            width: 30px;
            height: 30px;
            border-radius: 8px;
            background: linear-gradient(135deg, var(--primary1-color), var(--primary1-hover));
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            color: white;
            font-size: 14px;
            flex-shrink: 0;
            box-shadow: 0 3px 10px rgba(230, 57, 70, 0.3);
        }

        .contact-info {
            flex: 1;
        }

        .contact-label {
            color: var(--footer-text-muted);
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 2px;
            font-weight: 500;
        }

        .contact-value {
            color: var(--footer-text);
            font-size: 14px;
            line-height: 1.4;
        }

        .contact-value a {
            color: var(--footer-text);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .contact-value a:hover {
            color: var(--primary-color);
        }

        /* Newsletter Section */
        .newsletter-section {
            background: var(--card-bg);
            border-radius: 15px;
            padding: 30px;
            box-shadow: var(--shadow);
            border: 1px solid var(--border-color);
            height: 100%;
            transition: var(--transition);
            position: relative;
        }

        .newsletter-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, #f39c12, #e67e22);
        }

        .newsletter-section:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }

        .newsletter-header {
            text-align: center;
            margin-bottom: 25px;
        }

        .newsletter-icon {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(135deg, #f39c12, #e67e22);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 15px;
            color: white;
            font-size: 24px;
            box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
        }

        .newsletter-title {
            color: var(--footer-heading);
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .newsletter-subtitle {
            color: var(--footer-text-muted);
            font-size: 14px;
            line-height: 1.5;
        }

        .newsletter-form {
            margin-top: 20px;
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-control {
            background: var(--input-bg);
            border: 2px solid var(--border-color);
            border-radius: 10px;
            padding: 12px 15px;
            color: var(--footer-text);
            font-size: 14px;
            transition: var(--transition);
            width: 100%;
        }

        .form-control::placeholder {
            color: var(--footer-text-muted);
        }

        .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
            outline: none;
            background: #333333;
        }

        .newsletter-btn {
            background: linear-gradient(135deg, var(--primary1-color), var(--primary1-hover));
            border: none;
            padding: 12px 30px;
            border-radius: 10px;
            color: white;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            width: 100%;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
        }

        .newsletter-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
        }

        .newsletter-btn:active {
            transform: translateY(0);
        }

        /* Copyright Section */
        .footer-copyright {
    background: #111111;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    position: relative;
}

        .copyright-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }

        .copyright-text {
            color: var(--footer-text-muted);
            font-size: 14px;
            margin: 0;
            font-family: 'Inter', sans-serif;
        }

        .publisher-info {
            text-align: center;
            flex: 1;
        }

        .publisher-label {
            color: var(--footer-text-muted);
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 5px;
        }

        .publisher-name {
            color: var(--footer-heading);
            font-size: 16px;
            font-weight: 600;
            margin: 0;
        }

        .developer-info {
            text-align: right;
        }

        .developer-label {
            color: var(--footer-text-muted);
            font-size: 12px;
            margin-bottom: 5px;
        }

        .developer-name {
            color: var(--primary1-color);
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
            transition: color 0.3s ease;
        }

        .developer-name:hover {
            color: var(--primary-hover);
        }

        /* Responsive Design */
        @media (max-width: 992px) {
            .footer-main {
                padding: 40px 0;
            }
            
            .footer-column {
                margin-bottom: 30px;
            }
            
            .social-links {
                gap: 12px;
            }
            
            .social-link {
                width: 45px;
                height: 45px;
                font-size: 18px;
            }
        }

        @media (max-width: 768px) {
            .footer-logo h2 {
                font-size: 28px;
            }
            
            .office-section,
            .newsletter-section {
                padding: 0px 0px;
            }
            
            .copyright-content {
                flex-direction: column;
                text-align: center;
                gap: 15px;
            }
            
            .publisher-info {
                order: 2;
            }
            
            .developer-info {
                text-align: center;
                order: 3;
            }
        }

        @media (max-width: 576px) {
            .footer-main {
                padding: 30px 0;
            }
            
            .footer-logo {
                padding: 30px 15px;
            }
            
            .footer-logo h2 {
                font-size: 24px;
            }
            
            .social-link {
                width: 40px;
                height: 40px;
                font-size: 16px;
            }
            
            .office-header {
                /*flex-direction: column;
                text-align: center;*/
                gap: 10px;
            }
            
            .office-flag {
                margin-right: 0;
            }
        }

        /* Loading Animation */
        .footer-column {
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 0.8s ease forwards;
        }

        .footer-column:nth-child(1) { animation-delay: 0.1s; }
        .footer-column:nth-child(2) { animation-delay: 0.2s; }
        .footer-column:nth-child(3) { animation-delay: 0.3s; }
        .footer-column:nth-child(4) { animation-delay: 0.4s; }

        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }


      /*  gallery*/
      /* Gallery Item */

      /* Gallery Filter */
        .gallery-filter {
            text-align: center;
/*            margin-bottom: 50px;*/
            position: relative;
            z-index: 2;
        }

        .filter-buttons {
            display: inline-flex;
/*            background: white;*/
            border-radius: 50px;
            padding: 5px;
/*            box-shadow: var(--shadow-medium);*/
/*            border: 1px solid var(--border-color);*/
            flex-wrap: wrap;
            gap: 5px;
        }

        .filter-btn {
    background: transparent;
    border: none;
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    /* border: 1px solid rgba(0,0,0,.2); */
    border: 1px solid var(--border-color);
}

        .filter-btn::before {
            content: '';
            position: absolute;
            inset: 0;
            background: var(--gradient-primary);
            border-radius: 50px;
            opacity: 0;
            transform: scale(0.8);
            transition: all 0.3s ease;
        }

        .filter-btn span {
            position: relative;
            z-index: 2;
        }

        .filter-btn.active,
        .filter-btn:hover {
            color: white;
        }

        .filter-btn.active::before,
        .filter-btn:hover::before {
            opacity: 1;
            transform: scale(1);
        }

        .gallery-item {
            background: white;
            border-radius: 0px;
            overflow: hidden;
            box-shadow: var(--shadow-light);
            transition: var(--transition);
            position: relative;
            cursor: pointer;
        }

        .gallery-item:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-heavy);
        }

        .gallery-item.featured {
            grid-column: span 2;
            grid-row: span 2;
        }

        .gallery-image {
            position: relative;
            overflow: hidden;
            height: 250px;
        }

        .gallery-item.featured .gallery-image {
            height: 400px;
        }

        .gallery-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s ease;
        }

        .gallery-item:hover .gallery-image img {
            transform: scale(1.1);
        }

        /* Image Overlay */
        .image-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(
                135deg,
                rgba(0,0,0,0.1) 0%,
                rgba(0,0,0,0.3) 50%,
                rgba(0,0,0,0.7) 100%
            );
            opacity: 0;
            transition: opacity 0.4s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .gallery-item:hover .image-overlay {
            opacity: 1;
        }

        .overlay-content {
            text-align: center;
            color: white;
            transform: translateY(20px);
            transition: transform 0.4s ease;
        }

        .gallery-item:hover .overlay-content {
            transform: translateY(0);
        }

        .view-icon {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: rgba(255,255,255,0.2);
            backdrop-filter: blur(10px);
            border: 2px solid rgba(255,255,255,0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            margin: 0 auto 10px;
            transition: all 0.3s ease;
        }

        .gallery-item:hover .view-icon {
            background: var(--primary-color);
            border-color: var(--primary-color);
            transform: scale(1.1);
        }

        /* Gallery Content */
        .gallery-content {
            padding: 25px;
        }

        .gallery-category {
            background: var(--gradient-secondary);
            color: white;
            padding: 4px 12px;
            border-radius: 15px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: inline-block;
            margin-bottom: 12px;
        }

        .gallery-title {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 8px;
            line-height: 1.4;
        }

        .gallery-item.featured .gallery-title {
            font-size: 1.5rem;
        }

        .gallery-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: var(--text-light);
            font-size: 13px;
            margin-bottom: 15px;
        }

        .gallery-date {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .gallery-views {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .gallery-description {
            color: var(--text-light);
            font-size: 14px;
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .gallery-item.featured .gallery-description {
            -webkit-line-clamp: 4;
        }

        /* Gallery Actions */
        .gallery-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 25px 25px;
        }

        .share-btn {
            background: none;
            border: 1px solid var(--border-color);
            padding: 8px 15px;
            border-radius: 20px;
            color: var(--text-light);
            font-size: 12px;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .share-btn:hover {
            background: var(--primary-color);
            border-color: var(--primary-color);
            color: white;
            transform: translateY(-2px);
        }

        .like-btn {
            background: none;
            border: none;
            color: var(--text-light);
            font-size: 14px;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .like-btn:hover,
        .like-btn.active {
            color: var(--primary-color);
            transform: scale(1.1);
        }
      /*  gallery*/


      .breaking-news {
/*    background-color: #fff;*/
    /* color: #721c24; */
    border-bottom: 2px solid #000;
    border-radius: 0px;
    overflow: hidden;
    position: relative;
    padding: 3px 0px 0px 0px;
}

/* Wrapper to hold the slider */
.breaking-news .news-wrapper {
    overflow: hidden;
    flex: 1; /* Allow it to take up remaining space */
    position: relative;
    /*padding:10px 0px;*/
}

/* Slider container */
.breaking-news .news-slider {
    display: flex;
    gap: 50px; /* Space between news items */
    animation: slide-left 35s linear infinite; /* Smooth scrolling animation */
}

@media (max-width: 768px) {
    .breaking-news .news-slider {
        animation: slide-left 10s linear infinite; /* মোবাইলের জন্য দ্রুত স্লাইড */
    }
}

.breaking-news .news-item {
    white-space: nowrap;
    /* font-size: var(--news--title-font-size); */
    font-size: 16px;
    font-weight: 600;
}

/* Smooth scrolling animation */
@keyframes slide-left {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Pause animation on hover */
.breaking-news .news-slider:hover {
    animation-play-state: paused !important;
}

.three-column-add img{
    height: 200px;
    width:100%;
    object-fit: cover;
}

.double-add img{
    height: 200px;
    width:100%;
    object-fit: cover;
}


/* Breadcrumb */
.breadcrumb-section {
    background: var(--bg-light);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    font-size: 16px;
    font-weight: 500;
    font-family: var(--title-font-family);
}

.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--text-light);
    padding: 0 0.5rem;
}