body{
    margin: 0;
    padding: 0;
        /* font-family: "PT Serif", serif; */
        font-family: Lato, sans-serif;
}
a{
  text-decoration: none;
  color: inherit;
}
/* author */
.social-links img{
  width: 10px;
  height: 10px;
  background-color: white;
}
.author-section {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
   
  padding-bottom: 100px;
    background: #fff;
}

.author-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-content h2 {
    margin: 0 0 10px;
    font-size: 18px;
}

.author-content p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.3;
    font-size: 12px;
}



/*  */
.subscribe-btn a{
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  background-color: #161616;
  color: #fff;
  padding: 20px 18px;
  border-radius: 100px;
  cursor: pointer;
  position: fixed;
  bottom: 30px;
  right: 60px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.profile {
  width: 20px;
  height: 20px;
}

.main-body-content{
    width: 85%;
    height: auto;
    margin: 0 auto;
}
.header-section{
    display: flex;
    flex-direction: column;
  
    justify-content: center;
    align-items: center;
    padding: 30px 0px;
}
.logo{
    margin: 0;
    color: #161616;
    font-size: 48px;
    font-weight: 600;
    font-family: "PT Serif", serif;
    text-transform: uppercase;
}
.slogan{
    margin: 0;
    color: #565656;
    font-size: 18px;
    font-weight: 300;
}


/* cateagory-section */
.category-section {
  display: flex;
  justify-content: space-between;
  border-top: 4px solid #161616;
  border-bottom: 4px solid #161616;
  padding: 15px 10px;
  align-items: center;
}
.category-section-b {
  position: fixed;        /* fixed at top */
  top: -80px;             /* hide above viewport initially */
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 4px solid #161616;
  border-bottom: 4px solid #161616;
  padding: 15px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: top 0.4s ease;  /* smooth slide */
  z-index: 1001;          /* above main content */
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.category-section-b.show {
  top: 0; /* slide down into view */
}

.category-portion{
  width: 85%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}
.menu-icon{
    width: 20px;
    height: 20px;
}
.search-icon{
     width: 20px;
    height: 20px;
}
.category-options {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.category {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #161616;
  text-transform: capitalize;
  cursor: pointer;
}

/* Sidebar styles */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7); /* semi-transparent black */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 998; /* behind sidebar (999) and close button (1000) */
}

/* Show overlay when sidebar is active */
.sidebar.active ~ .sidebar-overlay {
  opacity: 1;
  visibility: visible;
}
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100%;
  background-color: #fff;
  box-shadow: 3px 0 10px rgba(0, 0, 0, 0.2);
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  z-index: 999;
}

.sidebar.active {
  transform: translateX(0);
}

/* Sidebar content */
.sidebar-content {
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sidebar-link{
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

/* Floating close button */
.close-btn {
  position: fixed;
  top: 20px;
  left: 264px; /* just outside sidebar width */
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: black;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.sidebar.active + .close-btn {
  opacity: 1;
  visibility: visible;
}
/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(164, 164, 164, 0.35);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(18px);
  display: none;
  justify-content: center;
  align-items: flex-start;        /* change from center to flex-start */
  padding-top: 10vh;              /* push content down 20% of viewport height */
  z-index: 1000;
}

.search-overlay.active {
  display: flex;
}


/* Search box styling */
.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  padding: 20px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 500px;
  max-width: 90%;
}

.overlay-search-icon {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  opacity: 0.1;
}

.search-input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 16px;
  background: transparent;
  color: #333;
}

.search-input::placeholder {
  color: #555;
}

