body {
  font-family: "Roboto", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #f0f2f5;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom scrollbar */
body::-webkit-scrollbar {
  width: 10px;
}
body::-webkit-scrollbar-track {
  background: #e0e0e0;
}
body::-webkit-scrollbar-thumb {
  background: #161d29;
  border-radius: 5px;
}
body::-webkit-scrollbar-thumb:hover {
  background: #3f0750;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  color: #161d29;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: #161d29;
  margin: 10px auto 0;
  border-radius: 2px;
  transition: width 0.3s ease;
}

h2:hover::after {
  width: 80px;
}

/* Header and Navigation Bar */
.header {
  background-color: #161d29;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 10px 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

.logo img {
  height: 45px;
  margin-right: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.company-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.5;
}

.sub-header {
  font-size: 0.6em;
  color: #dfdfdf;
  font-weight: 400;
  margin-top: 2px;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nav-links li {
  margin-left: 35px;
}

.nav-links a {
  text-decoration: none;
  color: #dfdfdf;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Banner Image Slider */
.banner-slider {
  position: relative;
  width: 100%;
  height: 680px;
  overflow: hidden;
  background: linear-gradient(to right, #161d29, #d4af37);
}

.slider-container {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
}

.slider-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.slider-image.active {
  opacity: 1;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 7px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.dot.active {
  background-color: #161d29;
  transform: scale(1.2);
}

/* Section Common Styling & Fade-in Animation */
.gold-prices-section,
.calculator-section,
.contact-section,
.services-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.gold-prices-section.visible,
.calculator-section.visible,
.contact-section.visible,
.services-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gold Prices Table */
.table-responsive {
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  background-color: #fff;
}

.gold-prices-section table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
}

.gold-prices-section th,
.gold-prices-section td {
  padding: 15px 10px;
  border: none;
  text-align: center;
  font-size: 1.1em;
  color: #333;
  white-space: nowrap;
}

.gold-prices-section th:nth-child(1) {
  background-color: #6c757d;
  color: white;
  border-top-left-radius: 10px;
}

.gold-prices-section th:nth-child(2) {
  background-color: #ffc107;
  color: #333;
}

.gold-prices-section th:nth-child(3) {
  background-color: #17a2b8;
  color: white;
}

.gold-prices-section th:nth-child(4) {
  background-color: #28a745;
  color: white;
  border-top-right-radius: 10px;
}

.gold-prices-section tbody tr {
  background-color: white;
  border-bottom: 1px solid #eee;
}

.gold-prices-section tbody tr:last-child {
  border-bottom: none;
}
.gold-prices-section tbody tr:last-child td:first-child {
  border-bottom-left-radius: 10px;
}
.gold-prices-section tbody tr:last-child td:last-child {
  border-bottom-right-radius: 10px;
}

.gold-prices-section tbody tr:hover {
  background-color: #f8f8f8;
}

.gold-prices-section tbody td:nth-child(2),
.gold-prices-section tbody td:nth-child(3) {
  font-weight: bold;
}

.disclaimer {
  font-size: 0.95em;
  color: #555;
  margin-top: 30px;
  text-align: center;
}

/* Custom Gold Price Calculator */
.calculator-form {
  max-width: 650px;
  margin: 0 auto;
  padding: 40px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background-color: #fdfdfd;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: #555;
  font-size: 1.05em;
}

.form-group input[type="number"],
.form-group input[type="date"] {
  width: calc(100% - 24px);
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 17px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: "Roboto", sans-serif;
}

.form-group input[type="number"]:focus,
.form-group input[type="date"]:focus {
  border-color: #161d29;
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.2);
  outline: none;
}

#calculatePriceBtn {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background-color: #161d29;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#calculatePriceBtn:hover {
  background-color: #3f0750;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Calculation Result Styling */
.calculation-result {
  margin-top: 30px;
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #161d29;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: none;
}

#result-header {
  display: flex;
  align-items: center;
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 2px solid #eee;
}

#result-header img {
  height: 50px;
  width: 50px;
  margin-right: 15px;
  border-radius: 8px;
}

.result-company-info {
  display: flex;
  flex-direction: column;
}

#resultCompanyName {
  font-family: "Roboto", sans-serif; 
  font-size: 20px; 
  font-weight: bold; 
  color: #161d29; 
  line-height: 1.2;
}

#resultCompanySubHeader {
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 400; 
  color: #555;
  margin-top: 2px;
}

.calculation-result.success {
  background-color: #e6ffe6;
  border-color: #a0d9a0;
  border-left-color: #28a745;
}

.calculation-result.error {
  background-color: #ffe6e6;
  border-color: #d9a0a0;
  border-left-color: #dc3545;
}

