/*
Theme Name: Korean BJ
Theme URI: https://example.com/korean-bj
Author: Trae
Author URI: https://example.com/
Description: An adaptive WordPress theme for Korean BJ with cool effects, gradients, and custom layouts.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: korean-bj
*/

/* Core Reset & Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #ff007f 0%, #00d4ff 100%);
    --secondary-gradient: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    --dark-gradient: linear-gradient(135deg, #1f1c2c 0%, #928dab 100%);
    --purple-gradient: linear-gradient(135deg, #89216b 0%, #da4453 100%);
    --box-gradient-1: linear-gradient(135deg, #ff007f 0%, #ff5e62 100%);
    --box-gradient-2: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    --box-gradient-3: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%);
    --text-color: #1a1a1a;
    --bg-color: #ffffff; /* Bright white */
    --container-width: 1200px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* Header & Navigation */
.site-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-area a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-area img {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(255, 117, 140, 0.6);
    border: 2px solid #fff;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(to right, #ff007f, #ff00ff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 5px rgba(255,117,140,0.2); }
    to { text-shadow: 0 0 20px rgba(255,117,140,0.6); }
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-navigation a {
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1a1a1a; /* Changed to solid black/dark gray */
    transition: all 0.3s ease;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(to right, #ff007f, #00d4ff);
    transition: width 0.3s ease;
}

.main-navigation a:hover {
    color: #ff007f; /* Hover color changed to brand pink */
    text-shadow: 0 0 10px rgba(255, 0, 127, 0.2);
}

.main-navigation a:hover::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn-auth {
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 800;
    background: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
    display: inline-block;
}

.btn-auth span {
    background: linear-gradient(to right, #ff007f, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 2;
}

.btn-auth i {
    color: #ff007f;
    margin-right: 5px;
    transition: color 0.3s ease;
}

.btn-auth::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(135deg, #ff007f, #8e2de2, #00d4ff);
    z-index: -1;
    border-radius: 25px;
    background-size: 200% 200%;
    animation: gradientBorder 3s ease infinite;
}

.btn-auth::after {
    content: '';
    position: absolute;
    top: 2px; left: 2px; right: 2px; bottom: 2px;
    background: #fff;
    z-index: -1;
    border-radius: 23px;
    transition: background 0.3s ease;
}

.btn-auth:hover::after {
    background: transparent;
}

.btn-auth:hover span {
    -webkit-text-fill-color: #fff;
}

.btn-auth:hover i {
    color: #fff;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(142, 45, 226, 0.4);
}

.btn-login { /* Removed gradient background, relying on the border style above */ }
.btn-register { /* Removed gradient background, relying on the border style above */ }

/* Banner / Carousel */
.hero-banner {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.carousel-slide.active {
    opacity: 1;
}

.banner-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 15px;
    max-width: 800px;
}

.banner-title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    background: linear-gradient(to right, #ffffff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideUp 0.8s ease-out forwards;
}

.banner-desc {
    font-size: 18px;
    color: #eee;
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    max-width: 600px;
    animation: slideUp 1s ease-out forwards;
}

.banner-btn {
    display: inline-block;
    padding: 12px 35px;
    background: linear-gradient(90deg, #ff007f, #00d4ff);
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 0, 127, 0.4);
    animation: slideUp 1.2s ease-out forwards;
}

.banner-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.6);
    color: #fff;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Body Section 1: Call to Action */
.section-cta {
    padding: 80px 0;
    text-align: center;
}

/* CTA Box */
.cta-box {
    position: relative;
    background: linear-gradient(90deg, #00d4ff 0%, #00d4ff 50%, #ff00ff 50%, #ff00ff 100%);
    border-radius: 100px;
    padding: 60px 40px;
    color: #fff;
    width: 100%;
    margin: 0 auto;
    z-index: 1;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.cta-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.cta-box h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.btn-cta {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-gradient);
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background: #f0f0f0;
    box-shadow: 0 0 20px rgba(255,255,255,0.5);
}

/* Body Section 2: Platform Features */
.section-features {
    padding: 60px 0;
}

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

.feature-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.feature-box {
    border-radius: 20px;
    padding: 40px 30px;
    color: #fff;
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateX(0) rotateY(0);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature-box:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) scale(1.03) translateY(-10px);
    box-shadow: -10px 15px 30px rgba(0,0,0,0.2);
}

.feature-box::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-box:hover::after {
    opacity: 1;
}

.feature-box.color-1 { background: linear-gradient(135deg, #ff007f 0%, #ff5e62 100%); }
.feature-box.color-2 { background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%); }
.feature-box.color-3 { background: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%); }

.feature-icon {
    font-size: 36px;
    margin-bottom: 0;
}

.feature-box h3 {
    font-size: 24px;
    margin-bottom: 0;
}

/* Body Section 3: Portfolio Showcase */
.section-showcase {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; transform: translateX(-50%);
    width: 80px; height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.portfolio-item {
    position: relative;
    background: #fff;
    border-radius: 15px;
    overflow: visible; /* Changed from hidden to visible */
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: -3px; left: -3px; right: -3px; bottom: -3px;
    background: linear-gradient(135deg, #ff007f, #00d4ff, #8e2de2);
    background-size: 200% 200%;
    z-index: -1;
    border-radius: 18px;
    opacity: 1; /* Always visible gradient border */
    animation: gradientBorder 5s ease infinite;
}

.portfolio-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.4);
}

.portfolio-item:hover::before {
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.5); /* Glowing effect on hover */
}

.portfolio-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 15px 15px 0 0;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.05); /* Reduced scale since it's not hidden anymore */
}

