:root {
  --color-bg: #ffffff;
  --color-text: #2b180d;
  --color-primary: #56b8e6;
  --color-secondary: #1b2f45;
  --color-nav-bg: rgba(27, 47, 69, 0.9);
  --color-nav-text: rgba(255, 255, 255, 0.6);
  --color-card-bg: #ffffff;
  --color-border: #e9e9e9;
  --color-section-bg: #f7f9fc;
  --color-footer-bg: #f8f9fa;
  --color-footer-text: #6c757d;
  --color-dropdown-bg: #ffffff;
  --color-dropdown-text: #1b2f45;
}

[data-theme="dark"] {
  --color-bg: #121212;
  --color-text: #e1e1e1;
  --color-primary: #56b8e6;
  --color-secondary: #1f1f1f;
  --color-nav-bg: rgba(18, 18, 18, 0.95);
  --color-nav-text: rgba(255, 255, 255, 0.7);
  --color-card-bg: #1e1e1e;
  --color-border: #333333;
  --color-section-bg: #1a1a1a;
  --color-footer-bg: #121212;
  --color-footer-text: #adb5bd;
  --color-dropdown-bg: #1e1e1e;
  --color-dropdown-text: #e1e1e1;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  transition:
    background-color 0.3s,
    color 0.3s;
}

/* Sections */
section {
  background-color: var(--color-bg);
}

.why-us .slides {
  background-color: var(--color-section-bg) !important;
}

/* Header & Nav */
.header {
  background-color: transparent;
}

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

.navbar a,
.navbar a:focus {
  color: var(--color-nav-text);
}

.navbar .dropdown ul {
  background-color: var(--color-dropdown-bg) !important;
  box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.25) !important;
}

.navbar .dropdown ul a {
  color: var(--color-dropdown-text) !important;
}

@media (max-width: 1279px) {
  .navbar ul {
    background-color: var(--color-nav-bg) !important;
  }
}

/* Footer */
footer {
  background-color: var(--color-footer-bg) !important;
  color: var(--color-footer-text) !important;
}

footer .text-reset {
  color: var(--color-footer-text) !important;
}

footer hr {
  border-color: var(--color-border);
}

/* Cards & Items */
.portfolio-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
}

.portfolio-info {
  background: rgba(var(--color-secondary), 0.9);
}

[data-theme="dark"] .portfolio-info {
  background: rgba(0, 0, 0, 0.8) !important;
}

/* Theme Toggle Button Style */
.theme-toggle {
  cursor: pointer;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-nav-text);
  transition: 0.3s;
}

.theme-toggle:hover {
  color: #fff;
}

/* General overrides for dark mode */
[data-theme="dark"] .section-header h2 {
  color: #fff;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: #fff;
}

[data-theme="dark"] .about .content h3 {
  color: #fff;
}

[data-theme="dark"] .about .content p {
  color: #ccc;
}

/* Extra Overrides */
.services-list .service-item {
  background-color: var(--color-bg);
}

.features .nav-link {
  background-color: var(--color-bg);
  color: var(--color-text);
}

.features .nav-link.active {
  background-color: var(--color-primary);
  color: #fff;
}

.breadcrumbs {
  background-color: var(--color-secondary);
}

