/* ============================================
   DBHW — Static PHP Site
   Clean, modern university website
   ============================================ */

/* --- Reset & Variables --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a365d;
  --primary-light: #2a4a7f;
  --primary-dark: #0f2440;
  --accent: #e8b830;
  --accent-light: #f0d060;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-dark: #1a365d;
  --text: #2d3748;
  --text-light: #718096;
  --text-on-dark: #e2e8f0;
  --border: #e2e8f0;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
  --nav-height: 68px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  padding-top: var(--nav-height);
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-light);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.brand:hover {
  color: var(--primary-light);
}

.menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.menu a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.menu a:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

.menu a.cta {
  background: var(--primary);
  color: #fff;
  padding: 8px 20px;
}

.menu a.cta:hover {
  background: var(--primary-light);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* --- Footer --- */
.footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 60px 0 40px;
  margin-top: 80px;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.footer h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 16px;
}

.footer p, .footer a {
  font-size: 14px;
  color: var(--text-on-dark);
  line-height: 2;
}

.footer a:hover {
  color: var(--accent-light);
}

.footer-nav {
  list-style: none;
}

.footer-nav li a {
  color: var(--text-on-dark);
  line-height: 2.2;
  font-size: 14px;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff;
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(232,184,48,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1px;
  position: relative;
}

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.8;
  position: relative;
}

.hero .btn {
  position: relative;
}

/* --- Page Banner (inner pages) --- */
.page-banner {
  background: var(--primary);
  color: #fff;
  padding: 64px 0 48px;
  text-align: center;
}

.page-banner h1 {
  font-size: 36px;
  font-weight: 700;
}

.page-banner p {
  color: rgba(255,255,255,0.8);
  margin-top: 8px;
  font-size: 17px;
}

/* --- Section --- */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-dark {
  background: var(--bg-dark);
  color: #fff;
}

.section-dark h2 {
  color: #fff;
}

.section-dark .card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}

.section-dark .card h3 {
  color: var(--accent);
}

.section-dark .card p {
  color: var(--text-on-dark);
}

/* --- Headings --- */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title .kicker {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto;
  font-size: 17px;
}

/* --- Grid Layouts --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 24px;
}

.grid-6 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

/* --- Cards --- */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.card p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  border: none;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-light);
  color: #fff;
}

.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.actions.center {
  justify-content: center;
}

/* --- Stats --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 48px 0;
}

.stat-card {
  text-align: center;
  padding: 32px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.stat-number {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}

/* --- News / Blog --- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.news-card {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.2s;
}

.news-card:hover {
  box-shadow: var(--shadow);
}

.news-card .date {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.news-card .date-icon {
  margin-right: 4px;
}

.news-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.news-card h3 a {
  color: var(--primary);
}

.news-card h3 a:hover {
  color: var(--primary-light);
}

.news-card p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
}

.news-card .read-more {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

/* --- Blog Post Page --- */
.blog-post {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.blog-post .post-date {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.blog-post h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  line-height: 1.3;
}

.blog-post p {
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.8;
}

.blog-post .back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--text-light);
}

.blog-post .back-link:hover {
  color: var(--primary);
}

/* --- Content Page (About, Study, etc.) --- */
.content-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.content-page h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 48px;
  margin-bottom: 16px;
}

.content-page h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 32px;
  margin-bottom: 12px;
}

.content-page p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}

.content-page ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.content-page li {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.7;
}

.content-page .highlight-box {
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  padding: 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}

.content-page .highlight-box p {
  margin-bottom: 0;
}

/* --- Staff Grid --- */
.staff-note {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 32px;
  font-size: 15px;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.staff-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.2s;
}

.staff-card:hover {
  box-shadow: var(--shadow);
}

.staff-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 24px;
  color: var(--primary-light);
}

.staff-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.staff-card a {
  font-size: 13px;
  color: var(--text-light);
}

/* --- Faculty Grid --- */
.faculty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.faculty-card {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.2s;
}

.faculty-card:hover {
  box-shadow: var(--shadow);
}

.faculty-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.faculty-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

.faculty-card .status {
  display: inline-block;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 20px;
  margin-top: 8px;
}

.faculty-card .status-ok {
  background: #c6f6d5;
  color: #22543d;
}

.faculty-card .status-wip {
  background: #fefcbf;
  color: #744210;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-info h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 12px;
  font-size: 15px;
}

.contact-info .detail {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.contact-info .detail h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.contact-info .detail p {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 4px;
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  transition: border-color 0.2s;
  background: var(--bg);
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,54,93,0.1);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.form-success {
  display: none;
  padding: 16px 24px;
  background: #c6f6d5;
  color: #22543d;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 15px;
}

.form-error-global {
  display: none;
  padding: 12px 16px;
  background: #fed7d7;
  color: #742a2a;
  border-radius: var(--radius);
  margin-top: 16px;
  font-size: 14px;
}

/* --- Newsletter --- */
.newsletter {
  background: var(--primary);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.newsletter h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.newsletter p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
}

.newsletter-form input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(232,184,48,0.4);
}

.newsletter-form button {
  padding: 12px 24px;
  background: var(--accent);
  color: var(--primary-dark);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-form button:hover {
  background: var(--accent-light);
}

/* --- International Notice --- */
.international-notice {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 360px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
}

.international-notice h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.international-notice p {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.international-notice .notice-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-light);
  padding: 4px;
  line-height: 1;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  .staff-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }

  :root {
    --nav-height: 60px;
  }

  .mobile-toggle {
    display: flex;
  }

  .menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 8px 24px 16px;
    box-shadow: var(--shadow);
  }

  .menu.is-open {
    display: flex;
  }

  .menu a {
    width: 100%;
    padding: 10px 14px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero {
    padding: 64px 0 48px;
  }

  .section {
    padding: 48px 0;
  }

  .section-title h2 {
    font-size: 26px;
  }

  .grid-2, .grid-3, .grid-4, .grid-6 {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .stat-number {
    font-size: 32px;
  }

  .news-card {
    flex-direction: column;
  }

  .faculty-grid {
    grid-template-columns: 1fr;
  }

  .staff-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .newsletter-form {
    flex-direction: column;
    padding: 0 24px;
  }

  .page-banner {
    padding: 48px 0 36px;
  }

  .page-banner h1 {
    font-size: 28px;
  }

  .content-page h2 {
    font-size: 24px;
  }

  .blog-post h1 {
    font-size: 26px;
  }

  .actions {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .staff-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: 26px;
  }
}