.portfolio-img-wrapper {
    overflow: hidden;
    position: relative;
    border-radius: 15px 15px 0 0;
}

.portfolio-info {
    padding: 20px;
    background: #fff;
    border-radius: 0 0 15px 15px;
    color: #333;
    z-index: 2;
    flex-grow: 1;
}

.portfolio-info h4 {
    margin-bottom: 10px;
    font-size: 20px;
    color: #222;
    font-weight: bold;
}

.portfolio-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Footer */
.site-footer {
    background: #ffffff; /* Changed to bright white */
    color: #1a1a1a; /* Match site text color per request */
    padding: 0 0 30px 0;
    position: relative;
}

.footer-top-border {
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #ff007f, #8e2de2, #00d4ff);
    box-shadow: 0 0 15px rgba(142, 45, 226, 0.4); /* Softened glow for white bg */
    margin-bottom: 60px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Keeps columns and dividers the same height */
    gap: 20px;
    margin-bottom: 40px;
}

.footer-divider {
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(142, 45, 226, 0.4), transparent); /* Softened for white bg */
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3); /* Softened glow */
    margin: 0 15px;
    flex-shrink: 0;
}

.footer-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.brand-col {
    flex: 1.5;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    border: 2px solid #ff007f; /* Changed border color for contrast on white */
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.3); /* Softened glow */
}