.calculation-result .result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #eee;
}

.calculation-result .main-price-row {
  border-bottom: none;
}

.calculation-result .result-label {
  font-weight: 500;
  color: #555;
  font-size: 1em;
  margin-right: 10px;
}

.calculation-result .result-value {
  font-weight: bold;
  font-size: 1.1em;
  color: #333;
  text-align: right;
}

.calculation-result.success .result-value {
  color: #28a745;
}

.calculation-result .main-price-row .result-label {
  font-size: 1.05em;
  color: #333;
}
.calculation-result.success .main-price-row .result-value {
  font-size: 1.3em;
  color: #1e7e34;
}

.calculation-result .error-message-text {
  font-weight: bold;
  font-size: 1.1em;
  text-align: center;
  width: 100%;
  color: #dc3545;
  padding: 10px 0;
}

.download-btn {
  display: block;
  width: auto;
  margin: 20px auto 0;
  padding: 10px 20px;
  background-color: #6c757d;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.download-btn:hover {
  background-color: #5a6268;
}

.download-btn i {
  margin-right: 8px;
}

/* Contact Us Section */
.contact-content, .contact-form {
  flex: 1;
}


.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: center;
}

.contact-info {
  min-width: 320px;
  background-color: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info h3,
.contact-form h3 {
  color: #161d29;
  margin-bottom: 25px;
  text-align: left;
  font-size: 1.6em;
}

.contact-info p {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  color: #555;
  font-size: 1.05em;
  line-height: 1.5;
}

.contact-info i {
  margin-right: 12px;
  color: #161d29;
  font-size: 1.1em;
  margin-top: 5px;
}

.contact-branch {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}
.contact-branch:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.contact-branch h4 {
  font-family: "Playfair Display", serif;
  color: #333;
  font-size: 1.25em;
  margin-bottom: 15px;
  text-align: left;
  padding-bottom: 0;
}
.contact-branch h4::after {
  display: none;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
  font-size: 1.05em;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: calc(100% - 24px);
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 17px;
  resize: vertical;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  border-color: #161d29;
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.2);
  outline: none;
}

.submit-btn {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background-color: #161d29;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.submit-btn:hover {
  background-color: #3f0750;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Our Services Section */
.services-section {
  padding-bottom: 60px;
}

.services-slider-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
}

.services-slider-dots {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}

