html { scroll-behavior: smooth; }

    img.hd-logo {
      width: 64px;
      height: auto;
      padding-top: 6px;
    }

    img.hd-logo._mobile {
      width: 48px;
    }

    .main-nav-area .nav {
      padding-left: 16px;
    }

    .share-icon {
      background: url(https://static.ch7on.com/images/theme2018/social-icon.png) no-repeat scroll center center transparent;
      display: inline-block;
      height: 40px;
      width: 40px;
      -webkit-transition: all 0.3s ease;
      -moz-transition: all 0.3s ease;
      transition: all 0.3s ease;
      margin-left: 10px;
    }

    .fb {
      background-position: 0 0;
    }

    .tw {
      background-position: -55px 0 !important;
    }

    .tw:hover {
      background-position: -55px -40px !important;
    }

    .hilight-area {
      float: left;
      width: 100%;
      margin: 0;
      margin-top: 16px;
    }

    .multi-area p {
      line-height: 1em;
    }

    .social-link {
      padding: 10px 15px;
    }

    .social-link li {
      padding: 20px 10px;
    }

    .social-link p {
      padding: 0 10px;
    }

    .social-link h2,
    .application h2 {
      margin: 0 10px;
      padding: 10px 0;
    }

    .application p {
      padding: 10px;
    }

    @media (min-width: 768px) {

      .social-link,
      .social-link p,
      .social-link li {
        padding: 10px;
      }
    }

    /* Mobile Responsive Fixes */
    @media (max-width: 767px) {
        .fanpage-card {
            margin: 0 auto 30px auto !important;
            align-items: center !important;
            text-align: center !important;
            width: 100% !important;
            max-width: 350px !important;
        }
        .fb-hero-banner h1 {
            font-size: 50px !important;
        }
    }

/* CSS for the FB landing page */
    .fb-landing-bg {
        background-color: #3553a9;
        padding-top: 30px;
        padding-bottom: 120px;
        font-family: 'Noto Sans Thai', sans-serif;
        float: left;
        width: 100%;
        clear: both;
    }
    .fb-hero-banner {
        text-align: center;
        padding: 70px 0 30px 0;
    }
    .fb-hero-banner img {
        border: none !important;
        box-shadow: none !important;
        -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
        mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    }
    .fb-hero-arrow {
        color: #fff;
        font-size: 60px;
        opacity: 0.8;
        margin-top: 40px;
        margin-bottom: 80px;
        display: inline-block;
    }

    .fb-fanpage-title {
        text-align: center;
        color: #FFFF00;
        margin-top: 20px;
        margin-bottom: 15px;
        font-weight: bold;
        font-size: 32px;
    }
    .fb-fanpage-desc {
        text-align: center;
        color: #fff;
        font-size: 16px;
        margin-bottom: 80px;
        font-weight: bold;
    }
    .fanpage-card {
        margin-bottom: 60px;
        color: #fff;
    }
    .fanpage-card-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        background-color: rgba(0,0,0,0.1);
        margin-bottom: 15px;
        border: 1px solid rgba(255,255,255,0.3);
        border-radius: 4px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        cursor: pointer;
        transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    }
    .fanpage-card-image:hover {
        transform: scale(1.03) translateY(-2px);
        box-shadow: 0 8px 16px rgba(0,0,0,0.4);
        border-color: rgba(255,255,255,0.8);
    }
    .fanpage-card-title {
        font-size: 16px;
        font-weight: bold;
        margin: 0 0 5px 0;
        color: #fff;
    }
    .fanpage-card-desc {
        font-size: 11px;
        line-height: 1.4;
        height: 35px;
        overflow: hidden;
        margin-bottom: 15px;
        color: rgba(255,255,255,0.8);
    }
    .fanpage-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .btn-view {
        border: 1px solid #fff;
        color: #fff;
        border-radius: 20px;
        padding: 4px 25px;
        background: transparent;
        font-size: 12px;
        text-transform: uppercase;
        text-decoration: none;
    }
    .btn-view:hover {
        background: rgba(255,255,255,0.2);
        color: white;
        text-decoration: none;
    }
    .btn-follow {
        border: none;
        color: #fff;
        border-radius: 3px;
        background: #1877f2;
        padding: 4px 12px;
        font-size: 12px;
        text-decoration: none;
    }
    .btn-follow i {
        margin-right: 5px;
    }
    .btn-follow:hover {
        background: #166fe5;
        color: #fff;
        text-decoration: none;
    }

    /* Mobile Responsive Fixes */
    @media (max-width: 767px) {
        .container {
            padding-left: 10px !important;
            padding-right: 10px !important;
        }
        .col-xs-6 {
            padding-left: 5px !important;
            padding-right: 5px !important;
        }
        .fanpage-card {
            margin: 0 auto 20px auto !important;
            padding: 10px !important;
            min-height: auto !important;
        }
        .fanpage-card-title {
            font-size: 14px !important;
            height: auto !important;
            margin-bottom: 8px !important;
        }
        .fanpage-card-desc {
            font-size: 11px !important;
            line-height: 1.4em !important;
            max-height: 2.8em !important; /* 1.4em * 2 lines */
            margin-bottom: 15px !important;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .fb-hero-banner h1 {
            font-size: 40px !important;
        }
        .btn-view, .btn-follow {
            padding: 4px 8px !important;
            font-size: 10px !important;
        }
    }
