/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Hanlding Updates
-----------------------------------------------------------------*/

/* Hide the original vertical border line */
.idocs-navigation .nav .nav .nav-item .nav-link:after {
  display: none !important;
}

/* Sub-menu card wrapper — fast close, slow open */
.idocs-navigation .nav .nav {
  display: block !important;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.8s ease, opacity 0.6s ease, padding 0.5s ease;
  background: rgba(121, 85, 72, 0.04);
  border-radius: 8px;
  margin: 0px 10px 4px;
  padding: 0;
}

/* Smooth open animation — delayed to avoid flicker when scrolling past */
.idocs-navigation .nav .nav-item .nav-link.active + .nav,
.idocs-navigation .nav .nav:has(.nav-link-second.active) {
  max-height: 500px;
  opacity: 1;
  padding: 6px 0;
  transition: max-height 1.4s ease 0.6s, opacity 1.4s ease 0.8s, padding 0.4s ease 0.6s;
}


/* Sub-menu link base styles */
.idocs-navigation .nav .nav .nav-item .nav-link-second {
  padding: 5px 12px;
  font-size: 0.82em;
  line-height: 1.4;
  white-space: nowrap;
  text-align: center;
  color: #6a6a6a;
  transition: color 0.4s ease, background-color 0.4s ease;
  border-radius: 5px;
  margin: 0 6px;
}

/* Hover */
.idocs-navigation .nav .nav .nav-item .nav-link-second:hover {
  color: #795548;
  background-color: rgba(121, 85, 72, 0.08);
}

/* Active state */
.idocs-navigation .nav .nav .nav-item .nav-link-second.active {
  color: #795548;
  font-weight: 600;
  background-color: rgba(121, 85, 72, 0.1);
}


/* Sidebar social icon — pinned to bottom */
.sidebar-fb-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(121, 85, 72, 0.1);
  color: #795548;
  font-size: 0.95em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar-fb-link:hover {
  background: #795548;
  color: #fff;
}

/* ===========================================
   Full-height sections with scroll snap
   =========================================== */

#content > .section {
  overflow: visible;
}

/* Blog cards */
.blog-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.blog-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px 0;
}

.blog-card-avatar img {
  width: 44px;
  height: 44px;
  object-fit: cover;
}

.blog-card-author {
  display: flex;
  flex-direction: column;
}

.blog-card-name {
  font-weight: 600;
  font-size: 0.95em;
  color: #1a1a1a;
  text-decoration: none;
}

.blog-card-name:hover {
  color: #1877f2;
}

.blog-card-source {
  font-size: 0.8em;
  color: #1877f2;
  margin-top: 2px;
}

.blog-card-source i {
  margin-left: 4px;
}

.blog-card-body {
  padding: 16px 24px;
  color: #333;
  line-height: 1.7;
  flex: 1;
}

.blog-card-title {
  font-size: 1.3em;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.blog-card-body p {
  margin-bottom: 8px;
  font-size: 0.95em;
}

.blog-card-link {
  display: block;
  text-align: center;
  padding: 14px 24px;
  background: #f0f2f5;
  color: #1877f2;
  font-weight: 600;
  font-size: 0.95em;
  text-decoration: none;
  border-top: 1px solid #e4e6eb;
  transition: background-color 0.3s ease;
}

.blog-card-link:hover {
  background: #e4e6eb;
  color: #1565c0;
}

.blog-card-link i {
  margin-left: 6px;
}

#content > .section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-bottom: 60px;
}

.section-scroll-arrow {
  position: absolute;
  bottom: 20px;
  left: 50%;
  margin-left: -16px;
  width: 32px;
  height: 32px;
  line-height: 32px;
  font-size: 20px;
  text-align: center;
  color: #795548;
  opacity: 0.4;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.section-scroll-arrow:hover {
  opacity: 0.8;
  color: #795548;
}

.section-scroll-arrow .animated {
  position: relative;
  animation: fadeInDown 1.5s infinite;
}

/* ===========================================
   Hero section
   =========================================== */

/* Fade-in-up animation */
@keyframes heroFadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-fade-in {
  opacity: 0;
  animation: heroFadeInUp 1s ease forwards;
}

.hero-delay-1 { animation-delay: 0.3s; }
.hero-delay-2 { animation-delay: 0.6s; }
.hero-delay-3 { animation-delay: 0.9s; }
.hero-delay-4 { animation-delay: 1.2s; }

/* Headline letter-spacing */
#home .hero-content h2.text-16 {
  letter-spacing: 0.04em;
}

/* Decorative separator */
.hero-separator {
  display: block;
  width: 60px;
  height: 2px;
  background-color: #795548;
  margin: 0 auto 1rem;
  opacity: 0.6;
  border-radius: 1px;
}

/* Warm overlay */
#home .hero-mask {
  background-color: rgba(121, 85, 72, 0.25) !important;
}

/* CTA button upgrade */
#home .hero-content .btn-outline-primary {
  background-color: rgba(121, 85, 72, 0.85);
  color: #fff;
  border-color: rgba(121, 85, 72, 0.85);
  transition: background-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}

#home .hero-content .btn-outline-primary:hover {
  background-color: #795548;
  border-color: #795548;
  color: #fff;
  box-shadow: 0 4px 20px rgba(121, 85, 72, 0.4);
  transform: translateY(-2px);
}

/* ===========================================
   Contact section
   =========================================== */

.contact-form-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.contact-form-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.contact-input {
  border: 1px solid #e0d6d0 !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  font-size: 0.95em;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: #faf9f8 !important;
}

.contact-input:focus {
  border-color: #795548 !important;
  box-shadow: 0 0 0 3px rgba(121, 85, 72, 0.1) !important;
  background: #fff !important;
}

.contact-submit-btn {
  background-color: rgba(121, 85, 72, 0.85);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 40px;
  font-size: 1em;
  font-weight: 600;
  transition: background-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}

.contact-submit-btn:hover {
  background-color: #795548;
  color: #fff;
  box-shadow: 0 4px 16px rgba(121, 85, 72, 0.35);
  transform: translateY(-2px);
}

.contact-info-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: rgba(121, 85, 72, 0.1);
  color: #795548;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
}

.contact-info-item h4 {
  font-size: 0.95em;
  font-weight: 600;
  color: #333;
  margin: 0 0 2px;
}

.contact-info-item p {
  font-size: 0.9em;
  color: #666;
  margin: 0;
}

.contact-info-item a {
  color: #795548;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info-item a:hover {
  color: #5d4037;
}

/* Accessibility widget — force left side */
div[data-userway-s],
.userway_buttons_wrapper,
#userwayAccessibilityIcon {
  left: 40px !important;
  right: auto !important;
  top: 10px !important;
  bottom: auto !important;
}

body > div[style*="position"]:has(iframe[title*="ccessib"]) {
  left: 50px !important;
  right: auto !important;
}

