/* Base Styles */
:root {
    --primary-color: #1C7A52;
    --secondary-color: #2A8A5F;
    --accent-color: #1C7A52;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f1f8e9;
    --border-color: #c8e6c9;
    --header-bg: #fff;
    --footer-bg: #1B5E20;
    --footer-text: #e8f5e9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Header */
.main-header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Main Content */
#main-content {
    padding-top: 190px;
    padding-bottom: 30px;
    min-height: calc(100vh - 300px);
}

/* Home Page - Reduced padding for carousel */
.main-visual ~ #main-content,
body:has(.main-visual) #main-content {
    padding-top: 30px;
}

/* Auth Pages - Extra Spacing */
#main-content .auth-page-spacing {
    padding-top: 50px;
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background-color: var(--bg-light);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.3s ease-in-out;
}

.top-bar .site-info .site-name {
    font-weight: bold;
    color: var(--primary-color);
}

.top-nav a {
    color: var(--text-light);
    margin-left: 20px;
    font-size: 0.9rem;
}

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

.top-bar.hidden {
    transform: translateY(-100%);
}

.main-nav-bar {
    position: fixed;
    top: 44px;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: var(--primary-color);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: top 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.main-nav-bar.top-hidden {
    top: 0;
}

.main-nav-bar.scrolled {
    background-color: var(--header-bg) !important;
}

.main-nav-bar.scrolled .logo h1 a {
    color: var(--primary-color) !important;
}

.main-nav-bar.scrolled .logo h1 a:hover {
    color: var(--secondary-color) !important;
}

.main-nav-bar.scrolled .main-nav .nav-link {
    color: var(--text-dark) !important;
}

.main-nav-bar.scrolled .main-nav .nav-link:hover {
    color: var(--primary-color);
    background-color: var(--bg-light);
    border-radius: 5px;
}

.main-nav-bar.scrolled .main-nav .dropdown-toggle::after {
    border-top-color: var(--text-dark);
}

.main-nav-bar .dropdown-menu .dropdown-item {
    color: var(--text-dark);
}

.main-nav-bar .dropdown-menu .dropdown-item:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.logo h1 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.logo h1 a {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
}

.logo-title {
    font-size: 2.2rem;
    font-weight: 700;
}

.logo-subtitle {
    position: absolute;
    bottom: -5px;
    right: 0;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.9;
}

.logo h1 a:hover {
    color: var(--secondary-color);
}

.logo-img {
    height: 70px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.main-nav .nav-menu {
    display: flex;
    gap: 5px;
    margin: 0;
}

/* Mobile-only nav items - hidden on desktop */
.nav-item.mobile-only {
    display: none;
}
.nav-item.auth-divider {
    display: none;
}
.nav-item.auth-divider hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 0;
}

.main-nav .nav-item {
    position: relative;
}

/* make textarea used for notice content taller by default */
.notice-page textarea.form-control {
    min-height: 600px;
}

.main-nav .nav-link {
    padding: 10px 20px;
    color: #fff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav .nav-link:hover {
    color: var(--primary-color);
    background-color: var(--bg-light);
    border-radius: 5px;
}

.main-nav .dropdown-menu {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.main-nav .dropdown-item {
    padding: 10px 20px;
    transition: all 0.3s;
}

.main-nav .dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Header Social Icons */
.header-social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
    transform: translateY(-2px);
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Search Modal Styles */
.search-modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.search-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(28, 122, 82, 0.1);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.search-close-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 60px 40px;
}

.search-modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.search-logo-img {
    height: 60px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
}

.search-logo-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.search-form {
    max-width: 700px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 18px 24px;
    font-size: 1.1rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.search-input:focus {
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(28, 122, 82, 0.1);
}

.search-input::placeholder {
    color: #aaa;
}

.search-submit-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(28, 122, 82, 0.3);
    flex-shrink: 0;
}

.search-submit-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(28, 122, 82, 0.4);
}

.search-submit-btn:active {
    transform: scale(0.95);
}

/* Search Page */
.page-title {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: bold;
}

.search-results {
    margin-top: 30px;
}

.search-results h2 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.search-results p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Main Visual */
.main-visual {
    position: relative;
    padding-top: 134px; /* fallback, adjusted by JS */
    margin-bottom: 0;
}

