/* =============================================
   초록숲 심리 상담센터 - Main Stylesheet
   ============================================= */
/* CSS Variables */
:root {
    /* Colors - 차분한 녹색 계열 */
    --primary-green: #4A7C59;
    --primary-green-light: #6B9B7A;
    --primary-green-dark: #3A5F47;
    --accent-mint: #A8D5BA;
    --accent-sage: #B8D4BE;
    --pastel-blue: #C5E0DC;
    --pastel-cream: #F5F5F0;
    --white: #FFFFFF;
    --text-dark: #2C3E2D;
    --text-gray: #5A6B5C;
    --text-light: #8A9A8C;
    --border-color: #E0E8E2;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(74, 124, 89, 0.08);
    --shadow-md: 0 4px 20px rgba(74, 124, 89, 0.12);
    --shadow-lg: 0 8px 40px rgba(74, 124, 89, 0.15);

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    background: url('bg.jpg') center/cover no-repeat fixed;
    background-color: var(--pastel-cream);
    overflow-x: hidden;
}

/* iOS (아이패드/아이폰) 전용 배경화면 고정 픽스 */
@supports (-webkit-touch-callout: none) {
    body {
        background-image: none;
    }
    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        background: url('bg.jpg') center/cover no-repeat;
        pointer-events: none;
    }
}



a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   Header Styles
   ============================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-green);
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-list {
    display: flex;
    gap: 35px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-gray);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-green);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary-green);
    transition: var(--transition);
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--white);
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 50px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-title .highlight {
    color: #2C3E2D;
    display: block;
    font-size: 4rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) translateY(20px);
        opacity: 0.3;
    }
}

/* =============================================
   Buttons
   ============================================= */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-green);
}

.btn-primary:hover {
    background: var(--accent-mint);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-block {
    width: 100%;
}

/* =============================================
   Section Styles
   ============================================= */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: #2C3E2D;
    margin-bottom: 15px;
}

.section-title.text-left {
    text-align: left;
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 60px;
}

/* =============================================
   Video Section
   ============================================= */
.video-section {
    padding: var(--section-padding);
    background: transparent;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 56.25%;

    /* 16:9 aspect ratio */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* =============================================
   About Section
   ============================================= */
.about-section {
    padding: var(--section-padding);
    background: transparent;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-heading {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.5;
}

.about-description {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-features {
    margin-top: 35px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.feature-icon {
    font-size: 1.5rem;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-frame {
    position: relative;
    padding: 15px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.image-frame::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: var(--accent-mint);
    border-radius: 20px;
    z-index: -1;
}

.placeholder-image {
    width: 400px;
    height: 300px;
    background: linear-gradient(135deg, var(--accent-sage), var(--pastel-blue));
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-green-dark);
}

.placeholder-image span {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* =============================================
   Counselor Section
   ============================================= */
.counselor-section {
    padding: var(--section-padding);
    background: transparent;
}

.counselor-card {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px;
    background: linear-gradient(135deg, var(--pastel-cream), var(--white));
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
}

.counselor-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    height: 100%;
}

.counselor-deco-box {
    width: 300px;
    height: auto;
    border: 2px solid var(--primary-green);
    border-radius: 15px;
    padding: 20px;
    margin-top: auto;
}

.counselor-deco-box h5 {
    color: var(--primary-green);
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.counselor-deco-box ul {
    list-style: none;
    padding: 0;
}

.counselor-deco-box li {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
}

.counselor-deco-box li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-green);
}

.placeholder-photo {
    width: 280px;
    height: 350px;
    background: linear-gradient(180deg, var(--accent-sage), var(--primary-green-light));
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.counselor-photo {
    width: 280px;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 5px solid var(--white);
}

.placeholder-photo span {
    font-size: 6rem;
    opacity: 0.7;
}

.counselor-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.counselor-name {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.counselor-title {
    font-size: 1.1rem;
    color: var(--primary-green);
    margin-bottom: 30px;
}

.counselor-details h4 {
    font-size: 1rem;
    color: var(--primary-green);
    margin: 20px 0 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--accent-mint);
    display: inline-block;
}

.counselor-details ul {
    color: var(--text-gray);
}

.counselor-details li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.counselor-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-green);
}

.counselor-quote {
    margin-top: 30px;
    padding: 25px;
    background: var(--accent-mint);
    border-radius: 15px;
    font-style: italic;
    color: var(--primary-green-dark);
    border-left: 4px solid var(--primary-green);
}

/* =============================================
   Services Section
   ============================================= */
.services-section {
    padding: var(--section-padding);
    background: transparent;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    position: relative;
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card.featured {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    color: var(--white);
}

.service-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--accent-mint);
    color: var(--primary-green-dark);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-green);
}

