/* ==========================================
   Business Source - News Magazine Stylesheet
   ========================================== */

:root {
    --primary-color: #186da6;
    --secondary-color: #186da6;
    --accent-color: #ffc107;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --text-color: #333333;
    --text-muted: #6c757d;
    --border-color: #e0e0e0;
    --gradient-primary: linear-gradient(135deg, #186da6 0%, #1a73b8 100%);
    --gradient-secondary: linear-gradient(135deg, #186da6 0%, #1a73b8 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
    --transition: all 0.3s ease;
}

/* ==========================================
   Base Styles
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #ffffff;
}

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

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

/* Custom Container Width */
.container {
    max-width: 1400px;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1360px;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1500px;
    }
}

/* ==========================================
   Header / Navigation
   ========================================== */
.top-bar {
    background: #f8f9fa;
    color: #333;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid #e0e0e0;
}

.top-bar a {
    color: #555;
}

.top-bar a:hover {
    color: var(--primary-color);
}

.top-bar .social-links a {
    margin-left: 15px;
    font-size: 14px;
    color: var(--primary-color);
}

.top-bar .social-links a:hover {
    color: var(--secondary-color);
}

.main-header {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    padding: 12px 0;
    border-bottom: 2px solid var(--primary-color);
}

.logo-img {
    max-height: 100px;
}

.brand-name {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.brand-name span {
    color: var(--secondary-color);
}

/* Header Inline Navigation */
.header-nav-inline {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.header-nav-inline .navbar-collapse {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    flex-direction: row;
}

.header-nav-inline .navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-nav-inline .nav-item {
    margin: 0;
    display: inline-block;
}

.header-nav-inline .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 8px 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
    display: inline-block;
}

.header-nav-inline .nav-link span {
    display: inline;
}

.header-nav-inline .nav-link i {
    display: none;
}

.header-nav-inline .nav-link:hover,
.header-nav-inline .nav-link.active {
    color: var(--primary-color);
}

.header-nav-inline .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.header-nav-inline .nav-link:hover::after,
.header-nav-inline .nav-link.active::after {
    width: 80%;
}

.header-nav-inline .navbar-nav.ml-auto {
    margin-left: 15px;
    border-left: 1px solid var(--border-color);
    padding-left: 15px;
}

.header-nav-inline .nav-subscribe-btn {
    background: var(--primary-color);
    color: #fff !important;
    border-radius: 20px;
    padding: 8px 16px !important;
    font-size: 12px;
}

.header-nav-inline .nav-subscribe-btn:hover {
    background: var(--secondary-color);
}

.header-nav-inline .nav-subscribe-btn::after {
    display: none;
}

.header-nav-inline .navbar-toggler {
    display: none;
    background: var(--primary-color);
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
}

.header-nav-inline .navbar-toggler i {
    color: #fff;
    font-size: 18px;
}

/* Hide mobile-only elements on desktop */
.header-nav-inline .mobile-menu-header {
    display: none;
}

.header-nav-inline .mobile-menu-overlay {
    display: none;
}

/* Desktop styles for large screens */
@media (min-width: 992px) {
    .header-nav-inline .navbar-collapse {
        display: flex !important;
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        flex-direction: row;
    }
    
    .header-nav-inline .navbar-nav {
        flex-direction: row;
    }
    
    .header-nav-inline .nav-item {
        width: auto;
    }
    
    .header-nav-inline .nav-link {
        padding: 8px 10px;
    }
}

.header-ad-banner {
    max-width: 100%;
    height: auto;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.header-ad-banner img {
    width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
}

.header-ad-banner .ad-placeholder {
    color: var(--text-muted);
    font-size: 12px;
}

/* Mobile Header Ad */
@media (max-width: 991px) {
    .header-ad-banner {
        max-width: 320px;
        height: auto;
    }
    
    .header-ad-banner img {
        max-height: 60px;
    }
}

@media (max-width: 767px) {
    .header-ad-banner {
        max-width: 200px;
        height: auto;
        border-radius: 4px;
    }
    
    .header-ad-banner img {
        max-height: 50px;
    }
    
    .header-ad-banner .ad-placeholder {
        font-size: 10px;
    }
}

@media (max-width: 575px) {
    .header-ad-banner {
        max-width: 150px;
        height: auto;
    }
    
    .header-ad-banner img {
        max-height: 40px;
    }
}

/* Main Navigation */
.main-nav {
    background: #ffffff;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.main-nav .navbar {
    padding: 0;
}

.main-nav .nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    padding: 15px 20px !important;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

/* Hide icons on desktop nav - show only on mobile */
.main-nav .nav-link i {
    display: none;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    background: rgba(106, 27, 154, 0.08);
    color: var(--primary-color) !important;
}

.main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: var(--transition);
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
    width: 100%;
}

/* Exception for search icon on desktop */
.main-nav .navbar-nav.ml-auto .nav-link i {
    display: inline-block;
}

.nav-subscribe-btn {
    background: var(--secondary-color) !important;
    border-radius: 4px;
    margin-left: 10px;
}

.nav-subscribe-btn:hover {
    background: #b71c1c !important;
}

/* Hide mobile menu header on desktop */
.mobile-menu-header {
    display: none;
}

.mobile-menu-overlay {
    display: none;
}

/* ==========================================
   Breaking News Ticker
   ========================================== */
.breaking-news {
    background: var(--secondary-color);
    padding: 10px 0;
    overflow: hidden;
}

.breaking-label {
    background: var(--accent-color);
    color: var(--dark-color);
    padding: 5px 15px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.news-ticker {
    overflow: hidden;
    flex: 1;
    margin-left: 15px;
}

.ticker-content {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.ticker-content a {
    color: #fff;
    padding: 0 30px;
    font-size: 14px;
}

.ticker-content a:hover {
    color: var(--accent-color);
}

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

/* ==========================================
   Hero Section / Featured Articles
   ========================================== */
.hero-section {
    padding: 30px 0;
    background: var(--light-color);
}

.featured-main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 450px;
}

.featured-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-main .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.featured-main .category-badge {
    background: var(--secondary-color);
    color: #fff;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 10px;
}

.featured-main h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

.featured-main .meta {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

.featured-main .meta i {
    margin-right: 5px;
}

.featured-sidebar-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 140px;
    margin-bottom: 15px;
}

.featured-sidebar-item:last-child {
    margin-bottom: 0;
}

.featured-sidebar-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.featured-sidebar-item:hover img {
    transform: scale(1.05);
}

.featured-sidebar-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.featured-sidebar-item h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

/* ==========================================
   Advertisement Sections
   ========================================== */
.ad-section {
    padding: 20px 0;
    background: #f8f9fa;
}

.ad-banner {
    background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 100%);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    position: relative;
}

.ad-banner img {
    width: 100%;
    height: auto;
}

.ad-banner .ad-label {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 3px;
}

.top-ad-banner {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.top-ad-banner .carousel {
    width: 100%;
}

.top-ad-banner .carousel-inner {
    width: 100%;
}

.top-ad-banner .carousel-item {
    width: 100%;
}

.top-ad-banner .carousel-item img {
    height: auto;
    width: 100%;
    object-fit: contain;
}

.top-ad-banner .carousel-control-prev,
.top-ad-banner .carousel-control-next {
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(106, 27, 154, 0.8);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.top-ad-banner:hover .carousel-control-prev,
.top-ad-banner:hover .carousel-control-next {
    opacity: 1;
}

.top-ad-banner .carousel-control-prev {
    left: 10px;
}

.top-ad-banner .carousel-control-next {
    right: 10px;
}

.top-ad-banner .carousel-control-prev-icon,
.top-ad-banner .carousel-control-next-icon {
    width: 16px;
    height: 16px;
}

.top-ad-banner .carousel-indicators {
    bottom: 5px;
    margin-bottom: 0;
}

.top-ad-banner .carousel-indicators li {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(106, 27, 154, 0.5);
    border: none;
    margin: 0 4px;
}

.top-ad-banner .carousel-indicators li.active {
    background-color: var(--primary-color);
}

.top-ad-banner .ad-label {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 10;
}

.sidebar-ad {
    height: auto;
    margin-bottom: 20px;
    position: relative;
}

.sidebar-ad .carousel {
    width: 100%;
}

.sidebar-ad .carousel-inner {
    width: 100%;
}

.sidebar-ad .carousel-item {
    width: 100%;
}

.sidebar-ad .carousel-item img {
    height: auto;
    width: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.sidebar-ad .carousel-indicators {
    bottom: 5px;
    margin-bottom: 0;
}

.sidebar-ad .carousel-indicators li {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    border: none;
    margin: 0 3px;
}

.sidebar-ad .carousel-indicators li.active {
    background-color: var(--primary-color);
}

.sidebar-ad .ad-label {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 10;
}

.inline-ad {
    height: 120px;
    margin: 25px 0;
}

/* Featured Ads Section */
.featured-ads-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8eaf6 100%);
}

.featured-ads-section .section-title {
    color: var(--dark-color);
    border-bottom-color: var(--primary-color) !important;
}

.featured-ad-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.featured-ad-card:hover {
    transform: translateY(-5px);
}

.featured-ad-card .ad-image {
    height: auto;
    overflow: hidden;
}

.featured-ad-card .ad-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.featured-ad-card .ad-content {
    padding: 20px;
}

.featured-ad-card .company-name {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.featured-ad-card .ad-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.featured-ad-card .ad-link {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 14px;
}

/* ==========================================
   News Grid Section
   ========================================== */
.news-section {
    padding: 50px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 15px;
    /* border-bottom: 3px solid var(--primary-color); */
}

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

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -18px;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
}

.view-all-link {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 14px;
}

.view-all-link:hover {
    color: var(--primary-color);
}

/* News Cards */
.news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.news-card .card-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.news-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .card-image img {
    transform: scale(1.05);
}

.news-card .category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--secondary-color);
    color: #fff;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
}

.news-card .card-content {
    padding: 20px;
}

.news-card .card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.news-card .card-title:hover {
    color: var(--secondary-color);
}

.news-card .card-excerpt {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-card .card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.news-card .card-meta i {
    margin-right: 5px;
}

/* News List Item */
.news-list-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-item .item-image {
    width: 100px;
    height: 75px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-list-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-list-item .item-content h5 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
}

.news-list-item .item-content h5:hover {
    color: var(--secondary-color);
}

.news-list-item .item-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================
   Clients Section
   ========================================== */
.clients-section {
    padding: 60px 0;
    background: var(--light-color);
}

.client-card-link {
    display: block;
    text-decoration: none;
    height: 100%;
}

.client-card-link:hover {
    text-decoration: none;
}

.client-card {
    background: #fff;
    border-radius: 50%;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    width: 150px;
    height: 150px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid transparent;
}

.client-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.client-logo {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.client-logo img {
    max-height: 45px;
    max-width: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: var(--transition);
}

.client-card:hover .client-logo img {
    filter: grayscale(0%);
}

.client-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 2px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.client-industry {
    font-size: 10px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* View All Clients Button */
.clients-section .btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.clients-section .btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(106, 27, 154, 0.3);
}

.clients-section .btn-outline-primary i {
    transition: transform 0.3s ease;
}

.clients-section .btn-outline-primary:hover i {
    transform: translateX(5px);
}

/* Clients Marquee */
.clients-marquee {
    overflow: hidden;
    padding: 30px 0;
}

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

.marquee-content .client-item {
    flex-shrink: 0;
    padding: 0 40px;
}

.marquee-content .client-item img {
    height: 50px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.marquee-content .client-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

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

/* ==========================================
   Magazine / Subscription Section
   ========================================== */
.magazine-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    position: relative;
    overflow: hidden;
}

.magazine-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a73b8' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.magazine-content {
    position: relative;
    z-index: 1;
}

.magazine-preview {
    position: relative;
}

.magazine-cover {
    max-width: 280px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-15deg);
    transition: var(--transition);
}

.magazine-cover:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.magazine-info h2 {
    color: var(--dark-color);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
}

.magazine-info p {
    color: #555;
    font-size: 16px;
    margin-bottom: 25px;
}

.subscription-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.subscription-features li {
    color: #444;
    padding: 8px 0;
    font-size: 15px;
}

.subscription-features li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.btn-subscribe {
    background: var(--primary-color);
    color: #fff;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
}

.btn-subscribe:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: scale(1.05);
}

