/* Import Modern Korean Font */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
    --primary-color: #dc2626; /* Pawby Red */
    --secondary-color: #991b1b; /* Dark Red */
    --accent-color: #fca5a5; /* Light Red */
    --text-main: #333333;
    --text-muted: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --font-family: 'Pretendard', sans-serif;
    --border-radius: 12px;
}

body, h1, h2, h3, h4, p, span, a, div, li, ul {
    font-family: var(--font-family) !important;
}

body {
    color: var(--text-main);
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Header - Red Theme */
.pawby-header {
    background: #e50914; /* Solid Red */
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.pawby-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 20px; /* Reduced from 15px */
    position: relative; /* For gnb-bg alignment */
}

.pawby-logo {
    position: absolute;
    left: 20px;
    z-index: 10;
}

.pawby-logo img {
    height: 60px;
    object-fit: contain;
}

.pawby-nav {
    position: static;
}

/* Full Dropdown Background */
.gnb-bg {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    height: 0;
    background: #e50914; /* Solid Red */
    transition: height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 5;
    border-top: none;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.pawby-nav:hover .gnb-bg {
    height: 200px; /* Adjust based on submenu items */
}

.pawby-nav .pawby-gnb {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 80px; /* Increased from 40px */
    position: relative;
    z-index: 10;
}

.pawby-gnb > li {
    position: relative; /* Let submenu position relative to each menu item */
}

.pawby-gnb > li > a {
    text-decoration: none;
    color: #ffffff; /* Changed to pure white */
    font-weight: 800; /* Increased for clarity */
    font-size: 1.1rem; /* Slightly smaller for compactness */
    padding: 15px 0; /* Reduced from 25px */
    display: block;
    transition: color 0.3s, text-shadow 0.3s;
    position: relative;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Added text-shadow for crispness */
}

.pawby-gnb > li > a::after {
    content: '';
    position: absolute;
    bottom: 8px; /* Adjusted due to padding change */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: white;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.pawby-gnb > li:hover > a,
.pawby-nav:hover .pawby-gnb > li > a {
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.pawby-gnb > li:hover > a::after {
    width: 100%;
}

.pawby-sub {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    text-align: center;
    list-style: none;
    padding: 20px 0 0 0; /* Reduced top padding */
    margin: 0;
    z-index: 10;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Slightly reduced gap */
    width: 200px;
}

.pawby-nav:hover .pawby-sub {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.pawby-sub a {
    color: #ffffff; /* Pure white */
    text-decoration: none;
    font-weight: 500; /* Slightly lighter weight */
    font-size: 0.95rem; /* Reduced font size */
    transition: color 0.3s, transform 0.3s, text-shadow 0.3s;
    display: inline-block;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pawby-sub a:hover {
    color: white;
    transform: translateX(5px);
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Containers */
.main-container {
    width: 100%;
}

/* Override default.css #container for full-width layout without sidebars */
#container {
    float: none !important;
    width: 100% !important;
    margin: 0 auto !important;
}

.inner-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 40px;
}

.sub-hero {
    background: linear-gradient(135deg, #e50914, #b91c1c);
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sub-hero::after {
    content: '';
    position: absolute;
    bottom: -50px; right: -50px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.sub-hero .section-title {
    margin: 0;
    font-size: 2.8rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Footer */
.pawby-footer {
    background: #111827;
    color: #9ca3af;
    padding: 60px 20px 20px;
}

.pawby-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-info h3 {
    color: white;
    margin-top: 0;
}

.footer-info p {
    margin: 5px 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #374151;
    margin-top: 40px;
    padding-top: 20px;
    font-size: 0.9rem;
}

#top_btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background 0.3s;
}

#top_btn:hover {
    background: var(--secondary-color);
}

/* Pages Styling */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h2 {
    font-size: 2rem;
    color: var(--secondary-color);
}

.content-block {
    margin-bottom: 40px;
    line-height: 1.8;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

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

.product-img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background: #f9fafb;
    padding: 20px;
    box-sizing: border-box;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    margin: 0 0 10px;
    font-size: 1.3rem;
}

.product-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius);
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.95);
}

.text-gradient {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.modern-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background: var(--secondary-color);
    color: white;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.2);
    font-size: 1.05rem;
}

.modern-btn:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(59, 130, 246, 0.3);
    color: white;
}

.modern-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.modern-btn:hover i {
    transform: translateX(5px);
}

/* Layout Utility Classes for Subpages */
.split-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.split-layout > div {
    flex: 1;
    min-width: 300px;
}

.rounded-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    object-fit: cover;
}

.zigzag-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.zigzag-row > div {
    min-width: 300px;
}

.zigzag-row:nth-child(even) {
    flex-direction: row-reverse;
}

.zigzag-text h3 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.zigzag-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #4b5563;
}

