    * {
        font-family: 'Prompt', sans-serif;
    }

    body {
        background-color: #f8f9fa;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .navbar-custom {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

    .sidebar {
        background-color: white;
        border-right: 1px solid #dee2e6;
        min-height: calc(100vh - 56px);
        padding: 1.5rem 0;
        transition: all 0.3s ease;
    }

    .menu-item {
        padding: 0.75rem 1.5rem;
        border-left: 3px solid transparent;
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
        color: #333;
        display: block;
        font-weight: 500;
    }

    .menu-item:hover {
        background-color: #f8f9fa;
        border-left-color: #667eea;
        color: #667eea;
    }

    .menu-item.active {
        background-color: #e7f3ff;
        border-left-color: #667eea;
        color: #667eea;
        font-weight: 700;
    }

    .content-area {
        padding: 2rem;
        flex: 1;
    }

    .page-content {
        background: white;
        border-radius: 0.5rem;
        padding: 2rem;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
        min-height: 400px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.6;
    }

    .page-content img {
        display: inline;
        max-width: 100%;
        height: auto;
    }

    .page-content div {
        max-width: 100%;
    }

    .page-content a {
        word-wrap: break-word;
    }

    .page-content table {
        width: 100%;
        margin-bottom: 1rem;
    }

    .page-content ul,
    .page-content ol {
        margin-bottom: 1rem;
        padding-left: 2rem;
    }

    .page-content p {
        margin-bottom: 1rem;
    }

    .welcome-card {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-radius: 0.5rem;
        padding: 3rem 2rem;
        text-align: center;
        margin-bottom: 2rem;
    }

    .welcome-card h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        font-weight: 700;
    }

    .page-title {
        color: #667eea;
        margin-bottom: 1.5rem;
        border-bottom: 2px solid #667eea;
        padding-bottom: 0.5rem;
        font-weight: 700;
    }

    .main-container {
        display: flex;
        flex: 1;
    }

    @media (max-width: 768px) {
        .main-container {
            flex-direction: column;
        }

        .sidebar {
            width: 100% !important;
            min-height: auto;
            max-height: 300px;
            overflow-y: auto;
            border-right: none;
            border-bottom: 1px solid #dee2e6;
            padding: 1rem 0;
        }

        .content-area {
            padding: 1.5rem 1rem;
        }

        .page-content {
            padding: 1.5rem;
            min-height: auto;
        }

        .page-content img {
            max-width: 100% !important;
            height: auto !important;
            width: 100% !important;
        }

        .page-content div {
            font-size: 0.95rem;
        }

        .welcome-card {
            padding: 2rem 1rem;
        }

        .welcome-card h2 {
            font-size: 1.75rem;
        }

        .page-title {
            font-size: 1.25rem;
        }

        .menu-item {
            padding: 0.6rem 1rem;
            font-size: 0.95rem;
        }

        .navbar-brand {
            font-size: 1.1rem !important;
        }
    }

    @media (max-width: 576px) {
        .content-area {
            padding: 1rem;
        }

        .page-content {
            padding: 1rem;
            box-shadow: none;
            border: 1px solid #dee2e6;
            min-height: auto;
        }

        .page-content img {
            max-width: 100% !important;
            height: auto !important;
            width: 100% !important;
            margin: 0.5rem 0 !important;
        }

        .page-content div {
            font-size: 0.9rem;
            line-height: 1.4;
        }

        .page-content span {
            display: block;
            word-wrap: break-word;
        }

        .page-content a {
            font-size: 0.9rem;
            padding: 8px 15px !important;
        }

        .welcome-card {
            padding: 1.5rem 1rem;
        }

        .welcome-card h2 {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
        }

        .page-title {
            font-size: 1.1rem;
            margin-bottom: 1rem;
        }

        .menu-item {
            padding: 0.5rem 0.75rem;
            font-size: 0.9rem;
        }
    }

   .media-partners-container {
    max-width: 1000px; /* คุมความกว้างรวมไม่ให้กระจายเกินไป */
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
  }

  .media-partners-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
  }

  /* จัดกลุ่มโลโก้ทั้งหมดให้เป็น Grid เดียวกันเพื่อความเท่ากัน */
  .logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px; /* ระยะห่างที่เท่ากันทุกด้าน */
  }

  .logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    /* กำหนดขนาดกรอบที่เท่ากัน */
    width: 280px; 
    height: 120px;
    padding: 10px;
    transition: transform 0.3s ease;
  }

  .logo-item:hover {
    transform: scale(1.05);
  }

  .logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* บังคับให้โลโก้อยู่ในกรอบโดยไม่เสียสัดส่วน */
    filter: grayscale(20%); /* ปรับความเข้มให้ใกล้เคียงกัน (Optional) */
  }

  /* ปรับขนาดพิเศษสำหรับโลโก้ตัวล่างที่ยาวมาก */
  .large-partner {
    width: 100%; /* ให้ยาวเต็มบรรทัดใหม่เพื่อสร้างฐานที่สมดุล */
    max-width: 800px;
    height: 150px;
    margin-top: 20px;
  }

  @media (max-width: 600px) {
    .logo-item {
      width: 45%; /* ในมือถือให้เรียงแถวละ 2 อัน */
      height: 80px;
    }
    .large-partner {
      width: 100%;
      height: 100px;
    }
  }