/* Jubilee2040.com - Shared Styles */

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

body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e8e8e8;
    line-height: 1.6;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR NAVIGATION ===== */
.sidebar {
    width: 280px;
    background: rgba(15, 15, 25, 0.95);
    padding: 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    border-right: 2px solid #d4af37;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.5);
}

.sidebar-header {
    margin-bottom: 20px;
}

.sidebar h2 {
    color: #d4af37;
    font-size: 1.5em;
    text-align: center;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.site-title {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.3s;
}

.site-title:hover {
    color: #fff;
}

.sidebar .author {
    text-align: center;
    color: #b8b8b8;
    font-size: 0.9em;
    font-style: italic;
}

.nav-section-title {
    color: #d4af37;
    font-weight: bold;
    font-size: 0.85em;
    text-transform: uppercase;
    margin-top: 20px;
    margin-bottom: 10px;
    padding-left: 15px;
    letter-spacing: 1px;
}

.nav-menu {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 8px;
}

.nav-menu a {
    display: block;
    color: #b8b8b8;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 0.95em;
    border-left: 3px solid transparent;
}

.nav-menu a:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    border-left-color: #d4af37;
    transform: translateX(5px);
}

.nav-menu a.active {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    border-left-color: #d4af37;
    font-weight: bold;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: 280px;
    flex: 1;
    padding: 40px 60px;
    max-width: 1200px;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    font-size: 0.9em;
    margin-bottom: 20px;
    color: #b8b8b8;
}

.breadcrumbs a {
    color: #d4af37;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    margin: 0 8px;
}

/* ===== HOME PAGE ===== */
.home-content {
    text-align: center;
    padding: 60px 20px;
}

.home-content h1 {
    font-size: 3em;
    color: #d4af37;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.home-content .subtitle {
    font-size: 1.5em;
    color: #b8b8b8;
    margin-bottom: 15px;
    font-style: italic;
}

.author-credit {
    font-size: 1.3em;
    color: #d4af37;
    margin-bottom: 30px;
    font-style: italic;
}

.home-content .description {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.cta-section {
    margin: 50px 0;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #1a1a2e;
    padding: 18px 40px;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.cta-subtext {
    margin-top: 15px;
    color: #b8b8b8;
    font-style: italic;
}

/* Overview Cards */
.overview-cards {
    margin-top: 60px;
    text-align: left;
}

.overview-cards h2 {
    text-align: center;
    color: #d4af37;
    font-size: 2em;
    margin-bottom: 30px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.overview-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.overview-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #d4af37;
    transform: translateY(-5px);
}

.overview-card h3 {
    color: #d4af37;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.overview-card p {
    color: #e8e8e8;
    font-size: 1em;
    line-height: 1.6;
}

/* ===== CONTENT PAGES ===== */
.content-page h1 {
    font-size: 2.5em;
    color: #d4af37;
    margin-bottom: 30px;
    border-bottom: 3px solid #d4af37;
    padding-bottom: 15px;
}

.content-page h2 {
    font-size: 1.8em;
    color: #d4af37;
    margin-top: 40px;
    margin-bottom: 20px;
}

.content-page h3 {
    font-size: 1.4em;
    color: #d4af37;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-page p {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.content-page em {
    color: #d4af37;
    font-style: italic;
}

.content-page strong {
    color: #d4af37;
}

.content-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: rgba(255, 255, 255, 0.05);
}

.content-page table th,
.content-page table td {
    padding: 15px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    text-align: left;
}

.content-page table th {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    font-weight: bold;
}

.content-page ol {
    font-size: 1.05em;
    line-height: 1.8;
    margin-left: 40px;
    margin-bottom: 20px;
}

.content-page ol li {
    margin-bottom: 15px;
}

.content-page ul {
    font-size: 1.05em;
    line-height: 1.8;
    margin-left: 40px;
    margin-bottom: 20px;
}

.content-page ul li {
    margin-bottom: 10px;
}

/* ===== DIVE DEEPER SECTION ===== */
.dive-deeper {
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid #d4af37;
    border-radius: 8px;
    padding: 25px;
    margin: 40px 0;
    text-align: center;
}

.dive-deeper h3 {
    color: #d4af37;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.dive-deeper p {
    margin-bottom: 20px;
    text-align: center;
}

.dive-deeper-button {
    display: inline-block;
    background: rgba(212, 175, 55, 0.3);
    color: #d4af37;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: 2px solid #d4af37;
    transition: all 0.3s ease;
}

.dive-deeper-button:hover {
    background: rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

/* ===== PAGE NAVIGATION ===== */
.page-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid rgba(212, 175, 55, 0.3);
}

.nav-arrow {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: bold;
    border: 2px solid #d4af37;
    display: inline-block;
}

.nav-arrow:hover {
    background: rgba(212, 175, 55, 0.4);
    transform: translateX(5px);
}

.nav-arrow.prev:hover {
    transform: translateX(-5px);
}

.nav-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== FOOTER ===== */
.site-footer {
    margin-top: 80px;
    padding: 40px 20px;
    border-top: 2px solid rgba(212, 175, 55, 0.3);
    background: rgba(15, 15, 25, 0.5);
}

.footer-content {
    text-align: center;
    color: #b8b8b8;
    font-size: 0.95em;
}

.footer-title {
    font-size: 1.3em;
    color: #d4af37;
    margin-bottom: 10px;
}

.footer-content p {
    margin-bottom: 10px;
}

.footer-content a {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-content a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-nav {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-nav a {
    margin: 0 10px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }
    
    .main-content {
        margin-left: 250px;
        padding: 30px 40px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 2px solid #d4af37;
        max-height: none;
        overflow-y: visible;
    }

    .main-content {
        margin-left: 0;
        padding: 20px 15px;
    }

    .home-content h1 {
        font-size: 2em;
        line-height: 1.2;
    }
    
    .home-content .subtitle {
        font-size: 1.2em;
    }
    
    .author-credit {
        font-size: 1.1em;
    }
    
    .home-content .description {
        font-size: 1em;
    }

    .content-page h1 {
        font-size: 1.8em;
    }
    
    .content-page h2 {
        font-size: 1.4em;
    }
    
    .content-page h3 {
        font-size: 1.2em;
    }
    
    .content-page p {
        font-size: 1em;
        text-align: left;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .overview-card {
        padding: 20px;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1em;
    }
    
    .page-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-arrow {
        width: 100%;
        text-align: center;
    }
    
    .content-page table {
        font-size: 0.9em;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .breadcrumbs {
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .sidebar h2 {
        font-size: 1.2em;
    }
    
    .nav-menu a {
        font-size: 0.9em;
        padding: 8px 12px;
    }
    
    .home-content {
        padding: 30px 10px;
    }
    
    .home-content h1 {
        font-size: 1.6em;
    }
    
    .home-content .subtitle {
        font-size: 1em;
    }
    
    .content-page h1 {
        font-size: 1.5em;
    }
    
    .content-page h2 {
        font-size: 1.3em;
    }
    
    .dive-deeper {
        padding: 20px 15px;
    }
    
    .dive-deeper h3 {
        font-size: 1.2em;
    }
    
    .site-footer {
        padding: 30px 15px;
    }
    
    .footer-nav a {
        display: block;
        margin: 10px 0;
    }
}

/* Ensure text is readable on all devices */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    .content-page ol,
    .content-page ul {
        margin-left: 20px;
        font-size: 0.95em;
    }
    
    .content-page ol li,
    .content-page ul li {
        margin-bottom: 10px;
    }
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b8941f;
}