/* RTL-First Arabic Website for Sheikh Mortada Maash */

:root {
    
    --primary-color: #556a3a !important; /* Beautiful deep teal - more sophisticated than previous #4FB0C6 */
    --secondary-main: #d4af37 !important;
    --primary-dark: #0D5A52; /* Deeper shade */
    --primary-light: #556a3abf; /* Lighter accent */
    --primary-gradient: #556a3a !important;
    --primary-soft: rgba(15, 118, 110, 0.1); /* Soft background */
    --links:#556a3a !important;
    --secondary-color: #1E293B; /* Rich dark slate */
    --success-color: #059669; /* Harmonious green */
    --warning-color: #D97706; /* Warm amber */
    --danger-color: #7C2D32; /* Refined burgundy - even more elegant */
    --info-color: #0369A1; /* Deeper blue */
    --light-color: #F8FAFC;
    --dark-color: #0F172A; /* Rich midnight */
    --bg-light: #F8FAFC;
    --bg-dark: #0F172A;
    --text-light: #898989;
    --text-muted: #b3b3b3 !important;
    --border-light: #ebebeb !important;
    --shadow: 0 4px 20px rgba(15, 118, 110, 0.08);
    --shadow-hover: 0 8px 35px rgba(15, 118, 110, 0.15);
    --shadow-card: 0 2px 12px rgba(15, 118, 110, 0.06);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --border-radius-lg: 24px;
    /* Bootstrap overrides */
    --bs-primary: #0F766E;
    --bs-primary-rgb: 15, 118, 110;
    --bs-success: #059669;
    --bs-info: #0369A1;
    --bs-warning: #D97706;
    --bs-danger: #7C2D32;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    direction: rtl;
}

body {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #ffffff;
    direction: rtl;
    text-align: right;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
a{text-decoration: none;}
/* Dark Mode */
[data-bs-theme="dark"] {
    --bs-body-bg: var(--bg-dark);
    --bs-body-color: #ffffff;
    --bs-border-color: #374151;
}

/*[data-bs-theme="dark"] .bg-light {*/
/*    background-color: #2D3748 !important;*/
/*}*/

[data-bs-theme="dark"] .navbar-light {
    background-color: var(--bg-dark) !important;
    border-bottom: 1px solid #374151;
}

[data-bs-theme="dark"] .card {
    background-color: #2D3748;
    border-color: #374151;
}

[data-bs-theme="dark"] .list-group-item {
    background-color: #2D3748;
    border-color: #374151;
    color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark-color);
}

[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6 {
    color: #ffffff;
}

.lead {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.7;
}

/* Bootstrap Overrides */
.text-primary {
    color: var(--primary-color) !important;
}

/* Enhanced Button Styles with Beautiful Colors */
.btn-outline-primary {
    --bs-btn-color: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: var(--primary-color);
    --bs-btn-hover-border-color: var(--primary-color);
    --bs-btn-focus-shadow-rgb: 15, 118, 110;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: var(--primary-dark);
    --bs-btn-active-border-color: var(--primary-dark);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(15, 118, 110, 0.125);
    --bs-btn-disabled-color: var(--primary-color);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--primary-color);
    border-width: 1px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-gradient);
    transition: var(--transition);
    z-index: -1;
}

.btn-outline-primary:hover::before {
    width: 100%;
}

.btn-outline-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

.btn-outline-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(15, 118, 110, 0.25);
}

.btn-outline-primary:active {
    transform: translateY(0);
}

/* Enhanced Primary Button */
.btn-primary {
    --bs-btn-bg: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-bg: var(--primary-dark);
    --bs-btn-hover-border-color: var(--primary-dark);
    --bs-btn-focus-shadow-rgb: 15, 118, 110;
    --bs-btn-active-bg: var(--primary-dark);
    --bs-btn-active-border-color: var(--primary-dark);
    background: var(--primary-gradient);
    border: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: var(--primary-gradient);
}

.btn-primary:focus {
    background: var(--primary-gradient);
    box-shadow: 0 0 0 0.25rem rgba(15, 118, 110, 0.25);
}