.main-visual .carousel {
    /* set fixed height for the carousel */
    height: 680px;
    max-height: 680px;
    max-width: 1700px;
    margin: 0 auto;
    border: 5px solid white;
    box-sizing: border-box;
}

.visual-slide {
    height: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
}

.visual-slide {
    /* enforce maximum display size for the carousel slides */
    max-height: 680px;
    max-width: 1700px;
    margin: 0 auto; /* center if narrower than container */
}

/* Carousel Video */
.carousel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.visual-slide-1 {
    /* use the provided image for the first slide */
    background: url('/static/images/slide1.png') no-repeat center center;
    background-size: cover;
}

.visual-slide-2 {
    background: url('/static/images/slide2.png') no-repeat center center;
    background-size: cover;
}

.visual-slide-3 {
    background: url('/static/images/slide3.png') no-repeat center center;
    background-size: cover;
}

.slide-content {
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content h2 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.slide-content p {
    font-size: 1.5rem;
}

.main-visual .carousel-control-prev,
.main-visual .carousel-control-next {
    width: 50px;
}

.main-visual .carousel-indicators {
    bottom: 20px;
}

.main-visual .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* 우리반이야기 & 알림마당 섹션 */
.classes-notices-section {
    position: relative;
    padding: 30px 30px;
    background: #ffffff;
    overflow: hidden;
}

.classes-notices-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/static/images/bg_noticeSection.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(3px);
    opacity: 0.3;
    z-index: 0;
}

.classes-notices-section > * {
    position: relative;
    z-index: 1;
}

.classes-notices-section .section-header {
    margin-bottom: 30px;
}

.classes-notices-section .section-header h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.classes-notices-section .section-header p {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
}

/* 알림마당 & 우리반이야기 공통 */
.notices-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    height: 100%;
}

/* 알림마당 */
.notices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.notice-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 15px;
    background: #f5f5f5;
    border-radius: 15px;
    transition: all 0.3s ease;
    text-align: center;
}

.notice-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.notice-item .notice-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 12px;
}

.notice-item .notice-icon.bulletin {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.notice-item .notice-icon.schedule {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    box-shadow: 0 4px 15px rgba(246, 211, 101, 0.4);
}

.notice-item .notice-icon.menu {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
}

.notice-item .notice-icon.news {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.notice-item .notice-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* 최신 공지사항 */
.latest-notices {
    border-top: 2px solid var(--border-color);
    padding-top: 25px;
}

.latest-notices h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.latest-notice-list {
    list-style: none;
}

.latest-notice-list li {
    margin-bottom: 15px;
}

.latest-notice-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.latest-notice-list li a:hover {
    background: rgba(76, 175, 80, 0.15);
    transform: translateX(5px);
}

.notice-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    background: var(--text-light);
    color: white;
    white-space: nowrap;
}

.notice-badge.important {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
}

.notice-text {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

.notice-date {
    font-size: 0.85rem;
    color: var(--text-light);
    white-space: nowrap;
}

/* 우리반이야기 (compact 버전) */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.class-card.compact {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.class-card.compact:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.class-card.compact .class-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.class-card.compact:hover .class-icon {
    transform: scale(1.1) rotate(5deg);
}

.class-card.compact .class-icon.magpie {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.class-card.compact .class-icon.sunflower {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(246, 211, 101, 0.4);
}

.class-card.compact .class-icon.butterfly {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.4);
}

.class-card.compact .class-icon.sprout {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(17, 153, 142, 0.4);
}

.class-card.compact .class-icon.star {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
}

/* compact 카드 hover 효과 */
.class-card.compact:hover.magpie {
    border-color: #667eea;
}

.class-card.compact:hover.sunflower {
    border-color: #f6d365;
}

.class-card.compact:hover.butterfly {
    border-color: #f093fb;
}

.class-card.compact:hover.sprout {
    border-color: #11998e;
}

.class-card.compact:hover.star {
    border-color: #4facfe;
}

.class-card.compact .class-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.class-card.compact .class-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.class-card.compact .class-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.3;
}

/* 까치stagram */
.instagram-section {
    border-top: 2px solid var(--border-color);
    padding-top: 25px;
    margin-top: 10px;
}

.instagram-section h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.instagram-section h4 i {
    color: #E1306C;
}

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

.instagram-item {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    aspect-ratio: 1;
}

.instagram-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.instagram-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E1306C 0%, #833AB4 50%, #FCAF45 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.instagram-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-item:hover .video-overlay {
    opacity: 1;
}


/* Quick Links */
.quick-links {
    padding: 40px 0;
    background-color: var(--bg-light);
    margin-top: 0;
    position: relative;
    z-index: 10;
}

.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
}

