﻿/* ============================================
   MAIN STYLESHEET - Phule Shahu Ambedkar
   ============================================
   This file includes styles for:
   - Global styles (header, footer, layout)
   - Home page (index.php)
   - Category page (category.php)
   - Single article page (single.php)
   - Search page (search.php)
   - Books page (All_Book.php)
   - News page (news.php) - News specific styles
   - Book page (book.php)
   ============================================ */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* ===== HEADER STYLES - MODERN REDESIGN ===== */
.site-header {
    background: linear-gradient(135deg, #0f2b5e 0%, #1a3c7a 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #f39c12;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    gap: 30px;
}

/* Logo Styles */
.logo {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.logo h1 {
    font-size: 2.4rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #ffffff 0%, #f8f9fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.logo h1 a {
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    padding: 5px 0;
}

.logo h1 a:hover {
    color: #f39c12;
    transform: translateY(-2px);
    text-shadow: 0 4px 8px rgba(243, 156, 18, 0.3);
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.85;
    color: #d1e0ff;
    font-weight: 400;
    letter-spacing: 0.3px;
    margin: 0;
    max-width: 500px;
    line-height: 1.4;
}

/* Search Form Styles */
.search-form {
    flex: 0 0 auto;
    margin: 0 20px;
}

.search-form form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-form input[type="text"] {
    padding: 14px 20px;
    border: none;
    border-radius: 30px;
    width: 280px;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.search-form input[type="text"]:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.2);
    width: 320px;
}

.search-form button {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(243, 156, 18, 0.3);
}

.search-form button:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 15px rgba(243, 156, 18, 0.4);
}

.search-form button:active {
    transform: translateY(0) scale(0.98);
}

/* Navigation Styles - Modern Design */
.main-nav {
    display: flex;
    gap: 2px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1;
    justify-content: flex-end;
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.main-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.main-nav a:hover {
    background: rgba(243, 156, 18, 0.15);
    color: #ffd166;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(243, 156, 18, 0.2);
}

.main-nav a:hover::before {
    left: 100%;
}

.main-nav a.active {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.25) 0%, rgba(230, 126, 34, 0.25) 100%);
    color: #ffd166;
    box-shadow: 0 4px 8px rgba(243, 156, 18, 0.25);
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.main-nav a i {
    font-size: 1.1rem;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Dropdown Styles - Enhanced */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    color: #333;
    padding: 14px 20px;
    border-bottom: 1px solid #f1f3f5;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
    color: #1e3c72;
    padding-left: 25px;
}

