/* ASIS Norway - Inspired professional layout */
:root {
  --navy: #0a2540;
  --navy-light: #1a3a5c;
  --accent: #1e88e5;
  --accent-light: #64b5f6;
  --text: #2c3e50;
  --text-light: #5a6c7d;
  --bg: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--navy); }

/* Header */
.header {
  background: var(--navy);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img {
  height: 50px;
  width: auto;
}
.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.logo-text span { font-weight: 400; font-size: 0.9rem; display: block; opacity: 0.85; }
nav ul {
  list-style: none;
  display: flex;
  gap: 1.8rem;
}
nav a {
  color: white;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
nav a:hover, nav a.active { color: var(--accent-light); }
.menu-toggle { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero {
  background: linear-gradient(135deg, rgba(10,37,64,0.85), rgba(10,37,64,0.6)), url('../images/U5own.jpg') center/cover no-repeat;
  color: white;
  padding: 6rem 1.5rem;
  text-align: center;
}
.hero-content {
  max-width: 800px;
  margin: 0 auto;
}
.hero h1 { font-size: 2.8rem; margin-bottom: 1rem; font-weight: 700; }
.hero p { font-size: 1.25rem; opacity: 0.95; margin-bottom: 2rem; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s;
}
.btn:hover { background: #1565c0; color: white; }
.btn-outline {
  background: transparent;
  border: 2px solid white;
  margin-left: 1rem;
}
.btn-outline:hover { background: white; color: var(--navy); }

/* Sections */
.section { padding: 4rem 1.5rem; }
.section-alt { background: white; }
.container { max-width: 1100px; margin: 0 auto; }
.section h2 { font-size: 2rem; color: var(--navy); margin-bottom: 1.5rem; text-align: center; }
.section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0.8rem auto 0;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.card:hover { transform: translateY(-4px); }
.card img { width: 100%; height: 180px; object-fit: cover; }
.card-body { padding: 1.4rem; }
.card h3 { color: var(--navy); margin-bottom: 0.5rem; }
.news-item { border-bottom: 1px solid #e0e0e0; padding: 1.2rem 0; }
.news-item:last-child { border: none; }
.news-date { color: var(--accent); font-size: 0.85rem; font-weight: 600; }

/* Footer */
.footer {
  background: var(--navy);
  color: #ccc;
  padding: 2.5rem 1.5rem 1.5rem;
  margin-top: 2rem;
}
.footer-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.footer a { color: var(--accent-light); }
.footer p { margin: 0.5rem 0; font-size: 0.95rem; }
.footer-credit {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
}

/* Page specific */
.page-header {
  background: var(--navy);
  color: white;
  padding: 3rem 1.5rem;
  text-align: center;
}
.page-header h1 { font-size: 2.4rem; }

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy);
    padding: 1rem;
    gap: 1rem;
  }
  nav ul.open { display: flex; }
  .hero h1 { font-size: 2rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .btn-outline { margin-left: 0; margin-top: 0.5rem; display: inline-block; }
}
