/* Design System */
:root {
    --primary-color: #dc3545; /* Crimson */
    --primary-hover: #b02a37;
    --navy-dark: #0a192f;
    --navy-light: #112240;
    --text-main: #ccd6f6;
    --text-bright: #ffffff;
    --text-dim: #8892b0;
    --white: #ffffff;
    --glass-bg: rgba(10, 25, 47, 0.85);
    --card-bg: #112240;
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Base Styles */
body {
    background-color: var(--navy-dark);
    font-family: 'Sora', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-bright);
    font-weight: 700;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--navy-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--navy-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Utilities */
.text-crimson { color: var(--primary-color) !important; }
.bg-crimson { background-color: var(--primary-color) !important; }
.bg-navy-light { background-color: var(--navy-light) !important; }



/* Navbar */
.navbar {
    background: transparent;
    transition: var(--transition);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background: var(--glass-bg);
    padding: 0.5rem 0;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white) !important;
}

.nav-link {
    color: var(--text-main) !important;
    font-weight: 500;
    padding: 0.5rem 1.5rem !important;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    padding: 160px 0 100px;
    background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.8)), url('https://images.unsplash.com/photo-1454165833767-0275fe8b76e6?auto=format&fit=crop&q=80&w=2000') no-repeat center center/cover;
}

.featured-card {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 3rem;
    transition: var(--transition);
}

.featured-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

/* Blog Cards */
.blog-card {
    background: var(--navy-light);
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px -15px rgba(2, 12, 27, 0.7);
}

.blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .card-img-top {
    transform: scale(1.1);
}

.blog-card .card-body {
    padding: 1.5rem;
}

.category-badge {
    background: rgba(220, 53, 69, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

.read-more-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.read-more-btn:hover {
    gap: 0.8rem;
}

/* Sidebar */
.sidebar-widget {
    background: var(--navy-light);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.newsletter-box input {
    background: var(--navy-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
}

.newsletter-box input:focus {
    background: var(--navy-dark);
    border-color: var(--primary-color);
    box-shadow: none;
    color: var(--white);
}

/* Footer */
footer {
    background: #020c1b;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-link {
    color: var(--text-dim);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 0.8rem;
}

.footer-link:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 600px;
    max-width: 90%;
    text-align: center;
}

.search-input {
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--primary-color);
    color: var(--white);
    font-size: 2.5rem;
    width: 100%;
    padding: 1rem 0;
    text-align: center;
    font-family: 'Outfit', sans-serif;
}

.search-input:focus {
    outline: none;
}

.close-search {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-search:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

/* Filter Bar */
.filter-bar {
    background: var(--navy-light);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.sort-select {
    background: var(--navy-dark);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

/* Blog Details */
.article-header {
    padding: 140px 0 60px;
    background: var(--navy-light);
}

.article-content {
    font-size: 1.15rem;
    color: var(--text-main);
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--white);
    margin: 2rem 0;
}

.article-content img {
    border-radius: 15px;
    margin: 2rem 0;
    width: 100%;
}

.blog_main_img{
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* Related Tags */
.tags-section {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin: 3rem 0;
}

.tag-item {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.tag-item:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Comments Section */
.comments-container {
    padding-top: 3rem;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin-bottom: 4rem;
}

.comment-item {
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--navy-light);
    border-radius: 15px;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

.comment-content h6 {
    margin-bottom: 0.2rem;
}

/* Comment Form */
.comment-form-group {
    margin-bottom: 1.5rem;
}

.comment-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.comment-form-group input, 
.comment-form-group textarea {
    width: 100%;
    background: var(--navy-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    color: var(--white);
    transition: var(--transition);
}

.comment-form-group input:focus, 
.comment-form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s ease forwards;
}

.ad_float{
    position: fixed;
    bottom: 30px;
    right: 30px;
    border-radius: 50%;
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    z-index: 9999;
}

.ad_float a{
    font-size: 20px;
    color: var(--navy-dark);
    display: block;
}
