/* ══════════════════════════════════════
   SUBPAGES (Rreth Nesh, Departamentet, Kontakt)
   Uses the same colors as styles.css — loaded after it.
══════════════════════════════════════ */

/* Footer page links (also shown on the home page footer) */
.footer-pages { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.12); }
.footer-pages a { font-size: 15px; }

/* Header on subpages: logo links home */
header a.logo-link { display: block; flex-shrink: 0; }
header.page-header { padding-bottom: 50px; }
header.page-header .logo-img { height: 110px; }
header.page-header .tagline { font-size: 17px; color: rgba(255,255,255,0.85); margin-top: 8px; line-height: 1.5; }

/* Page menu under the header */
.page-nav { max-width: 1100px; margin: -18px auto 0; padding: 0 24px; position: relative; z-index: 2; }
.page-nav-inner { background: var(--bg-card); border-radius: 16px; box-shadow: var(--shadow-lg); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 8px; }
.page-nav a { color: var(--text-main); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 18px; border-radius: 10px; transition: background 0.2s, color 0.2s; }
.page-nav a:hover { background: var(--bg-input); color: var(--primary); }
.page-nav a.active { background: var(--primary); color: #fff; }

/* Content */
.page-main { max-width: 1100px; margin: 0 auto; padding: 48px 24px 72px; }
.page-section { margin-bottom: 56px; }
.page-section:last-child { margin-bottom: 0; }
.section-label { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--primary); background: #e8eef7; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.page-section h2 { font-size: 28px; color: var(--text-main); margin-bottom: 14px; line-height: 1.3; }
.page-section > p, .page-text p { font-size: 16px; color: var(--text-muted); line-height: 1.7; margin-bottom: 12px; max-width: 760px; }

/* Stats row */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.stat-card { background: var(--bg-card); border-radius: 20px; box-shadow: var(--shadow); padding: 24px 16px; text-align: center; }
.stat-num { font-size: 30px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* Feature / info cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.info-card { background: var(--bg-card); border-radius: 24px; box-shadow: var(--shadow); padding: 28px 24px; }
.info-card h3 { font-size: 18px; color: var(--text-main); margin-bottom: 10px; }
.info-card p { font-size: 15px; color: var(--text-muted); line-height: 1.6; }
.info-icon { width: 46px; height: 46px; border-radius: 14px; background: #e8eef7; color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }

/* Mission / vision */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.highlight-card { background: var(--primary-gradient); color: #fff; border-radius: 24px; padding: 32px 28px; }
.highlight-card .section-label { background: rgba(255,255,255,0.15); color: #fff; }
.highlight-card h3 { font-size: 21px; margin-bottom: 10px; }
.highlight-card p { font-size: 15px; color: rgba(255,255,255,0.85); line-height: 1.6; }

/* Departments */
.dept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.dept-card { background: var(--bg-card); border-radius: 18px; box-shadow: var(--shadow); padding: 18px 18px 16px; text-decoration: none; color: var(--text-main); display: flex; flex-direction: column; gap: 6px; border: 1px solid transparent; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.dept-card:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow-lg); }
.dept-name { font-weight: 700; font-size: 16px; }
.dept-count { font-size: 13px; color: var(--text-muted); }
.dept-link { font-size: 13px; font-weight: 700; color: var(--primary); margin-top: auto; padding-top: 6px; }

/* Call-to-action box */
.cta-box { background: var(--bg-card); border-radius: 24px; box-shadow: var(--shadow); padding: 32px 28px; text-align: center; }
.cta-box h2 { margin-bottom: 10px; }
.cta-box p { margin: 0 auto 20px; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn-page { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 12px; font-weight: 700; font-size: 15px; text-decoration: none; background: var(--primary); color: #fff; transition: background 0.2s, transform 0.2s; }
.btn-page:hover { background: var(--primary-dark); transform: scale(1.02); }
.btn-page.outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-page.outline:hover { background: #e8eef7; }

/* Contact */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card { border-radius: 20px; padding: 24px; color: #fff; text-decoration: none; display: flex; flex-direction: column; gap: 6px; transition: transform 0.2s, filter 0.2s; }
.contact-card:hover { transform: translateY(-3px); filter: brightness(1.08); }
.contact-card .cc-title { font-weight: 800; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.contact-card .cc-sub { font-size: 15px; opacity: 0.9; }
.cc-phone { background: var(--primary); }
.cc-wa { background: #25d366; }
.cc-vb { background: #7b5faf; }
.details-list { list-style: none; }
.details-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border-color); font-size: 16px; color: var(--text-main); line-height: 1.5; }
.details-list li:last-child { border-bottom: none; }
.details-list strong { min-width: 130px; color: var(--text-muted); font-weight: 600; }
.details-list a { color: var(--primary); font-weight: 700; text-decoration: none; }
.page-map { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); min-height: 320px; }
.page-map iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }

/* FAQ */
.faq details { background: var(--bg-card); border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 16px; color: var(--text-main); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--primary); flex-shrink: 0; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 18px; color: var(--text-muted); font-size: 15px; line-height: 1.7; }
.faq details a { color: var(--primary); font-weight: 600; }

/* Tablet */
@media (max-width: 900px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .contact-cards { grid-template-columns: 1fr 1fr; }
  .dept-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Phone */
@media (max-width: 600px) {
  header.page-header .logo-img { height: 70px; }
  header.page-header .tagline { font-size: 14px; }
  .page-nav { padding: 0 12px; margin-top: -12px; }
  .page-nav-inner { gap: 0; padding: 6px; flex-wrap: nowrap; justify-content: space-between; overflow-x: auto; scrollbar-width: none; }
  .page-nav-inner::-webkit-scrollbar { display: none; }
  .page-nav a { font-size: 12px; padding: 8px 7px; white-space: nowrap; }
  .page-main { padding: 32px 16px 56px; }
  .page-section { margin-bottom: 40px; }
  .page-section h2 { font-size: 22px; }
  .stat-num { font-size: 24px; }
  .card-grid, .contact-cards, .two-col { grid-template-columns: 1fr; }
  .dept-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dept-card { padding: 14px; }
  .dept-name { font-size: 14px; }
  .details-list li { flex-direction: column; gap: 2px; }
  .details-list strong { min-width: 0; }
}

/* Small phones */
@media (max-width: 380px) {
  .page-nav { padding: 0 8px; }
  .page-nav-inner { padding: 5px; }
  .page-nav a { font-size: 11px; padding: 8px 5px; }
}

/* ===== Top menu (hamburger) ===== */
.top-social-bar { position: relative; z-index: 50; }
.menu-btn { background: none; border: 0; padding: 8px 6px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; margin-right: 14px; }
.menu-btn span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.top-bar-phone { margin-right: auto; }
.top-bar-socials { margin-left: auto; }
.site-menu { position: absolute; top: 38px; left: 0; min-width: 220px; background: #fff; border-radius: 0 0 14px 14px; box-shadow: 0 12px 30px rgba(0,0,0,.18); display: none; flex-direction: column; padding: 8px; }
.site-menu.open { display: flex; }
.site-menu a { color: #1f2937; text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 16px; border-radius: 10px; }
.site-menu a:hover { background: #eef2f7; }
@media (max-width: 600px) { .site-menu { left: 0; right: 0; border-radius: 0 0 14px 14px; } }
.top-bar-inner { position: relative; }
.site-menu { left: 0; }
@media (max-width: 600px) { .top-bar-inner { position: static; } }
/* top bar order: socials left, phone, language, big hamburger far right */
.top-bar-inner { position: relative; }
.top-bar-socials { order: 1; margin-left: 0; margin-right: auto; }
.top-bar-phone { order: 2; margin: 0 14px 0 0; }
.lang-dropdown { order: 3; }
.menu-btn { order: 4; margin: 0 0 0 14px; padding: 10px 8px; gap: 6px; }
.menu-btn span { width: 32px; height: 3px; }
.menu-btn.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-btn.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.site-menu { left: auto; right: 0; }
@media (max-width: 600px) {
  .top-bar-inner { position: static; justify-content: flex-start; }
  .top-bar-socials { margin-right: auto; }
  .site-menu { left: 0; right: 0; }
}
@media (max-width: 600px) {
  .top-social-bar { padding: 0 8px; }
  .top-social-link { font-size: 0; gap: 0; padding: 6px 8px; }
  .top-bar-socials { gap: 2px; }
  .menu-btn { margin-left: 6px; padding: 10px 4px; }
  .menu-btn span { width: 28px; }
}
.top-bar-inner .lang-dropdown { margin-left: 0; }
