/* DoubleD Website - Main Stylesheet */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

a:hover {
    color: #007bff;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #007bff;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* GNB */
.gnb-list {
    display: flex;
    gap: 40px;
}

.gnb-item {
    position: relative;
}

.gnb-item > a {
    display: block;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.gnb-item.active > a,
.gnb-item:hover > a {
    color: #007bff;
}

/* Sub Menu */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    min-width: 150px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.gnb-item:hover .sub-menu {
    opacity: 1;
    visibility: visible;
}

.sub-menu li {
    padding: 8px 20px;
}

.sub-menu li a {
    display: block;
    color: #666;
    font-size: 14px;
}

.sub-menu li.active a,
.sub-menu li:hover a {
    color: #007bff;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 30px;
}

.user-menu-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
}

.user-menu-link:hover {
    color: #fff;
    background: #007bff;
    border-color: #007bff;
}

/* User Menu Toggle Button */
.user-menu-toggle-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #333;
    transition: color 0.3s;
}

.user-menu-toggle-btn:hover {
    color: #007bff;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s;
}

/* Main Container */
#container {
    margin-top: 80px;
    min-height: calc(100vh - 80px - 200px);
}

/* Page Title */
.page-title {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-title h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-title p {
    font-size: 16px;
    opacity: 0.9;
}

/* Content Section */
.content-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h3 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #333;
}

.section-title p {
    font-size: 16px;
    color: #666;
}

/* Button */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background: #0056b3;
    color: #fff;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-outline {
    background: transparent;
    border: 2px solid #007bff;
    color: #007bff;
}

.btn-outline:hover {
    background: #007bff;
    color: #fff;
}

/* Card */
.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-body {
    padding: 25px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.card-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Grid */
.grid {
    display: grid;
    gap: 30px;
}

.grid-col-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-col-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-col-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-label.required::after {
    content: '*';
    color: #dc3545;
    margin-left: 4px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

/* Footer */
#footer {
    background: #2c3e50;
    color: #fff;
    padding: 50px 0 30px;
    margin-top: 80px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo h2 {
    font-size: 24px;
    color: #fff;
}

.footer-info {
    text-align: right;
}

.info-item {
    margin-bottom: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.info-item strong {
    margin-right: 5px;
}

.footer-bottom {
    padding-top: 20px;
    text-align: center;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links .separator {
    margin: 0 10px;
    color: rgba(255,255,255,0.4);
}

.copyright {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

.pagination .current {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-50 { margin-top: 50px; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-50 { margin-bottom: 50px; }