.services-dot {
  height: 12px;
  width: 12px;
  background-color: rgba(184, 134, 11, 0.3);
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.services-dot.active {
  background-color: #161d29;
  transform: scale(1.2);
}

.services-slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.service-slide {
  min-width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 40px;
  background: #fdfdfd;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  padding: 30px;
}

.service-image-container {
  flex: 0 0 40%;
}

.service-image-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.service-text-container {
  flex: 1;
  text-align: left;
}

.service-text-container h4 {
  text-align: left;
  color: #161d29;
  font-size: 1.8em;
  margin-bottom: 15px;
}

.service-text-container h4::after {
  display: none;
}

.service-text-container p {
  font-size: 1.1em;
  line-height: 1.7;
  color: #555;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  color: #333;
  border: 1px solid #ddd;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  font-size: 1.2em;
  transition: all 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.slider-btn:hover {
  background-color: #161d29;
  color: white;
  border-color: #161d29;
}

.slider-btn.prev-btn {
  left: -25px;
}

.slider-btn.next-btn {
  right: -25px;
}

.burger-menu {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.bar1,
.bar2,
.bar3 {
  width: 30px;
  height: 3px;
  background-color: #fff;
  margin: 6px 0;
  transition: 0.4s;
  border-radius: 2px;
}

.change .bar1 {
  transform: rotate(-45deg) translate(-6px, 6px);
}

.change .bar2 {
  opacity: 0;
}

.change .bar3 {
  transform: rotate(45deg) translate(-6px, -6px);
}

/* Responsive adjustments */
@media (max-width: 1050px) {
  .slider-btn.prev-btn {
    left: 10px;
  }
  .slider-btn.next-btn {
    right: 10px;
  }
}

@media (max-width: 960px) {
  .service-slide {
    flex-direction: column;
    text-align: center;
  }
  .service-text-container {
    text-align: center;
  }
  .service-text-container h4 {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .service-slide {
    padding: 20px;
    gap: 20px;
  }
  .service-text-container h4 {
    font-size: 1.5em;
  }
  .service-text-container p {
    font-size: 1em;
  }

  .burger-menu {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }
  
  .navbar {
    flex-direction: column;
    padding: 15px 20px;
    position: relative;
  }
  
  .logo {
    margin-bottom: 0;
    align-self: flex-start;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    margin-top: 15px;
    background-color: #161d29;
    padding: 20px 0;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
  }
  
  .nav-links.show {
    display: flex;
  }
  
  .nav-links li {
    margin: 10px 0;
  }
  
  .nav-links a {
    display: block;
    padding: 10px;
  }
}

/* Footer */
.footer {
  background-color: #161d29; 
  color: #f4f4f4;
  padding: 40px 20px;
  text-align: center;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 0;
  padding-bottom: 0;
}

.footer p {
  margin: 0;
  font-size: 0.95em;
}

.social-links {
  margin-top: 15px;
}

.social-links a {
  color: #f4f4f4;
  font-size: 1.6em;
  margin: 0 12px;
  transition: color 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
  color: #d4af37;
  transform: translateY(-3px);
}

/* Language Switcher */
.language-switcher {
  margin-top: 15px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.flag-icon {
  width: 35px;
  height: auto;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.flag-icon:hover {
  transform: translateY(-3px) scale(1.05);
  border-color: #161d29;
}

.flag-icon.active-lang-flag {
  border: 2px solid #161d29;
  transform: scale(1.1);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.4);
}

/* Loading Indicator Styles */
.loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px;
  color: #161d29;
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
}

.loading-indicator .spinner {
  border: 4px solid rgba(184, 134, 11, 0.3);
  border-top: 4px solid #161d29;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

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

/* Content Wrapper to hide/show content */
.content-wrapper {
  display: none;
}

/* Status message for API fetch (success/error) */
.status-message {
  text-align: center;
  padding: 10px 15px;
  margin: 15px auto;
  border-radius: 6px;
  font-weight: bold;
  max-width: 80%;
  display: none;
}
.status-message.success {
  background-color: #e6ffe6;
  color: #28a745;
  border: 1px solid #a0d9a0;
}
.status-message.error {
  background-color: #ffe6e6;
  color: #dc3545;
  border: 1px solid #d9a0a0;
}

/* Responsive Design Adjustments */
@media (max-width: 768px) {
  h2 {
    margin-bottom: 30px;
  }
  h2::after {
    margin: 8px auto 0;
  }
  .navbar {
    flex-direction: column;
    padding: 15px 20px;
  }
  .logo {
    margin-bottom: 15px;
  }
  .nav-links {
    margin-top: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
  }
  .nav-links li {
    margin-left: 0;
  }
  .banner-slider {
    height: 450px;
  }

  .container {
    padding: 30px 15px;
  }

  .calculator-form,
  .contact-info,
  .contact-form {
    padding: 30px;
  }
  .contact-content {
    flex-direction: column;
    gap: 30px;
  }
  .footer .container {
    flex-direction: column;
    gap: 15px;
  }
  .language-switcher {
    order: 1;
    margin-bottom: 10px;
    margin-top: 0;
  }
  .social-links {
    order: 3;
    margin-top: 10px;
  }
  .footer p {
    order: 2;
  }

  .gold-prices-section th,
  .gold-prices-section td {
    padding: 12px 8px;
    font-size: 0.95em;
  }

  .calculation-result .result-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .calculation-result .result-value {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 18px;
  }
  .logo img {
    height: 35px;
  }
  .nav-links {
    gap: 8px 15px;
  }
  .nav-links a {
    font-size: 0.9em;
  }

  .banner-slider {
    height: 300px;
  }

  .container {
    padding: 20px 10px;
  }
  h1 {
    font-size: 2em;
  }
  h2 {
    font-size: 1.6em;
    margin-bottom: 25px;
  }
  h3 {
    font-size: 1.3em;
  }

  .calculator-form,
  .contact-info,
  .contact-form {
    padding: 20px;
  }
  .form-group input[type="number"],
  .form-group input[type="date"],
  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form textarea {
    font-size: 16px;
    padding: 10px;
    width: calc(100% - 20px);
  }
  #calculatePriceBtn,
  .submit-btn {
    font-size: 18px;
    padding: 12px 20px;
  }
  .calculation-result {
    padding: 15px;
  }
  .calculation-result .result-label,
  .calculation-result .result-value {
    font-size: 1em;
  }
  .calculation-result .main-price-row .result-value {
    font-size: 1.15em;
  }

  .gold-prices-section th,
  .gold-prices-section td {
    padding: 10px 5px;
    font-size: 0.85em;
  }

  .flag-icon {
    width: 30px;
  }
  .social-links a {
    font-size: 1.4em;
    margin: 0 10px;
  }
  .footer p {
    font-size: 0.9em;
  }
}
