body{
    background-color: transparent;
    font-family: 'NUNITO', sans-serif;
    margin: 0;
}

h1{
    color:black;
}

html, body {
  margin: 0;
  padding: 0;
  background-color:#FAF7F0; 
}

.topnav{
  position: relative;

  display: flex;          
  align-items: center;   
         
  padding: 8px 16px;

  border-bottom: 1px solid #cccccc;
  background: transparent; 
  transition: all 0.4s;
} 


.logo {
  width: 120px;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  flex-shrink: 0;
}


.navLinks{
  list-style: none;

  margin: 0;          
  padding: 0;

  display: flex;
  gap: 40px;              

  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  z-index: 2;
}

.navLinks li{
  display: block;
}

.navLinks a{
  text-decoration: none;
  color: black;
  display: block;
  padding: 10px 12px;
  font-size: 15px;
  text-transform: uppercase;
  font-weight: bold;
  white-space: nowrap;
}


.topnav a:hover{
  transform: scale(1.5);
}

@media (max-width: 768px) {

    .topnav {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;

        padding: 8px 12px;
    }

    .logo {
        width: 90px;
        height: 60px;

        object-fit: contain;
        align-self: center;
    }

    .navLinks {
        position: static;
        left: auto;
        transform: none;

        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;

        width: auto;

        gap: 18px;
        margin-left: auto;
    }

    .navLinks li {
        display: block;
    }

    .navLinks a {
        font-size: 13px;
        padding: 6px 4px;
        white-space: nowrap;
    }
}

.blog-section{
    width: 100%;

}

.blog-section .section-content{
    width:85%;
    margin:0 auto;
}

.blog-section .section-content .title{
    width:100%;
    margin: 0 auto;
    text-align: center;
    text-decoration: none;
    padding: 15px 10px;
    font-size: 30px;
    box-sizing: border-box;
   
    

}

.blog-section .section-content .title h2{
    color:black;
    font-family: Georgia, sans-serif;
}

@media (max-width: 768px) {
    .blog-section .section-content .title {
        font-size: 26px;
        padding: 16px 10px;
    }
}

@media (max-width: 480px) {
    .blog-section .section-content .title {
        font-size: 22px;
        padding: 12px 8px;
    }
}

.blog-section .section-content .cards{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 50px auto;
    padding: auto;
}

.blog-section .section-content .cards .card{
   width: 100%;
   background-color: rgba(255, 255, 255, 0.8);
   position: relative;
   border-radius: 20px;
   overflow: hidden;
}
.blog-section .section-content .cards .card .blog-card-image{
    padding-top: 100px;
}

.blog-section .section-content .cards .card  .blog-card-image img{
    width: 100%;
    height: 220px;

    object-fit:contain;
    display: block;
    margin: 0 auto;
}


.blog-section .section-content .cards .card .article{
    padding: 15px 20px;
}

.blog-section .section-content .cards .card h4{
    font-size: 20px;
    margin: 10px 0px;
    color: black;
}

.blog-section .section-content .cards .card a{
    text-decoration: none;
    display: inline-block;
    background: #BE3127;
    padding: 8px 14px;
    

    margin-left: 20px;
    color:white;
    
    border: 1px solid #BE3127;
    border-radius: 6px;

    margin-bottom:30px;
}

.blog-section .section-content .cards .card a:hover{
   background: transparent;
    color: #BE3127;
}

.blog-section .section-content .cards .card .posted-date p{
    font-weight: 600;
    position: absolute;
    top:0;
    left:0;
    margin: 0;
   
    background: rgba(168, 181, 162, 0.1);
    color: #4F5C49;
    padding: 6px 15px;
}   




@media screen and (max-width:992px){
    .blog-section .section-content .cards{
    grid-template-columns: repeat(2, 1fr);
   
}
}

@media screen and (max-width:768px){
    .blog-section .section-content .cards{
    grid-template-columns: 1fr;
   
}
}



.frosted {
    width: 80%;
    display: flex;
    flex-direction: row;
    gap: 50px;
    min-height: 100px;
  
    margin: 40px auto;
    justify-content: center;
    background: rgba(255, 255, 255, 0.281) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);

    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px){
  .frosted{
    flex-direction: column;
    width: 85%;
    gap: 20px;
    padding: 20px;
  }
  .profile-pic{
    display: block;
    margin: 0 auto;
  }
}

.post-page {
  max-width: 850px;
  margin: 120px auto 60px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  line-height: 1.8;
}

.post-date {
  display: inline-block;
  background-color: rgba(168, 181, 162, 0.1);
   color: #66725F;
  padding: 10px 16px;
  font-weight: bold;
  margin-bottom: 20px;
}

.post-page h1 {
  font-size: 42px;
  margin-bottom: 20px;
}

