/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Link Styling - removed universal hover effect */
a {
    color: #000000 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

/* Apply styling to main content links only */
.content-section a,
.content-section p a,
.content-section li a {
    color: #000000 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.content-section a:hover,
.content-section p a:hover,
.content-section li a:hover {
    color: #6B25FA !important; /* Pink hover color */
}

/* Exclude specific elements that should keep their styling */
.social-icons a,
.cv-download-btn,
.news-container a,
.quick-links a {
    /* These will inherit from their specific styles */
}

/* Apply styling to main content links only */
.content-section a,
.content-section a:link,
.content-section a:visited,
.content-section a:active {
    color: #000000 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.content-section a:hover {
    color: #6B25FA !important; /* Pink hover color */
}

body {
    /* Current Font - Merriweather */
    font-family: 'Merriweather', 'Source Serif Pro', serif;
    
    /* To try different fonts, replace the line above with one of these:
    font-family: 'Source Sans Pro', 'Inter', sans-serif;
    font-family: 'Inter', 'Roboto', sans-serif;            Modern & Clean 
    font-family: 'Open Sans', 'Lato', sans-serif;         Professional & Readable 
    font-family: 'Poppins', 'Work Sans', sans-serif;      Contemporary & Trendy 
    font-family: 'Nunito', 'Open Sans', sans-serif;        Warm & Friendly 
    font-family: 'Merriweather', 'Source Serif Pro', serif; Classic & Sophisticated 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif; System Fonts */
    
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    color: #000000e6;
    background-color: #ffffff;
}

/* Container layout */
.container {
    display: flex;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    box-shadow: none;
}

/* Left Sidebar */
.sidebar {
    width: 320px;
    background: transparent;
    color: #333;
    padding: 2rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid #e8e8e8;
    line-height: 1.3;
    z-index: 100;
}

.profile-section {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-image {
    margin-bottom: 1.5rem;
}

.profile-image img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid #e8e8e8;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-image img:hover {
    transform: scale(1.05);
    border-color: #d0d0d0;
}

.name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000000;
}

.title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: #555;
}

.institution {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.contact-info {
    text-align: left;
    margin-bottom: 2rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.contact-info i {
    width: 20px;
    margin-right: 0.5rem;
    color: #999;
}

/* Quick Links */
.quick-links {
    margin-bottom: 2rem;
}

.quick-links h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000000;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 0.5rem;
}

.quick-links ul {
    list-style: none;
}

.quick-links li {
    margin-bottom: 0.5rem;
}

.quick-links a {
    color: #000000e6 !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 400 !important;
}

.quick-links a:hover {
    background-color: #f0f0f0;
    color: #000000e6 !important;
}

/* Override universal selector for Quick Links */
* .quick-links a,
* .quick-links a:hover {
    color: #000000e6 !important;
    font-weight: 400 !important;
}

/* Most specific override for Quick Links to ensure no hover color change */
.sidebar .quick-links a,
.sidebar .quick-links a:hover,
.sidebar .quick-links a:focus,
.sidebar .quick-links a:active {
    color: #000000e6 !important;
    font-weight: 400 !important;
}

/* Nuclear option: completely override any hover color for Quick Links */
.sidebar .quick-links a:hover,
.sidebar .quick-links a:focus,
.sidebar .quick-links a:active,
.sidebar .quick-links a:visited {
    color: #000000e6 !important;
    font-weight: 400 !important;
    text-decoration: none !important;
}

.quick-links i {
    width: 20px;
    margin-right: 0.8rem;
    font-size: 0.9rem;
    color: #999;
}

/* Social Links */
.social-links h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000000;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-icons a {
    color: #999;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #f0f0f0;
}

.social-icons a:hover {
    color: #555;
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.social-icon-svg {
    width: 16px;
    height: 16px;
    filter: brightness(0.6);
    transition: filter 0.3s ease;
}

.social-icons a:hover .social-icon-svg {
    filter: brightness(0.4);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 3rem;
    background-color: white;
    max-width: 900px;
}

.content-section {
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out;
}

.content-section h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 1rem;
}

.content-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000000;
    margin: 1.5rem 0 1rem 0;
}

.content-section h4 {
    font-size: 1rem;
    font-weight: 400;
    color: #8B7BB8;
    margin: 1.5rem 0 0.75rem 0;
}

/* Utility: apply left accent border to any chosen paragraph */
.content-section p.accent-paragraph {
    padding-left: 0.75rem;
    border-left: 3px solid #E6E0F0;
    margin-left: 0;
    margin-top: 0.25rem;
}

.content-section p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    color: #000000e6;
}

.content-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-section li {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.55;
    margin-bottom: 0.75rem;
    color: #000000e6;
}

/* Publications styling */
.publication {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #fafafa;
    border-radius: 8px;
    border-left: 3px solid #e8e8e8;
}

.publication h3 {
    color: #555;
    margin-bottom: 1rem;
}

