:root {
    --primary-color: #495057;
    --secondary-color: #6c757d;
    --accent-color: #007bff;
    --light-blue: #e7f3ff;
    --text-dark: #343a40;
    --text-light: #6c757d;
    --text-muted: #adb5bd;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-very-light: #fafbfc;
    --border-color: #dee2e6;
    --border-radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 25px rgba(0,0,0,0.1);
}

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

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    color: white;
    padding: 1.5rem 0 1rem;
    margin-bottom: 0;
    border-bottom: none;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0;
    color: white;
}

.page-header .lead {
    font-size: 1rem;
    opacity: 0.9;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.5rem;
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.page-header .breadcrumb-item.active {
    color: white;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248,249,250,0.5);
    z-index: 1;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.profile-image {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border: 4px solid var(--border-color);
    position: relative;
    z-index: 2;
}

/* Stats Section */
.stats-section {
    border-top: 4px solid var(--accent-color);
    background-color: var(--bg-white);
}

.stat-item {
    padding: 2rem 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-align: center;
}

/* Article Cards */
.article-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    border: 1px solid var(--border-color);
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: var(--bg-light);
}

.article-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-image-placeholder {
    color: var(--text-muted);
    text-align: center;
}

.article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-img {
    transform: scale(1.03);
}

.article-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 200px);
}

.article-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.article-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Book Cards */
.book-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
    text-align: center;
    height: 100%;
    border: 1px solid var(--border-color);
}

.book-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.book-cover {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--bg-light);
}

.book-image {
    max-width: 150px;
    max-height: 200px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.book-placeholder {
    width: 150px;
    height: 200px;
    background: var(--bg-very-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: 4px;
    border: 2px dashed var(--border-color);
}

.book-placeholder-large {
    width: 300px;
    height: 400px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: var(--text-muted);
    border-radius: 8px;
    margin: 0 auto;
    border: 2px dashed var(--border-color);
}

.book-info {
    padding: 1.5rem;
}

.book-title {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.book-year {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Announcement Cards */
.announcement-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
}

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

.announcement-image {
    height: 150px;
    overflow: hidden;
    background-color: var(--bg-light);
}

.announcement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.announcement-content {
    padding: 1.5rem;
}

.announcement-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.announcement-text {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.announcement-date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border-width: 1px;
}

.btn-warning {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.btn-warning:hover {
    background: #0056b3;
    border-color: #0056b3;
    color: white;
    transform: translateY(-1px);
}

.btn-outline-warning {
    background: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-outline-warning:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-1px);
}

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

.btn-primary:hover {
    background: #343a40;
    border-color: #343a40;
    color: white;
    transform: translateY(-1px);
}

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

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

/* Pagination */
.pagination {
    justify-content: center;
}

.page-link {
    color: var(--primary-color);
    border-color: var(--border-color);
    padding: 0.75rem 1rem;
    background-color: var(--bg-white);
}

.page-link:hover {
    color: var(--accent-color);
    background-color: var(--light-blue);
    border-color: var(--accent-color);
}

.page-item.active .page-link {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .profile-image {
        width: 250px;
        height: 250px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header {
        padding: 3rem 0 1.5rem;
    }
    
    .article-content, .book-info, .announcement-content {
        padding: 1rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-buttons {
        text-align: center;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .stats-section .row > div {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .article-image, .book-cover {
        height: 180px;
    }
    
    .announcement-image {
        height: 120px;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .newsletter-form .input-group .form-control {
        margin-bottom: 1rem;
        border-radius: var(--border-radius);
    }
    
    .newsletter-form .input-group .btn {
        border-radius: var(--border-radius);
    }
}

/* Blog Content Styles */
.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content h2, .blog-content h3, .blog-content h4 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.blog-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-light);
}

/* Social Share */
.social-share .btn {
    width: 35px;
    height: 35px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Comments */
.comment .avatar {
    flex-shrink: 0;
}

.comment .card {
    border-left: 3px solid var(--accent-color);
    background-color: var(--bg-white);
    border-color: var(--border-color);
}

/* Cards */
.card {
    background-color: var(--bg-white);
    border-color: var(--border-color);
    box-shadow: var(--shadow);
}

.card-header {
    background-color: var(--bg-light);
    border-bottom-color: var(--border-color);
}

.card-header.bg-primary {
    background-color: var(--accent-color) !important;
    color: white;
}

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

/* List Groups */
.list-group-item {
    background-color: var(--bg-white);
    border-color: var(--border-color);
    color: var(--text-dark);
}

.list-group-item:hover {
    background-color: var(--light-blue);
    color: var(--accent-color);
}

.list-group-item.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

/* Badges */
.badge.bg-primary {
    background-color: var(--accent-color) !important;
}

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

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

/* Alerts */
.alert-success {
    background-color: #d1edff;
    border-color: #b6e0ff;
    color: #0c5460;
}

.alert-info {
    background-color: var(--light-blue);
    border-color: #b6e0ff;
    color: var(--primary-color);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(108,117,125,.3);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utilities */
.text-shadow {
    text-shadow: none;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #0056b3 100%);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States */
.btn:focus,
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    border-color: var(--accent-color);
}

/* Author Bio Photo */
.author-bio-photo {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border: 6px solid var(--border-color);
}

/* Content Wrapper */
.content-wrapper {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.content-wrapper p {
    margin-bottom: 1.5rem;
}

.social-links .btn {
    margin: 0.25rem;
    padding: 0.75rem 1.5rem;
}

/* Book Detail Styles */
.book-cover-large img {
    max-width: 300px;
    height: auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.section-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    font-weight: 600;
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.review-content {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

/* PDF Cards */
.pdf-card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
}

.pdf-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.pdf-icon {
    opacity: 0.8;
}

.pdf-card:hover .pdf-icon {
    opacity: 1;
}

.pdf-meta {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    margin: 15px 0;
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .social-share,
    footer {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
    }
    
    .page-header {
        background: none !important;
        color: black !important;
    }
}