/* =========================
   BASE RESET
========================= */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
  background: #f3f4f6;
  color: #111827;
}

/* =========================
   TOP BAR (LANG SWITCH)
========================= */

.top-banner {
  width: 100%;
  background: white;
  padding: 25px 20px;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
}

.lang-switch {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.flag {
  width: 26px;
  cursor: pointer;
  border-radius: 4px;
  transition: 0.2s;
}

.flag:hover {
  transform: scale(1.1);
}

/* =========================
   HERO (LOGO HOME)
========================= */

.hero-center {
  max-width: 500px;
  width: 100%;
  height: auto;

  display: block;
  margin: 10px auto;
  border-radius: 12px;
}

/* =========================
   HOMEPAGE MAIN
========================= */

.main {
  padding: 30px 20px;
}

/* =========================
   HOMEPAGE / MAIN BANNER
========================= */

.highlight-box {
  width: 100%;
  max-width: 1010px;

  margin: 0 auto 30px auto;

  background: white;
  padding: 20px;

  border-radius: 16px;
  border: 1px solid #e5e7eb;

  overflow: hidden;
}

.main-banner {
  width: 100%;
  max-width: 970px;
  height: 250px;

  display: block;
  margin: 0 auto;

  border-radius: 14px;
  object-fit: cover;

  border: 1px solid #e5e7eb;
}

/* mobile banner */
@media (max-width: 768px) {
  .main-banner {
    max-width: 100%;
    height: 140px;
  }
}

/* =========================
   GRID CATEGORIE
========================= */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: auto;
}

.card {
  background: #e5e7eb;
  padding: 25px;
  border-radius: 14px;
  text-align: center;
  text-decoration: none;
  color: #111827;
  font-size: 18px;
  border: 1px solid #d1d5db;
  transition: 0.2s;
}

.card:hover {
  background: #d1d5db;
  transform: translateY(-3px);
}

/* =========================
   FOOTER ADS
========================= */

.footer-banner {
  width: 100%;
  background: #f3f4f6;
  padding: 20px 0;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  border-top: 1px solid #e5e7eb;
}

.footer-ad {
  width: 90%;
  max-width: 1000px;
  height: 90px;
  background: #e5e7eb;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   CATEGORY PAGE BASE LAYOUT
========================= */

.category-page {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: white;
  border-right: 1px solid #e5e7eb;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* sidebar logo */
.sidebar-logo {
  width: 100%;
  max-width: 160px;
  border-radius: 10px;
}

/* back button */
.back-btn {
  text-decoration: none;
  background: #e5e7eb;
  padding: 10px;
  border-radius: 10px;
  color: #111827;
  text-align: center;
  border: 1px solid #d1d5db;
  transition: 0.2s;
}

.back-btn:hover {
  background: #d1d5db;
}

/* tools list */
.tool-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tool-item {
  text-decoration: none;
  padding: 10px;
  background: #f3f4f6;
  border-radius: 10px;
  color: #111827;
  border: 1px solid #e5e7eb;
}

.tool-item:hover {
  background: #e5e7eb;
}

/* content area */
.content {
  flex: 1;
  min-width: 0;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* =========================
   🔥 GEOMETRY TOP LAYOUT (NEW)
========================= */

.geo-top-banner {
  width: 100%;
  display: flex;
  justify-content: center;

  padding: 20px 0;

  background: white;
}

.geo-main-banner {
  width: 100%;
  max-width: 970px;
  height: 250px;

  border-radius: 14px;
  object-fit: cover;

  border: 1px solid #e5e7eb;
}

/* =========================
   GEOMETRY LAYOUT (STABILE)
========================= */

.geo-layout {
  display: flex;
  width: 100%;
  min-height: calc(100vh - 290px);
}

.geo-layout .sidebar {
  margin-top: 0;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .category-page {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .geo-layout {
    flex-direction: column;
  }
}

/* =========================
   TOOL EXCEL TABLE STYLE
========================= */

.tool-box {
  width: 100%;
  max-width: 900px;
  background: white;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  margin-top: 20px;
}

.excel-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

.excel-table td {
  padding: 10px;
  border: 1px solid #e5e7eb;
}

.excel-table input,
.excel-table select {
  width: 100%;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.tool-box button {
  width: 100%;
  padding: 10px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.tool-box button:hover {
  background: #1e40af;
}