/**
 * Custom styles for the front page
 * Color Palette: Fresh Greens
 * Primary: Sage Green (#6B9080)
 * Secondary: Forest Green (#4D7063)
 * Dark: Deep Green (#2D4739)
 * Light: Mint Cream (#F6FFF8)
 * Neutral: Pale Sage (#CCE3DE)
 */

/* General Styles */
body {
    font-family: 'Nunito', sans-serif;
    color: #2D4739;
    font-weight: 400;
    background-color: #F6FFF8;
}

h1, h2, h3, h4, h5, h6, .section-title, .recipe-title, .btn-primary {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.dr-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #6B9080;
    border-radius: 3px;
}

.text-center {
    text-align: center;
}

.btn-primary {
    display: inline-block;
    background-color: #6B9080;
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #6B9080;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background-color: transparent;
    color: #6B9080 !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(107, 144, 128, 0.3);
}

/* Section Spacing */
section {
    padding: 40px 0;
    width: 100%;
    position: relative;
}

/* Removed unused full-width section styles */

/* Hero Section - Modern Design */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(107, 144, 128, 0.1) 0%, rgba(45, 71, 57, 0.05) 100%), #F6FFF8;
    padding: 40px 0 25px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Hero Text Area */
.hero-text-area {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.hero-main-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2D4739;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #4D7063;
    margin-bottom: 30px;
    line-height: 1.5;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #6B9080 !important;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #6B9080;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-secondary:hover {
    background-color: rgba(107, 144, 128, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(107, 144, 128, 0.2);
}

/* Hero Featured Grid */
.hero-featured-grid {
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 10px 5px 30px;
}

.hero-grid-item {
    transition: transform 0.3s ease;
}

.hero-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(45, 71, 57, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.hero-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(45, 71, 57, 0.15);
}

.hero-card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-card-content {
    padding: 20px;
}

.hero-card-category {
    display: inline-block;
    background-color: #6B9080;
    color: white;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-card-title {
    font-size: 1.2rem;
    margin: 0 0 15px 0;
    font-weight: 600;
    line-height: 1.4;
    color: #2D4739;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.trending-item-excerpt {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending.latest-item-excerpt {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-featured-item .latest-item-excerpt {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 15px;
    opacity: 0.9;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.latest-featured-item:hover .latest-item-excerpt {
    opacity: 1;
    transform: translateY(-3px);
}

.trending-featured-item .trending-item-excerpt {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 15px;
    opacity: 0.9;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.trending-featured-item:hover .trending-item-excerpt {
    opacity: 1;
    transform: translateY(-3px);
}

.hero-card-meta {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #4D7063;
}

.hero-card-date {
    display: flex;
    align-items: center;
}

.hero-card-date:before {
    content: '📅';
    margin-right: 5px;
    font-size: 1rem;
}



/* Responsive Styles */
@media (max-width: 992px) {
    .hero-main-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0 25px;
    }
    
    .hero-main-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero-main-title {
        font-size: 1.8rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

.hero-card-author {
    font-style: italic;
}

.hero-card-date {
    font-weight: 500;
}

.recipe-card {
    flex: 1;
    min-width: 250px;
    max-width: 380px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(44, 53, 70, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 20px;
    border: 1px solid #D9DDE4;
    position: relative;
}

.recipe-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 45px rgba(44, 53, 70, 0.12);
    border-color: #6B9080;
}

.recipe-card.small {
    min-width: 200px;
    max-width: 250px;
}

.recipe-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.recipe-image-wrapper {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.recipe-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.recipe-card:hover .recipe-image {
    transform: scale(1.05);
}

.recipe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    background-image: radial-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(2px);
}

.recipe-card:hover .recipe-overlay {
    opacity: 1;
}

.recipe-card:hover .recipe-view {
    transform: translateY(0);
}

.recipe-view {
    color: #fff;
    background-color: rgba(92, 110, 145, 0.9);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(92, 110, 145, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    transform: translateY(5px);
}

.recipe-view:hover {
    background-color: rgba(92, 110, 145, 1);
    box-shadow: 0 10px 25px rgba(92, 110, 145, 0.6);
    transform: translateY(0) scale(1.05);
}

.hero-image {
    height: 400px;
}

.tall-image {
    height: 450px;
}

.recipe-card.small .recipe-image {
    height: 180px;
}

.recipe-title {
    padding: 22px 18px;
    margin: 0;
    font-size: 1.25rem;
    text-align: center;
    font-weight: 600;
    color: #2D4739;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    background-color: #CCE3DE;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.recipe-card:hover .recipe-title {
    color: #6B9080;
    background-color: #F6FFF8;
    transform: scale(1.02);
}

/* About Section - Simple Card Design */
.about-section {
    background-color: #F6FFF8;
    padding: 40px 0;
    position: relative;
}

.about-section .section-title {
    margin-bottom: 40px;
    color: #2D4739;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.about-card {
    display: flex;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(107, 144, 128, 0.15);
    max-width: 1000px;
    margin: 0 auto;
}

.about-image {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.about-card:hover .about-image img {
    transform: scale(1.05);
}

.about-text {
    flex: 0 0 60%;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.about-text h3 {
    color: #2D4739;
    font-size: 1.8rem;
    margin: 0 0 20px 0;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.about-text h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #6B9080;
}

.about-text p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.about-highlights {
    display: flex;
    gap: 15px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(107, 144, 128, 0.1);
    padding: 10px 15px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background-color: rgba(107, 144, 128, 0.2);
    transform: translateY(-3px);
}

.highlight-icon {
    font-size: 1.2rem;
}

.highlight-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2D4739;
}

.about-button {
    align-self: flex-start;
    display: inline-block;
    background-color: #6B9080;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.about-button:hover {
    background-color: #2D4739;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(107, 144, 128, 0.3);
}

/* Responsive styles for about section */
@media (max-width: 992px) {
    .about-card {
        max-width: 90%;
    }
    
    .about-text {
        padding: 30px;
    }
    
    .about-text h3 {
        font-size: 1.6rem;
    }
    
    .about-highlights {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .about-card {
        flex-direction: column;
    }
    
    .about-image {
        flex: 0 0 250px;
    }
    
    .about-text {
        flex: 1;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .about-section {
        padding: 40px 0;
    }
    
    .about-section .section-title {
        font-size: 1.7rem;
        margin-bottom: 30px;
    }
    
    .about-text {
        padding: 25px 20px;
    }
    
    .about-text h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .about-text p {
        margin-bottom: 20px;
    }
    
    .about-highlights {
        gap: 10px;
        margin-bottom: 25px;
    }
    
    .highlight-item {
        padding: 8px 12px;
    }
    
    .highlight-text {
        font-size: 0.8rem;
    }
}

/* Trending Recipes Section - Magazine Style */
.trending-recipes-section {
    padding: 40px 0;
    background-color: #FFFFFF;
    position: relative;
}

.trending-header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.trending-subtitle {
    color: #6B9080;
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

/* Magazine Layout */
.trending-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 15px;
    margin-bottom: 30px;
}

.trending-featured-item {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(107, 144, 128, 0.15);
    background-color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 280px;
}

.trending-regular-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(107, 144, 128, 0.1);
    background-color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trending-featured-item:hover,
.trending-regular-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(107, 144, 128, 0.2);
}

.trending-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.trending-featured-item .trending-item-link {
    position: relative;
    height: 100%;
}

.trending-featured-item .trending-item-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
    transition: background-color 0.3s ease;
}

.trending-featured-item:hover .trending-item-link::before {
    background-color: rgba(0, 0, 0, 0.3);
}

.trending-item-image {
    position: relative;
    overflow: hidden;
}

.trending-featured-item .trending-item-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.trending-regular-item .trending-item-image {
    height: 150px;
}

.trending-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.trending-featured-item:hover .trending-item-image img {
    transform: scale(1.08);
    transition: transform 0.8s ease;
}

.trending-regular-item:hover .trending-item-image img {
    transform: scale(1.05);
}

.trending-rank-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 30px;
    height: 30px;
    background-color: #6B9080;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(107, 144, 128, 0.3);
    z-index: 2;
}

.trending-featured-item .trending-rank-badge {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    background-color: #6B9080;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.trending-item-content {
    padding: 15px;
}

.trending-featured-item .trending-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.2) 80%, rgba(0, 0, 0, 0) 100%);
    color: white;
    z-index: 2;
    transition: all 0.4s ease;
}

.trending-featured-item:hover .trending-item-content {
    padding-bottom: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.3) 80%, rgba(0, 0, 0, 0) 100%);
}

.trending-meta-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    align-items: center;
}

