/*
Theme Name: ctgwatch24
Author:ctgwatch24
Description: Custom Newspaper Theme with Bootstrap 5
Version: 1.0
Text Domain: ctgwatch24
*/

@font-face {
    font-family: "Shurjo";
    font-display: swap;
    font-style: normal;
    font-weight: 400;
    src: url(fonts/ShurjoWeb_400-9c895a6dac9f8636b65e.woff2) format('woff2'),
         url(fonts/Shurjo-Regular_v3001-57e157d3a9f181e68ff7.ttf) format("truetype");
}
@font-face {
        font-family: "Shurjo";
        font-display: swap;
        font-style: normal;
        font-weight: 600;
        src: url(fonts/ShurjoWeb_600-4e35c3e8ff27a35d9c64.woff2) format('woff2'), 
             url(fonts/ShurjoSemiBold-SemiBold_v3001-c082e5b54e5cfbe3c917.ttf) format("truetype");
      }
@font-face {
        font-family: "Shurjo";
        font-display: swap;
        font-weight: 700;
        font-style: normal;
        src: url(fonts/ShurjoWeb_700-d599faf458ea810465db.woff2) format('woff2'),
             url(fonts/Shurjo-Bold_v3001-d5c814bf9f7ffaee21f5.ttf) format('truetype');
}
*{
     font-family: "Shurjo";
}
body {
 font-family: "Shurjo";
background-color: #fff;
}
.logo-area img{
	height: 100px;
    margin: 5px 0;
}
h2 {
    margin-bottom: 5px;
    line-height: 1.3;
    font-size: 16px;
}
a { text-decoration: none; color: inherit; }
/* --- Header Styles --- */
.top-header {
padding: 5px 0;
background: #fff;
border-bottom: 1px solid #ddd;
}
.logo-img {
max-height: 60px;
}
.search-box {
position: relative;
}
.search-box input {
border-radius: 20px;
padding-right: 35px;
}
.search-box i {
position: absolute;
right: 15px;
top: 50%;
transform: translateY(-50%);
color: #666;
}
.social-icons a {
color: #555;
font-size: 18px;
margin-left: 10px;
background: #e9ecef;
width: 35px;
height: 35px;
display: inline-flex;
justify-content: center;
align-items: center;
border-radius: 50%;
text-decoration: none;
transition: 0.3s;
}
.social-icons a:hover {
background: #dad6d6;
color: #fff;
}
.news-title-two{
font-size: 18px;
}
.artical-text p{
        font-size: 19px;
        text-align: justify;
}
.cat-main-headline h2{
        font-size: 24px;
    font-weight: 700;
}
/* --- Navbar Styles (Desktop Hover & Mobile Click) --- */
.navbar-dark-bg {
background-color: #343a40;
}
.navbar-nav .nav-link {
color: #fff !important;
padding: 12px 15px;
font-weight: 500;
}
.navbar-nav .nav-link:hover {
color: #ffc107 !important;
}
.sq-card{
    background: #eeeeee;
}
.figure-caption{
    font-size: 18px;
    text-align: center;
    border-bottom: 1px solid #eee;
}
/* Desktop Hover Logic */
@media all and (min-width: 992px) {
.navbar .nav-item .dropdown-menu { 
display: none; 
margin-top: 0;
border-radius: 0;
}
.navbar .nav-item:hover .dropdown-menu { 
display: block; 
}
.navbar .nav-item .dropdown-menu { 
margin-top: 0; 
}
}
.logo-desktop{
    height: 100px;
    width: auto;
}
/* --- News Section Styles --- */
.kf-tv-title{
    background: #022baf;
    text-align: center;
    color: #fff;
    font-size: 20px;
    padding: 5px;
}
.lifestyle-card h2{
font-size: 25px !important;
    padding: 5px;
    font-family: "Shurjo";
    font-weight: 700;
}
.main-news-wrapper img{
    height: 400px !important;
}
.main-news-wrapper {
position: relative; overflow: hidden; border-radius: 5px;
}
.main-news-caption {
position: absolute; bottom: 0; left: 0; width: 100%;
background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0));
padding: 20px; color: #fff;
}

