
/* --- Global Reset & Variables --- */
:root {
    --brand-dark: rgb(23, 39, 61);
    --brand-cream: rgb(255, 252, 218);
    --menu-gray: #a9a9a9;
    --white: #ffffff;
    --brand-accent: #3b82f6; /* A soft blue for bullet points */
}
.main-header-table {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 0;
    z-index: 1000; /* Keeps the menu above the slideshow images */
    background-color: var(--brand-dark); /* Prevents images from showing through the header */
    border-collapse: collapse; /* Removes gaps between table cells */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* This targets the last cell in the top row of your main header table */
.main-header-table > tbody > tr > td {
    background-color: var(--brand-dark);
    opacity: 1;
    /* white-space: nowrap; */
    padding: 5px;
}

.main-header-table h1 {
    margin: 0;
    line-height: 1;
}

/* Optional: Add a shadow so it looks like it's floating over the content */
.main-header-table > tbody > tr > td:last-child {
    width: 100%;
}

body {
    background-color: var(--brand-dark);
    color: var(--brand-cream);
    font-family: "Raleway", sans-serif;
    font-weight: 200;
    line-height: 1.2;
    margin: 0 auto;
    padding: 0 20px 20px 20px;
    max-width: 70%;
}

h1 {
    color: var(--brand-cream);
    font-weight: 600;
    font-size: 2.7rem;
    margin: 0;
}


/* --- Navigation Bar --- */
.navbar {
    text-align: left;
    padding-right: 20px;
}

.dropdown { position: relative; display: inline-block; }

.dropbtn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Ensure the button is high enough to overlap the menu bridge */
    z-index: 10000; 
    position: relative;
}

/** start of drop down menu **/

.dropbtn:hover { transform: scale(1.05); }

.dropdown:hover .dropbtn {
    background-color: var(--white); 
    border-radius: 12px 12px 0 0;  /* Rounded top, flat bottom to merge */
    box-shadow: 0 -5px 15px rgba(23, 39, 61, 0.05); /* Optional: tiny shadow on top */
}

/* --- The Sliding Container --- */
.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    left: 0;
    top: 100%; /* Sits exactly at the bottom of the button */
    
    background-color: var(--white);
    width: 850px; 
    
    /* Rounded corners everywhere except top-left to connect to button */
    border-radius: 0 20px 20px 20px; 
    
    /* A deep, soft shadow for the whole unit */
    box-shadow: 0 20px 40px rgba(23, 39, 61, 0.12);
    
    padding: 30px;
    z-index: 9999;
    
    /* This margin-top pulls the menu up slightly to overlap the button 
       by 1px, hiding the seam between them */
    margin-top: -1px; 
    border: 1px solid rgba(23, 39, 61, 0.05);
    
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
/* --- Typography & Elements --- */
.dropdown-content .header h2 {
    color: var(--brand-dark);
    font-family: sans-serif;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.mega-table { width: 100%; border-collapse: collapse; }

/* Apply colors to the group */
.mega-table thead {
    background-color: #f2f2f2;
    color: #333333;
}

/* Apply padding and typography to the specific cells */
.mega-table thead th {
    padding: 15px !important; /* Now the padding will apply */
    font-size: 1.1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #eee; /* Optional: adds a nice definition line */
}


.menu-row td {
    padding: 12px 15px;
    transition: all 0.2s ease;
}


/* The Arrow Animation */
.arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.menu-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 10px 0;
}

.col-mid a, .col-right a {
    color: var(--menu-gray);
    text-decoration: none;
    font-size: 0.9rem;
}

/** end of drop down menu **/

