 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
 }

 body {
    font-family: 'Arial', sans-serif;
    background-color: #fff2fe; 
    color: #333;
    font-size: 1rem;
  }

/*LOGO BOI*/
  .logo {
    font-size: 1rem;
    font-weight: bold;
    margin-right: 15px;
  }

  .logo h1 {
    font-size: 1.5rem;
  }

  .logo a {
    text-decoration: none;
    color: #fff;
  }

  .navbar-container {
    display: flex;
    align-items: center;
  }
  
  .logo-link {
    display: flex;
    align-items: center;
  }
  
  .navbar-container img {
    max-width: 40px;
    margin-right: 10px;
  }
  
 /*nav bar mobile friendly*/
  /* Navbar Styles */
  .navbar {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
  }
  
  .navbar .navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
  }
  
  .navbar .logo {
    font-size: 1.5em;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    margin-left: 12px;
  }
  
  .navbar .menu-toggle {
    display: none;
    font-size: 1.5em;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
  }
  
  .navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    margin-right: 2px;
    /*  */
    z-index: 11;
    position: relative;
  }
  
  .navbar .nav-links a {
    text-decoration: none;
    color: #fff;
    padding: 5px 10px;
    transition: background-color 0.3s;
  }
  
  .navbar .nav-links a:hover {
    background-color: #575757;
    border-radius: 5px;
  }
  
  /* Mobile Styles */
  @media (max-width: 768px) {
    .navbar .menu-toggle {
      display: block;
    }
  
    .navbar .nav-links {
      display: none;
      flex-direction: column;
      background-color: #333;
      position: absolute;
      top: 60px;
      right: 0;
      width: 100%;
      padding: 10px 0;
    }
  
    .navbar .nav-links.active {
      display: flex;
    }

   
  }
  
  /**/
  /* CAlCulator */

  .cal {
    /* display: flex; */
    justify-content: center;
    align-items: center;
    /*  */
    z-index: 10;
    /* height: 100vh; */
    /*  */
    /* height: 100%; */
    /* min-height: 100vh; */
    position: relative; 
    /* pointer-events: auto; */
    /* height: auto; */
  }

 /*Blog*/
 .container {
    display: flex;
    max-width: 1200px;
    /* margin: 0 auto; */
    padding: 20px;
    gap: 20px;
}

/* Left Content */
.content {
    flex: 3;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* position: relative; */
}

.blog-post {
    margin-bottom: 20px;
}

.blog-post h2 {
    color: #007BFF;
    margin-bottom: 10px;
}

.blog-post h3 {
  margin: 0;
  padding: 0;
  all: ;
}

.blog-post p {
    font-size: 1rem;
    margin: 0;
    font-weight: normal;
}

.ad-space {
    background: #f0f8ff;
    border: 2px dashed #007BFF;
    color: #007BFF;
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
    font-weight: bold;
    border-radius: 8px;
}

.ad-space img {
    
}

.blog-post h3 {
    margin-top: 10px;

}

/* Profile Section */
.profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #ddd;
    margin-top: 20px;
}

.profile-pic {
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.profile-name {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

.profile a {
  text-decoration: none;
  /*  */
  /* opacity: 1;
  visibility: visible;
  pointer-events: auto;
  cursor: pointer; 
  user-select: auto;
  text-overflow: ellipsis;
  text-align: left;
  vertical-align: top; 
  float: none; 
  clear: none;
  position: static; 
  top: auto; 
  right: auto; 
  bottom: auto; 
  left: auto; 
  transform: none;
  border-width: 1px;
  outline-offset: 1px; */
  /* box-sizing: content-box;
  display: block; 
  z-index: 1; 
  resize: both; 
  text-transform: uppercase;  */
}

/* Right Sidebar */
.sidebar {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/**

.sidebar img {
    position: relative;
    width: 100%;
    height: auto;
    background-size: cover;
    border-radius: 8px;
}

/**/

.sidebar h3 {
    margin-bottom: 20px;
    color: #333;
}

.ad {
    background: #eaeaea;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    text-align: center;
    border-radius: 8px;
    font-weight: bold;
    color: #666;
}

.ad img {
    position: relative;
    width: 100%;
    height: auto;
    background-size: cover;
    border-radius: 8px;
}


.allblog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 2rem;
}

.allblog a {
  text-decoration: none;
  color: #333;
}

.blog-container {
    background: white;
    border-radius: 10px;
    max-width: 600px;
    max-height: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.blog-container img {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: cover;
}

.blog-container h2 {
    font-size: 1.5rem;
    margin: 0.5rem;
}

.blog-container p {
    font-size: 1rem;
    margin: 0.5rem;
    color: #555;
}

.blog-container .date {
    font-size: 0.8rem;
    margin: 0.5rem;
    color: #888;
    font-style: italic;
}

.other h3 {
    text-align: center;
}

/*Blog img*/
.blog-post img {
    max-width: 800px;
}

/*Share icon*/
.icon-share {
  display: flex;
  margin-top: 10px;
}

.icon-share h2 {
  margin-left: 10px;
}

.icon-share .icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 290px;
  margin-top: 5px;
}

.icon-link a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  height: 34px;
  width: 34px;
  border-radius: 50%;
  margin: 0 8px;
  transition: all 0.3 ease;
  text-decoration: none;
}


.link-1 i {
  color: #00B2FF;
  text-decoration: none;
}

.seemore p {
  text-align: center;
  align-items: center;
}

.seemore a {
  text-decoration: none;
  color: #333
  /*  */
}


@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    .controls input,
    .controls select {
        width: 150px;
    }

    #blog-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}


/**/

button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}
  /**/
  
  footer {
    /* position: fixed;
    width: 100%; */
    text-align: center;
    padding: 1rem;
    background-color: #333;
    color: white;
    position: relative;
    /*  */
    z-index: 5;
  }

  /*footer link*/
  footer a {
    color: #fff;
    text-decoration: none;
  }
  
  /* Responsive Design */
  @media (max-width: 480px) {
    .menu-toggle {
      display: block;
    }
  
    .nav-links {
      display: none;
      flex-direction: column;
      background-color: #333;
      position: absolute;
      top: 100%;
      right: 0;
      width: 200px;
    }
  
    .nav-links li {
      text-align: center;
      padding: 1rem 0;
    }
  
    .nav-links.show {
      display: flex;
    }
  
    .product {
      width: 100%;
      max-width: 300px;
    }

    .logo a {
        font-size: 16px;
    }
  
 }

 @media (max-width: 380px) {
    .menu-toggle {
        display: block;
      }
    
      .nav-links {
        display: none;
        flex-direction: column;
        background-color: #333;
        position: absolute;
        top: 100%;
        right: 0;
        width: 200px;
      }
    
      .nav-links li {
        text-align: center;
        padding: 1rem 0;
      }
    
      .nav-links.show {
        display: flex;
      }
    
      .product {
        width: 100%;
        max-width: 200px;
      }
  
      .logo a {
          font-size: 14px;
      }
    

 }

