/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    background-color: #1a1a1a;
    color: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    padding: 10px;
    border-radius: 10px;
    background-color: #fff;
}

.logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

nav a:hover {
    color: #ffd700;
}

/* Main Content */
main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

section {
    margin-bottom: 3rem;
    scroll-margin-top: 100px;
}

section h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    line-height: 1.2;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    color: #1a1a1a;
    line-height: 1.3;
}

section p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

section ul, section ol {
    margin: 1rem 0 1rem 2rem;
}

section li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

section table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 1rem;
}

section table thead {
    background-color: #1a1a1a;
    color: #fff;
}

section table th,
section table td {
    padding: 1rem;
    text-align: left;
    border: 1px solid #ddd;
}

section table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

section dl {
    margin: 1.5rem 0;
}

section dt {
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

section dd {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* FAQ Accordion Styles */
section dl dt {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 2rem;
    transition: color 0.3s ease;
    margin-bottom: 0.5rem;
}

section dl dt:hover {
    color: #ffd700;
}

section dl dt::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

section dl dt.active::after {
    content: '−';
    transform: rotate(0deg);
}

section dl dd {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin 0.3s ease;
    margin-left: 1.5rem;
    margin-bottom: 0;
}

section dl dt.active + dd,
section dl div.faq-active dd {
    max-height: 500px;
    margin-bottom: 1rem;
}

/* Banner Styles */
.banner {
    width: 100%;
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Breadcrumbs */
.breadcrumbs {
    margin: 1rem 0 2rem;
    padding: 0.5rem 0;
}

.breadcrumbs-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.breadcrumbs-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.breadcrumbs-item:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: #666;
}

.breadcrumbs-link {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs-link:hover {
    color: #ffd700;
}

.breadcrumbs-current {
    color: #666;
}

/* Footer Styles */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 2rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    align-items: center;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo img {
    max-height: 50px;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #ffd700;
}

.footer-copyright {
    font-size: 0.9rem;
    color: #ccc;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
}

/* 404 Page Styles */
.error-404 {
    text-align: center;
    padding: 4rem 2rem;
}

.error-404 > div:first-child {
    font-size: 6rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: bold;
    line-height: 1;
}

.error-404 p {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 2rem;
}

.error-404 a {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #1a1a1a;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-size: 1.1rem;
}

.error-404 a:hover {
    background-color: #333;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.scroll-to-top:hover {
    background-color: #333;
    transform: translateY(-3px);
}

.scroll-to-top.show {
    display: flex;
}

.scroll-to-top::before {
    content: '↑';
    line-height: 1;
}

/* Utility Classes */
.hide-nav {
    display: none !important;
}

/* Responsive Design */

/* PC - min 1025px */
@media (min-width: 1025px) {
    main {
        padding: 3rem 2rem;
    }
    
    section h1 {
        font-size: 3rem;
    }
    
    section h2 {
        font-size: 2.5rem;
    }
}

/* Laptop - max 1024px */
@media (max-width: 1024px) {
    header {
        padding: 1rem 1.5rem;
    }
    
    .header-container {
        gap: 1.5rem;
    }
    
    main {
        padding: 2rem 1.5rem;
    }
    
    section h1 {
        font-size: 2.25rem;
    }
    
    section h2 {
        font-size: 1.75rem;
    }
}

/* Tablet - max 768px */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .header-container nav{
        display: none;
    }
    
    main {
        padding: 1.5rem 1rem;
    }
    
    section h1 {
        font-size: 2rem;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    section p,
    section li,
    section dd {
        font-size: 1rem;
    }
    
    section table {
        font-size: 0.9rem;
    }
    
    section table th,
    section table td {
        padding: 0.75rem;
    }
    
    footer {
        padding: 1.5rem 1rem;
    }
    
    .footer-nav {
        justify-content: center;
    }
    
    .error-404 > div:first-child {
        font-size: 4rem;
    }
    
    .error-404 p {
        font-size: 1.25rem;
    }
}

/* Mobile L - max 425px */
@media (max-width: 425px) {
    header {
        padding: 0.75rem;
    }
    
    .logo img {
        max-height: 40px;
    }
    
    nav {
        gap: 0.75rem;
    }
    
    nav a {
        font-size: 0.9rem;
    }
    
    main {
        padding: 1rem 0.75rem;
    }
    
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1.3rem;
    }
    
    section h1 {
        font-size: 1.75rem;
    }
    
    section h2 {
        font-size: 1.35rem;
    }
    
    section p,
    section li,
    section dd {
        font-size: 0.95rem;
    }
    
    section ul, section ol {
        margin-left: 1.5rem;
    }
    
    section table {
        font-size: 0.85rem;
        display: block;
        overflow-x: auto;
    }
    
    section table th,
    section table td {
        padding: 0.5rem;
    }
    
    .banner {
        margin: 1.5rem 0;
    }
    
    footer {
        padding: 1rem 0.75rem;
    }
    
    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .error-404 {
        padding: 3rem 1rem;
    }
    
    .error-404 > div:first-child {
        font-size: 3.5rem;
    }
    
    .error-404 p {
        font-size: 1.1rem;
    }
    
    .error-404 a {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Mobile M - max 375px */
@media (max-width: 375px) {
    .logo img {
        max-height: 35px;
    }
    
    nav a {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }
    
    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 1.25rem;
        right: 1.25rem;
        font-size: 1.2rem;
    }
    
    section h1 {
        font-size: 1.5rem;
    }
    
    section h2 {
        font-size: 1.25rem;
    }
    
    section p,
    section li,
    section dd {
        font-size: 0.9rem;
    }
    
    section dt {
        font-size: 1.1rem;
    }
    
    section table {
        font-size: 0.8rem;
    }
    
    .error-404 > div:first-child {
        font-size: 3rem;
    }
    
    .error-404 p {
        font-size: 1rem;
    }
    
    .error-404 a {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Mobile S - max 320px */
@media (max-width: 320px) {
    header {
        padding: 0.5rem;
    }
    
    .logo img {
        max-height: 30px;
    }
    
    nav {
        gap: 0.5rem;
    }
    
    nav a {
        font-size: 0.8rem;
    }
    
    main {
        padding: 0.75rem 0.5rem;
    }
    
    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 1rem;
        right: 1rem;
        font-size: 1.1rem;
    }
    
    section h1 {
        font-size: 1.35rem;
    }
    
    section h2 {
        font-size: 1.15rem;
    }
    
    section p,
    section li,
    section dd {
        font-size: 0.85rem;
    }
    
    section ul, section ol {
        margin-left: 1.25rem;
    }
    
    section table {
        font-size: 0.75rem;
    }
    
    section table th,
    section table td {
        padding: 0.4rem;
    }
    
    .banner {
        margin: 1rem 0;
    }
    
    footer {
        padding: 0.75rem 0.5rem;
    }
    
    .footer-nav a {
        font-size: 0.85rem;
    }
    
    .footer-copyright {
        font-size: 0.8rem;
    }
    
    .error-404 {
        padding: 2rem 0.5rem;
    }
    
    .error-404 > div:first-child {
        font-size: 2.5rem;
    }
    
    .error-404 p {
        font-size: 0.95rem;
    }
    
    .error-404 a {
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }
}