.header {
    background: #f8f8f8;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.header h2 {
    color: var(--brand-dark);
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

/* --- The Interactive Table --- */
.mega-table {
    border-collapse: collapse;
    z-index: 1001;
    width: 100%;
    table-layout: fixed;
}

.mega-table td {
    padding: 0;
    border: 1px solid #eee;
    height: 55px;
    vertical-align: middle;
    background-color: white;
   /* white-space: nowrap;*/
    color: var(--brand-dark);
}

.mega-table a {
    display: flex;
    align-items: center;
    padding: 0 15px;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: var(--brand-dark);
    font-weight: 500;
    box-sizing: border-box;
    font-size: 14px;
}
.menu-row.active-service {
    background-color: var(--brand-cream);
    border-radius: 10px;
}

.menu-row.active-service .col-trigger a {
    color: var(--brand-accent);
}

.menu-row.active-service .arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Keep the other services in column 1 "dormant" even when hovering, 
   UNLESS they become the active service via JavaScript. 
*/
.col-trigger a {
    position: relative;
    padding-right: 25px; /* Make room for the arrow */
    text-decoration: none;
    color: var(--brand-dark);
    font-weight: 600;
    transition: color 0.3s ease;
}

/* 2. Create the arrow using a pseudo-element */
/* Update the arrow position */
.col-trigger a::after {
    content: '\2192'; 
    position: absolute;
    /* Adjust this value to pull it further left */
    /* 15px or 20px usually provides a nice professional margin */
    right: 15px; 
    
    opacity: 0;
    /* We start the animation slightly further left so it 'glides' in */
    transform: translateX(-5px); 
    transition: all 0.3s ease;
    color: var(--brand-accent);
    font-size: 1.1rem; /* Makes the arrow slightly more prominent */
    line-height: 1;
}

/* Ensure the glide-in ends at the new right position */
.menu-row.active-service .col-trigger a::after {
    opacity: 1;
    transform: translateX(0);
}

/* 4. Ensure the text turns blue for the active service */
.menu-row.active-service .col-trigger a {
    color: var(--brand-accent);
}
/* Optional: Subtle feedback for the individual sub-links in col 2 and 3 */
.col-mid a:hover, .col-right a:hover {
    color: var(--brand-dark);
    font-weight: bold;
}
/* Hover States */
.col-trigger:hover {
    background-color:  var(--brand-dark)!important;
}
.col-trigger:hover a {
    color: var(--white) !important;
}

.menu-active .col-mid,
.menu-active .col-right {
    /* background-color: var(--menu-gray); */
}
.menu-active .col-mid a,
.menu-active .col-right a {
   /* color: var(--white); */
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.col-mid a, .col-right a {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Target only the middle and right columns on hover */
#megaMenu .col-mid:hover, 
#megaMenu .col-right:hover {
  background-color: var(--brand-dark); /* Dark background example */
  color: #fff;            /* White text color */
}

/* Ensure the link inside the cell also changes color */
#megaMenu .col-mid:hover a, 
#megaMenu .col-right:hover a {
  color: #fff;
}

/* This class will hide the menu even if the mouse is still hovering */
.force-hide {
    display: none !important;
}

/* Target any element that is the destination of a hash link */
[id] {
    scroll-margin-top: 120px; /* Adjust this to be slightly more than your header height */
}

.aseme-intro {
    padding: 40px 20px 10px 20px;
    background-color: var(--brand-dark);
}

.intro-card {
    max-width: 1100px; 
    margin: 0 auto; 
    background-color: var(--brand-cream);
    border-radius: 12px;
    padding: 30px 40px;
    text-align: center;
    box-sizing: border-box;
    border: 1px solid rgba(255, 252, 218, 0.1);
}

.intro-headline {
    color: var(--brand-dark) !important; 
    font-size: 1.8rem;
    margin: 0 0 15px 0;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.knight-icon {
    font-size: 2rem;
    color: var(--brand-dark);
}

.intro-lead {
    font-weight: 700;
    color: var(--brand-dark);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

/* Vertikal liste igen */
.intro-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 20px auto;
    max-width: 750px; /* Snævrere for at holde punkterne centreret som blok */
    text-align: left;
}

.intro-list li {
    position: relative;
    font-size: 1rem;
    color: #222;
    padding-left: 28px;
    margin-bottom: 8px;
}

.intro-list li::before {
    content: "\2714";
    position: absolute;
    left: 0;
    color: var(--brand-accent);
    font-weight: bold;
}

/* Stærkere opsummering */
.intro-summary-strong {
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--brand-dark); /* Bruger brand-dark for mere kontrast */
    font-weight: 600; /* Gør teksten semi-bold */
    max-width: 850px;
    margin: 0 auto;
    border-top: 2px solid rgba(23, 39, 61, 0.15); /* Tykkere skillelinje */
    padding-top: 18px;
}

.intro-footer {
    color: var(--brand-dark);
    margin-bottom: 12px;
}

@media (max-width: 650px) {
    .intro-headline { font-size: 1.5rem; flex-direction: column; }
    .intro-card { padding: 25px 20px; }
}
/* --- Slideshow Styling --- */
.slideshow-container {
    max-width: 900px;
    position: relative;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    overflow: hidden;
    display: block;
}

.mySlides { display: none; }
.mySlides img { width: 100%; display: block; }

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white; /* Changed to white for visibility on images */
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s;
    user-select: none;
    text-decoration: none;
    background-color: rgba(0,0,0,0.2);
    z-index: 10;
}