.quick-link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.quick-link-card .link-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.quick-link-card .link-title {
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

/* 인스타그램 아이콘 특별 스타일 */
.quick-link-card.instagram-link .link-icon {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.3);
}

.quick-link-card.instagram-link:hover .link-icon {
    background: linear-gradient(45deg, #e6683c 0%, #dc2743 25%, #cc2366 50%, #bc1888 75%, #8a3ab9 100%);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 25px rgba(225, 48, 108, 0.5);
}

/* 다른 링크 hover 효과 - 초록색으로 변경 */
.quick-link-card:not(.instagram-link):hover .link-icon {
    transform: scale(1.15);
    background: linear-gradient(135deg, #43A047, #66BB6A);
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.5);
}

.quick-link-card:not(.instagram-link):hover .link-title {
    color: #43A047;
    text-shadow: 0 1px 2px rgba(76, 175, 80, 0.3);
    transform: translateY(-2px);
}

.quick-link-card.instagram-link:hover .link-title {
    color: #e1306c;
}

/* Main Content Section */
.main-content-section {
    padding: 100px 0 40px 0;
}

.content-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: 100%;
}

.content-card .card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-card .card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-card .card-header .more-btn {
    color: white;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.content-card .card-header .more-btn:hover {
    opacity: 0.8;
}

.content-card .card-body {
    padding: 20px;
}

/* Notice List */
.notice-list li {
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.notice-list li:last-child {
    border-bottom: none;
}

.notice-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notice-list .notice-title {
    flex: 1;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-list .notice-title:hover {
    color: var(--primary-color);
}

.notice-list .notice-date {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-left: 20px;
}

/* Notice Table */
.notice-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.notice-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.notice-table th {
    font-weight: 500;
    padding: 15px;
    border: none;
}

.notice-table td {
    padding: 15px;
    vertical-align: middle;
}

.notice-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.notice-table tbody tr:last-child {
    border-bottom: none;
}

.notice-table tbody tr:hover {
    background-color: var(--bg-light);
}

.notice-table a {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.notice-table a:hover {
    color: var(--primary-color);
}

/* Notice Detail Page */
.notice-detail-wrapper {
    max-width: 1350px;
}

.notice-detail-wrapper .page-header {
    margin-bottom: 30px;
}

.notice-detail-wrapper .page-title {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.notice-detail-wrapper .breadcrumb {
    background: var(--bg-light);
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 0;
}

.notice-detail-wrapper .breadcrumb-item a {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.notice-detail-wrapper .breadcrumb-item a:hover {
    color: var(--primary-color);
}

.notice-detail-wrapper .breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 500;
}

.notice-detail-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.notice-header {
    padding: 30px;
}

.notice-title-section {
    margin-bottom: 20px;
}

.important-badge {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    color: white;
    padding: 6px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 20px;
    margin-right: 10px;
    vertical-align: middle;
}

.notice-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-dark);
    display: inline-block;
    vertical-align: middle;
}

.notice-meta {
    display: flex;
    gap: 30px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.notice-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-meta .meta-item i {
    color: var(--primary-color);
}

.notice-divider {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, var(--border-color) 0%, var(--primary-color) 50%, var(--border-color) 100%);
    margin: 0;
}

.notice-content {
    padding: 40px 30px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    min-height: 200px;
}

.notice-content p {
    margin-bottom: 15px;
}

.notice-content ul,
.notice-content ol {
    margin-bottom: 15px;
    padding-left: 30px;
}

.notice-content li {
    margin-bottom: 8px;
}

.notice-footer {
    padding: 20px 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.notice-footer .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.notice-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notice-navigation {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notice-navigation .nav-item {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.notice-navigation .nav-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.notice-navigation .nav-item.prev {
    border-left: 4px solid var(--primary-color);
}

.notice-navigation .nav-item.next {
    border-left: 4px solid var(--secondary-color);
}

.notice-navigation .nav-label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
    min-width: 80px;
}

.notice-navigation .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    flex: 1;
    transition: color 0.3s ease;
}

.notice-navigation .nav-link:hover {
    color: var(--primary-color);
}

/* Notice Page Spacing */
.notice-page #main-content {
    padding-top: 150px;
}

.notice-detail-page #main-content {
    padding-top: 150px;
}

/* Notice Attachment Section */
.notice-attachment-section {
    margin: 40px 0;
}

.notice-attachment-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.15);
    transition: all 0.3s ease;
}

