/**
 * StarBuilder Base Theme - Default Stylesheet
 *
 * Uses CSS custom properties set by head.sub.php:
 * --sb-primary, --sb-primary-dark, --sb-primary-light
 */

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: 'Noto Sans KR', 'Pretendard', 'NanumSquareRound', 'Gowun Dodum', 'Nunito', '맑은 고딕', 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background: #fff;
    font-size: 15px;
    line-height: 1.6;
}
a { color: #333; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--sb-primary, #FF6B35); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin-top: 0; }

#sb-wrapper {
    overflow-x: hidden;
}

.sb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Header
   ======================================== */
#sb-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e8e8e8;
}

.sb-header-top {
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}
.sb-header-top .sb-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
}
.sb-top-info {
    margin-right: auto;
}
.sb-top-phone {
    color: var(--sb-primary, #FF6B35);
    font-weight: 600;
    font-size: 13px;
}
.sb-top-util {
    display: flex;
    align-items: center;
    gap: 6px;
}
.sb-top-util a {
    color: #888;
    font-size: 13px;
    padding: 0 8px;
    border-right: 1px solid #ddd;
    line-height: 1;
}
.sb-top-util a:last-child {
    border-right: none;
    padding-right: 0;
}
.sb-top-util a:hover {
    color: #333;
}

.sb-header-main {
    padding: 0;
}
.sb-header-main .sb-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.sb-logo a {
    display: flex;
    align-items: center;
}
.sb-logo h1 {
    font-size: 24px;
    color: var(--sb-primary, #FF6B35);
    margin: 0;
    font-weight: 800;
}
.sb-logo img {
    max-height: 55px;
}
.sb-logo-pc { display: block; }
.sb-logo-mobile { display: none; }

/* Mobile toggle */
.sb-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
}
.sb-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    transition: 0.3s;
    border-radius: 1px;
}

