/* 
 * Home Page Custom Styles
 * Modernized elements and responsive fixes
 */

/* News Block Styles (Latest Projects/News) */
.news-block .inner-box .image-box .category-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--theme-color1);
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-carousel .owl-stage {
    display: flex;
}

.news-carousel .owl-item {
    display: flex;
    flex: 1 0 auto;
}

.news-section-two .news-block {
    display: flex;
    width: 100%;
    margin-bottom: 30px;
}

.news-section-two .news-block .inner-box {
    display: flex;
    flex-direction: column;
    flex: 1;
    background-color: #f4f7fc;
    border: 1px solid #e1e8f2;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-section-two .news-block .content-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex: 1;
    padding: 15px 5px 0px 5px !important;
}

.news-section-two .news-block .content-box .title {
    font-size: 17px;
    line-height: 1.4;
    margin-bottom: 0;
    font-weight: 700;
}

.news-section-two .news-block .content-box .title a {
    color: var(--theme-color2);
    transition: all 0.3s ease;
}

.news-section-two .news-block .content-box .title a:hover {
    color: var(--theme-color1);
}

/* Editor & Content Fixes */
.text-content-area p {
    text-align: inherit;
}

.text-content-area {
    line-height: 1.8;
}

.text-content-area [style*="text-align: justify"],
.text-content-area [style*="text-align:justify"] {
    text-align: justify !important;
}

/* Custom Service List (Biz Kimiz section) */
.custom-service-list .service-list-item .item-inner {
    background: #f9f9f9;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    display: flex;
    text-decoration: none !important;
}

.custom-service-list .service-list-item .item-inner:hover {
    background: var(--theme-color3);
    border-color: var(--theme-color3);
}

.custom-service-list .service-list-item .item-inner:hover .title {
    color: #fff;
}

.custom-service-list .service-list-item .item-inner:hover .icon {
    color: #fff !important;
}

.custom-service-list .icon-wrapper {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.custom-service-list .icon {
    font-size: 24px;
    color: var(--theme-color1);
    transition: all 0.3s ease;
}

.custom-service-list .title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--theme-color3);
    transition: all 0.3s ease;
}

.mr-15 {
    margin-right: 15px;
}

.fa-icon-fix-small {
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 20px !important;
}

/* Feature Block Three (Contact Section Two - Right Side) */
.feature-block-three .inner-box {
    padding: 10px !important;
    min-height: 85px;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.feature-block-three .inner-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feature-block-three .content {
    display: flex !important;
    align-items: center !important;
    width: 100%;
}

.feature-block-three .title {
    font-size: 14px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
    margin: 0 !important;
    flex: 1;
    color: #1e293b;
    text-align: left;
}

.feature-block-three .icon {
    font-size: 22px !important;
    margin-right: 12px !important;
    margin-bottom: 0 !important;
    width: 32px;
    text-align: center;
    color: var(--theme-color1);
}

/* Home Contact Form Section */
.contact-section-two {
    position: relative;
    background-color: #f8fafc;
}

/* Responsive Mobile Fixes */
@media (max-width: 991.98px) {
    .news-carousel .owl-nav {
        margin-left: auto !important;
        margin-right: auto !important;
        justify-content: center !important;
        left: 0 !important;
        right: 0 !important;
        gap: 20px !important;
    }

    .contact-section-two .row {
        display: flex;
        flex-direction: column;
    }
    
    .contact-section-two .content-column {
        order: 1 !important;
        padding-top: 60px !important;
        padding-bottom: 40px !important;
        display: block !important;
    }
    
    .contact-section-two .form-column {
        order: 2 !important;
        min-height: auto !important;
        padding: 60px 15px !important;
        display: block !important;
    }
    
    .contact-section-two .bg-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    .contact-section-two .contact-form {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        visibility: visible !important;
        display: block !important;
        opacity: 1 !important;
    }
}

/* News Section (Standard Template Styles) */
.news-section {
  position: relative;
  padding: 100px 0 70px;
}
.news-block .inner-box {
  position: relative;
  padding: 14px 14px;
  border: 1px solid #d4d0e4;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.07);
  background-color: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.news-block .inner-box .image-box {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}
.news-block .inner-box .image-box .image {
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}
.news-block .inner-box .image-box .image img {
  position: relative;
  width: 100%;
  display: block;
  transition: all 500ms ease;
}
.news-block .inner-box .image-box .image img:first-child {
  position: absolute;
  left: 0px;
  top: 0px;
  right: 0px;
  bottom: 0px;
  z-index: 1;
  transform: translateX(50%) scaleX(2);
  opacity: 0;
  filter: blur(10px);
}
.news-block .inner-box:hover .image-box .image img:first-child {
  transform: translateX(0) scaleX(1);
  opacity: 1;
  filter: blur(0);
}
.news-block .inner-box:hover .image-box .image img:nth-child(2) {
  transform: translateX(-50%) scaleX(2);
  opacity: 0;
  filter: blur(10px);
}
.news-block .inner-box .image-box .date {
  background: var(--theme-color1);
  bottom: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  height: 34px;
  left: 20px;
  line-height: 34px;
  position: absolute;
  width: 110px;
  text-align: center;
  z-index: 2;
  border-radius: 5px 5px 0 0;
}
.news-block .inner-box .content-box {
  position: relative;
  padding: 20px 10px 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.news-block .inner-box .content-box .post-meta {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  list-style: none;
  padding: 0;
}
.news-block .inner-box .content-box .post-meta li {
  color: #6d6c74;
  font-size: 14px;
  font-weight: 500;
  margin-right: 20px;
}
.news-block .inner-box .content-box .post-meta li i {
  color: var(--theme-color1);
  margin-right: 5px;
}
.news-block .inner-box .content-box .title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}
.news-block .inner-box .content-box .title a {
  color: var(--theme-color2);
  transition: all 0.3s ease;
}
.news-block .inner-box .content-box .title a:hover {
  color: var(--theme-color1);
}

/* Styled Pagination */
.styled-pagination {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}
.styled-pagination li {
  position: relative;
  margin: 0 5px;
}
.styled-pagination li a {
  position: relative;
  display: block;
  width: 45px;
  height: 45px;
  line-height: 43px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #222222;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  transition: all 300ms ease;
  text-decoration: none;
}
.styled-pagination li a.active,
.styled-pagination li a:hover {
  color: #ffffff !important;
  background-color: var(--theme-color1) !important;
  border-color: var(--theme-color1) !important;
}
.styled-pagination li span {
  position: relative;
  display: block;
  width: 45px;
  height: 45px;
  line-height: 43px;
  text-align: center;
}
