.itopplus-background {

}
/* =================================
   BASE STYLES
   ================================= */

a {
    color: #262626;
}

a:hover {
    color: #c4121b;
}

body {
    line-height: 1.0;
    margin-top: 0px;
}

/* Typography */
p {
    line-height: 1.0;
    margin: 0 0 5px;
    word-wrap: break-word;
}

.h3, h3 {
    font-weight: bold;
    color: #c3131d;
    font-size: 28px !important;
}

.h4, h4 {
    font-size: 22px;
    color: #c4131c;
    font-weight: bold;
}


/* =================================
   NAVBAR STYLES
   ================================= */
.navbar-default {
    position: fixed !important; 
    top: 0; 
    left: 0; 
    width: 100%;
    background: rgba(0, 0, 0, 0.95) !important;
    border: 0 solid #dbdbdb;
}
.navbar-default .navbar-nav > li > a {
    color: #ffffff;
    font-size: 24px;
}

.navbar-default .navbar-toggle {
    border-color: transparent;
}

.dropdown-menu > li > a {
    color: #262626;
    font-size: 20px;
}


/* =================================
   THUMBNAIL / IMAGE STYLES
   ================================= */

.thumbnail,
.img-thumbnail {
    background-color: transparent;
    border-radius: 0 !important;
    border: 0 solid rgba(255, 255, 255, .15);
    padding: 0;
    -webkit-box-shadow: 0 0 0 rgba(0, 0, 0, .075);
    box-shadow: 0 0 0 rgba(0, 0, 0, .075);
}

.thumbnail:hover {
    border-radius: 0 !important;
    box-shadow: 0 0 10px #585858;
    background: #c4121b;
    color: #fff;
}

figure.effect-jazz {
    background: transparent;
}

figure.effect-jazz figcaption::after {
    border-top: 0 solid #fff;
    border-bottom: 0 solid #fff;
}


/* =================================
   PRODUCT STYLES
   ================================= */

.pi2 {
    background: transparent;
    padding: 5px;
    height: 85px;
}

.pi2:hover {
    background: #c4121b;
    color: #fff;
}


/* =================================
   CONTENT MANAGER
   ================================= */

.Contentmanager .caption {
    display: flex;
    flex-direction: column;
    height: 185px !important;
    overflow: hidden;
    color: #262626;
    font-size: 22px;
    font-weight: bold;
    padding-top: 10px;
    justify-content: center;
    position: relative; 
    z-index: 1; 
}

.Contentmanager .caption:hover {
    color: #c4141d;
}
.Contentmanager .title {
    font-size: 36px !important;
    font-weight: bold !important;
}
.col-md-6.item.-micro {
    position: relative;
    transition: all 0.5s ease;
    overflow: hidden; 
}
.col-md-6.item.-micro::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-image: linear-gradient(
        to right, 
        rgba(255, 0, 0, 0.08),
        transparent
    );
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    z-index: 0; 
}

.col-md-6.item.-micro:hover::before {
    opacity: 1;
}
.Contentmanager .site .col-section .item.-micro a .image  {
    position: relative; 
    z-index: 1; 
}
.Contentmanager .template1 .padding-md {
    padding: 10px !important;
    margin-bottom: 30px;
}

#Contentmanager .post-time {
    font-size: 18px;
    color: #666;
}

#Contentmanager .col-md-6.pull-left {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.landingpagemanager {
    display: none;
}

.Textmanager.font-inherit img {
    width: 100% ! IMPORTANT;
    margin: 10px 0;
}


/* =================================
   WEBBOARD / FORM STYLES
   ================================= */

.btn-sm,
.btn-group-sm > .btn {
    font-size: 18px;
}

.panel-default > .panel-heading {
    color: #c4131c;
    font-size: 22px;
    font-weight: bold;
}

.ComponentWebboard .help-block {
    font-size: 18px !important;
}

.ComponentWebboard .help {
    color: #262626;
    font-size: 18px !important;
}

input.search-query {
    font-size: 18px;
    height: 38px;
    padding-left: 35px;
}