.notice-attachment-card:hover {
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.25);
    transform: translateY(-2px);
}

.attachment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(76, 175, 80, 0.2);
}

.attachment-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    background: rgba(76, 175, 80, 0.15);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.attachment-label {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.3px;
}

.attachment-link-wrapper {
    display: flex;
    justify-content: flex-start;
}

.attachment-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.attachment-link:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    color: white;
}

.attachment-download-icon {
    font-size: 1.4rem;
}

.attachment-filename {
    font-weight: 700;
    letter-spacing: -0.2px;
}

/* Schedule */
.schedule-calendar .current-month {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.schedule-calendar .month-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    transition: transform 0.3s;
}

.schedule-calendar .month-btn:hover {
    transform: scale(1.2);
}

.schedule-calendar .current-month span {
    font-size: 1.2rem;
    font-weight: bold;
}

.schedule-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.schedule-date {
    text-align: center;
    min-width: 60px;
}

.schedule-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.schedule-date .weekday {
    font-size: 0.85rem;
    color: var(--text-light);
}

.schedule-content {
    flex: 1;
}

.schedule-empty {
    color: var(--text-light);
    margin: 0;
}

/* Today's Menu */
.today-menu {
    text-align: center;
    padding: 30px 0;
}

.menu-empty {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Gallery */
.gallery-slide {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-placeholder {
    text-align: center;
    color: var(--text-light);
}

.gallery-placeholder i {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.gallery-placeholder p {
    font-size: 1.2rem;
    font-weight: 500;
}

.gallery-card .carousel-control-prev,
.gallery-card .carousel-control-next {
    width: 40px;
}

/* Footer */
.main-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    margin-top: 30px;
}

.footer-top {
    padding: 40px 0;
}

/* Footer Left - 로고와 정보 */
.footer-left {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.footer-left .footer-logo img {
    max-height: 100px;
    width: auto;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-info p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.footer-info .contact-info {
    padding-left: 0;
}

.footer-info .contact-info li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

/* Footer Contact - 상담전화 */
.footer-contact {
    text-align: center;
    padding: 30px 0;
}

.footer-contact h4 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.consultation-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 2.2rem;
    font-weight: bold;
}

.consultation-phone i {
    font-size: 2rem;
    color: var(--accent-color);
}

.consultation-phone span {
    color: #fff;
}

.footer-bottom {
    background-color: #1a252f;
    padding: 15px 0;
}

.footer-bottom .row {
    align-items: center;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive */

/* Mobile menu toggle button - hidden on desktop */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255,255,255,0.25);
}

/* Home page scrolled state for toggle */
body.home-transparent.header-scrolled .mobile-menu-toggle {
    background: rgba(0,0,0,0.1);
    color: #fff;
}

/* Other pages scrolled state for toggle */
.main-nav-bar.scrolled .mobile-menu-toggle {
    background: rgba(28, 122, 82, 0.1);
    color: var(--primary-color);
}

@media (max-width: 991px) {
    /* Show hamburger button */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Logo smaller */
    .logo h1 {
        font-size: 1.2rem;
    }

    .logo-img {
        height: 50px;
    }

    .logo-title {
        font-size: 1.2rem;
    }

    .logo-subtitle {
        display: none;
    }

    /* Hide nav by default, show on toggle */
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        padding: 10px 0;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        z-index: 9998;
        max-height: 80vh;
        overflow-y: auto;
    }

    .main-nav.show {
        display: block;
    }

    /* Nav menu vertical on mobile */
    .nav-menu {
        flex-direction: column;
        gap: 0;
    }

    .nav-menu .nav-item {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-menu .nav-link {
        padding: 14px 20px;
        color: #fff !important;
        font-size: 1rem;
    }

    .nav-menu .nav-link:hover {
        background-color: rgba(255,255,255,0.1);
        border-radius: 0;
    }

    /* Dropdowns as inline lists on mobile */
    .nav-menu .dropdown-menu {
        position: static !important;
        transform: none !important;
        background: rgba(0,0,0,0.15);
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
    }

    .nav-menu .dropdown-menu .dropdown-item {
        color: rgba(255,255,255,0.85) !important;
        padding: 10px 20px 10px 44px;
        font-size: 0.9rem;
    }

    .nav-menu .dropdown-menu .dropdown-item:hover {
        background: rgba(255,255,255,0.1);
        color: #fff !important;
    }

    /* Hide social icons in header on mobile */
    .header-social-icons {
        display: none;
    }

    /* Top bar adjustments */
    .top-bar {
        padding: 6px 0;
        font-size: 0.8rem;
    }

    .top-bar .site-info .site-name {
        font-size: 0.85rem;
    }

    .top-nav a {
        margin-left: 12px;
        font-size: 0.8rem;
    }

    .main-nav-bar {
        top: 36px;
        padding: 10px 0;
    }

    #main-content {
        padding-top: 130px;
    }

    .slide-content h2 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 767px) {
    /* Hide top bar on small mobile */
    .top-bar {
        display: none;
    }

    .main-nav-bar {
        top: 0;
    }

    #main-content {
        padding-top: 80px;
    }

    .visual-slide {
        height: 400px;
    }
    
    .slide-content h2 {
        font-size: 1.6rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .quick-links {
        margin-top: 0;
    }
    
    .top-bar {
        text-align: center;
    }
    
    .top-bar .d-flex {
        flex-direction: column;
        gap: 10px;
    }
    
    .top-nav a {
        margin: 0 10px;
    }
    
    .header-social-icons {
        margin-top: 10px;
    }

    /* Mobile-only nav items */
    .nav-item.mobile-only {
        display: list-item;
    }
    .nav-item.auth-divider {
        display: list-item;
    }
    
    .main-nav-bar .d-flex {
        flex-wrap: wrap;
    }
    
    /* Footer Left - Mobile: logo beside h3, rest aligned to h3 */
    .footer-left {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: start;
        gap: 2px 12px;
    }

    .footer-left .footer-logo {
        grid-column: 1;
        grid-row: 1 / -1;
    }

    .footer-left .footer-logo img {
        max-height: 50px;
    }

    .footer-info {
        display: contents;
    }

    .footer-info h3 {
        grid-column: 2;
        grid-row: 1;
        margin-bottom: 0;
    }

    .footer-info p {
        grid-column: 2;
        margin-top: 0;
    }

    .footer-info .contact-info {
        grid-column: 2;
    }

    /* Footer bottom: hide cloud button, center copyright */
    .footer-bottom .btn-outline-light {
        display: none;
    }

    .footer-bottom .col-md-8 {
        text-align: center;
        width: 100%;
    }
    
    /* Footer Contact - Mobile */
    .footer-contact {
        margin-top: 20px;
        padding: 20px 10px;
    }
    
    .footer-contact h4 {
        font-size: 1.3rem;
    }
    
    .consultation-phone {
        flex-direction: column;
        gap: 10px;
        font-size: 1.8rem;
    }
    
    .consultation-phone i {
        font-size: 1.5rem;
    }

    /* 우리반이야기 & 알림마당 - Mobile */
    .classes-notices-section {
        padding: 40px 0;
    }

    .notices-section {
        padding: 20px;
        margin-bottom: 30px;
    }

    .classes-notices-section .section-header h3 {
        font-size: 1.4rem;
    }

    .classes-notices-section .section-header p {
        font-size: 0.9rem;
    }

    /* 알림마당 모바일 */
    .notices-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .notice-item {
        padding: 18px 12px;
    }

    .notice-item .notice-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .notice-item .notice-title {
        font-size: 0.95rem;
    }

    .latest-notices h4 {
        font-size: 1.1rem;
    }

    .latest-notice-list li a {
        padding: 10px;
    }

    .notice-text {
        font-size: 0.85rem;
    }

    .notice-date {
        font-size: 0.75rem;
    }

    /* 우리반이야기 모바일 */
    .classes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .class-card.compact {
        padding: 15px 12px;
        gap: 10px;
    }

    .class-card.compact .class-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .class-card.compact .class-name {
        font-size: 0.95rem;
    }

    .class-card.compact .class-desc {
        font-size: 0.75rem;
    }