/* News/Entry Page Styles */

body {
    background-color: #1a1a1a;
    color: #fff;
    padding-top: 50px;
    font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
}

/* Navigation styling */
.navbar-inverse {
    background-color: rgba(26, 26, 26, 0.95);
    border-color: #000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-inverse .navbar-brand {
    color: #fff;
    font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 300;
    font-size: 18px;
}

.navbar-inverse .navbar-nav > li > a {
    color: #888;
    font-weight: 300;
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
    color: #fff;
    background-color: transparent;
}

.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus {
    color: #fff;
    background-color: #000;
}

/* Hero Section with Slideshow */
.entry-hero {
    position: relative;
    height: 60vh;
    min-height: 350px;
    max-height: 550px;
    overflow: hidden;
}

.entry-hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.entry-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.entry-hero-slide.active {
    opacity: 1;
}

.entry-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 26, 0) 0%,
        rgba(26, 26, 26, 0) 40%,
        rgba(26, 26, 26, 0.7) 70%,
        rgba(26, 26, 26, 1) 100%
    );
    z-index: 1;
}

.entry-hero-content {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 2;
    padding: 0 20px;
}

.entry-hero-date {
    display: block;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #6db3f2;
    margin-bottom: 15px;
    font-family: 'Source Sans Pro', sans-serif;
}

.entry-hero-title {
    font-size: 52px;
    font-weight: 300;
    margin: 0 0 15px 0;
    line-height: 1.2;
    color: #fff;
    font-family: 'Lora', Georgia, serif;
}

.entry-hero-author {
    font-size: 18px;
    color: #999;
    margin: 0;
    font-family: 'Source Sans Pro', sans-serif;
}

.entry-hero-author strong {
    color: #fff;
}

/* Main Content */
.entry-main {
    padding: 60px 0;
}

/* Layout with sidebar */
.entry-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.entry-article {
    min-width: 0;
}

/* Entry Body - Nice serif font */
.entry-body {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    font-size: 21px;
    line-height: 1.9;
    color: #d0d0d0;
}

.entry-body p {
    margin-bottom: 1.6em;
}

.entry-body a {
    color: #6db3f2;
    text-decoration: none;
}

.entry-body a:hover {
    text-decoration: underline;
}

.entry-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1.5em 0;
}

.entry-body h2,
.entry-body h3,
.entry-body h4 {
    font-family: 'Source Sans Pro', sans-serif;
    color: #fff;
    margin-top: 2em;
    margin-bottom: 0.5em;
    font-weight: 600;
}

.entry-body blockquote {
    border-left: 3px solid #6db3f2;
    padding-left: 20px;
    margin: 1.5em 0;
    color: #999;
    font-style: italic;
}

/* Clean up any inline styles from Word/etc */
.entry-body style,
.entry-body meta,
.entry-body link {
    display: none !important;
}

.entry-body span,
.entry-body font {
    font-family: inherit !important;
    font-size: inherit !important;
    color: inherit !important;
    line-height: inherit !important;
}

.entry-body div {
    font-family: inherit !important;
}

/* Sidebar */
.entry-sidebar {
    position: relative;
}

.sidebar-images {
    position: sticky;
    top: 70px;
}

.sidebar-image {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.sidebar-image.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.sidebar-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.sidebar-image-link {
    display: block;
    cursor: pointer;
}

.sidebar-caption {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 15px;
    color: #888;
    margin-top: 12px;
    line-height: 1.5;
    font-style: italic;
}

/* Gallery Section */
.entry-gallery {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #333;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-title {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 24px;
    font-weight: 300;
    color: #fff;
    margin: 0 0 25px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}

.gallery-item {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    background: #252525;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
    opacity: 0.9;
}

/* Entry Navigation */
.entry-navigation {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #333;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.nav-title {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 20px;
    font-weight: 300;
    color: #666;
    text-align: center;
    margin: 0 0 30px 0;
}

.nav-entries {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.nav-entry {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #252525;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-entry:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: inherit;
}

.nav-entry-placeholder {
    background: transparent;
}

.nav-entry-prev {
    justify-content: flex-start;
}

.nav-entry-next {
    justify-content: flex-end;
    text-align: right;
}

.nav-arrow {
    font-size: 24px;
    color: #6db3f2;
    flex-shrink: 0;
}

.nav-entry-image {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.nav-entry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-entry-content {
    flex: 1;
    min-width: 0;
}

.nav-label {
    display: block;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.nav-entry-title {
    display: block;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer */
.entry-footer {
    background: #111;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #333;
}

.entry-footer p {
    margin: 0;
    color: #666;
    font-size: 13px;
    font-family: 'Source Sans Pro', sans-serif;
}

/* Responsive Design */
@media (max-width: 992px) {
    .entry-hero {
        height: 50vh;
        min-height: 300px;
    }
    
    .entry-hero-title {
        font-size: 42px;
    }
    
    .entry-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .entry-sidebar {
        display: none;
    }
    
    .entry-body {
        font-size: 19px;
    }
}

@media (max-width: 768px) {
    .entry-hero {
        height: 45vh;
        min-height: 280px;
    }
    
    .entry-hero-title {
        font-size: 34px;
    }
    
    .entry-hero-content {
        bottom: 30px;
    }
    
    .entry-main {
        padding: 40px 0;
    }
    
    .entry-body {
        font-size: 18px;
        line-height: 1.8;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 6px;
    }
    
    .nav-entries {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .nav-entry-prev,
    .nav-entry-next {
        justify-content: flex-start;
        text-align: left;
    }
    
    .nav-entry-next {
        flex-direction: row-reverse;
    }
    
    .nav-entry-next .nav-entry-content {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .entry-hero {
        height: 40vh;
        min-height: 250px;
    }
    
    .entry-hero-title {
        font-size: 28px;
    }
    
    .entry-hero-date {
        font-size: 13px;
    }
    
    .entry-hero-author {
        font-size: 15px;
    }
    
    .entry-body {
        font-size: 17px;
    }
    
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 4px;
    }
    
    .nav-entry-image {
        width: 60px;
        height: 45px;
    }
    
    .nav-entry-title {
        font-size: 15px;
    }
}
