:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --accent: #6366f1;
    /* Indigo */
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.dark-theme {
    background: var(--bg-color);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Nav Styles */
.main-nav {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #334155;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    text-decoration: none;
    color: white;
}

.accent {
    color: var(--accent);
}

.desktop-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.desktop-menu a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.desktop-menu a:hover {
    color: var(--accent);
}

/* Buttons */
.btn-login {
    background: none;
    border: 1px solid var(--accent);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-signup {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    margin-left: 10px;
}

/* Auto Slider */
.slider-container {
    margin-top: 30px;
    height: 500px;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 60px;
}

.slide {
    position: absolute;
    opacity: 0;
    visibility: hidden; /* Ye zaroori hai */
    z-index: 1;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    visibility: visible; /* Active hone par nazar aaye */
    z-index: 10; /* Active slide hamesha upar ho taake click ho sake */
}

.slide-info {
    max-width: 600px;
    transform: translateY(20px);
    transition: 0.8s;
}

.slide.active .slide-info {
    transform: translateY(0);
}

.slide-tag {
    background: var(--accent);
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}

.btn-slide {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: white;
    color: black;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
}

/* Intro Heading Animation */
.intro-box {
    text-align: center;
    margin: 80px 0;
}

.animate-text {
    font-size: 40px;
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeIn 2s ease-in-out;
}

.line-animate {
    height: 4px;
    width: 100px;
    background: var(--accent);
    margin: 15px auto;
    border-radius: 2px;
    animation: expand 1.5s infinite alternate;
}

@keyframes expand {
    from {
        width: 50px;
    }

    to {
        width: 150px;
    }
}

/* 2-Column Grid */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.art-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.4s;
    border: 1px solid #334155;
}

.art-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
}

.art-img {
    height: 250px;
    overflow: hidden;
}

.art-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.art-content {
    padding: 30px;
}

.art-content h3 {
    margin-bottom: 15px;
}

.art-content a {
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
}

/* Sidebar Mobile */
.sidebar {
    position: fixed;
    right: -300px;
    top: 0;
    width: 300px;
    height: 100%;
    background: var(--bg-color);
    z-index: 1001;
    transition: 0.5s;
    padding: 40px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.sidebar.active {
    right: 0;
}

.sidebar-links a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 0;
    font-size: 18px;
    border-bottom: 1px solid #334155;
}