/* ==========================================
   Categories Section
   ========================================== */
.categories-section {
    padding: 50px 0;
    background: #fff;
}

.category-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 150px;
    margin-bottom: 20px;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26,35,126,0.8) 0%, rgba(198,40,40,0.8) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.category-card:hover .overlay {
    background: linear-gradient(135deg, rgba(26,35,126,0.9) 0%, rgba(198,40,40,0.9) 100%);
}

.category-card .category-icon {
    font-size: 32px;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.category-card .category-name {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.category-card .article-count {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

/* ==========================================
   Sidebar Widgets
   ========================================== */
.sidebar-widget {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
    padding-bottom: 12px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

/* Popular Posts Widget */
.popular-post-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.popular-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-post-item .post-number {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    flex-shrink: 0;
}

.popular-post-item .post-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--dark-color);
}

.popular-post-item .post-title:hover {
    color: var(--secondary-color);
}

/* Tags Widget */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    background: var(--light-color);
    color: var(--text-color);
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 20px;
    transition: var(--transition);
}

.tag-item:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 2px solid var(--primary-color);
    color: #333;
}

.newsletter-widget .widget-title {
    color: var(--dark-color);
    border-bottom-color: var(--primary-color);
}

.newsletter-widget p {
    color: #555;
    font-size: 14px;
    margin-bottom: 15px;
}