.trending-category {
    color: #6B9080;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trending-cooking-time {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 0.8rem;
}

.trending-cooking-time svg {
    color: #6B9080;
}

.trending-item-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #2D4739;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.trending-featured-item .trending-item-title {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 12px;
}

.trending-item-link:hover .trending-item-title {
    color: #6B9080;
}

.trending-featured-item .trending-item-link:hover .trending-item-title {
    color: #A7D1BD;
}

.trending-featured-item .trending-category,
.trending-featured-item .trending-cooking-time,
.trending-featured-item .trending-date,
.trending-featured-item .trending-views {
    color: rgba(255, 255, 255, 0.9);
}

.trending-item-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.trending-meta-bottom {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.8rem;
    margin-top: 15px;
}

.trending-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

.trending-views svg {
    color: #6B9080;
}

.trending-view-all {
    text-align: center;
    margin-top: 20px;
}

.trending-view-all-button {
    display: inline-block;
    background-color: transparent;
    border: 2px solid #6B9080;
    color: #6B9080;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.trending-view-all-button:hover {
    background-color: #6B9080;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(107, 144, 128, 0.3);
}

/* Responsive styles for trending section */
@media (max-width: 1200px) {
    .trending-layout {
        gap: 20px;
    }
    
    .trending-featured-item .trending-item-image {
        height: 350px;
    }
}

