:root {
    --primary-color: #1e1b4b; /* Deep indigo */
    --secondary-color: #f97316; /* Vibrant orange */
    --background-color: #f8fafc;
    --text-color: #334155;
    --light-gray: #f1f5f9;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --hover-color: #312e81;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    color: var(--white);
    margin-left: 15px;
}

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

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: 0.3s;
}

nav .nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav .nav-links li a {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--primary-color);
    padding: 10px 0;
}

nav .nav-links li a:hover {
    color: var(--secondary-color);
}

/* Main Content */
main {
    min-height: calc(100vh - 300px);
    padding-bottom: 50px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* Hero Section with Background */
.hero-bg-section {
    position: relative;
    background-image: linear-gradient(rgba(30, 27, 75, 0.8), rgba(30, 27, 75, 0.8)), url('https://urdunovelbook.com/wp-content/uploads/2025/12/Urdu-Novel-Book-Home-Page-Banner-8734.webp');
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    text-align: center;
    color: var(--white);
    margin-bottom: 50px;
}

.hero-bg-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-bg-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.hero-search-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
}

.hero-search-form input {
    flex-grow: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 30px 0 0 30px;
    font-size: 1.1rem;
    outline: none;
}

.hero-search-form button {
    padding: 15px 30px;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 0 30px 30px 0;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.hero-search-form button:hover {
    background-color: #ea580c;
}
.hero-slider-section {
    background: var(--white);
    padding: 60px 0;
    margin-bottom: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.hero-welcome {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.hero-welcome h1 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hero-welcome p {
    font-size: 1.15rem;
    color: #555;
}

.swiper {
    width: 100%;
    padding: 20px 0 50px 0;
}

.slider-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.slider-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.slider-content {
    padding: 20px;
    text-align: center;
}

.slider-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.slider-content h3 a {
    color: var(--primary-color);
}

.slider-content p {
    color: #666;
    font-size: 0.9rem;
}

.swiper-pagination-bullet-active {
    background: var(--secondary-color) !important;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--secondary-color) !important;
}

.novel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

/* Novel Card */
.novel-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.novel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.novel-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    background-color: var(--light-gray);
    display: block;
}

.novel-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.novel-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.novel-author {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.read-btn {
    margin-top: auto;
    display: block;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.read-btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Single Post Page */
.post-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
}

.post-content-area {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.post-header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.post-main-image {
    width: 250px;
    height: 360px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.post-meta h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.meta-details {
    margin-bottom: 25px;
}

.meta-details p {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

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

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

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

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.post-description {
    margin-top: 30px;
}

.post-description h2 {
    margin-bottom: 15px;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.post-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}

/* Sidebar */
.sidebar {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: max-content;
}

.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
    position: relative;
}

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

.widget ul {
    list-style: none;
}

.widget ul li {
    margin-bottom: 12px;
}

.widget ul li a {
    color: #555;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
}

.widget ul li a::before {
    content: '›';
    margin-right: 8px;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.widget ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* Pages Styling (Legal, About, etc.) */
.page-content {
    background: var(--white);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    max-width: 900px;
    margin: 0 auto;
}

.page-content h1 {
    margin-bottom: 30px;
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
}

.page-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.page-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.page-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #bdc3c7;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about .logo {
    color: var(--white);
    margin-bottom: 20px;
    display: inline-block;
}

.footer-about p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-widget h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

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

.footer-widget ul {
    list-style: none;
}

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

.footer-widget ul li a {
    color: #bdc3c7;
}

.footer-widget ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .post-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        position: relative;
    }
    nav .nav-links {
        display: none;
        z-index: 999;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .post-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .post-main-image {
        width: 100%;
        max-width: 300px;
        height: auto;
    }
    .action-buttons {
        justify-content: center;
    }
    .page-content {
        padding: 30px 20px;
    }
    .hero-bg-content h1 {
        font-size: 2.2rem;
    }
    .hero-bg-section {
        padding: 60px 20px;
    }
}
