/* Shared Card Styles */
.post-card,
.tips-featured-card,
.tips-list-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    height: 100%;
}

.post-card-image,
.tips-featured-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
}

.post-card-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.tips-featured-image {
    height: 800px;
}

.tips-list-card .post-card-image {
    width: 290px;
    height: 290px;
    object-fit: cover;
}

/* .post-card-tags,
.post-card-title,
.post-card-date {
    padding-left: 18px;
    padding-right: 18px;
} */

.post-card-tags {
    margin-top: 12px;
    margin-bottom: 6px;
}

/* .post-card-title {
    font-family: Nohemi;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.25;
    letter-spacing: 1.14px;
} */

.post-card-title a {
    font-family: Nohemi;
    font-size: 28px;
    color: #000;
    text-decoration: none;
    font-weight: normal;
    line-height: 1.14;
    letter-spacing: 1px;
}

.post-card-title a:hover {
    text-decoration: underline;
}

.trending-posts .post-card:first-child .post-card-title a {
    font-size: 32px;
}

.post-card-date {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 14px;
}

.post-card-tag {
    color: #231b2e;
    border-radius: 12px;
    padding: 4px 13px 3px;
    font-size: 10px;
    margin-right: 6px;
    border: 1px solid #231b2e;
    text-transform: uppercase;
    font-weight: normal;
}

/* Section Wrappers */
.latest-section,
.tips-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0;
}
.latest-section {
    /* background: #facdad; ORIGINAL COLOR*/
    background: #FDEBDE; /* NEW COLOR 40% LIGHTER */
}
.tips-section {
    /* background: #ccffca; ORIGINAL COLOR*/
    background: #EAFFE9; /* NEW COLOR 40% LIGHTER */
}
.latest-section .latest-section-inner,
.tips-section .tips-section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Section Titles */
.latest-title,
.tips-title,
.trending-title,
.tips-title {
    font-family: 'Nohemi';
    font-size: 22px;
    font-weight: 500;
    line-height: 2;
    letter-spacing: 2px;
    margin-bottom: 40px;
    text-transform: uppercase;
    color: #231b2e;
    border-bottom: 1px solid #6e6587;
}
.latest-title {
    border-color: #ccc;
}
.tips-title {
    border-bottom: 0;
}
.trending-title,
.magazine-title {
    color: #fff;
}