/* CV download button */
.cv-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f0f0f0;
    color: #555;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.cv-download-btn:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* CV Link Styling */
.quick-links a[href*="cv.pdf"] {
    color: #000000 !important;
    font-weight: 700 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.quick-links a[href*="cv.pdf"]:hover {
    color: #fe48d1 !important; /* Pink hover color */
}

/* CV Link in Body Content */
.cv-link {
    color: #000000 !important;
    font-weight: 700 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cv-link:hover {
    color: #fe48d1 !important; /* Pink hover color */
}

/* News Section */
.news-container {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    background: white;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 1rem;
    /* Ensure scrolling works in all browsers */
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

.news-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    font-weight: 600;
    color: #2c3e50;
    min-width: 60px;
    font-size: 0.9rem;
}

.news-emoji {
    font-size: 1.1rem;
    min-width: 24px;
    text-align: center;
}

.news-text {
    color: #555;
    line-height: 1.5;
    flex: 1;
}

/* Custom scrollbar for news container */
.news-container::-webkit-scrollbar {
    width: 6px;
}

.news-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.news-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.news-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 2rem;
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
    }
    
    .main-content {
        padding: 2rem;
        max-width: none;
    }
    
    .profile-image img {
        width: 150px;
        height: 150px;
    }
    
    .name {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .sidebar {
        padding: 1.5rem;
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    .content-section h2 {
        font-size: 1.2rem;
    }
    
    .social-icons {
        gap: 0.8rem;
    }
    
    .social-icons a {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .sidebar {
        padding: 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .profile-image img {
        width: 120px;
        height: 120px;
    }
    
    .name {
        font-size: 1.2rem;
    }
    
    .title, .institution {
        font-size: 0.9rem;
    }
}

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

/* Focus styles for accessibility */
a:focus, button:focus {
    outline: 2px solid #999;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .sidebar {
        background: white !important;
        color: black !important;
        width: 100%;
        height: auto;
        border: none;
    }
    
    .container {
        flex-direction: column;
        box-shadow: none;
    }
}

/* FINAL OVERRIDE: Force Quick Links to never change color on hover */
.sidebar .quick-links a:hover,
.sidebar .quick-links a:focus,
.sidebar .quick-links a:active,
.sidebar .quick-links a:visited,
.sidebar .quick-links a:link {
    color: #000000e6 !important;
    font-weight: 400 !important;
    text-decoration: none !important;
}

/* Even more specific - target the exact HTML structure */
.container .sidebar .quick-links a:hover,
.container .sidebar .quick-links a:focus,
.container .sidebar .quick-links a:active,
.container .sidebar .quick-links a:visited,
.container .sidebar .quick-links a:link {
    color: #000000e6 !important;
    font-weight: 400 !important;
    text-decoration: none !important;
}

/* Hobby Grid Styles */
.subtitle {
    font-style: italic;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

.hobby-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.hobby-card {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.hobby-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.02), transparent);
    transition: left 0.5s ease;
}

.hobby-card:hover::before {
    left: 100%;
}

.hobby-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: #6B25FA;
    background: #ffffff;
}

.hobby-card:active {
    transform: translateY(-1px);
    transition: transform 0.1s ease;
}

.hobby-image {
    flex-shrink: 0;
}

.hobby-img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.hobby-card:hover .hobby-img {
    transform: scale(1.05);
}

.hobby-content {
    flex: 1;
}

.hobby-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.hobby-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin: 0 0 1rem 0;
}

.click-hint {
    font-size: 0.9rem;
    color: #6B25FA;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.hobby-card:hover .click-hint {
    opacity: 1;
}

/* Expanded Content Styles */
.expanded-content {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #fafbff 0%, #f5f8ff 100%);
    border-radius: 16px;
    border: 2px solid #E6E0F0;
    box-shadow: 0 4px 16px rgba(107, 37, 250, 0.1);
    animation: slideDown 0.4s ease-out;
}

.expanded-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #E6E0F0;
}

.expanded-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6B25FA;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background-color: #E6E0F0;
    color: #4a1d8f;
}

.expanded-body {
    color: #555;
    line-height: 1.7;
}

.expanded-body p {
    margin-bottom: 1rem;
}

.expanded-body ul {
    margin: 1rem 0 1rem 2rem;
}

