/**
 * ApniWeb - Main Stylesheet
 * Professional News Website
 */

:root {
    --primary-color: #1a73e8;
    --primary-dark: #0d47a1;
    --secondary-color: #34495e;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --text-color: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--bg-dark);
    padding: 8px 0;
    font-size: 13px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.current-date {
    color: rgba(255,255,255,0.8);
}

.current-date i {
    margin-right: 5px;
    color: var(--primary-color);
}

.social-links a {
    color: rgba(255,255,255,0.7);
    margin-left: 12px;
    font-size: 14px;
    transition: var(--transition);
}

.social-links a:hover {
    color: #fff;
}

/* ============================================
   HEADER
   ============================================ */
.main-header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    max-height: 50px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-navigation {
    background: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-navigation .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 15px 18px;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.nav-link i {
    margin-right: 5px;
}

/* Search Form */
.nav-search {
    padding: 10px 0;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-input {
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 8px 15px;
    border-radius: 20px 0 0 20px;
    color: #fff;
    width: 180px;
    font-size: 14px;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.search-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    padding: 8px 15px;
    border-radius: 0 20px 20px 0;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* ============================================
   BREAKING NEWS TICKER
   ============================================ */
.breaking-news-section {
    background: var(--accent-color);
    padding: 10px 0;
}

.breaking-news-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.breaking-label {
    background: var(--bg-dark);
    color: #fff;
    padding: 5px 15px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    white-space: nowrap;
    animation: pulse 2s infinite;
}

.breaking-label i {
    margin-right: 5px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.breaking-news-ticker {
    overflow: hidden;
    flex: 1;
}

.ticker-list {
    display: flex;
    animation: ticker 30s linear infinite;
    list-style: none;
}

.ticker-list li {
    white-space: nowrap;
    padding: 0 30px;
}

.ticker-list a {
    color: #fff;
    font-weight: 500;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   FEATURED SECTION
   ============================================ */
.featured-section {
    background: var(--bg-light);
}

.featured-main-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 100%;
    min-height: 450px;
}

.featured-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: #fff;
}

.category-badge {
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 3px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 15px;
}

.featured-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.featured-meta span {
    font-size: 13px;
    margin-right: 15px;
    opacity: 0.8;
}

.featured-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 200px;
}

.featured-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.featured-card:hover .featured-card-image {
    transform: scale(1.05);
}

.featured-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
}

.category-badge-sm {
    background: var(--primary-color);
    color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
}

.featured-card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

/* ============================================
   POST CARDS
   ============================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
}

.section-title i {
    color: var(--primary-color);
    margin-right: 10px;
}

.view-all {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
}

.view-all i {
    margin-left: 5px;
    transition: var(--transition);
}

.view-all:hover i {
    transform: translateX(3px);
}

.post-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.post-card-image-link {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.post-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-card-image {
    transform: scale(1.05);
}

.trending-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: #fff;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

.post-card-body {
    padding: 20px;
}

.post-category {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 10px 0;
}

.post-card-title a {
    color: var(--secondary-color);
}

.post-card-title a:hover {
    color: var(--primary-color);
}

.post-card-excerpt {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.post-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar-sm {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-widget {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
    overflow: hidden;
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    padding: 15px 20px;
    margin: 0;
    background: var(--bg-light);
    border-bottom: 2px solid var(--primary-color);
}

.widget-title i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* Trending Widget */
.trending-posts {
    padding: 0;
}

.trending-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--border-color);
    margin-right: 15px;
    line-height: 1;
}

.trending-category {
    font-size: 11px;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 600;
}

.trending-title {
    font-size: 14px;
    font-weight: 600;
    margin: 5px 0;
    line-height: 1.4;
}

.trending-title a {
    color: var(--secondary-color);
}

.trending-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* Categories Widget */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    border-bottom: 1px solid var(--border-color);
}

.category-item:last-child {
    border-bottom: none;
}

.category-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-color);
    transition: var(--transition);
}

.category-item a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 25px;
}

