:root {
    --primary-color: #4A7C59;
    --primary-hover: #386044;
    --second-color: #D4A373;
    --ivory-bg: #FCFBF7; 
    --text-main: #333333;
    --text-light: #666666;
    --border-color: #EAEAEA;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans KR', sans-serif;
}

body {
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item {
    position: relative;
    padding: 1rem 0;
}

.nav-item > a {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-item:hover > a {
    color: var(--primary-color);
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    list-style: none;
    min-width: 160px;
    border-radius: 8px;
    padding: 0.5rem 0;
    z-index: 10;
}

.nav-item:hover .dropdown {
    display: block;
}

.dropdown li a {
    display: block;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: background 0.2s, color 0.2s;
    text-align: center;
    white-space: nowrap;
}

.dropdown li a:hover {
    background-color: var(--ivory-bg);
    color: var(--primary-color);
}

.hero {
    width: 100%;
    height: 600px;
    background-color: #EEE; 
    overflow: hidden;
    position: relative;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-text-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 0 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-heading {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-subheading {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.main-content {
    background-color: var(--ivory-bg);
    padding: 5rem 0;
}

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

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
    margin-bottom: 5rem;
}

.welcome-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    line-height: 1.4;
    word-break: keep-all;
    margin-top: 0.5rem;
}

.welcome-desc {
    font-size: 1.15rem;
    color: var(--text-light);
    word-break: keep-all;
    margin-bottom: 2.5rem;
}

.decorative-box {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.deco-circle {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(74,124,89,0.15), rgba(212,163,115,0.25));
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.director-img {
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
    object-fit: cover;
    aspect-ratio: 3/4;
    background-color: var(--border-color);
}

.counsel-text .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-main);
    word-break: keep-all;
}

.text-center {
    text-align: center;
}

.director-text {
    font-size: 1.05rem;
    color: var(--text-light);
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
    line-height: 1.8;
}

.counseling-fields {
    margin-top: 3rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Voucher Highlight Banner */
.voucher-banner {
    height: 140px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('ssac_01.png');
    background-size: cover;
    background-position: center 25%;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    text-decoration: none;
    border: 2px solid transparent;
}

.voucher-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-color: var(--second-color);
}

.voucher-banner h4 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.voucher-banner p {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.voucher-banner .badge {
    background-color: var(--second-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* 2x2 Grid for Split Layout */
.cards-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.cards-grid-2x2 .card img {
    height: 160px;
}
.cards-grid-2x2 .card h4 {
    padding: 1rem;
    font-size: 1.1rem;
}

/* Voucher Page Styles */
.voucher-info-box {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    text-align: left;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.voucher-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0 3rem 0;
}

.voucher-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: center;
    border-top: 2px solid var(--primary-color);
}

.voucher-table th {
    background-color: #f8f9fa;
    color: var(--text-main);
    font-weight: 600;
    padding: 12px 8px;
    border-bottom: 1px solid var(--border-color);
}

.voucher-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #eee;
    color: var(--text-light);
}

.voucher-table tr:last-child td {
    border-bottom: 2px solid #eee;
}

.voucher-table .highlight {
    color: var(--primary-color);
    font-weight: 700;
}

.voucher-section {
    margin-bottom: 2.5rem;
}

.voucher-section h4 {
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.voucher-list {
    list-style: none;
    padding-left: 5px;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
}

.voucher-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.voucher-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Accordion Board Styles */
.accordion-item {
    border-bottom: 1px solid var(--border-color);
}
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}
.accordion-header:hover {
    background-color: #fcfcfc;
}
.accordion-title {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 500;
}
.accordion-content {
    display: none;
    padding: 1.5rem 1rem;
    color: #555;
    line-height: 1.6;
    background-color: #fafafa;
}
.accordion-content.open {
    display: block;
}

.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: var(--border-color);
}

.card h4 {
    padding: 1.5rem;
    text-align: center;
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 1.2rem;
    padding-top: 0;
}

.action-buttons .btn {
    flex: 1;
    margin: 0;
}

.btn {
    display: inline-block;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 6px 16px rgba(74,124,89,0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 8px 20px rgba(74,124,89,0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--second-color);
    color: var(--white);
    box-shadow: 0 6px 16px rgba(212,163,115,0.3);
}

.btn-secondary:hover {
    background-color: #bd8f62;
    box-shadow: 0 8px 20px rgba(212,163,115,0.4);
    transform: translateY(-2px);
}

.footer {
    background-color: #2F3640;
    color: #A4B0BE;
    padding: 3rem 0;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer .copyright {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #747D8C;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    padding: 2.5rem 3rem;
    border-radius: 16px;
    width: 90%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    max-height: 90vh;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--primary-hover);
}

.modal-title {
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 1.6rem;
    text-align: center;
    font-weight: 700;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: #FAFAFA;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(74,124,89,0.1);
}

.radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    cursor: pointer;
}

.agreement-group {
    margin-top: 2rem;
    background-color: var(--ivory-bg);
    padding: 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.checkbox-label {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    font-weight: 400 !important;
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-label input {
    margin-top: 0.3rem;
    transform: scale(1.1);
}

.submit-btn {
    width: 100%;
    margin: 2rem 0 0 0;
    font-size: 1.15rem;
    padding: 1.2rem;
    border-radius: 8px;
}

/* Kakao Floating Button */
.kakao-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: auto;
    height: 56px;
    padding: 0 22px 0 18px;
    background-color: var(--primary-color);
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(74,124,89,0.25);
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    color: var(--white);
    gap: 10px;
}

.kakao-floating-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.kakao-floating-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(74,124,89,0.35);
    color: var(--white);
}

.kakao-floating-btn svg {
    width: 28px;
    height: 28px;
    fill: #FEE500;
}

.kakao-floating-btn span {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 2000;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

@media (max-width: 900px) {
    .header {
        padding: 1rem 5%;
    }
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: 0;
        overflow: hidden;
        background-color: var(--white);
        transition: height 0.4s ease;
        z-index: 1500;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }
    
    .nav.active {
        height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-list {
        display: flex;
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 0.5rem;
    }
    
    .nav-item {
        width: 100%;
        padding: 0.5rem 0;
    }
    
    .dropdown {
        position: static;
        box-shadow: none;
        display: none;
        padding-left: 1rem;
        border-left: 2px solid var(--border-color);
        margin-top: 0.5rem;
        transform: none;
    }
    
    .nav-item:hover .dropdown, .nav-item:active .dropdown {
        display: block;
    }

    .dropdown li a {
        padding: 0.6rem 0.5rem;
        text-align: left;
    }

    .hero-heading {
        font-size: 2rem;
    }

    .hero-subheading {
        font-size: 0.95rem;
        word-break: keep-all;
        padding: 0 10px;
    }
    
    .split-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .director-img {
        max-width: 100%;
    }
    
    .action-buttons .btn {
        margin: 0.5rem 0;
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .counsel-article {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .counsel-img {
        max-width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .counsel-text {
        text-align: center;
        padding-top: 0 !important;
    }
    
    .counsel-text .section-title {
        text-align: center !important;
        font-size: 1.5rem;
        word-break: keep-all;
        margin-bottom: 1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 0.8rem;
    }

    .cards-grid-2x2, .cards-grid-3col {
        grid-template-columns: 1fr;
    }

    .voucher-banner {
        grid-column: span 1;
        height: 120px;
    }

    .voucher-banner h4 {
        font-size: 1.3rem;
    }
    
    .kakao-floating-btn {
        bottom: 20px;
        right: 20px;
        height: 48px;
        padding: 0 16px 0 12px;
        gap: 8px;
    }
    
    .kakao-floating-btn svg {
        width: 22px;
        height: 22px;
    }

    .kakao-floating-btn span {
        font-size: 0.9rem;
    }
}

/* Counselor Profile Card Design - Based on counselor.jpg */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.profile-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: none;
    transition: transform 0.3s ease;
    height: 100%;
}

.profile-card:hover {
    transform: translateY(-5px);
}

.profile-header {
    background-color: #4A7C59; /* 이미지의 짙은 녹색 */
    color: #ffffff;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4A7C59;
    flex-shrink: 0;
}

.profile-title-group {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.8rem;
}

.profile-name {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0;
}

.profile-role {
    font-size: 1.05rem;
    font-weight: 400;
    opacity: 0.9;
}

.profile-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.profile-section {
    width: 100%;
}

.profile-label {
    font-weight: 700;
    color: #4A7C59;
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    border-bottom: 1px solid #EAEAEA;
    padding-bottom: 5px;
    display: block;
}

.profile-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
    font-size: 11pt; /* 글씨 크기 키움 (10pt -> 11pt) */
    color: #333333;
    line-height: 1.6;
    word-break: keep-all;
}

.profile-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 4px;
    height: 4px;
    background-color: #D4A373; /* 금색 계열 불렛 */
}

@media (max-width: 900px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

/* Board Styles 개편 */
.board-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: #fff;
    border-top: 2px solid var(--primary-color);
}

.board-table th, .board-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.board-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.board-table .td-title {
    text-align: left;
    cursor: pointer;
}

.board-table .td-title:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

/* 상세보기 스타일 */
.post-detail {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.post-content-body {
    font-size: 10pt;
    line-height: 1.6;
    color: var(--text-main);
    word-break: break-all;
    white-space: pre-wrap; /* 일반 텍스트 줄바꿈 강제 유지 */
}

.post-content-body.ql-editor {
    padding: 0;
    overflow-y: visible;
}

.post-content-body.ql-editor p {
    margin-bottom: 0.5rem;
    min-height: 1em;
}

.post-content-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.post-detail-header {
    border-bottom: 2px solid #eee;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.post-detail-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.8rem;
}

.post-detail-meta {
    font-size: 0.9rem;
    color: #888;
}

.post-detail-content {
    min-height: 200px;
    margin-bottom: 3rem;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 2rem;
}

.page-btn {
    padding: 8px 14px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.2s;
}

.page-btn:hover, .page-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.page-btn:disabled {
    cursor: default;
    opacity: 0.5;
}
