body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #fdfdf9;
  color: #2e2e2e;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #3e4d3a; /* green shade */
  padding: 15px 20px;
  color: #f5d28e; /* beige/golden text */
}

.logo {
  font-size: 1.5em;
  font-weight: 600;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: #f5d28e;
  font-weight: 500;
}

nav a:hover {
  color: #fff;
}

/* HAMBURGER */
.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    background: #3e4d3a;
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 10px;
    border-radius: 8px;
  }
  nav.active {
    display: flex;
  }
  .hamburger {
    display: block;
  }
}

/* HERO */
.hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #3e4d3a 50%, #c49a6c 50%); /* green + wood */
  color: #fff;
}

.hero span {
  color: #f5d28e;
}

/* ABOUT */
.about {
  text-align: center;
  padding: 60px 20px;
  background-color: #f5f3eb;
}

.about img {
  width: 250px;
  border-radius: 12px;
  margin: 20px 0;
}

/* CONTACT */
.contact {
  text-align: center;
  padding: 60px 20px;
  background-color: #e7e2d6;
}

.contact a {
  color: #3e4d3a;
  font-weight: 600;
  text-decoration: none;
}

.contact a:hover {
  color: #c49a6c;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 15px;
  background: #3e4d3a;
  color: #f5d28e;
}
.page {
  max-width: 900px; /* limits the width so text isn't too stretched */
  margin: 0 auto;   /* centers the content horizontally */
  padding: 20px;    /* adds space inside the section */
}

@media (max-width: 768px) {
  .page {
    padding: 20px 15px; /* adjusts padding for mobile screens */
  }
}
/* Clickable Samaanlaa logo style */
.logo a {
  color: #f5d28e;       /* same as header text color */
  text-decoration: none; /* removes underline */
  font-weight: 600;      /* bold like original */
}

.logo a:hover {
  color: #fff;           /* optional hover effect */
}

footer a {
  color: #f5d28e;        /* same as header text */
  text-decoration: none;  /* removes underline */
  font-weight: 500;       /* optional: match nav links */
}

footer a:hover {
  color: #fff;            /* optional hover effect */
}

/* Make body and html take full height */
html, body {
  height: 100%;
}

/* Main content wrapper */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Page content should expand to take available space */
.page {
  flex: 1;
}

.section h2 { margin: 0 0 20px; font-size: 1.8rem; color: #3e4d3a; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 12px;
}

.card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border: 1px solid #e8e2d6;
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

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

.card h3 {
  margin: 12px 14px 6px;
  color: #3e4d3a;
}

.card p {
  margin: 0 14px 16px;
  color: #5a5a5a;
  font-size: 0.95rem;
  line-height: 1.35;
}

/* Mobile */
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

/* Add spacing for all sections */
.section {
  padding: 60px 20px; /* top/bottom 60px, left/right 20px */
  max-width: 1200px;  /* optional: limit width */
  margin: 0 auto;     /* centers the content */
}

/* Grid adjustments */
.section .grid {
  gap: 16px;
  padding: 0 12px; /* keeps grid from touching edges */
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .section {
    padding-left: 15px;
    padding-right: 15px;
  }
}

