:root {
  /* Professional Color Palette */
  --primary-color: #2c5aa0;
  --primary-dark: #1e3f73;
  --primary-light: #4a7bc8;
  --secondary-color: #f8f9fa;
  --accent-color: #e74c3c;
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --text-light: #ffffff;
  --background-light: #ffffff;
  --background-section: #f8f9fa;
  --border-color: #e9ecef;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-strong: 0 8px 30px rgba(0, 0, 0, 0.2);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background-light);
  font-size: 16px;
}

.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* PROFESSIONAL HEADER */
header {
  background: var(--background-light);
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

header nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  height: 80px;
}

.bruer-logo {
  height: 60px;
  width: auto;
  transition: var(--transition);
}

.bruer-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.bruer-logo:hover {
  transform: scale(1.05);
}

.meny-span {
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.meny-span:hover {
  background-color: var(--background-section);
  color: var(--primary-dark);
}

/* NAVIGATION OVERLAY */
.overlay {
  height: 100%;
  width: 100%;
  position: fixed;
  z-index: 1100;
  top: -100%;
  left: 0;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  overflow-x: hidden;
  transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 2rem;
}

.overlay a {
  text-decoration: none;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-light);
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.overlay a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.closebtn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2rem;
  color: var(--text-light);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition);
}

.closebtn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}
/* MAIN CONTENT */
main {
  flex: 1;
}

section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* HERO SECTION */
.bygge-bruer-div {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--border-radius);
  margin: 3rem auto;
  max-width: 1200px;
}

.bygge-bruer-div img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  transition: var(--transition);
}

.bygge-bruer-div:hover img {
  transform: scale(1.05);
  filter: brightness(0.6);
}

.content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-light);
  background: rgba(44, 90, 160, 0.9);
  backdrop-filter: blur(10px);
  padding: 3rem 2rem;
  border-radius: var(--border-radius);
  max-width: 600px;
  transform: translateY(0);
  transition: var(--transition);
}

.content:hover {
  transform: translateY(-10px);
  background: rgba(44, 90, 160, 0.95);
}

