/* style/news.css */

/* Variables for colors based on custom palette */
:root {
    --kimsport-primary: #11A84E;
    --kimsport-secondary: #22C768;
    --kimsport-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --kimsport-card-bg: #11271B;
    --kimsport-bg: #08160F;
    --kimsport-text-main: #F2FFF6;
    --kimsport-text-secondary: #A7D9B8;
    --kimsport-border: #2E7A4E;
    --kimsport-glow: #57E38D;
    --kimsport-gold: #F2C14E;
    --kimsport-divider: #1E3A2A;
    --kimsport-deep-green: #0A4B2C;
}

.page-news {
    font-family: Arial, sans-serif;
    color: var(--kimsport-text-main); /* Default text color for the page */
    background-color: var(--kimsport-bg); /* Default background color for the page */
}

.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--kimsport-deep-green);
}

.page-news__hero-image {
    width: 100%;
    height: 675px; /* Fixed height for desktop to maintain aspect ratio, will be responsive */
    object-fit: cover;
    display: block;
    max-width: 100%;
}

.page-news__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -150px; /* Overlap slightly for visual effect, but text is below image */
    position: relative;
    z-index: 1;
    background-color: rgba(17, 39, 27, 0.85); /* Card BG with transparency */
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--kimsport-border);
}

.page-news__main-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: var(--kimsport-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.page-news__description {
    font-size: 1.1rem;
    color: var(--kimsport-text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-news__cta-button {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
}

.page-news__btn-primary {
    background: var(--kimsport-button-gradient);
    color: var(--kimsport-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-news__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-news__btn-secondary {
    background-color: transparent;
    color: var(--kimsport-secondary);
    border: 2px solid var(--kimsport-secondary);
}

.page-news__btn-secondary:hover {
    background-color: var(--kimsport-secondary);
    color: var(--kimsport-bg);
    transform: translateY(-3px);
}

.page-news__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--kimsport-gold);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.3;
}

.page-news__section-subtitle {
    font-size: 1.1rem;
    color: var(--kimsport-text-secondary);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
}

.page-news__latest-news-section {
    padding: 60px 0;
    background-color: var(--kimsport-bg);
}

.page-news__articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-news__article-card {
    background-color: var(--kimsport-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--kimsport-border);
    display: flex;
    flex-direction: column;
}

.page-news__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-news__article-image {
    width: 100%;
    height: 225px; /* Fixed height for card image */
    object-fit: cover;
    display: block;
}

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

.page-news__card-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: bold;
}

.page-news__card-title a {
    color: var(--kimsport-text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__card-title a:hover {
    color: var(--kimsport-gold);
}

.page-news__article-date {
    font-size: 0.9rem;
    color: var(--kimsport-text-secondary);
    margin-bottom: 15px;
}

.page-news__card-excerpt {
    font-size: 1rem;
    color: var(--kimsport-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more-button {
    display: inline-block;
    color: var(--kimsport-secondary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.page-news__read-more-button:hover {
    color: var(--kimsport-gold);
}

.page-news__button-container {
    text-align: center;
    margin-top: 20px;
}

.page-news__kimsport-updates-section,
.page-news__industry-insights-section {
    padding: 80px 0;
    background-color: var(--kimsport-bg);
}

.page-news__container--flex {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-news__container--reverse {
    flex-direction: row-reverse;
}

.page-news__content-block {
    flex: 1;
}

.page-news__image-block {
    flex: 1;
    text-align: center;
}

.page-news__feature-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--kimsport-border);
}

.page-news__text-content {
    font-size: 1rem;
    color: var(--kimsport-text-secondary);
    line-height: 1.7;
    margin-bottom: 25px;
}

.page-news__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--kimsport-deep-green);
}

.page-news__cta-container {
    max-width: 900px;
}

.page-news__cta-section .page-news__section-title {
    color: var(--kimsport-gold);
}

.page-news__cta-section .page-news__description {
    color: var(--kimsport-text-main);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-news__faq-section {
    padding: 80px 0;
    background-color: var(--kimsport-bg);
}

.page-news__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-news__faq-item {
    background-color: var(--kimsport-card-bg);
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--kimsport-border);
    overflow: hidden;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--kimsport-text-main);
    cursor: pointer;
    background-color: var(--kimsport-deep-green);
    border-bottom: 1px solid var(--kimsport-divider);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-news__faq-question::-webkit-details-marker {
    display: none;
}

.page-news__faq-question:hover {
    background-color: var(--kimsport-primary);
}

.page-news__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--kimsport-gold);
}

.page-news__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--kimsport-text-secondary);
    line-height: 1.7;
    background-color: var(--kimsport-card-bg);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__hero-image {
        height: 500px;
    }
    .page-news__hero-content {
        margin-top: -100px;
    }
    .page-news__container--flex {
        flex-direction: column;
        text-align: center;
    }
    .page-news__container--reverse {
        flex-direction: column;
    }
    .page-news__image-block {
        margin-top: 30px;
    }
    .page-news__articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-news__hero-image {
        height: 300px !important;
    }
    .page-news__hero-content {
        margin-top: -50px;
        padding: 25px 15px;
    }
    .page-news__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-news__description {
        font-size: 1rem;
    }
    .page-news__cta-button {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    .page-news__section-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }
    .page-news__section-subtitle {
        font-size: 0.95rem;
    }
    .page-news__latest-news-section,
    .page-news__kimsport-updates-section,
    .page-news__industry-insights-section,
    .page-news__cta-section,
    .page-news__faq-section {
        padding: 40px 0;
    }
    .page-news__container {
        padding: 0 15px;
    }

    /* Mobile image responsive adaptation */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__image-block,
    .page-news__content-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Mobile button responsive adaptation */
    .page-news__cta-button,
    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news a[class*="button"],
    .page-news a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__button-group,
    .page-news__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column; /* Stack buttons vertically */
        overflow: hidden !important;
    }

    .page-news__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-news__faq-answer {
        padding: 15px 20px;
        font-size: 0.95rem;
    }
    .page-news__hero-section {
        padding-top: 10px !important;
    }
}