*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --maingreen: #0e771b;
  --secondshade: #378e42;
  --accent-yellow: #f5b400;
  --light-gray: #f8f9fa;
  --dark-gray: #343a40;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.15);
}

html{
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
}

/* Navigation Styles */
nav{
  display: flex;
  justify-content: space-between;
  box-shadow: 0px 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  align-items: center;
  padding: 0.8rem 2rem;
  background-color: var(--white);
  z-index: 1000;
  transition: all 0.3s ease;
}

nav.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0px 2px 20px var(--shadow-hover);
}

.logo-header{
  display: flex;
  gap: 10px;
  align-items: center;
}

.logo-header img{
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
}

.logo-header h1{
  font-family: "Poppins", sans-serif;
  color: var(--maingreen);
  font-size: 1rem;
  font-weight: 700;
}

.nav-list{
  display: flex;
  gap: 2.5rem;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  align-items: center;
}

.nav-list li{
  list-style: none;
}

.nav-list a{
  text-decoration: none;
  color: var(--dark-gray);
  transition: all 0.3s ease;
  position: relative;
}

.nav-list a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -5px;
  left: 0;
  background-color: var(--maingreen);
  transition: width 0.3s ease;
}

.nav-list a:hover::after {
  width: 100%;
}

.nav-list a:hover {
  color: var(--maingreen);
}

.icon {
  font-size: 1.5rem;
  color: var(--maingreen);
  display: none;
  cursor: pointer;
}

.btn {
  background: linear-gradient(135deg, var(--maingreen), var(--secondshade));
  border-radius: 25px;
  padding: 10px 25px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px yellow);
}

.btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 119, 27, 0.4);
}

.btn a{
  color: var(--white) !important;
  font-weight: 600;
}

.btn:hover a{
  color: var(--white) !important;
}

/* Hero Section */
.image-card{
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--maingreen), var(--secondshade));
}

.image-card::before{
  content: '';
  background-image: url(images/Gaza\ school\ 3.jpeg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  opacity: 0.3;
  filter: brightness(0.7);
}

.texts{
  position: relative;
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.texts h2{
  font-size: 3.5rem;
  font-weight: 800;
  font-family: "Poppins", sans-serif;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Contact Section */
.get-in-touch{
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1200px;
  margin: -100px auto 50px;
  background-color: var(--white);
  box-shadow: 0 10px 30px var(--shadow);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.get-in-touch-details{
  display: flex;
  gap: 15px;
  align-items: center;
  margin: 20px 30px;
  padding: 20px;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.get-in-touch-details:hover {
  background-color: var(--light-gray);
  transform: translateX(10px);
}

.get-in-touch-details i{
  font-size: 2rem;
  color: var(--maingreen);
  min-width: 50px;
}

.h3-icon h3{
  font-size: 1.4rem;
  font-family: "Poppins", sans-serif;
  color: var(--maingreen);
  margin-bottom: 5px;
}

.h3-icon p{
  font-size: 1.1rem;
  font-family: "Lora", serif;
  color: var(--dark-gray);
}

.brand {
  margin: 20px 30px;
  display: flex;
  gap: 15px;
}

.brand i {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maingreen), var(--secondshade));
  color: var(--white);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.brand i:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(14, 119, 27, 0.4);
}

/* Contact Form */
.contact-form {
  background: linear-gradient(135deg, var(--light-gray), var(--white));
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form .form-group {
  margin-bottom: 25px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px 20px;
  background-color: var(--white);
  border: 2px solid transparent;
  border-radius: 10px;
  font-size: 1rem;
  font-family: "Lora", serif;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px var(--shadow);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--maingreen);
  box-shadow: 0 4px 20px rgba(14, 119, 27, 0.2);
  transform: translateY(-2px);
}

.contact-form button {
  padding: 15px 30px;
  background: linear-gradient(135deg, var(--maingreen), var(--secondshade));
  color: var(--white);
  border: none;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(14, 119, 27, 0.3);
  align-self: flex-start;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 119, 27, 0.4);
}

/* Staff Section */
.staff-section {
  max-width: 1400px;
  margin: 80px auto;
  padding: 0 20px;
}

.staff-header {
  text-align: center;
  margin-bottom: 50px;
}

.staff-header h2 {
  font-size: 3rem;
  font-family: "Poppins", sans-serif;
  color: var(--maingreen);
  margin-bottom: 15px;
  position: relative;
}

.staff-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(135deg, var(--maingreen), var(--secondshade));
  border-radius: 2px;
}

.staff-header p {
  font-size: 1.2rem;
  color: var(--dark-gray);
  font-family: "Lora", serif;
}

/* Search Container */
.search-container {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
}

.search-box {
  position: relative;
  max-width: 500px;
  width: 100%;
}

.search-box i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--maingreen);
  font-size: 1.2rem;
}

.search-box input {
  width: 100%;
  padding: 15px 20px 15px 50px;
  border: 2px solid var(--light-gray);
  border-radius: 25px;
  font-size: 1.1rem;
  font-family: "Poppins", sans-serif;
  background-color: var(--white);
  box-shadow: 0 4px 15px var(--shadow);
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--maingreen);
  box-shadow: 0 6px 25px rgba(14, 119, 27, 0.2);
  transform: translateY(-2px);
}

.search-box input::placeholder {
  color: var(--dark-gray);
}

/* Table Container */
.table-container {
  background-color: var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow);
  overflow: hidden;
  overflow-x: auto;
}

/* Staff Table */
.staff-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Poppins", sans-serif;
}

