/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Screen Reader Only - Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #1e40af;
    --text-color: #1e293b;
    --bg-color: #fff;
    --border-color: #bfdbfe;
    --hover-color: #2563eb;
    --transition: all 0.3s ease;
    --section-bg: #eff6ff;
    --table-bg: #ffffff;
    --header-bg: #ffffff;
    --footer-bg: #dbeafe;
    --cta-bg: #dbeafe;
    --blue-light: #e0f2fe;
    --blue-medium: #93c5fd;
    --blue-dark: #1e40af;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #e0f2fe;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(59, 130, 246, 0.05) 2px, rgba(59, 130, 246, 0.05) 4px);
}

/* Header Styles */
.header {
    background-color: var(--header-bg);
    border-bottom: 2px solid var(--blue-medium);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    transition: var(--transition);
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-image:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* Navigation */
.main-nav {
    display: flex;
    flex: 1;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-list a {
    color: var(--blue-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-list a:hover {
    color: var(--secondary-color);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.lang-link.active {
    font-weight: bold;
    color: var(--blue-dark);
}

.lang-link:hover {
    color: var(--secondary-color);
}

.lang-separator {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--blue-dark);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: lowercase;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--secondary-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.25rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--blue-dark);
    transition: var(--transition);
}

.mobile-nav {
    display: none;
    width: 100%;
    padding: 1rem 2rem;
    background-color: var(--blue-light);
    border-top: 2px solid var(--blue-medium);
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-list a {
    color: var(--blue-dark);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--blue-medium);
    transition: var(--transition);
}

.mobile-nav-list a:hover {
    background-color: rgba(59, 130, 246, 0.1);
    padding-left: 0.5rem;
}

.mobile-nav-list li:last-child a {
    border-bottom: none;
}

.mobile-nav.active {
    display: block;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(30, 64, 175, 0.1);
    margin-top: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--blue-medium);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 2rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 12px;
    border: 2px solid var(--blue-medium);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
    object-fit: cover;
}

.main-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--blue-dark);
    line-height: 1.2;
}

.subtitle {
    font-size: 2rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-register,
.btn-login {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
    text-align: center;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-register {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: #ffffff;
    border-color: #1e40af;
}

.btn-register:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-login {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border-color: #059669;
}

.btn-login:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Bottom Auth Section */
.bottom-auth-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    background-color: var(--section-bg);
    border-radius: 12px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.bottom-auth-section .auth-buttons {
    justify-content: center;
    margin-bottom: 0;
}

/* Content Section */
.content-section {
    margin-bottom: 3rem;
    background-color: var(--section-bg);
    padding: 2.5rem;
    border-radius: 8px;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.intro-text,
.section-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-color);
}

/* Content Images */
.content-image-wrapper {
    margin: 2.5rem 0;
    text-align: center;
}

.content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.15);
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.image-caption {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--secondary-color);
    font-style: italic;
    text-align: center;
}

/* Table Styles */
.table-section {
    margin: 2rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.table-section::-webkit-scrollbar {
    height: 8px;
}

.table-section::-webkit-scrollbar-track {
    background: var(--blue-light);
    border-radius: 4px;
}

.table-section::-webkit-scrollbar-thumb {
    background: var(--blue-medium);
    border-radius: 4px;
}

.table-section::-webkit-scrollbar-thumb:hover {
    background: var(--blue-dark);
}

.content-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: var(--table-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.content-table thead {
    background-color: var(--blue-medium);
}

.content-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--blue-dark);
    color: #ffffff;
    font-size: 1rem;
}

.content-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.content-table tbody tr {
    background-color: #ffffff;
}

.content-table tbody tr:nth-child(even) {
    background-color: var(--blue-light);
}

.content-table tbody tr:hover {
    background-color: var(--section-bg);
}

.content-table tbody tr:last-child td {
    border-bottom: none;
}

/* Subsection */
.subsection {
    margin: 3rem 0;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 8px;
    border: 2px solid var(--blue-medium);
    box-shadow: 0 2px 6px rgba(30, 64, 175, 0.1);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--blue-dark);
    line-height: 1.3;
}

.section-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--blue-dark);
    line-height: 1.3;
}

/* Share Section */
.share-section {
    padding: 2rem;
    border-top: 2px solid var(--blue-medium);
    border-bottom: 2px solid var(--blue-medium);
    margin: 3rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--blue-light);
    border-radius: 8px;
}

.share-label {
    font-weight: 500;
    color: var(--text-color);
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-btn {
    color: var(--blue-dark);
    text-decoration: none;
    text-transform: lowercase;
    padding: 0.5rem 1rem;
    border: 2px solid var(--blue-medium);
    border-radius: 4px;
    transition: var(--transition);
    font-size: 0.9rem;
    background-color: #ffffff;
}

.share-btn:hover {
    background-color: var(--blue-dark);
    color: #ffffff;
    border-color: var(--blue-dark);
}

/* FAQ Section */
.faq-section {
    margin: 3rem 0;
    padding: 2.5rem;
    background-color: #ffffff;
    border-radius: 8px;
    border: 2px solid var(--blue-medium);
    box-shadow: 0 2px 6px rgba(30, 64, 175, 0.1);
}

.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-question {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--blue-dark);
    line-height: 1.4;
}

.faq-answer {
    color: var(--text-color);
    line-height: 1.8;
}

.faq-answer p {
    margin: 0;
    font-size: 1.05rem;
}

/* Related Section */
.related-section {
    margin: 3rem 0;
    padding: 2rem;
    background-color: var(--section-bg);
    border-radius: 8px;
    border: 2px solid var(--blue-medium);
}

.related-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--blue-dark);
}