.btn-primary:active {
    background: var(--primary-gradient);
    transform: translateY(0);
}

/* Enhanced Secondary Button */
.btn-outline-secondary {
    --bs-btn-color: var(--secondary-color);
    --bs-btn-border-color: var(--secondary-color);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: var(--secondary-color);
    --bs-btn-hover-border-color: var(--secondary-color);
    border-width: 1px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(30, 41, 59, 0.2);
}

/* Small Button Variants */
.btn-sm.btn-outline-primary {
    border-width: 1.5px;
    font-weight: 600;
    padding: 0.375rem 1rem;
}

/* Button Group Styles */
.btn-group .btn-outline-primary {
    border-radius: var(--border-radius-sm) !important;
    margin: 0 2px;
}

/* Sections */
section {
    scroll-margin-top: 80px;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color) !important;
    text-decoration: none;
}

[data-bs-theme="dark"] .navbar-brand {
    color: #ffffff !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-color);
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--light-color) !important;
    background-color: var(--secondary-main);
}

[data-bs-theme="dark"] .navbar-nav .nav-link {
    color: #ffffff;
}

[data-bs-theme="dark"] .navbar-nav .nav-link:hover,
[data-bs-theme="dark"] .navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* Cards */
.card {
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    margin-bottom: 2rem;
}

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

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

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

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.card-text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

[data-bs-theme="dark"] .card-text {
    color: #D1D5DB;
}

/* Enhanced Hero Carousel Styles */
.hero-carousel {
    border-radius: 1rem;
    overflow: hidden;
}

.hero-slide {
    height: 500px;
    position: relative;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(135deg, rgba(79, 176, 198, 0.8), rgba(0, 0, 0, 0.7));*/
    background:#333333;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    
}
.hero-text{
    padding:0 2rem;
}
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.bg-primary-gradient {
    background: var(--primary-gradient) !important;
}