.next { right: 0; border-radius: 3px 0 0 3px; }
.prev { left: 0; border-radius: 0 3px 3px 0; }

.prev:hover, .next:hover { background-color: rgba(0,0,0,0.8); }

.dot-container { text-align: center; padding: 10px; }
.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: 0.3s;
}
.active, .dot:hover { background-color: var(--brand-cream); }
.fade { animation: fadeEffect 1.5s; }
@keyframes fadeEffect { from {opacity: 0.4} to {opacity: 1} }

/* Styling for the empty row */
.spacer-row td {
    height: 20px; /* Makes it a thin divider */
    border: none; /* Removes borders for a cleaner look */
    background-color: var(--white); /* Ensures it stays white */
    pointer-events: none; /* Ensures hovering here does nothing */
}

.minimal-icon {
  /* Size of the icon area */
  width: 40px;
  height: 40px;
  
  /* The Icon Image (Using image_0.png) */
  background-image: url('back_to_top.png'); /* Ensure the path points to image_0.png */
  background-size: contain; /* The icon fills the area, preserving aspect ratio */
  background-repeat: no-repeat;
  background-position: center;

  /* Transparent background and no border */
  background-color: transparent;
  
  /* Smooth Animation for interactivity */
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Hover State */
.minimal-icon:hover {
  transform: translateY(-8px); /* Lifts the arrow slightly higher */
}

/* Active/Click State */
.minimal-icon:active {
  transform: translateY(0); /* Drops back down when clicked */
}

/* Service Table */
.service-table {
    font-family: "Raleway", sans-serif;
    font-weight: 200;
    border-collapse: collapse;
    width: 70%;

    background: var(--brand-dark);
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.service-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
}
.check-col {
    width: 40px;
    text-align: center;
    color: var(--brand-cream);
    font-size: 1.2rem;
}
.service-text {
    color: var(--brand-cream);
}
/* Styling the callback row */
.callback-row {
    background-color: #f8f9fa;
}
.btn-col {
    padding-right: 0 !important;
}
.callback-btn {
    background-color: var(--brand-dark);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 600;
}
.callback-btn:hover {
    background-color: #0056b3;
}
.input-col input {
    width: 90%;
    padding: 9px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}
.contact-container table {
    width: 70%;
    max-width: 600px; /* The form will never be wider than 600px, but will shrink on phones */
}

/* This targets both inputs and the textarea */
input, textarea {
    background-color: var(--brand-cream); 
    color: #333333;            /* Dark text color for readability */
    border: 1px solid #cccccc; /* Subtle border */
    padding: 5px;
    border-radius: 4px;        /* Rounded corners */
    width: 100%;               /* Ensures they fill the table cell */
    box-sizing: border-box;    /* Keeps padding from breaking the width */
}

.aseme-wrapper {
    max-width: 1200px;
    margin: 20px auto;
    border-radius: 12px; /* Controls the roundness */
    overflow: hidden; /* This clips the table corners to match the wrapper */
    border: 2px solid var(--brand-cream); /* The Outer Cream Edge */
    box-shadow: 0 4px 15px rgba(23, 39, 61, 0.1);
}

.aseme-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #ffffff;
}

