/**
 * Product Category Page Styling
 * SEO-optimized structure with awards, key points, expandable content, FAQ
 */

/* ============================================================================
   AWARDS SECTION
   ============================================================================ */

.tld-category-awards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin: 0 0 32px;
    padding: 24px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.tld-category-award {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.tld-category-award__image {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.tld-category-award__title {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    color: #404040;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .tld-category-awards {
        gap: 16px;
        margin-bottom: 24px;
        padding: 20px 16px;
    }

    .tld-category-award__image {
        width: 60px;
        height: 60px;
    }

    .tld-category-award__title {
        font-size: 10px;
    }
}

/* ============================================================================
   INTRODUCTION TEXT
   ============================================================================ */

.tld-category-intro {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 20px;
    text-align: center;
}

.tld-category-intro h2 {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.tld-category-intro p {
    font-size: 16px;
    line-height: 1.6;
    color: #404040;
    margin-bottom: 1em;
}

.tld-category-intro p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .tld-category-intro {
        margin-bottom: 32px;
        padding: 0 16px;
    }

    .tld-category-intro h2 {
        font-size: 26px;
    }

    .tld-category-intro p {
        font-size: 15px;
    }
}

/* ============================================================================
   KEY POINTS SECTION (3-image-3 layout)
   ============================================================================ */

.tld-key-points {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.tld-key-points__column--left,
.tld-key-points__column--right {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.tld-key-points__column--left {
    align-items: flex-end;
    text-align: right;
}

.tld-key-points__column--right {
    align-items: flex-start;
    text-align: left;
}

.tld-key-points__column--center {
    min-width: 300px;
    max-width: 400px;
}

.tld-key-points__center-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tld-key-point {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 350px;
}

.tld-key-points__column--left .tld-key-point {
    flex-direction: row-reverse;
}

.tld-key-point__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    object-fit: contain;
}

.tld-key-point__content {
    flex: 1;
}

.tld-key-point__heading {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 8px;
    color: #1a1a1a;
}

.tld-key-point__description {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    color: #606060;
}

/* Tablet Layout */
@media (max-width: 1024px) {
    .tld-key-points {
        grid-template-columns: 1fr;
        gap: 40px;
        margin: 48px auto;
    }

    .tld-key-points__column--center {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .tld-key-points__column--left,
    .tld-key-points__column--right {
        align-items: flex-start;
        text-align: left;
    }

    .tld-key-points__column--left .tld-key-point {
        flex-direction: row;
    }

    .tld-key-point {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .tld-key-points {
        gap: 32px;
        margin: 40px auto;
        padding: 0 16px;
    }

    .tld-key-points__column--left,
    .tld-key-points__column--right {
        gap: 24px;
    }

    .tld-key-point__icon {
        width: 40px;
        height: 40px;
    }

    .tld-key-point__heading {
        font-size: 16px;
    }

    .tld-key-point__description {
        font-size: 13px;
    }
}

/* ============================================================================
   EXPANDABLE CONTENT (Main Content + FAQ)
   ============================================================================ */

.tld-category-expandable {
    max-width: 1200px;
    margin: 60px auto 40px;
    padding: 0 20px;
}

.tld-category-expandable__details {
    border: none;
}

/* Desktop: Always open, hide summary */
@media (min-width: 769px) {
    .tld-category-expandable__details {
        display: block;
    }

    .tld-category-expandable__summary {
        display: none;
    }

    .tld-category-expandable__content {
        display: block !important;
    }
}

/* Mobile: Accordion */
@media (max-width: 768px) {
    .tld-category-expandable__summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px;
        background: #f9f9f9;
        border-radius: 8px;
        cursor: pointer;
        user-select: none;
        list-style: none;
    }

    .tld-category-expandable__summary::-webkit-details-marker {
        display: none;
    }

    .tld-category-expandable__summary h2 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        color: #1a1a1a;
    }

    .tld-category-expandable__icon {
        flex-shrink: 0;
        transition: transform 300ms ease;
    }

    .tld-category-expandable__details[open] .tld-category-expandable__icon {
        transform: rotate(180deg);
    }

    .tld-category-expandable__content {
        padding: 20px 0;
    }
}

/* ============================================================================
   MAIN CONTENT
   ============================================================================ */

.tld-category-main-content {
    margin-bottom: 48px;
}

.tld-category-main-content h2 {
    font-size: 28px;
    line-height: 1.3;
    margin: 32px 0 16px;
    color: #1a1a1a;
}

.tld-category-main-content h2:first-child {
    margin-top: 0;
}

.tld-category-main-content h3 {
    font-size: 22px;
    line-height: 1.4;
    margin: 24px 0 12px;
    color: #1a1a1a;
}

.tld-category-main-content p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 1em;
    color: #404040;
}

.tld-category-main-content ul,
.tld-category-main-content ol {
    margin: 1em 0;
    padding-left: 2em;
}

.tld-category-main-content li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

.tld-category-main-content a {
    color: #1a4a5e;
    text-decoration: underline;
}

.tld-category-main-content a:hover {
    color: #0f3040;
}

@media (max-width: 768px) {
    .tld-category-main-content h2 {
        font-size: 24px;
    }

    .tld-category-main-content h3 {
        font-size: 20px;
    }

    .tld-category-main-content p {
        font-size: 15px;
    }
}

/* ============================================================================
   FAQ SECTION
   ============================================================================ */

.tld-category-faq {
    margin-top: 48px;
}

.tld-category-faq__title {
    font-size: 28px;
    line-height: 1.3;
    margin: 0 0 32px;
    color: #1a1a1a;
    text-align: center;
}

.tld-category-faq__items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tld-faq-item {
    padding: 24px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #1a4a5e;
}

.tld-faq-item__question {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 12px;
    color: #1a1a1a;
}

.tld-faq-item__answer {
    font-size: 15px;
    line-height: 1.6;
    color: #404040;
}

.tld-faq-item__answer p {
    margin-bottom: 1em;
}

.tld-faq-item__answer p:last-child {
    margin-bottom: 0;
}

.tld-faq-item__answer a {
    color: #1a4a5e;
    text-decoration: underline;
}

.tld-faq-item__answer a:hover {
    color: #0f3040;
}

@media (max-width: 768px) {
    .tld-category-faq__title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .tld-faq-item {
        padding: 20px;
    }

    .tld-faq-item__question {
        font-size: 16px;
    }

    .tld-faq-item__answer {
        font-size: 14px;
    }
}

/* ============================================================================
   RELATED BLOG POSTS
   ============================================================================ */

.tld-category-related-blogs {
    max-width: 1200px;
    margin: 60px auto 40px;
    padding: 0 20px;
}

.tld-category-related-blogs__title {
    font-size: 28px;
    line-height: 1.3;
    margin: 0 0 32px;
    color: #1a1a1a;
    text-align: center;
}

.tld-category-related-blogs__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.tld-related-blog {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.tld-related-blog:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.tld-related-blog__image-link {
    display: block;
    overflow: hidden;
}

.tld-related-blog__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 400ms ease;
}

.tld-related-blog:hover .tld-related-blog__image {
    transform: scale(1.05);
}

.tld-related-blog__content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tld-related-blog__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 12px;
}

.tld-related-blog__title a {
    color: #1a1a1a;
    text-decoration: none;
}

.tld-related-blog__title a:hover {
    color: #1a4a5e;
}

.tld-related-blog__excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #606060;
    margin: 0 0 16px;
    flex: 1;
}

.tld-related-blog__link {
    font-size: 14px;
    font-weight: 600;
    color: #1a4a5e;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tld-related-blog__link:hover {
    color: #0f3040;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .tld-category-related-blogs {
        margin: 48px auto 32px;
        padding: 0 16px;
    }

    .tld-category-related-blogs__title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .tld-category-related-blogs__grid {
        gap: 24px;
    }

    .tld-related-blog__content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .tld-category-related-blogs__grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   RESPONSIVE UTILITIES
   ============================================================================ */

@media (max-width: 768px) {
    .tld-category-expandable {
        margin: 48px auto 32px;
        padding: 0 16px;
    }
}