/* Navigation */
.sb-gnb {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* ========================================
   Page Header (Sub pages)
   ======================================== */
.sb-page-header {
    background: linear-gradient(135deg, var(--sb-primary, #FF6B35), var(--sb-primary-dark, #e55a2b));
    color: #fff;
    padding: 40px 0;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}
.sb-page-header-img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 0;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sb-page-header-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
}
.sb-page-header-img .sb-container {
    position: relative;
    z-index: 1;
}
.sb-page-header-img .sb-page-title {
    font-size: 32px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.sb-page-title {
    font-size: 28px;
    margin: 0 0 8px;
}
.sb-breadcrumb {
    font-size: 14px;
    opacity: 0.8;
}
.sb-breadcrumb a { color: #fff; }
.sb-bc-sep { margin: 0 6px; }

/* ========================================
   Hero Section
   ======================================== */
.sb-hero {
    background: linear-gradient(135deg, var(--sb-primary, #FF6B35), var(--sb-primary-dark, #e55a2b));
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sb-hero-text h2 {
    font-size: 42px;
    margin: 0 0 15px;
    font-weight: 800;
}
.sb-hero-text p {
    font-size: 20px;
    opacity: 0.9;
    margin: 0;
}

/* ========================================
   Banner Slider
   ======================================== */
.sb-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f0f0f0;
}
.sb-slider .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
    object-fit: cover;
}
.sb-slider .swiper-slide a {
    display: block;
}
.sb-slider .swiper-slide {
    position: relative;
}
.sb-banner-title {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    line-height: 1.4;
    max-width: 80%;
    word-break: keep-all;
    pointer-events: none;
    z-index: 10;
}
.sb-slider .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.6;
    width: 10px;
    height: 10px;
}
.sb-slider .swiper-pagination-bullet-active {
    background: var(--sb-primary, #FF6B35);
    opacity: 1;
}

/* Overlay: raster pattern */
.sb-slider-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(/img/raster.png);
    pointer-events: none;
    z-index: 20;
}

/* Overlay: gradient (부드러운 상하 비네팅 + 브랜드 톤) */
.sb-slider-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.28) 0%,
        rgba(0, 0, 0, 0) 22%,
        rgba(0, 0, 0, 0) 60%,
        rgba(255, 107, 53, 0.12) 88%,
        rgba(0, 0, 0, 0.45) 100%
    );
    pointer-events: none;
    z-index: 10;
}
.sb-slider-gradient .swiper-pagination,
.sb-slider-gradient .swiper-button-prev,
.sb-slider-gradient .swiper-button-next,
.sb-slider-gradient .sb-banner-title { z-index: 25; }

/* Button style: default */
.sb-slider-btn-default .swiper-button-prev,
.sb-slider-btn-default .swiper-button-next {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.sb-slider-btn-default .swiper-button-prev::after,
.sb-slider-btn-default .swiper-button-next::after {
    font-size: 28px;
}

/* Button style: circle */
.sb-slider-btn-circle .swiper-button-prev,
.sb-slider-btn-circle .swiper-button-next {
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    color: #fff;
    transition: background 0.2s;
}
.sb-slider-btn-circle .swiper-button-prev:hover,
.sb-slider-btn-circle .swiper-button-next:hover {
    background: rgba(0,0,0,0.6);
}
.sb-slider-btn-circle .swiper-button-prev::after,
.sb-slider-btn-circle .swiper-button-next::after {
    font-size: 18px;
}

/* Button style: hidden - no nav buttons rendered */

/* ========================================
   Quick Links
   ======================================== */
.sb-quick-links {
    padding: 40px 0;
    background: #f8f9fa;
}
.sb-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.sb-quick-item {
    background: #fff;
    border-radius: 12px;
    padding: 30px 15px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
}
.sb-quick-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    color: var(--sb-primary, #FF6B35);
}
.sb-quick-icon {
    width: 60px;
    height: 60px;
    border-radius: 0;
    background: none;
    color: var(--sb-primary, #FF6B35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 12px;
}
.sb-quick-item span {
    font-size: 15px;
    font-weight: 600;
}

/* ========================================
   Section Title
   ======================================== */
.sb-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px;
    position: relative;
}

/* ========================================
   Greeting Section
   ======================================== */
.sb-greeting {
    padding: 60px 0;
    text-align: center;
}
.sb-greeting-text {
    max-width: 700px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

/* ========================================
   Main Boards
   ======================================== */
.sb-main-boards {
    padding: 50px 0 60px;
    background: #f8f9fa;
}
.sb-board-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.sb-board-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}
.sb-board-col {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    min-width: 0;
    overflow: hidden;
}
.sb-board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--sb-primary, #FF6B35);
}
.sb-board-header .sb-section-title {
    margin: 0;
    font-size: 18px;
}
.sb-more {
    font-size: 13px;
    color: #888;
}
.sb-more:hover {
    color: var(--sb-primary, #FF6B35);
}

/* Board Tabs */
.sb-board-tabs {
    display: flex;
    gap: 0;
}
.sb-board-tab {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 700;
    color: #aaa;
    cursor: pointer;
    padding: 0 12px 0 0;
    margin-right: 12px;
    border-right: 2px solid #e0e0e0;
    line-height: 1;
    transition: color 0.2s;
}
.sb-board-tab:last-child {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
}
.sb-board-tab.active {
    color: #2c3e50;
}
.sb-board-tab:hover {
    color: var(--sb-primary, #FF6B35);
}
.sb-tab-content {
    display: none;
}
.sb-tab-content.active {
    display: block;
}

/* Latest list skin */
.sb-latest-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sb-latest-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sb-latest-list li:last-child {
    border-bottom: none;
}
.sb-latest-list .sb-lt-subject {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}
.sb-latest-list .sb-lt-date {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
    white-space: nowrap;
}

/* Latest gallery skin - Swiper slider */
.sb-latest-gallery {
    overflow: hidden;
    min-width: 0;
}
.sb-latest-gallery .sb-gallery-swiper {
    padding-bottom: 32px;
    overflow: hidden;
}
.sb-latest-gallery .sb-gallery-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    background: #f0f0f0;
}
.sb-latest-gallery .sb-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.sb-latest-gallery .sb-gallery-item:hover img {
    transform: scale(1.05);
}
.sb-gallery-pagination {
    bottom: 0 !important;
}
.sb-gallery-pagination .swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
    width: 8px;
    height: 8px;
}
.sb-gallery-pagination .swiper-pagination-bullet-active {
    background: var(--sb-primary, #FF6B35);
}
.sb-latest-gallery .sb-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: #fff;
    padding: 20px 10px 8px;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========================================
   Calendar & Meal Section
   ======================================== */
.sb-cal-meal-section {
    padding: 50px 0 60px;
}

/* Mini Calendar */
.sb-mini-cal {
    margin-top: 5px;
}
.sb-mini-cal-header {
    text-align: center;
    margin-bottom: 12px;
}
.sb-mini-cal-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}
.sb-mini-cal-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}
.sb-mini-cal-table th {
    padding: 8px 4px;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    border-bottom: 1px solid #eee;
}
.sb-mini-cal-table th.sun { color: #e74c3c; }
.sb-mini-cal-table th.sat { color: #3498db; }
.sb-mini-cal-table td {
    padding: 4px;
    font-size: 14px;
    color: #555;
    vertical-align: middle;
    height: 36px;
}
.sb-mini-cal-table td.sun span { color: #e74c3c; }
.sb-mini-cal-table td.sat span { color: #3498db; }
.sb-mini-cal-table td.today span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #2c3e50;
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
}
.sb-cal-day-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}
.sb-cal-day-btn:hover {
    opacity: 0.8;
    transform: scale(1.15);
}

/* Calendar Popup */
.sb-cal-popup {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sb-cal-popup-content {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    max-width: 400px;
    width: 90%;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}
.sb-cal-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}
.sb-cal-popup-close:hover { color: #333; }
.sb-cal-popup-content h4 {
    margin: 0 0 15px;
    font-size: 16px;
    color: #2c3e50;
}
.sb-cal-popup-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.sb-cal-popup-item:last-child { border-bottom: none; }
.sb-cal-popup-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.sb-cal-popup-item strong {
    font-size: 15px;
    color: #333;
}
.sb-cal-popup-period {
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}
.sb-cal-popup-item p {
    margin: 6px 0 0;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* Today's Meal */
.sb-meal-today {
    margin-top: 5px;
}
.sb-meal-today-date {
    text-align: center;
    padding: 10px;
    background: var(--sb-primary-light, #FFF0E8);
    border-radius: 8px;
    margin-bottom: 15px;
}
.sb-meal-date-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--sb-primary, #FF6B35);
}
.sb-meal-today-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.sb-meal-today-item:last-child { border-bottom: none; }
.sb-meal-today-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--sb-primary, #FF6B35);
    margin-bottom: 6px;
}
.sb-meal-today-label i {
    width: 18px;
    text-align: center;
    margin-right: 4px;
}
.sb-meal-today-menu {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    padding-left: 22px;
}
/* Meal today 2-column layout */
.sb-meal-today-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.sb-meal-today-left {
    border-right: 1px solid #f0f0f0;
}
.sb-meal-today-right {
    display: flex;
}
.sb-meal-today-lunch {
    flex: 1;
    border-bottom: none !important;
}
.sb-meal-today-lunch .sb-meal-today-menu {
    line-height: 2;
}

.sb-meal-today-kcal {
    background: var(--sb-primary-light, #FFF0E8);
    border-radius: 6px;
    padding: 10px 12px !important;
    margin-top: 4px;
}
.sb-meal-today-kcal .sb-meal-today-menu {
    font-weight: 700;
    color: var(--sb-primary, #FF6B35);
}
.sb-meal-today-empty {
    text-align: center;
    padding: 40px 0;
    color: #aaa;
    font-size: 14px;
}
.sb-meal-today-empty i { display: block; }
.sb-meal-today-empty p { margin: 0; }

/* ========================================
   Popup Layer
   ======================================== */
.sb-popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sb-popup-modal {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    max-width: 90vw;
}
.sb-popup-header {
    display: flex;
    justify-content: flex-end;
    padding: 8px;
    background: #f8f9fa;
}
.sb-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sb-popup-close:hover { color: #333; }
.sb-popup-modal iframe { display: block; }
.sb-popup-footer {
    padding: 10px 15px;
    background: #f8f9fa;
    font-size: 13px;
    color: #666;
}
.sb-popup-footer label { cursor: pointer; }

/* ========================================
   Footer
   ======================================== */
#sb-footer {
    background: #3e3e3e;
    color: #ccc;
    font-size: 14px;
}

/* Footer policy links - top bar */
.sb-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    padding: 18px 0;
}
.sb-footer-links a {
    color: #ddd;
    font-size: 13px;
    padding: 0 14px;
    border-right: 1px solid rgba(255,255,255,0.25);
    line-height: 1;
    font-weight: 400;
}
.sb-footer-links a:last-child { border-right: none; }
.sb-footer-links a:hover { color: #fff; }
.sb-privacy { color: #fff !important; font-weight: 600 !important; }
.sb-footer-active { color: #fff !important; font-weight: 600 !important; text-decoration: underline !important; text-underline-offset: 4px; }

/* Footer main content - centered layout */
.sb-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 35px 0 25px;
}
.sb-footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Footer logo */
.sb-footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}
.sb-footer-logo img {
    max-height: 60px;
    opacity: 0.95;
    transition: opacity 0.2s;
}
.sb-footer-logo:hover img {
    opacity: 1;
}
.sb-footer-name {
    color: #fff;
    font-size: 22px;
    margin: 0 0 20px;
    font-weight: 700;
}

/* Footer contact info */
.sb-footer-contact {
    margin-bottom: 8px;
}
.sb-footer-contact p {
    margin: 3px 0;
    font-size: 13px;
    color: #bbb;
    line-height: 1.7;
}
.sb-footer-contact i {
    display: none;
}
.sb-footer-sep {
    margin: 0 6px;
    color: rgba(255,255,255,0.3);
}

/* Social channel icons */
.sb-footer-channels {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.sb-channel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.4);
    background: transparent;
    color: #ccc;
    font-size: 16px;
    transition: all 0.25s ease;
}
.sb-channel-icon:hover {
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

/* Footer copyright */
.sb-footer-copy {
    text-align: center;
    font-size: 13px;
    color: #999;
    padding: 18px 0 22px;
}
.sb-footer-copy p { margin: 0; letter-spacing: 0.02em; }

#sb-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--sb-primary, #FF6B35);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 999;
}
#sb-top-btn.visible {
    opacity: 1;
    visibility: visible;
}
#sb-top-btn:hover {
    background: var(--sb-primary-dark, #e55a2b);
}

/* Admin bar offset */
body.sb-has-adminbar #sb-top-btn {
    bottom: 70px;
}

/* ========================================
   Gnuboard Common Overrides
   ======================================== */
.sound_only { position: absolute; overflow: hidden; clip: rect(0 0 0 0); width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; }

/* ========================================
   Gnuboard Pagination
   ======================================== */
.pg_wrap { clear: both; display: block; text-align: center; padding: 25px 0 10px; }
.pg { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; }
.pg_page,
.pg_current {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px; padding: 0 8px;
    border-radius: 6px; font-size: 13px; text-decoration: none;
    transition: all 0.15s;
}
.pg_page {
    color: #555; background: #f0f0f0; border: 1px solid #e5e5e5;
}
.pg_page:hover {
    background: var(--sb-primary-light, #FFF0E8);
    color: var(--sb-primary, #FF6B35);
    border-color: var(--sb-primary, #FF6B35);
}
.pg_current {
    background: var(--sb-primary, #FF6B35);
    color: #fff; border: 1px solid var(--sb-primary, #FF6B35); font-weight: 700;
}
.pg_start, .pg_prev, .pg_next, .pg_end {
    font-size: 12px; text-indent: 0; overflow: visible;
    background-image: none !important;
}

/* ========================================
   Content Page
   ======================================== */
.sb-content-page {
    padding: 30px 0;
    min-height: 400px;
}
.sb-content-page h2 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
}

/* ========================================
   Module Common
   ======================================== */
.sb-module {
    padding: 30px 0;
}
.sb-module-title {
    font-size: 24px;
    margin-bottom: 25px;
    color: #2c3e50;
}

/* ========================================
   Form Elements
   ======================================== */
.sb-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--sb-primary, #FF6B35);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}
.sb-btn:hover {
    background: var(--sb-primary-dark, #e55a2b);
    color: #fff;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 992px) {
    .sb-hero-text h2 { font-size: 32px; }
    .sb-board-row { grid-template-columns: 1fr; }
    .sb-board-row-3 { grid-template-columns: 1fr; gap: 20px; }
    .sb-quick-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Header */
    .sb-header-top { display: none; }
    .sb-mobile-toggle { display: flex; }
    .sb-logo-pc { display: none; }
    .sb-logo-mobile { display: block; max-height: 40px; }
    .sb-header-main .sb-container { min-height: 60px; }
    .sb-gnb {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100%;
        background: #fff;
        box-shadow: -4px 0 20px rgba(0,0,0,0.15);
        flex-direction: column;
        z-index: 10001;
        overflow-y: auto;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.3s ease, visibility 0.3s ease;
        padding-top: 60px;
    }
    .sb-gnb.sb-mobile-open {
        transform: translateX(0);
        visibility: visible;
    }
    .sb-mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 10000;
    }
    .sb-mobile-overlay.active { display: block; }
    .sb-menu-1depth {
        flex-direction: column !important;
    }
    .sb-menu-1depth > .sb-menu-item > a {
        padding: 14px 20px !important;
        border-bottom: 1px solid #f0f0f0;
    }
    .sb-menu-1depth > .sb-menu-item > a::after { display: none; }
    .sb-menu-2depth,
    .sb-menu-3depth {
        position: static !important;
        box-shadow: none !important;
        display: block !important;
    }
    .sb-menu-2depth .sb-menu-item > a { padding-left: 30px !important; }
    .sb-menu-3depth .sb-menu-item > a { padding-left: 50px !important; }

    /* Hero */
    .sb-hero { padding: 50px 20px; min-height: 250px; }
    .sb-hero-text h2 { font-size: 26px; }
    .sb-hero-text p { font-size: 16px; }

    /* Slider */
    .sb-slider .swiper-slide img { max-height: none; min-height: 220px; object-fit: cover; }
    .sb-slider .swiper-button-prev,
    .sb-slider .swiper-button-next { display: none; }
    .sb-banner-title { font-size: 20px; bottom: 40px; max-width: 90%; }

    /* Quick links */
    .sb-quick-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .sb-quick-item { padding: 20px 10px; }

    /* Page header */
    .sb-page-header { padding: 25px 0; }
    .sb-page-header-img { padding: 40px 0; min-height: 150px; }
    .sb-page-header-img .sb-page-title { font-size: 24px; }
    .sb-page-title { font-size: 22px; }

    /* Footer */
    .sb-footer-inner { flex-direction: column; gap: 15px; text-align: center; }
    .sb-footer-links {
        flex-wrap: wrap;
        justify-content: center;
        padding: 14px 0;
        gap: 4px 0;
    }
    .sb-footer-links a {
        padding: 4px 10px;
        font-size: 12px;
        border-right: 1px solid rgba(255,255,255,0.25);
        line-height: 1.6;
    }
    .sb-footer-links a:last-child { border-right: none; }
    .sb-footer-logo img { max-height: 45px; }

    /* Meal today grid → stack on mobile */
    .sb-meal-today-grid { grid-template-columns: 1fr; }
    .sb-meal-today-left { border-right: none; border-bottom: 1px solid #f0f0f0; }
    .sb-footer-contact p {
        font-size: 12px;
        line-height: 1.8;
        word-break: keep-all;
    }
    .sb-footer-channels { justify-content: center; }
    .sb-footer-copy { margin-top: 10px; padding: 14px 0 18px; }
    .sb-footer-copy p { font-size: 11px; }

}

@media (max-width: 480px) {
    .sb-latest-gallery .sb-gallery-grid { grid-template-columns: 1fr; }
}

/* ========================================
   Page Content
   ======================================== */
.sb-page-content {
    padding: 30px 0 60px;
    line-height: 1.8;
    word-break: keep-all;
    overflow-wrap: break-word;
}
.sb-page-content img {
    max-width: 100%;
    height: auto;
}
.sb-page-content table {
    width: 100%;
}
