/* Alap stílusok az ESG aloldalhoz */

@font-face {
    font-family: 'Roboto';
    src: url('/fonts/Roboto-Regular-webfont.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('/fonts/Roboto-Bold-webfont.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1 {
    color: #1a1e29;
    font-size: 44px;
    font-weight: 700;
    margin: 20px 0px;
    line-height: 1.2;
}

h2 {
    font-size: 36px;
    font-weight: 700;
}

h4 {
    font-size: 24px;
    margin: 0;
    line-height: 1.2;
}

h5 {
    color: #000;
    font-size: 20px;
    margin: 30px 0;
    line-height: 1.2;
    font-weight: 600;
}

h6 {
    color: #000;
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
    font-weight: 600;
}


p {
    color: #000;
    font-size: 18px;
    margin: 15px 0px;
    line-height: 1.6;
}

span {
  color: #000;
}


header {
    position: fixed; /* Fixed positioning */
    top: 0; /* Stick to the top */
    left: 0;
    width: 100%;
    background-color: #fff; /* White background for the navbar */
    z-index: 1000; /* Ensure it stays on top of other content */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional shadow for better visibility */
    padding: 10px 20px;
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1220px; /* Constrain the width */
    margin: 0 auto; /* Center the nav */
}

nav .logo img {
    height: 50px;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #1a1e29;
    font-weight: 500;
    padding: 5px 10px;
    transition: color 0.3s;
}

nav ul li a.active, nav ul li a:hover {
    color: #ec6516;
}

section {
    display: block;
}

/* Content */

.content {
    max-width: 1220px;
    margin: auto;
    padding: 40px 0;
    }

.hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    margin: 80px auto 40px;
}

.button-container {
    display: flex;
    flex-direction: row;
    justify-content: start;
    gap: 30px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 0 0 57%;
    display: flex;
    flex-direction: column;
    /*gap: 1rem;*/
    margin-right: 20px;
    padding: 40px 20px;
}

.hero-image {
    flex: 1;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://creditmanagement.hu/img/esg-tanacsadas-vallalatoknak.webp') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.icon img {
    width: 80px;
    height: 80px;
}

/* Ismérvek szakasz*/
.features-section {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://creditmanagement.hu/img/esg-tanacsadas-bg.webp'); /* Cseréld le a háttérképet */
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  padding: 0 0 60px; /* Padding alul */
}

.features-section h2 {
  color: #fff;
  margin-bottom: 45px;
}

/* Grid - Oszlopok */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px; 
  margin-top: -140px; 
}

.feature-column {
  background-color: white;
  padding: 20px;
  text-align: center;
  border: solid 1px #44546a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.feature-column:hover {
  transform: translateY(-5px);
}

.feature-column h4 {
  min-height: 93px; /* Fix magasság minden h4 számára */
  display: flex;
  align-items: top;
  justify-content: center;
  color: #718319;
  font-weight: 600;
}

.feature-column h6 {
  margin: 5px 0 0;
}

.feature-column p {
  font-size: 14px;
  margin: 10px 0 0;
}

.feature-column p.small {
  font-size: 12px;
  font-style: italic;
}

/* Counter grid - Számlálók */
.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.counter-column {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 50px 20px 30px;
  border: 2px solid #fff;
  text-align: center;
}

.counter-column p, .counter-column span {
  color: #fff;
}

.counter-column p {
  font-size: 14px;
  font-weight: 700;
}

.counter-column span {
  font-size: 60px;
  font-weight: 700;
}


/* Szolgáltatások szakasz */
.services {
    padding-bottom: 0;
    background-color: #f9f9f9;
}

.services ul {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}

.services li {
    background-color: #ffffff;
    border: 1px solid #44546a;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.services li:hover {
    transform: translateY(-5px);
}

.services img {
    max-width: 100%;
    margin-bottom: 10px;
}

/* ESG megoldások szakasz */
 .steps-section {
     position: relative;
     width: 100%;
     padding-bottom: 50px;
}
.background-bar {
     position: absolute;
     top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1220px;
    height: 50%;
    background-color: #44546a;
    z-index: -1;
}
.steps-grid {
     display: grid;
     grid-template-columns: repeat(4, 1fr);
     grid-template-rows: repeat(2, auto);
     gap: 30px;
     max-width: 1100px;
     margin: 20px auto 0;
}
.step {
     background: white;
     border: solid 1px #44546a;
     padding: 20px;
     text-align: center;
     display: flex;
     flex-direction: column;
     align-items: center;
}
.step img {
     height: 40px;
     width: auto;
}

