/*
Theme Name:   Engitech Child
Theme URI:    http://wpdemo.archiwp.com/engitech/
Description:  Make your modifications to [Parent Theme] in this Engitech child theme.
Author:       OceanThemes
Author URI:   http://oceanthemes.net/
Template:     engitech
Version:      1.1
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain:  engitech-child
*/

/* =Theme customization starts here
------------------------------------------------------- */
button:disabled {
    opacity: .65;
}
/* Ensure the menu item container doesn't overflow */
#primary-menu .menu-item {
  white-space: normal; /* Allow text to wrap normally */
}
i.fas{
    margin-right: 5px;
}
#primary-menu .custom-sub-menu ul li {
  padding: 1.5px 6px !important;
}

#primary-menu .list ul li:not(:last-child) {
  margin-bottom: 5px !important;
}

#primary-menu .custom-sub-menu .sub-menu {
  padding: 15px !important;
}

/* Ensure the sub-menu uses CSS Grid */
#primary-menu .grid .sub-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  grid-template-rows: repeat(2, auto); /* 2 rows */
  gap: 10px; /* Adjust the gap between items as needed */
}

/* Optional: Add some styling for sub-menu items */
#primary-menu .custom-sub-menu .sub-menu li {
  padding: 0; /* Example padding */
  list-style: none; /* Remove bullet points */
  overflow: hidden; /* Ensure the content does not overflow the container */
}

#primary-menu .grid .sub-menu li {
  width: 240px;
}

#primary-menu .custom-sub-menu .sub-menu li:hover {
  background-color: #f0f0f0; /* change background color */
}

/* Ensure the sub-menu items fit within the grid */
#primary-menu .custom-sub-menu .sub-menu li a {
  display: block; /* Ensure the link takes up the entire grid cell */
  text-align: left; /* Align text to the left */
  text-decoration: none; /* Remove underline */
  white-space: normal;
  width: 100%;
  color: #000000;
  text-transform: capitalize;
  padding: 0 !important;
  line-height: 1.4em;
}

#primary-menu .custom-sub-menu .sub-menu li a:hover {
  text-decoration: underline; /* Add underline on hover */
  color: #0066cc; /* Change link color */
}

/* Style for the menu item description */
#primary-menu .custom-sub-menu .sub-menu .menu-item-description {
  display: block;
  color: #666;
  word-wrap: break-word; /* Ensure long words break to the next line */
  width: 100%; /* Ensure the description takes the full width of its container */
  text-transform: math-auto;
  font-size: 14px;
  line-height: 1.4em;
  font-weight: 400;
  color: #000000;
}

#primary-menu .custom-sub-menu .sub-menu li a:hover {
  text-decoration: none;
}

#primary-menu .main-navigation ul li li a:hover,
#primary-menu .main-navigation ul ul li.current-menu-item > a,
#primary-menu .main-navigation ul ul li.current-menu-ancestor > a {
  padding-left: 0;
}
.main-navigation:not(.no-under-line) > ul > .contact-us::before {
  content: none;
  background: transparent;
}

.contact-us a {
  background-color: #35a4d4;
  border-radius: 40px;
  padding: 6px 17px !important;
  color: #fff !important;
  line-height: 1.2em !important;
}

.contact-us {
  align-self: center;
}

.greene span,
.greene a {
  color: #43c65e !important;
  font-size: 16px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  font-weight: 600 !important;
}

