/* =============== COMMON STYLES - SHARED ACROSS PAGES =============== */

/* =============== BASE TYPOGRAPHY =============== */
html {
  font-family: var(--font-family-primary);
  font-size: 16px;
  line-height: var(--line-height-normal);
}

body {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-display);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-extrabold);
}

h2 {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
}

h3 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-semibold);
}

h4 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
}

h5 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
}

h6 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
}

p {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
}

a {
  font-family: var(--font-family-primary);
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-normal);
}

a:hover {
  color: var(--primary-hover);
}

strong,
b {
  font-weight: var(--font-weight-semibold);
}

em,
i {
  font-style: italic;
}

small {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
}

/* =============== NAVBAR =============== */
.navbar-custom {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: var(--border-width-thin) solid var(--border-light);
  transition: all var(--transition-normal);
  font-family: var(--font-family-secondary);
  font-weight: var(--font-weight-medium);
  z-index: var(--z-fixed);
  position: relative;
}

.navbar-custom.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

.navbar-brand-custom {
  font-family: var(--font-family-display);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xl);
  transition: all var(--transition-normal);
}

.navbar-brand-custom:hover {
  transform: scale(1.05);
}

.navbar-brand-custom img {
  filter: drop-shadow(var(--shadow-sm));
  width: 70%; /* Reduce logo size to 70% */
  height: auto;
}

.nav-item-custom {
  margin: 0 var(--spacing-sm);
  transition: all var(--transition-normal);
}

/* =============== BUTTONS =============== */
.btn-custom {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-hover)
  );
  color: var(--text-light);
  border: none;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  font-family: var(--font-family-secondary);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-button);
  position: relative;
  overflow: hidden;
  display: inline-block;
  text-align: center;
  min-width: 120px;
  transition: all var(--transition-normal);
}

.btn-custom:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-button-hover);
  color: var(--text-light);
  text-decoration: none;
}

.btn-custom:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-custom::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left var(--transition-slow);
}

.btn-custom:hover::before {
  left: 100%;
}

/* =============== BUTTON STYLES =============== */
.btn-custom {
  border: var(--border-width) solid var(--primary-color);
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  font-weight: var(--font-weight-bold);
  margin-right: var(--spacing-sm);
  font-family: var(--font-family-primary);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-button);
  position: relative;
  overflow: hidden;
  display: inline-block;
  text-align: center;
  min-width: 120px;
}

/* Make navbar buttons 1.3x larger on desktop */
@media (min-width: 768px) {
  .navbar-nav .btn-custom {
    font-size: calc(var(--font-size-small) * 1.3);
    padding: calc(var(--spacing-sm) * 1.3) calc(var(--spacing-lg) * 1.3);
    min-width: calc(120px * 1.3);
  }
}

.btn-custom:hover {
  background-color: var(--primary-hover);
  color: var(--text-light);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-button-hover);
}

.btn-custom:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(111, 163, 136, 0.3);
}

.btn-custom:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-custom::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left var(--transition-slow);
}

.btn-custom:hover::before {
  left: 100%;
}

/* =============== LAYOUT UTILITIES =============== */
.container-custom {
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  text-align: left;
  padding-top: 0;
}

.content-middle {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 90px 0;
}

.content-middle:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* =============== TYPOGRAPHY UTILITIES =============== */
.text-primary {
  color: var(--primary-color);
}

.text-dark {
  color: var(--text-dark);
}

.text-light {
  color: var(--text-light);
}

.font-primary {
  font-family: var(--font-family-primary);
}

.font-bold {
  font-weight: var(--font-weight-bold);
}

.text-center {
  text-align: center;
}

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

.text-right {
  text-align: right;
}

/* =============== SPACING UTILITIES =============== */
.margin-xs {
  margin: var(--spacing-xs);
}
.margin-sm {
  margin: var(--spacing-sm);
}
.margin-md {
  margin: var(--spacing-md);
}
.margin-lg {
  margin: var(--spacing-lg);
}
.margin-xl {
  margin: var(--spacing-xl);
}

.margin-top-xs {
  margin-top: var(--spacing-xs);
}
.margin-top-sm {
  margin-top: var(--spacing-sm);
}
.margin-top-md {
  margin-top: var(--spacing-md);
}
.margin-top-lg {
  margin-top: var(--spacing-lg);
}
.margin-top-xl {
  margin-top: var(--spacing-xl);
}