.no-posts {
    color: var(--secondary-color);
    font-style: italic;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    margin: 3rem 0;
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
    border-radius: 12px;
    border: 2px solid var(--blue-dark);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.cta-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--blue-dark);
}

.cta-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.cta-button {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--blue-dark);
    border: 2px solid var(--blue-dark);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

/* Footer */
.footer {
    background-color: #f5f5f5;
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--blue-dark);
}

.footer-text {
    color: var(--text-color);
    font-size: 0.95rem;
}

.footer-license {
    color: var(--secondary-color);
    font-size: 0.75rem;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

.footer-link {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem 0;
    border-top: 2px solid var(--blue-medium);
    text-align: center;
}

.footer-copyright {
    color: var(--secondary-color);
    font-size: 0.425rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 1.5rem;
    }

    .main-content {
        padding: 1.5rem;
    }

    .nav-list {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.75rem 0;
    }

    .header-container {
        padding: 0 1rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .logo {
        order: 1;
    }

    .logo-image {
        height: 40px;
        max-width: 200px;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 3;
        margin-left: auto;
    }

    .header-actions {
        gap: 0.75rem;
        order: 2;
        flex-wrap: wrap;
    }

    .header-actions .social-links {
        display: none;
    }

    .language-switcher {
        font-size: 0.85rem;
    }

    .main-content {
        padding: 1rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
        border-radius: 8px;
    }

    .hero-section {
        padding: 2.5rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .hero-content {
        gap: 1.5rem;
    }
    
    .hero-image {
        max-width: 100%;
        border-radius: 6px;
    }

    .main-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .content-image-wrapper {
        margin: 2rem 0;
    }
    
    .content-image {
        border-radius: 6px;
    }
    
    .image-caption {
        font-size: 0.9rem;
        margin-top: 0.75rem;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .content-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .intro-text,
    .section-text {
        font-size: 1rem;
        line-height: 1.7;
    }

    .subsection {
        margin: 2rem 0;
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .section-subtitle {
        font-size: 1.2rem;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .table-section {
        margin: 1.5rem 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .content-table {
        font-size: 0.85rem;
        min-width: 500px;
        display: block;
        overflow-x: auto;
    }

    .content-table thead,
    .content-table tbody,
    .content-table tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }

    .content-table th,
    .content-table td {
        padding: 0.75rem 0.5rem;
        word-wrap: break-word;
    }

    .share-section {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        gap: 1rem;
    }

    .share-buttons {
        width: 100%;
        flex-wrap: wrap;
    }

    .share-btn {
        flex: 1;
        min-width: 80px;
        text-align: center;
    }

    .faq-section {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .faq-question {
        font-size: 1.15rem;
    }
    
    .faq-answer p {
        font-size: 1rem;
    }
    
    .related-section {
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .related-title {
        font-size: 1.25rem;
    }

    .cta-section {
        padding: 2.5rem 1.5rem;
        margin: 2rem 0;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-subtitle {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 300px;
    }

    .auth-buttons {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .btn-register,
    .btn-login {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        flex: 1;
        min-width: 140px;
    }

    .bottom-auth-section {
        padding: 1.5rem;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .footer {
        padding: 2rem 0 1rem;
        margin-top: 2rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .footer-bottom {
        padding: 1rem;
    }

    .footer-copyright {
        font-size: 0.4rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.5rem 1rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo-image {
        height: 35px;
        max-width: 180px;
    }

    .header-actions {
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .social-links {
        display: none;
    }

    .language-switcher {
        font-size: 0.8rem;
    }

    .main-content {
        padding: 0.75rem;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-section {
        padding: 2rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content {
        gap: 1rem;
    }
    
    .hero-image {
        border-radius: 4px;
    }

    .main-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .content-image-wrapper {
        margin: 1.5rem 0;
    }
    
    .content-image {
        border-radius: 4px;
    }
    
    .image-caption {
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }

    .subtitle {
        font-size: 1.25rem;
    }

    .content-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .intro-text,
    .section-text {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .subsection {
        margin: 1.5rem 0;
        padding: 1rem;
    }

    .section-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
        margin-top: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .table-section {
        margin: 1rem 0;
    }

    .content-table {
        font-size: 0.75rem;
        min-width: 400px;
    }

    .content-table th,
    .content-table td {
        padding: 0.5rem 0.4rem;
    }

    .share-section {
        padding: 1rem;
        margin: 1.5rem 0;
    }

    .share-label {
        font-size: 0.9rem;
    }

    .share-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .auth-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-register,
    .btn-login {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .bottom-auth-section {
        padding: 1.25rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .faq-section {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .faq-question {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .faq-answer p {
        font-size: 0.95rem;
    }
    
    .faq-item {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .related-section {
        padding: 1rem;
        margin: 1.5rem 0;
    }

    .related-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .cta-section {
        padding: 2rem 1rem;
        margin: 1.5rem 0;
    }

    .cta-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .cta-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        width: 100%;
    }

    .footer {
        padding: 1.5rem 0 0.75rem;
    }

    .footer-container {
        padding: 0 0.75rem;
        gap: 1.25rem;
    }

    .footer-title {
        font-size: 1rem;
    }

    .footer-text {
        font-size: 0.9rem;
    }

    .footer-bottom {
        padding: 0.75rem;
    }

    .footer-copyright {
        font-size: 0.375rem;
        line-height: 1.5;
    }
}

@media (max-width: 360px) {
    .main-title {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }

    .content-table {
        font-size: 0.7rem;
        min-width: 350px;
    }

    .content-table th,
    .content-table td {
        padding: 0.4rem 0.3rem;
    }
}