.bg-danger-gradient {
    background: linear-gradient(45deg, #8B4B6B, #7B4B5B) !important; /* Senior-friendly maroon gradient */
}

.bg-success-gradient {
    background: linear-gradient(45deg, #00b894, #00cec9) !important;
}

.hero-author-img {
    /*width: 100%;*/
    /*max-width: 280px;*/
    height: 500px;
    object-fit: cover;
    max-width:100%;
}

.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.backdrop-filter {
    backdrop-filter: blur(10px);
}

/* Custom Carousel Controls */
.custom-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.custom-carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.custom-carousel-btn.carousel-control-prev {
    right: 80px;
}

.custom-carousel-btn.carousel-control-next {
    right: 20px;
}

.custom-carousel-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Video Cards Styles */
.video-card {
    transition: all 0.3s ease;
    border-radius: 1rem;
    overflow: hidden;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: all 0.3s ease;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.play-btn-large {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8B4B6B; /* Senior-friendly maroon */
    font-size: 2rem;
    transition: all 0.3s ease;
}

.play-btn-large:hover {
    background: white;
    transform: scale(1.1);
}

.video-overlay-small {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-card:hover .video-overlay-small {
    opacity: 1;
}

.play-btn-small {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8B4B6B; /* Senior-friendly maroon */
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.play-btn-small:hover {
    background: white;
    transform: scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.video-duration-small {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 500;
}

.featured-video-card {
    border-radius: 1rem;
    overflow: hidden;
}

.youtube-cta {
    border-radius: 1rem;
    background: linear-gradient(135deg, #8B4B6B, #75416B) !important; /* Senior-friendly maroon gradient */
}

/* Book Cards Styles */
.book-card {
    transition: all 0.3s ease;
    border-radius: 1rem;
    overflow: hidden;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.book-cover-wrapper {
    position: relative;
    overflow: hidden;
}

.book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-card:hover .book-overlay {
    opacity: 1;
}

.book-actions-overlay {
    display: flex;
    gap: 0.5rem;
}

.book-category {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.featured-book-card {
    border-radius: 1rem;
    overflow: hidden;
}

.book-cover {
    border-radius: 0.5rem;
}

.book-cover-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.book-badge {
    position: absolute;
    top: 20px;
    right: 20px;
}

.publisher-card {
    border-radius: 1rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

/* Beautiful Tab Styles for Latest by Section */
.latest-tabs-section {
    background:linear-gradient(135deg, #f7f7f7 0%, #ffffff 100%);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.latest-tabs-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    z-index: 1;
}

.latest-tabs-section h2 {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.latest-tabs-section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* Modern Nav Pills */
.nav-pills {
    background: white;
    border-radius: var(--border-radius);
    padding: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem !important;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.nav-pills .nav-item {
    margin: 0;
}

.nav-pills .nav-link {
    border-radius: var(--border-radius-sm);
    padding: 14px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-light);
    background: transparent;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    margin: 0;
}

.nav-pills .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: var(--primary-color);
    transition: var(--transition);
    z-index: -1;
}

.nav-pills .nav-link:hover {
    color: #fff;
    background: var(--primary-soft);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(15, 118, 110, 0.15);
}

.nav-pills .nav-link:hover::before {
    width: 100%;
}

.nav-pills .nav-link.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 6px 20px rgba(15, 118, 110, 0.3);
    transform: translateY(-2px);
}

.nav-pills .nav-link.active::before {
    width: 100%;
}

/* Enhanced Tab Content */
.tab-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}

.tab-pane {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Card Styles for Tab Content */
.tab-content .card {
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    box-shadow: var(--shadow-card);
    background: white;
}

.tab-content .card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.tab-content .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
    position: relative;
}

.tab-content .card:hover .card-img-top {
    transform: scale(1.05);
}

.tab-content .card-body {
    padding: 1.5rem;
    position: relative;
}
.card-title a {color: var(--primary-color)!important;}
.tab-content .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tab-content .card-text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tab-content .text-muted {
    color: var(--text-muted) !important;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-content .text-muted::before {
    content: '📅';
    font-size: 0.8rem;
}

/* Dark Mode Enhancements */
[data-bs-theme="dark"] .latest-tabs-section {
    background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
}

[data-bs-theme="dark"] .nav-pills {
    background: #2D3748;
    border: 1px solid #4A5568;
}

[data-bs-theme="dark"] .nav-pills .nav-link {
    color: #CBD5E0;
}

[data-bs-theme="dark"] .nav-pills .nav-link:hover {
    background: rgba(15, 118, 110, 0.2);
    color: var(--primary-light);
}

[data-bs-theme="dark"] .tab-content {
    background: #2D3748;
    border-color: #4A5568;
}

[data-bs-theme="dark"] .tab-content .card {
    background: #374151;
    border-color: #4B5563;
}

[data-bs-theme="dark"] .tab-content .card-title {
    color: #F9FAFB;
}

[data-bs-theme="dark"] .tab-content .card-text {
    color: #D1D5DB;
}

/* Enhanced Badge Styles */
.badge.bg-primary {
    background: var(--primary-gradient) !important;
    color: white;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
}

.badge.bg-primary-gradient {
    background: var(--secondary-main) !important;
    color: white;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
}

.badge.bg-success-gradient {
    background: linear-gradient(135deg, var(--success-color) 0%, #16A085 100%) !important;
    color: white;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
}

.badge.bg-danger-gradient {
    background: linear-gradient(135deg, var(--danger-color) 0%, #A0304E 100%) !important;
    color: white;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
}

.badge.bg-info {
    background: var(--info-color) !important;
    color: white;
}

.badge.bg-warning {
    background: var(--warning-color) !important;
    color: white;
}

.badge.bg-success {
    background: var(--success-color) !important;
    color: white;
}

.badge.bg-danger {
    background: var(--danger-color) !important;
    color: white;
}

/* Post + Category Pages */
.page-hero {
    position: relative;
    padding: 5rem 0 3rem;
    background: radial-gradient(1200px circle at 10% -20%, rgb(191 134 18 / 15%), transparent 55%), linear-gradient(135deg, rgb(209 146 35 / 15%), rgba(15, 23, 42, 0.02));
    overflow: hidden;
}
.d-grid a{color:var(--primary-color)!important;}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    /*background-image: linear-gradient(90deg, rgba(15, 118, 110, 0.06) 1px, transparent 1px),*/
    /*                  linear-gradient(180deg, rgba(15, 118, 110, 0.06) 1px, transparent 1px);*/
    background-size: 48px 48px;
    opacity: 0.4;
    pointer-events: none;
}

.page-hero .hero-glow {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    /*background: radial-gradient(circle, rgba(20, 184, 166, 0.3), transparent 65%);*/
    top: -120px;
    left: -80px;
    filter: blur(10px);
    z-index: 1;
}

.page-hero .hero-shape {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 24% 76% 58% 42% / 36% 26% 74% 64%;
    background: radial-gradient(1200px circle at 10% -20%, rgb(191 134 18 / 15%), transparent 55%), linear-gradient(135deg, rgb(209 146 35 / 15%), rgba(15, 23, 42, 0.02));
    bottom: -90px;
    right: -40px;
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.breadcrumb-lite {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 0 0 1rem;
    list-style: none;
    color: var(--text-light);
    font-size: 0.9rem;
}

.breadcrumb-lite a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb-lite span {
    color: var(--text-muted);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0 0;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: var(--light-color);
    color: var(--primary-color);
    border: 1px solid var(--border);
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-card {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.hero-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.article-shell,
.category-shell {
    background: var(--primary);
}

.article-content-card {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.article-cover {
    width: 100%;
    object-fit: cover;
}

.article-body {
    padding: 2.5rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

/*.article-prose h2 {*/
/*    margin-top: 2rem;*/
/*    margin-bottom: 1rem;*/
/*    font-size: 1.6rem;*/
/*    color: var(--secondary-color);*/
/*}*/

/*.article-prose h3 {*/
/*    margin-top: 1.5rem;*/
/*    margin-bottom: 0.75rem;*/
/*    font-size: 1.25rem;*/
/*    color: var(--primary-dark);*/
/*}*/
.article-prose h2{color:#2e5d56;font-size:1.4rem;font-weight:bold;padding:0 15px;line-height:2rem}
.article-prose h3{font-size:1.2rem;text-align:center;line-height:2}
.article-prose h4{color:#565656;padding:0px 20px;line-height:1.7;font-size:1.1rem}
.article-prose h5{color:#FF0000;font-weight:bold;font-size:1.5rem;padding:0 14px;line-height:2;text-align:justify;}
.article-prose h6{color:#005C73;font-weight:bold;font-size:1.8rem;padding:0 14px;line-height:2;text-align:center;}

.article-prose p {
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 1.2rem;
}

.article-prose ul {
    padding: 0 1.2rem 0 0;
    color: var(--text-light);
}

.article-prose blockquote {
    margin: 2rem 0;
    padding: 1.5rem 1.75rem;
    background: var(--primary-soft);
    border-right: 4px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    color: var(--secondary-color);
}

.pull-quote {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    border-right: 4px solid var(--primary-color);
    padding: 0.5rem 1.5rem;
    margin: 2rem 0;
}

.callout {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(15, 23, 42, 0.05));
    border: 1px solid rgba(15, 118, 110, 0.2);
    margin: 2rem 0;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.tag-list .tag {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    color: var(--text-light);
    transition: var(--transition);
}

.tag-list .tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.article-share {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.related-grid {
    margin-top: 2.5rem;
}

.author-card {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    margin-top: 2.5rem;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: #ffffff;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
}

.author-card img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-card h5 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    display: block;
    padding: 0.6rem 0.8rem;
    border-radius: var(--border-radius-sm);
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.toc-list a:hover {
    background: var(--primary-soft);
    color: var(--primary-color);
}

.sticky-side {
    position: sticky;
    top: 10px;
}

.category-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.stat-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    padding: 1rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
}

.stat-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.category-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-pills .btn {
    border-radius: 999px;
    padding: 0.45rem 1rem;
}

.featured-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    background: #ffffff;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.featured-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.pagination-custom .page-link {
    border-radius: 10px !important;
    margin: 0 0.25rem;
    border: 1px solid var(--border-light);
    color: var(--primary-color);
    font-weight: 600;
}

.pagination-custom .page-link:hover {
    background: var(--primary-gradient);
    color: #ffffff;
    border-color: var(--primary-color);
}

.pagination-custom .page-item.active .page-link {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
}
footer {
    background: rgba(var(--bs-primary-rgb), 1) !important;
    position:relative;
}
.overlay-bg{
   content: "";
    background: #00000082;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    z-index: 0;
}
.footer .bi,.footer h4{
        color: var(--secondary-main) !important;
}

.footer a:hover{color:#d4af37!important;}
[data-bs-theme="dark"] .hero-card,
[data-bs-theme="dark"] .article-content-card,
[data-bs-theme="dark"] .sidebar-card,
[data-bs-theme="dark"] .author-card,
[data-bs-theme="dark"] .featured-card,
[data-bs-theme="dark"] .stat-card {
    background: #1F2937;
    border-color: #374151;
}

[data-bs-theme="dark"] p,[data-bs-theme="dark"] h5,[data-bs-theme="dark"] h2,[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] .toc-list a,
[data-bs-theme="dark"] .tag-list .tag,[data-bs-theme="dark"] li,[data-bs-theme="dark"] #themeToggle,[data-bs-theme="dark"] #searchBtn,[data-bs-theme="dark"] .card-title a {
    color: #D1D5DB !important;
}
[data-bs-theme="dark"] body,[data-bs-theme="dark"] .bg-light{
    background:var(--bs-body-bg)!important;
}
[data-bs-theme="dark"] .page-hero,[data-bs-theme="dark"] .article-shell,[data-bs-theme="dark"] footer {
    /*background: radial-gradient(1200px circle at 10% -20%, rgba(20, 184, 166, 0.25), transparent 55%),*/
    /*            linear-gradient(135deg, rgba(15, 118, 110, 0.15), rgba(15, 23, 42, 0.4));*/
    background:#202a37 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .carousel-item {
        height: 300px;
    }
    
    .carousel-caption {
        right: 5%;
        left: 5%;
        bottom: 10%;
        padding: 1.5rem;
    }
    
    .timeline {
        padding-right: 1rem;
    }
    
    .timeline-item {
        padding-right: 2rem;
    }
    
    .btn-floating {
        bottom: 1rem;
        left: 1rem;
        width: 45px;
        height: 45px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .hero-slide {
        height: 400px;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .custom-carousel-btn.carousel-control-prev {
        right: 60px;
    }
    
    .play-btn-large {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .page-hero {
        padding: 3.5rem 0 2rem;
    }

    .article-cover {
        height: 280px;
    }

    .article-body {
        padding: 1.75rem;
    }

    .featured-card {
        grid-template-columns: 1fr;
    }

    .sticky-side {
        position: static;
    }
}

@media (max-width: 576px) {
    .carousel-caption h3 {
        font-size: 1.3rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .search-box .form-control {
        font-size: 1rem;
        padding: 0.8rem;
    }
    
    .nav-pills .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
        margin: 0 0.1rem;
    }
    
    .timeline::before {
        right: -5px;
    }
    
    .timeline-item::before {
        right: -12px;
        width: 12px;
        height: 12px;
    }
    
    .hero-slide {
        height: 350px;
    }
    
    .hero-meta {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }
    
    .custom-carousel-btn.carousel-control-prev {
        right: 50px;
    }
    
    .custom-carousel-btn.carousel-control-next {
        right: 10px;
    }

    .hero-card img {
        height: 200px;
    }

    .article-cover {
        height: 220px;
    }

    .author-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn-floating,
    .modal,
    .loading-overlay,
    #searchBtn,
    #themeToggle,
    .carousel-control-prev,
    .carousel-control-next {
        display: none !important;
    }
    
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #cccccc;
        page-break-inside: avoid;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066CC;
        --shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
        --shadow-hover: 0 5px 25px rgba(0, 0, 0, 0.4);
    }
    
    .card {
        border: 2px solid #000000;
    }
    
    .btn {
        border-width: 2px;
    }
}
