a{
    text-decoration: none;
    color: inherit;
}

a:hover{
    color: inherit;
}

/* Hero Section */

#hero{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
padding: 40px 0px;
background: var(--hero-gradient);
}

#hero h1{
font-weight: 700;
font-size: 48px;
margin-bottom: 16px;
color: var(--text-light);
animation: onload 0.6s ease-in-out forwards !important;
}

#hero p{
max-width: 672px;
font-size: 20px;
color: var(--text-light);
animation: onload 0.7s ease-in-out forwards !important;
}

/* Blog-Filter Section */

#blog-filter {
background-color: #fefefe;
margin-top: 18px;
}

#blog-filter .container {
display: flex;
justify-content: center;
align-items: center;
}

#blog-filter .nav {
gap: 8px;
display: flex;
justify-content: center;
align-items: center;
}

#blog-filter .nav-link {
font-weight: 600;
font-size: 12px;
padding: 2px 10px;
color: hsl(180, 5%, 15%);
cursor: pointer;
border-radius: 9999px !important;
border: 0.1px solid #ccc ;
background-color: transparent;
animation: onload 0.6s ease-in-out forwards !important;
}

#blog-filter .nav-link:hover {
background: var(--hero-gradient);
color: #fff !important;
}

#blog-filter .nav-link.active {
background: var(--hero-gradient-hover);
color: #fff;
}

/* Blogs Section */

#blogs {
background-color: #fefefe;
}

#blogs .blogs-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
padding: 32px 0;
padding-bottom: 48px;
}

.blog-card > *:nth-child(-n + 3) {
    animation: onload 0.6s ease-in-out forwards !important;
}

.blog-card {
padding: 24px;
background: #fff;
border-radius: 12px;
transition: transform 0.25s ease, box-shadow 0.25s ease;
transform: scale(1);
box-shadow: 0 6px 18px hsla(165, 75%, 25%, 0.25);
border: 0.1px solid #ccc;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
animation: appear ease-in-out;
animation-timeline: view();
animation-range: entry 0% cover 30%;
}

.blog-card:hover {
transform: scale(1.05);
box-shadow: 0 12px 32px hsla(165, 75%, 25%, 0.35);
}

.blog-card .tag{
margin-right: auto;
}

.blog-card .tag button{
border: 0.1px solid #ccc;
padding: 2px 10px;
margin-bottom: 8px;
border-radius: 9999px;
font-size: 12px;
font-weight: 600;
background-color: transparent;
cursor: text;
}

.blog-card .title{
width: 100%;
}

.blog-card .title h3{
font-size: 18px;
font-weight: 600;
margin-right: auto;
}

.blog-card .text p{
color: hsl(180 5% 45%);
font-size: 14px;
}

.blog-card .info{
display: flex;
justify-content: start;
align-items: center;
gap: 16px;
width: 100%;
padding-bottom: 11px;
padding-top: 2px;
}

.blog-card .info span{
display: flex;
justify-content: start;
align-items: center;
gap: 4px;
color: hsl(180 5% 45%);
font-size: 12px;
}

.blog-card .info span svg{
width: 12px;
height: 12px;
}

.blog-card .info-2{
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
font-size: 12px;
color: hsl(180 5% 45%);
margin-top: auto;
}

.blog-card .info-2 p{
margin-bottom: 0;
}

.blog-card .info-2 button{
font-weight: 500;
font-size: 14px;
padding: 7px 12px;
background-color: transparent;
border: 0;
border-radius: 11px;
}

.blog-card .info-2 button:hover{
color: hsl(175 60% 25%);
background-color: hsl(175 40% 92%);
}

/* Load More Section */

#load-more-btn {
margin-left: auto;
margin-right: auto;
margin-bottom: 48px;
padding: 10px 24px;
font-size: 16px;
font-weight: 600;
border-radius: 12px;
border: none;
background: var(--hero-gradient);
color: var(--text-light);
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#load-more-btn:hover {
background: var(--hero-gradient-hover);
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Subscribe Section */

#subscribe{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
padding-top: 64px;
padding-bottom: 64px;
background-color: #ebe6e0;
}

#subscribe h2{
font-weight: 700;
font-size: 30px;
margin-bottom: 16px;
color: var(--primary-color);
animation: appear ease-in-out;
animation-timeline: view();
animation-range: entry 0% cover 30%;
}

#subscribe p{
max-width: 672px;
color: var(--text-mute);
margin-bottom: 24px;
animation: appear ease-in-out;
animation-timeline: view();
animation-range: entry 0% cover 30%;
}

.search-bar {
max-width: 425px;
width: 90%;
margin: 0 auto;
animation: appear ease-in-out;
animation-timeline: view();
animation-range: entry 0% cover 30%;
}

.search-bar .input-group {
gap: 10px;
}

.search-bar .input-group input {
background-color: #f7f5f2;
color: #000;
border-radius: 10px;
border-top-right-radius: 10px !important;
border-bottom-right-radius: 10px !important;
padding: 8px 16px;
outline: none;
box-shadow: none !important;
border: 0;
}

.search-bar .input-group input::placeholder {
color: hsl(160 10% 40%);
opacity: 1;
}

.search-bar .input-group button {
border-radius: 10px;
border: 0;
border-top-left-radius: 10px !important;
border-bottom-left-radius: 10px !important;
font-size: 14px;
font-weight: 500;
background-color: var(--primary-color);
outline: none;
box-shadow: none !important;
animation: appear ease-in-out;
animation-timeline: view();
animation-range: entry 0% cover 30%;
}

.search-bar .input-group button:hover {
background-color: var(--primary-dark);
}

/* Media Query */

@media (max-width: 1024px) {
#blogs .blogs-container {
grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 768px) {
#blogs .blogs-container {
grid-template-columns: 1fr;
}


#blog-filter .container {
flex-wrap: wrap;
gap: 6px;
}
}