.newsletter-widget .form-control {
    border: none;
    border-radius: 5px;
    padding: 12px 15px;
    margin-bottom: 10px;
}

.newsletter-widget .btn-subscribe-sm {
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-widget .btn-subscribe-sm:hover {
    background: var(--secondary-color);
}

/* ==========================================
   Footer Ad Slider
   ========================================== */
.footer-ad-section {
    background: #f0f0f0;
}

.footerAdSwiper {
    padding: 10px 0;
}

.footerAdSwiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-ad-item {
    display: block;
    background: #fff;
    border-radius: 8px;
    padding: 0px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-ad-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.footer-ad-item img {
    max-height: 100px;
    max-width: 100%;
    width: 200px;
    object-fit: contain;
}

/* ==========================================
   Footer
   ========================================== */
.footer-section {
    background: #f8f9fa;
    color: #333;
    padding: 60px 0 0;
    border-top: 3px solid var(--primary-color);
}

.footer-logo {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.footer-logo span {
    color: var(--secondary-color);
}

.footer-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary-color);
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    color: var(--dark-color);
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #555;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-contact-item i {
    color: var(--primary-color);
    font-size: 18px;
    width: 20px;
}

.footer-contact-item span {
    color: #555;
    font-size: 14px;
}

.footer-contact-item span a {
    color: #555;
}

.footer-contact-item span a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    /* background: #e9ecef; */
    padding: 20px 0;
    margin-top: 40px;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #666;
    font-size: 13px;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* ==========================================
   Responsive Styles
   ========================================== */
@media (max-width: 991px) {
    .featured-main {
        height: 350px;
        margin-bottom: 20px;
    }
    
    .featured-sidebar-item {
        height: 120px;
    }
    
    .header-ad-banner {
        /* display: none; */
    }
    
    /* Header Inline Navigation - Mobile */
    .header-nav-inline .navbar-toggler {
        display: block !important;
    }
    
    .header-nav-inline .navbar-collapse {
        display: flex !important;
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        background: #ffffff;
        z-index: 1050;
        box-shadow: -10px 0 40px rgba(0,0,0,0.15);
        transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        overflow-y: auto;
        overflow-x: hidden;
        flex-direction: column !important;
        justify-content: flex-start;
        padding: 0;
    }
    
    .header-nav-inline .navbar-collapse.show {
        right: 0;
    }
    
    .header-nav-inline .navbar-nav {
        flex-direction: column !important;
        width: 100%;
        padding: 10px 0;
    }
    
    .header-nav-inline .nav-item {
        width: 100%;
        display: block;
    }
    
    .header-nav-inline .nav-link {
        padding: 12px 20px !important;
        display: flex !important;
        align-items: center;
        font-size: 14px;
        text-transform: none;
        border-left: 3px solid transparent;
    }
    
    .header-nav-inline .nav-link i {
        display: inline-flex;
        width: 24px;
        margin-right: 10px;
        color: var(--primary-color);
    }
    
    .header-nav-inline .nav-link::after {
        display: none;
    }
    
    .header-nav-inline .nav-link:hover,
    .header-nav-inline .nav-link.active {
        background: rgba(106, 27, 154, 0.08);
        border-left-color: var(--primary-color);
    }
    
    .header-nav-inline .navbar-nav.ml-auto {
        margin-left: 0;
        border-left: none;
        border-top: 1px solid #e0e0e0;
        padding: 10px 0;
        background: #f8f9fa;
        margin-top: auto;
    }
    
    .header-nav-inline .nav-subscribe-btn {
        margin: 10px 20px;
        text-align: center;
        justify-content: center;
        border-radius: 6px;
    }
    
    /* Mobile Menu Header for header-nav-inline */
    .header-nav-inline .mobile-menu-header {
        display: flex !important;
        background: var(--primary-color);
        padding: 15px;
        align-items: center;
        justify-content: space-between;
    }
    
    .header-nav-inline .mobile-menu-header .menu-title {
        color: #fff;
        font-weight: 700;
        font-size: 16px;
    }
    
    .header-nav-inline .mobile-menu-close {
        background: rgba(255,255,255,0.2);
        border: none;
        color: #fff;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    
    .header-nav-inline .mobile-menu-close:hover {
        background: var(--secondary-color);
    }
    
    /* Mobile Menu Overlay for header-nav-inline */
    .header-nav-inline .mobile-menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1049;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .header-nav-inline .mobile-menu-overlay.show {
        opacity: 1;
        visibility: visible;
    }
    
    .main-nav .nav-link {
        padding: 12px 15px !important;
    }
    
    /* Mobile Navigation - Slide from Right */
    .main-nav {
        position: relative;
    }
    
    .main-nav .navbar {
        padding: 10px 0;
    }
    
    .main-nav .navbar-toggler {
        border: none;
        padding: 8px 12px;
        border-radius: 4px;
        outline: none !important;
        box-shadow: none !important;
        background: var(--primary-color);
        position: relative;
        z-index: 1052;
    }
    
    .main-nav .navbar-toggler:focus {
        background: var(--secondary-color);
    }
    
    .main-nav .navbar-toggler i {
        font-size: 22px;
        transition: var(--transition);
        color: #fff;
    }
    
    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 1049;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-overlay.show {
        opacity: 1;
        visibility: visible;
    }
    
    /* Slide-in Menu Panel */
    .main-nav .navbar-collapse {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        background: #ffffff;
        z-index: 1050;
        box-shadow: -10px 0 40px rgba(0,0,0,0.15);
        transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        overflow-y: auto;
        overflow-x: hidden;
        display: flex !important;
        flex-direction: column;
        padding: 0;
    }
    
    .main-nav .navbar-collapse.show {
        right: 0;
    }
    
    /* Menu Header */
    .mobile-menu-header {
        background: var(--primary-color);
        padding: 15px 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .mobile-menu-header .menu-title {
        color: #fff;
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 0.5px;
    }
    
    .mobile-menu-close {
        background: rgba(255,255,255,0.2);
        border: none;
        color: #fff;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: var(--transition);
    }
    
    .mobile-menu-close:hover {
        background: var(--secondary-color);
        transform: rotate(90deg);
    }
    
    .mobile-menu-close i {
        font-size: 14px;
    }
    
    /* Show icons on mobile */
    .main-nav .nav-link i {
        display: inline-flex;
        width: 20px;
        margin-right: 8px;
        font-size: 14px;
        color: var(--primary-color);
    }
    
    /* Show overlay on mobile */
    .mobile-menu-overlay {
        display: block;
    }
    
    /* Show mobile menu header */
    .mobile-menu-header {
        display: flex;
    }
    
    /* Menu Navigation Items */
    .main-nav .navbar-nav {
        padding: 8px 0;
        flex-direction: column;
        width: 100%;
    }
    
    .main-nav .nav-item {
        border-bottom: none;
        opacity: 0;
        transform: translateX(30px);
        transition: all 0.3s ease;
        width: 100%;
    }
    
    .main-nav .navbar-collapse.show .nav-item {
        opacity: 1;
        transform: translateX(0);
    }
    
    .main-nav .navbar-collapse.show .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .main-nav .navbar-collapse.show .nav-item:nth-child(2) { transition-delay: 0.15s; }
    .main-nav .navbar-collapse.show .nav-item:nth-child(3) { transition-delay: 0.2s; }
    .main-nav .navbar-collapse.show .nav-item:nth-child(4) { transition-delay: 0.25s; }
    .main-nav .navbar-collapse.show .nav-item:nth-child(5) { transition-delay: 0.3s; }
    .main-nav .navbar-collapse.show .nav-item:nth-child(6) { transition-delay: 0.35s; }
    .main-nav .navbar-collapse.show .nav-item:nth-child(7) { transition-delay: 0.4s; }
    .main-nav .navbar-collapse.show .nav-item:nth-child(8) { transition-delay: 0.45s; }
    .main-nav .navbar-collapse.show .nav-item:nth-child(9) { transition-delay: 0.5s; }
    .main-nav .navbar-collapse.show .nav-item:nth-child(10) { transition-delay: 0.55s; }
    
    .main-nav .nav-link {
        padding: 12px 15px !important;
        display: flex;
        align-items: center;
        font-size: 14px;
        color: #333 !important;
        border-left: 3px solid transparent;
        transition: var(--transition);
        text-transform: none;
        width: 100%;
    }
    
    .main-nav .nav-link::after {
        display: none;
    }
    
    .main-nav .nav-link:hover,
    .main-nav .nav-link.active {
        background: rgba(106, 27, 154, 0.08);
        border-left-color: var(--primary-color);
        padding-left: 20px !important;
        color: var(--primary-color) !important;
    }
    
    /* Menu Footer Section */
    .main-nav .navbar-nav.ml-auto {
        margin-top: auto;
        border-top: 1px solid #e0e0e0;
        padding: 12px 15px;
        background: #f8f9fa;
        flex-direction: column;
        width: 100%;
        margin-left: 0 !important;
    }
    
    .main-nav .navbar-nav.ml-auto .nav-item {
        border-bottom: none;
        margin-bottom: 8px;
        width: 100%;
    }
    
    .main-nav .navbar-nav.ml-auto .nav-item:last-child {
        margin-bottom: 0;
    }
    
    .main-nav .nav-subscribe-btn {
        margin-left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 15px !important;
        border-radius: 6px;
        background: var(--gradient-secondary) !important;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-size: 13px;
        width: 100%;
    }
    
    .main-nav .nav-subscribe-btn:hover {
        transform: scale(1.02);
        box-shadow: 0 5px 20px rgba(233, 30, 99, 0.4);
    }
    
    /* Body scroll lock when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Header Logo for mobile */
    .header-main .logo-img {
        max-height: 120px;
    }
    
    .brand-name {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .top-bar {
        display: none;
    }
    
    .featured-main {
        height: 280px;
    }
    
    .featured-main h2 {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .magazine-info h2 {
        font-size: 26px;
    }
    
    .magazine-cover {
        max-width: 200px;
        margin: 0 auto 30px;
        transform: none;
    }
    
    .news-card .card-image {
        height: 150px;
    }
    
    /* Mobile Header */
    .main-header .header-main {
        padding: 12px 0;
    }
    
    .main-header .logo-img {
        max-height: 120px;
    }
    
    .brand-name {
        font-size: 22px;
    }
    
    /* Mobile Nav adjustments */
    .main-nav .nav-link {
        padding: 12px 15px !important;
        font-size: 14px;
    }
    
    .main-nav .navbar-nav.ml-auto {
        flex-direction: column;
        padding: 10px 15px;
    }
    
    .main-nav .navbar-nav.ml-auto .nav-item {
        margin-bottom: 10px;
    }
    
    .main-nav .nav-subscribe-btn {
        text-align: center;
        display: block;
        margin: 0;
    }
    
    /* Breaking news mobile */
    .breaking-news {
        padding: 8px 0;
    }
    
    .breaking-label {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    /* Footer mobile */
    .footer-section {
        padding: 40px 0 20px;
    }
    
    .footer-title {
        margin-top: 20px;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-bottom .col-md-6 {
        text-align: center !important;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 10px;
    }
    
    /* Search Modal */
    #searchModal .modal-dialog {
        margin: 15px;
    }
}

@media (max-width: 575px) {
    /* Extra small device adjustments */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .main-nav .navbar-toggler {
        padding: 6px 10px;
    }
    
    .main-nav .navbar-toggler i {
        font-size: 18px;
    }
    
    .header-main {
        padding: 10px 0;
    }
    
    .brand-name {
        font-size: 20px;
    }
    
    .main-header .logo-img {
        max-height: 95px;
    }
    
    .featured-main {
        height: 220px;
    }
    
    .featured-main h2 {
        font-size: 16px;
    }
    
    .news-card .card-title {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    /* Client card mobile */
    .client-card {
        padding: 15px;
    }
    
    .client-card {
        width: 120px;
        height: 120px;
        padding: 15px;
    }
    
    .client-logo {
        height: 40px;
        margin-bottom: 5px;
    }
    
    .client-logo img {
        max-height: 35px;
        max-width: 60px;
    }
    
    .client-name {
        font-size: 10px;
    }
    
    .client-industry {
        font-size: 9px;
    }
}

/* ==========================================
   Utilities
   ========================================== */
.bg-primary-gradient {
    background: var(--gradient-primary);
}

.bg-secondary-gradient {
    background: var(--gradient-secondary);
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: #0d1557;
    border-color: #0d1557;
}

.btn-secondary {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background: #b71c1c;
    border-color: #b71c1c;
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--secondary-color);
}

/* Popup Ad Styles */
.popup-ad-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-ad-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-ad-container {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    max-width: 600px;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.popup-ad-overlay.show .popup-ad-container {
    transform: scale(1);
}

.popup-ad-container img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.popup-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.popup-close-btn:hover {
    background: var(--secondary-color);
    transform: rotate(90deg);
}

.popup-ad-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.popup-dont-show {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    margin: 0;
}

.popup-dont-show input {
    cursor: pointer;
}

.popup-ad-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 640px) {
    .popup-ad-container {
        max-width: 95%;
        margin: 10px;
    }
    
    .popup-ad-container img {
        max-height: 70vh;
        width: 100%;
        height: auto;
    }
    
    .popup-ad-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
