@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

/* Global Font Settings */
body {
  font-family: "Open Sans", sans-serif;
}

.open-sans-font {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Open Sans", sans-serif;
}

footer .nav-item a {
  font-family: "Open Sans", sans-serif;
  color: #667585;
}

#footer-copyright-text {
  font-size: 0.8rem;
}

hr.home-section-title-hr {
  border: 1px solid #000;
  width: 250px;
  margin: auto;
}

.hero {
  background: url("https://via.placeholder.com/1500x300/800000/ffffff?text=Chess+Banner") center center no-repeat;
  background-size: cover;
  color: white;
  padding: 60px 20px;
}

.card img {
  object-fit: cover;
  height: 150px;
}

.navbar-toggler {
  border: none;
}

.navbar-expand-md .navbar-nav .nav-link {
  color: #667585;
  font-size: 14px;
  font-weight: 500;
  padding-left: 20px;
  padding-right: 20px;
}

.navbar-expand-md .navbar-nav .nav-link:hover {
  color: #000;
}

.navbar-expand-md .navbar-nav .nav-link.active {
  color: #000;
  font-weight: bold;
}

.navbar {
  transition: all 0.3s ease;
  padding: 1.5rem 1rem;
}

.navbar a.navbar-brand img {
  transition: all 0.3s ease;
}

.navbar.shrink {
  padding: 0.5rem 1rem;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.navbar.shrink a.navbar-brand img {
  transition: all 0.3s ease;
  height: 35px !important;
}

/* Hero Section */
#hero-container {
  background-image: url("../images/poloni-banner-image-1.png");
  min-height: 490px;
  background-size: cover;
  background-position: center;
  display: flex;
  position: relative;
}

#hero-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: rgba(0, 0, 0, 0.3); */
  z-index: 0;
}

#hero-container > div {
  z-index: 1;
}

/* Media Query for medium screens */
@media screen and (max-width: 991px) {
  #poloni-logo {
    height: 100px;
  }
  
  #hero-container {
    min-height: 400px;
  }
  
  #hero-container > div {
    left: 5% !important;
    top: 100px !important;
  }
}

@media screen and (max-width: 768px) {
  #hero-container > div h2 {
    font-size: 24px !important;
  }
  
  #hero-container > div p {
    font-size: 18px !important;
  }
  
  #hero-container > div {
    left: 5% !important;
    top: 80px !important;
  }
}

/* Brand Story Section */
#brand-story-container .image_caption {
  font-size: 14px;
  color: #667585;
  margin-top: 10px;
}

/* About Section */
#about-container {
  color: #C6C7C8;
}

#about-container li {
  line-height: 1.8em;
  font-weight: 300;
  font-size: 20px;
  list-style-type: disc;
  margin-bottom: 8px;
}

/* Icons Section */
#icons-container h4 {
  margin-top: 12px;
  font-size: 20px;
  color: #667585;
}

#icons-container p {
  font-size: 16px;
  color: #a8a8a8;
}

#icons-container img {
  transition: transform 0.3s ease;
}

#icons-container img:hover {
  transform: scale(1.1);
}

/* Call to Action Section */
#text-block-2 {
  background-color: #628414;
}

#text-block-2 p {
  color: #fff;
  font-size: 28px;
  font-weight: 200;
  line-height: 2em;
  text-align: center;
}

@media screen and (max-width: 768px) {
  #text-block-2 p {
    font-size: 20px;
    line-height: 1.6em;
  }
}

/* Links */
a h5 {
  text-decoration: none !important;
}

/* Pricing Section */
#price-container {
  padding: 40px 0;
  margin-top: 20px;
}

#price-container h2 {
  font-size: 28px;
  font-weight: 300;
  color: #000;
}

#price-container p {
  font-size: 28px;
  font-weight: 200;
  color: #393939;
}

#price-container p span {
  font-weight: 400;
  color: #000;
}

/* Order Section */
#order-container h2 {
  font-size: 40px;
  margin-top: 10px;
}

#order-container input[type="text"],
#order-container input[type="number"],
#order-container input[type="email"],
#order-container input[type="tel"] {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 10px;
  background-color: #F1F1F1;
  transition: all 0.3s ease;
}

#order-container input:focus,
#order-container select:focus {
  background-color: #fff;
  border-color: #046A38;
  box-shadow: 0 0 0 0.2rem rgba(4, 106, 56, 0.25);
  outline: none;
}

/* Select styling */
#order-container select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 10px;
  background-color: #F1F1F1;
  transition: all 0.3s ease;
}

/* Form Button */
#order-form .btn {
  background-color: #046A38;
  color: #fff;
  font-size: 16px;
  padding: 12px 30px;
  border-radius: 18px;
  border: none;
  transition: all 0.3s ease;
}

#order-form .btn:hover {
  background-color: #035a2f;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#order-form .btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

#order-note {
  color: #787878;
  font-style: italic;
}

/* Quantity Input Styling */
.qty_input_container {
  width: 16.66666667%;
  align-items: center;
  justify-content: space-between;
}

.qty_input_container .qty_input {
  width: 80%;
  text-align: center;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-weight: 500;
}

.qty_input:focus {
  background-color: #fff !important;
}

.qty_label {
  width: 16.66666667%;
  text-align: right;
  font-weight: 500;
}

/* Stock Display Styling */
#stock-uk5,
#stock-uk6,
#stock-uk7 {
  font-size: 14px;
  font-weight: 500;
  padding: 4px 8px;
  text-align: center;
}

/* Message Alert Styles */
#message-alert {
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 20px;
  padding: 15px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#message-alert.alert-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

#message-alert.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

/* Form Button Loading State */
#submit-btn .spinner-border-sm {
  width: 1rem;
  height: 1rem;
  margin-left: 8px;
}

/* Form Table Responsive */
@media (max-width: 768px) {
  #order-table {
    font-size: 14px;
  }
  
  #order-table td {
    padding: 8px 4px !important;
  }
  
  .qty_label {
    font-size: 12px;
  }
  
  #order-container h2 {
    font-size: 28px;
  }
  
  #price-container h2,
  #price-container p {
    font-size: 20px;
  }
}

/* Footer */
footer {
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
}

footer img {
  transition: opacity 0.3s ease;
}

footer img:hover {
  opacity: 0.8;
}

/* Additional Responsive Improvements */
@media (max-width: 576px) {
  #brand-story-container p {
    font-size: 18px !important;
    padding: 0 10px !important;
  }
  
  #about-container li {
    font-size: 16px;
  }
  
  #icons-container h4 {
    font-size: 16px;
  }
  
  #icons-container p {
    font-size: 14px;
  }
}