/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #4a90e2;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #2c5aa0;
}

.logo img {
    height: 50px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(45deg, #4a90e2, #2c5aa0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: #2c5aa0;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav a:hover {
    background: linear-gradient(45deg, #4a90e2, #2c5aa0);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #2c5aa0;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(74, 144, 226, 0.1);
}

/* Main Content */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    margin: 20px auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.content-wrapper {
    padding: 40px;
}

/* Sections */
section {
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    border-left: 5px solid #4a90e2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Links */
a {
    color: #4a90e2;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #2c5aa0;
    text-decoration: underline;
}

a:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(45deg, #4a90e2, #2c5aa0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 1.8rem;
    color: #2c5aa0;
    margin-bottom: 15px;
    border-bottom: 2px solid #e8f4fd;
    padding-bottom: 10px;
}

h3 {
    font-size: 1.4rem;
    color: #4a90e2;
    margin-bottom: 12px;
}

p {
    margin-bottom: 15px;
    text-align: justify;
    color: #444;
}

/* Lists */
ul, ol {
    margin: 15px 0;
    padding-left: 25px;
}

li {
    margin-bottom: 8px;
    color: #555;
}

strong {
    color: #2c5aa0;
    font-weight: 600;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: white;
}

table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    background: white;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e8f4fd;
}

th {
    background: linear-gradient(45deg, #4a90e2, #2c5aa0);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

tr:hover {
    background: rgba(74, 144, 226, 0.05);
}

/* Banners */
.banner {
    width: 100%;
    margin: 30px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.banner:hover {
    transform: scale(1.02);
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Author Image */
.author-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #4a90e2;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
    margin: 20px auto;
    display: block;
    transition: all 0.3s ease;
}

.author-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(74, 144, 226, 0.4);
    border-color: #2c5aa0;
}

@media (max-width: 768px) {
    .author-image {
        width: 150px;
        height: 150px;
        margin: 15px auto;
    }
}

/* Definition Lists */
dl {
    margin: 20px 0;
}

dt {
    font-weight: bold;
    color: #2c5aa0;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

dd {
    margin-bottom: 15px;
    margin-left: 20px;
    color: #555;
    padding: 10px;
    background: rgba(74, 144, 226, 0.05);
    border-radius: 8px;
    border-left: 3px solid #4a90e2;
}

/* Blockquotes */
blockquote {
    border-left: 4px solid #4a90e2;
    padding: 20px;
    margin: 20px 0;
    background: rgba(74, 144, 226, 0.05);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #2c5aa0;
    position: relative;
}

blockquote::before {
    content: '"';
    font-size: 3rem;
    color: #4a90e2;
    position: absolute;
    top: -10px;
    left: 15px;
    opacity: 0.3;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
    color: #ffffff;
    padding: 40px 0 20px;
    margin-top: 40px;
    border-top: 3px solid #4a90e2;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 8px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
    color: #ffffff;
}

.footer-section a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #e8f4fd;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
}

.footer-bottom p {
    color: #ffffff !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
        padding: 15px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
        order: 2;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .content-wrapper {
        padding: 20px;
    }
    
    section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 10px 8px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .content-wrapper {
        padding: 15px;
    }
    
    section {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    table {
        font-size: 0.8rem;
    }
    
    th, td {
        padding: 8px 5px;
    }
}

/* Animation for smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #4a90e2, #2c5aa0);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #2c5aa0, #1e3a8a);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #4a90e2, #2c5aa0);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.6);
    background: linear-gradient(45deg, #2c5aa0, #1e3a8a);
}

.scroll-to-top:active {
    transform: translateY(-1px) scale(1.05);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}