.ui.action.input:not([class*="left action"]) > input {
    font-family: ThaiSansNeue;
}

.input-sm,
.form-horizontal .form-group-sm .form-control {
    height: 35px;
    padding: 5px 10px;
    font-size: 18px;
    line-height: 1.5;
    border-radius: 3px;
}

select.input-sm {
    height: 35px;
    line-height: 30px;
}

.form-control {
    font-size: 18px !important;
}

.form-control-feedback {
    top: 30px;
}


/* =================================
   BUTTON STYLES
   ================================= */

.btn-pdf {
    font-size: 18px;
    background-color: #c4121a;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 50px;
    transition: 0.5s;
}

.btn-pdf:hover {
    background-color: #000;
    color: #fff;
}


/* =================================
   RESPONSIVE STYLES
   ================================= */

/* Small Devices - 480px and below */
@media only screen and (max-width: 480px) {
    .row-fluid [class*=col-sm-5fix] {
        display: block;
        float: left;
        width: 100%;
    }
}

/* Tablets - 768px and below */
@media only screen and (max-width: 768px) {
    .row-fluid [class*=col-sm-5fix] {
        display: block;
        float: left;
        width: 33.33%;
    }
}

/* Desktop - 1024px and above */
@media only screen and (min-width: 1024px) {
    /* Typography Sizes */
    h1, .h1 { font-size: 2.250em; }
    h2, .h2 { font-size: 1.875em; }
    h3, .h3 { font-size: 1.500em; }
    h4, .h4 { font-size: 1.125em; }
    h5, .h5 { font-size: 0.875em; }
    h6, .h6 { font-size: 0.750em; }

    /* Center Navbar */
    .navbar .nav,
    .navbar .nav > li {
        float: none;
        display: inline-block;
        *display: inline; /* IE7 fix */
        *zoom: 1; /* hasLayout IE7 trigger */
        vertical-align: top;
    }

    #main-navbar-collapse {
        text-align: center;
    }

    /* Content Manager Template */
    .Contentmanager .template1 .template-panel {
        padding-bottom: 70%;
    }
}

/*                                 */

.col-md-3.col-sm-4.col-xs-12.padding-md.text-center {
    background: #fff;
    border-radius: 0;
    padding: 30px 20px !important;
    margin-bottom: 25px;

    /* ขอบจาง */
    border: 1px solid rgba(0, 0, 0, 0.08);

    transition: all 0.3s ease;
}

.col-md-3.col-sm-4.col-xs-12.padding-md.text-center:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.15);
}
 /*          กรอบคลุมรูป                     */ 
.imageWidth.imageGallery {
    display: inline-block;        /* ให้กรอบพอดีกับรูป */
    padding: 8px;                 /* ระยะห่างระหว่างรูปและกรอบ */
    background: #fff;             /* พื้นหลังในกรอบ */
    
    border: 1px solid rgba(0,0,0,0.1);  /* ขอบจาง */
    border-radius: 0;                      /* มุมเหลี่ยม */
    
    box-shadow: 0 0 15px rgba(0,0,0,0.05); /* เงาอ่อนมาก */
    transition: 0.3s;
}

/* Hover effect */
.imageWidth.imageGallery:hover {
    box-shadow: 0 4px 25px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}



/* PRODUCT DESCRIPTION (เหมือน dnake-global) */
.product-title {
    font-size: 22px;
    font-weight: bold;
    margin-top: 15px;
    color: #000;
}

.product-desc {
    font-size: 16px;
    color: #666;
    margin-top: 6px;
    margin-bottom: 10px;
    line-height: 1.4;
}
/* ========== PRODUCT CAPTION WITHOUT HTML ========== */
/* สไตล์*/
.section-pagination {
  display: flex;
  justify-content: flex-start;
  gap: 6px;
  margin: 25px 0;
  font-family: "Segoe UI", sans-serif;
}

.Contentmanager .site .col-section .item.-micro a .post {
    display: none;
}

/* กำหนดรูปแบบปุ่มในหน้า Product */
.button-group {
    display: flex; 
    max-width: fit-content; 
    margin: 10px auto; 
    border: 2px solid #c4141d; 
    border-radius: 8px; 
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
}