/* Grids */
.latest-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 32px;
    align-items: start;
}
.trending-posts {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    align-items: start;
}
.trending-posts .post-card-title a,
.trending-posts .post-card-tag {
    color: #fff;
}
.trending-posts .post-card-tag {
    border-color: #fff;
}
.tips-grid {
    display: flex;
    gap: 40px;
}
.tips-featured {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.tips-list {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: flex-start;
}

/* Magazine Section */
.magazine-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}
.magazine-header {
    margin-bottom: 30px;
    position: sticky;
    top: 44px;
    background: rgba(23,18,35,0.95) !important;
    z-index: 999;
    padding: 100px 0 0 0;
}
.magazine-header-inner {
    max-width: 1260px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
@media (max-width: 767px) {
    .magazine-header-inner {
        flex-direction: column;
    }
}
.magazine-title {
    font-family: Nohemi;
    font-size: 32px;
    font-weight: normal;
    text-transform: uppercase;
    color: #ccffca;
    line-height: 1.25;
}
.magazine-links {
    display: flex;
    align-items: center;
}
.magazine-links a {
    font-family: Nohemi;
    margin-left: 25px;
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.67;
    transition: opacity 0.2s ease;
    cursor: pointer;
}
.magazine-links a:hover {
    opacity: 0.8;
}
.instagram-link {
    display: flex;
    align-items: center;
    justify-content: center;
}
.magazine-links .instagram-link {
    font-size: 18px;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    width: 100%;
    /* display: flex; */
    /* position: relative; */
}
/* Slick carousel fix for hero section */
.hero-carousel {
    /* display: flex !important; */
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}
.slick-slider.hero-carousel,
.slick-list,
.slick-track {
    height: 100vh !important;
    min-height: 1px;
}
.hero-slide {
    display: flex !important;
    width: 100vw !important;
    height: 100vh !important;
}
.hero-slide .hero-post {
    width: 50%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}
.hero-post {
    width: 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.hero-post-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}
.hero-post-link-wrapper {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    z-index: 10;
}
.hero-post:hover .hero-post-bg {
    transform: scale(1.05);
}
/* .hero-post:hover .hero-post-link {
    background-color: #444;
} */
.hero-post-content {
    position: absolute;
    bottom: 80px;
    left: 50px;
    right: 50px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    transition: transform 0.3s ease;
    max-width: 290px;
}
.hero-post-title {
    font-family: Nohemi;
    font-size: 28px;
    margin-bottom: 15px;
    line-height: 1.14;
}
.hero-post-link {
    font-family: Nohemi;
    color: white;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
}
.hero-slide.slick-slide {
    margin-top: 0;
}
/* Trending/Lates/Tips Card Image Heights */
.trending-posts .post-card:first-child .post-card-image {
    height: 330px;
}
.trending-posts .post-card:not(:first-child) .post-card-image {
    height: 290px;
}
.latest-posts .post-card-image {
    height: 400px;
}
.tips-featured-card .tips-featured-image {
    height: 800px;
}
.tips-list-card .post-card-image {
    height: 290px;
}

/* Responsive Styles */
@media (max-width: 1100px) {
    .latest-posts {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 24px;
    }
    .tips-grid {
        flex-direction: column;
        gap: 32px;
    }
    .tips-featured-card .tips-featured-image {
        height: 280px;
    }
}
@media (max-width: 900px) {
    .trending-posts {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .trending-posts .post-card-image {
        height: 220px !important;
    }
}
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        height: auto;
    }
    .hero-post {
        width: 100%;
        height: 50vh;
    }
    .trending-posts {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .featured-post {
        grid-column: auto;
        grid-row: auto;
    }
    .latest-section .latest-section-inner,
    .tips-section .tips-section-inner {
        padding: 40px 8px 24px 8px;
    }
    .latest-title,
    .tips-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    .latest-posts {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
    }
    .latest-posts .post-card-image {
        height: 140px;
    }
    .tips-featured-card .tips-featured-image {
        height: 180px;
    }
    .tips-list-card .post-card-image {
        height: 80px;
    }
}



.bg-dark-purple {
    background-color: #171223;
}

/* Additional Tips Section Styles */
.tips-section {
    background-color: #edfcee;
}

.tips-title {
    color: #000;
    font-size: 40px;
    font-weight: normal;
    line-height: 1.1;
    letter-spacing: 2px;
}

/* .tips-section .post-card-tag {
    background-color: transparent;
    border: 1px solid #231b2e; 
    padding: 2px 8px;
    margin-bottom: 4px;
    display: inline-block;
} */

.tips-section .post-card-date {
    color: #666;
}

/* Ensure proper wrapping of content in the horizontal layout */
.tips-list-content .post-card-title {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-top: 4px;
}

/* Ensure proper image sizing */
.tips-list-card .post-card-image {
    width: 290px;
    height: 290px;
    object-fit: cover;
}

/* Tips List Horizontal Layout */
.tips-list-card {
    display: flex;
    flex-direction: row;
    margin-bottom: 15px;
    padding-bottom: 35px;
}

.tips-list-card:not(:last-child) {
    border-bottom: 1px solid #ccc;
}

.tips-list-imgwrap {
    flex: 0 0 290px;
    width: 290px;
    height: 290px;
    overflow: hidden;
}

.tips-list-content {
    flex: 1;
    padding: 0 15px;
}

.tips-list-content .post-card-tags,
.tips-list-content .post-card-title,
.tips-list-content .post-card-date {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 5px;
}

.tips-list-content .post-card-tags {
    margin-top: 0;
    margin-bottom: 20px;
}

/* Tips Featured Card */
.tips-featured-card {
    flex-direction: column;
}

.tips-featured-card .post-card-content {
    padding: 20px 0;
}

.content-area.home-custom {
    margin-top: -220px;
}

/* Newsletter Section Styles */
.newsletter-section {
    padding-top: 120px;
    width: 100%;
    background-color: #fff;
}

.newsletter-container {
    display: flex;
    background-color: #171223;
}

.newsletter-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    margin-top: -140px;
}