/* top-content-section */
.top-content-section {
  display: flex;
  gap: 30px;
  padding: 30px 0px;
}
.top-content-section-left {
  width: 50%;
}
.top-content-section-right {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.image-wrapper {
  overflow: hidden;
  width: 100%;
 position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.image-wrapper a {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* keeps aspect ratio, fills container */
  object-position: center; /* centers the image */
}

.main-img {
  width: 100%;
  transition: transform 0.5s ease; 
}
.image-wrapper:hover .main-img {
  transform: scale(1.05); 
}
.main-img.top-content {
  width: 100%;
  height: 370px; /* or any height you want */
  object-fit: cover; /* ensures it fills the wrapper */
  object-position: center; /* centers the image */
  transition: transform 0.5s ease;
}
.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6); 
  padding: 20px 15px;
  line-height: 1.4;
  text-align: left;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.image-head-text{
font-size: 24px;
margin: 0;
  color: #fff;
}
.paragraph{
    margin: 0;
    font-size: 16px;
    font-weight: 200;
    font-family: "PT Serif", serif;
    color: #62686d;
    padding-top: 15px;
    line-height: 1.4rem;
}
.paragraph.b{
  padding-top: 0;
}
.right-grid{
  display: flex;
  gap: 15px;
}
.right-grid-l{
  width: 40%;
}
.right-grid-r{
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 0;
}
.main-img.right-grid{
  width: 100%;
  height: 130px;
  transition: transform 0.5s ease; 
}
.right-grid-category{
  margin: 0;
  font-size: 14px;
  font-weight: 200;
  text-transform: uppercase;
color: #565656;
}
.right-grid-head{
  color: #161616;
   margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6rem;
}
.date{
  margin: 0;
  font-size: 14px;
  font-weight: 200;
color: #565656;
}
.date.w{
color: #fff;
margin: 0;
}

/* second-content-section */
.second-content-section{
  display: flex;
  gap:20px ;
  justify-content: space-between;
  padding: 20px 0px;
}
.second-content-section-l{
  width: 70%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.second-content-section-r{
   width: 30%;
   display: flex;
  flex-direction: column;
  gap: 15px;
}
.grid-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #c7c7c7;
  padding-bottom: 10px;
  position: relative;
}
.grid-half-div{
  display: flex;
  gap: 15px;
  justify-content: space-between;
}
.grid-half{
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.grid-title {
  margin: 0;
  font-size: 20px;
  color: #161616;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
}
.grid-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -11px;
  width: 100%;
  height: 1px;
  background-color: #000; 
}
.see{
  margin: 0;
  font-size: 16px;
  color: #161616;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}
.aroow-r{
  width: 10px;
  height: 10px;
}
.main-img.grid-half{
width: 100%;
height: 275px;
}
.three-grid-part-section{
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 5px 0px;
}
.three-grid-part{
  display: flex;
  gap: 15px;
  width: 33.33%;
}
.three-grid-part-l{
  width: 40%;
}
.three-grid-part-r{
  width: 60%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.main-img.three-grid{
  height: 100px;
  width: 100%;
}

/* four-grid-section */
.four-grid-section{
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 25px 0px;
}
.four-news-grid-section{
  display: flex;
  gap: 30px;
}
.four-news-grid{
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 25%;
}
.main-img.four-news-grid{
height: 190px;
width: 100%;
}

/* three-category-section */
.three-category-section{
   display: flex;
  gap: 30px;
  padding: 20px 0px;
  justify-content: space-between;
}
.three-category-section-grid{
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 33.33%;
}
.main-img.three-category-section{
width: 100%;
height: 240px;
padding: 0;
}



/* Footer base */
.footer{
background-color: #111;
}
.site-footer {
  color: #ccc;
  padding: 40px 60px 20px;
  font-size: 15px;
  width: 85%;
  margin: 0 auto;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: center;
}

/* Left section */
.footer-about {
  flex: 1 1 300px;
}

.footer-about h3 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 20px;
}

.footer-about p {
  line-height: 1.6;
  font-size: 16px;
}

/* Middle section */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1 1 300px;
}
.footer-tags{
  display: flex;
  flex-direction: column;
}

.footer-links h4 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 20px;
  margin-top: 0;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin: 0;
    flex-wrap: wrap;
    line-height: 0.5rem;
}

.footer-links ul li {
  margin-bottom: 6px;
  font-size: 17px;
}

.footer-links ul li a {
  color: #ccc;
  text-decoration: none;
}

.footer-links ul li a:hover {
  color: #fff;
}

/* Right section (Subscribe) */
.footer-subscribe {
  flex: 1 1 350px;
}

.footer-subscribe h4 {
  color: #fff;
  margin-bottom: 10px;
}

.footer-subscribe p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.subscribe-form {
  display: flex;
  margin-bottom: 20px;
}

.subscribe-form input {
  flex: 1;
  padding: 12px;
  border: none;
  outline: none;
  background-color: #fff;
  color: #000;
}

.subscribe-form button {
  padding: 12px 20px;
  border: none;
  background-color: #555;
  color: #fff;
  cursor: pointer;
}

.subscribe-form button:hover {
  background-color: #777;
}

/* Social icons */
.footer-social h4 {
  color: #fff;
  margin-bottom: 10px;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.footer-icon{
  width: 20px;
  height: 18px;
  color: white;
  object-fit: contain;
}

.social-icons a {
  color: #ccc;
  font-size: 18px;
  text-decoration: none;
}


.social-icons a:hover {
  color: #fff;
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid #222;
  text-align: center;
  padding-top: 15px;
  margin-top: 30px;
  font-size: 14px;
  color: #aaa;
}

.footer-bottom a {
  color: #ccc;
  margin: 0 5px;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #fff;
}
