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

body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #473472 0%, #53629E 40%, #87BAC3 80%, #D6F4ED 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated background shapes */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -50px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* Header styling - Glassmorphism */
.header {
    width: 100%;
    background: rgba(71, 52, 114, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #87BAC3;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    color: #D6F4ED;
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(71, 52, 114, 0.15);
}

.header a {
    text-decoration: none;
    color: #D6F4ED;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(135, 186, 195, 0.15);
}

.header a:hover {
    color: #D6F4ED;
    background: rgba(135, 186, 195, 0.3);
}

.header .separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    margin: 0;
}

/* Container layout */
.container {
    display: flex;
    gap: 30px;
    margin-top: 80px;
    padding: 0 20px 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    align-items: flex-start;
}

/* Left column styling - Glass card */
.left-column {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #D6F4ED;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 20px 16px;
}

.left-column::-webkit-scrollbar {
    width: 6px;
}

.left-column::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.left-column::-webkit-scrollbar-thumb {
    background: rgba(135, 186, 195, 0.5);
    border-radius: 10px;
}

/* Profile photo - Modern card style */
.profile-photo {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #87BAC3;
    display: block;
    margin-bottom: 20px;
    position: relative;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Links styling */
.links {
    margin-top: 20px;
}

.link-item {
    margin-bottom: 20px;
    padding: 14px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #D6F4ED;
}

.section-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #473472;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.book-list li {
    margin-bottom: 8px;
}

.link-item a {
    text-decoration: none;
    color: #53629E;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    display: inline-block;
}

.link-item a::before {
    content: '📖';
    margin-right: 8px;
    display: inline-block;
}

.link-item a:hover {
    color: #473472;
    text-decoration: underline;
}

/* Blog content styling */
.blog-content {
    flex: 1;
    min-width: 0;
    animation: fadeIn 0.6s ease;
}

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

.blog-list {
    margin-bottom: 40px;
}

.blog-container {
    background: #fff;
    border: 1px solid #D6F4ED;
    border-radius: 10px;
    padding: 20px;
    margin: 16px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.blog-heading {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
    color: #473472;
    cursor: pointer;
}

.blog-heading:hover {
    color: #53629E;
}

.blog-date {
    font-size: 13px;
    color: #87BAC3;
    font-weight: 500;
    margin-bottom: 10px;
}

.blog-preview {
    margin: 0;
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-details {
    padding: 24px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #D6F4ED;
    line-height: 1.7;
    color: #333;
}

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

.blog-details h2 {
    color: #473472;
    margin-bottom: 16px;
    font-weight: 700;
}

.blog-details img {
    max-width: 100%;
    border-radius: 8px;
    margin: 16px 0;
    border: 1px solid #D6F4ED;
}
/* Dropdown styling - Modern glass design */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-button {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dropdown-button a {
    color: #fff;
    text-decoration: none;
}

.dropdown-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(71, 52, 114, 0.95);
    backdrop-filter: blur(10px);
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 8px 0;
    z-index: 1000;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dropdown-content a {
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 4px 8px;
    position: relative;
    overflow: hidden;
}

/* Pagination controls with palette */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 32px 0;
    padding: 16px;
}
.pagination-btn {
    padding: 10px 20px;
    background: #87BAC3;
    color: #473472;
    border: 1px solid #53629E;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
}
.pagination-btn:hover:not(:disabled) {
    background: #D6F4ED;
    border-color: #87BAC3;
    transform: translateY(-2px);
}
.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.page-info {
    color: #473472;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 14px;
    background: #D6F4ED;
    border-radius: 6px;
    letter-spacing: 0.3px;
/* removed stray closing brace */
}

.dropdown-content a:hover {
    background: rgba(135, 186, 195, 0.2);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Pagination styling - subtle, outreach-focused */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 32px 0;
    padding: 16px;
}

.pagination-btn {
    padding: 10px 20px;
    background: #87BAC3;
    color: #473472;
    border: 1px solid #53629E;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.pagination-btn:hover:not(:disabled) {
    background: #53629E;
    color: #fff;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-info {
    color: #473472;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 14px;
    background: #D6F4ED;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.no-posts, .error-message {
    text-align: center;
    padding: 40px 20px;
    color: #473472;
    font-size: 16px;
    background: #fff;
    border: 1px solid #D6F4ED;
    border-radius: 10px;
}

/* Mobile Responsiveness */
@media screen and (max-width: 1024px) {
    .container {
        flex-direction: column;
        padding: 0 15px 30px;
}
    
    .left-column {
        width: 100%;
        position: relative;
        top: 0;
        max-height: none;
        margin-bottom: 30px;
        border-radius: 20px;
/* removed stray closing brace at end of file */
    
    .blog-content {
        margin-left: 0;
        padding: 0;
    }
    
    .header {
        flex-wrap: wrap;
        padding: 12px 15px;
        gap: 10px;
    }
    
    .header a {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .header .separator {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    body::before {
        animation: none;
    }
    
    .container {
        margin-top: 70px;
    }
    
    .left-column {
        padding: 20px 16px;
    }
    
    .profile-photo {
        height: 180px;
        margin-bottom: 20px;
    }
    
    .blog-container {
        padding: 20px;
        margin: 15px 0;
        border-radius: 20px;
    }
    
    .blog-heading {
        font-size: 20px;
    }
    
    .blog-preview {
        font-size: 14px;
    }
    
    .blog-details {
        padding: 20px;
        border-radius: 20px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px;
    }
    
    .pagination-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .dropdown-content {
        left: 0;
        transform: translateX(0);
        min-width: 180px;
    }
    
    .link-item {
        padding: 12px;
    }
    
    .section-title {
        font-size: 14px;
    }
    
    .book-list li a {
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .header {
        padding: 10px;
    }
    
    .header a {
        font-size: 13px;
        padding: 5px 10px;
    }
    
    .container {
        margin-top: 60px;
        padding: 0 10px 20px;
    }
    
    .blog-container {
        padding: 16px;
    }
    
    .blog-heading {
        font-size: 18px;
    }
    
    .pagination-controls {
        gap: 12px;
        padding: 12px;
        margin: 24px 0;
    }
    
    .pagination-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .page-info {
        font-size: 13px;
        padding: 5px 12px;
    }
}
    }