.padding-xs {
  padding: var(--spacing-xs);
}
.padding-sm {
  padding: var(--spacing-sm);
}
.padding-md {
  padding: var(--spacing-md);
}
.padding-lg {
  padding: var(--spacing-lg);
}
.padding-xl {
  padding: var(--spacing-xl);
}

/* =============== DISPLAY UTILITIES =============== */
.d-flex {
  display: flex;
}

.d-block {
  display: block;
}

.d-none {
  display: none;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.align-center {
  align-items: center;
}

.align-start {
  align-items: flex-start;
}

/* =============== POSITIONING UTILITIES =============== */
.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}

.position-fixed {
  position: fixed;
}

/* =============== BORDER UTILITIES =============== */
.border-radius-sm {
  border-radius: var(--border-radius-sm);
}

.border-radius-md {
  border-radius: var(--border-radius-md);
}

.border-radius-lg {
  border-radius: var(--border-radius-lg);
}

.border-radius-xl {
  border-radius: var(--border-radius-xl);
}

/* =============== SHADOW UTILITIES =============== */
.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.shadow-xl {
  box-shadow: var(--shadow-xl);
}

/* =============== BACKGROUND UTILITIES =============== */
.bg-primary {
  background-color: var(--primary-color);
}

.bg-light {
  background-color: var(--background-light);
}

.bg-dark {
  background-color: var(--text-dark);
}

.bg-white {
  background-color: var(--text-light);
}

/* =============== WIDTH & HEIGHT UTILITIES =============== */
.w-100 {
  width: 100%;
}

.w-90 {
  width: 90%;
}

.w-50 {
  width: 50%;
}

.h-100 {
  height: 100%;
}

.h-auto {
  height: auto;
}

/* =============== RESPONSIVE UTILITIES =============== */
@media (max-width: 992px) {
  .d-md-none {
    display: none;
  }

  .d-md-block {
    display: block;
  }

  .w-md-100 {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .d-sm-none {
    display: none;
  }

  .d-sm-block {
    display: block;
  }

  .w-sm-100 {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .d-xs-none {
    display: none;
  }

  .d-xs-block {
    display: block;
  }

  .w-xs-100 {
    width: 100%;
  }
}

/* =============== INTERACTIVE ELEMENTS =============== */
.link-custom {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.link-custom:hover {
  color: var(--primary-hover);
  text-decoration: none;
}

.link-custom:focus {
  outline: none;
  text-decoration: underline;
}

/* =============== FORM ELEMENTS =============== */
.input-custom {
  width: 100%;
  padding: var(--spacing-sm);
  border: var(--border-width-thin) solid var(--border-color);
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-small);
  transition: border-color 0.3s ease;
}

.input-custom:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(111, 163, 136, 0.2);
}

.textarea-custom {
  width: 100%;
  padding: var(--spacing-sm);
  border: var(--border-width-thin) solid var(--border-color);
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-small);
  font-family: var(--font-family-primary);
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.3s ease;
}

.textarea-custom:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(111, 163, 136, 0.2);
}

/* =============== IMAGE UTILITIES =============== */
.img-fluid {
  max-width: 100%;
  height: auto;
}

.img-custom {
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
}

.social-icon {
  height: var(--spacing-xl);
  margin: 0;
}

.chatbot-toggle-img {
  width: var(--chatbot-toggle-size);
  height: var(--chatbot-toggle-height);
  border-color: var(--text-dark);
  border-radius: var(--border-radius-sm);
}

.chatbot-input {
  width: 300px;
  margin-left: var(--spacing-lg);
  margin-bottom: var(--spacing-xs);
}

.carousel-text-custom {
  color: var(--primary-color);
  font-family: var(--font-family-primary);
  font-size: 35px;
}

/* =============== ANIMATION UTILITIES =============== */
.transition {
  transition: all 0.3s ease;
}

.transition-fast {
  transition: all 0.15s ease;
}

.transition-slow {
  transition: all 0.5s ease;
}

/* =============== ACCESSIBILITY UTILITIES =============== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* =============== COMPONENT-SPECIFIC COMMON STYLES =============== */

/* Spacer horizontal rule */
.spacer-hr {
  border: 0;
  height: 50px; /* Doubled from 25px to 50px */
  background-color: var(--accent-color);
  margin: 0;
}

/* Social media icon */
.social-icon {
  height: 40px;
  margin-right: 0;
  margin-left: 0;
}

/* Chatbot elements */
.chatbot-toggle-img {
  width: 100%;
}