@media (max-width: 992px) {
    .trending-recipes-section {
        padding: 60px 0;
    }
    
    .trending-layout {
        grid-template-columns: 1fr 1fr;
    }
    
    .trending-featured-item {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }
    
    .trending-featured-item .trending-item-image {
        height: 300px;
    }
    
    .trending-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .trending-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .trending-featured-item {
        grid-column: 1;
    }
    
    .trending-featured-item .trending-item-image {
        height: 250px;
    }
    
    .trending-regular-item .trending-item-image {
        height: 200px;
    }
    
    .trending-featured-item .trending-item-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .trending-recipes-section {
        padding: 50px 0;
    }
    
    .trending-header {
        margin-bottom: 30px;
    }
    
    .trending-title {
        font-size: 1.8rem;
    }
    
    .trending-description {
        font-size: 1rem;
    }
    
    .trending-featured-item .trending-item-content,
    .trending-regular-item .trending-item-content {
        padding: 15px;
    }
    
    .trending-featured-item .trending-item-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .trending-item-excerpt {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
}

/* Add JavaScript for the slider functionality */
@media (max-width: 768px) {
    .trending-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .trending-nav {
        align-self: center;
    }
    
    .trending-item {
        flex: 0 0 260px;
    }
    
    .trending-title {
        font-size: 1.8rem;
    }
    
    .trending-background {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .trending-recipes-section {
        padding: 40px 0;
    }
    
    .trending-item {
        flex: 0 0 220px;
    }
    
    .trending-item-image {
        height: 160px;
    }
    
    .trending-title {
        font-size: 1.5rem;
    }
    
    .trending-background {
        height: 200px;
    }
}

/* Latest Recipes Section - Magazine Style */
.latest-recipes-section {
    padding: 40px 0;
    background-color: #F8F9FA;
    position: relative;
    border-top: 1px solid rgba(107, 144, 128, 0.1);
    border-bottom: 1px solid rgba(107, 144, 128, 0.1);
}

.latest-header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}
.latest-subtitle {
    color: #6B9080;
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 15px;
    letter-spacing: 0.5px;
    font-family: 'Nunito', sans-serif;
}

/* Magazine Layout */
.latest-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 15px;
    margin-bottom: 30px;
}

.latest-featured-item {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(107, 144, 128, 0.15);
    background-color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 280px;
}

.latest-regular-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(107, 144, 128, 0.1);
    background-color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.latest-featured-item:hover,
.latest-regular-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(107, 144, 128, 0.2);
}

.latest-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.latest-featured-item .latest-item-link {
    position: relative;
    height: 100%;
}

.latest-featured-item .latest-item-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
    transition: background-color 0.3s ease;
}

.latest-featured-item:hover .latest-item-link::before {
    background-color: rgba(0, 0, 0, 0.3);
}

.latest-item-image {
    position: relative;
    overflow: hidden;
}

.latest-featured-item .latest-item-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.latest-regular-item .latest-item-image {
    height: 150px;
}

.latest-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.latest-featured-item:hover .latest-item-image img {
    transform: scale(1.08);
    transition: transform 0.8s ease;
}

