/*
    Background color:       #663300
    Title color:            #996633
    Text color:             #666666
    Text Dark color:        #333333
    Table Heading color:    #C4CDD6
    Table Alternate color:  #e5e8ed
*/

body {
  background-color: goldenrod;
  color: #8c8c8c;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 17px !important;
  font-weight: 400;
  padding: 15px;
  padding-left: max(15px, env(safe-area-inset-left));
  padding-right: max(15px, env(safe-area-inset-right));
  padding-bottom: max(15px, env(safe-area-inset-bottom));
  margin: 0;
  text-align: center;
  -webkit-text-size-adjust: 100%;
}

.tm-container {
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  justify-content: space-between;

}

.tm-main-content {
  background-color: #ffffff;
  border-radius: 1vh;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

#logo {
  display: flex;
  width: 400px; /* Adjust the width to fit your logo's size */
  height: auto; /* This ensures the image maintains its aspect ratio */
  margin: 0 auto; /* Centers the image horizontally */
  padding: 1px; /* Optional: Add padding around the logo if desired */
  align-items: center;
}

/* Replace 'logo.png' with the path to your actual logo image */
#logo img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Keeps the image within the specified dimensions */
}

#tm-intro-img-cigar {
  /* background-image: url(https://improb.com/wp-content/uploads/2019/07/best-cheap-cigars.jpg); */
  background-image: url(cigarbox.png);
  background-position: center;
  background-size: cover;
  min-height: 350px;
  border-radius: 10px 10px 0 0;
}

#tm-intro-img-main {
  background-image: url(../beardstix_banner.webp);
  background-position: center;
  background-size: cover;
  min-height: 350px;
  border-radius: 10px 10px 0 0;
}
.tm-text-white { color: white; }

.tm-page-header-container { 
  text-align: center;

}

.tm-page-header {
  display: inline-block;
  vertical-align: baseline;
  margin-top: 10px;
  margin-bottom: 15px;
  font-size: 3rem;
  font-weight: 400;
  color: goldenrod;
}

.tm-page-icon {
  display: inline-block;
  vertical-align: baseline;
  padding: 15px;
}

.tm-section-header {
  color: #996633;
  text-align: center;
  font-weight: 400;
  margin-top: 10px;
  margin-bottom: 20px;
}

.tm-section-header h2 {
  font-size: 3rem; /* Adjust this value as needed */
}

.tm-section-header h3 {
  font-size: 2.5rem; /* Adjust this value as needed */
}

.tm-section-header h4 {
  font-size: 2rem; /* Adjust this value as needed */
}

.tm-section-header p {
  font-size: 4rem  !important;
}

table {
  width: 100%;
  border-spacing: 0;
  
}

td {
  text-align: center;
  padding: 10px 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid #ccc;
}

.tm-text-left { text-align: left; }

th {
  color: #333333;
  font-weight: 400;
  font-size: 1.2rem;
  padding-left: 15px;
  padding-right: 15px;

}