.staff-table thead {
  background: linear-gradient(135deg, var(--maingreen), var(--secondshade));
}

.staff-table thead th {
  padding: 20px 15px;
  text-align: left;
  font-weight: 700;
  color: var(--white);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.staff-table tbody tr {
  transition: all 0.3s ease;
  border-bottom: 1px solid #eee;
}

.staff-table tbody tr:hover {
  background-color: #f5f5f5;
  transform: scale(1.01);
  box-shadow: 0 4px 15px var(--shadow);
}

.staff-table tbody tr:nth-child(even) {
  background-color: var(--light-gray);
}

.staff-table tbody tr:nth-child(even):hover {
  background-color: #f0f0f0;
}

.staff-table td {
  padding: 18px 15px;
  font-size: 1rem;
  color: #333;
  vertical-align: middle;
}

.staff-table td:first-child {
  font-weight: 600;
  color: var(--maingreen);
}

.staff-table td:nth-child(2) {
  text-align: center;
  font-weight: 600;
}

.staff-table td:nth-child(3) {
  font-weight: 500;
  color: var(--dark-gray);
}

.staff-table td:last-child {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: var(--maingreen);
}

/* Footer Styles */
.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: 30px;
  right: 30px;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--maingreen), var(--secondshade));
  border-radius: 50%;
  width: 55px;
  height: 55px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(14, 119, 27, 0.3);
  z-index: 1000;
}

.back-to-top.show {
  display: inline-flex;
  animation: fadeInUp 0.5s ease-out;
}

.back-to-top i{
  color: var(--white);
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 20px rgba(14, 119, 27, 0.4);
}

.back-to-top:hover i{
  transform: translateY(-2px);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px var(--shadow);
    z-index: 1;
    border-radius: 5px;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--dark-gray) !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: var(--light-gray);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown .fa-caret-down {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover .fa-caret-down {
    transform: rotate(180deg);
}

/* School Address Section Styles */
.school-address-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 40px;
    background-color: var(--white);
    box-shadow: 0 10px 30px var(--shadow);
    border-radius: 20px;
    text-align: center;
}

.school-address-section h2 {
    font-size: 2.5rem;
    font-family: "Poppins", sans-serif;
    color: var(--maingreen);
    margin-bottom: 20px;
}

.school-address-section p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.gaza-map-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


/* Responsive Design */
@media (max-width: 1200px) {
  .staff-section {
      padding: 0 15px;
  }
  
  .table-container {
      margin: 0 -15px;
      border-radius: 0;
  }
}

@media (max-width: 992px) {
  .footer-section {
      grid-template-columns: 1fr 1fr;
      gap: 30px;
  }
  
  .get-in-touch {
      grid-template-columns: 1fr;
      margin: -80px 20px 50px;
  }
  
  .texts h2 {
      font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-list {
      position: absolute;
      top: 70px;
      left: 0;
      right: 0;
      flex-direction: column;
      background: var(--white);
      text-align: center;
      gap: 0;
      overflow: hidden;
      transition: all 0.3s ease;
      box-shadow: 0 5px 15px var(--shadow);
      border-radius: 0 0 20px 20px;
  }

  .nav-list li {
      padding: 20px;
      border-bottom: 1px solid var(--light-gray);
  }

  .nav-list li:last-child {
      border-bottom: none;
  }

  .nav-list a {
      color: var(--maingreen);
      font-size: 1.1rem;
  }

  .icon {
      display: block;
  }

  .btn {
      margin: 10px 20px;
      border-radius: 25px;
      color: #f5b400;    
  }
  
  .texts {
      padding: 20px;
  }
  
  .texts h2 {
      font-size: 2rem;
  }
  
  .staff-header h2 {
      font-size: 2rem;
  }
  
  .footer-section {
      grid-template-columns: 1fr;
      gap: 20px;
      padding: 40px 20px;
  }
  
  .footer {
      flex-direction: column;
      gap: 15px;
      text-align: center;
  }
  
  .staff-table {
      font-size: 0.9rem;
  }
  
  .staff-table th,
  .staff-table td {
      padding: 12px 8px;
  }

  .school-address-section h2 {
      font-size: 2rem;
  }
  .school-address-section p {
      font-size: 1rem;
  }
}

@media (max-width: 480px) {
  nav {
      padding: 0.5rem 1rem;
  }
  
  .logo-header h1 {
      font-size: 0.8rem;
  }
  
  .logo-header img {
      width: 2.5rem;
      height: 2.5rem;
  }
  
  .texts h2 {
      font-size: 1.5rem;
  }
  
  .get-in-touch {
      margin: -60px 10px 30px;
  }
  
  .contact-form {
      padding: 20px;
  }
  
  .staff-section {
      margin: 40px auto;
  }
  
  .search-box input {
      padding: 12px 15px 12px 45px;
      font-size: 1rem;
  }
  
  .staff-table {
      font-size: 0.8rem;
  }
  
  .staff-table th,
  .staff-table td {
      padding: 10px 6px;
  }

  .school-address-section {
      margin: 40px auto;
      padding: 15px;
  }
  .school-address-section h2 {
      font-size: 1.8rem;
  }
}

/* Animation for table rows */
@keyframes slideInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.staff-table tbody tr {
  animation: slideInUp 0.5s ease-out forwards;
}

/* Loading animation for search */
.search-box.loading::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid var(--light-gray);
  border-top: 2px solid var(--maingreen);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translateY(-50%) rotate(0deg); }
  100% { transform: translateY(-50%) rotate(360deg); }
}


