/* Hero */
.knots-hero {
    background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-light) 100%);
    color: white;
    padding: 3rem 1rem 2.5rem;
    text-align: center;
}
.knots-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
.knots-hero p {
    font-size: 1rem;
    opacity: 0.85;
}
@media (min-width: 640px) {
    .knots-hero { padding: 5rem 1rem 4rem; }
    .knots-hero h1 { font-size: 2.8rem; margin-bottom: 1rem; }
    .knots-hero p { font-size: 1.2rem; }
}

/* Grid */
.knots-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 2rem 0;
}
@media (min-width: 560px) {
    .knots-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .knots-grid { grid-template-columns: repeat(3, 1fr); padding: 3rem 0; }
}

/* Card */
.knot-card {
    background: white;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.08);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.knot-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.knot-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ocean-deep);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.knot-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    cursor: zoom-in;
    transition: opacity 0.2s;
}
.knot-img:hover {
    opacity: 0.9;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.lightbox.active {
    display: flex;
}
.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.knot-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.knot-icon {
    color: var(--ocean-light);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.knot-title {
    flex: 1;
}
.knot-title h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--ocean-deep);
    margin: 0 0 2px;
    line-height: 1.3;
}
.knot-title .knot-en {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
}
.knot-title .knot-note {
    font-size: 0.75rem;
    color: #aaa;
}

.knot-use {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.5;
}
.knot-use strong {
    color: var(--ocean-deep);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 3px;
}

.knot-tip {
    font-size: 0.82rem;
    color: #666;
    background: #f0f9ff;
    border-left: 3px solid var(--ocean-light);
    padding: 0.5rem 0.75rem;
    border-radius: 0 6px 6px 0;
    line-height: 1.5;
}

.knot-3d-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ocean-deep);
    background: #e8f4fd;
    border: 1.5px solid var(--ocean-light);
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    align-self: flex-start;
}
.knot-3d-link:hover {
    background: var(--ocean-deep);
    color: white;
    border-color: var(--ocean-deep);
    text-decoration: none;
}
.knot-3d-link i { font-size: 0.75rem; }

/* Tip box */
.tip-box {
    background: linear-gradient(135deg, #e6f3ff, #d1eaff);
    border-left: 4px solid var(--ocean-light);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0 0;
}
.tip-box h3 {
    margin: 0 0 6px;
    color: var(--ocean-deep);
    font-size: 1rem;
}
.tip-box p {
    margin: 0;
    color: #334;
    line-height: 1.6;
    font-size: 0.9rem;
}
@media (min-width: 640px) {
    .tip-box { padding: 20px 24px; }
    .tip-box h3 { font-size: 1.1rem; margin-bottom: 8px; }
    .tip-box p { font-size: 1rem; }
}

/* CTA */
.knots-cta {
    background: linear-gradient(135deg, var(--ocean-deep), var(--ocean-light));
    color: white;
    text-align: center;
    padding: 2.5rem 1rem;
}
.knots-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}
.knots-cta p {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
    .knots-cta { padding: 60px 20px; }
    .knots-cta h2 { font-size: 2rem; }
    .knots-cta p { font-size: 1.1rem; margin-bottom: 28px; }
}

/* CTA buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-light {
    background: white;
    color: var(--ocean-deep);
    border: 2px solid white;
}
.btn-light:hover {
    background: transparent;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