tr:nth-child(odd) { background-color: #e5e8ed; }

tr.tm-tr-header {
  background-color: #c4cdd6;
  height: 50px;
}

.tm-section {
  padding-top: 20px;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 30px;
  background-color: #333;
}

.tm-section-small {
  max-width: 490px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 0;

}

.table-responsive { 
  overflow-x: auto; 
  overflow-y: scroll;
  max-height: 600px;
}
.table-responsive table {
  width: 100%;
  border-collapse: collapse;
}

p {
  font-size: 2rem;
  line-height: 1.7;
}

.tm-mb-0 { margin-bottom: 0; }
img { max-width: 100%; }
figure { margin: 0; }
figcaption { text-align: center; }

.note {
  font-size: 1rem !important;
  font-style: italic;
  color:#555
}

figcaption span {
  display: block;
  color: #333333;
  font-size: 18px;
}

.tm-item-name {
  margin-top: 20px;
  margin-bottom: 10px;
}

.tm-special-items {
  display: flex;
  margin-left: -15px;
  margin-right: -15px;
}

.tm-special-item {
  padding-left: 15px;
  padding-right: 15px;
}

hr {
  width: 60%;
  border: 0.5px solid #ccc;
  text-align: center;
}

.tm-social-icons {
  text-align: center;
  margin-top: 30px;
}

.tm-social-icons i { font-size: 2rem; }
.tm-social-link-container { display: inline-block; }

.tm-social-link {
  color: white;
  background-color: none;
  border-radius: 2px;
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 3px;
  text-decoration: none  !important;
  transition: all 0.3s ease;
}

.tm-social-link:hover { background-color: #663300; }

.tm-contact-link {
  color: #333333;
  font-weight: 600;
  text-decoration: none !important;
}

a { transition: all 0.3s ease; }
.tm-contact-link:hover { color: #808e9e; }

.tm-footer-text {
  font-size: 0.9rem  !important;
  margin-top: 30px;
  margin-bottom: 30px;
  text-align: center;
}

.tm-footer-link {
  color: #fff;
  text-decoration: none !important;
}

.tm-footer-link:hover { color: #c5ced8; }

@media (max-width: 550px) {
  .table-responsive { overflow-x: auto; overflow-y: scroll; max-height: 400px; }
  table { width: auto; }
  .tm-special-item {
    padding-left: 10px;
    padding-right: 10px;
  }
  .tm-special-items {
    margin-left: -10px;
    margin-right: -10px;
  }
  #callout h3 {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .table-responsive { overflow-x: auto; overflow-y: scroll; max-height: 400px; }
  table { width: auto; }
  .tm-special-item {
    padding-left: 5px;
    padding-right: 5px;
  }
  .tm-special-items {
    margin-left: -5px;
    margin-right: -5px;
  }
  #callout h3 {
    font-size: 1.25rem !important;
  }
}
/*iphone*/
@media (max-width: 430px) {
  #callout h3 {
    font-size: 1.25rem !important;
  }
  .table-responsive {
    overflow-x: auto;
    overflow-y: scroll;
    max-height: 420px;
  }

  table {
    width: 100%; /* Ensure table fills the container */
    border-collapse: collapse; /* Improve cell spacing */
  }

  th,
  td {
    padding: 8px; /* Increase padding for touchability */
    font-size: 14px; /* Increase font size for readability */
    white-space: nowrap; /* Prevent text wrapping by default */
    text-align: left; /* Ensure text alignment */
    border: 1px solid #ddd; /* Add border for cell separation */
  }

  th {
    background-color: #f2f2f2; /* Add background color for header cells */
    font-weight: bold; /* Make header text bold */
  }

  /* Wrap long text for certain table fields */
  td.wrap-text {
    max-width: 100px; /* Adjust maximum width as needed */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Ensure word wrapping */
  }

  .tm-special-items {
    flex-direction: column;
  }

  .tm-special-item {
    margin-bottom: 20px; /* Adjusted margin for better spacing */
  }

  figcaption p {
    margin-bottom: 0;
    line-height: 1;
  }

  #tm-intro-img-cigar,
  #tm-intro-img,
  #tm-intro-img-main {
    min-height: 120px; /* Reduced image height for better visibility */
  }

  h3 {
    font-size: 16px; /* Increased font size for better readability */
  }

  .tm-page-header,
  .tm-section-header {
    margin-top: 10px; /* Increased margin for better spacing */
    margin-bottom: 10px;
    font-size: 2rem !important; /* Increased font size for better readability */
  }

  .modern-button {
    font-size: 12px; /* Increased font size for better touchability */
    padding: 6px 10px; /* Increased padding for better touchability */
  }

  .main {
    text-align: center;
    background-color: white;
  }
}

form { display: table; }
p { display: table-row; }
label { display: table-cell; }

input {display: table-cell;}

a {
  text-decoration: none !important;
  color: inherit !important;
}

.modern-button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none  !important;
  background-color: goldenrod;
  color: #fff;
  border: none;
  border-radius: 10px;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.modern-button:hover {
  background-color: darkgoldenrod;
}

@media (prefers-color-scheme: dark) {
  body {
    color: white;
  }
  .tm-main-content, .main, .table-responsive table {
    background-color:black;
  }
  /*
  img {
    opacity: .75;
    transition: opacity .5s ease-in-out;
  }
  img:hover {
    opacity: 1;
  } */
  tr:nth-child(odd) { background-color: gray; }
}

.td-left {
  text-align: left;
}
.Input {
  position: relative;
}

.Input-text {
  display: block;
  margin: 0;
  padding: var(--inputPaddingV) var(--inputPaddingH);
  color: inherit;
  width: 100%;
  font-family: inherit;
  font-size: var(--inputFontSize);
  font-weight: inherit;
  line-height: var(--inputLineHeight);
  border: none;
  border-radius: 12px;
  transition: box-shadow var(--transitionDuration);
}

.Input-text::placeholder {
  color: #B0BEC5;
}

.Input-text:focus {
  outline: none;
  box-shadow: 0.2rem 0.8rem 1.6rem var(--colorPrimary600);
}

.Input-text2:focus {
  outline: none;
  box-shadow: 0.2rem 0.8rem 1.6rem var(--colorPrimary400);
}

.Input-label {
  display: block;
  position: absolute;
  bottom: 50%;
  left: 1rem;
  color: #fff;
  font-family: inherit;
  font-size: var(--inputFontSize);
  font-weight: inherit;
  line-height: var(--inputLineHeight);
  opacity: 0;
  transform: 
    translate3d(0, var(--labelDefaultPosY), 0)
    scale(1);
  transform-origin: 0 0;
  transition:
    opacity var(--inputTransitionDuration) var(--inputTransitionTF),
    transform var(--inputTransitionDuration) var(--inputTransitionTF),
    visibility 0ms var(--inputTransitionDuration) var(--inputTransitionTF),
    z-index 0ms var(--inputTransitionDuration) var(--inputTransitionTF);
}

.Input-text:placeholder-shown + .Input-label {
  visibility: hidden;
  z-index: -1;
}

.Input-text:not(:placeholder-shown) + .Input-label,
.Input-text:focus:not(:placeholder-shown) + .Input-label {
  visibility: visible;
  z-index: 1;
  opacity: 1;
  transform:
    translate3d(0, var(--labelTransformedPosY), 0)
    scale(var(--labelScaleFactor));
  transition:
    transform var(--inputTransitionDuration),
    visibility 0ms,
    z-index 0ms;
}

.Wrapper {
  flex: 0 0 80%;
  max-width: 100%;
}

.Title {
  margin: 0 0 var(--gutterXl) 0;
  padding: 0;
  color: #fff;
  font-size: var(--fontSizeXx);
  font-weight: 400;
  line-height: var(--lineHeightSm);
  text-align: center;
  text-shadow: -0.4rem 0.4rem 0.5rem var(--colorPrimary800);
}
.Select {
    position: relative;
}
.Select-text {
    display: block;
    margin: 0;
    padding: var(--inputPaddingV) var(--inputPaddingH);
    color: inherit;
    width: 100%;
    font-family: inherit;
    font-size: var(--inputFontSize);
    font-weight: inherit;
    line-height: var(--inputLineHeight);
    border: none;
    border-radius: 0.4rem;
    transition: box-shadow var(--transitionDuration);
}

#callout {
  display:block;
  justify-content: center;
  align-items: center;
  position: relative;
  border: 2px;
  color: white;
  background-color: #996633;
  top: 20px;
  border-radius: 10px;
  padding: 10px;
  width: 66%;
  box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.2), /* Light inner shadow */
              inset -2px -2px 5px rgba(0, 0, 0, 0.5),    /* Dark inner shadow */
              0 4px 6px rgba(0, 0, 0, 0.7);  
  margin: 0 auto; /* Centers the element */
  text-align: center;
  transition: background-color 0.3s, transform 0.3s; /* Smooth transition */
}