/* Desktop par menu icon ko hide karne ke liye */
.menu-trigger {
    display: none;
    /* By default hide rahega */
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

/* Mobile (900px se kam) par show karne ke liye */
@media (max-width: 900px) {
    .menu-trigger {
        display: block;
        /* Sirf mobile/tablet par nazar ayega */
    }
}


/* Footer */
.footer {
    background: #020617;
    padding: 80px 0 40px;
    margin-top: 100px;
    border-top: 1px solid #334155;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
}

.footer-col h4 {
    margin-bottom: 25px;
    color: var(--accent);
}

.footer-col a {
    color: var(--text-dim);
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    color: var(--text-dim);
    font-size: 14px;
}

.subscribe {
    display: flex;
    gap: 5px;
}

.subscribe input {
    background: #1e293b;
    border: none;
    padding: 10px;
    color: white;
    border-radius: 5px;
    width: 70%;
}

.subscribe button {
    background: var(--accent);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 900px) {
    .grid-layout {
        grid-template-columns: 1fr;
    }

    .desktop-menu,
    .hide-mobile {
        display: none;
    }

    .animate-text {
        font-size: 28px;
    }
}

/* Mobile Footer aur overall responsiveness */
@media (max-width: 768px) {

    /* Footer columns ko ek ke niche ek karne ke liye */
    .footer-grid {
        grid-template-columns: 1fr !important;
        /* Columns khatam kar k 1 row bana di */
        gap: 30px;
        text-align: center;
    }

    .footer-col {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .subscribe {
        width: 100%;
        justify-content: center;
    }

    /* Logo ko center karne k liye mobile par */
    .nav-wrapper {
        padding: 0 10px;
    }
}










/* Article Page Layout */
.article-container {
    margin-top: 50px;
}

.article-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.breadcrumb {
    color: var(--accent);
    font-size: 13px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-title {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    color: var(--text-dim);
    font-size: 14px;
}

.post-meta img {
    width: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent);
}

.featured-img {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
}

.featured-img img {
    width: 100%;
    height: auto;
    display: block;
}

.post-body {
    line-height: 1.8;
    color: #cbd5e1;
    font-size: 18px;
}

.post-body h2 {
    color: white;
    margin: 35px 0 15px;
    font-size: 28px;
}

.post-body p {
    margin-bottom: 25px;
}

.dropcap {
    font-size: 22px;
    color: white;
}

.dropcap::first-letter {
    font-size: 55px;
    font-weight: 800;
    float: left;
    margin-right: 10px;
    color: var(--accent);
    line-height: 1;
}

blockquote {
    border-left: 5px solid var(--accent);
    padding: 20px 30px;
    background: var(--card-bg);
    font-style: italic;
    font-size: 20px;
    margin: 40px 0;
    border-radius: 0 15px 15px 0;
}

.share-box {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #334155;
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-btn {
    background: #334155;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.share-btn:hover {
    background: var(--accent);
}

/* Sidebar Widgets */
.sidebar-widget {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 1px solid #334155;
}

.sidebar-widget h4 {
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 5px;
}

.related-list {
    list-style: none;
}

.related-list li {
    margin-bottom: 20px;
}

.related-list a {
    display: block;
    color: white;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 5px;
}

.related-list span {
    font-size: 12px;
    color: var(--text-dim);
}

/* Mobile View for Article */
@media (max-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .post-title {
        font-size: 30px;
    }

    .post-sidebar {
        order: 2;
    }

    .post-main {
        order: 1;
    }
}


/* Sidebar Email Widget Style */
.sidebar-widget.promo {
    background: linear-gradient(145deg, #1e293b, #111827);
    border: 1px solid var(--accent);
    padding: 30px;
    text-align: center;
}

.sidebar-widget.promo h4 {
    color: white;
    font-size: 20px;
    margin-bottom: 10px;
    border: none; /* Border hata di mazeed safai k liye */
}

.sidebar-widget.promo p {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 20px;
}

/* Input Field Style */
.sidebar-widget.promo input[type="email"] {
    width: 100%;
    background: #0f172a;
    border: 1px solid #334155;
    padding: 12px 15px;
    border-radius: 10px;
    color: white;
    font-family: inherit;
    margin-bottom: 15px;
    outline: none;
    transition: 0.3s;
}

.sidebar-widget.promo input[type="email"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Subscribe Button Style */
.sidebar-widget.promo .btn-signup {
    width: 100%;
    margin: 0;
    padding: 12px;
    background: var(--accent);
    color: white;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.4s;
}

.sidebar-widget.promo .btn-signup:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}



/* Modal Background */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

/* Modal Box */
.modal-content {
    background-color: var(--card-bg);
    margin: 10% auto;
    padding: 40px;
    border: 1px solid var(--accent);
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    right: 20px; top: 15px;
    font-size: 28px;
    color: var(--text-dim);
    cursor: pointer;
}

.modal-content h2 { margin-bottom: 10px; color: white; }
.modal-content p { color: var(--text-dim); margin-bottom: 25px; }

.modal-content input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: var(--bg-color);
    border: 1px solid #334155;
    border-radius: 10px;
    color: white;
    outline: none;
}

.modal-content input:focus { border-color: var(--accent); }

.modal-content button { width: 100%; padding: 12px; margin-top: 10px; }

/* Google Button & Separator */
.separator {
    margin: 20px 0;
    position: relative;
    text-align: center;
    border-bottom: 1px solid #334155;
    line-height: 0.1em;
}

.separator span {
    background: var(--card-bg);
    padding: 0 10px;
    color: var(--text-dim);
    font-size: 12px;
}

.btn-google {
    width: 100%;
    background: white;
    color: #1a1a1a;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-google img {
    width: 20px;
    height: 20px;
}

.btn-google:hover {
    background: #f1f1f1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}



/* --- Video Container Styling --- */
.featured-img {
    width: 100%;
    display: flex;
    justify-content: center; /* Video ko center mein rakhne ke liye */
    margin: 30px 0;
    padding: 0 10px;
}

/* --- Main Video Element --- */
.featured-img video {
    width: 100%;
    max-width: 650px; /* PC par video zyada bari nahi hogi */
    height: auto; /* Aspect ratio barkarar rakhne ke liye */
    border: 2px solid #334155; /* Border color theme ke mutabiq */
    border-radius: 30px; /* Rounded corners */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4); /* Thora depth dene ke liye shadow */
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Hover effect sirf desktop par */
.featured-img video:hover {
    transform: scale(1.01);
    border-color: var(--accent, #6366f1);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .featured-img {
        margin: 20px 0;
        padding: 0;
    }

    .featured-img video {
        max-width: 100%; /* Mobile par poori screen cover karega */
        border-radius: 15px; /* Mobile par rounded corners thore kam */
        border-width: 1px;
    }
}


/* Container for buttons to keep them side-by-side */
.art-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap; /* Mobile par adjust hone ke liye */
}

/* Base style for both buttons */
.art-buttons a {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    flex: 1; /* Dono buttons barabar width ke honge */
    min-width: 120px;
}

/* View Details Button (Outline Style) */
.btn-details {
    background: transparent;
    color: #f8fafc;
    border: 1px solid #6366f1;
}

.btn-details:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: #818cf8;
    transform: translateY(-2px);
}

/* Buy Now Button (Solid Accent Style) */
.btn-buy {
     background: #372fd4;
    border-color: #4f46e5;
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-buy:hover {
    background: #372fd4;
    border-color: #4f46e5;
    color: white;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

/* Price highlighting */
.price {
    color: #00ff7f; /* Spring Green for price */
    font-weight: bold;
    font-size: 1.1em;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .art-buttons {
        flex-direction: column; /* Mobile par upar neeche buttons */
    }
    .art-buttons a {
        width: 100%;
    }
}
.share-box button a {
    color: white;
    text-decoration: none;
}
/* Responsive Video for Mobile Devices */
@media screen and (max-width: 768px) {
    .img img {
        width: 100% !important; /* Full width on tablets and phones */
        height: auto !important; /* Aspect ratio maintain rahega */
        max-width: 350px; /* Tablet par thora chota dikhe */
        border-radius: 30px !important; /* Mobile ke hisab se radius kam */
        display: block;
        margin: 0 auto; /* Center alignment */
    }
    
}

@media screen and (max-width: 480px) {
   
    .img img {
        width: 100%;
        height: 100%;
}
}
@media screen and (min-width: 480px) {
  
    .img img {
        width: 100%;
        height: 100%;
}
}

.img img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}