.footer-logo-text {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(to right, #ff007f, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.footer-desc {
    color: #666; /* Darkened for readability on white */
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.footer-desc strong {
    color: #1a1a1a;
    font-weight: bold;
    text-shadow: none; /* Removed text shadow for cleaner look on white */
}

.social-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-text {
    font-size: 16px;
    font-weight: 900;
    background: linear-gradient(to right, #ff007f, #00d4ff, #ff00ff, #00ffcc);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGlowAnim 3s ease infinite;
}

@keyframes textGlowAnim {
    0% { background-position: 0% center; filter: drop-shadow(0 0 8px rgba(255, 0, 127, 0.8)); }
    50% { background-position: 100% center; filter: drop-shadow(0 0 15px rgba(0, 212, 255, 1)); }
    100% { background-position: 0% center; filter: drop-shadow(0 0 8px rgba(255, 0, 127, 0.8)); }
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: transparent;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    animation: iconGlowAnim 2s infinite alternate;
}

@keyframes iconGlowAnim {
    from { box-shadow: 0 0 10px rgba(0, 212, 255, 0.5), 0 0 20px rgba(255, 0, 127, 0.3); }
    to { box-shadow: 0 0 20px rgba(0, 212, 255, 0.8), 0 0 40px rgba(255, 0, 127, 0.6); transform: scale(1.05); }
}

.social-icon::before {
    content: '';
    position: absolute;
    top: -3px; left: -3px; right: -3px; bottom: -3px;
    background: linear-gradient(135deg, #ff007f, #00ffcc, #00d4ff, #ff00ff);
    z-index: -1;
    border-radius: 50%;
    background-size: 300% 300%;
    animation: gradientBorder 3s ease infinite;
}

.social-icon::after {
    content: '';
    position: absolute;
    top: 2px; left: 2px; right: 2px; bottom: 2px;
    background: #fff;
    z-index: -1;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.social-icon i {
    background: linear-gradient(135deg, #ff007f, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(255, 0, 127, 0.8));
    transition: all 0.3s ease;
}

.social-icon:hover::after {
    background: transparent;
}

.social-icon:hover i {
    -webkit-text-fill-color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(142, 45, 226, 0.5);
}

.footer-heading {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-col ul a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 1px;
    background: linear-gradient(to right, #ff007f, #00d4ff);
    transition: width 0.3s ease;
}

.footer-col ul a:hover {
    color: #ff007f;
    text-shadow: 0 0 8px rgba(255, 0, 127, 0.3);
    transform: translateX(5px);
}

.footer-col ul a:hover::after {
    width: 100%;
}

.compliance-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1a1a1a;
    font-size: 14px;
    margin-bottom: 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.compliance-item i {
    width: 20px;
    text-align: center;
}

.age-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ff5e62;
    color: #ff5e62;
    font-size: 10px;
    font-weight: bold;
    flex-shrink: 0;
}

.compliance-item.age-warning { color: #ff5e62; }
.compliance-item.dmca i { color: #00d4ff; }
.compliance-item.report i { color: #ff007f; }
.compliance-item.disclaimer i { color: #8e2de2; }

a.compliance-item:hover {
    color: #ff007f;
}

.site-info {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.1);
    color: #1a1a1a;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
    
    /* Kept footer-grid in one row even on smaller screens */
    .footer-grid {
        flex-wrap: nowrap;
        overflow-x: auto; /* Allow scrolling if it gets too tight */
        padding-bottom: 10px;
    }
    .brand-col {
        flex: 1.5;
        min-width: 250px; /* Ensure it doesn't get too squished */
    }
    .footer-col {
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 15px; }
    .main-navigation ul { flex-wrap: wrap; justify-content: center; }
    .features-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-banner { height: 40vh; min-height: 250px; }
    
    /* Footer kept in one row with horizontal scroll on mobile */
    .footer-grid {
        flex-wrap: nowrap;
        flex-direction: row;
        gap: 15px;
    }
    .footer-divider {
        width: 2px;
        height: auto;
        background: linear-gradient(to bottom, transparent, rgba(142, 45, 226, 0.6), transparent);
    }
}

@media (max-width: 480px) {
    .portfolio-grid { grid-template-columns: 1fr; }
    .auth-buttons { flex-direction: column; width: 100%; }
    .btn-auth { text-align: center; }
}

/* KBJ News Grid Styles */
.news-container {
    padding: 60px 15px;
    max-width: 1200px;
    margin: 0 auto;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.news-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
}
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.15);
    border-color: rgba(255, 0, 127, 0.2);
}
.news-thumbnail {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}
.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.news-card:hover .news-thumbnail img {
    transform: scale(1.08);
}
.news-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: #ced4da;
}
.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.news-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.news-meta i {
    color: #00d4ff;
}
.news-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.4;
}
.news-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}
.news-title a:hover {
    color: #ff007f;
}
.news-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}
.news-read-more-wrapper {
    margin-top: auto;
}
.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(to right, #ff007f, #00d4ff);
    color: #fff !important;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}
.news-read-more:hover {
    box-shadow: 0 5px 15px rgba(255, 0, 127, 0.4);
    transform: translateX(5px);
}

/* Pagination */
.news-pagination {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 50px;
}
.news-pagination ul {
    display: flex;
    list-style: none;
    gap: 10px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}
.news-pagination li {
    margin: 0;
}
.news-pagination a, .news-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    border-radius: 8px;
    background: #fff;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.news-pagination a:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    transform: translateY(-2px);
}
.news-pagination .current {
    background: linear-gradient(135deg, #ff007f, #00d4ff);
    color: #fff;
    box-shadow: 0 5px 15px rgba(255, 0, 127, 0.3);
}
.no-news-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    background: #fff;
    border-radius: 10px;
    color: #666;
}

/* Responsive Grid for News */
@media (max-width: 992px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .news-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Single Post / Article Detail Page Styles
   ========================================================================== */
.single-post-container {
    max-width: 900px; /* Narrow, focused reading width */
    margin: 0 auto;
}

.single-article-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

/* Optional top accent border for the card */
.single-article-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(to right, #ff007f, #00d4ff);
}

/* Header Section */
.entry-header {
    text-align: center;
    margin-bottom: 40px;
}

.entry-title {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.3;
    color: #1a1a1a;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.entry-title:hover {
    background: linear-gradient(to right, #ff007f, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.entry-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
}

.meta-author-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.meta-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background-color: #1a1a1a; /* Assuming logo might be transparent/white text */
}

.meta-verified-expert {
    position: absolute;
    bottom: -2px;
    right: -2px;
    color: #00d4ff;
    background: #fff;
    border-radius: 50%;
    font-size: 14px;
    box-shadow: 0 0 0 1px #fff;
}

.meta-details {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.entry-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.meta-icon {
    background: linear-gradient(135deg, #ff007f, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 16px;
}

.entry-meta a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-meta a:hover {
    color: #ff007f;
}

/* Featured Image */
.post-thumbnail {
    margin: 30px -50px 40px -50px; /* Bleed image out to edges of padding */
    position: relative;
}

.featured-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.15);
}

/* Content Section */
.entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.entry-content p {
    margin-bottom: 25px;
}

.entry-content h2, .entry-content h3 {
    color: #1a1a1a;
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

/* Vibrant vertical line for headings */
.entry-content h2::before, .entry-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 5px;
    background: linear-gradient(to bottom, #ff007f, #00d4ff);
    border-radius: 5px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Blockquote styling */
.entry-content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    background: rgba(255, 0, 127, 0.05); /* Light pink tint */
    border-left: 5px solid #ff007f;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    font-size: 20px;
    color: #555;
}

.entry-content a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px dashed transparent;
    transition: all 0.3s ease;
}

.entry-content a:hover {
    color: #ff007f;
    border-bottom-color: #ff007f;
}

/* Footer Section (Tags & Share) */
.entry-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Authority & Trust Box */
.authority-author-box {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(to right, rgba(255, 0, 127, 0.03), rgba(0, 212, 255, 0.03));
    border-radius: 15px;
    display: flex;
    align-items: flex-start;
    gap: 25px;
    border: 1px solid rgba(0,0,0,0.05);
}

.author-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar img {
    width: 100%;
    height: auto;
}

.author-info {
    flex-grow: 1;
}

.author-name {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.verified-badge {
    color: #00d4ff;
    font-size: 16px;
}

.author-bio {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.author-bio strong {
    color: #1a1a1a;
}

.tags-links a {
    display: inline-block;
    padding: 5px 15px;
    background: #f1f3f5;
    color: #555;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.tags-links a:hover {
    background: linear-gradient(135deg, #ff007f, #00d4ff);
    color: #fff;
    box-shadow: 0 5px 15px rgba(255, 0, 127, 0.3);
}

.post-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-text {
    font-weight: bold;
    color: #1a1a1a;
}

.social-share-icons {
    display: flex;
    gap: 10px;
}

.share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Reusing the vibrant gradient border logic */
.share-icon::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(135deg, #ff007f, #8e2de2, #00d4ff);
    z-index: -1;
    border-radius: 50%;
    animation: gradientBorder 3s ease infinite;
}

.share-icon::after {
    content: '';
    position: absolute;
    top: 2px; left: 2px; right: 2px; bottom: 2px;
    background: #fff;
    z-index: -1;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.share-icon i {
    background: linear-gradient(135deg, #ff007f, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.share-icon:hover::after {
    background: transparent;
}

.share-icon:hover i {
    -webkit-text-fill-color: #fff;
}

.share-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(142, 45, 226, 0.4);
}

/* Post Navigation (Prev/Next) */
.post-navigation-wrapper {
    margin-bottom: 50px;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-previous, .nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

.nav-links a {
    display: block;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
}

.nav-links a:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.15);
    border-color: rgba(255, 0, 127, 0.2);
}

.nav-subtitle {
    display: block;
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-weight: bold;
}

.nav-subtitle i {
    color: #00d4ff;
}

.nav-title {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.nav-links a:hover .nav-title {
    color: #ff007f;
}

/* Responsive adjustments for single post */
@media (max-width: 768px) {
    .single-article-card {
        padding: 30px 20px;
    }
    .entry-title {
        font-size: 32px;
    }
    .post-thumbnail {
        margin: 20px -20px 30px -20px;
    }
    .entry-content {
        font-size: 16px;
    }
    .nav-links {
        flex-direction: column;
    }
    .nav-next {
        text-align: left;
    }
}

/* =========================================
   Support Pages Navigation (4 Boxes)
   ========================================= */
.support-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.support-nav-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    overflow: hidden;
    z-index: 1;
}

.support-nav-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,0,127,0.05), rgba(0,212,255,0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.support-nav-box:hover, .support-nav-box.active {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: rgba(0,212,255,0.3);
}

.support-nav-box:hover::before, .support-nav-box.active::before {
    opacity: 1;
}

.support-nav-box.active {
    border-color: #00d4ff;
    box-shadow: 0 10px 25px rgba(0,212,255,0.2);
}

.support-nav-icon {
    font-size: 32px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ff007f, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.support-nav-box:hover .support-nav-icon, .support-nav-box.active .support-nav-icon {
    transform: scale(1.15);
}

.support-nav-title {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.support-nav-box:hover .support-nav-title, .support-nav-box.active .support-nav-title {
    color: #00d4ff;
}

.support-nav-desc {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 992px) {
    .support-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .support-nav-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Gallery Pages (Coser, Korean, Korean KBJ)
   ========================================= */
.gallery-grid-4x10 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.gallery-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* UI UX Pro Max Effect: Glow Border on Hover */
.gallery-card::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(135deg, #ff007f, #00d4ff, #8e2de2);
    background-size: 200% 200%;
    z-index: -1;
    border-radius: 22px;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: gradientBorder 3s ease infinite;
}

.gallery-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.gallery-card:hover::before {
    opacity: 1;
}

.gallery-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 130%; /* Aspect ratio for portrait images */
    overflow: hidden;
}

.gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-card:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.view-btn {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-card:hover .view-btn {
    transform: translateY(0);
}

.view-btn:hover {
    background: #ff007f;
    border-color: #ff007f;
}

.gallery-info {
    padding: 25px 20px;
    background: #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.gallery-name {
    font-size: 20px;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.verified-icon {
    color: #00d4ff;
    font-size: 16px;
}

.gallery-story {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive adjustments for gallery */
@media (max-width: 1200px) {
    .gallery-grid-4x10 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .gallery-grid-4x10 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-grid-4x10 {
        grid-template-columns: 1fr;
    }
}
