/* =========================================================
   Feng Shui - Modern stylesheet
   ========================================================= */

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  background: #e8bb6a;
}

img { max-width: 100%; height: auto; display: block; }

a { color: #8a4b00; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Wrapper ---------- */
.wrapper {
  max-width: 790px;
  margin: 0 auto;
  background: #fff;
}

/* ---------- Header ---------- */
.site-header { line-height: 0; }
.site-header img { width: 100%; height: auto; display: block; }

/* ---------- Main menu ---------- */
.main-menu {
  background: #3f3d3e;
  position: relative;
  z-index: 10;
}

.main-menu > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.main-menu li { position: relative; }

.main-menu a {
  display: block;
  padding: 10px 14px;
  color: #f5e6c8;
  font-size: 13px;
  white-space: nowrap;
}

.main-menu a:hover {
  background: #e8bb6a;
  color: #3f3d3e;
  text-decoration: none;
}

/* --- Dropdown submenus --- */
.main-menu ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #3f3d3e;
  list-style: none;
  margin: 0;
  padding: 0;
  box-shadow: 0 3px 6px rgba(0,0,0,.25);
}

.main-menu li:hover > ul { display: block; }

.main-menu ul ul ul {
  top: 0;
  left: 100%;
}

.main-menu ul ul a { border-top: 1px solid #555; }

/* ---------- Layout (Grid) ---------- */
.layout {
  display: grid;
  grid-template-columns: 1fr 183px;
  grid-template-areas: "content sidebar";
  background: #fff;
}

.content {
  grid-area: content;
  padding: 20px;
  min-width: 0;
}

.sidebar {
  grid-area: sidebar;
  background: #3f3d3e;
  color: #eee;
  padding: 0 0 20px;
}

/* ---------- Page title ---------- */
.page-title {
  font-size: 22px;
  color: #8a4b00;
  margin: 0 0 12px;
}

/* ---------- Intro text ---------- */
.intro p {
  margin: 0 0 12px;
  text-indent: 1.5em;
}

/* ---------- Cards (Grid) ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 20px;
}

.card {
  background: #fff;
  padding: 0 12px 12px;
  border-right: 2px solid #e5e5e5;
}

.card:last-child { border-right: none; }

.card img { width: 100%; height: auto; margin-bottom: 8px; }

.card h2 { font-size: 15px; color: #8a4b00; margin: 6px 0; }

.card p { font-size: 13px; margin: 0 0 8px; }

.more {
  display: inline-block;
  font-size: 12px;
  font-weight: bold;
  color: #8a4b00;
}

/* ---------- Sidebar ---------- */
.sidebar-img { width: 100%; height: auto; display: block; }

.sidebar-title {
  font-size: 15px;
  color: #e8bb6a;
  margin: 14px 12px 8px;
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0 12px;
}

.sidebar-list li {
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #555;
  color: #ddd;
}

.sidebar-list li:last-child { border-bottom: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: #e8bb6a;
  text-align: center;
  padding: 14px 10px;
  font-size: 12px;
}

.site-footer nav { margin-bottom: 6px; }

.site-footer a { color: #3f3d3e; margin: 0 4px; }

.site-footer p { margin: 0; color: #3f3d3e; }

/* ---------- Hamburger button ---------- */
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 12px;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  margin: 4px 0;
  background: #e8bb6a;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

.main-menu.open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.main-menu.open .menu-toggle span:nth-child(2) { opacity: 0; }
.main-menu.open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .menu-toggle { display: block; }

  .main-menu > ul {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .main-menu.open > ul { display: flex; }

  .main-menu ul ul { display: none; position: static; box-shadow: none; }
  .main-menu ul ul ul { left: 0; }
  .main-menu li.open > ul { display: block; }

  .layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "sidebar";
  }

  .cards { grid-template-columns: 1fr; }
  .card { border-right: none; border-bottom: 2px solid #e5e5e5; padding-bottom: 16px; }
}