/* responsive-2 */
/* Container */
.container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    padding: 15px;
    max-width: 1200px;
    z-index: -1;
    position: relative;
    
}

.content {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

/* Blog Post */
/*.blog-post {
    flex: 1 1 calc(70% - 20px);
    margin: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}*/

.blog-post img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Paragraph */
.blog-post p {
    font-size: 1rem; /* Default size for desktop */
    /*line-height: 1.8;/*
    color: #333;
    /*margin-bottom: 15px;*/
}

/* Ad Space */
/*.ad-space {
    flex: 1 1 100%;
    margin: 10px;
    background: #f7f7f7;
    border: 1px dashed #ccc;
    text-align: center;
    padding: 15px;
}*/

/* Sidebar */
.sidebar {
    flex: 0 0 300px;
    margin: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    max-height: 100%;
}


.sidebar .ad {
    margin: 10px 0;
    text-align: center;
}

.sidebar .ad img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Profile */
.profile {
    text-align: center;
    margin: 20px 0;
}

.profile img {
    max-width: 150px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.profile-name {
    font-weight: bold;
    color: #333;
}

/* Icon Link*/
.icon-link {
    /*align-items: left;*/
    justify-content: left;
    /*display: flex;*/
    flex-wrap: wrap;
    /*justify-content: center;*/
    gap: 5px;
    margin: 0px 0;
}

.icon-link .link {
    display: inline-block;
    width: 34px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    color: #fff;
    border-radius: 50%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .blog-post {
        flex: 1 1 100%;
    }

    .ad-space {
        flex: 1 1 100%;
    }

    .sidebar {
        flex: 0 0 100%;
        margin: 10px auto;
        max-width: 400px;
    }

    .profile img {
        max-width: 100px;
    }

    .icon-link .link {
        width: 30px;
        height: 30px;
        line-height: 30px;
    }
}

@media (max-width: 480px) {
    .blog-post, .ad-space, .sidebar {
        padding: 10px;
    }


    h3 {
        font-size: 1.8rem;
    }

    h4 {
        font-size: 1.75rem;
    }

    .blog-post p {
        font-size: 1.4rem; /* Larger font for small screens */
    }

    .profile img {
        max-width: 80px;
    }

    .icon-link .link {
        width: 25px;
        height: 25px;
        line-height: 25px;
    }
}

/* ตาราง */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
thead {
  background-color: #444;
  color: white;
}
th, td {
  text-align: left;
  padding: 12px;
  border: 1px solid #666;
}
tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}
tbody tr:hover {
  background-color: #f1f1f1;
}
th {
  text-transform: uppercase;
}

.navbar-container h1 {
    font-size: 1.5rem;
    
}


/* Cookie 4 */

  /* Cookie Consent Container */
  .cookie-consent {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    /* backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1); */
    padding: 20px;
    transition: bottom 0.2s ease-in-out;
    z-index: 1000;
  }

  .cookie-content a {
    color: #00cc00;
    text-decoration: underline;
  }
  
  .cookie-consent.show {
    bottom: 0;
  }
  
  .cookie-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
  }
  
  .cookie-content p {
    margin: 0 0 15px;
    font-size: 14px;
    line-height: 1.5;
    /* color: #6e6e73; */
    color: #fff;
  }
  
  .cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
  }
  
  .cookie-button {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
  }
  
  .cookie-button.accept {
    /* background: #007aff; */
    background: #00cc00;
    color: #000;
  }
  
  .cookie-button.reject {
    /* background: transparent; */
    background: #e63946;
    color: #fff;
    /* border: 1px solid #007aff; */
  }
  
  .cookie-button.accept:hover {
    transform: scale(1.05);
    background: #009900;
  }

  .cookie-button.reject:hover {
    transform: scale(1.05);
    background: #c92c3a;
  }
  
  /* Responsive Design */
  @media (max-width: 600px) {
    .cookie-content {
      padding: 0 15px;
    }
  
    .cookie-buttons {
      flex-direction: column;
      gap: 10px;
    }
  
    .cookie-button {
      width: 100%;
    }
  }