.content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.les-mer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: var(--accent-color);
  color: var(--text-light);
  text-decoration: none;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.les-mer-button:hover {
  background: #c0392b;
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

/* EVENTS SECTION */
.kommende-eventer {
  padding: 4rem 2rem;
  background: var(--background-section);
  margin: 3rem 0;
  border-radius: var(--border-radius);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.details-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.details-row h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.details-row button {
  padding: 0.8rem 1.5rem;
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.details-row button:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.eventer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.eventer-div {
  background: var(--background-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.eventer-div:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-strong);
}

.img-div {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.img-div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.eventer-div:hover .img-div img {
  transform: scale(1.1);
}

.span-details-div {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  flex-wrap: wrap;
}

.span-details-div span {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.eventer-div h3 {
  padding: 0 1rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0.5rem 0;
}

.eventer-div p {
  padding: 0 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.eventer-div button {
  margin: 1rem;
  padding: 0.8rem 1.5rem;
  background: var(--accent-color);
  color: var(--text-light);
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  width: calc(100% - 2rem);
}

.eventer-div button:hover {
  background: #c0392b;
  transform: translateY(-2px);
}
/* PROJECT OVERLAY/MODAL */
.projecter-overlay {
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(5px);
}

.projecter-overlay-content {
  background: var(--background-light);
  border-radius: var(--border-radius);
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-strong);
  margin: 2rem;
}

.projecter-overlay-content .closebtn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-color);
  color: var(--text-light);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.projecter-overlay-content .closebtn:hover {
  background: #c0392b;
  transform: scale(1.1);
}

.img-container {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-conatiner {
  padding: 2rem;
}

.info-conatiner h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.info-conatiner p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.info-conatiner a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.info-conatiner a:hover {
  text-decoration: underline;
}
/* PROFESSIONAL FOOTER */
footer {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--text-light);
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
}

footer nav {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.footer-logo {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.footer-logo .bruer-logo {
  height: 80px;
  width: auto;
}

.footer-logo .bruer-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.footer-section ul li:first-child {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-light);
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 0.5rem;
}

.footer-section ul li span {
  font-weight: 500;
  color: var(--text-light);
  font-size: 0.95rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  padding: 0.2rem 0;
}

.footer-section ul li a:hover {
  color: var(--text-light);
  transform: translateX(3px);
}

.footer-section ul li i {
  font-size: 1.1rem;
  width: 18px;
  flex-shrink: 0;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* PAGE HEADER STYLING */
.page-header {
  text-align: center;
  padding: 4rem 2rem 2rem;
  background: linear-gradient(135deg, var(--background-section), var(--background-light));
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ABOUT US PAGE STYLING */
#om_oss {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

#om_oss section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  background: var(--background-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

#om_oss section:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
}

#om_oss section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
}

#om_oss section div h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

#om_oss section div p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.1rem;
}
/* PROJECTS PAGE STYLING */
.projecter-eventer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.projecter-eventer-div {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  background: var(--background-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  margin-bottom: 2rem;
  overflow: hidden;
  transition: var(--transition);
}

.projecter-eventer-div:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.bilde-container {
  height: 300px;
  overflow: hidden;
}

.projecter-eventer-div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.projecter-eventer-div:hover img {
  transform: scale(1.1);
}

.projecter-dato-div {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.projecter-eventer-div h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.projecter-eventer-div p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.projecter-eventer-div button {
  align-self: flex-start;
  padding: 0.8rem 1.5rem;
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.projecter-eventer-div button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* SUPPORT US PAGE */
#stott_oss {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.support-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  align-items: start;
}

.support-info h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.support-info p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.support-info ul {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.support-info ul li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.support-info ul li i {
  color: var(--primary-color);
  margin-right: 1rem;
  font-size: 1.2rem;
  width: 20px;
}

.support-content .bilde-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

.support-content .bilde-container img {
  width: 100%;
  height: auto;
  display: block;
}

.donation-section {
  background: var(--background-section);
  padding: 3rem;
  border-radius: var(--border-radius);
  text-align: center;
  margin-bottom: 3rem;
}

.donation-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.donation-section p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.alternative-support {
  margin-top: 3rem;
  text-align: left;
}

.alternative-support h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
}

.support-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.support-option {
  background: var(--background-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.support-option:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.support-option i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.support-option h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.support-option p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* 404 PAGE */
#fffpage {
  text-align: center;
  padding: 4rem 2rem;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#fffpage h1 {
  font-size: 8rem;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

#fffpage p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .eventer-container {
    grid-template-columns: 1fr;
  }
  
  .projecter-eventer-div {
    grid-template-columns: 1fr;
  }
  
  footer nav {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: left;
  }
  
  .footer-logo {
    grid-column: 1 / -1;
    justify-content: center;
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .content h2 {
    font-size: 2rem;
  }
  
  .content {
    padding: 2rem 1.5rem;
    max-width: 90%;
  }
  
  .bygge-bruer-div {
    height: 60vh;
    min-height: 400px;
  }
  
  .details-row {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .details-row h2 {
    font-size: 1.8rem;
  }
  
  .eventer-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .kommende-eventer {
    padding: 2rem 1rem;
  }
  
  header nav {
    padding: 1rem;
  }
  
  section {
    padding: 0 1rem;
  }
  
  .page-header {
    padding: 3rem 1rem 2rem;
  }
  
  .page-header h1 {
    font-size: 2.2rem;
  }
  
  .page-header p {
    font-size: 1.1rem;
  }
  
  #om_oss section {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }
  
  .support-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .donation-section {
    padding: 2rem 1rem;
  }
  
  .support-options {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  footer nav {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .footer-logo {
    grid-column: 1;
    justify-content: center;
    margin-bottom: 1rem;
  }
  
  .projecter-overlay-content {
    margin: 1rem;
    max-height: 90vh;
  }
  
  .info-conatiner {
    padding: 1.5rem;
  }
  
  .info-conatiner h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .content h2 {
    font-size: 1.5rem;
  }
  
  .content {
    padding: 1.5rem 1rem;
  }
  
  .les-mer-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  
  .details-row h2 {
    font-size: 1.5rem;
  }
  
  .eventer-div h3 {
    font-size: 1.2rem;
  }
  
  .span-details-div {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .span-details-div span {
    text-align: center;
  }
  
  .overlay a {
    font-size: 1.5rem;
  }
  
  #fffpage h1 {
    font-size: 4rem;
  }
  
  header nav {
    padding: 0.5rem;
  }
  
  .bruer-logo {
    height: 50px;
  }
}

/* SMOOTH SCROLLING AND ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eventer-div,
.projecter-eventer-div,
#om_oss section {
  animation: fadeInUp 0.6s ease-out;
}

/* UTILITY CLASSES */
.text-center {
  text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* 404 Error Page Styles */
.error-content {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.error-number {
  font-size: 8rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-message h2 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.error-message p {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.suggestions {
  text-align: left;
  background: var(--background-light);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  border-left: 4px solid var(--primary-color);
}

.suggestions h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.suggestions ul {
  list-style: none;
  padding: 0;
}

.suggestions li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.suggestions li::before {
  content: '→';
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.suggestions a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-smooth);
}

.suggestions a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .error-number {
    font-size: 6rem;
  }
  
  .error-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .error-actions .btn {
    width: 100%;
    max-width: 250px;
  }
  
  .suggestions {
    padding: 1.5rem;
  }
}