.latest-regular-item:hover .latest-item-image img {
    transform: scale(1.05);
}

.latest-rank-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #6B9080;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(107, 144, 128, 0.3);
}

.latest-item-content {
    padding: 15px;
}

.latest-featured-item .latest-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.2) 80%, rgba(0, 0, 0, 0) 100%);
    color: white;
    z-index: 2;
    transition: all 0.4s ease;
}

.latest-featured-item:hover .latest-item-content {
    padding-bottom: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.3) 80%, rgba(0, 0, 0, 0) 100%);
}

.latest-meta-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    align-items: center;
}

.latest-category {
    color: #6B9080;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.latest-featured-item .latest-category,
.latest-featured-item .latest-cooking-time,
.latest-featured-item .latest-date,
.latest-featured-item .latest-views {
    color: rgba(255, 255, 255, 0.9);
}

.latest-cooking-time {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 0.8rem;
}

.latest-cooking-time svg {
    color: #6B9080;
}

.latest-item-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #2D4739;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.latest-featured-item .latest-item-title {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 12px;
}

.latest-item-link:hover .latest-item-title {
    color: #6B9080;
}

.latest-featured-item .latest-item-link:hover .latest-item-title {
    color: #A7D1BD;
}

.latest-item-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.latest-featured-item .latest-item-excerpt {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 15px;
    opacity: 0.9;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.latest-featured-item:hover .latest-item-excerpt {
    opacity: 1;
    transform: translateY(-3px);
}

.latest-meta-bottom {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.8rem;
    margin-top: 15px;
}

.latest-featured-item .latest-meta-bottom {
    color: rgba(255, 255, 255, 0.75);
}

.latest-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

.latest-views svg {
    color: #6B9080;
}

.latest-view-all {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.latest-view-all-button {
    display: inline-block;
    background-color: #6B9080;
    color: white;
    padding: 14px 35px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 10px rgba(107, 144, 128, 0.2);
}

.latest-view-all-button:hover {
    background-color: #4D7063;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(107, 144, 128, 0.3);
}

/* Responsive styles for latest section */
@media (max-width: 1200px) {
    .latest-layout {
        gap: 20px;
    }
    
    .latest-featured-item .latest-item-image {
        height: 250px;
    }
}

@media (max-width: 992px) {
    .latest-layout {
        grid-template-columns: 1fr 1fr;
    }
    
    .latest-featured-item {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }
    
    .latest-featured-item .latest-item-image {
        height: 250px;
    }
    
    .latest-featured-item .latest-item-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .latest-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .latest-featured-item {
        grid-column: 1;
    }
    
    .latest-featured-item .latest-item-image {
        height: 220px;
    }
    
    .latest-regular-item .latest-item-image {
        height: 200px;
    }
    
    .latest-featured-item .latest-item-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .latest-subtitle {
        font-size: 1rem;
    }
    
    .latest-featured-item .latest-item-content,
    .latest-regular-item .latest-item-content {
        padding: 15px;
    }
    
    .latest-featured-item .latest-item-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .latest-item-excerpt {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
}

.latest-item-meta {
    display: flex;
    justify-content: space-between;
    color: #2D4739;
    font-size: 0.85rem;
}

.latest-item-time, .latest-item-difficulty {
    display: flex;
    align-items: center;
    gap: 5px;
}

.latest-item-time svg, .latest-item-difficulty svg {
    color: #6B9080;
}

.latest-cta {
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .latest-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .latest-nav {
        align-self: center;
    }
    
    .latest-item {
        flex: 0 0 260px;
    }
    
    .latest-title {
        font-size: 1.8rem;
    }
    
    .latest-background {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .latest-item {
        flex: 0 0 220px;
    }
    
    .latest-item-image {
        height: 160px;
    }
    
    .latest-title {
        font-size: 1.5rem;
    }
    
    .latest-background {
        height: 200px;
    }
}

/* Popular Categories Section - Circular Card Design */
.popular-categories-section {
    padding: 40px 0;
    background-color: #f8f9fa;
    position: relative;
}

.popular-categories-section .categories-header {
    text-align: center;
    margin-bottom: 50px;
}

.popular-categories-section .categories-subtitle {
    color: #6B9080;
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

/* Circle Container Layout */
.categories-circle-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.categories-circle-wrap {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* Circle Item Styling */
.category-circle-item {
    width: 280px;
    transition: all 0.4s ease;
}

.category-circle-item:hover {
    transform: translateY(-10px);
}

.category-circle-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

/* Circle Image Styling */
.circle-image-wrap {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
}

.circle-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(107, 144, 128, 0.2);
    border: 8px solid white;
    transition: all 0.4s ease;
}

.category-circle-link:hover .circle-image {
    box-shadow: 0 15px 40px rgba(107, 144, 128, 0.3);
    transform: scale(1.05);
}

.circle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-circle-link:hover .circle-image img {
    transform: scale(1.1);
}

.circle-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background-color: #6B9080;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 5px 15px rgba(107, 144, 128, 0.3);
    border: 4px solid white;
    transition: all 0.3s ease;
}

.category-circle-link:hover .circle-icon {
    transform: rotate(15deg) scale(1.1);
}

/* Circle Content Styling */
.circle-content {
    text-align: center;
    padding: 0 15px;
}

.circle-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #2D4739;
    transition: color 0.3s ease;
}

.category-circle-link:hover .circle-title {
    color: #6B9080;
}

.circle-desc {
    font-size: 0.95rem;
    color: #6c757d;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.circle-count {
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(107, 144, 128, 0.1);
    color: #6B9080;
    font-weight: 600;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.category-circle-link:hover .circle-count {
    background-color: #6B9080;
    color: white;
}

/* Info Panel Styling */
.categories-info-panel {
    background-color: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.info-panel-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2D4739;
    margin-bottom: 20px;
}

.info-panel-text {
    font-size: 1.05rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.info-panel-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #6B9080;
    color: white;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(107, 144, 128, 0.2);
}

.info-panel-button:hover {
    background-color: #5a7a6b;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(107, 144, 128, 0.3);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .categories-circle-wrap {
        gap: 20px;
    }
    
    .category-circle-item {
        width: 250px;
    }
    
    .circle-image-wrap {
        width: 180px;
        height: 180px;
    }
    
    .circle-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .circle-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .categories-circle-wrap {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .category-circle-item {
        width: 100%;
        max-width: 300px;
    }
    
    .circle-image-wrap {
        width: 200px;
        height: 200px;
    }
    
    .categories-info-panel {
        padding: 30px 20px;
    }
    
    .info-panel-title {
        font-size: 1.6rem;
    }
    
    .info-panel-text {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .circle-image-wrap {
        width: 180px;
        height: 180px;
    }
    
    .circle-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .circle-title {
        font-size: 1.3rem;
    }
    
    .circle-desc {
        font-size: 0.9rem;
    }
    
    .info-panel-title {
        font-size: 1.4rem;
    }
    
    .info-panel-text {
        font-size: 0.95rem;
    }
    
    .info-panel-button {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
}

/* Recipe Categories Section - Simple Horizontal Cards */
.recipe-categories-section {
    background-color: #F6FFF8;
    padding: 40px 0;
}

.recipe-categories-section .section-title {
    color: #2D4739;
    margin-bottom: 40px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    position: relative;
}

.recipe-categories-section .section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #6B9080;
}

/* Simple Categories Layout - Two Columns */
.simple-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

.simple-category-item {
    display: flex;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100px;
}

.simple-category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.simple-category-image {
    width: 100px;
    height: 100px;
    overflow: hidden;
    flex-shrink: 0;
}

.simple-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.simple-category-item:hover .simple-category-image img {
    transform: scale(1.1);
}

.simple-category-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-grow: 1;
}

.simple-category-text h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2D4739;
    font-family: 'Poppins', sans-serif;
    transition: color 0.3s ease;
}

.simple-category-item:hover .simple-category-text h3 {
    color: #6B9080;
}

.simple-category-arrow {
    font-size: 1.5rem;
    color: #6B9080;
    transition: transform 0.3s ease;
}

.simple-category-item:hover .simple-category-arrow {
    transform: translateX(5px);
}

/* Responsive styles for two-column categories */
@media (max-width: 992px) {
    .recipe-categories-section {
        padding: 40px 0;
    }
    
    .simple-categories {
        grid-gap: 15px;
        max-width: 800px;
    }
    
    .simple-category-item {
        height: 90px;
    }
    
    .simple-category-image {
        width: 90px;
        height: 90px;
    }
    
    .simple-category-text h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .recipe-categories-section {
        padding: 40px 0;
    }
    
    .simple-categories {
        grid-gap: 12px;
        max-width: 600px;
    }
    
    .simple-category-item {
        height: 80px;
    }
    
    .simple-category-image {
        width: 80px;
        height: 80px;
    }
    
    .simple-category-text {
        padding: 0 15px;
    }
    
    .simple-category-text h3 {
        font-size: 1rem;
    }
    
    .simple-category-arrow {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .simple-categories {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 0 15px;
        grid-gap: 10px;
    }
    
    .simple-category-item {
        height: 70px;
    }
    
    .simple-category-image {
        width: 70px;
        height: 70px;
    }
    
    .simple-category-text {
        padding: 0 10px;
    }
    
    .simple-category-text h3 {
        font-size: 0.95rem;
    }
    
    .simple-category-arrow {
        font-size: 1.2rem;
    }
}

/* Featured In Section */
.featured-in-section {
    background-color: #F6FFF8;
    padding: 40px 0;
}

.featured-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.featured-logo {
    max-height: 60px;
    max-width: 180px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.featured-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Newsletter Section */
.newsletter-section {
    background-color: #6B9080;
    color: #fff;
    padding: 40px 0;
}

.newsletter-section .section-title {
    color: #fff;
    text-align: center;
}

.newsletter-section .section-title:after {
    background-color: #CCE3DE;
}

.newsletter-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-description {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.newsletter-input {
    flex: 1;
    min-width: 250px;
    padding: 12px 15px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-family: inherit;
}

.newsletter-section .btn-primary {
    background-color: #000;
    color: #fff !important;
    border-color: #000;
    margin-top: 0;
    border-radius: 0;
}

.newsletter-section .btn-primary:hover {
    background-color: #000;
    color: #fff !important;
    border-color: #000;
}

/* Responsive Adjustments */


@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }
    
    .dr-category-image-wrap {
        max-width: 180px;
    }
    
    .hero-card-title {
        font-size: 1.6rem;
    }
    
    .hero-secondary-item .hero-card-title {
        font-size: 1.2rem;
    }
    
    .hero-main-feature .hero-card {
        min-height: 500px;
    }
    
    .about-features-row {
        gap: 15px;
    }
    
    .about-feature-box {
        padding: 15px;
    }
    
    .herb-icon {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-main-feature {
        grid-column: 1;
        grid-row: 1;
    }
    
    .hero-secondary-features {
        grid-column: 1;
        grid-row: 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    
    .hero-secondary-item:first-child {
        grid-column: 1 / span 2;
        grid-row: 1;
    }
    
    .hero-secondary-item:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }
    
    .hero-secondary-item:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }
    
    .hero-main-feature .hero-card {
        min-height: 400px;
    }
    
    .hero-card {
        min-height: 250px;
    }
    
    .about-section {
        padding: 40px 0;
    }
    
    .about-subtitle {
        font-size: 1rem;
    }
    
    .about-content {
        flex-direction: column-reverse;
        gap: 30px;
    }
    
    .about-text-column,
    .about-image-column {
        width: 100%;
    }
    
    .about-image-frame {
        max-width: 450px;
        margin: 0 auto;
    }
    
    .about-features-row {
        gap: 15px;
    }
    
    .about-feature-box {
        min-width: 120px;
        padding: 15px;
    }
    
    /* Removed unused recipe card responsive styles */
    
    .dr-recipe-categories-row {
        gap: 30px;
    }
    
    .dr-recipe-category-item {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
    
    .dr-category-image-wrap {
        width: 150px;
        height: 150px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-input, .newsletter-section .btn-primary {
        width: 100%;
    }
}

@media (max-width: 576px) {
    section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .hero-secondary-features {
        grid-template-columns: 1fr;
    }
    
    .hero-secondary-item:first-child,
    .hero-secondary-item:nth-child(2),
    .hero-secondary-item:nth-child(3) {
        grid-column: 1;
        grid-row: auto;
    }
    
    .hero-card-title {
        font-size: 1.4rem;
    }
    
    .hero-card {
        min-height: 200px;
    }
    
    .hero-main-feature .hero-card {
        min-height: 350px;
    }
    
    .hero-card-overlay {
        padding: 20px 15px;
    }
    
    .recipe-card.small {
        min-width: 100%;
    }
    
    .dr-recipe-category-item {
        width: 100%;
        max-width: 100%;
    }
}