/* สไตล์สำหรับแต่ละปุ่ม */
.minimal-button {
    display: inline-block;
    padding: 10px 15px;
    margin: 0;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    min-width: 160px;
    transition: all 0.3s ease;
    
    color: #c4141d;
    background-color: #ffffff; 
    
    border-right: 1px solid #c4141d;
    border-left: none;
    border-top: none;
    border-bottom: none;
}

.minimal-button:last-child {
    border-right: none;
}
.minimal-button:hover,
.minimal-button.active { 
    color: #ffffff; 
    background-color: #c4141d; 
}
.minimal-button.current-page { 
    color: #ffffff; 
    background-color: #c4141d;
}


/* --- Responsive ปุ่มในหน้า Product สำหรับหน้าจอมือถือ --- */
@media (max-width: 800px) {
    .button-group {
        display: flex;
        flex-direction: column;  
        max-width: 100%;            
        width: 100%;
        margin: 10px auto;
        border-radius: 8px;
    }

    .minimal-button {
        display: block;
        width: 100%;         
        min-width: 0;   
        font-size: 18px;          
        padding: 10px 12px;
        border-right: none;          
        border-bottom: 1px solid #c4141d; 
        text-align: center;
    }

    .minimal-button:last-child {
        border-bottom: none;  
    }
}


.main-header-product {
    padding: 30px 0;
}

.main-header-product p span {
    color: #ffffff !important;
    font-weight: bold;
    font-size: 2.9em;
}




/* 1. การซ่อนปุ่ม (หน้าแรก, หน้าสุดท้าย, และ ถัดไปเมื่ออยู่หน้าสุดท้าย) */
ul.pagination > li:first-child,
ul.pagination > li:last-child {
    display: none !important; 
}

.pagination > li.active + li:nth-last-child(2) {
    display: none !important;
}


/* 2. การจัดให้uiอยู่ตรงกลาง  */
.pagination {
    max-width: fit-content; 
    margin: 0 auto !important; 
}

.pagination > li {
    margin: 0;
    padding: 0;
    display: inline;
}

.pagination > li > a, 
.pagination > li > span {
    display: inline-block;
    position: relative; 
    float: left;
    margin-left: -1px; /* แก้ปัญหาขอบเหลื่อมทับ */
}


/* 4. การปรับสีสัน (ตัวอักษรแดงปกติ, Hover/Active เป็นสีแดงพื้นหลัง/ขาว) */


.pagination a, 
.pagination span {
    color: #c4121b !important; 
    background-color: #ffffff !important; 
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* สไตล์เมื่อเมาส์ชี้ (ตัวอักษรเปลี่ยนเป็นสีขาว, พื้นหลังสีแดง) */
.pagination a:hover, 
.pagination span:hover {
    color: #ffffff !important; 
    background-color: #c4121b !important; 
    border-color: #c4121b !important;
}

.pagination > .active > a, 
.pagination > .active > span {
    border-color: #c4121b !important;
    background-color: #c4121b !important;
    color: #ffffff !important;
    font-weight: bold !important;
    z-index: 2;
}
/********************/

/* สำหรับจัดหน้าเเบบไทย */
.thai-title {
  font-size: 2.3em;
  color: #c4121b;
  font-weight: bold;
  margin-bottom: 1em;
  line-height: 1.2;
}

.thai-text {
  font-size: 1.45em;
  text-align: justify;
  text-justify: inter-character;
  line-height: 1.2;
  margin-bottom: 1em;
  word-spacing: 0.05em;
}
/********************/


/* สำหรับโลโก้หน้า About us */
.logo-container {
  text-align: center;
  margin: 10px 0;
  padding: 5px 0;
}

.company-logo {
  width: 300px;
  height: 200px;
  max-width: 100%; 
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain; 
}

/* สำหรับหน้าจอขนาดเล็ก (Mobile) */
@media (max-width: 768px) {
  .company-logo {
    width: 80%;
    max-width: 300px;
    max-height: 200px;
  }
}
/*********************/

