/* General Styles */
body {
    font-family: 'Noto Sans KR', sans-serif;
    margin: 0;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    color: inherit;
}

/* Header */
header {
    background-color: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 10;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
    color: #007bff;
}

/* Buttons */
.primary-btn {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 0.9rem 2rem;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.primary-btn:hover {
    background-color: #0056b3;
}

.btn {
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #555;
    padding: 0.6rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: #f1f3f5;
}

.btn.secondary {
    color: #555;
}

.btn.danger {
    border-color: #ffb3b3;
    color: #c0392b;
}

/* Hero */
.hero {
    background-color: #e9f5ff;
    padding: 4rem 0;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-text {
    max-width: 50%;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0056b3;
}

.hero-text p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
}

.hero-image img {
    max-width: 400px;
    border-radius: 10px;
}

.page-hero {
    background: #eef5ff;
    padding: 3rem 0 2.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.page-hero h1 {
    margin: 0 0 0.75rem;
    font-size: 2.2rem;
    color: #0056b3;
}

.page-hero p {
    margin: 0;
    color: #555;
    font-size: 1.05rem;
}

/* Sections */
.section {
    padding: 3.5rem 0;
}

.section.alt {
    background: #f1f6ff;
}

.section-title {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 2rem;
}

.section-title h2 {
    margin: 0;
    font-size: 1.8rem;
}

.section-title p {
    margin: 0;
    color: #666;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #eaeaea;
}

.card h3 {
    margin-top: 0;
    color: #0056b3;
}

.card a {
    color: #007bff;
    font-weight: 600;
    text-decoration: none;
}

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

.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.list {
    margin: 0.6rem 0 0;
    padding-left: 1.2rem;
}

.list li {
    margin: 0.4rem 0;
}

.muted {
    color: #777;
}

/* Accounts */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.filter-btn {
    border: 1px solid #e0e0e0;
    background: #fff;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: #007bff;
    color: #fff;
    border-color: transparent;
}

.search input {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    min-width: 240px;
    font-size: 0.95rem;
}

.toolbar-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.account-sections {
    display: grid;
    gap: 2rem;
}

.account-group h2 {
    margin: 0 0 0.8rem;
    color: #0056b3;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
}

.account-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    padding: 1rem 1.2rem;
}

.account-card summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.account-card summary::-webkit-details-marker {
    display: none;
}

.account-card .content {
    margin-top: 0.8rem;
    display: grid;
    gap: 0.7rem;
}

.pill {
    display: inline-flex;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: #eef5ff;
    color: #0056b3;
    font-size: 0.8rem;
    font-weight: 600;
}

.account-tag {
    font-size: 0.85rem;
    color: #007bff;
    font-weight: 600;
}

/* Contact Form */
.contact-form {
    display: grid;
    gap: 1rem;
    max-width: 560px;
}

.contact-form label {
    display: grid;
    gap: 0.4rem;
    font-weight: 600;
}

.input,
.textarea {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    font-size: 0.95rem;
    background: #fff;
    color: #333;
}

.textarea {
    resize: vertical;
}

/* Footer */
footer {
    background-color: #343a40;
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 980px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .two-col {
        grid-template-columns: 1fr;
    }
}