.greene .e {
  background: url(http://newfc.prodexc.com/wp-content/uploads/2024/08/logoevert.png);
  height: 12px;
  width: 14px;
  padding: 0;
  display: block;
  background-repeat: no-repeat;
  background-size: contain;
  margin-left: 1px;
}

.the-logo img {
  padding: 32px 0;
}

#menu-facemobilemenu .contact-us {
  width: fit-content;
  background-color: #35a4d4;
  border-radius: 40px;
  padding: 6px 17px !important;
  color: #fff !important;
  line-height: 1.2em !important;
}
#menu-facemobilemenu .login {
  background-image: url(http://newfc.prodexc.com/wp-content/uploads/2020/09/key.png);
  width: 36px;
  background-size: contain;
  background-repeat: no-repeat;
}
.custom-mobile-menu-item {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  padding-block: 20px;
  margin-block: 40px;
  position: absolute !important;
  left: 0;
  width: 100%;
  background-color: #f1f3f2;
}
.page-header {
  position: relative;
  display: flex;
  align-content: flex-start;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 550px;
}
.page-header.with-description {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.title-Container {
  flex: 1;
  flex-direction: row;
  max-width: 900px;
  margin-bottom: 0;
  padding-top: 85px;
}
.page-description {
  font-size: 24px;
  color: #ffffff;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 0;
}
.flex-between {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  align-items: flex-end;
}
.header-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  text-align: left;
  background: rgba(0, 0, 0, 0.5);
}
.header-bottom h3 {
  padding-block: 30px;
  color: #ffffff;
  font-weight: 400;
  margin-bottom: 0;
  font-size: 18.7px;
}
.ot-heading h2, .ot-heading>span{
  font-size: 28px;
}
.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
  pointer-events: none;
}
.page-header .container {
  z-index: 1;
}
.quick-facts .elementor-heading-title{
        height: 120px;
    display: flex;
    align-items: center;
        justify-content: center;
}
.whoweare-img img{
    aspect-ratio: 1;
}
.title-desc-box .description{
    display: none;
    margin-top:30px;
}
.title-desc-box:hover .description{
    display: block;
}
.title-desc-box:hover .title .elementor-widget-container{
    padding-top: 30px!important;
    padding: 30px 0 0!important;
}
.excelia-btn{
    background:#35a4d4;
}
.excelia-btn:hover{
    background:#35a4d4;
}
ul.listings-flex{
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 0;
}
ul.listings-flex .fas{
    padding-right:10px;
}
li.listing{
    padding: 0!important;
    width: 366px;
    height: 417px;
}
li.listing::before{
    content: ''!important;
}
li.listing img{
    height: 250px;
    object-fit: cover;
    width: 100%;
}
li.listing .listing-title {
    font-size: 18px !important;
    line-height: 1.5em;
    letter-spacing: .36px;
    font-weight: 300;
    height: 60px;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;  /* Limits text to 2 lines */
    -webkit-box-orient: vertical;
    font-weight: bold;
}
li.listing .date-localization{
    font-size: medium;
}
li.listing :where(.listing-title a, .date-localization){
    color:#333333!important;
}
li.listing .listing-details{
    padding: 15px;
    background: #f8f8f8;
}
/*li.listing :where(.listing-date,.listing-localization){*/
/*       font-size: small;*/
/*}*/
li.listing p{
    margin:0!important;
}
.load-more-events{
    font-size: 14px;
    padding: 14px 30px 14px 30px;
    line-height: 1.42857143;
    font-weight: bold;
        text-align: center;
    background: #43baff;
    cursor: pointer;
    border: 1px solid transparent;
    color: #fff;
    outline: none;
    margin-top:40px;
    margin-inline: auto;
    display: block;
}
.excelia-btn{
    font-size: 14px;
    padding: 14px 30px 14px 30px;
    line-height: 1.42857143;
    font-weight: bold;
        text-align: center;
    background: #43baff!important;
    cursor: pointer;
    border: 1px solid transparent;
    color: #fff!important;
    outline: none!important;
    margin-top:40px;
    margin-inline: auto;
    display: block;
    width:fit-content;
}
/* General Styles */
.listing-content{
    margin: auto;
    width: min(100% , 1140px);
    margin-bottom: 100px;
}
.listing-header {
    position: relative;
    text-align: center;
}

.listing-hero img {
    height: 477px;
    width: 100%;
    max-height: 1200px;
    object-fit: cover;
}

.listing-title-date {
    text-align : left;
    margin: 75px 0;
}

.listing-title {
    font-size: 3rem;
    margin: 0;
    font-weight: 700;
}

.listing-date {
    margin-top: 10px;
}