.newsletter-image {
    flex: 0 0 40%;
    min-height: 300px;
    max-width: 438px
}

.newsletter-content {
    flex: 0 0 60%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    
}

.newsletter-title {
    font-family: Nohemi !important;
    font-size: 30px !important;
    font-weight: normal !important;
    line-height: 1.2 !important;
    margin-bottom: 15px !important;
    color: #fff !important;
}

.newsletter-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 25px;
}

.newsletter-form .form-group {
    display: flex;
    width: 100%;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px 0 0 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.newsletter-form input[type="email"]:focus {
    border-color: #ccffca;
}

.newsletter-submit {
    padding: 12px 25px;
    background-color: #231b2e;
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-submit:hover {
    background-color: #3a2d4c;
}

/* Newsletter error and confirmation styles */
.newsletter-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 10px;
}

.newsletter-confirmation {
    font-size: 18px;
    line-height: 1.6;
    color: #2ecc71;
}

/* Responsive styles for the newsletter section */
@media (max-width: 768px) {
    .newsletter-container,
    .newsletter-inner,
    .magazine-header {
        flex-direction: column;
    }
    .magazine-title {
        margin-bottom:6px;
    }
    .magazine-links {
        flex-direction: row;
        flex-wrap: wrap;
        padding-bottom: 8px;
    }
    
    .newsletter-image {
        flex: 0 0 200px;
        min-height: 200px;
    }
    
    .newsletter-content {
        flex: 1;
        padding: 30px 20px;
    }
    
    .newsletter-title {
        font-size: 24px;
    }
    
    .newsletter-description {
        font-size: 15px;
    }
    .magazine-links a {
        font-size: 16px;
        margin-left: 10px;
    }
}


.search-dropdown {
  background: #171223 !important;
  position: absolute !important;
  left: 0;
  right: 0;
  top: 183px;
}

#search-results ul li * {
    color: #fff !important;
}

.search-dropdown input {
  background: #171223 !important;
  width: 50%;
  margin: auto;
  text-align: center;
  border-bottom: 1px solid #ccc !important;
  border-radius: 0;
  color: #fff !important;
}
@media (max-width: 767px) {
  .hero-carousel,
  .hero-slide {
    width: 100vw !important;
    max-width: 100vw !important;
  }
  .hero-slide .hero-post,
  .hero-post {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
  }
  .hero-post-bg {
    width: 100% !important;
    max-width: 100% !important;
  }
  .hero-post-content {
    width: initial !important;
  }
}
@media (max-width: 767px) {
  .hero-slide .hero-post:nth-child(2) {
    display: none !important;
  }
  .hero-slide .hero-post {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    display: block !important;
  }
}

.blog .site-footer .wp-block-image a::before {
  content: url("data:image/svg+xml,%3Csvg viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg' class='footer__badge'%3E%3Cpath d='M20 39.048C9.48 39.048.952 30.52.952 20 .952 9.48 9.48.952 20 .952 30.52.952 39.048 9.48 39.048 20c0 10.52-8.528 19.048-19.048 19.048zm6.667-22.858v-4.76H13.333v17.14h4.762v-5.735l7.62.021v-4.762h-7.687V16.19h8.639z' fill='%23FFFFFF' fill-rule='evenodd'%3E%3C/path%3E%3C/svg%3E");
  top: -8px;
}

.latest-posts.loading,
.tips-list.loading,
.pagination-wrapper.loading {
    opacity: 0.6;
    position: relative;
    pointer-events: none;
}

.latest-posts.loading:after,
.tips-list.loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: #000;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.home-custom .site-main {
    position: relative;
}