#callout:hover {
  /*background-color: #cc7a29; /* Lighter brown on hover */
  /*transform: scale(1.05); /* Slightly enlarges the button */
  box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.2), /* Light inner shadow */
              inset -2px -2px 5px rgba(0, 0, 0, 0.5),    /* Dark inner shadow */
              0 4px 6px rgba(0, 0, 0, 0.7);  
  transform: translateY(-2px); /* Moves the button up slightly */
}
#callout:active {
  /*box-shadow: 0 2px 4px white; /* Reduced shadow to mimic pressed button */
  transform: translateY(4px); /* Moves button down to show pressing */
}

#callout a {
  color: white;
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none; /* Removes underline from the link */

}

#callout h3 {
  color: white;
  margin-top: 0.5em;
  font-size: 1.5rem;
}
.rating {
  color: darkred;
  font-weight: bold;
}

.scale {
  display: flex;
  justify-content: space-between;
  margin: 5px 0;
}

.seal {
  vertical-align: middle;
  float: left;
}

.seal img{
  height: 250px;
  display: block;
  padding-left: 100px;
  padding-right: 10px;
}

.blink-button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none  !important;
  background-color: goldenrod;
  color: #fff;
  border: none;
  border-radius: 10px;
  transition: background-color 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.blink-button:hover {
  background-color: #e6550d;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
  animation: none; /* Stop animation on hover */
}