/* Force the header background and cream text */
.aseme-table th {
    background-color: var(--brand-dark) !important;
    color: var(--brand-cream) !important;
    padding: 20px;
    text-align: left;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    }

.aseme-table td {
    padding: 18px;
    border-bottom: 1px solid rgba(23, 39, 61, 0.15);
    vertical-align: top;
    line-height: 1.6;
    color: var(--brand-dark) !important;
}

/* Striping */
.aseme-table tr:nth-child(even) {
    background-color: var(--brand-cream) !important;
}

/* Remove border on the last row so it doesn't double up with the wrapper */
.aseme-table tr:last-child td {
    border-bottom: none;
}

.industry-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--brand-dark);
    display: block;
}

.aseme-list {
    margin: 0;
    padding-left: 1.2rem;
}

.aseme-list li {
    margin-bottom: 4px;
    color: var(--brand-dark);
}

/* Subtle Hover effect */
.aseme-table tr:hover {
    filter: contrast(1.1) brightness(0.97);
    transition: 0.2s;
}

.aseme-services {
    padding: 10px 20px 40px 20px;
    /* Baggrunden bliver din mørke brand farve */
    background-color: var(--brand-dark); 
}

.service-grid {
    display: grid;
    gap: 25px;
    max-width: 1100px; 
    margin: 0 auto;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
}

.service-card {
    /* Kortets baggrund bliver din cream farve */
    background-color: var(--brand-cream);
    border: 1px solid rgba(255,252,218, 0.1); /* Diskret kant */
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    min-height: 280px; 
}

.service-card:hover {
    transform: translateY(-8px);
    /* Lyser en smule op ved hover for effekt */
    box-shadow: 0 15px 30px rgba(0,0,0,0.4); 
    border-color: var(--brand-accent);
}

.service-content {
    flex-grow: 1;
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    /* Mørk tekst på lys baggrund */
    color: var(--brand-dark); 
    font-weight: 800;
}

.service-card p {
    font-size: 0.95rem;
    /* En anelse blødere sort til brødteksten */
    color: #333; 
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
    /* Bruger din accent blå til links */
    color: var(--brand-accent); 
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
}

.arrow-svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.service-card:hover .arrow-svg {
    transform: translateX(5px);
}

/* Responsivitet */
@media (max-width: 992px) {
    .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
    .service-grid { grid-template-columns: 1fr; }
}
.chapter-card {
    background-color: var(--brand-cream);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    margin: 40px auto;
    max-width: 850px;
    overflow: hidden;
    border: 1px solid rgba(23, 39, 61, 0.2);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

[id] {
    scroll-margin-top: 140px !important;
}

.card-header {
    background-color: var(--brand-dark);
    color: var(--brand-cream);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

    /* BULLETPROOF CSS ICON */
.scroll-top-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 2px solid var(--brand-cream);
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s;
    }

.scroll-top-btn:hover {
    background-color: rgba(255, 252, 218, 0.1);
}

/* The Chevron Shape */
.chevron-up {
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--brand-cream);
    border-left: 2px solid var(--brand-cream);
    transform: rotate(45deg);
    margin-top: 4px; /* Centers it visually within the box */
}

.card-body {
    padding: 35px;
    line-height: 1.75;
    color: var(--brand-dark);
}

.card-body ul {
    padding-left: 20px;
    list-style-type: square;
}

.card-body li {
    margin-bottom: 10px;
}