.tag-red {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(220, 38, 38, 0.1);
    color: var(--primary-color);
    font-weight: 700;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.card-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

/* Full Width High-Density Layout Classes */
.full-hero {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 120px 20px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.full-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.full-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
}

.full-hero-content h2 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.full-hero-content p {
    font-size: 1.25rem;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.inner-1200 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.bg-light-red {
    background-color: #fff1f2;
    padding: 60px;
    border-radius: 40px;
}

.bg-dark {
    background-color: #111827;
    color: white;
}

/* Board Button Overrides to Red */
#bo_v .btn_b01, #bo_v .btn_b02, #bo_v .btn_submit,
#bo_list .btn_b01, #bo_list .btn_b02, #bo_list .btn_submit,
#bo_w .btn_submit, #bo_w .btn_b01, #bo_w .btn_b02,
.btn_admin, .btn_confirm .btn_submit, .btn_cancel, .btn_b03,
.bo_sch_cls, .btn_sch, .btn_frmline, .btn_submit, .btn_b04,
.board-list .btn-navy, .board-list .btn-gray, .btn-e.btn-navy {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
}

#bo_v .btn_b01:hover, #bo_v .btn_b02:hover, #bo_v .btn_submit:hover,
#bo_list .btn_b01:hover, #bo_list .btn_b02:hover, #bo_list .btn_submit:hover,
#bo_w .btn_submit:hover, #bo_w .btn_b01:hover, #bo_w .btn_b02:hover,
.btn_admin:hover, .btn_confirm .btn_submit:hover, .btn_cancel:hover, .btn_b03:hover,
.bo_sch_cls:hover, .btn_sch:hover, .btn_frmline:hover, .btn_submit:hover, .btn_b04:hover,
.board-list .btn-navy:hover, .board-list .btn-gray:hover, .btn-e.btn-navy:hover {
    background-color: #b91c1c !important; /* Darker red on hover */
    border-color: #b91c1c !important;
}

/* Tailwind Board Overrides */
.pawby-board-container {
    padding: 50px 40px;
    box-sizing: border-box;
    width: 100%;
    max-width: 1280px !important;
    margin: 0 auto !important;
}

@media (max-width: 768px) {
    .pawby-board-container {
        padding: 30px 15px;
    }
}

.board-list-wrapper .bg-primary,
.board-view-wrapper .bg-primary,
.board-write-wrapper .bg-primary,
.pagination .active,
.pg_current {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
}

.board-list-wrapper .hover\:bg-primary\/90:hover,
.board-write-wrapper .hover\:bg-primary\/90:hover {
    background-color: #b91c1c !important;
}

.board-list-wrapper .text-primary,
.board-view-wrapper .text-primary {
    color: var(--primary-color) !important;
}

/* Mobile Hamburger GNB Fix */
@media (max-width: 820px) {
    .pawby-header-inner {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 20px;
    }
    .pawby-logo {
        position: static;
        margin: 0;
    }
    .pawby-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #e50914;
        display: none;
        padding: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }
    .pawby-nav.is-active {
        display: block;
    }
    .pawby-nav .pawby-gnb {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    .pawby-gnb > li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        display: block !important;
    }
    .pawby-gnb > li:last-child {
        border-bottom: none;
    }
    .pawby-gnb > li > a {
        display: block !important;
        padding: 15px 20px !important;
        text-align: left !important;
        font-size: 1.1rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
        color: #ffffff !important;
    }
    .pawby-gnb > li > a::after {
        display: none !important;
    }
    .pawby-nav:hover .gnb-bg {
        height: 0 !important; 
        display: none !important;
    }
    .pawby-sub {
        position: static !important;
        width: 100% !important;
        background: #b91c1c !important; /* Dark red background */
        transform: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        display: none; /* jQuery toggle controls this */
        padding: 0 !important;
        margin: 0 !important;
        flex-direction: column !important; /* Reset any row flex */
    }
    .pawby-sub > li {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .pawby-sub > li > a {
        display: block !important;
        width: 100% !important;
        padding: 15px 30px !important;
        text-align: left !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
        color: #ffffff !important;
        font-size: 1rem !important;
        text-shadow: none !important;
        box-sizing: border-box !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        line-height: 1.5 !important;
    }
}
@media (min-width: 821px) {
    .mobile-menu-btn {
        display: none;
    }
}
