/*
Theme Name: Jugantor Style - Modular News Theme
Theme URI: https://example.com/jugantor-style
Author: Theme Developer
Author URI: https://example.com
Description: Professional, modular WordPress newspaper theme inspired by Jugantor.com. Features dynamic section management, attractive layouts, SolaimanLipi font, and complete customization.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jugantor-style
Tags: news, magazine, modular, bangla, bengali, responsive, custom-sections
*/

/* Import Bangla Fonts */
@import url('https://fonts.maateen.me/solaiman-lipi/font.css');
@import url('https://fonts.maateen.me/kalpurush/font.css');

/* CSS Variables */
:root {
    --primary-red: #d32f2f;
    --secondary-blue: #1976d2;
    --dark-bg: #212121;
    --light-bg: #f5f5f5;
    --border-color: #e0e0e0;
    --text-dark: #212121;
    --text-light: #757575;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --font-bangla: 'SolaimanLipi', 'Kalpurush', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-bangla);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-red);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Section Spacing */
section {
    margin: 40px 0;
    padding: 20px 0;
}

.section-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-red);
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
    position: relative;
}

.section-title a {
    color: var(--text-dark);
}

.view-all {
    color: var(--primary-red);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.view-all:hover {
    text-decoration: underline;
}

/* Hero Slider */
.hero-slider-section {
    margin-bottom: 30px;
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 500px;
}

.slide-item {
    display: none;
    position: relative;
    height: 100%;
}

.slide-item.active {
    display: block;
}

.slide-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 40px;
    color: var(--white);
}

.slide-category {
    background: var(--primary-red);
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 10px;
    font-weight: bold;
}

.slide-title {
    font-size: 32px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.slide-title a {
    color: var(--white);
}

.slide-meta {
    font-size: 14px;
    opacity: 0.9;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    transition: var(--transition);
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(0,0,0,0.8);
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dots .dot.active {
    background: var(--white);
    width: 35px;
    border-radius: 6px;
}

/* Breaking News Ticker */
.breaking-news-ticker {
    background: var(--dark-bg);
    color: var(--white);
    padding: 12px 0;
    margin-bottom: 30px;
}

.ticker-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: hidden;
}

.ticker-label {
    background: var(--primary-red);
    padding: 6px 15px;
    font-weight: bold;
    white-space: nowrap;
    border-radius: 3px;
}

.ticker-content {
    display: flex;
    animation: ticker-scroll 40s linear infinite;
}

.ticker-content:hover {
    animation-play-state: paused;
}

.ticker-item {
    padding: 0 30px;
    white-space: nowrap;
    color: var(--white);
    border-right: 1px solid rgba(255,255,255,0.3);
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Featured Posts Grid */
.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.main-featured-post {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.main-featured-post:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.featured-content {
    padding: 25px;
}

.category-badge {
    background: var(--primary-red);
    color: var(--white);
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 12px;
}

.featured-title {
    font-size: 26px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.featured-excerpt {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.featured-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.featured-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-featured-post {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    gap: 15px;
    padding: 15px;
    transition: var(--transition);
}

.sidebar-featured-post:hover {
    box-shadow: var(--shadow-lg);
}

.small-featured-image {
    width: 120px;
    flex-shrink: 0;
}

.small-featured-image img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 5px;
}

.small-featured-title {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.small-featured-meta {
    font-size: 13px;
    color: var(--text-light);
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-family: var(--font-bangla);
    cursor: pointer;
    color: var(--text-light);
    font-weight: 500;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
}

.tab-btn:hover {
    color: var(--primary-red);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Content Wrapper */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

/* News Grid Layouts */
.news-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.grid-news-item {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.grid-news-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.grid-thumb {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.grid-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.grid-news-item:hover .grid-thumb img {
    transform: scale(1.1);
}

.grid-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-red);
    color: var(--white);
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 3px;
}

.grid-content {
    padding: 18px;
}

.grid-title {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 10px;
    font-weight: 600;
}

.grid-meta {
    font-size: 13px;
    color: var(--text-light);
}

/* Category Sections */
.category-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.main-post {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.main-post-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.main-post-content {
    padding: 20px;
}

.main-post-title {
    font-size: 22px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.main-post-excerpt {
    color: var(--text-light);
    margin-bottom: 12px;
}

.main-post-meta {
    font-size: 14px;
    color: var(--text-light);
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.list-post {
    background: var(--white);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    gap: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.list-post:hover {
    box-shadow: var(--shadow-lg);
}

.list-post-thumb {
    width: 100px;
    flex-shrink: 0;
}

.list-post-thumb img {
    width: 100%;
    height: 75px;
    object-fit: cover;
    border-radius: 5px;
}

.list-post-title {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.list-post-meta {
    font-size: 12px;
    color: var(--text-light);
}

/* 3 Column Grid */
.category-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-post-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.grid-post-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 15px;
}

.card-title {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.card-meta {
    font-size: 13px;
    color: var(--text-light);
}

/* 4 Column Grid */
.category-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.compact-post-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.compact-post-card:hover {
    box-shadow: var(--shadow-lg);
}

.compact-thumb img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.compact-content {
    padding: 12px;
}

.compact-title {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.compact-meta {
    font-size: 12px;
    color: var(--text-light);
}

/* Horizontal Layout */
.category-list-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.horizontal-post-card {
    background: var(--white);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    gap: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.horizontal-post-card:hover {
    box-shadow: var(--shadow-lg);
}

.horizontal-thumb {
    width: 200px;
    flex-shrink: 0;
}

.horizontal-thumb img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.horizontal-title {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.horizontal-excerpt {
    color: var(--text-light);
    margin-bottom: 10px;
}

.horizontal-meta {
    font-size: 14px;
    color: var(--text-light);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    box-shadow: var(--shadow-lg);
}

.gallery-image {
    position: relative;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 30px;
}

.gallery-caption {
    padding: 12px;
}

.gallery-caption h4 {
    font-size: 14px;
    line-height: 1.4;
}

/* Video Section */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.video-item {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.video-item:hover {
    box-shadow: var(--shadow-lg);
}

.video-thumbnail {
    position: relative;
}

.video-thumbnail img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(211, 47, 47, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    transition: var(--transition);
}

.video-item:hover .play-button {
    background: var(--primary-red);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 12px;
}

.video-info h4 {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.video-meta {
    font-size: 12px;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr 280px;
    }
    
    .news-grid-3,
    .category-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-grid-4,
    .gallery-grid,
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .featured-grid,
    .category-content-grid,
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .news-grid-3,
    .category-grid-3,
    .category-grid-4,
    .gallery-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .slider-container,
    .slide-image img {
        height: 300px;
    }
    
    .slide-title {
        font-size: 20px;
    }
    
    .horizontal-post-card {
        flex-direction: column;
    }
    
    .horizontal-thumb {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .breaking-news-ticker,
    .slider-prev,
    .slider-next,
    .slider-dots,
    .tab-navigation {
        display: none;
    }
}
