/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a1a1a 100%);
    min-height: 100vh;
}

/* Header Styles */
.header {
    background: linear-gradient(90deg, #8B0000 0%, #DC143C 50%, #8B0000 100%);
    box-shadow: 0 4px 20px rgba(220, 20, 60, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #FFD700;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 28px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    color: #FFD700;
}

.logo img {
    height: 60px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.7));
}

.navigation {
    display: flex;
    list-style: none;
    gap: 30px;
}

.navigation li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
}

.navigation li a:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Section Styles */
section {
    background: linear-gradient(145deg, rgba(139, 0, 0, 0.1) 0%, rgba(26, 26, 26, 0.8) 100%);
    margin: 30px 0;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(220, 20, 60, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #DC143C, #FFD700, #DC143C);
    border-radius: 15px 15px 0 0;
}

/* Typography */
h1 {
    font-size: 2.5em;
    color: #FFD700;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    background: linear-gradient(45deg, #FFD700, #DC143C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2em;
    color: #DC143C;
    margin-bottom: 20px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    border-bottom: 2px solid #DC143C;
    padding-bottom: 10px;
}

h3 {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 15px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
    color: #e0e0e0;
    text-align: justify;
}

/* Links */
a {
    color: #DC143C;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FFD700;
    text-decoration: underline;
}

a:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

/* Lists */
ul, ol {
    padding-left: 30px;
}

li {
    color: #e0e0e0;
    position: relative;
}

ul li::marker {
    color: #DC143C;
    font-weight: bold;
}

ol li::marker {
    color: #FFD700;
    font-weight: bold;
}

/* Table Container */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 25px 0;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

/* Table Container Scrollbar */
.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #DC143C, #8B0000);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #FFD700, #DC143C);
}

/* Tables */
table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(220, 20, 60, 0.3);
}

th {
    background: linear-gradient(90deg, #8B0000, #DC143C);
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

tr:nth-child(even) {
    background: rgba(139, 0, 0, 0.1);
}

tr:hover {
    background: rgba(220, 20, 60, 0.2);
    transform: scale(1.01);
    transition: all 0.3s ease;
}

/* FAQ Accordion */
.faq-accordion {
    margin: 25px 0;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid rgba(220, 20, 60, 0.3);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(26, 26, 26, 0.8);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.2);
}

.faq-question {
    font-weight: bold;
    color: #FFD700;
    font-size: 1.2em;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    padding: 20px;
    cursor: pointer;
    background: linear-gradient(90deg, rgba(139, 0, 0, 0.3), rgba(26, 26, 26, 0.8));
    border: none;
    width: 100%;
    text-align: left;
    position: relative;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(90deg, rgba(220, 20, 60, 0.4), rgba(26, 26, 26, 0.9));
    color: #ffffff;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    color: #e0e0e0;
    padding: 0 20px;
    background: rgba(26, 26, 26, 0.5);
    border-top: 1px solid rgba(220, 20, 60, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 200px;
}

/* Definition Lists */
dl {
    margin: 25px 0;
}

dt {
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 10px;
    font-size: 1.2em;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

dd {
    margin-bottom: 20px;
    margin-left: 20px;
    color: #e0e0e0;
    padding: 15px;
    background: rgba(26, 26, 26, 0.5);
    border-left: 4px solid #DC143C;
    border-radius: 5px;
}

/* Banner Styles */
.banner {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease;
    border: 3px solid rgba(220, 20, 60, 0.5);
}

.banner:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(220, 20, 60, 0.4);
}

/* Side Banner Styles */
.side-banner {
    width: 300px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease;
    border: 3px solid rgba(220, 20, 60, 0.5);
    margin: 0 auto;
}

.side-banner:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(220, 20, 60, 0.4);
}

/* Footer */
.footer {
    background: linear-gradient(90deg, #1a1a1a 0%, #8B0000 50%, #1a1a1a 100%);
    border-top: 3px solid #FFD700;
    margin-top: 60px;
    padding: 40px 0 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-title {
    color: #FFD700;
    margin-bottom: 20px;
    font-size: 1.3em;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    font-weight: bold;
}

.footer-section p, .footer-section li {
    color: #e0e0e0;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 5px 0;
}

.footer-section ul li a:hover {
    color: #FFD700;
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(220, 20, 60, 0.3);
    padding-top: 20px;
    text-align: center;
    color: #e0e0e0;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        min-height: auto;
    }
    
    .logo {
        font-size: 24px;
        margin: 0;
    }
    
     .navigation {
         position: absolute;
         top: 100%;
         left: 0;
         right: 0;
         background: linear-gradient(90deg, #8B0000 0%, #DC143C 50%, #8B0000 100%);
         flex-direction: column;
         gap: 10px;
         width: 100%;
         text-align: center;
         display: none;
         box-shadow: 0 4px 20px rgba(220, 20, 60, 0.3);
         border-top: 3px solid #FFD700;
         z-index: 1000;
     }
     
     .navigation.active {
         display: flex;
     }
     
     .navigation li a {
         display: block;
         padding: 15px;
         margin: 5px 0;
     }
     
     .mobile-menu-toggle {
         display: flex;
         position: relative;
         top: auto;
         right: auto;
     }
     
     .mobile-menu-toggle.active span:nth-child(1) {
         transform: rotate(-45deg) translate(-5px, 6px);
     }
     
     .mobile-menu-toggle.active span:nth-child(2) {
         opacity: 0;
     }
     
     .mobile-menu-toggle.active span:nth-child(3) {
         transform: rotate(45deg) translate(-5px, -6px);
     }
    
    .main-content {
        padding: 20px 15px;
    }
    
    section {
        padding: 25px 20px;
        margin: 20px 0;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
     table {
         font-size: 14px;
     }
     
     th, td {
         padding: 10px 8px;
     }
     
     .side-banner {
         width: 100%;
         margin: 0 auto;
     }
     
     div[style*="display: flex"] {
         flex-direction: column !important;
     }
     
     /* Author photo responsive */
     div[style*="display: flex"] img {
         width: 100% !important;
         margin: 0 auto 20px auto !important;
     }
     
     /* FAQ Accordion responsive */
     .faq-question {
         font-size: 1em;
         padding: 15px;
     }
     
     .faq-question::after {
         right: 15px;
         font-size: 20px;
     }
     
     .faq-item.active .faq-answer {
         padding: 15px;
     }
     
     /* Play buttons responsive */
     a[href="/go"] {
         font-size: 14px !important;
         padding: 10px 20px !important;
         min-width: 120px !important;
     }
 }

@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }
    
    .logo img {
        height: 50px;
    }
    
    section {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.3em;
    }
    
    p {
        font-size: 14px;
    }
    
    table {
        font-size: 12px;
    }
    
    th, td {
        padding: 8px 5px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 0.6s ease-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #DC143C, #8B0000);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FFD700, #DC143C);
}

/* Focus States */
a:focus, button:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header, .footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    section {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
    }
}