.chatbot-input {
  /*width: 100%;*/
  padding: var(--spacing-sm);
  border: var(--border-width-thin) solid var(--border-color);
  border-radius: var(--border-radius-sm);
}

/* Footer */
.footer-fixed {
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
  padding: var(--spacing-sm);
  z-index: 2000;
  font-family: var(--font-family-primary);
  font-size: var(--font-size-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
}

.footer-fixed p {
  color: var(--text-light);
  margin: 0;
  padding: 0;
}

/* Carousel text styling */
.carousel-text-custom {
  font-size: 40px; /* Increased to 40px */
  color: var(--text-light);
}

/* Main carousel title styling */
.box-overslider h2 {
  color: var(--primary-color) !important;
  font-size: 2.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

/* Main carousel description styling */
.box-overslider .carousel-text-custom {
  color: var(--text-light) !important;
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* =============== INLINE STYLE REPLACEMENTS =============== */

/* Body positioning */
.body-relative {
  position: relative;
  min-height: 100vh;
}

/* Heading margins */
.heading-margin-top {
  margin-top: 80px; /* Adjusted to match standard spacing of other pages */
}

/* Paragraph margins */
.paragraph-margin-top {
  margin-top: 10px;
}

.paragraph-margin-sides {
  margin-right: 100px;
  margin-left: 100px;
}

/* Tag styling */
.tag-styling {
  color: var(--primary-color);
  font-family: var(--font-family-primary);
  font-size: 20px;
}

/* Social icon styling */
.social-icon-custom {
  height: 40px;
  margin-right: 0;
  margin-left: 0;
}

/* Footer styling */
.footer-full-width {
  width: 100%;
  box-sizing: border-box;
}

/* Carousel image sizing */
.carousel-img-large {
  width: 600px; /* 3x bigger than original 200px */
  height: 300px; /* 3x bigger than original 100px */
}

.carousel-img-medium {
  width: 450px; /* 3x bigger than original 150px */
  height: 450px; /* 3x bigger than original 150px */
}

.carousel-img-small {
  width: 300px; /* 3x bigger than original 100px */
  height: 300px; /* 3x bigger than original 100px */
}

.carousel-img-extra-large {
  width: 900px; /* 3x bigger than original 300px */
  height: 300px; /* 3x bigger than original 100px */
}

.carousel-img-large-square {
  width: 600px; /* 3x bigger than original 200px */
  height: 600px; /* 3x bigger than original 200px */
  margin-top: -30px;
}

/* =============== FONT UTILITY CLASSES =============== */
.font-primary {
  font-family: var(--font-family-primary) !important;
}

.font-secondary {
  font-family: var(--font-family-secondary) !important;
}

.font-display {
  font-family: var(--font-family-display) !important;
}

.font-mono {
  font-family: var(--font-family-mono) !important;
}

.font-light {
  font-weight: var(--font-weight-light) !important;
}

.font-normal {
  font-weight: var(--font-weight-normal) !important;
}

.font-medium {
  font-weight: var(--font-weight-medium) !important;
}

.font-semibold {
  font-weight: var(--font-weight-semibold) !important;
}

.font-bold {
  font-weight: var(--font-weight-bold) !important;
}

.font-extrabold {
  font-weight: var(--font-weight-extrabold) !important;
}

.text-xs {
  font-size: var(--font-size-xs) !important;
}

.text-sm {
  font-size: var(--font-size-sm) !important;
}

.text-base {
  font-size: var(--font-size-base) !important;
}

.text-lg {
  font-size: var(--font-size-lg) !important;
}

.text-xl {
  font-size: var(--font-size-xl) !important;
}

.text-2xl {
  font-size: var(--font-size-2xl) !important;
}

.text-3xl {
  font-size: var(--font-size-3xl) !important;
}

.text-4xl {
  font-size: var(--font-size-4xl) !important;
}

.text-5xl {
  font-size: var(--font-size-5xl) !important;
}

.leading-tight {
  line-height: var(--line-height-tight) !important;
}

.leading-normal {
  line-height: var(--line-height-normal) !important;
}

.leading-relaxed {
  line-height: var(--line-height-relaxed) !important;
}

.leading-loose {
  line-height: var(--line-height-loose) !important;
}

.tracking-tight {
  letter-spacing: -0.05em !important;
}

.tracking-normal {
  letter-spacing: 0 !important;
}

.tracking-wide {
  letter-spacing: 0.05em !important;
}

.tracking-wider {
  letter-spacing: 0.1em !important;
}
