/*
 Theme Name:     Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.0
*/


/* =Theme customization starts here
------------------------------------------------------- */


/* @media (min-width: 981px) {
  .et_header_style_left .et-fixed-header #et-top-navigation {
      padding-top: 20px;
      padding-bottom: 20px;
  }
}
*/

/* FORCE GLOBAL FONT SIZES — DESKTOP */

body p,
.et_pb_text p {
  font-size: 16px !important;
}

h1, .et_pb_text h1 {
  font-size: 36px !important;
}

h2, .et_pb_text h2 {
  font-size: 25px !important;
}

h3, .et_pb_text h3 {
  font-size: 18px !important;
  font-weight: bold !important;
}

@media (max-width: 980px) {
  body p,
  .et_pb_text p {
    font-size: 16px !important;
  }

  h1, .et_pb_text h1 {
    font-size: 32px !important;
  }

  h2, .et_pb_text h2 {
    font-size: 25px !important;
  }

  h3, .et_pb_text h3 {
    font-size: 18px !important;
  }
}


@media (max-width: 767px) {
  body p,
  .et_pb_text p {
    font-size: 16px !important;
  }

  h1, .et_pb_text h1 {
    font-size: 28px !important;
  }

  h2, .et_pb_text h2 {
    font-size: 23px !important;
  }

  h3, .et_pb_text h3 {
    font-size: 18px !important;
  }
}


.mobile_menu_bar:before, .mobile_menu_bar:after, #top-menu li.current-menu-ancestor>a, #top-menu li.current-menu-item>a {
  color: #016db8;
}

.et_mobile_menu {
border-top: 3px solid #016db8;
}

.et-fixed-header #top-menu .menu-button a {
  color : #0A1A3F !important;
}


@media (max-width: 991px) {
  .inverse {
      display: flex;
      flex-direction: column-reverse;
  }
}

@media (min-width: 992px) {
  .center-text-image {
      display: flex;
      align-items: center;
  }
}
.first-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 8px 18px;
    border-radius: 30px;

    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);

    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    transition: all 0.25s ease;

    /* CENTER */
    margin: 0 auto;
}

.first-btn i {
    color: #f5c542;
    font-size: 11px;
}

.first-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}
.first-btn {
    display: flex;
    width: fit-content;
}

.gradient-text {
  background: linear-gradient(180deg, #016db8, #FFFFFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}

/* BLOG GRID – FORCE SAME HEIGHT CARDS */
.et_pb_blog_grid .et_pb_ajax_pagination_container {
  display: flex;
  flex-wrap: wrap;
}
.et_pb_blog_grid article {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.et_pb_blog_grid .post-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.et_pb_blog_grid .post-content-inner {
  flex-grow: 1;
}

.et_pb_blog_grid .more-link {
  margin-top: auto;
}
/* LIMIT BLOG EXCERPT TO 7 LINES */
.et_pb_blog_grid .post-content-inner p {
  display: -webkit-box !important;
  -webkit-line-clamp: 5 !important;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
  max-height: calc(1.6em * 5);
}
@media (max-width: 980px) {
  .et_pb_blog_grid .post-content-inner p {
    -webkit-line-clamp: 6;
    max-height: calc(1.6em * 6);
  }
}
@media (max-width: 767px) {
  .et_pb_blog_grid .post-content-inner p {
    -webkit-line-clamp: 5;
    max-height: calc(1.6em * 5);
  }
}
/* LIMIT BLOG TITLE TO 3 LINES */
.et_pb_blog_grid h2.entry-title {
  display: -webkit-box !important;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  max-height: calc(1.35em * 3);
}
/* FORCE SAME IMAGE ASPECT RATIO */
.et_pb_blog_grid .entry-featured-image-url {
  aspect-ratio: 16 / 9;
  display: block;
  overflow: hidden;
}
.et_pb_blog_grid .entry-featured-image-url img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1.h1-hero {
  font-size: 46px !important;
  line-height: 1.1;
}

@media (max-width: 1024px) {
  h1.h1-hero {
    font-size: 42px !important;
  }
}

@media (max-width: 768px) {
  h1.h1-hero {
    font-size: 36px !important;
  }
}


@media (min-width: 1024px) {
  .center-text-image {
      display: flex;
      align-items: center;
  }
}


.img-clr img {
	filter: brightness(0) saturate(100%) invert(74%) sepia(60%) saturate(565%) hue-rotate(21deg) brightness(89%) contrast(93%);
}



/* ==== CONTAINER ==== */

div#sg-form{
max-width:100% !important;;
margin:auto;
padding:35px;
border-radius:20px;
background:linear-gradient(180deg,#ffffff,#f7f9fc);
box-shadow:
0 25px 60px rgba(0,0,0,0.08),
0 5px 15px rgba(0,0,0,0.05);
font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
}

/* ==== TITLE ==== */

div#sg-form h3{
font-size:26px;
text-align:center;
margin-bottom:25px;
color:#000000;
}

/* ==== INPUTS ==== */

div#sg-form .form-control{
height:54px;
border-radius:12px;
border:1px solid #e2e8f0;
padding:14px 18px;
font-size:16px;
background:white;
box-shadow:0 3px 10px rgba(0,0,0,0.04);
transition:.25s ease;
}

div#sg-form .form-control:focus{
border-color:#a7c21f;
box-shadow:0 0 0 4px rgba(255,106,0,0.12);
outline:none;
}

