﻿/* Article Detail Styles */
    .article-detail-container {
      position: relative;
      width: 100%;
      background: #FFFFFF;
    }

    .article-hero {
      position: relative;
      width: 100vw;
      height: 70vh;
      min-height: 500px;
      margin-left: calc(-50vw + 50%);
      margin-top: 0;
      background: url('../images/arcDe_1.jpg') center/cover;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .article-title-box {
      position: absolute;
      bottom: -70px;
      left: 50%;
      transform: translateX(-50%);
      width: 700px;
      max-width: 85%;
      background: #FFE600;
      border: 1px solid #F7F7F7;
      box-shadow: 0px 1px 40px rgba(0, 0, 0, 0.25);
      border-radius: 12px;
      padding: 30px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      z-index: 5;
    }

    .article-detail-container .article-title {
      font-family: 'DindanMai';
      font-weight: 900;
      font-size: 28px;
      line-height: 1.3;
      color: #333333;
      margin: 0;
      text-align: center;
    }
  
    .breadcrumb-wrapper {
      background: #FFFFFF;
      padding: 20px 60px 30px;
      margin: 0;
    }

    .breadcrumb-nav {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      cursor: pointer;
      transition: all 0.3s ease;
      padding: 0;
    }

    .breadcrumb-nav:hover {
      opacity: 0.7;
    }

    .breadcrumb-text {
      font-family: 'AttenNew';
      font-weight: 700;
      font-size: 36px;
      line-height: 100%;
      letter-spacing: 0.5px;
      color: #9EA3A6;
      margin: 0;
    }

    .breadcrumb-icon {
      width: 20px;
      height: 20px;
      opacity: 1;
      filter: brightness(0) saturate(100%) invert(64%) sepia(8%) saturate(389%) hue-rotate(175deg) brightness(96%) contrast(89%);
    }

    .article-content {
      max-width: 700px;
      margin: 0 auto;
      padding: 100px 20px 80px;
    }

    .article-date {
      font-family: 'DindanMai';
      font-weight: 400;
      font-size: 20px;
      line-height: 22px;
      color: #000000;
      margin-bottom: 25px;
    }

    .article-text {
      font-family: 'DindanMai';
      font-weight: 400;
      font-size: 20px;
      line-height: 29px;
      color: #2D2E2E;
      margin-bottom: 10px;
    }

    .article-images {
      width: 100vw;
      height: 400px;
      margin: 50px 0 50px calc(-50vw + 50%);
      display: flex;
      gap: 0;
      overflow: hidden;
    }

    .article-image {
      flex: 1;
      height: 400px;
      background-size: cover;
      background-position: center;
      transition: transform 0.3s ease;
    }

    .article-image:hover {
      transform: scale(1.05);
      z-index: 2;
    }

    .article-image:nth-child(1) {
      background-image: url('../images/arcDe_2.jpg');
    }

    .article-image:nth-child(2) {
      background-image: url('../images/arcDe_3.jpg');
    }

    .article-image:nth-child(3) {
      background-image: url('../images/arcDe_4.jpg');
    }

    .share-section {
      margin-top: 40px;
      margin-bottom: 0px;
    }

    .share-text {
      font-family: 'DindanMai';
      font-weight: 400;
      font-size: 20px;
      line-height: 22px;
      color: #000000;
      margin-bottom: 32px;
    }

    .social-share-buttons {
      display: flex;
      gap: 30px;
    }

    .social-btn {
      width: 56px;
      height: 56px;
      background: #F7F7F7;
      border-radius: 400px;
      display: flex;
      justify-content: center;
      align-items: center;
      text-decoration: none;
      transition: all 0.3s ease;
    }

    .social-btn:hover {
      background: #333333;
    }

    .social-btn img {
      width: 20px;
      height: 20px;
    }

    .social-btn svg {
      width: 20px;
      height: 20px;
      fill: #262424;
    }

    .social-btn:hover svg {
      fill: #ffffff;
    }

    /* Responsive Design */
    /* Desktop Large (1400px+) */
    @media (min-width: 1400px) {
      .article-content {
        max-width: 800px;
        padding: 120px 20px 100px;
      }
      
      .article-title-box {
        width: 800px;
        padding: 35px;
      }
      
      .article-detail-container .article-title {
        font-size: 32px;
      }
      
      .article-text {
        font-size: 22px;
        line-height: 32px;
      }
    }

    /* Tablet Landscape (992px - 1199px) */
    @media (max-width: 1199px) {
      .article-content {
        max-width: 650px;
        padding: 100px 20px 80px;
      }
      
      .article-title-box {
        width: 650px;
        max-width: 85%;
        padding: 28px;
        bottom: -60px;
      }
      
      .article-detail-container .article-title {
        font-size: 26px;
        line-height: 1.3;
      }
      
      .breadcrumb-wrapper {
        padding: 20px 40px 25px;
      }
      
      .breadcrumb-nav {
        gap: 10px;
      }
      
      .article-text {
        font-size: 19px;
        line-height: 28px;
      }
      
      .article-date {
        font-size: 19px;
        line-height: 21px;
      }
    }

    /* Tablet Portrait (768px - 991px) */
    @media (max-width: 991px) {
      .article-hero {
        height: 60vh;
        min-height: 450px;
      }
      
      .article-content {
        max-width: 600px;
        padding: 110px 24px 70px;
      }
      
      .article-title-box {
        width: 600px;
        max-width: 88%;
        padding: 24px;
        bottom: -55px;
      }
      
      .article-detail-container .article-title {
        font-size: 24px;
        line-height: 1.3;
      }
      
      .breadcrumb-wrapper {
        padding: 20px 30px 20px;
      }
      
      .breadcrumb-nav {
        gap: 10px;
      }
      
      .breadcrumb-text {
        font-size: 15px;
      }
      
      .breadcrumb-icon {
        width: 18px;
        height: 18px;
      }
      
      .article-text {
        font-size: 18px;
        line-height: 27px;
      }
      
      .article-date {
        font-size: 18px;
        line-height: 20px;
      }
      
      .article-images {
        height: 350px;
      }
      
      .article-image {
        height: 350px;
      }
    }

    /* Mobile Large (576px - 767px) */
    @media (max-width: 767px) {
      .article-hero {
        height: 55vh;
        min-height: 400px;
      }
      
      .article-content {
        max-width: 100%;
        padding: 90px 24px 60px;
      }
      
      .article-title-box {
        width: 90%;
        max-width: 500px;
        padding: 22px;
        bottom: -50px;
      }
      
      .article-detail-container .article-title {
        font-size: 22px;
        line-height: 1.3;
      }
      
      .breadcrumb-wrapper {
        padding: 20px 24px 18px;
      }
      
      .breadcrumb-nav {
        gap: 8px;
      }
      
      .breadcrumb-text {
        font-size: 14px;
      }
      
      .breadcrumb-icon {
        width: 16px;
        height: 16px;
      }
      
      .article-text {
        font-size: 17px;
        line-height: 26px;
      }
      
      .article-date {
        font-size: 17px;
        line-height: 19px;
      }
      
      .article-images {
        height: 300px;
        margin: 40px 0 40px calc(-50vw + 50%);
      }
      
      .article-image {
        height: 300px;
      }
      
      .share-section {
        margin-top: 30px;
      }
      
      .social-share-buttons {
        gap: 24px;
      }
      
      .social-btn {
        width: 52px;
        height: 52px;
      }
    }

    /* Mobile Medium (480px - 575px) */
    @media (max-width: 575px) {
      .article-hero {
        height: 50vh;
        min-height: 350px;
      }
      
      .article-content {
        padding: 80px 20px 50px;
      }
      
      .article-title-box {
        width: 92%;
        padding: 20px;
        bottom: -45px;
      }
      
      .article-detail-container .article-title {
        font-size: 20px;
        line-height: 1.3;
      }
      
      .article-text {
        font-size: 16px;
        line-height: 25px;
      }
      
      .article-date {
        font-size: 16px;
        line-height: 18px;
        margin-bottom: 20px;
      }
      
      .article-images {
        height: 250px;
        margin: 35px 0 35px calc(-50vw + 50%);
      }
      
      .article-image {
        height: 250px;
      }
      
      .share-text {
        font-size: 18px;
        margin-bottom: 24px;
      }
      
      .social-share-buttons {
        gap: 20px;
        flex-wrap: wrap;
      }
      
      .social-btn {
        width: 48px;
        height: 48px;
      }
      
      .social-btn svg {
        width: 18px;
        height: 18px;
      }
    }

    /* Mobile Small (375px - 479px) */
    @media (max-width: 479px) {
      .article-hero {
        height: 45vh;
        min-height: 320px;
      }
      
      .article-content {
        padding: 70px 16px 40px;
      }
      
      .article-title-box {
        width: 94%;
        padding: 18px;
        bottom: -40px;
      }
      
      .article-detail-container .article-title {
        font-size: 18px;
        line-height: 1.3;
      }
      
      .breadcrumb-wrapper {
        padding: 20px 20px 16px;
      }
      
      .breadcrumb-text {
        font-size: 13px;
      }
      
      .breadcrumb-icon {
        width: 14px;
        height: 14px;
      }
      
      .article-text {
        font-size: 15px;
        line-height: 24px;
      }
      
      .article-date {
        font-size: 15px;
        line-height: 17px;
      }
      
      .article-images {
        height: 220px;
        margin: 30px 0 30px calc(-50vw + 50%);
      }
      
      .article-image {
        height: 220px;
      }
      
      .share-section {
        margin-top: 25px;
      }
      
      .share-text {
        font-size: 16px;
        margin-bottom: 20px;
      }
      
      .social-share-buttons {
        gap: 16px;
      }
      
      .social-btn {
        width: 44px;
        height: 44px;
      }
      
      .social-btn svg {
        width: 16px;
        height: 16px;
      }
    }

    /* Mobile Extra Small (below 375px) */
    @media (max-width: 374px) {
      .article-hero {
        min-height: 300px;
      }
      
      .article-content {
        padding: 65px 14px 35px;
      }
      
      .article-title-box {
        padding: 16px;
      }
      
      .article-detail-container .article-title {
        font-size: 17px;
      }
      
      .article-images {
        height: 200px;
      }
      
      .article-image {
        height: 200px;
      }
      
      .social-btn {
        width: 42px;
        height: 42px;
      }
    }



   * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      background: #FFFFFF;
      font-family: 'AttenNew', sans-serif;
      position: relative;
      width: 100%;
      min-height: 100vh;
    }

    /* Main Container */
    .article-container {
      width: 100%;
      max-width: 1920px;
      margin: 80px auto 0;
      padding: 60px 60px 40px 60px;
      background: #FFFFFF;
    }

    /* Article Header Section */
    .article-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 60px;
      margin-bottom: 40px;
      padding-top: 60px;
    }

    .article-header-left {
      flex: 0 0 auto;
      max-width: 380px;
    }

    .article-title {
      font-family: 'AttenNew';
      font-weight: 800;
      font-size: 90px;
      line-height: 0.9;
      color: #000000;
      margin-bottom: 24px;
      letter-spacing: 0px;
    }

    .article-description {
      font-family: 'AttenNew';
      font-weight: 400;
      font-size: 18px;
      line-height: 1.4;
      color: #333333;
    }

    .hero-image {
      flex: 1;
      height: 360px;
      overflow: hidden;
      position: relative;
    }

    .hero-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    /* Featured Card */
    .featured-card {
      display: flex;
      flex-direction: column;
      gap: 6px;
      padding: 28px 36px;
      background: #FFE600;
      box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.12);
      border-radius: 20px;
      max-width: 500px;
      margin-left: 500px;
      margin-right: auto;
      margin-top: -150px;
      position: relative;
      z-index: 10;
    }

    .featured-card .date {
      font-family: 'DindanMai';
      font-weight: 400;
      font-size: 14px;
      line-height: 1.4;
      color: #000000;
      margin-bottom: 4px;
    }

    .featured-card .title {
      font-family: 'DindanMai';
      font-weight: 700;
      font-size: 15px;
      line-height: 1.4;
      color: #000000;
      margin-bottom: 4px;
    }

    .featured-card .read-more {
      font-family: 'AttenNew';
      font-weight: 600;
      font-size: 16px;
      text-decoration: underline;
      color: #000000;
      cursor: pointer;
      transition: opacity 0.3s;
    }

    .featured-card .read-more:hover {
      opacity: 0.7;
    }

    /* Articles Section - Masonry Layout */
    .articles-section {
      margin-top: 50px;
      width: 100%;
    }

    .articles-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      width: 100%;
      grid-auto-rows: 10px;
    }

    /* Article Cards */
    .article-card {
      border-radius: 20px;
      overflow: hidden;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      position: relative;
    }

    .article-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.65) 100%);
      z-index: 1;
    }

    .article-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    }

    .article-card:hover::before {
      background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.15) 40%, rgba(0, 0, 0, 0.75) 100%);
    }
    .article-page-description {
      font-family: 'AttenNew';
      font-weight: medium;
      font-size: 24px;
      line-height: 1.4;
      color: #333333;
    }

    /* Masonry positioning - แต่ละการ์ดสูงไม่เท่ากัน */
    /* Card 1 - ซ้ายบน: ความสูงปานกลาง */
    .card-1 {
      grid-column: 1;
      grid-row: 1 / span 17;
      background-image: url('../images/arti_1.jpg');
      background-color: #667788;
    }

    /* Card 2 - กลางบน: สูงที่สุด */
    .card-2 {
      grid-column: 2;
      grid-row: 1 / span 20;
      background-image: url('../images/arti_2.jpg');
      background-color: #556677;
    }

    /* Card 3 - ขวาบน: เตี้ยที่สุด */
    .card-3 {
      grid-column: 3;
      grid-row: 1 / span 13;
      background-image: url('../images/arti_3.jpg');
      background-color: #778899;
    }

    /* Card 4 - ซ้ายล่าง: สั้นที่สุด */
    .card-4 {
      grid-column: 1;
      grid-row: 18 / span 19;
      background-image: url('../images/arti_4.jpg');
      background-color: #889900;
    }

    /* Card 5 - กลางล่าง: ความสูงเท่า Card 2 */
    .card-5 {
      grid-column: 2;
      grid-row: 21 / span 20;
      background-image: url('../images/arti_5.jpg');
      background-color: #e0c0ff;
    }

    /* Card 6 - ขวาล่าง: สูงมาก */
    .card-6 {
      grid-column: 3;
      grid-row: 14 / span 26;
      background-image: url('../images/arti_6.jpg');
      background-color: #998877;
    }

    /* Article Card Content */
    .article-card .content {
      position: relative;
      z-index: 2;
      padding: 24px 22px;
    }

    .article-card .content h3 {
      font-family: 'DindanMai';
      font-weight: 700;
      font-size: 15px;
      line-height: 1.5;
      color: #FFFFFF;
      text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
      transition: transform 0.3s ease;
    }

    .article-card:hover .content h3 {
      transform: translateY(-2px);
    }

    /* Responsive - Large Desktop */
    @media (min-width: 1920px) {
      .article-container {
        padding: 60px 120px 40px 120px;
      }

      .article-header {
        gap: 80px;
      }

      .article-header-left {
        max-width: 420px;
      }

      .article-title {
        font-size: 100px;
      }

      .article-description {
        font-size: 19px;
      }

      .hero-image {
        height: 500px;
      }

      .featured-card {
        max-width: 540px;
        margin-left: 550px;
        margin-right: auto;
        padding: 30px 40px;
        margin-top: -160px;
      }

      .featured-card .title {
        font-size: 16px;
      }

      .featured-card .read-more {
        font-size: 17px;
      }

      .articles-grid {
        gap: 18px;
      }

      .card-1 {
        grid-row: 1 / span 19;
      }

      .card-2 {
        grid-row: 1 / span 22;
      }

      .card-3 {
        grid-row: 1 / span 14;
      }

      .card-4 {
        grid-row: 20 / span 16;
      }

      .card-5 {
        grid-row: 23 / span 22;
      }

      .card-6 {
        grid-row: 15 / span 28;
      }

      .article-card .content h3 {
        font-size: 16px;
      }
    }

    /* Desktop */
    @media (max-width: 1600px) {
      .article-container {
        padding: 50px 50px 40px 50px;
      }

      .article-title {
        font-size: 85px;
      }

      .hero-image {
        height: 440px;
      }

      .featured-card {
        margin-left: 500px;
        margin-right: auto;
        max-width: 470px;
        margin-top: -130px;
      }
    }

    /* Tablet Landscape */
    @media (max-width: 1366px) {
      .article-container {
        padding: 40px 40px 40px 40px;
      }

      .article-header {
        gap: 50px;
      }

      .article-header-left {
        max-width: 340px;
      }

      .article-title {
        font-size: 75px;
      }

      .article-description {
        font-size: 17px;
      }

      .hero-image {
        height: 320px;
      }

      .featured-card {
        max-width: 450px;
        margin-left: 420px;
        margin-right: auto;
        margin-top: -120px;
        padding: 26px 34px;
      }

      .articles-grid {
        gap: 14px;
      }

      .card-1 {
        grid-row: 1 / span 16;
      }

      .card-2 {
        grid-row: 1 / span 18;
      }

      .card-3 {
        grid-row: 1 / span 12;
      }

      .card-4 {
        grid-row: 17 / span 18;
      }

      .card-5 {
        grid-row: 19 / span 18;
      }

      .card-6 {
        grid-row: 13 / span 25;
      }

      .article-card .content {
        padding: 22px 20px;
      }

      .article-card .content h3 {
        font-size: 14px;
      }
    }

    /* Tablet Portrait */
    @media (max-width: 1024px) {
      .article-container {
        padding: 40px 40px 40px 40px;
      }

      .article-header {
        flex-direction: column;
        gap: 30px;
        padding-top: 40px;
      }

      .article-header-left {
        max-width: 100%;
      }

      .article-title {
        font-size: 70px;
      }

      .article-description {
        font-size: 18px;
      }

      .hero-image {
        width: 100%;
        height: 300px;
      }

      .featured-card {
        margin-left: auto;
        margin-right: 0;
        max-width: 100%;
        margin-top: -55px;
      }

      .articles-section {
        margin-top: 70px;
      }

      .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
      }

      .card-1 {
        grid-column: 1;
        grid-row: 1 / span 40;
      }

      .card-2 {
        grid-column: 2;
        grid-row: 1 / span 44;
      }

      .card-3 {
        grid-column: 1;
        grid-row: 41 / span 36;
      }

      .card-4 {
        grid-column: 2;
        grid-row: 45 / span 32;
      }

      .card-5 {
        grid-column: 1;
        grid-row: 77 / span 38;
      }

      .card-6 {
        grid-column: 2;
        grid-row: 77 / span 38;
      }
    }

    /* Mobile */
    @media (max-width: 768px) {
      .article-container {
        padding: 30px 24px 40px 24px;
        margin: 70px auto 0;
      }

      .article-header {
        padding-top: 30px;
        gap: 24px;
      }

      .article-title {
        font-size: 56px;
        margin-bottom: 20px;
      }

      .article-description {
        font-size: 16px;
      }

      .hero-image {
        height: 250px;
        border-radius: 16px;
      }

      .featured-card {
        padding: 24px 30px;
        margin-top: -50px;
        border-radius: 16px;
      }

      .featured-card .date {
        font-size: 13px;
      }

      .featured-card .title {
        font-size: 14px;
      }

      .featured-card .read-more {
        font-size: 15px;
      }

      .articles-section {
        margin-top: 60px;
      }

      .articles-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
      }

      .card-1, .card-2, .card-3, .card-4, .card-5, .card-6 {
        grid-column: auto;
        grid-row: auto;
      }

      .article-card {
        border-radius: 16px;
        aspect-ratio: 16 / 9;
        width: 100%;
        height: auto;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
      }

      .article-card .content {
        padding: 20px 18px;
      }

      .article-card::before {
        background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.65) 100%);
      }
    } 