*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {

  --maingreen: #0e771b ;
  --secondshade:#378e42;
  --cream: #E1EB95;
  --secondcream: #f7ecd1;
  --brand-green: #28a745; /* From example.png login button */
  --brand-yellow: #ffc107; /* From example.png learn more button */
}

html{
scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif; /* Default font */
  line-height: 1.6;
  color: #333;
}

nav{
  display: flex;
  justify-content: space-between;
  box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  align-items: center;
  padding: 0.4rem 1rem;
  background-color: rgb(250, 249, 249);
  transition: background-color 0.3s ease;
  z-index: 1000;
}

nav.scrolled {
  background-color: white; /* or any other color */
  box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.1); /* Optional shadow */
}

.logo-header{
  display: flex;
  gap: 3px;
}

.logo-header img{
  width: 3rem;
}

.logo-header h1{
  font-family: "Open Sans";
  color: var(--brand-green);
  font-size: 0.9rem;
}

.nav-list{
  display: flex;
  gap: 2rem;
  font-family: "Lora";
  font-weight: 600;
  font-size: 0.9rem;
  align-items: center;
}

.nav-list li{
  list-style: none;
}

.nav-list a{
  text-decoration: none;
  color: black;
  
}

.nav-list a:hover {
  border-bottom: 3px solid var(--brand-yellow);
  color: var(--brand-green);
  
}

.icon {
  font-size: 1.2rem;
  color: var(--brand-green);
  display: none;
}

.btn {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  background-color: var(--brand-green);
  outline: 2px solid var(--brand-green);
  border-radius: 1rem;
  padding: 7px 25px;
  font-size: 0.9rem;
  color: #fff;
  font-family: "Lora";
}

.btn:hover{
  color: #fff;
  background-color: var(--secondshade);
  box-shadow: 0px 4px 1px rgba(0, 0, 0, 0.7);
}

.btn:hover a{
  border: none;
  color: #fff;
}

/* image-card */
.image-card{
min-height: 60vh; /* Adjusted height for blog page */
display: flex;
align-items: center;
position: relative;
margin-bottom: 2rem;
}

.image-card::before{
content: "";
background-image: url("images/Gaza\ school\ 2.jpeg"); /* Using the provided image */
background-repeat: no-repeat;
background-size: cover;
background-position: center;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
opacity: 0.8; /* Slightly less opaque for blog header */
filter: brightness(0.6);
}

.texts{
position: relative;
padding: 20px;
text-align: center; /* Center text for a hero section */
width: 100%;
}

.texts h2{
font-size: 3rem;
font-weight: 800;
font-family: "Open Sans";
color: #fff;
margin-bottom: 1rem;
}

.texts p{
color: #fff;
font-size: 1.5rem;
font-family: "Lora";
font-weight: 400;
}

/* Blog Content Area */
.content-area {
  display: flex;
  justify-content: space-between;
  padding: 2rem;
  max-width: 1200px; /* Constrain width for better readability */
  margin: 0 auto; /* Center the content area */
  gap: 2rem;
}

/* Blog Grid */
.blog-grid {
  flex: 3; /* Take more space */
  padding: 1rem;
  background: #ffffff;
}

.blog-grid h2 {
  text-align: left; /* Align to left for blog content */
  margin-bottom: 2rem;
  font-family: "Open Sans";
  color: var(--brand-green);
  font-size: 2rem;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted minmax */
  gap: 1.5rem;
}