/* ==== LABEL ==== */

div#sg-form label{
font-weight:600;
font-size:14px;
margin-bottom:6px;
color:#334155;
}

/* ==== CHECKBOX ==== */

div#sg-form .checkbox{
background:#f1f5f9;
padding:15px;
border-radius:12px;
font-size:13px;
}

/* ==== BUTTON ==== */

div#sg-form .btn-submit{
margin-top:20px;
height:58px;
border-radius:14px;
border:none;
font-size:18px;
font-weight:700;
color:white;
background:linear-gradient(135deg,#a7c21f,#a7c21f);
box-shadow:
0 15px 30px  rgb(167 194 31 / 33%),
0 5px 10px rgba(0,0,0,0.1);
transition:.25s;
}

div#sg-form .btn-submit:hover{
transform:translateY(-2px);
box-shadow:
0 20px 35px rgb(167 194 31 / 33%),
0 8px 14px rgba(0,0,0,0.15);
}

/* ==== FOOTER ==== */

#sg-form-footer{
font-size:12px;
opacity:.7;
margin-top:18px;
}

/* ==== MOBILE ==== */

@media(max-width:480px){

div#sg-form {
padding:25px;
border-radius:16px;
}

div#sg-form  h3{
font-size:22px;
}

}

div#sg-form {
    width: 90% !important;
	    margin-top: 44px !important;
}














/**/

/* =========================
GLOBAL
========================= */