/* Light mode styles */
.card {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 0.5rem;
}

.card:hover {
  transform: translateY(-2.5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: left;
}

.card-title {
  font-size: 1.5rem !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow:ellipsis;
  max-width: 90%;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  color: #000; /* Dark text for light mode */
}

.card-text {
  font-size: 1rem !important;
  margin-bottom: 0.25rem;
  color: #333; /* Slightly lighter text for light mode */
}

/* Dark mode styles */
@media (prefers-color-scheme: dark) {
  .card {
    background: linear-gradient(145deg, #2c2c2c, #3a3a3a);
    border: 1px solid #555;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
  }

  .card:hover {
    transform: translateY(-2.5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
  }

  .card-title {
    color: #fff; /* Light text for dark mode */
    font-size: 1.5rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow:ellipsis;
    max-width: 90%;
    margin-bottom: 0.5rem;
    line-height: 1.2;
  }

  .card-text {
    color: #ddd; /* Light gray text for dark mode */
    font-size: 1rem !important;
  }
  #searchBox {
    background: linear-gradient(145deg, #2c2c2c, #3a3a3a);
    border: 1px solid #555;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    color: #ddd
  }
}

.section-small p {
  font-size: 1.25rem;
  text-align: center;
  display: block;
  color: #ccc;
}

#searchBox {
  width: 80%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1.5rem;
}

.card-img-top {
  width: 100%;
  max-height: 300px;
  object-position: center;
  object-fit: cover; /* Ensures the image covers the area while maintaining aspect ratio */
  margin-bottom: 10px; /* Adds some space between the image and the card content */
}


.slider {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
}

.slider:before {
  background-color: #fff;
  bottom: 4px;
  content: "";
  height: 26px;
  left: 4px;
  position: absolute;
  transition: .4s;
  width: 26px;
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Modal styles */
.modal-content {
  background-color: #555;
  border: none;
  border-radius: 10px;

  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.modal-header {
  background-color: goldenrod;
  color: white;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  padding: 1rem;
  border-color: black;
  border-width: .25rem;
}

.modal-title {
  font-weight: 600;
  font-size: 2.5rem;
}

.modal-body {
  padding: 2rem;
}

.modal-body h4 {
  color: goldenrod;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.modal-body p {
  margin-bottom: 0.5rem;
}

.modal-body strong {
  color: white;
}

/* BeardStix Rating style */
.beardstix-rating {
  color: goldenrod;
  font-size: 1.5rem;
  font-weight: bold;
}

/* Close button style */
.btn-close {
  color: black;
  opacity: 0.8;
}

.btn-close:hover {
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .modal-dialog {
      margin: 1rem;
  }
  
  .modal-body {
      padding: 1rem;
  }
}



/* Set initial height for chart containers to prevent layout shift */
.card .card-body {
  min-height: 350px !important; /* Increased from 200px to accommodate charts fully */
  position: relative;
  background-color: #444;
  padding-bottom: 25px !important; /* Added more padding at the bottom */
}

.stats-card {
  background-color: #444;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
  height: 100%;
}

.stats-card:hover {
  transform: translateY(-5px);
}

.stats-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  margin: 0;
}

.stats-text {
  font-size: 1.5rem;
  color: white;
  margin: 0;
}

canvas {
  max-width: 100%;
  will-change: transform; /* Hardware acceleration hint */
  margin-bottom: 20px !important; /* Added margin to prevent cutoff */
}

.card {
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  margin-bottom: 12px !important;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
  contain: content;
  background-color: #444;
  border: none;
}

.card-title {
  color: goldenrod;
  font-weight: 600;
  font-size: 1.3rem;
  padding: 25px 0 !important; /* Restored original padding for titles */
  margin-top: 0 !important; /* Ensure no extra margin at top */
  margin-bottom: 10px !important; /* Add some space after the title */
}

.tm-section-header {
  color: goldenrod !important;
}

.table {
  font-size: 1rem;
  color: white;
}

.table th {
  font-weight: bold;
  background-color: #555;
  font-size: 1.1rem;
  color: goldenrod;
}

.table td {
  font-size: 1rem;
  padding: 12px;
  background-color: #444;
  color: white;
}

/* Loading indicator */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(33, 33, 33, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  border: 5px solid #555;
  border-top: 5px solid goldenrod;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

.container {
  /* background-color: #333; */
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Optimize for mobile */
@media (max-width: 768px) {
  .stats-number {
      font-size: 2rem;
  }
  
  .stats-text {
      font-size: 1.2rem;
  }
  
  .card .card-body {
      min-height: 300px !important; /* Increased to ensure charts display fully */
  }
  
  .table td, .table th {
      padding: 8px;
  }
}

/* Lightbox Styles */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(5px);
  transition: opacity 0.3s ease;
  opacity: 0;
}

.lightbox-modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  border: 2px solid #555;
  transition: transform 0.3s ease;
}

.lightbox-caption {
  color: white;
  font-size: 1.2rem;
  padding: 15px;
  text-align: center;
  margin-top: 10px;
  font-weight: bold;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: -40px;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  transition: all 0.2s ease;
}

.lightbox-close:hover {
  color: goldenrod;
  transform: scale(1.1);
  background-color: rgba(0, 0, 0, 0.7);
}

/* Style for clickable image */
.cigar-photo.lightbox-trigger {
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.cigar-photo.lightbox-trigger:hover {
  transform: scale(1.05);
}

/* Loading indicator inside lightbox */
.lightbox-loader {
  border: 5px solid #555;
  border-top: 5px solid goldenrod;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -25px;
  margin-left: -25px;
  display: none;
}

@media (max-width: 768px) {
  .lightbox-content {
      max-width: 95%;
  }
  
  .lightbox-close {
      top: -35px;
      right: 0;
  }
}

.post-image {
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto 1rem;
}

/* Compact list card styles */
.rating-stars {
  font-size: 1rem;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  color: goldenrod;
}

.rating-stars strong {
  color: #ccc;
  font-size: 0.85rem;
}

.cigar-meta {
  margin: 0.25rem 0;
}

.cigar-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 1rem;
  font-size: 0.85rem !important;
  color: #aaa;
  margin: 0.5rem 0;
  text-align: left;
}

.cigar-meta-grid span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cigar-meta-grid strong {
  color: #ddd;
}

.rating-label {
  font-size: 0.9rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.25rem;
}

/* Blog post card adjustments */
.card .card-title a {
  color: inherit;
  transition: color 0.3s ease;
}

.card .card-title a:hover {
  color: goldenrod !important;
}

.card .card-title {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.3;
  padding: 0 !important;
  margin-bottom: 0.5rem !important;
}

.card .card-text {
  font-size: 0.95rem !important;
  line-height: 1.5;
  margin-bottom: 0.25rem;
}

.card .card-body {
  min-height: auto !important;
  padding: 1rem !important;
}

.post-body p {
  font-size: 1.1rem !important;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.post-body h2 {
  font-size: 1.4rem;
  color: goldenrod;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.post-body h3 {
  font-size: 1.2rem;
  color: #ddd;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.post-body ul, .post-body ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.post-body li {
  font-size: 1.1rem !important;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  color: #ccc;
}

/* Desktop (default) */
@media (min-width: 1024px) {
  .card {
    margin-left: 3rem;
    margin-right: 3rem;
  }
  
  .tm-section {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* iPad / Tablet */
@media (min-width: 769px) and (max-width: 1023px) {
  .card {
    margin-left: 2rem;
    margin-right: 2rem;
  }
  
  .tm-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .post-image {
    max-width: 250px;
  }
  
  .detail-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* iPad Mini / Small Tablet */
@media (min-width: 431px) and (max-width: 768px) {
  .card {
    margin-left: 1rem;
    margin-right: 1rem;
  }
  
  .tm-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .tm-page-header {
    font-size: 2.5rem;
  }
  
  .post-image {
    max-width: 200px;
  }
  
  .card .card-body {
    padding: 1.25rem !important;
  }
  
  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .post-body p {
    font-size: 1rem !important;
  }
  
  .post-body h2 {
    font-size: 1.3rem;
  }
}

/* iPhone / Mobile */
@media (max-width: 430px) {
  .card {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    border-radius: 8px;
  }
  
  .tm-section {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 15px;
    padding-bottom: 20px;
  }
  
  .tm-page-header {
    font-size: 1.75rem !important;
  }
  
  .card .card-body {
    padding: 1rem !important;
  }
  
  .card .card-title {
    font-size: 1.1rem !important;
    padding: 15px 0 !important;
  }
  
  .card .card-text {
    font-size: 0.85rem !important;
  }
  
  .post-image {
    max-width: 150px;
    margin-bottom: 1rem;
  }
  
  .detail-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  
  .detail-item {
    padding: 0.5rem;
  }
  
  .detail-label {
    font-size: 0.65rem !important;
  }
  
  .detail-value {
    font-size: 0.85rem !important;
  }
  
  .rating-large {
    font-size: 1.5rem;
  }
  
  .rating-large .rating-number {
    font-size: 2rem;
  }
  
  .post-body p {
    font-size: 0.95rem !important;
    line-height: 1.7;
  }
  
  .post-body h2 {
    font-size: 1.2rem;
    margin-top: 1.25rem;
  }
  
  .post-body h3 {
    font-size: 1.1rem;
  }
  
  .post-body li {
    font-size: 0.95rem !important;
  }
  
  .section-small p {
    font-size: 1rem;
  }
  
  .rating-stars {
    font-size: 1rem;
  }
  
  .cigar-meta {
    font-size: 0.8rem !important;
  }
  
  .cigar-meta span {
    display: block;
    margin-bottom: 0.25rem;
  }
  
  .badge {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.4rem;
  }
  
  .cigar-meta-grid {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
  
  .rating-stars {
    font-size: 0.9rem;
  }
  
  .rating-stars strong {
    font-size: 0.75rem;
  }
  
  .filter-bar {
    padding: 0.75rem;
    gap: 0.75rem;
  }
  
  .filter-bar select {
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem;
  }
  
  .filter-bar label {
    font-size: 0.8rem !important;
  }
  
  .modern-button {
    font-size: 0.85rem;
    padding: 8px 16px;
  }
}