header {
  position: sticky !important;
  top: 0;
  z-index: 9999 !important;
}

/* Apply background to inner Elementor element when header is sticky */
header.is-sticky .e-parent {
  background-color: #000000c4 !important;
  transition: background-color 0.3s ease;
}

/* Shrink logo */
.header-logo img.shrink-logo {
  width: 70% !important;
  transition: width 0.3s ease;
}

header .hfe-nav-menu li a{
    text-underline-offset: 10px;
    padding-right: 11px;
    font-family: 'Roboto Slab', Georgia, "Times New Roman", serif !important;
}

div.post_news_container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

div.post_news_container .news-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    padding: 11px;
    margin-bottom: 30px;
}

h2.post_news_title {
    display: -webkit-box;
    max-width: 100%;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: normal;
    padding-bottom: 0px;
}

div.post_news_container .news-item img.post_news_image {
    width: 100%;
    border-radius: 10px;
    width: 100%;
    border-radius: 10px;
    height: 130px;
    object-fit: cover;
}

.pagination_links_news {
    font-size: 21px;
    margin-top: 25px;
}

div.pagination_links_news span.page-numbers.current {
    border-bottom: 1px solid #000;
}

div.post_news_container .news-item .news-content p {
    display: -webkit-box;
    max-width: 100%;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 18px;
    line-height: normal;
}

div.post_news_container .news-item h2.post_news_title {
    font-size: 20px;
    font-weight: 600;
}

div.post_news_container .news-item:hover {
    cursor: pointer;
    position: relative;
    top: -5px;
}

.news-content p {
    font-size: 16px !important;
}

.news-content {
    margin-top: 10px;
}

div.news_details_content p{
    text-align: justify !important;
}

body.post-type-archive-news div#header_menu_icons {
    background-color: transparent !important;
}

body.post-type-archive-news div#header_menu_icons div:nth-child(1) {
    max-width: 100% !important;
}

body.post-type-archive-news div#header_menu_icons div.et_pb_row {
    width: 100% !important;
}

/** Stripe Header **/
.elementor-28740 .hfe-nav-menu li a{
    font-family: 'Poppins', Helvetica, Arial, Lucida, sans-serif !important;
    font-size: 14px !important;
}
.elementor-28653 .hfe-nav-menu li a{
    font-family: 'Poppins', Helvetica, Arial, Lucida, sans-serif !important;
    font-size: 14px !important;
}
.elementor-28745 .hfe-nav-menu li a{
    font-family: 'Poppins', Helvetica, Arial, Lucida, sans-serif !important;
    font-size: 14px !important;
}

/* Main Form Container */
.custom-cf7-form {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* Two-column layout */
.custom-cf7-form .form-row {
  display: flex;
  flex-direction: column;
  width: 48%;
  margin-bottom: 20px;
}

/* Full-width rows like checkboxes, textareas, acceptance */
.custom-cf7-form .form-row.full-width,
.custom-cf7-form .form-row.acceptance,
.custom-cf7-form .form-row.submit-row {
  width: 100%;
}

/* Checkbox spacing */
.custom-cf7-form input[type="checkbox"] {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  accent-color: #e30613; /* modern browsers */
  vertical-align: middle;
  position: relative;
  top: 0;
  cursor: pointer;
}

.custom-cf7-form input[type="text"],
.custom-cf7-form input[type="email"],
.custom-cf7-form input[type="tel"],
.custom-cf7-form select,
.custom-cf7-form textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
}

.custom-cf7-form .wpcf7-checkbox .wpcf7-list-item-label{
  color:#000000;
}

.custom-cf7-form .wpcf7-form-control.wpcf7-checkbox input[type="checkbox"]:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Responsive: one column on small screens for normal rows */
@media (max-width: 768px) {
  .custom-cf7-form .form-row {
    width: 100%;
  }
}

/* =============================
   Checkbox Section (Responsive)
   ============================= */
.custom-cf7-form .wpcf7-form-control.wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 2%;
}

.custom-cf7-form .wpcf7-form-control.wpcf7-checkbox .wpcf7-list-item {
  flex: 0 0 31%; /* 3 per row on desktop */
  margin: 0;
}

/* Tablet: 2 per row */
@media (max-width: 1024px) {
  .custom-cf7-form .wpcf7-form-control.wpcf7-checkbox .wpcf7-list-item {
    flex: 0 0 48%; /* 2 per row */
  }
}

/* Mobile: 1 per row */
@media (max-width: 768px) {
  .custom-cf7-form .wpcf7-form-control.wpcf7-checkbox .wpcf7-list-item {
    flex: 0 0 100%; /* 1 per row */
  }
}

/* Align checkbox and label properly */
.custom-cf7-form .wpcf7-form-control.wpcf7-checkbox label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
  color: #000;
  cursor: pointer;
  vertical-align: middle;
}

@media (min-width: 1025px) {
    .elementor-28740 .hfe-nav-menu .sub-menu {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .elementor-28653 .hfe-nav-menu .sub-menu {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .elementor-28745 .hfe-nav-menu .sub-menu {
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

@media screen and (max-width: 768px) {
    div.single_news_content div.entry-content img {
        height: 130px;
        width: 100%;
        object-fit: cover;
    }

    div#tilte_div_contains {
        margin-bottom: 0px !important;
    }

    div.post_news_container {
        display: block;
        margin-bottom: 10px;
    }

    div.author_date_info p {
        font-size: 14px;
        line-height: normal;
    }

    div.social_icon_containers {
        margin-top: 20px;
    }

    p.nl_title {
        font-size: 19px;
    }

    div.nl_subscribe_form p.nl_form_text {
        font-size: 11px;
        line-height: normal;
        margin-bottom: 10px;
    }

    div.single_news_content h1.entry-title {
        font-size: 25px;
        line-height: normal;
    }

    .single_news_content h1 {
        width: 100%;
        line-height: normal;
    }
}

@media screen and (max-width: 515px) {
    .news_banner_img_contains {
        display: block;
    }

    div.author_content_side {
        width: 100%;
    }

    .newsletter_contains {
        display: block;
    }
}

@media (max-width: 890px) {
  /* Force mobile dropdown menu at 890px */
  header .hfe-layout-horizontal .hfe-nav-menu__toggle{
    display: none;
  }
  header .hfe-dropdown {
    display: block;
  }
}


