/**
 * @file site-layout.css
 * @description Shared layout styles for Inda Consulting Due Diligence website.
 *              Covers the mobile hamburger navigation toggle animation, footer
 *              newsletter input, responsive mobile menu, contact form fields,
 *              and news card components (image zoom, text truncation, hover states).
 * @version 2.0.0
 */

/* --- Mobile Navigation Toggle --- */

.head .nav_open {
  width: 24px;
  height: 20px;
  cursor: pointer;
  position: relative;
  margin-left: 15px;
}

.head .nav_open::before {
  content: "";
  top: 0;
}

.head .nav_open i,
.head .nav_open::before,
.head .nav_open::after {
  width: 24px;
  height: 2px;
  background: #666;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
}

.head .nav_open i {
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
}

.head .nav_open::after {
  content: "";
  bottom: 0;
}

.head .nav_open.active::before {
  transform: translateX(-50%) translateY(9px) rotate(45deg);
}

.head .nav_open.active i {
  opacity: 0;
  visibility: hidden;
}

.head .nav_open.active::after {
  transform: translateX(-50%) translateY(-9px) rotate(-45deg);
}

/* --- Footer --- */

.footer-container strong {
  color: #999;
  font-size: 16px;
  line-height: 26px;
}

.footer-contact input {
  border: none;
  background: #fff;
  height: 50px;
  line-height: 50px;
  padding: 0 0 0 10px;
  width: calc(100% - 70px);
}

.footer-contact button:hover {
  opacity: 0.9;
  transition: all 0.3s ease;
}

/* --- Responsive Mobile Menu --- */

@media (max-width: 1024px) {
  .head .menu {
    width: 100%;
    height: 0;
    position: fixed;
    left: 0;
    top: 100px;
    background-color: #040498;
    overflow: hidden;
    transition: height 0.5s ease;
  }

  .head .menu > ul > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 5%;
  }

  .head .menu.active {
    height: calc(100vh - 100px);
  }

  .head .menu.scrollActive {
    height: calc(100vh - 60px);
  }

  .head .menu .language-btn {
    width: 100%;
    padding: 10px 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .head .menu .language-dropdown {
    width: 100%;
    padding: 10px 5%;
  }
}

/* --- Contact Form --- */

.contact-container .form-title {
  letter-spacing: 0;
}

#contactForm .form-group .text1 {
  width: 48%;
  border: 1px solid #f0f3f5;
  background: #f0f3f5;
  height: 55px;
  line-height: 55px;
  padding: 0 10px;
}

#contactForm .form-group .text2 {
  width: 100%;
  border: 1px solid #f0f3f5;
  background: #f0f3f5;
  height: 120px;
  line-height: 24px;
  padding: 10px;
}

input:focus,
textarea:focus {
  outline: none;
  border: none;
}

/* --- News Card Component --- */

.new-item .new-txt h4 {
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.new-item .new-txt .txt {
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.new-item .new-img img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  transition: all 0.3s ease;
  object-fit: cover;
}

.new-item .new-txt strong {
  font-weight: normal;
  letter-spacing: 0;
}

.new-item:hover .new-txt h4 {
  color: #040498;
}

.new-item:hover .new-img img {
  transform: scale(1.1);
}