input, textarea, select {
  background-color: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

[data-theme='dark'] input, 
[data-theme='dark'] textarea, 
[data-theme='dark'] select {
  background-color: #1e1e1e;
  border-color: #444;
}

.table {
  color: var(--color-text);
}

[data-theme='dark'] .table {
  --bs-table-bg: #121212;
  --bs-table-striped-bg: #1a1a1a;
  --bs-table-hover-bg: #222;
  color: #e1e1e1;
}

[data-theme='dark'] .header.sticked {
    background: rgba(0, 0, 0, 0.9) !important;
}

[data-theme='dark'] footer {
    border-top: 1px solid #333;
}

[data-theme='dark'] footer .text-uppercase {
    color: #fff !important;
}

[data-theme='dark'] .footer img[src*="logo-b-b.png"] {
    filter: brightness(0) invert(1);
}

/* About Us Cards Style */
.service-item {
    padding: 40px;
    background: var(--color-bg);
    height: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.service-item .icon {
    margin-bottom: 20px;
    width: 64px;
    height: 64px;
    background: rgba(86, 184, 230, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.service-item:hover .icon {
    background: var(--color-primary);
}

.service-item .icon i {
    color: var(--color-primary);
    font-size: 28px;
    transition: 0.3s;
}

.service-item:hover .icon i {
    color: #fff;
}

.service-item h3 {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 20px;
    color: var(--color-secondary);
}

[data-theme='dark'] .service-item h3 {
    color: #fff;
}

.service-item p {
    line-height: 1.6;
    margin-bottom: 0;
    color: var(--color-footer-text);
}

.section-header h2 {
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.lead {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.8;
}

[data-theme='dark'] .bg-light {
    background-color: #1a1a1a !important;
}

/* Worship Schedule & Order Styles */
.schedule-card {
    background: var(--color-bg);
    border-radius: 20px;
    border: none;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: 0.3s;
}

[data-theme='dark'] .schedule-card {
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
}

.schedule-card .card-header {
    background: var(--color-primary);
    color: #fff;
    padding: 30px;
    text-align: center;
    border: none;
}

.schedule-card .card-body {
    padding: 40px;
}

.worship-time {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 20px;
}

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

.worship-order-list li {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed var(--color-border);
}

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

.order-count {
    width: 30px;
    height: 30px;
    background: rgba(86, 184, 230, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 20px;
    font-size: 0.9rem;
}

.order-title {
    font-weight: 600;
    flex: 1;
}

.order-person {
    color: var(--color-footer-text);
    font-size: 0.9rem;
}
/* Vertical Timeline Styles */
.timeline-section {
    padding: 80px 0;
    position: relative;
    background: var(--color-bg);
}

.timeline-container {
    position: relative;
    padding: 40px 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: var(--color-border);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 100px;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 50px);
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 50px);
}

.timeline-dot {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 24px;
    height: 24px;
    background: var(--color-primary);
    border: 5px solid var(--color-bg);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-content-card {
    position: relative;
    width: 100%;
    padding: 30px;
    background: var(--color-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
    transition: 0.3s;
}

[data-theme='dark'] .timeline-content-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.timeline-content-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.timeline-year {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(86, 184, 230, 0.1);
    color: var(--color-primary);
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.timeline-title {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.25rem;
    color: var(--color-secondary);
}

[data-theme='dark'] .timeline-title {
    color: #fff;
}

.timeline-desc {
    color: var(--color-footer-text);
    margin-bottom: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .timeline-container::before {
        left: 30px;
    }
    
    .timeline-item, .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 70px;
        padding-right: 0;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-content-card {
        width: 100%;
    }
}
[data-theme='dark'] .stepper-item::after {
    border-bottom-color: #444;
}

[data-theme='dark'] .stepper-item .step-counter {
    background: #444;
    color: #fff;
}

[data-theme='dark'] .card {
    background-color: #1e1e1e;
    border-color: #333;
    color: #e1e1e1;
}

[data-theme='dark'] .card-header {
    background-color: #252525;
    border-bottom-color: #333;
    color: #fff;
}

/* Pastor Profile Styles */
.pastor-card {
    background: var(--color-bg);
    border-radius: 30px;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

[data-theme='dark'] .pastor-card {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pastor-img-wrapper {
    position: relative;
    margin-right: 50px;
}

.pastor-img-wrapper img {
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 15px 15px 0 var(--color-primary);
}

.pastor-info-header {
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.pastor-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-secondary);
    margin-bottom: 5px;
}

[data-theme='dark'] .pastor-name {
    color: #fff;
}

.pastor-position {
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 600;
}

.pastor-bio {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
}

.pastor-bio p {
    margin-bottom: 15px;
}

@media (max-width: 992px) {
    .pastor-card {
        padding: 40px;
        flex-direction: column;
        text-align: center;
    }
    .pastor-img-wrapper {
        margin-right: 0;
        margin-bottom: 40px;
    }
    .pastor-img-wrapper img {
        width: 100%;
        max-width: 300px;
        height: auto;
    }
    .pastor-info-header {
        text-align: center;
    }
}

/* CI Presentation Styles */
.ci-philosophy-card {
    background: var(--color-bg);
    border-radius: 20px;
    padding: 40px;
    border-left: 5px solid var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

[data-theme='dark'] .ci-philosophy-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ci-quote {
    font-style: italic;
    font-size: 1.25rem;
    color: var(--color-secondary);
    padding: 40px;
    border-bottom: 1px solid var(--color-border);
    border-top: 1px solid var(--color-border);
    margin: 50px 0;
    text-align: center;
    line-height: 1.8;
}

[data-theme='dark'] .ci-quote {
    color: #fff;
}

.color-swatch-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.color-swatch {
    flex: 1;
    height: 100px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
}

.color-green { background-color: #2e7d32; }
.color-purple { background-color: #7b1fa2; }

@media (max-width: 576px) {
    .color-swatch-container {
        flex-direction: column;
    }
}

/* AOI (Bylaws) Styles */
.aoi-toc {
    background: var(--color-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px;
    border: 1px solid var(--color-border);
}

[data-theme='dark'] .aoi-toc {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.aoi-toc-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: var(--color-primary);
}

.aoi-toc-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.aoi-toc-list a {
    display: block;
    padding: 10px 15px;
    color: var(--color-text);
    text-decoration: none;
    border-radius: 10px;
    transition: 0.3s;
    background: rgba(86, 184, 230, 0.05);
}

.aoi-toc-list a:hover {
    background: var(--color-primary);
    color: #fff;
}

.aoi-chapter {
    margin-bottom: 60px;
}

.aoi-chapter-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-secondary);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--color-primary);
    display: inline-block;
}

[data-theme='dark'] .aoi-chapter-title {
    color: #fff;
}

.aoi-article {
    background: var(--color-bg);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid var(--color-border);
    transition: 0.3s;
}

.aoi-article:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: var(--color-primary);
}

.aoi-article-header {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    display: block;
}

.aoi-article-content {
    line-height: 1.8;
}

.aoi-sub-item {
    display: flex;
    margin-top: 10px;
    padding-left: 15px;
}

.aoi-sub-num {
    min-width: 25px;
    font-weight: 700;
    color: var(--color-primary);
}

.aoi-note {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 10px 10px 0;
}

.aoi-supplement {
    background: rgba(86, 184, 230, 0.05);
    border-radius: 20px;
    padding: 40px;
    margin-top: 80px;
}

/* Video Gallery Styles */
.video-card {
    background: var(--color-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.video-thumb-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.video-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.video-card:hover .video-thumb-wrapper img {
    transform: scale(1.1);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    opacity: 0;
    transition: 0.3s;
    box-shadow: 0 0 20px var(--color-primary);
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.video-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.video-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-theme='dark'] .video-title {
    color: #fff;
}

.video-date {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-desc {
    font-size: 0.95rem;
    color: var(--color-text);
    opacity: 0.8;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-theme='dark'] .video-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* BBS Write Styles */
.write-container {
    padding: 60px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.write-card {
    background: var(--color-bg);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
}

.write-form-label {
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 12px;
    display: block;
    font-size: 1.1rem;
}

[data-theme='dark'] .write-form-label {
    color: #fff;
}

.write-control {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 1rem;
    color: var(--color-text);
    transition: all 0.3s;
    width: 100%;
}

.write-control:focus {
    background-color: var(--color-bg);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(86, 184, 230, 0.1);
    outline: none;
}

.ck-editor__editable {
    min-height: 400px !important;
    border-radius: 0 0 12px 12px !important;
    border-color: var(--color-border) !important;
    background-color: var(--color-bg) !important;
    color: var(--color-text) !important;
}

.ck-toolbar {
    border-radius: 12px 12px 0 0 !important;
    border-color: var(--color-border) !important;
    background-color: var(--color-bg-alt) !important;
}

[data-theme='dark'] .ck-toolbar {
    background-color: #2a2a2a !important;
}

.write-file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.file-item {
    background: var(--color-bg-alt);
    border-radius: 50px;
    padding: 8px 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.file-item .btn-remove {
    color: #ff4d4f;
    cursor: pointer;
    transition: 0.3s;
}

.file-item .btn-remove:hover {
    transform: scale(1.2);
}

.write-drop-zone {
    border: 2px dashed var(--color-border) !important;
    border-radius: 20px !important;
    padding: 40px !important;
    text-align: center !important;
    background: var(--color-bg-alt) !important;
    transition: 0.3s !important;
    cursor: pointer !important;
    position: relative !important;
    margin: 30px 0 !important;
}

.write-drop-zone:hover, .write-drop-zone.highlight {
    border-color: var(--color-primary) !important;
    background: rgba(86, 184, 230, 0.05) !important;
}

.write-drop-zone i {
    font-size: 3rem !important;
    color: var(--color-primary) !important;
    margin-bottom: 15px !important;
    display: block !important;
}

.write-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

[data-theme='dark'] .write-card {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* BBS List Styles */
.bbs-list-container {
    padding: 60px 0;
}

.bbs-table {
    border-collapse: separate;
    border-spacing: 0 10px;
    width: 100%;
}

.bbs-table thead th {
    border: none;
    color: var(--color-secondary);
    font-weight: 700;
    padding: 15px 20px;
    border-bottom: 2px solid var(--color-primary);
    background: transparent;
}

[data-theme='dark'] .bbs-table thead th {
    color: #fff;
}

.bbs-table tbody tr {
    background: var(--color-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.bbs-table tbody tr:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    background: var(--color-bg-alt);
}

.bbs-table td {
    padding: 20px;
    border: none;
    vertical-align: middle;
}

.bbs-table td:first-child { border-radius: 12px 0 0 12px; }
.bbs-table td:last-child { border-radius: 0 12px 12px 0; }

.bbs-title {
    font-weight: 600;
    color: var(--color-secondary);
    font-size: 1.1rem;
}

[data-theme='dark'] .bbs-title { color: #fff; }

.bbs-badge {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* BBS Detail Styles */
.article-container {
    padding: 60px 0;
}

.article-card {
    background: var(--color-bg);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
}

.article-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--color-border);
}

.article-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-secondary);
    margin-bottom: 20px;
    line-height: 1.3;
}

[data-theme='dark'] .article-title { color: #fff; }

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--color-text);
    opacity: 0.7;
    font-size: 0.95rem;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 50px;
    min-height: 200px;
}

.article-attachment-section {
    background: var(--color-bg-alt);
    border-radius: 20px;
    padding: 30px;
    margin-top: 50px;
}

.attachment-title {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

[data-theme='dark'] .attachment-title { color: #fff; }

[data-theme='dark'] .article-card {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* =============================================
   Custom Pagination
============================================= */
.custom-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 20px 0 40px;
}

.custom-pagination .page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 50px;
    border: 1.5px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 1;
}

.custom-pagination .page-btn:hover:not(.disabled):not(.active) {
    background: rgba(86, 184, 230, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(86, 184, 230, 0.15);
}

.custom-pagination .page-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(86, 184, 230, 0.4);
}

.custom-pagination .page-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.custom-pagination .page-btn.nav-btn {
    background: var(--color-section-bg);
    font-size: 0.85rem;
    gap: 4px;
}

.custom-pagination .page-btn.nav-btn:hover:not(.disabled) {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

[data-theme='dark'] .custom-pagination .page-btn {
    background: #1e1e1e;
    border-color: #333;
    color: #e1e1e1;
}

[data-theme='dark'] .custom-pagination .page-btn.nav-btn {
    background: #252525;
}

[data-theme='dark'] .custom-pagination .page-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* 더보기 버튼 */
.load-more-btn {
    min-width: 160px;
    padding: 12px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    background: var(--color-primary);
    border: none;
    color: #fff;
    box-shadow: 0 6px 20px rgba(86, 184, 230, 0.35);
    transition: all 0.25s ease;
}

.load-more-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(86, 184, 230, 0.45);
    background: #3aa8d8;
    color: #fff;
}

.load-more-btn:disabled {
    opacity: 0.65;
}
