* {
    box-sizing: border-box;
    
}
html {
  scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: Georgia, serif;
    text-align: left;
    overflow-x: hidden;
    justify-content: center; /* Horizontal */
    align-items: center;
    /* padding-inline: 0 0 300px 0; */
}

.flash-messages {
    width: min(900px, calc(100% - 40px));
    margin: 20px auto 0;
}

.flash-message {
    padding: 12px 16px;
    border: 1px solid #f1c40f;
    border-radius: 8px;
    background: #fff8d9;
    color: #4a3b00;
    line-height: 1.4;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.flash-message--hiding {
    opacity: 0;
    transform: translateY(-8px);
}

body h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    max-width: 450px;
    font-weight: 500;
}
nav {
    text-align: right;
    padding: 12px 200px;
}

nav a {
    display: inline-block;
    margin: 0 20px;
    padding: 6px 0;
    text-decoration: none;
    color: #043f77;
}

nav a:hover {
    color: #043f77
}

nav a.active {
    color: #043f77;
    border-bottom: 2px solid #043f77;
}


nav .Logo {
    float: left;
    font-size: 1.5em;
    font-weight: 600;
    color: #043f77;
    margin: 0px;
}

.hero {
  background: linear-gradient(145deg, #0d1b3e 0%, #1b3a70 35%, #3a6ab0 70%, #5b8fd4 100%);
  color: white;
  padding: 150px 60px 150px 800px;  /* top right bottom left */
  width: 100%;
  min-height: 700px;
  box-sizing: border-box;
  margin: 0;
}

.hero h1 {
    font-size: 3.75em;
    margin-bottom: 20px;
    max-width: 600px;
    font-weight: 500;
    color: #ffffff;
}

.hero p {
    font-size: 1.24em;
    max-width: 500px;
    line-height: 1.5;
    padding-bottom: 20px;
}

.btn{
    background-color: #ffffff;
    color: #043f77;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
}

.btn-group {
    display: flex;
    gap: 20px;
}

.btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.btn-nobc {
    background-color: transparent;
    color: #ffffff;
    padding: 15px 30px;
    border: #ffffff solid 2px;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.btn-nobc:hover {
    transform: translateY(-5px);
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.6);
}

.btn-admin {
    display: inline-block;
    background-color: #043f77;
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.btn-admin:hover {
    transform: translateY(-5px);
    color: #ffffff;
}

.services {
  background: #ffffff;
  color: #1a1a1a;
  min-height: 400px;
  padding: 150px 60px 150px 500px;
  width: 100%;
}

.services h1 {
    font-size: 3em;
    margin-bottom: 20px;
    max-width: 600px;
    font-weight: 500;
    color: #043f77;
}

.services p {
    font-size: 1.15em;
    max-width: 650px;
    line-height: 1.5;
    padding-bottom: 20px;
}

.card-group {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.card{
    background-color: #ffffff;
    padding: 15px 30px;
    border: 1px solid #303df3;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 300;
    cursor: pointer;
    max-width: 500px;
    text-decoration: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card h3 {
    font-size: 1.25em;
    margin-bottom: 10px;
    color: #043f77;
}

.card p {
    font-size: 1em;
    color: #1a1a1a;
    text-align:left;
}


.about {
  background: #d0d0d0;
  color: #1a1a1a;
  padding: 60px 40px;
  min-height: 400px;
  padding: 60px 60px 150px 800px;
  width: 100%;
}

.info-group {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    color: #1a1a1a;
}

.about h4 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #043f77;
    font: 100;
}

.card-nobc {
    padding: 15px 15px;
    font-size: 1em;
    font-weight: 300;
    max-width: 300px;
    text-decoration: none;
}

.contact {
  padding: 60px 40px;
  min-height: 400px;
  padding: 60px 60px 150px 800px;
  width: 100%;
  
}

.contact h1 {
    font-size: 3em;
    margin-bottom: 20px;
    max-width: 600px;
    font-weight: 500;
    color: #043f77;
}

.contact h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #043f77;
}

.contact a{
    text-decoration: none;
    color: #1a1a1a;
}
.footer {
    background-color: #03284a;
    color: white;
    text-align: center;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

.dropdown {
    display: inline-block;
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 100;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.container{
    /* background-color: rgb(177, 174, 174); */
    padding: 30px;
    border-radius: 20px;
    /* box-shadow: 0 0 15px; */
    width: 100%;
    max-width: 500px;
    margin: 10px auto;

}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0;
}

input[type="text"],
input[type="password"],
input[type="submit"]{

    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}
input[type="submit"] {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3 ease;
}
input[type="submit"]:hover {
    background-color: #0056b3;
}


h1 {
    color: #007bff;

}

a{
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover{
    color: #0056b3;
}


.admin-actions {
    position: fixed;
    bottom: 20px;
    right: 20px;
}
.container h1 {
    max-width: 100%;  /* arba tiesiog pašalink max-width */
    font-size: 2em;
    color: #043f77;
}
form {
    display: flex;
    flex-direction: column;
    gap: 15px;  /* more space between fields */
}
.companies-section {
  background: #ffffff;
  color: #1a1a1a;
  width: 100%;
}
.companies-group {
    display: flex;
    flex-wrap: wrap;  /* persikelia į kitą eilutę kai netelpa */
    gap: 33px;
}

.company-card {
    border: 1px solid #000000;
    border-radius: 10px;
    padding: 10px 20px;
    margin-bottom: 10px;
    margin-left: 10px;  
    max-width: 600px;
    width: calc(33% - 20px);
}

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.company-details {
    flex: 1;
    min-width: 0;
}

.company-details summary {
    cursor: pointer;
    font-weight: 600;
    color: #043f77;
    padding: 5px 0;
    list-style: none;
}

.company-details summary::-webkit-details-marker {
    display: none;
}


.btn-delete {
    display: inline-block;
    background-color: #c0392b;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.btn-delete:hover {
    transform: translateY(-2px);
    background-color: #a93226;
}

.btn-edit {
    display: inline-block;
    background-color: #29b94b;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.btn-edit:hover {
    transform: translateY(-2px);
    background-color: #27a945;
}

.btn-pdf {
    display: inline-block;
    background-color: #043f77;
    color: white;       
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.btn-pdf:hover {
    transform: translateY(-2px);
    color: white;
    background-color: #032f59;
}

.btn-excel-pdf {
    display: inline-block;
    background-color: #217346;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.btn-excel-pdf:hover {
    transform: translateY(-2px);
    color: white;
    background-color: #185c37;
}

.company-card table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
}

.company-card td {
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.company-card td:first-child {
    font-weight: 600;
    color: #043f77;
    width: 300px;
}

.Input-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.Input-group label {
    min-width: 180px;
    font-weight: 600;
    color: #043f77;
}
