/* Base Stuff */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Navbar Styling */
.navbar {
    background-color: #333;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 3px;
}

.nav-brand a:hover {
    color: #FFC72C;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #FFC72C;
    text-decoration: none;
}

/* Theme Switcher Style */
.theme-switcher-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #9d0000;
    color: white;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: all 0.3s ease;
    border: 2px solid #FFC72C;
}

.theme-switcher-btn:hover {
    background: #790000;
}

/* Header Styling */
header {
    background-color: #500000;
    color: white;
    padding: 40px 0;
    text-align: center;
    border-bottom: 4px solid #FFC72C;
}

h1 {
    color: rgb(255, 255, 255);
    font-size: 2.8rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.divider {
    height: 4px;
    background-color: #FFC72C;
    width: 200px;
    margin: 20px auto;
    border-radius: 2px;
}

.subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    opacity: 0.9;
}

.subtitle p {
    font-size: 1.1rem;
    margin-top: 15px;
    font-style: italic;
}

/* Grid Layout Styling */
.main-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 20px 0;
}

.content-column {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    margin-top: 0;
}

.content-column section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #eaeaea;
}

.content-column section > h2 {
    width: 100%;
    color: #500000;
    margin-bottom: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #FFC72C;
    font-size: 1.8rem;
}

.content-column section > p {
    width: 100%;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Making the work items cards */
.content-column .work-item {
    flex: 1 1 300px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 25px;
    border-radius: 8px;
    border-left: none;  
    margin-bottom: 0; 
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.content-column .work-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.work-place {
    color: #666;
    font-style: italic;
    font-weight: normal;
}

h3 {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 1.3rem;
}

/* Link Styling */
a {
    color: #500000;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 2px 0;
    transition: all 0.3s ease;
}

a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #500000, #FFC72C);
    transition: width 0.3s ease;
}

a:hover {
    color: #FFC72C;
}

a:hover::after {
    width: 100%;
}

/* IMAGES / PDF Grid Styling */
.sidebar-column,
.pdf-column {
    grid-row: 2;
    width: 100%;
    display: grid;
    gap: 30px;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    margin-top: 0;
    border-radius: 0;
}


.sidebar-column {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}


.sidebar-column .image-card {
    margin-bottom: 0;
    height: fit-content;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
}

.pdf-column {
    grid-template-columns: 1fr;
}

.pdf-column .pdf-container {
    width: 100%;
    margin-bottom: 0;
    position: static; 
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 25px;
    border-radius: 8px;
}

/* Image Content */
.image-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.image-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.image-content {
    width: 100%;
    height: 250px; 
    object-fit: cover;
    display: block;
}

.image-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    background-color: rgba(0, 0, 0, 1);
    padding: 10px 20px;
    border-radius: 4px;
    text-align: center;
}

.image-caption {
    padding: 15px;
    font-size: 0.95rem;
    color: #555;
    text-align: center;
    background-color: #f9f9f9;
    margin: 0;
}

/* PDF Embed */
.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #FFC72C;
}

.pdf-header h3 {
    color: #500000;
    margin: 0;
    font-size: 1.5rem;
}

.pdf-embed {
    width: 100%;
    height: 550px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #f9f9f9;
}

.pdf-embed iframe,
.pdf-embed object {
    width: 100%;
    height: 100%;
    display: block;
}

.pdf-info {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #500000;
    margin-top: 20px;
}

.pdf-info p {
    margin: 8px 0;
    font-size: 0.9rem;
    color: #555;
}

/* Footer Styling */
footer {
    background-color: #333;
    color: #ddd;
    padding: 40px 0;
    text-align: center;
    margin-top: 40px;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.8rem;
    border-bottom: none;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin: 25px 0;
}

.footer-link {
    color: #FFC72C;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
}

.footer-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.copyright {
    margin-top: 30px;
    font-size: 0.9rem;
    color: #aaa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-column .work-item {
        flex: 1 1 100%;          /* cards stack full width on small screens */
    }

    .sidebar-column {
        grid-template-columns: 1fr;
    }

    .pdf-embed {
        height: 250px;
    }
}