/* Side List Item Style */
.top-news-title{
    font-size: 24px;
    text-align: center;
    font-weight: 700;
}
.side-news-item {
border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 15px;
    background: #eee;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 10px;
}
.side-news-item:hover a { color: #dc3545; }
.side-news-item:last-child { border-bottom: none; }

.side-news-img {
width: 120px; height: 70px; object-fit: cover;
border-radius: 4px; flex-shrink: 0; /* Prevents image from shrinking */
}

/* Typography for H2 Titles */
.news-title-link:hover h2 { color: #dc3545; }

/* Reset default H2 margins inside cards */
h2 { margin-bottom: 5px; line-height: 1.3; }

/* --- Lifestyle Section --- */
.section-header {
border-left: 5px solid #dc3545;
padding-left: 10px;
margin-bottom: 20px;
 font-family: "Shurjo";
}
.section-title {
font-size: 24px;
font-weight: 700;
color: #333;
 font-family: "Shurjo";
}
.lifestyle-card img {
width: 100%;
}

.lifestyle-main-title {
font-size: 22px;
font-weight: 700;
margin-top: 10px;
color: #333;
}
.lifestyle-excerpt {
color: #666;
font-size: 15px;
}
#top-news {
  margin-top: 10px;
}
/* Responsive Utilities */
@media (max-width: 768px) {
.logo-area { text-align: center; margin-bottom: 1px; }
.logo-area img {
  height: 50px;
  margin: 0;
}
.search-area { margin-bottom: 10px; }
.main-news-title { font-size: 18px; }
}

/* --- Tab Widget Styles --- */
.news-tab-widget {
background: #fff;
border: 1px solid #ddd;
margin-top: 10px;
}

/* Tab Headers */
.news-tab-nav .nav-link {
border-radius: 0;
background-color: #e0e0e0; /* Gray for inactive */
color: #555;
font-size: 18px;
 font-family: "Shurjo";
font-weight: 600;
padding: 10px 0;
transition: all 0.3s;
border-top: 4px solid transparent;
}

.news-tab-nav .nav-link i {
margin-right: 5px;
font-size: 16px;
}

/* Active Tab Style (White bg, Red top border) */
.news-tab-nav .nav-link.active {
background-color: #fff;
color: #000;
border-top: 4px solid #dc3545;
}

/* Scrollable Area */
.tab-scroll-content {
height: 400px; /* Fixed height for scroll */
overflow-y: auto;
padding: 0 10px;
}

/* Custom Scrollbar (Webkit) */
.tab-scroll-content::-webkit-scrollbar {
width: 6px;
}
.tab-scroll-content::-webkit-scrollbar-track {
background: #f1f1f1; 
}
.tab-scroll-content::-webkit-scrollbar-thumb {
background: #888; 
border-radius: 3px;
}
.tab-scroll-content::-webkit-scrollbar-thumb:hover {
background: #555; 
}

/* News Item Style */
.tab-news-item {
padding: 12px 0;
border-bottom: 1px solid #eee;
display: flex;
align-items: flex-start;
}
.tab-news-item:last-child {
border-bottom: none;
}
.tab-news-img {
width: 100px;
height: 60px;
object-fit: cover;
border-radius: 2px;
margin-right: 12px;
}
.tab-news-title {
font-size: 16px;
line-height: 1.3;
font-weight: 500;
margin: 0;
color: #000;
}
.tab-news-item:hover .tab-news-title {
color: #dc3545;
}



/* --- News Card Styles (Core Logic) --- */
.news-card {
display: flex; /* Mobile: Flex row (List view) */
align-items: flex-start;
margin-bottom: 20px;
gap: 15px;
}

.news-card-img {
width: 130px; /* Mobile: Fixed width */
height: 80px; /* Mobile: Fixed height */
object-fit: cover;
border-radius: 4px;
flex-shrink: 0;
}

.news-card-title {
font-size: 18px;
font-weight: 600;
line-height: 1.4;
color: #222;
margin: 0;
}

.news-card:hover .news-card-title {
color: #dc3545;

}
.news-card-title{
  font-size: 19px;  
}
/* --- Desktop View Customization --- */
@media (min-width: 768px) {
.news-card {
display: block; /* Desktop: Block (Grid view) */
}
.news-card-img {
width: 100%;
margin-bottom: 10px;
}
/* Specific Heights for Desktop Grid */
.img-lg { height: 160px; } /* Top row larger images */
.img-sm { height: 130px; } /* Bottom row smaller images */

.news-card-title {
font-size: 18px;
}
}
.side-news-item h2{
    font-size: 18px;
}
.top-news-title-list{
    font-size: 19px !important;
}
/* --- Sidebar Ad --- */
.sidebar-ad {
background: #ffc107;
text-align: center;
padding: 20px;
min-height: 275px;
display: flex;
align-items: center;
justify-content: center;
}


/* --- Small News Card (Left & Right) --- */
.small-news-card {
background-color: #f8f9fa; /* Light Gray Background */
border: 1px solid #e9ecef;
padding: 10px;
display: flex;
align-items: flex-start;
margin-bottom: 12px;
transition: 0.3s;
}
.small-news-card:hover {
background-color: #fff;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.small-news-card:hover h2 {
color: #dc3545;
}

.small-news-img {
width: 120px;
height: 70px;
object-fit: cover;
margin-right: 12px;
flex-shrink: 0;
}
.small-news-title {
font-size: 19px;
font-weight: 600;
line-height: 1.3;
margin: 0;
color: #222;
}

/* --- Featured News Card (Middle) --- */
.featured-news-card {
background-color: #f8f9fa;
border: 1px solid #e9ecef;
padding: 0;
margin-bottom: 20px;
height: 100%; /* Fill height */
}
.featured-news-img {
width: 100%;
height: auto;
object-fit: cover;
}
.featured-news-body {
padding: 15px;
}
.featured-news-title {
font-size: 22px;
font-weight: 700;
margin: 0;
color: #000;
}
.featured-news-card:hover .featured-news-title {
color: #dc3545;
}
.border-bottom-1{
border-bottom: 1px solid #ddd;
margin-bottom: 10px;
}


/* --- Tech Card Styles --- */
.tech-card {
display: flex; /* Mobile: Side by side (List View) */
gap: 15px;
align-items: flex-start;
margin-bottom: 20px;
transition: 0.3s;
}

.tech-img {
width: 130px; /* Mobile: Fixed thumbnail size */
height: 80px;
object-fit: cover;
border-radius: 4px;
flex-shrink: 0;
}

.tech-title {
font-size: 16px;
font-weight: 500;
line-height: 1.4;
color: #000;
margin: 0;
}

/* Hover Effect */
.tech-card:hover .tech-title {
color: #dc3545; /* Red on hover */
}

/* --- Desktop View Customization --- */
@media (min-width: 992px) {
.tech-card {
display: block; /* Desktop: Stacked (Grid View) */
margin-bottom: 0;
}
.tech-img {
width: 100%; /* Full width image */
height: 160px; /* Fixed height for uniformity */
margin-bottom: 12px;
}
.tech-title {
font-size: 18px; /* Slightly larger text on desktop */
font-weight: 600;
}
}

/* footer */
.footer-area {
background-color: #3d3d3d; /* Dark Gray Background */
color: #fff;
padding-top: 40px;
font-family: 'Shurjo', sans-serif;
border-top: 5px solid #dc3545; /* Top Red Border as per screenshot hint */
}

/* Logo Style */
.footer-logo h2 {
font-weight: 700;
font-size: 40px;
margin-bottom: 15px;
letter-spacing: -1px;
font-family: Shurjo; /* Serif font for logo feel */
}
.text-red { color: #dc3545; }
.text-gray { color: #6c757d; } /* Darker text for 'report' */

/* Social Icons */
.social-icons-footer a {
display: inline-flex;
width: 38px;
height: 38px;
background-color: #6c757d;
color: #fff;
border-radius: 50%;
justify-content: center;
align-items: center;
margin-right: 5px;
text-decoration: none;
transition: 0.3s;
font-size: 18px;
}
.social-icons-footer a:hover {
background-color: #dc3545;
}

/* Contact Info */
.publisher-name {
font-size: 20px;
font-weight: 700;
margin-bottom: 10px;
color: #fff;
}
.contact-info p {
margin-bottom: 6px;
font-size: 15px;
color: #e0e0e0;
display: flex;
align-items: flex-start;
gap: 10px;
}
.contact-info i {
margin-top: 5px;
color: #fff;
}

/* Right Side Links */
.footer-links a {
display: inline-block;
border: 1px solid #6c757d;
color: #fff;
padding: 5px 12px;
margin: 0 5px 10px 0;
text-decoration: none;
font-size: 14px;
transition: 0.3s;
}
.footer-links a:hover {
border-color: #fff;
background-color: #555;
}

/* Bottom Copyright Area */
.footer-bottom {
border-top: 1px solid #555;
padding: 15px 0;
margin-top: 30px;
font-size: 14px;
color: #ccc;
}

/* Responsive adjustments */
@media (max-width: 768px) {
.footer-area { text-align: center; }
.contact-info p { justify-content: center; }
.footer-links { margin-top: 20px; }
	.news-ticker {
    display: flex;
    align-items: center;
    border: 2px solid #c00;

    overflow: hidden;
    background: #fff;
	margin-top: 2px;
}
}

.news-ticker {
    display: flex;
    align-items: center;
    border: 2px solid #c00;

    overflow: hidden;
    background: #fff;
	margin-top: 10px;
}

/* Left Label */
.news-label {
    background: #c00;
    color: #fff;
    padding: 5px 25px;
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
}

/* Right Content */
.news-content {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-left: 20px;
}

.news-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: scroll 40s linear infinite;
}

.news-item {
    display: flex;
    align-items: center;
    margin-right: 40px;
    font-size: 16px;
    color: #000;
}

.news-item input {
    margin-right: 8px;
    accent-color: #c00;
}

/* Animation */
@keyframes scroll {

    /* প্রথম 5 সেকেন্ড অপেক্ষা */
    0% {
        transform: translateX(0);
    }

    11.11% {
        transform: translateX(0);
    }

    /* পরের 40 সেকেন্ডে scroll */
    100% {
        transform: translateX(-100%);
    }
}

/* Pause on hover */
.news-content:hover .news-track {
    animation-play-state: paused;
}

/* Responsive */
@media (max-width: 768px) {
    .news-label {
        font-size: 14px;
        padding: 8px 15px;
    }
    .news-item {
        font-size: 14px;
    }
    .main-news-wrapper img{
    height: 300px !important;
}
}
.news-track a {
    text-decoration: none;
    color: inherit;
    font-size: 16px;
}