:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.7;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-brand-admin {
    font-size: 1.5rem;
    color: var(--light-gray) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin-left: 1rem;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--light-gray) 0%, #e9ecef 100%);
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.hero-section h1 {
    color: var(--primary-color);
    font-weight: 700;
}

/* Blog Posts */
.blog-post {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.date-column {
    background: var(--light-gray);
    padding: 2rem 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.post-date {
    text-align: center;
}

.date-day {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
}

.date-month {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.post-content {
    padding: 2rem;
}

.post-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
}

.post-title a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.post-title a:hover {
    color: var(--secondary-color);
}

.post-meta {
    color: #6c757d;
    font-size: 0.9rem;
}

.post-meta span {
    margin-right: 1.5rem;
}

.post-meta i {
    margin-right: 0.5rem;
}

.post-excerpt {
    color: #6c757d;
    line-height: 1.8;
}

/* Single Post */
.single-post {
    background: #fff;
}

.post-title-single {
    font-size: 2rem; /* Reduced from 2.5rem */
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 0.5rem; /* Reduced spacing */
}

.post-date-single {
    color: #6c757d;
    font-size: 1rem;
}

.post-meta-single {
    color: #6c757d;
    font-size: 0.95rem;
    padding-bottom: 0; /* Remove padding */
    border-bottom: none; /* Remove border */
}

.post-meta-single span {
    margin-right: 2rem;
}

.post-image-single img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.post-content-single {
    font-size: 1.1rem;
    line-height: 1.9;
}

.post-content-single p {
    margin-bottom: 1.5rem;
}

/* Social Share Buttons */
.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-btn {
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.btn-facebook {
    background-color: #1877f2;
}

.btn-twitter {
    background-color: #1da1f2;
}

.btn-linkedin {
    background-color: #0077b5;
}

.btn-whatsapp {
    background-color: #25d366;
}

.btn-copy {
    background-color: #6c757d;
}

/* Footer */
footer {
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
    .date-column {
        padding: 1rem;
    }
    
    .date-day {
        font-size: 2rem;
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    .post-title-single {
        font-size: 1.8rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
    }
}

/* Admin Styles */
.admin-container {
    min-height: 80vh;
}

.login-form {
    max-width: 400px;
    margin: 5rem auto;
}

.dashboard-card {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

/* Add this new section to your css/style.css */

.post-image-small {
    width: 100%;
}

.post-image-small img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
}

/* Update the date column to accommodate the image */
.date-column {
    background: var(--light-gray);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Post thumbnail in single post view */
.post-thumbnail {
    width: 25%;
    max-width: 200px;
    min-width: 120px;
    flex-shrink: 0;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Fix text spacing in post content */
.post-content-single p {
    margin-bottom: 0.8rem;
}

.post-content-single ul,
.post-content-single ol {
    margin-bottom: 0.8rem;
    padding-left: 2rem;
}

.post-content-single li {
    margin-bottom: 0.3rem;
}

.post-content-single h1,
.post-content-single h2,
.post-content-single h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.post-content-single h1:first-child,
.post-content-single h2:first-child,
.post-content-single h3:first-child {
    margin-top: 0;
}

/* Ensure normal line height for readability */
.post-content-single {
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Remove extra spacing from Quill editor output */
.post-content-single .ql-editor {
    padding: 0;
}

.post-content-single > *:first-child {
    margin-top: 0 !important;
}

.post-content-single > *:last-child {
    margin-bottom: 0 !important;
}

/* Responsive adjustments for thumbnail */
@media (max-width: 768px) {
    .post-thumbnail {
        width: 35%;
        max-width: 150px;
    }
    
    .post-title-single {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .d-flex.align-items-start {
        flex-direction: column !important;
    }
    
    .post-thumbnail {
        width: 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .post-thumbnail + .flex-grow-1 {
        width: 100%;
    }
}

/* Navbar Logo */
.navbar-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: 50%;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

/* Social Media Buttons */
.social-links {
    margin-top: 2rem;
}

.btn-social {
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-social:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.btn-social i {
    font-size: 1.1rem;
}

.btn-facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d5dbd 100%);
}

.btn-facebook:hover {
    background: linear-gradient(135deg, #0d5dbd 0%, #1877f2 100%);
}

.btn-linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
}

.btn-linkedin:hover {
    background: linear-gradient(135deg, #005885 0%, #0077b5 100%);
}

.btn-instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.btn-instagram:hover {
    background: linear-gradient(135deg, #bc1888 0%, #cc2366 25%, #dc2743 50%, #e6683c 75%, #f09433 100%);
}

/* Contact section spacing */
.contact-info {
    font-size: 1.1rem;
}

.contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-logo {
        height: 35px;
    }
    
    .btn-social {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Further Reading Carousel - UPDATED WITH VIEWS */
.further-reading {
    margin-top: 3rem;
}

.further-reading h5 {
    color: var(--primary-color);
    font-weight: 600;
}

.further-reading h5 i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.reading-carousel-wrapper {
    position: relative;
    padding: 0 50px;
}

.reading-carousel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    padding: 10px 5px;
    scroll-snap-type: x mandatory;
}

.reading-carousel::-webkit-scrollbar {
    height: 6px;
}

.reading-carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.reading-carousel::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

.reading-carousel::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.reading-card {
    flex: 0 0 220px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    scroll-snap-align: start;
}

.reading-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.reading-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.reading-card-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: var(--light-gray);
    position: relative;
}

.reading-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.reading-card:hover .reading-card-image img {
    transform: scale(1.08);
}

.reading-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #ccc;
    background: linear-gradient(135deg, #f5f5f5 0%, #e9ecef 100%);
}

.reading-card-content {
    padding: 1rem;
}

.reading-card-content h6 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: var(--primary-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.reading-card-meta {
    border-top: 1px solid #e9ecef;
    padding-top: 0.5rem;
}

.reading-card-content small {
    font-size: 0.75rem;
    display: block;
    color: #6c757d;
}

.reading-card-content small i {
    margin-right: 0.3rem;
    color: var(--secondary-color);
    width: 14px;
    text-align: center;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.carousel-nav-btn:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav-btn.prev {
    left: 0;
}

.carousel-nav-btn.next {
    right: 0;
}

.carousel-nav-btn i {
    font-size: 1rem;
}

/* Hide navigation buttons if not needed */
.carousel-nav-btn.hidden {
    display: none;
}

@media (max-width: 768px) {
    .reading-carousel-wrapper {
        padding: 0 40px;
    }
    
    .reading-card {
        flex: 0 0 180px;
    }
    
    .reading-card-image {
        height: 120px;
    }
    
    .reading-card-content {
        padding: 0.75rem;
    }
    
    .reading-card-content h6 {
        font-size: 0.85rem;
    }
    
    .reading-card-content small {
        font-size: 0.7rem;
    }
    
    .carousel-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .reading-carousel-wrapper {
        padding: 0 35px;
    }
    
    .reading-card {
        flex: 0 0 160px;
    }
    
    .reading-card-image {
        height: 100px;
    }
    
    .reading-card-content {
        padding: 0.6rem;
    }
}