/* ======= Font Declarations ======= */
@font-face {
  font-family: 'Gotham';
  src: url('fonts/Gotham-Light.woff2') format('woff2'),
       url('fonts/Gotham-Light.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Gotham';
  src: url('fonts/Gotham-LightItalic.woff2') format('woff2'),
       url('fonts/Gotham-LightItalic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'Gotham';
  src: url('fonts/Gotham-Book.woff2') format('woff2'),
       url('fonts/Gotham-Book.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Gotham';
  src: url('fonts/Gotham-BookItalic.woff2') format('woff2'),
       url('fonts/Gotham-BookItalic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'Gotham';
  src: url('fonts/Gotham-Bold.woff2') format('woff2'),
       url('fonts/Gotham-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Gotham';
  src: url('fonts/Gotham-BoldItalic.woff2') format('woff2'),
       url('fonts/Gotham-BoldItalic.woff') format('woff');
  font-weight: 700;
  font-style: italic;
}

/* ======= Icon Fonts ======= */
@font-face {
  font-family: "icomoon";
  src: url("../fonts/icomoon.eot?166v1y");
  src: url("../fonts/icomoon.eot?166v1y#iefix") format("embedded-opentype"),
       url("../fonts/icomoon.ttf?166v1y") format("truetype"),
       url("../fonts/icomoon.woff?166v1y") format("woff"),
       url("../fonts/icomoon.svg?166v1y#icomoon") format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

/* ======= Layout Containers ======= */
.container-curated-blog { 
  width: 100%; 
}

/* ======= Blog Post Title ======= */
.blog-post-title {
  font-weight: 400;
  font-size: 18px;
  line-height: 1.22;
  color: #fff;
  text-align: center;
  margin: 0 auto;
  max-width: 706px;
  
  span {
    font-weight: 700;
    color: #42C1F0;
  }
}

/* ======= Common Section Styles ======= */
.blogs-section,
.subscribe_now-section {
  font-weight: 300;
  line-height: 1.25;
  color: #004D68;
  
  h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.6em;
    line-height: 1.15;
    color: #004D68;
  }
  
  h1 {
    font-size: 24px;
    font-family: "Gotham", sans-serif;
    font-weight: 500;
    line-height: 1.12;
  }
  
  h2, h3 {
    font-size: 20px;
  }
  
  h2 {
    font-family: "Gotham", sans-serif;
  }
  
  h4, h5, h6 {
    font-size: 14px;
  }
  
  p {
    font-size: 16px;
  }

  [class^=icon-], [class*=" icon-"] {
    font-family: "icomoon" !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  .icon-arrow:before { content: "\e900"; }
}

.blogs-section {
  padding: 0 0 10px;
  background: #F8F8F8;
  
  .block-holder-curated-blog {
    background: #fff;
  }
  
  .left-column-curated-blog {
    p {
      margin: 0 0 2em;
    }
    
    .additional-padding-curated-blog {
      padding: 20px;
    }
    
    .img-holder-curated-blog {
      width: 100%;
      margin: 0 0 32px;
    }
    
    .post-block-curated-blog {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 19px;
      margin: 0 0 22px;
      
      .title-curated-blog {
        display: block;
        color: #42C1F0;
        font-weight: 700;
      }
      
      .right-holder-curated-blog {
        display: flex;
        gap: 0 20px;
      }
      
      .name-curated-blog {
        display: block;
        margin-left: auto;
        font-size: 12px;
        color: #000;
      }
      
      .date-curated-blog {
        display: block;
        font-size: 12px;
        color: #000;
      }
    }
    
    .read-more-link-curated-blog {
      position: relative;
      font-weight: 700;
      color: #004D68;
      text-decoration: none;
      transition: color 0.3s ease;
      padding: 0 0 10px;
      
      &:before {
        content: "";
        display: block;
        width: 100%;
        height: 2px;
        background-color: #004D68;
        position: absolute;
        bottom: 0;
        left: 0;
        transition: background-color 0.2s ease-in-out;
      }
      
      &:after {
        content: "\e900";
        font-family: "icomoon";
        font-size: 8px;
        color: #004D68;
        margin-left: 8px;
        transition: color 0.2s ease-in-out;
      }
      
      &:hover {
        color: #42C1F0;
        
        &:before,
        &:after {
          background-color: #42C1F0;
          color: #42C1F0;
        }
      }
    }
  }
  
  .right-column-curated-blog {
    background: #E9F4F6;
    padding: 20px;
    
    h1, h2, h3, h4, h5, h6 {
      margin: 0 0 1em;
    }
    
    p {
      margin: 0 0 20px;
    }
    
    .list-curated-blog {
      .item-curated-blog {
        display: flex;
        gap: 0 9px;
        
        &:last-child {
          margin: 0;
        }
      }
      
      .post-holder-curated-blog {
        width: calc(95% - 5px);
      }
    }
    
    .conclusion-block-curated-blog {
      border: 2px solid #004B66;
      padding: 20px 18px;
      display: flex;
      flex-direction: column;
      gap: 14px;
      
      .conclusion-curated-blog {
        color: #42C1F0;
        font-weight: 700;
      }
      
      .text-curated-blog {
        font-size: 14px;
        font-weight: 500;
        line-height: 1.29;
        color: #004B66;
      }
    }
  }
}

.subscribe_now-section {
  padding: 30px 0 0;
  background: #E9F4F6;
  
  h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.35em;
    line-height: 1.1;
    letter-spacing: -1.1px;
  }
  
  .container-curated-blog {
    padding: 0 20px;
  }
  
  .form-holder-curated-blog {
    .gform-theme,
    .gform_wrapper .form-subscribe .gform_fields {
      input[type=text],
      input[type=tel],
      input[type=email],
      input[type=search],
      input[type=password],
      textarea {
        -webkit-border-radius: 0;
        box-sizing: border-box;
        width: 100% !important;
        background: #FAF7F7;
        padding: 20px 10px;
        border: none;
        border-radius: 8px;
        font-size: 15px;
        color: #9CA3AF;
        overflow: hidden;
        outline: none;
      }
      
      input {
        width: 100%;
        outline: none;
        border-color: #fff;
        
        &:focus,
        &:focus-visible {
          border-color: #42C1F0;
        }
      }
      
      .gfield_label { 
        display: none; 
      }
    }
    
    .gform_wrapper .form-subscribe .gform_fields #field_submit input[type=submit] {
      font-size: 16px;
    }
  }
}

/* ======= Media Queries ======= */
@media (min-width: 480px) {
  .blogs-section, 
  .subscribe_now-section {
    h1 { font-size: 28px; }
    h2, h3 { font-size: 26px; }
    h4, h5, h6 { font-size: 16px; }
  }

  .subscribe_now-section .right-column-curated-blog {
    display: flex;
    justify-content: center;
  }
}

@media (min-width: 650px) {
  .blogs-section {
    .block-curated-blog { padding: 0 0 20px; }
    .block-holder-curated-blog { padding: 20px; }
    .left-column-curated-blog .additional-padding-curated-blog { padding: 0 0 30px; }
  }
}

@media (min-width: 768px) {
  .container-curated-blog { padding: 0 30px; }
  
  .blogs-section { 
    padding: 50px 0; 
    
    .columns-block-curated-blog {
      display: flex;
      gap: 50px;
    }
    
    .left-column-curated-blog {
      width: calc(47.52% - 25px);
      
      .additional-padding-curated-blog { padding: 0; }
      .img-holder-curated-blog { max-width: 550px; }
    }
    
    .right-column-curated-blog { 
      width: calc(52.48% - 25px); 
    }
  }

  .subscribe_now-section { 
    padding: 50px 0; 
    
    .columns-block-curated-blog {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 0 30px;
    }
    
    .left-column-curated-blog { 
      width: calc(49.64% - 15px); 
    }
    
    .right-column-curated-blog { 
      width: calc(50.36% - 15px); 
    }
  }
  
  .gform-theme {
    input[type=text],
    input[type=tel],
    input[type=email],
    input[type=search],
    input[type=password],
    textarea { 
      min-width: 210px; 
    }
  }
}

@media (min-width: 1024px) {
  .container-curated-blog {
    max-width: 1370px;
    margin: 0 auto;
    padding: 0 40px;
  }
  
  .blogs-section { 
    padding: 90px 0 20px; 
    
    .block-curated-blog { padding: 0 0 40px; }
    .block-holder-curated-blog { padding: 40px; }
    
    .left-column-curated-blog p { margin: 0 0 3.85em; }
    .right-column-curated-blog { padding: 46px 50px; }
  }
  
  .blogs-section,
  .subscribe_now-section {
    h1 { font-size: 34px; }
    h2 { font-size: 32px; }
    h3 { font-size: 30px; }
    h4 { font-size: 28px; }
    h5 { font-size: 26px; }
    h6 { font-size: 24px; }
  }

  .subscribe_now-section { 
    padding: 90px 0; 
    
    h1 { font-size: 36px; }
    
    .container-curated-blog {
      padding: 0 40px;
      max-width: 1190px;
    }
  }
  
  .gform-theme {
    input[type=text],
    input[type=tel],
    input[type=email],
    input[type=search],
    input[type=password],
    textarea { 
      min-width: 250px; 
    }
  }
}

@media (min-width: 1200px) {
  .gform-theme {
    input[type=text],
    input[type=tel],
    input[type=email],
    input[type=search],
    input[type=password],
    textarea { 
      min-width: 286px; 
    }
  }
}
