@import url('/css/hero.css');

/* News Page Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    color: #111111;
    background-color: #F7F7F7;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 400;
    margin: 0;
}

.en {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
}

.news-page {
    margin-top: 100px;
    min-height: 100vh;
}

.news-content {
    margin-top: 80px;
}

/* Hero with swirl */
.hero-news {
    background: #f5f5f5;
}

/* place hero text on the right side */
.hero-news .hero-content {
    grid-column: 2;
    justify-self: end;
    text-align: right;
    margin-left: 0;
    margin-right: 30%;
}

.hero-news .hero-content h1 {
    font-size: 56px;
    letter-spacing: 8px;
    font-weight: 400;
}

.hero-news .hero-content p {
    color: #c4122f;
    font-style: italic;
    letter-spacing: 2px;
    font-weight: 400;
}

/* reduce vertical height of hero */
.hero-news {
    margin-top: 60px;
}

.hero-news .hero-container {
    gap: 24px;
    padding: 0 40px;
    height: 500px;
}

.news-content {
    padding: 0;
    background: #F7F7F7;
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5.555vw;
}

/* Layout: sidebar + list */
.sec_inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    gap: 80px;
}

/* Sidebar categories */
.news_list_category {
    flex: 0 0 auto;
    padding: 0;
}

.category_list_h {
    margin-bottom: 24px;
    font-weight: 100;
    color: #111111;
    font-size: 32px;
    font-family: "Montserrat", sans-serif;
}

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

.category_list_item {
    margin-bottom: 16px;
}

.category_list a {
    display: block;
    text-decoration: none;
    color: #111111;
    padding: 0;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    transition: color 0.2s ease;
}

.category_list a:hover {
    color: #B4001B;
}

.category_list_item.current a {
    color: #B4001B;
    font-weight: 400;
}

/* News list */
.news_list_main {
    flex: 1;
}

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

.news_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    border-top: 1px solid #B6B3B3;
    transition: background-color 0.2s ease;
    text-decoration: none;
    color: #111111;
}

.news_item:hover .news_item_main {
    color: #B4001B;
}

.news_item:last-child {
    border-bottom: 1px solid #B6B3B3;
}

.news_item li {
    flex: 1;
    padding-right: 20px;
    list-style: none;
}

.news_item_sub {
    font-size: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #111111;
}

.news_date {
    color: #111111;
    font-size: 18px;
    font-weight: 400;
}

.news_category {
    background: #B4001B;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
}

.news_item_main {
    font-size: 20px;
    line-height: 1.6;
    font-weight: 400;
    margin: 0;
    color: #111111;
}

.circle_btn {
    margin-left: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #B4001B;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
    line-height: 1;
}

.circle_btn i {
    color: #fff;
    font-size: 12px;
}

.news_item:hover .circle_btn {
    background: #fff;
    outline: 1px solid #B4001B;
    outline-offset: 2px;
}

.news_item:hover .circle_btn i {
    color: #B4001B;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: nowrap;
}

.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #e6e8eb;
    background: #fff;
    color: #495057;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination .page-link:hover:not(.active):not(.disabled) {
    border-color: #b4001b;
    color: #b4001b;
}

.pagination .page-link.active {
    background: #b4001b;
    border-color: #b4001b;
    color: #fff;
}

.pagination .page-link.disabled {
    pointer-events: none;
    opacity: 0.4;
}

.pagination .page-link span {
    font-size: 16px;
    line-height: 1;
}

.no-news {
    text-align: center;
    padding: 80px 20px;
    color: #666;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.no-news h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: #333;
    font-weight: 700;
}

/* News Detail Page Styles */
#single_post {
    margin: 160px 0 240px;
    padding: 0 5.555vw;
}

#single_post .sec_inner {
    max-width: 800px;
    margin: 0 auto;
    flex-direction: column;
    gap: 0;
}

.post_title_wrap {
    margin-bottom: 48px;
}

.post_title_sub {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.post_date {
    color: #111111;
    font-size: 18px;
    font-weight: 400;
}

.post_category {
    background: #B4001B;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
}

.post_title {
    font-size: clamp(32px, 2.777vw, 40px);
    /* color: #B4001B; */
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    padding-bottom: 24px;
    border-bottom: 1px solid #B6B3B3;
}

.post_content {
    margin-bottom: 64px;
    line-height: 1.8;
}

.post_content p {
    font-size: 16px;
    /* margin-bottom: 24px; */
    color: #111111;
}

.post_content .markdown-body {
    font-size: 16px;
    color: #111111;
    display: flex;
    flex-direction: column;
    gap: 1.4em;
    word-break: break-word;
}

.post_content .markdown-body h1,
.post_content .markdown-body h2,
.post_content .markdown-body h3,
.post_content .markdown-body h4,
.post_content .markdown-body h5,
.post_content .markdown-body h6 {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    color: #111111;
    line-height: 1.4;
    margin: 0;
}

.post_content .markdown-body h1 {
    font-size: 2rem;
}

.post_content .markdown-body h2 {
    font-size: 1.75rem;
}

.post_content .markdown-body h3 {
    font-size: 1.5rem;
}

.post_content .markdown-body h4 {
    font-size: 1.3rem;
}

.post_content .markdown-body ul,
.post_content .markdown-body ol {
    padding-left: 1.5rem;
    margin: 0;
}

.post_content .markdown-body blockquote {
    border-left: 4px solid #b4001b;
    padding-left: 1rem;
    color: #555;
    font-style: italic;
    margin: 0;
}

.post_content .markdown-body pre {
    background: #f6f8fa;
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    font-size: 0.95rem;
    line-height: 1.6;
}

.post_content .markdown-body code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

.post_content .markdown-body pre code {
    background: transparent;
    padding: 0;
}

.post_image {
    margin: 32px 0;
}

.post_image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.post_page_nav_wrap {
    text-align: center;
}

.primary_btn a {
    display: flex;
    position: relative;
    flex-direction: row;
    justify-content: space-between;
    width: 200px;
    padding-bottom: 8px;
    margin: 0 auto;
    text-decoration: none;
    color: #111111;
}

.primary_btn a::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 1px;
    left: 0;
    bottom: -0.5em;
    background: #B4001B;
    transform: scaleX(1);
    transform-origin: right center;
}

