/*======================================
Theme Name: Divi Child
Theme URI: https://divicake.com/
Description: Child Theme for Divi
Version: 1.0
Author: Divi Cake
Author URI: https://divicake.com/
Template: Divi
======================================*/


/* You can add your own CSS styles here. Use !important to overwrite styles if needed. */

/* FINAL FIX - Divi Blog Featured Image + Title Cut Issue */

/* Card structure fix */
.et_pb_post,
.blog .post,
article {
  height: auto !important;
  overflow: visible !important;
  display: flex;
  flex-direction: column;
}

/* Featured image fix */
.et_pb_post .entry-featured-image-url {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.et_pb_post .entry-featured-image-url img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Title fix (no cut / proper wrap) */
.et_pb_post .entry-title {
  white-space: normal !important;
  overflow: visible !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;   /* max 3 lines */
  -webkit-box-orient: vertical;
}

/* Optional spacing fix */
.et_pb_post .post-content {
  flex-grow: 1;
}
.custom-portal-menu {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  z-index: 99999;
}

.portal-toggle {
  width: 100%;
  background: #fff;
  color: #0b4d8f;
  border: 1px solid #0b4d8f;
  border-radius: 50px;
  padding: 8px 12px;
  font-size: 18px;
  cursor: pointer;
  font-family: 'Satoshittf', Helvetica, Arial, Lucida, sans-serif;
}

.portal-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 8px 25px rgba(0,0,0,.12);
  border-radius: 0 0 12px 12px;
  padding: 10px 15px;
  z-index: 999999;
  width:300px;
  margin-top:-16px;
}

.custom-portal-menu:hover .portal-dropdown,
.custom-portal-menu:focus-within .portal-dropdown {
  display: block;
}

.portal-dropdown a {
  display: block;
  color: #0b4d8f;
  font-size: 18px;
  font-weight: 400;
  padding: 12px 0;
  text-decoration: none;
  line-height: 1.3;
  font-family: 'Satoshittf', Helvetica, Arial, Lucida, sans-serif;
}

@media (max-width: 980px) {
  .custom-portal-menu {
    max-width: 100%;
  }

  .portal-toggle {
    font-size: 18px;
    padding: 5px 10px;
	margin-bottom:30px!important;
  }

  .portal-dropdown a {
    font-size: 18px;
    text-align: center;
  }
}