.step img.landsc {
     height: 40px;
     width: 50px;
}

.step p {
    font-size: 14px;
    margin: 10px 0 0;
}

.empty {
     background: none;
     border: none;
        }
/* Jelentési kötelezettségek szakasz */
.law {
  padding: 0;
  border: solid 1px #44546a;
  margin: 20px 0 0;
  background: #fff;
}

.tabs {
     display: flex;
     gap: 0;
     margin-bottom: 50px;
}
.tab-button {
    flex: 1;
    padding: 20px 10px;
    border: solid 1px #44546a;
    cursor: pointer;
    background: #fff;
    color: #44546a;
    font-weight: 700;
    border-radius: 0;
    transition: 0.3s;
    margin-top: 0px;
    font-size: 20px;
}
.tab-button:hover, .tab-button.active {
    background: #44546a;
    border: solid 1px #44546a;
    color: white;
}
.tab-content {
     display: none;
     animation: fadeIn 0.5s;
}
.tab-content.active {
     display: block;
    padding: 0 30px 20px 40px;
}
table {
     width: 100%;
     border-collapse: collapse;
     margin-bottom: 30px;
}
th {
     background: #718319;
     color: white;
     padding: 15px 10px;
    font-size: 20px;
    font-weight: 700;
    width: 50%;
  border-right: solid 10px white;
    border-bottom: solid 10px white;
  text-align: left
}
td {
     background: #f9f9f9;
     padding: 10px;
     width: 50%;
  border-right: solid 10px white;
  font-size: 18px;
  line-height: 1.6;
}

@keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
}


/* Referenciák szakasz */
.references {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://creditmanagement.hu/img/referenciaink-bg.webp');
    background-attachment: fixed;
  background-size: cover;
  background-position: center;
    padding: 50px 20px;
}

.references h2, .references p {
    color: #fff;
}

.logos {
    display: grid;
  grid-auto-flow: row dense;
  grid-template-columns: auto auto auto auto auto; 
  gap: 10px; 
  justify-content: space-between; 
  align-items: center; 
  max-width: 100%;
  background: #fff;
  padding: 20px;
}

.logo {
    display: flex;
    justify-content: center; 
    align-items: center;
}

.logos img {
    height: 80px; 
  width: auto; 
  max-width: 100%;
}

/* Esettanulmányok szakasz */
.case-studies {
    padding: 40px;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.case-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.case-logo {
    height: 60px;
    width: auto;
}

.case-box {
    border: solid 1px #44546a;
    background: white;
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.case-box h4 {
    color: #8497B0;
    margin: 20px 0 10px;
}

.case-box p {
    display: flex;  
    align-items: flex-start;
    gap: 10px;
    margin: 0;
}

.case-box p i {
    flex-shrink: 0;
    margin-top: 4px;
}

.fa-map-marker-alt, .fa-home, .fa-envelope, .fa-phone {
    color: #44546a;
}

.fa-home, .fa-envelope, .fa-phone {
    padding-right: 10px;
}


/* Kontakt form */
.contact {
    padding: 50px 20px;
    background-color: #f9f9f9;
}

.contact .vcard {
    text-align: left;
    margin-top: 20px;
    background-color: #fff;
    padding: 40px 20px;
    border: solid 1px #44546a;
}

.vcard hr {
    border: none;
    border-top: 1px solid #8497B0; 
    margin: 10px 0;
}

.vcard a {
    color: #1e84c7;
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact label {
    display: block;
    font-weight: bold;
    margin-top: 10px;
}

.contact input, .contact textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}


.button {
    display: inline-block;
    margin-top: 50px;
    padding: 13px 40px;
    background-color: #ec6516;
    color: #ffffff;
    border: none;
    border-radius: 2px;
    letter-spacing: 2px;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #fff;
    color: #ec6516;
    border: solid 1px #ec6516;
}

footer {
    background-color: #1a1e29;
    color: white;
    text-align: center;
    padding: 10px 0; 
}

footer p, footer a {
  color: #fff;
font-size: 14px;
}

.fp, .fp a {
  font-size: 10px;
}

#cookie-banner #box {
    background: white;
    padding: 30px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
}

#accept-cookies {
    margin-top: 20px;
  }

