/* =========================================
   Modern Laravel Blog Template Styles
   Created: 2025
   ========================================= */

/* === ROOT VARIABLES === */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* === GLOBAL STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    line-height: 1.6;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === TOP BAR === */
.top-bar {
    background: var(--bg-dark);
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 2px solid var(--primary-color);
}

.top-info span {
    margin-right: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* === NAVIGATION === */
.navbar {
    padding: 15px 0;
    transition: var(--transition);
}

.navbar.sticky-top {
    box-shadow: var(--shadow-md);
}

.navbar-brand .logo-img {
    transition: var(--transition);
}

.navbar-brand:hover .logo-img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    padding: 8px 16px !important;
    margin: 0 5px;
    border-radius: 8px;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(59, 130, 246, 0.1);
}

.btn-search {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-search:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* === HERO SECTION === */
.hero-section {
    margin-bottom: 40px;
}

.hero-banner {
    height: 450px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.9), rgba(59, 130, 246, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: #fff;
    padding: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-spacer {
    height: 30px;
}

/* === MAIN CONTENT === */
.main-content {
    padding: 40px 0;
    min-height: 500px;
}

/* === SECTION HEADERS === */
.section-header {
    margin-bottom: 30px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    margin-top: 5px;
}

/* === BREADCRUMB === */
.custom-breadcrumb {
    background: var(--bg-primary);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.breadcrumb {
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-secondary);
}

/* === PAGE HEADERS === */
.page-header {
    background: var(--bg-primary);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* === FEATURED POST === */
.featured-post {
    background: var(--bg-primary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
    transition: var(--transition);
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.featured-image {
    position: relative;
    overflow: hidden;
    height: 450px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-post:hover .featured-image img {
    transform: scale(1.1);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow-md);
}

.featured-content {
    padding: 35px;
}

.featured-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 20px 0;
    line-height: 1.3;
}

.featured-title a {
    color: var(--text-primary);
}

.featured-title a:hover {
    color: var(--primary-color);
}

.featured-excerpt {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.8;
}

/* === BLOG CARDS === */
.blog-card {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.blog-card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.blog-card-date .day {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.blog-card-date .month {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    margin-top: 3px;
}

.blog-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card-title a {
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-title a:hover {
    color: var(--primary-color);
}

.blog-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* === POST META === */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item i {
    color: var(--primary-color);
}

/* === BUTTONS === */
.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.read-more-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
}

.read-more-link:hover {
    color: var(--secondary-color);
    gap: 10px;
}

/* === ARTICLE DETAIL === */
.article-detail {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.article-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
}

.share-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    transition: var(--transition);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.linkedin {
    background: #0a66c2;
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.article-image {
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.image-caption {
    text-align: center;
    font-style: italic;
    color: var(--text-secondary);
    margin-top: 10px;
    font-size: 0.9rem;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 35px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.article-content h2 {
    font-size: 2rem;
}

.article-content h3 {
    font-size: 1.6rem;
}

.article-content h4 {
    font-size: 1.3rem;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 20px 30px;
    margin: 30px 0;
    background: var(--bg-secondary);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-secondary);
}

.article-content code {
    background: var(--bg-secondary);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--accent-color);
}

.article-content pre {
    background: #1f2937;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 25px 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: #fff;
}

.article-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.tag-item {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-secondary);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.tag-item:hover {
    background: var(--primary-color);
    color: #fff;
}

/* === RELATED POSTS === */
.related-posts {
    margin-top: 50px;
}

.related-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.related-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

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

.related-content {
    padding: 15px;
    background: var(--bg-primary);
}

.related-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-date {
    font-size: 13px;
    color: var(--text-light);
}

/* === SIDEBAR WIDGETS === */
.widget {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 12px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Search Widget */
.search-widget-form {
    position: relative;
    display: flex;
    gap: 8px;
}

.search-widget-form .form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 15px;
}

.search-widget-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

.btn-search-widget {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-search-widget:hover {
    background: var(--secondary-color);
}

/* Category Widget */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 10px;
}

.category-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: var(--bg-secondary);
    border-radius: 8px;
    color: var(--text-primary);
    transition: var(--transition);
}

.category-item a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateX(5px);
}

.category-item i {
    margin-right: 10px;
    color: var(--primary-color);
    transition: var(--transition);
}

.category-item a:hover i {
    color: #fff;
}

.category-count {
    background: rgba(59, 130, 246, 0.1);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
}

.category-item a:hover .category-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Popular Posts Widget */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-post-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.popular-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-post-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

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

.popular-post-image:hover img {
    transform: scale(1.1);
}

.popular-post-content {
    flex: 1;
}

.popular-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.popular-post-title a {
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-post-title a:hover {
    color: var(--primary-color);
}

.popular-post-meta {
    font-size: 13px;
    color: var(--text-light);
}

/* Tags Widget */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud-item {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.tag-cloud-item:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* Newsletter Widget */
.newsletter-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.newsletter-form input {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 15px;
}

.newsletter-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

/* Banner Widget */
.banner-item {
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.banner-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

/* === PAGINATION === */
.pagination-wrapper {
    display: flex;
    justify-content: center;
}

.pagination {
    gap: 5px;
}

.page-link {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 18px;
    color: var(--text-primary);
    font-weight: 600;
    transition: var(--transition);
}

.page-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

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

/* === SEARCH RESULTS === */
.search-result-header {
    background: var(--bg-primary);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.search-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.search-info {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.no-results {
    background: var(--bg-primary);
    padding: 60px 40px;
    border-radius: 12px;
    text-align: center;
}

.no-results-icon {
    font-size: 5rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.no-results p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* === CATEGORY HEADER === */
.category-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 40px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
}

.category-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.category-info {
    flex: 1;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.category-description {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 15px;
}

.category-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* === MODULE CARDS === */
.module-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    gap: 20px;
    align-items: start;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.module-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
}

.module-content {
    flex: 1;
}

.module-title a {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.module-title a:hover {
    color: var(--primary-color);
}

.module-description {
    color: var(--text-secondary);
    margin: 10px 0;
}

.module-count {
    font-size: 14px;
    color: var(--text-light);
}

/* === AUTHOR CARDS === */
.author-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    gap: 20px;
    align-items: center;
}

.author-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.author-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name a {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.author-name a:hover {
    color: var(--primary-color);
}

.author-bio {
    color: var(--text-secondary);
    margin: 8px 0;
    font-size: 0.95rem;
}

.author-stats {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-light);
}

/* === AUTHOR PROFILE === */
.author-profile-header {
    background: var(--bg-primary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
}

.author-profile-cover {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.author-profile-info {
    padding: 0 40px 40px;
    position: relative;
}

.author-profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--bg-primary);
    margin-top: -75px;
    box-shadow: var(--shadow-lg);
}

.author-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-profile-details {
    margin-top: 20px;
}

.author-profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.author-profile-role {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.author-profile-bio {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.author-profile-stats {
    display: flex;
    gap: 30px;
    margin: 25px 0;
}

.stat-box {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.author-profile-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.author-profile-social .social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.author-profile-social .social-link:hover {
    background: var(--primary-color);
    color: #fff;
}

/* === 404 ERROR PAGE === */
.error-page {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 0;
    gap: 50px;
}

.error-content {
    flex: 1;
    text-align: center;
}

.error-icon {
    font-size: 6rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 20px;
}

.error-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.error-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-illustration {
    flex: 1;
    max-width: 400px;
}

.error-illustration svg {
    width: 100%;
    height: auto;
}

/* === FOOTER === */
.footer {
    background: var(--bg-dark);
    color: #fff;
    margin-top: 60px;
}

.footer-main {
    padding: 60px 0 30px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 20px;
}

.social-links-footer {
    display: flex;
    gap: 10px;
}

.social-links-footer .social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

.social-links-footer .social-link:hover {
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-links i {
    font-size: 10px;
}

.newsletter-form .input-group {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.newsletter-form .form-control {
    background: transparent;
    border: none;
    color: #fff;
    padding: 12px 15px;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .btn {
    border: none;
    border-radius: 0;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-text {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-links {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: #fff;
}

.footer-bottom-links .separator {
    color: rgba(255, 255, 255, 0.3);
}

/* === SCROLL TO TOP === */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .featured-title {
        font-size: 1.8rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-detail {
        padding: 25px;
    }
    
    .error-page {
        flex-direction: column;
        text-align: center;
    }
    
    .error-code {
        font-size: 6rem;
    }
}

@media (max-width: 767px) {
    .hero-banner {
        height: 300px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .top-bar {
        text-align: center;
    }
    
    .top-info,
    .social-links {
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .featured-content {
        padding: 20px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .author-profile-info {
        padding: 0 20px 20px;
    }
    
    .author-profile-name {
        font-size: 2rem;
    }
    
    .error-actions {
        flex-direction: column;
    }
    
    .error-illustration {
        max-width: 300px;
    }
}

/* === UTILITIES === */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shadow-custom {
    box-shadow: var(--shadow-lg);
}

.hover-lift {
    transition: var(--transition);
}

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

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease;
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease;
}