.service-card.featured .service-title {
    color: var(--white);
}

.service-description {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-card.featured .service-description {
    color: rgba(255, 255, 255, 0.9);
}

.service-features {
    text-align: left;
}

.service-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.service-card.featured .service-features li {
    color: rgba(255, 255, 255, 0.85);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
}

.service-card.featured .service-features li::before {
    color: var(--accent-mint);
}

/* =============================================
   Education Section
   ============================================= */
.education-section {
    padding: var(--section-padding);
    background: transparent;
}

/* =============================================
   Contact Section
   ============================================= */
.contact-section,
.applications-section {
    padding: var(--section-padding);
    background: transparent;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--pastel-cream);
    border-radius: 15px;
    transition: var(--transition);
}

.contact-item:hover {
    background: #DCEDC8;
    transform: translateX(10px);
}

.contact-icon {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
}

.contact-text h4 {
    font-size: 1rem;
    color: var(--primary-green);
    margin-bottom: 5px;
}

.contact-text p {
    color: var(--text-gray);
}

.contact-form {
    background: var(--pastel-cream);
    padding: 25px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.contact-form h3 {
    font-size: 1.2rem;
    color: var(--primary-green);
    margin-bottom: 15px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

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

.contact-form .btn-primary {
    background: var(--primary-green);
    color: var(--white);
    margin-top: 10px;
}

.contact-form .btn-primary:hover {
    background: var(--primary-green-dark);
}

/* =============================================
   Partners Section
   ============================================= */
.partners-section {
    padding: var(--section-padding);
    background: transparent;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.partner-logo {
    width: 200px;
    height: 150px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.9);
}

.partner-logo span {
    font-size: 3rem;
    margin-bottom: 15px;
}

.partner-logo p {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    text-align: center;
}

/* =============================================
   Footer
   ============================================= */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-mint);
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* =============================================
   Animations
   ============================================= */
.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

.animate-fade-in-delay {
    opacity: 0;
    animation: fadeIn 1s ease 0.3s forwards;
}

.animate-fade-in-delay-2 {
    opacity: 0;
    animation: fadeIn 1s ease 0.6s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   Responsive Design
   ============================================= */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        gap: 50px;
    }

    .counselor-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-title .highlight {
        font-size: 2.8rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .section-title.text-left {
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-title .highlight {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .counselor-card {
        padding: 30px 20px;
    }

    .contact-form {
        padding: 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4); /* 조금 더 보이게 조정 */
}

.admin-link { 
    margin-left: 15px; 
    font-size: 0.7rem; 
    color: rgba(255, 255, 255, 0.3); 
    text-decoration: none; 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    padding: 1px 6px; 
    border-radius: 4px; 
    transition: var(--transition); 
} 

.admin-link:hover { 
    color: var(--accent-mint); 
    border-color: var(--accent-mint); 
    opacity: 1; 
}

/* =============================================
   Board Table (Education Section)
   ============================================= */
.board-container {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    padding: 30px;
    margin-top: 30px;
}

.board-header {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--text-gray);
    text-align: left;
}

.board-header b {
    color: var(--primary-green);
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 0.95rem;
}

.board-table th {
    padding: 15px 10px;
    border-top: 2px solid var(--primary-green);
    border-bottom: 1px solid var(--border-color);
    background-color: #f9fbf9;
    color: var(--text-dark);
    font-weight: 600;
}

.board-table td {
    padding: 15px 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-gray);
}

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

.board-table a {
    color: var(--text-dark);
    transition: color 0.2s;
}

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

.board-table tr.notice td {
    background-color: #fdfdfd;
}

.board-table tr.notice td:first-child {
    font-weight: 700;
    color: var(--primary-green);
}

.col-num { width: 8%; }
.col-title { width: auto; }
.col-author { width: 12%; }
.col-views { width: 8%; }
.col-date { width: 10%; }

.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-gray);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.pagination a.active,
.pagination a:hover {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

.pagination a.next {
    width: auto;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .board-table th.col-author,
    .board-table td:nth-child(3),
    .board-table th.col-views,
    .board-table td:nth-child(4) {
        display: none;
    }
    
    .board-container {
        padding: 15px;
    }
}

/* Education Sub-items Styles */
.edu-sub-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    margin-bottom: 10px;
    padding-left: 12px;
    border-left: 1px solid var(--accent-mint);
    font-size: 0.78rem;
    color: var(--text-gray);
    line-height: 1.4;
}

.edu-sub-items span {
    display: block;
    word-break: keep-all;
}