.ebook-newsletter{/* max-width:1100px; */margin:auto;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background: #eef3f9;border-radius:24px;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,0.08);padding-bottom: 31px;}

/* =========================
HERO PREMIUM
========================= */

.ebook-hero{display:flex;flex-wrap:wrap;align-items:center;padding:20px 20px;background: #f0f5fb!important;color:white;}

.hero-left{
flex:1;
text-align:center;
}

.ebook-img{max-width: 280px !important;transform:rotate(-2deg);filter:drop-shadow(0 30px 60px rgba(0,0,0,0.35));}

.hero-right{flex:1.3;padding-left: 6px;}

.badge{background: rgb(255 255 255);padding:8px 18px;border-radius:30px;font-size:13px;letter-spacing:.5px;margin-bottom:20px;display:inline-block;backdrop-filter:blur(8px);color: #000000;}

.hero-right h1{font-size: 20px !important;line-height:1.35;margin-bottom:30px;font-weight:700;}

.cta-btn{
display:none;
}

.cta-btn:hover{
transform:translateY(-3px);
}

/* =========================
CONTENT SECTION
========================= */

.ebook-content{display:flex;flex-wrap:wrap;gap: 6px;padding:20px 20px;background:#f7f9fc;place-items: center;}

.ebook-list{
flex:1.3;
}

.ebook-list h2{font-size: 21px !important;margin-bottom:20px;font-weight: bold;}

.ebook-list li{/* font-size:17px; */padding: 9px 0;}

/* AUTHOR CARD */

.ebook-author{
flex:0.8;
background:white;
border-radius:20px;
padding:35px;
text-align:center;
box-shadow:0 20px 50px rgba(0,0,0,0.08);
}

.ebook-author img{
width:140px;
height:140px;
border-radius:50%;
object-fit:cover;
margin-bottom:15px;
}



.ebook-author h3 {
    font-weight: bold;
}

/**/

/* GLOBAL */
.newsletter-wrapper{
max-width:1100px;
margin:auto;
font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
color:#1a1a1a;
background:#f6f8fb;
padding-bottom:40px;
}

/* HEADER */
.newsletter-header{text-align:center;padding: 20px 20px 20px;}

.newsletter-header h1{font-size: 28px !important;line-height:1.25;margin-bottom:12px;font-weight:700;}

.newsletter-header p{
font-size:18px;
opacity:.75;
}


/* HERO */
.newsletter-hero{
display:flex;
gap:60px;
align-items:center;
background:#c8d6de;
padding:50px;
border-radius:18px;
box-shadow:0 15px 45px rgba(0,0,0,.06);
}

.hero-left img{
max-width:320px;
width:100%;
filter:drop-shadow(0 25px 50px rgba(0,0,0,.2));
}

.hero-right{
flex:1;
}

.benefit{
margin-bottom:18px;
font-size:17px;
}

.benefit strong{
display:block;
margin-bottom:4px;
}


/* CTA BUTTON */
.btn{
display:inline-block;
margin-top:20px;
background:#8cd100;
color:#000;
padding:16px 28px;
border-radius:10px;
text-decoration:none;
font-weight:600;
box-shadow:0 10px 25px rgba(0,0,0,.15);
transition:.3s;
}

.btn:hover{
transform:translateY(-2px);
box-shadow:0 18px 35px rgba(0,0,0,.2);
}


/* COACH SECTION */
.newsletter-coach{
display:flex;
gap:50px;
align-items:center;
background:white;
padding:50px;
border-radius:18px;
box-shadow:0 15px 40px rgba(0,0,0,.05);
margin-top:40px;
}

.coach-left img{
width:180px;
height:180px;
border-radius:50%;
object-fit:cover;
box-shadow:0 10px 30px rgba(0,0,0,.15);
}

.coach-right{
flex:1;
}

.coach-right h2{
margin-bottom:15px;
font-size:28px;
}

.coach-right p{
margin-bottom:14px;
font-size:17px;
}




/* RESPONSIVE */
@media(max-width:900px){

.newsletter-hero,
.newsletter-coach{
flex-direction:column;
text-align:center;
}

.hero-left img{
margin-bottom:20px;
}

.coach-left img{
margin-bottom:20px;
}

}

.newsletter-wrapper .btn {
    display: none;
}

div#sg-form input {
    width: 100%;
}div#sg-form .checkbox input {
    width: auto !important;
}

body .et_pb_button {
    background-color: #a7c21f;
    border-width: 0px !important;
    border-radius: 12px;
    font-size: 18px !important;
}


/* =========================
   TABLET ONLY IMAGE FIX
========================= */

@media (max-width: 980px) and (min-width: 768px) {

  .et_pb_image {
    text-align: center;
  }

  .et_pb_image img {
    width: 70% !important; 
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: inherit; /* keep the radius */
  }

}

.et_pb_image_container {
    margin-bottom: 0 !important;
}

#main-header .et_mobile_menu span.menu-closed:before,
.et_pb_fullwidth_menu .et_mobile_menu span.menu-closed:before,
.et_pb_menu .et_mobile_menu span.menu-closed:before {
    content: "\33";
    font-family: "ETmodules";
    display: block;
    font-size: 17px;
    color: #016db8;
}


.et_pb_blog_grid .et_pb_post {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.et_pb_blog_grid .et_pb_post .post-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.et_pb_blog_grid .et_pb_post .post-meta,
.et_pb_blog_grid .et_pb_post p {
    margin-bottom: 10px;
}

.et_pb_blog_grid .et_pb_post .more-link {
    margin-top: auto;
}