.dropdown-content a i {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Main Container */

/* Hero Section */
.hero {
    background: linear-gradient(rgba(30, 60, 114, 0.9), rgba(44, 62, 80, 0.9)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 40px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: #f39c12;
    color: white;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Content Layout */
.content-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.main-content {
    flex: 70%;
    min-width: 300px;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}


/* Section Headers */
.section-header {
    border-bottom: 3px solid #1e3c72;
    padding-bottom: 15px;
    margin-bottom: 25px;
    color: #2c3e50;
}

.section-header h3 {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h3 i {
    color: #f39c12;
}

/* Featured Items */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.featured-item {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e9ecef;
}

.featured-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.featured-image {
    height: 180px;
    background: #ddd;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-item:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    padding: 20px;
}

.featured-content h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.featured-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.read-more {
    color: #1e3c72;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    color: #f39c12;
}

/* Sidebar Widgets */
.widget {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.widget h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget a:hover {
    color: #1e3c72;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 50px 40px 20px;
    margin-top: 50px;
    width: 100%;
}

.footer-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #f39c12;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #f39c12;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #f39c12;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 20px 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
}

/* ===== RESPONSIVE DESIGN - HEADER ===== */
@media (max-width: 1200px) {
    .header-content {
        padding: 15px 30px;
        max-width: 100%;
        gap: 20px;
    }
    
    .search-form input[type="text"] {
        width: 240px;
    }
    
    .search-form input[type="text"]:focus {
        width: 280px;
    }
    
    .main-nav a {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        gap: 25px;
        text-align: center;
        padding: 20px 30px;
    }
    
    .logo {
        align-items: center;
        order: 1;
    }
    
    .logo h1 {
        font-size: 2.2rem;
    }
    
    .tagline {
        max-width: 100%;
        font-size: 1rem;
    }
    
    .search-form {
        order: 2;
        margin: 10px 0;
        width: 100%;
        max-width: 500px;
    }
    
    .search-form form {
        justify-content: center;
    }
    
    .search-form input[type="text"] {
        width: 100%;
        max-width: 400px;
    }
    
    .search-form input[type="text"]:focus {
        width: 100%;
        max-width: 400px;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        padding: 8px;
        margin-top: 10px;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 15px 20px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 15px;
    }
    
    .logo {
        order: 1;
        flex: 1;
        min-width: 200px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .tagline {
        display: none; /* Hide tagline on smaller screens */
    }
    
    .search-form {
        order: 3;
        width: 100%;
        margin: 10px 0 0 0;
        display: none; /* Hide search on mobile, show in menu */
    }
    
    .search-form.active {
        display: block;
    }
    
    /* Mobile menu toggle */
    .menu-toggle {
        display: block;
        order: 2;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #0f2b5e 0%, #1a3c7a 100%);
        flex-direction: column;
        padding: 20px;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        border-top: 3px solid #f39c12;
        z-index: 999;
        animation: slideDown 0.3s ease-out;
        order: 4;
        width: 100%;
        margin-top: 10px;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .main-nav a {
        padding: 16px 20px;
        border-radius: 8px;
        margin: 4px 0;
        justify-content: center;
        font-size: 1.1rem;
    }
    
    .main-nav a:hover {
        background: rgba(243, 156, 18, 0.2);
        transform: translateX(5px);
    }
    
    /* Show search in mobile menu */
    .mobile-search {
        display: block;
        margin: 15px 0;
        padding: 15px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
    }
    
    .mobile-search .search-form {
        display: block;
        margin: 0;
    }
    
    .mobile-search input[type="text"] {
        width: 100%;
        max-width: none;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin: 10px 0 0 20px;
        width: calc(100% - 40px);
    }
    
    .dropdown-content a {
        color: #e9ecef;
        padding: 12px 20px;
    }
    
    .hero {
        padding: 50px 20px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .content-layout {
        flex-direction: column;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 12px 15px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .main-nav {
        padding: 15px;
    }
    
    .main-nav a {
        padding: 14px 18px;
        font-size: 1rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .section-header h3 {
        font-size: 1.5rem;
    }
}

/* Mobile menu animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Homepage Styles */
.homepage-hero {
    background: linear-gradient(135deg, #2c3e50 0%, #4a6491 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-radius: 8px;
    margin: 30px auto;
    max-width: 1200px;
}

.homepage-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.homepage-hero p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: #f39c12;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background: #e67e22;
}

.btn-outline {
    background: transparent;
    border: 2px solid #f39c12;
    color: #f39c12;
}

.btn-outline:hover {
    background: #f39c12;
    color: white;
}

.section-title {
    font-size: 2rem;
    margin: 40px 0 30px;
    color: #2c3e50;
    border-bottom: 3px solid #f39c12;
    padding-bottom: 10px;
}

.section-title i {
    margin-right: 10px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.news-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #f39c12;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.news-card-content {
    padding: 20px;
}

.news-card-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.news-card-title a {
    color: #2c3e50;
    text-decoration: none;
}

.news-card-title a:hover {
    color: #f39c12;
}

.news-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.news-card-meta span i {
    margin-right: 5px;
}

.news-card-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: #f39c12;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.read-more:hover i {
    transform: translateX(5px);
}

.view-all-container {
    text-align: center;
    margin: 40px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    color: #f39c12;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.no-articles {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #7f8c8d;
}

/* News Listing Page Styles */
.page-header {
    margin: 40px 0 30px;
    margin: 40px 0 30px;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 800px;
    margin: 0 auto 30px;
}

.filter-bar {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c3e50;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background: #f9f9f9;
    transition: border 0.3s;
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: #f39c12;
    outline: none;
    background: white;
}

.results-info {
    margin-bottom: 20px;
    font-size: 1rem;
    color: #555;
}

.pagination {
    margin: 50px 0 30px;
    text-align: center;
}

.pagination ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.pagination li {
    margin: 0;
}

.pagination li a,
.pagination li span {
    display: block;
    padding: 12px 18px;
    background: white;
    color: #2c3e50;
    text-decoration: none;
    border-right: 1px solid #eee;
    transition: background 0.3s;
}

.pagination li:last-child a,
.pagination li:last-child span {
    border-right: none;
}

.pagination li a:hover {
    background: #f39c12;
    color: white;
}

.pagination li.active a {
    background: #2c3e50;
    color: white;
    font-weight: bold;
}

.pagination li.disabled span {
    background: #f9f9f9;
    color: #aaa;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-group {
        min-width: auto;
    }
    .pagination ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .pagination li a,
    .pagination li span {
        padding: 10px 14px;
    }
}

/* News Detail Page Styles */
.article-error {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 40px auto;
    max-width: 800px;
}

.article-error h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.article-detail {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.article-breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.article-breadcrumb a {
    color: #f39c12;
    text-decoration: none;
}

.article-breadcrumb a:hover {
    text-decoration: underline;
}

.article-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.article-meta span i {
    margin-right: 5px;
}

.article-featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    font-style: italic;
    color: #666;
}

.article-excerpt {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #2c3e50;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #f39c12;
    border-radius: 4px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    border-left: 4px solid #f39c12;
    padding-left: 20px;
    margin-left: 0;
    font-style: italic;
    color: #555;
}

.article-content iframe {
    max-width: 100%;
    border: none;
    border-radius: 8px;
    margin: 20px 0;
}

.article-extra {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.article-extra h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    .article-navigation {
        flex-direction: column;
        gap: 15px;
    }
}

/* Modern Homepage Styles */
.hero {
    background: linear-gradient(rgba(30, 60, 114, 0.9), rgba(44, 62, 80, 0.9)), url('https://phuleshahuambedkars.com/image/Phule_shahu_ambedkar.webp');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 5rem 2rem;
    margin: 2rem auto;
    border-radius: 15px;
    max-width: 1200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}
.container > h2 {
    grid-column: 1 / -1;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img {
    height: 180px;
    background: #ddd;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.card:hover .card-img img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card h3 {
    margin-bottom: 0.8rem;
    color: #2c3e50;
}

.card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.85rem;
}

.pagination {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
    gap: 0.5rem;
}

.pagination a {
    display: inline-block;
    padding: 0.6rem 1rem;
    background: white;
    color: #1e3c72;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #1e3c72;
    color: white;
    border-color: #1e3c72;
}

.pagination .active {
    background: #1e3c72;
    color: white;
    border-color: #1e3c72;
    font-weight: bold;
}

.sidebar {
    flex: 30%;
    min-width: 250px;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.widget {
    margin-bottom: 2rem;
}

.widget h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #1e3c72;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 0.7rem 0;
    border-bottom: 1px dashed #eee;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.widget a:hover {
    color: #1e3c72;
}

.view-count {
    font-size: 0.8rem;
    color: #888;
    margin-left: 0.5rem;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box form {
    display: flex;
    margin: 0;
}

.search-box input {
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 20px 0 0 20px;
    font-size: 0.95rem;
    width: 200px;
    outline: none;
}

.search-box button {
    background: #f39c12;
    color: white;
    border: none;
    border-radius: 0 20px 20px 0;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #e67e22;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.newsletter-form input {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s;
}

.newsletter-form input:focus {
    border-color: #1e3c72;
}

.newsletter-form button {
    background: #1e3c72;
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #2c3e50;
}

/* =========================================== */
/* NEW MODERN STYLES FOR HOMEPAGE REDESIGN */
/* =========================================== */

/* Main Layout */
.main-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

/* News Grid Section */
.news-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.2rem;
    color: #1e3c72;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #f39c12;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: #1e3c72;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.news-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.news-title a:hover {
    color: #f39c12;
}

.news-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.9rem;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    color: #1e3c72;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.pagination a:hover {
    background: #1e3c72;
    color: white;
    transform: translateY(-3px);
}

.pagination a.active {
    background: #f39c12;
    color: white;
}

/* Books Carousel */
.books-section {
    margin-bottom: 60px;
}

.books-carousel {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.books-container {
    display: flex;
    gap: 25px;
    transition: transform 0.5s ease;
    padding: 10px;
    position: relative;
}

.book-card {
    flex: 0 0 calc(25% - 19px);
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease, left 0.5s ease;
    position: relative;
    will-change: transform, opacity, left;
    transform: translateZ(0); /* Hardware acceleration */
}

.book-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.book-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.book-card:hover .book-image img {
    transform: scale(1.1);
}

.book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 60, 114, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.book-card:hover .book-overlay {
    opacity: 1;
}

.book-overlay-content {
    text-align: center;
    color: white;
    padding: 20px;
}

.book-overlay-content h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.book-overlay-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    background: #f39c12;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.read-more:hover {
    background: #e67e22;
}

.book-content {
    padding: 20px;
}

.book-title {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
}

.book-author {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid #1e3c72;
    color: #1e3c72;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: #1e3c72;
    color: white;
    transform: scale(1.1);
}

/* Instagram/Facebook Style Overlay Card */
.book-card.overlay-card {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.1), rgba(44, 62, 80, 0.05));
    border: 2px dashed rgba(30, 60, 114, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.9;
    transition: all 0.4s ease;
}

.book-card.overlay-card:hover {
    opacity: 1;
    transform: translateY(-10px) scale(1.02);
    border-color: #1e3c72;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.15), rgba(44, 62, 80, 0.1));
    box-shadow: 0 20px 40px rgba(30, 60, 114, 0.15);
}

.overlay-content {
    text-align: center;
    padding: 30px;
    width: 100%;
}

.overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.overlay-icon {
    font-size: 3rem;
    color: #1e3c72;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.book-card.overlay-card:hover .overlay-icon {
    transform: translateX(5px);
}

.overlay-inner h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0;
}

.overlay-inner p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.9;
}

.see-more-btn {
    background: linear-gradient(135deg, #1e3c72, #2c3e50);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.2);
}

.see-more-btn:hover {
    background: linear-gradient(135deg, #2c3e50, #1e3c72);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.3);
}

/* Carousel Navigation Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dots .dot:hover {
    background: #aaa;
    transform: scale(1.2);
}

.carousel-dots .dot.active {
    background: #1e3c72;
    transform: scale(1.3);
}

/* Carousel Info (Pagination Info) */
.carousel-info {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 0.9rem;
}

.carousel-info p {
    margin: 0;
}

.carousel-info span {
    font-weight: bold;
    color: #1e3c72;
}

/* Carousel Pagination Controls */
.carousel-pagination {
    margin-top: 30px;
    text-align: center;
}

.carousel-pagination .pagination {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
}

.carousel-pagination .pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f8f9fa;
    color: #1e3c72;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-pagination .pagination a:hover {
    background: #1e3c72;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.2);
}

.carousel-pagination .pagination a.active {
    background: #f39c12;
    color: white;
    border-color: #f39c12;
}

.carousel-pagination .pagination a.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.carousel-pagination .pagination a.disabled:hover {
    background: #f8f9fa;
    color: #1e3c72;
    transform: none;
    box-shadow: none;
}

.carousel-pagination .pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #666;
    font-weight: 600;
}

/* Invites/Anniversaries Section */
.invites-section {
    margin-bottom: 60px;
}

.invites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.invite-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 20px;
}

.invite-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.invite-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1e3c72, #2c3e50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.invite-icon i {
    font-size: 1.8rem;
    color: white;
}

.invite-content h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.invite-content p {
    color: #666;
    font-size: 0.9rem;
}

/* Sidebar Widgets */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.widget {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 1.4rem;
    color: #1e3c72;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f39c12;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title i {
    color: #f39c12;
}

/* Featured Image Widget */
.featured-image-widget {
    text-align: center;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.featured-image-widget img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 15px 15px 0 0;
    display: block;
}

.featured-image-content {
    padding: 20px;
}

.featured-image-content h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.featured-image-content p {
    color: #666;
    font-size: 0.95rem;
}

/* Popular Posts Widget */
.popular-posts ul {
    list-style: none;
}

.popular-posts li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
}