/* Adatkezelési tájékoztató oldal */
.policy {
  max-width: 1220px;
  margin: 80px auto;
  padding: 40px 0;
}

/*Köszönő oldal*/
:root {
    --footer-height: 140px;
}

.full-page {
    min-height: calc(80vh - var(--footer-height));
    text-align: center;
    max-width: 1220px;
    margin: 80px auto 0;
    padding: 40px 20px;
}


/* Média lekérdezések */
@media (min-width: 1220px) {
	nav {
		justify-content: space-between;
	}
}

@media (max-width: 1219px) {
  .background-bar {
     width: 100%;
  }
}

@media (max-width: 1024px) {
  .content {
     padding: 40px 10px;
  }

  #cookie-banner #box {
        width: 90%;
        padding: 20px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 38px;
  }
  
  h2 {
    font-size: 32px;
  }
  
  h5 {
    font-size: 18px;
    margin: 20px 0 10px;
  }
  
  p {
    font-size: 16px;
  }
  
  .button {
    font-size: 14px;
  }
  
    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul li {
        margin: 5px 0;
    }
  
  .hero-content {
    margin-right: 0;
    padding: 0 20px;
  }

  .button-container {
    justify-content: center;
  }
  
  .counter-column {
    padding: 30px 20px;
  }
  
  .counter-column span {
    font-size: 50px;
  }

    .services ul {
        grid-template-columns: 1fr;
    }
    
  .steps ul {
        grid-template-columns: 1fr;
  }
   .hero {
        flex-direction: column;
        text-align: center;
	margin: 45px auto 40px;
    }

    .hero-image {
        display: none;
    }

    .icon {
        position: absolute;
        top: -40px;
        left: 50%;
        transform: translateX(-50%);
    }
   .features-grid, .counter-grid, .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-column, .counter-column {
    margin-bottom: 20px;
  }
  
  .case-studies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
  
  .background-bar {
    height: 55%;
  }
  
  .content {
    padding: 40px 20px;
  }
  
  .logos {
    grid-template-columns: auto auto auto auto;
    width: auto;
  }
  
  .logos img {
    height: 45px;
  }
  
  .tab-button {
    padding: 15px 10px;
  }
  
  .tab-content.active {
    padding: 0 20px 20px 30px;
  }
  
  .tab-button, th {
    font-size: 18px;
  }
  
  td {
    font-size: 16px;
  }
  
  .references {
    padding: 0 0 60px;
  }
  
  .services {
    padding-bottom: 40px;
  }
 
  .policy {
    padding: 40px 20px;
  }

  #cookie-banner #box {
        width: 95%;
        padding: 15px;
  }
  
}

@media ( max-width : 480px ){
	nav ul li a {
        font-size: 14px;
    }
  
  .counter-grid, .steps-grid, .case-studies-grid  {
    grid-template-columns: 1fr;
  }
  
  h1 {
    font-size: 32px;
  }
  
  h2 {
    font-size: 28px;
  }
  
  h4 {
    font-size: 20px;
  }

  .button {
    margin-top: 0;
}

  .pdf {
    margin-top: 50px;
}

  .button-container {
    flex-direction: column;
}

  .serv {
    text-align: center;
    margin-top: 50px;
}
  
  .background-bar {
    height: 72%;
  }
  
  .tab-content.active {
    padding: 0 0 20px 10px;
  }
  
  th {
    font-size: 16px;
  }
  
  .logos {
    grid-template-columns: auto auto auto;
  }

  #cookie-settings-modal {
         width: 80%;
    }
}

@media ( max-width : 375px ) {
  .tab-content.active {
    padding: 0 0 20px 5px;
  }
  
  th, td {
    font-size: 12px;
  }

  #accept-cookies {
    margin: 20px 0;
  }

  .logos {
    grid-template-columns: auto auto;
    width: auto;
  }
  
}