.primary_btn a span {
    font-size: 18px;
    letter-spacing: 0.05em;
    line-height: 1;
    font-family: "Montserrat", sans-serif;
}

.primary_btn a svg {
    margin-left: 8px;
}

@keyframes btnline {
    0% {
        transform: scaleX(1);
        transform-origin: right center;
    }

    50% {
        transform: scaleX(0);
        transform-origin: right center;
    }

    50.1% {
        transform: scaleX(0);
        transform-origin: left center;
    }

    100% {
        transform: scaleX(1);
        transform-origin: left center;
    }
}

.primary_btn a:hover::before {
    animation: btnline 0.5s ease-in-out;
}

@media(max-width: 767px) {
    #single_post {
        margin: 80px 0 120px;
    }
}

.no-news p {
    font-size: 1.1rem;
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* News Detail Page */
.news-detail-page {
    margin-top: 100px;
    min-height: 100vh;
}

.news-detail-hero {
    background: #f8f9fa;
    padding: 40px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb a {
    color: #b4001b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #d4002a;
}

.breadcrumb .separator {
    color: #999;
}

.breadcrumb .current {
    color: #666;
}

.news-detail-content {
    padding: 60px 0;
}

.news-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: start;
}

.news-detail-article {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.news-detail-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.news-detail-meta .news-date {
    color: #666;
    font-weight: 500;
    font-size: 16px;
}

.news-detail-meta .news-category {
    background: #b4001b;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-detail-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #333;
    line-height: 1.3;
    margin-bottom: 30px;
}

.news-detail-image {
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.news-detail-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.news-detail-body {
    line-height: 1.8;
    color: #444;
    font-size: 16px;
}

.news-detail-body h2 {
    color: #b4001b;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.news-detail-body h3 {
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 30px 0 15px;
}

.news-detail-body p {
    margin-bottom: 20px;
}

.news-detail-body ul {
    margin: 20px 0;
    padding-left: 30px;
}

.news-detail-body li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.news-detail-body strong {
    color: #b4001b;
    font-weight: 600;
}

.news-contact-info {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    border-left: 4px solid #b4001b;
}

.news-contact-info h3 {
    color: #b4001b;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.news-contact-info p {
    margin-bottom: 10px;
    font-size: 15px;
}

.news-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.tag {
    background: #e9ecef;
    color: #666;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #b4001b;
    color: white;
    cursor: pointer;
}

/* Sidebar */
.news-sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.sidebar-section h3 {
    color: #b4001b;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.related-news {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-item {
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-date {
    color: #999;
    font-size: 12px;
    margin-bottom: 8px;
    font-weight: 500;
}

.related-item h4 {
    font-size: 14px;
    line-height: 1.4;
}

.related-item a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-item a:hover {
    color: #b4001b;
}

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

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    color: #666;
    text-decoration: none;
    padding: 8px 0;
    display: block;
    transition: all 0.3s ease;
    border-radius: 6px;
    padding-left: 15px;
    border-left: 3px solid transparent;
}

.category-list a:hover {
    color: #b4001b;
    background: #f8f9fa;
    border-left-color: #b4001b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-news .hero-content h1 {
        font-size: 28px;
    }

    .news-container {
        padding: 32px 16px;
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 8px;
    }

    .news-item .arrow {
        margin: 12px 0 0;
    }

    .news-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .news-detail-article {
        padding: 20px;
    }

    .news-detail-title {
        font-size: 1.8rem;
    }

    .news-detail-image img {
        height: 250px;
    }

    .categories {
        flex: 1 1 100%;
        margin-right: 0;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .news-sidebar {
        position: static;
    }
}

@media (max-width: 480px) {
    .hero-news {
        padding: 40px 0 40px;
    }

    .news-content {
        padding: 40px 0;
    }

    .news-detail-content {
        padding: 40px 0;
    }

    .container {
        padding: 0 15px;
    }

    .news-detail-title {
        font-size: 1.5rem;
    }

    .news-detail-body h2 {
        font-size: 1.4rem;
    }
}

/* Instagram Carousel Styles */
.instagram-carousel {
    margin: 24px 0 32px;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f5f5;
}

.instagram-carousel .carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    animation: none !important;
}

.carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
    background: #000;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-arrow:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.05);
}

.carousel-arrow svg {
    color: #333;
}

.carousel-prev {
    left: 12px;
}

.carousel-next {
    right: 12px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: #bbb;
}

.carousel-dot.active {
    background: #b4001b;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .carousel-arrow {
        width: 36px;
        height: 36px;
    }

    .carousel-arrow svg {
        width: 18px;
        height: 18px;
    }

    .carousel-slide img {
        max-height: 350px;
    }
}