.blog-card {
  background: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card:hover {
  transform: translateY(-5px); /* Lift effect on hover */
}

.blog-info {
  padding: 1rem;
  flex-grow: 1; /* Allow info section to grow */
  display: flex;
  flex-direction: column;
}

.blog-info h3 {
  margin-bottom: 0.5rem;
}

.blog-info h3 a {
  text-decoration: none;
  color: #333; /* Darker color for better contrast */
  font-family: "Lora";
  font-size: 1.2rem;
  font-weight: 700;
}

.blog-info h3 a:hover {
  color: var(--brand-green);
}

.blog-info p {
  color: #666;
  margin-top: 0.5rem;
  font-family: "Lora";
  font-size: 0.9rem;
}

/* Blog Sidebar */
.blog-sidebar {
  flex: 1; /* Take less space */
  background: #f4f4f4;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.blog-sidebar h3 {
  color: var(--brand-green);
  margin-bottom: 1rem;
  font-family: "Open Sans";
  font-size: 1.5rem;
}

.categories ul, .popular-posts ul {
  list-style: none;
  padding: 0;
}

.categories ul li a, .popular-posts ul li a {
  text-decoration: none;
  color: #555;
  display: block;
  margin-bottom: 0.5rem;
  font-family: "Lora";
  transition: color 0.2s;
}

.categories ul li a:hover, .popular-posts ul li a:hover {
  color: var(--brand-green);
  text-decoration: underline;
}

.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-container a {
  font-family: "Lora";
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--brand-green);
  color: white;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.tag-container a:hover {
  background: var(--secondshade);
}

/* Footer */
.generalfooter{
/*background-color: #04380a;
border-bottom-left-radius: 0; /* Removed border-radius for cleaner look */
/*border-top-right-radius: 0; /* Removed border-radius for cleaner look */
/*padding: 2rem 1rem;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1.5rem;
}

.footer-section h2{
color: #fff;
margin-bottom: 1rem;
padding-top: 0;
font-family: "Open Sans";
font-size: 1.3rem;
}

.info p{
font-size: 1rem;
color: #fff;
margin-bottom: 1.5rem;
}

.brands i {
border: 1px solid white;
padding: 10px;
border-radius: 50%;
background-color: var(--cream);
color: var(--brand-green); /* Changed icon color */
/*margin-right: 0.5rem;
}

.quicklinks{
margin-left: 0; /* Removed margin */
/*padding-right: 0;
}

.icon-text i, .contact-icon i{
color: var(--brand-yellow); /* Changed icon color */
/*}

footer{
background-color: #022004; /* Darker shade for footer */
/*color: #fff;
font-size: 0.8rem;
font-family: "Lora";
padding: 1rem;
text-align: center;
}

.footer{
flex-direction: column; /* Stack items on small screens */
/*gap: 0.5rem;
}

.rightsreserved{
color: #f5e8B8;
}*/
.footer-section{
  margin-top: 100px;
  padding: 60px 40px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px;
  background: linear-gradient(135deg, var(--dark-gray), #212529);
}

.footer-section h2{
  color: var(--white);
  margin-bottom: 25px;
  font-family: "Poppins", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.icon-text {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.icon-text:hover {
  transform: translateX(5px);
}

.icon-text i{
  color: var(--accent-yellow);
  font-weight: 900;
  font-size: 0.8rem;
}

.icon-text a{
  text-decoration: none;
  color: var(--white);
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.icon-text a:hover {
  color: var(--accent-yellow);
}

.contact-icon{
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-icon i{
  color: var(--accent-yellow);
  font-size: 1.2rem;
  margin-top: 2px;
}

.contact-icon p{
  color: var(--white);
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

.brands {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.brands i {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--accent-yellow);
  color: var(--dark-gray);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.brands i:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

footer{
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 40px;
  background: #212529;
  color: var(--white);
}

.footer{
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
}

footer a{
  text-decoration: none;
  color: var(--white);
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--accent-yellow);
}

.quicklinks{
  margin-left: 0;
}

.rightsreserved, footer i{
  color: var(--accent-yellow);
}

.info h2{
  font-size: 1.4rem;
}

.info p{
  font-size: 1.2rem;
  color: var(--accent-yellow);
  margin-bottom: 30px;
  font-style: italic;
}

.generalfooter{
  background: linear-gradient(135deg, var(--dark-gray), #212529);
}



/* scroll arrow */
.back-to-top{
position: fixed;
bottom: 2rem;
right: 2rem;
display: none;
align-items: center;
justify-content: center;
background-color: var(--brand-green);
border-radius: 50%;
padding: 0.5rem;
text-decoration: none;
transition: 0.2s ease-out;
z-index: 999;
}

.back-to-top.show {
display: inline-flex;
}

.back-to-top i{
color: #fff;
font-size: 1.1rem;
transition: 0.2s ease-out;
}

.back-to-top:hover {
background-color: var(--secondshade);
}

.back-to-top:hover i{
transform: translateY(-4px);
color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px){
  .nav-list {
      position: absolute;
      top:60px;
      left: 0; /* Adjusted to full width */
      right:  0;
      flex-direction: column;
      background: var(--cream);
      text-align: center;
      gap: 0;
      overflow: hidden;
      transition: all, 0.7s;
      
  }
 
  .nav-list li {
      padding: 15px;
  }

 .nav-list li a {
      color:var(--brand-green);
      font-family: "Lora";
      
  }

    
.btn{
  font-size: 1rem;
  padding: 10px 15px !important;
  color: #fff;
  margin-bottom: 15px;
}


 .icon {
  display: block;
 } 

 .btn a{
  padding: 1px 1px;

 }

 .content-area {
      flex-direction: column; /* Stack columns on small screens */
      padding: 1rem;
  }

  .blog-grid, .blog-sidebar {
      flex: none; /* Remove flex basis */
      width: 100%; /* Full width */
  }

  .blog-sidebar {
      margin-top: 2rem;
  }

  .generalfooter {
      grid-template-columns: 1fr; /* Single column for footer on small screens */
      text-align: center;
  }

  .quicklinks {
      margin-left: 0;
  }

  .quicklinks h2, .info h2 {
      text-align: center;
  }

  .icon-text, .contact-icon {
      justify-content: center;
  }

  .brands {
      display: flex;
      justify-content: center;
      margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  .texts h2 {
      font-size: 2rem;
  }
  .texts p {
      font-size: 1.2rem;
  }
  .blog-grid h2 {
      font-size: 1.5rem;
  }
  .blog-info h3 a {
      font-size: 1rem;
  }
  .blog-info p {
      font-size: 0.8rem;
  }
  .blog-sidebar h3 {
      font-size: 1.2rem;
  }
  .tag-container a {
      padding: 0.4rem 0.8rem;
      font-size: 0.8rem;
  }
}


