/* ==========================================================
   Base layout for views without their own stylesheet
   - Loaded from functions.php (pinpung_scripts) only on 404, search,
     archives, the blog index and pages that are not one of the
     custom page-*.php templates.
   - Navbar / footer rules mirror inc/style-news-activities.css so the
     header looks the same as on the rest of the site.
   - Mobile menu drawer comes from inc/style-nav-mobile.css.
   ========================================================== */

:root {
  --orange: #fb9b00;
  --orange2: #ffb32d;
  --dark: #14161a;
  --muted: #69717d;
  --line: rgba(20, 22, 26, .09);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--dark);
  background: linear-gradient(180deg, #fff, #f7f9fb 54%, #fff);
  line-height: 1.7;
}

a { color: inherit; }

img,
video,
iframe,
embed,
object {
  max-width: 100%;
}

img,
video {
  height: auto;
}

/* Navbar
--------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, .9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.nav-inner {
  width: min(1200px, calc(100% - 48px));
  height: 78px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img { display: block; max-height: 38px; }

.menu {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.menu a {
  position: relative;
  color: #fff;
  text-decoration: none;
}

.menu a:hover,
.menu a.active { color: var(--orange2); }

.contact-btn {
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffbc00, #ff721f);
  color: #fff !important;
  box-shadow: 0 14px 34px rgba(251, 155, 0, .25);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #14161a;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: var(--orange);
}

@media (max-width: 720px) {
  .nav-inner { width: calc(100% - 24px); }
}

/* Content
--------------------------------------------- */
.site-main {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 128px 0 72px;
  overflow-wrap: break-word;
}

.page-header,
.entry-header { margin-bottom: 18px; }

.site-main article + article {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.page-title,
.entry-title {
  margin: 0 0 12px;
  font-size: var(--fs-h3);
  font-weight: var(--fw-h3);
  line-height: var(--lh-h3);
}

.entry-title a { text-decoration: none; }
.entry-title a:hover { color: var(--orange); }

.entry-meta,
.entry-footer,
.archive-description {
  color: var(--muted);
  font-size: 14px;
}

.entry-content,
.entry-summary,
.page-content {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.entry-content a,
.entry-summary a,
.page-content a { color: var(--orange); }

.post-thumbnail img { display: block; width: 100%; border-radius: 20px; }

.entry-content figure { max-width: 100%; margin-left: 0; margin-right: 0; }
.entry-content table { display: block; max-width: 100%; overflow-x: auto; }
.entry-content pre { max-width: 100%; overflow-x: auto; }

.entry-content .alignwide,
.entry-content .alignfull { max-width: 100%; }

/* Post / comment navigation */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 800;
  text-decoration: none;
}

.nav-links a:hover { border-color: var(--orange); color: var(--orange); }

/* Forms (search, comments) */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(20, 22, 26, .15);
  border-radius: 12px;
  font: inherit;
  font-size: 16px; /* iOS: no zoom on focus */
}

.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }

input[type="submit"],
.search-submit {
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange2), var(--orange));
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

/* 404 widgets */
.widget { margin-top: 32px; }
.widget ul { padding-left: 20px; }
.tagcloud { overflow-wrap: anywhere; }

/* Sidebar (only when widgets are added) */
.widget-area {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto 72px;
}

/* Footer
--------------------------------------------- */
.footer {
  padding: 64px 20px;
  text-align: center;
  background: linear-gradient(135deg, #fff, #edf1f5);
  border-top: 1px solid var(--line);
}

.footer img { display: block; width: 132px; margin: 0 auto 24px; }

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a { color: #57616d; text-decoration: none; }
.footer-links a:hover { color: var(--orange); }

.footer p { margin: 24px 0 0; color: var(--muted); font-size: 13px; }
