/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Afacad', serif;
    background-color: #F0D9C2;
    line-height: 1.6;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-bottom: 0;
}

.hero-bg{
    position:absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-content {
    position: relative; 
    z-index: 1;        
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; 
    height: 100%;          
    padding: 5%;
    box-sizing: border-box;  

}

.hero-title {
    font-family: 'Afacad', serif;
    font-size: clamp(60px, 8vw, 105px);
    color: #ffffff;
    position: absolute;
    top: 70%;
    right: 10%;
    text-shadow: 2px 2px #000000;
    
}

.hero-text {
    font-family: 'Afacad', serif;
    font-size: clamp(40px, 3vw, 60px);
    line-height: 1.2;
    color: #ffffff;
    position: absolute;
    bottom: 5%;
    text-align: right;
    right: 5%;
    text-shadow: 2px 2px #4A3828;
}

.special-tag {
    background-color: #920909;
    color: #fff;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: clamp(18px, 2vw, 30px);
    display: inline-block;
    margin-top: 10px;
}

.read-click {
    position: absolute;
    bottom: 5%;
    left: 5%;
    background: transparent;
    color: #fff;
    font-size: clamp(18px, 2vw, 30px);
    border: none;
    text-decoration: underline;
    cursor: pointer;
}



/* Sustainability Section */
.sustainability {
    background-color: #B29F89;  
    color: #FFFFFF;  
    padding: 50px 5%; 
    text-align: center; 
    margin: 40px auto;  
    width: 80%;  
    border-radius: 12px;  
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);  
    transition: all 0.3s ease; 
}

/* Sustainability Section Heading */
.sustainability h1 {
    font-size: clamp(1.8em, 5vw, 2.5em);  
    font-weight: bold;  
    margin-bottom: 20px;  
}

/* Sustainability Section Paragraph */
.sustainability p {
    font-size: clamp(1em, 3vw, 1.2em);  
    line-height: 1.6;  
    margin: 0 auto 30px auto;  
    max-width: 700px; 
}

/* Button Container in Sustainability Section */
.buttons {
    display: flex; 
    justify-content: center;  
    gap: 20px; 
    flex-wrap: wrap;  
}

/* Button Styling */
button {
    background-color: #F4F0EC;
    color: #4A3828;  
    border: none; 
    padding: 12px 24px;  
    font-size: 1em;  
    cursor: pointer; 
    border-radius: 5px; 
    font-weight: bold;  
    transition: background-color 0.3s ease, transform 0.3s ease;  
}

/* Button Hover Effect */
button:hover {
    background-color: #E0D6CE; 
    transform: translateY(-3px);  
}

/* Trending Section */
.trending {
    text-align: center;  
    font-size: 60px; 
    margin: 10px 0;  
    color: #5c4033; 
}

/* Trending Container (Grid Layout) */
.trending-container {
    display: grid;  
    gap: 10px;  
    grid-template-columns: 2fr 1fr;  
    grid-template-rows: 1fr 1fr; 
    max-width: 85%; 
    height: 900px;  
    margin: 0 auto; 
    padding: 20px;  
    overflow: hidden;
    
}

/* Card Styling */
.card {
    position: relative;  
    overflow: hidden;  
    border-radius: 8px;  
    height: 100%;  
}

/* Card Image Styling */
.card img {
    width: 100%; 
    height: 100%;  
    object-fit: cover;  
    display: block; 
    transition: all 0.5s ease-in-out; 
}

/* Card Hover Effect */
.card:hover {
    transform: translateY(-3px); 
}

/* Grid Positioning for Cards */
.card.item1 {
    grid-column: 1 / 2; 
    grid-row: 1 / 3;    
}

.card.item2 {
    grid-column: 2 / 3;  
    grid-row: 1 / 2;    
}

.card.item3 {
    grid-column: 2 / 3;  
    grid-row: 2 / 3;  
      
}

.card.item1 img{
    object-position: bottom;
}

.card.item2 img{
    object-position: bottom;
}

.card.item3 img{
    object-position: bottom;
}

/* Overlay Text on Cards */
.overlay {
    position: absolute;  
    bottom: 10px; 
    left: 20px; 
    color: #fff;  
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);  
}

/* Overlay Title */
.overlay h2 {
    font-size: clamp(25px, 3vw, 40px);  
    margin: 0;  
}

/* Read More Link */
.read-more {
    font-size: clamp(18px, 2vw, 30px);  
    color: #fff;  
    text-decoration: none;  
    display: inline-block; 
    margin-top: 0; 
}

/* Read More Hover Effect */
.read-more:hover {
    text-decoration: underline; 
}

/* Responsive Design for Smaller Viewports */
@media (max-width: 768px) {
    /* Adjustments for Small Screens */
    .main-heading {
        font-size: 30px;  
    }

    .main-text {
        font-size: 20px; 
    }

    .btn {
        font-size: 4vw;  
    }

    /* Trending Container (Stack items on small screens) */
    .trending {
        font-size: 40px;
    }

    .trending-container {
        grid-template-columns: 1fr;  
        grid-template-rows: repeat(3, 300px); 
        height: auto; 
        transition: all 0.5s ease;
    }

    /* Adjust Grid Positioning for Cards */
    .card.item1 {
        grid-column: 1 / 2;  
        grid-row: 1 / 2;     
        transition: all 0.5s ease;
    }

    .card.item2 {
        grid-column: 1 / 2; 
        grid-row: 2 / 3;     
        transition: all 0.5s ease;
    }

    .card.item3 {
        grid-column: 1 / 2; 
        grid-row: 3 / 4;     
        transition: all 0.5s ease;
    }
}