/* listing Details */
.listing-title-date .listing-title{
    font-size: 60px;
        font-weight: 300;
    line-height: 120%;
    color: #1d1e20;
}
.listing-content .listing-location{
  font-size: 24px;
  text-align: left;
  margin-block: 37px 0;
  color: #1d1e20;
}
.listing-title-date .listing-date{
    font-size: 19px;
    color: #1d1e20;
}
.listing-details {
}
.listing-details .description-container{
    padding:0;
}
.listing-description {
    font-size: 17px;
}
.listing-description h2, .listing-location h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.listing-register-button:hover {
    background-color: #00577B;
}
.post-type{
    position: absolute;
    background: #43baff87;
    padding: 2px 18px;
    color: #fff;
}
.media .post-type{
    background: #adff5587;
}
.press .post-type{
    background: #43baff87;
}
.octf-btn:hover, .octf-btn:focus{
    background: #43baff!important;
}


.member-form {
  padding: 10px;
}
.contact-info.box-style1:hover {
    box-shadow: none;
}
.wpcf7 form.invalid .wpcf7-response-output{
        border-color: red;
        border-width: thick;
}
.wpcf7 form.sent .wpcf7-response-output{
    border-color: #35a4d4;
}

/* Button Styling */

.news-single-page .listing-date{
        color: #c3c7c9;
    margin: 30px;
    font-size: 16px;
}
.news-single-page .listing-description{
   margin-top: 50px;
}

.news-single-page .listing-title-date{
   text-align: center;
}
.news-single-page .listing-hero{
   text-align: center;
}
.news-single-page .listing-title{
   text-align: center;
       font-size: 41px;
    font-weight: 500;
}
/* Responsive Design */
.filter-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: white;
            padding: 12px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            margin-bottom: 16px;
        }
        .filter-group {
            display: flex;
            gap: 12px;
        }
        .filter-group label {
            display: flex;
            align-items: center;
            gap: 4px;
            cursor: pointer;
            font-size: 14px;
        }
        .filter-group input {
            cursor: pointer;
        }
        .check-all {
            font-size: 14px;
            color: #6b7280;
            cursor: pointer;
            border: none;
            background: none;
            padding: 0;
        }
        .check-all:hover {
            color: #43baff;
        }
.listing-share {
    margin-top: 20px;
    text-align: center;
}

.social-share-buttons {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-share-buttons li {
    display: inline-block;
}

.social-share-buttons li a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #35a4d4;
    color: #fff;
    border-radius: 50%;
    font-size: 24px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.social-share-buttons li a:hover {
    transform: translateY(-5px);
}

.share-facebook {
    background-color: #3b5998;
}

.share-twitter {
    background-color: #1da1f2;
}

.share-linkedin {
    background-color: #0077b5;
}
.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}
.related-title {
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: bold;
    text-align: center;
    color: #333;
}
.related-posts-list {
    display: flex;
    gap: 30px;
    justify-content: center;
}
.related-post-item {
    flex: 1;
    max-width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.related-post-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.15);
}
.related-post-link {
    text-decoration: none;
    color: inherit;
}
.related-thumbnail img {
    width: 100%;
    height: 172px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.related-post-item:hover .related-thumbnail img {
    transform: scale(1.05);
}
.related-post-content {
    padding: 20px;
}
.related-post-title {
    font-size: 20px;
    color: #333;
    margin: 0 0 10px;
    line-height: 1.4;
    transition: color 0.3s;
}
.related-post-title:hover {
    color: #007bff;
}
.related-post-date {
    font-size: 14px;
    color: #888;
}
@media only screen and (max-width: 1200px) {
  .listing-content {
    padding-inline: 20px;
  }
}
@media only screen and (max-width: 700px) {
  .page-header {
    min-height: 800px;
  }
  .title-Container {
    padding-top: 20px;
  }
  .section-text {
    margin-bottom: 10px;
  }
}
@media (max-width: 774px) {
    li.listing {
        width: 48%;
    }
}
@media (max-width: 580px) {
    li.listing {
        width: 100%;
    }
}
@media (max-width: 768px) {
  .page-header::before {
    background-color: rgba(0, 0, 0, 0.5); /* Darken even more for mobile */
  }
  .breadcrumbs {
      margin-top: 36px;
  }
  .member-form h2 {
    font-size: 20px;
  }
  .listing-title-date .listing-date{
      font-size: 14px !important;
      line-height: 1.29 !important;
  }
  .listing-title-date .listing-title{
    font-size: 48px;
    letter-spacing: normal;
  }
  .listing-hero img{
      height: 364px;
  }
  .listing-content .listing-location{
      font-size: 18px;
  }
}