.expanded-body li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* Animation for expanded content */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design for hobby grid */
@media (max-width: 768px) {
    .hobby-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .hobby-img {
        width: 100%;
        max-width: 300px;
        height: 200px;
    }
    
    .hobby-content h3 {
        font-size: 1.1rem;
    }
    
    .expanded-content {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .expanded-header h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hobby-card {
        padding: 1rem;
        gap: 1rem;
    }
    
    .hobby-img {
        height: 150px;
    }
    
    .hobby-content h3 {
        font-size: 1rem;
    }
    
    .hobby-content p {
        font-size: 0.9rem;
    }
    
    .expanded-content {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .expanded-header h3 {
        font-size: 1.1rem;
    }
    
    .expanded-body {
        font-size: 0.9rem;
    }
}

/* Breadcrumb Navigation Styles */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb-nav a {
    color: #6B25FA !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: #4a1d8f !important;
    text-decoration: underline !important;
}

.breadcrumb-separator {
    color: #ccc;
    font-weight: 300;
}

.current-page {
    color: #333;
    font-weight: 600;
}

/* Subpage Link Styles */
.subpage-link {
    color: #6B25FA !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.subpage-link:hover {
    color: #4a1d8f !important;
    text-decoration: underline !important;
}

/* Subpage Intro */
.subpage-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 3rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Image Showcase Styles */
.image-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.showcase-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.showcase-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.showcase-item:hover .image-overlay {
    opacity: 1;
}

.showcase-item:hover .showcase-image {
    transform: scale(1.05);
}

.overlay-content {
    text-align: center;
    color: white;
    padding: 1.5rem;
    max-width: 90%;
}

.overlay-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: white;
}

.overlay-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #f0f0f0;
    margin: 0;
}

/* Subpage Footer */
.subpage-footer {
    margin-top: 4rem;
    padding: 2rem;
    background: linear-gradient(135deg, #fafbff 0%, #f5f8ff 100%);
    border-radius: 16px;
    border: 2px solid #E6E0F0;
    text-align: center;
}

.subpage-footer p {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.7;
}

.back-link {
    display: inline-block;
    color: #6B25FA !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: opacity 0.3s ease;
    opacity: 0.8;
    font-size: 0.9rem;
    margin: 0;
}

.back-link:hover {
    opacity: 1;
    color: #6B25FA !important;
}

/* Responsive Design for Image Showcase */
@media (max-width: 1024px) {
    .image-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .image-showcase {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .showcase-column {
        gap: 1.5rem;
    }
    
    .image-container {
        height: 200px;
    }
    
    .breadcrumb-nav {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .subpage-intro {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .subpage-footer {
        margin-top: 3rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .image-container {
        height: 180px;
    }
    
    .overlay-content {
        padding: 1rem;
    }
    
    .overlay-content h3 {
        font-size: 1.1rem;
    }
    
    .overlay-content p {
        font-size: 0.8rem;
    }
    
    .back-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Gallery Button Styles */
.gallery-button-container {
    margin-top: 1.5rem;
    text-align: center;
}

.gallery-button {
    display: inline-block;
    color: #6B25FA !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: opacity 0.3s ease;
    opacity: 0.8;
    font-size: 0.9rem;
}

.gallery-button:hover {
    opacity: 1;
    color: #6B25FA !important;
}

.gallery-button:active {
    transition: opacity 0.1s ease;
}

/* Gallery CSS Reset - Ensure clean styling */
.gallery-grid * {
    box-sizing: border-box !important;
}

.gallery-grid img {
    max-width: 100% !important;
    height: auto !important;
}

/* Gallery Page Styles */
.gallery-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 3rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
    margin: 3rem 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    grid-auto-rows: minmax(auto, auto) !important;
}

.gallery-item {
    position: relative !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    background: white !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    float: none !important;
    clear: both !important;
    min-height: 350px !important;
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
    color: inherit !important;
}

.gallery-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05) !important;
}

.gallery-image {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
    display: block !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.gallery-caption {
    padding: 1rem !important;
    background: white !important;
    flex: 1 !important;
}

.gallery-caption h3 {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 0.5rem !important;
}

.gallery-caption p {
    font-size: 0.9rem !important;
    color: #666 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

.gallery-footer {
    margin-top: 4rem;
    padding: 0;
    background: none;
    border: none;
    text-align: left;
}

.gallery-footer p {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.7;
}

.back-link {
    display: inline-block;
    color: #6B25FA !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: opacity 0.3s ease;
    opacity: 0.8;
    font-size: 0.9rem;
    margin: 0;
}

.back-link:hover {
    opacity: 1;
    color: #6B25FA !important;
}

/* Responsive Design for Gallery */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .gallery-image {
        height: 250px !important;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-image {
        height: 250px !important;
    }
    
    .gallery-intro {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .gallery-footer {
        margin-top: 3rem;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-image {
        height: 200px !important;
    }
    
    .gallery-caption {
        padding: 0.75rem;
    }
    
    .gallery-caption h3 {
        font-size: 1.1rem;
    }
    
    .gallery-caption p {
        font-size: 0.8rem;
    }
    
    .gallery-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* PDF Viewer Styles */
.pdf-viewer {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pdf-viewer iframe {
    display: block;
    border: none;
}

/* Responsive Design for PDF Viewer */
@media (max-width: 768px) {
    .pdf-viewer iframe {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .pdf-viewer iframe {
        height: 300px;
    }
}