.post-page img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  margin: 20px 0;
}

.post-page h2,
.post-page h3 {
  margin-top: 30px;
}

.post-page p {
  font-size: 17px;
}

.highlight{
  color:#BE3127;
  font-size: 38px;
  display: inline;
  text-align: center;
  font-style: italic;
  font-weight: normal;
}

.hero{
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding-top:80px;
}

.hero-tag{
  font-size: 18px;
  color: #BE3127;
  background-color: #f8e9e5;
  padding: 8px 14px;
  border-radius: 20px;
}

.hero-title{
  text-align: center;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 30px;
  line-height: 1.5;
  white-space: nowrap;
  
}

.hero-description{
  max-width: 400px;
  margin-top: 25px;
  line-height: 1.5;
  text-align: center;
  color:#413C38;
}

.hero-button{
  display: inline-block;
  margin-top: 30px;
  padding: 10px 20px;
  background-color: #BE3127;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
}
.hero-button:hover{
  background-color:   #BE3127;
  transform: scale(1.05);
}

.profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
}


.about-text {
    padding-top: 20px;
    font-family: Georgia, sans-serif;
    
}

.browse-by-topic{
  width: 60%;
  margin: 0 auto;
  padding-top: 20px;

}

@media (max-width: 768px) {

    .browse-by-topic {
        width: 90%;
    }

    .topic-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 50px;
    justify-content: center;
    margin-top: 70px;
}

@media (max-width: 900px) {
    .topic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .topic-grid {
        grid-template-columns: 1fr;
    }
}

.topic-card {
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    padding: 25px;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: white;
    transition: all 0.3s ease;

    text-decoration: none;
    color:inherit;
    cursor: pointer;
}
.topic-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 0 0 10px rgba(190,49,39,0.3);
}

.latest-post h2 {
    text-align: left;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.latest-post{
  width:60%;
  margin:0 auto;
  padding-top: 20px;
  margin-top: 60px;
}
.image-section {
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.image-section img{
width: 100%;
    height: 100%;
    object-fit: contain;
} 


#latestPostContainer {
    
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media (max-width: 1024px){

  #latestPostContainer {
    
    grid-template-columns: repeat(2, 1fr);
    
  } 
}
@media (max-width: 768px){

  #latestPostContainer {
    
    grid-template-columns: 1fr;
    
  } 
}

.latest-card {
    display: flex;
    flex-direction: column;
    gap: 10px;

    padding: 15px;
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.5);
}

.latest-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

.latest-content {
    display: flex;
    flex-direction: column;
    gap: 10px;

    width: 100%;
    
}

.latest-content .button {
  
    margin-top: auto;
    align-self: flex-start;
    

    background: #BE3127;
    color: white;

     padding: 8px 14px;
    border: 1px solid #BE3127;
    border-radius: 6px;

    text-decoration: none;
}

/* underline */
.latest-content .button::after {
    content: "";
    position: absolute;

    left: 0;
    bottom: 3px;

    width: 0;
    height: 5px;

    background-color: #BE3127;

    transition: width 0.3s ease;
}

/* when hovering */
.latest-content .button:hover::after {
    width: 100%;
}

.latest-content h3 {
  min-height: 60px;
}

.latest-content .latest-date{
  width: fit-content;
  align-self: flex-start;
  
    background: rgba(168, 181, 162, 0.25);
    color: #4F5C49;
  border-radius: 4px;
  padding: 6px 10px;
}

.about-footer {
    width: 100%;
    margin: 80px 0 0;
    padding: 40px 60px;

    display: flex;
    align-items: flex-start;
    gap: 60px;

    background: rgba(255, 255, 255, 0.65);
    border-top: 1px solid rgba(190, 49, 39, 0.15);

    box-sizing: border-box;
}

.about-footer h2 {
    margin: 0;
    min-width: 150px;

    font-family: Georgia, serif;
    font-size: 32px;
    color: #BE3127;
}

.about-text {
    flex: 1;
}

.footer-note {
    margin: 0;
    width: 100%;
    font-size: 17px;
    line-height: 1.8;
    color: #413C38;
    max-width: none;
}



@media (max-width: 768px) {
    .about-footer {
        flex-direction: column;
        gap: 20px;
        padding: 30px 22px;
    }

    .about-footer h2 {
        min-width: 0;
        font-size: 28px;
    }

    .footer-note {
        font-size: 16px;
    }
}
.back-to-blog {
    text-decoration: none;
    display: inline-block;
    background: #BE3127;
    padding: 8px 14px;

    color: white;
    border: 1px solid #BE3127;
    border-radius: 6px;

    margin-top: 20px;
    margin-bottom: 30px;
}

.back-to-blog:hover {
    background: transparent;
    color: #BE3127;
}


.html{
  scroll-behavior: smooth;
}