.popular-posts li:last-child {
    border-bottom: none;
}

.popular-rank {
    width: 35px;
    height: 35px;
    background: #f39c12;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.popular-content h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.popular-content h4 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.popular-content h4 a:hover {
    color: #f39c12;
}

.popular-views {
    color: #888;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Categories Widget */
.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-tag {
    display: inline-block;
    background: #f8f9fa;
    color: #1e3c72;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}

.category-tag:hover {
    background: #f0f4ff;
    color: #1e3c72;
    border-color: #1e3c72;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.1);
}

/* Show More Categories Button */
.show-more-categories {
    width: 100%;
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e0e0e0;
}

.more-categories-btn {
    background: linear-gradient(135deg, #1e3c72, #2c3e50);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(30, 60, 114, 0.2);
}

.more-categories-btn:hover {
    background: linear-gradient(135deg, #2c3e50, #1e3c72);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

.more-categories-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.more-categories-btn:hover i {
    transform: translateY(2px);
}

/* Instagram/Facebook Style Arrow Overlay Card */
.book-card.arrow-overlay-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(30, 60, 114, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.9;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.book-card.arrow-overlay-card:hover {
    opacity: 1;
    transform: translateY(-5px) scale(1.02);
    border-color: #1e3c72;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 15px 35px rgba(30, 60, 114, 0.15);
}

.book-card.arrow-overlay-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.05), rgba(44, 62, 80, 0.03));
    z-index: 1;
}

.arrow-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-content {
    text-align: center;
    padding: 20px;
}

.arrow-icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.arrow-icon {
    font-size: 2.5rem;
    color: #1e3c72;
    transition: all 0.3s ease;
    background: rgba(30, 60, 114, 0.1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(30, 60, 114, 0.3);
}

.book-card.arrow-overlay-card:hover .arrow-icon {
    transform: translateX(5px) scale(1.1);
    background: rgba(30, 60, 114, 0.15);
    border-color: #1e3c72;
    color: #1e3c72;
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.2);
}

.arrow-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    background: rgba(30, 60, 114, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.book-card.arrow-overlay-card:hover .arrow-text {
    background: rgba(30, 60, 114, 0.15);
    color: #1e3c72;
    transform: translateY(-2px);
}

.arrow-hover-text {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.book-card.arrow-overlay-card:hover .arrow-hover-text {
    opacity: 1;
    transform: translateY(0);
    max-height: 100px;
}

.arrow-hover-text p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    padding: 5px 0;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .book-card {
        flex: 0 0 calc(33.333% - 17px);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .book-card {
        flex: 0 0 calc(50% - 13px);
    }
    
    .invites-grid {
        grid-template-columns: 1fr;
    }
    
    .header-top {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .search-form input[type="text"] {
        width: 250px;
    }
}

@media (max-width: 576px) {
    .book-card {
        flex: 0 0 100%;
    }
    
    .pagination a {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}
\n\n/* ============================================ */\n/* NEWS PAGE SPECIFIC STYLES (Appended from newsCSSTest.css) */\n/* ============================================ */\n\n/* ============================================
   news.css - Modern News Page Styling
   Version: 1.0 | Responsive | Clean & Professional
   ============================================ */

/* ---------- Global Styles for News Page ---------- */
.news-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Segoe UI', 'Poppins', system-ui, -apple-system, sans-serif;
}

/* ---------- Breadcrumb Navigation ---------- */
.breadcrumb {
    margin-bottom: 2rem;
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #6c757d;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb a {
    color: #1e3c72;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #f39c12;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: #adb5bd;
}

.breadcrumb .current {
    color: #495057;
    font-weight: 500;
}

/* ---------- Main Layout (Article + Sidebar) ---------- */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
}

@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .news-page-container {
        padding: 1rem;
    }
}

/* ---------- Main Article Content ---------- */
.main-content {
    min-width: 0; /* Prevent overflow */
}

/* Article Header */
.article-header {
    margin-bottom: 2rem;
    
}

.article-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    color: #2c3e50;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }
}

/* Article Meta Data */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.article-meta i {
    margin-right: 0.3rem;
    color: #1e3c72;
}

/* Featured Image */
.article-featured-image {
    margin: 1.5rem 0 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.article-featured-image:hover img {
    transform: scale(1.02);
}

.image-caption {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Article Content */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.article-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #f39c12;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #495057;
    border-radius: 0 12px 12px 0;
}

/* ---------- Social Share Section ---------- */
.social-share-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 16px;
    margin: 2rem 0;
    text-align: center;
}

.share-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.share-btn i {
    font-size: 1.1rem;
}

.facebook-btn {
    background: #1877f2;
    color: white;
}
.facebook-btn:hover {
    background: #0c63d4;
    transform: translateY(-3px);
}

.twitter-btn {
    background: #1da1f2;
    color: white;
}
.twitter-btn:hover {
    background: #0c85d0;
    transform: translateY(-3px);
}

.whatsapp-btn {
    background: #25d366;
    color: white;
}
.whatsapp-btn:hover {
    background: #128c7e;
    transform: translateY(-3px);
}

.email-btn {
    background: #6c757d;
    color: white;
}
.email-btn:hover {
    background: #5a6268;
    transform: translateY(-3px);
}

/* ---------- Suggested Articles Carousel (Instagram/Facebook Style) ---------- */
.suggested-articles-section {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid #e9ecef;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-title i {
    color: #f39c12;
}

/* Carousel Container */
.carousel-container {
    position: relative;
    overflow: hidden;
    padding: 0.5rem 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 1.5rem;
}

.carousel-slide {
    flex: 0 0 calc(25% - 1.125rem);
    min-width: 0;
}

@media (max-width: 992px) {
    .carousel-slide {
        flex: 0 0 calc(33.333% - 1rem);
    }
}
@media (max-width: 768px) {
    .carousel-slide {
        flex: 0 0 calc(50% - 0.75rem);
    }
}
@media (max-width: 480px) {
    .carousel-slide {
        flex: 0 0 100%;
    }
}

/* Article Card Styling (Instagram Style) */
.article-card {
    display: block;
    text-decoration: none;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.article-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e9ecef;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.article-card:hover .image-overlay {
    opacity: 1;
}

.article-info {
    padding: 1rem;
}

.article-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-excerpt {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta-small {
    font-size: 0.75rem;
    color: #adb5bd;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-meta-small i {
    font-size: 0.7rem;
}

/* Carousel Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.carousel-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.carousel-prev {
    left: -20px;
}
.carousel-next {
    right: -20px;
}

@media (max-width: 1200px) {
    .carousel-prev { left: 0; }
    .carousel-next { right: 0; }
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ced4da;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    width: 28px;
    border-radius: 4px;
    background: #f39c12;
}

/* ---------- Sidebar Widgets ---------- */
.sidebar {
    min-width: 0;
}

.sidebar-widget {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.sidebar-widget:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.2rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #f39c12;
    display: inline-block;
}

/* Founders Widget */
.founders-image-placeholder {
    background: linear-gradient(135deg, #1e3c72, #2c3e50);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.founders-image-placeholder i {
    font-size: 2.5rem;
    color: white;
}

.founders-description {
    text-align: center;
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.5;
}

/* Popular/Latest/Books Lists */
.popular-list, .latest-list, .books-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-item, .latest-item, .book-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.75rem;
}

.popular-link, .latest-link, .book-link {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.2s;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.popular-link:hover, .latest-link:hover, .book-link:hover {
    color: #f39c12;
}

.popular-rank {
    font-size: 0.7rem;
    font-weight: 600;
    background: #e9ecef;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    color: #6c757d;
}

.popular-title, .latest-title, .book-title {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
}

.latest-date {
    font-size: 0.7rem;
    color: #adb5bd;
}

.book-link i {
    color: #f39c12;
    width: 20px;
}

/* Categories List */
.categories-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-item {
    display: inline-block;
}

.category-link {
    display: inline-block;
    background: #f8f9fa;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    text-decoration: none;
    color: #495057;
    transition: all 0.2s;
}

.category-link:hover {
    background: #f39c12;
    color: white;
    transform: translateY(-2px);
}

.category-count {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Newsletter Form */
.newsletter-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.email-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.email-input:focus {
    border-color: #f39c12;
    outline: none;
}

.subscribe-btn {
    background: #1e3c72;
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.subscribe-btn:hover {
    background: #f39c12;
}

.form-note {
    font-size: 0.7rem;
    color: #adb5bd;
    margin-top: 0.5rem;
}

/* Info Widget Stats */
.info-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    gap: 0.5rem;
}

.stat-item {
    text-align: center;
    flex: 1;
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 12px;
}

.stat-number {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #f39c12;
}

.stat-label {
    font-size: 0.7rem;
    color: #6c757d;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 768px) {
    .sidebar-widget {
        padding: 1rem;
    }
    .share-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .share-btn {
        justify-content: center;
    }
}

/* ---------- Animation Keyframes ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-article {
    animation: fadeInUp 0.5s ease-out;
}

.sidebar-widget {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.sidebar-widget:nth-child(1) { animation-delay: 0.1s; }
.sidebar-widget:nth-child(2) { animation-delay: 0.2s; }
.sidebar-widget:nth-child(3) { animation-delay: 0.3s; }
.sidebar-widget:nth-child(4) { animation-delay: 0.4s; }
.sidebar-widget:nth-child(5) { animation-delay: 0.5s; }
.sidebar-widget:nth-child(6) { animation-delay: 0.6s; }
.sidebar-widget:nth-child(7) { animation-delay: 0.7s; }