.category-count {
    background: var(--bg-light);
    padding: 2px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

/* Tags Widget */
.tags-cloud {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    background: var(--bg-light);
    color: var(--text-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
    transition: var(--transition);
}

.tag-link:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Social Widget */
.social-buttons {
    padding: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: var(--border-radius);
    color: #fff;
    margin-bottom: 10px;
    font-weight: 500;
    transition: var(--transition);
}

.social-btn:last-child {
    margin-bottom: 0;
}

.social-btn:hover {
    opacity: 0.9;
    color: #fff;
    transform: translateX(3px);
}

.social-btn.facebook { background: #3b5998; }
.social-btn.twitter { background: #1da1f2; }
.social-btn.youtube { background: #ff0000; }
.social-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

/* Newsletter Widget */
.newsletter-widget {
    text-align: center;
    padding: 25px;
}

.newsletter-widget .widget-title {
    background: none;
    border: none;
    text-align: center;
}

.sidebar-newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    transition: var(--transition);
}

.sidebar-newsletter-form input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* ============================================
   SINGLE ARTICLE
   ============================================ */
.breadcrumb-nav {
    background: var(--bg-light);
    padding: 12px 0;
}

.breadcrumb {
    margin: 0;
    padding: 0;
    background: none;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--text-light);
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

.single-article {
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.article-header {
    margin-bottom: 25px;
}

.article-category {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.article-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    font-family: var(--font-heading);
    color: var(--secondary-color);
}

.article-excerpt {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--secondary-color);
}

.publish-date {
    font-size: 13px;
    color: var(--text-muted);
}

.meta-stats span {
    margin-left: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.meta-stats i {
    margin-right: 5px;
}

.article-featured-image {
    margin: 25px 0;
}

.article-featured-image img {
    border-radius: var(--border-radius);
    width: 100%;
}

.image-caption {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 10px;
}

/* Social Share Bar */
.social-share-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

.share-label {
    font-weight: 600;
    color: var(--secondary-color);
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: scale(1.1);
    color: #fff;
}

.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.telegram { background: #0088cc; }
.share-btn.email { background: #ea4335; }
.share-btn.copy-link { background: #6c757d; }

/* Article Content */
.article-content {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-color);
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 35px 0 20px;
    color: var(--secondary-color);
}

.article-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 30px 0 15px;
    color: var(--secondary-color);
}

.article-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 25px 0 15px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 20px 25px;
    margin: 25px 0;
    background: var(--bg-light);
    font-size: 18px;
    font-style: italic;
    color: var(--text-light);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.article-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.article-content iframe {
    max-width: 100%;
    margin: 20px 0;
    border-radius: var(--border-radius);
}

/* Tags */
.article-tags {
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 30px;
}

.tags-label {
    font-weight: 600;
    margin-right: 10px;
    color: var(--secondary-color);
}

.article-tags .tag-link {
    margin-right: 8px;
    margin-bottom: 8px;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    margin: 30px 0;
}

.author-box-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-box-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.author-box-bio {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

.author-box-social {
    margin-top: 10px;
}

.author-box-social a {
    color: var(--text-muted);
    margin-right: 12px;
    font-size: 16px;
}

.author-box-social a:hover {
    color: var(--primary-color);
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    gap: 20px;
}

.post-nav-link {
    flex: 1;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.post-nav-link:hover {
    background: var(--primary-color);
    color: #fff;
}

.post-nav-link:hover .nav-label,
.post-nav-link:hover .nav-title {
    color: #fff;
}

.post-nav-link.next {
    text-align: right;
}

.nav-label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.nav-title {
    display: block;
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: 5px;
}

/* Related Posts */
.related-posts-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.related-post-card {
    text-align: center;
}

.related-image-link {
    display: block;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 12px;
}

.related-post-card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: var(--transition);
}

.related-post-card:hover img {
    transform: scale(1.05);
}

.related-post-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.related-post-title a {
    color: var(--secondary-color);
}

.related-post-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* Comments Section */
.comments-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.comment-form-wrapper {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.comment-form .form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 12px 15px;
}

.comment-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.comment-header {
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    margin-right: 10px;
}

.comment-date {
    font-size: 12px;
    color: var(--text-muted);
}

.comment-text {
    color: var(--text-color);
    line-height: 1.6;
}

.reply-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 13px;
    cursor: pointer;
    margin-top: 8px;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: var(--bg-dark);
    color: #fff;
}

.footer-top {
    padding: 50px 0;
}

.footer-logo img {
    max-height: 40px;
    margin-bottom: 20px;
}

.footer-about {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.8;
}

.footer-social {
    margin-top: 20px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    margin-right: 8px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
}

.footer-widget h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--border-radius);
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter-form button {
    background: var(--primary-color);
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.newsletter-note {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-top: 10px;
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 20px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.copyright {
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.footer-credits {
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

/* Back to Top */
.back-to-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;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Ads Container */
.ad-container {
    text-align: center;
    padding: 15px;
    background: var(--bg-light);
    margin: 20px 0;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pagination */
.pagination-nav {
    margin-top: 30px;
}

.pagination {
    justify-content: center;
}

.page-link {
    border: none;
    padding: 10px 18px;
    margin: 0 3px;
    border-radius: var(--border-radius);
    color: var(--text-color);
    transition: var(--transition);
}

.page-link:hover,
.page-item.active .page-link {
    background: var(--primary-color);
    color: #fff;
}

/* Load More Button */
.btn-load-more {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 35px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-load-more:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Alert Messages */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 15px 20px;
}