:root
{
    --background: #f5f9f6;
    --interactive-component: #E6F6EB;
    --interactive-component-hover: #D6F1DF;
    --text: #218358;
    --text-hover: #193B2D;
    --header-slideshow-delay: 4s;
    --header-slideshow-effect-duration: 1s;
    --footer-background: #537751;
    --footer-background-hover: #3c563b;
}

body, html
{
    background-color: var(--background);
    margin: 0;
    padding: 0;
    height: 100%;
}

.page-container 
{
    display: flex;
    flex-direction: column;
    height: 88%;
}

.content-wrap 
{
    flex: 1;
}

footer {
    border-top: 2px solid var(--footer-background);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--footer-background);
    width: 100%;
}

.site-footer
{
    align-items: stretch;
    color: white;
}

* 
{
    font-family: 'Montserrat';
} 

header
{
    position: relative;
    width: 100%;
    overflow: hidden;
}

.header-wide 
{
    height: 70%;
}

header nav
{  
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 3;
    font-family: 'Montserrat';
}

header nav a  
{
    color: white;
    padding: 15px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
}

header nav a:hover 
{
    color: rgb(144, 144, 144);
}

.slide-from-bottom 
{
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.75s ease, transform 0.75s ease, color 0.2s ease, font-weight 0.2s ease;
}

.slide-from-bottom.active 
{
    opacity: 1;
    transform: translateY(0);
}

.presentation-breadcrumb
{
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 0.9rem;
    color: var(--text);
}

.presentation-breadcrumb a
{
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.presentation-breadcrumb a:hover
{
    color: var(--text-hover);
    text-decoration: underline;
}

.presentation-breadcrumb-separator
{
    opacity: 1;
}

.header-img 
{
    position: absolute;
    top: -150px;
    width: 100%;
}

.flag 
{
    font-size: 40px;
    z-index: 1;
    text-decoration: none;
}

.flag img 
{
    width: 40px;
    border-radius: 5px;
}

.container-footer-content 
{
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) minmax(180px, 1fr) minmax(220px, 1.2fr) minmax(180px, 0.9fr);
    gap: 40px;
    align-items: start;
    padding: 50px 40px;
    width: 100%;
    margin: 0 auto;
    max-width: 1380px;
    min-height: 150px;
}

.container-footer-information
{
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.footer-line 
{
    background-color: rgb(228, 228, 228);
    height: 2px;
    margin: 0;
    border: 0;
}

footer a
{ 
    color: white;
    text-decoration: none; 
}

footer a:hover 
{ 
    color: white;
    text-decoration: none; 
    cursor: pointer;  
}

.footer-logo
{
    width: 150px;
}

.footer-brand-link
{
    display: inline-flex;
    width: fit-content;
}

.footer-branding,
.footer-nav
{
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-kicker,
.footer-heading,
.footer-description,
.footer-languages,
.footer-small-text,
.footer-address
{
    color: white;
    margin: 0;
}

.footer-kicker
{
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.85;
}

.footer-heading
{
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-description,
.footer-small-text,
.footer-address,
.footer-languages
{
    line-height: 1.7;
    opacity: 0.95;
}

.footer-contact-list
{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-address
{
    font-style: normal;
}

.footer-title
{
    color: white;
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-links
{
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.footer-links li
{
    margin: 0;
}

.footer-bottom-links
{
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    font-weight: 700;
}

.contact-section
{
    margin: 5% 15%;
}

.contact-section ul li 
{
    list-style-type: none;
}

.contact-infos 
{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 100px;
    width: 100%;
}

.contact-title
{
    margin-top: 0;
    margin-bottom: 1em;
    font-size: 1.17em;
    font-weight: bold;
}

.leaflet-map 
{
    flex: 1;
    height: 400px;
    max-width: 50%;
    min-width: 50%;
}

.contact-form
{
    margin: 50px auto;
}

.contact-form button, .contact-form textarea, .contact-form input
{
    margin: 0px 10px 10px 0px;
    border: 2px solid rgb(204, 204, 204);
    border-radius: 10px;
    padding: 10px 20px;
    outline: 0;
    box-sizing: border-box;
    width: 100%;
}

.contact-form textarea
{
    height: 200px;
}

.contact-form button[type=submit]
{    
    border-radius: 10px;
    border: 0px;
    color: var(--text);
    background-color: var(--interactive-component);
    cursor: pointer;
    transition: 0.3s ease;
}

.contact-form button[type=submit]:hover
{
    background-color: var(--interactive-component-hover);
    color: var(--text-hover);
}

.legal-section 
{
    margin: 50px 20%;
    text-align: justify;
    font-family: 'Libre-franklin';
}

.legal-section h3 
{
    text-transform: uppercase;
    margin-bottom: 75px;
    font-family: 'Libre-franklin';
}

.legal-section h4 
{
    color: gray;
    text-transform: uppercase;
    font-size: 15px;
    margin-top: 50px;
    font-family: 'Libre-franklin';
}

.legal-section p 
{
    margin-left: 20px;
    font-family: 'Libre-franklin';
    font-weight: 300;
}

.news-section
{
    margin: 50px 25%;
}

.news-section * 
{
    font-family: 'Libre-franklin';
}

.news-section .title
{
    text-transform: uppercase;
}

#mobile-header 
{
    display: none;
}

#mobile-header-content
{
    overflow: hidden; 
}

.mobile-dropdown
{
    height: 0px;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 20px;
}

.hamburger 
{
    position: absolute;
    top: 5em;
    right: 10%;
    margin-left: -2em;
    margin-top: -55px;
    width: 2em;
    height: 45px;
    z-index: 5;
}

.hamburger div 
{
    position: relative;
    width: 3em;
    height: 5px;
    border-radius: 3px;
    background-color: white;
    margin-top: 8px;
    transition: all 0.3s ease-in-out;
}

#toggle:checked + .hamburger .top-bun 
{
    transform: rotate(-45deg);
    margin-top: 25px;
}

#toggle:checked + .hamburger .bottom-bun 
{
    opacity: 0;
    transform: rotate(45deg);
}

#toggle:checked + .hamburger .meat 
{
    transform: rotate(45deg);
    margin-top: -5px;
}

#toggle:checked + .hamburger + .nav 
{
    top: 0;
    transform: scale(1);
}

.display-dropdown
{
    animation: smoothDropdown 1s forwards;
}

.hide-dropdown
{
    animation: smoothCloseDropdown 1s forwards;
}

@keyframes smoothDropdown
{
    from 
    {
        height: 0px;
    }

    to 
    {
        height: 330px;
    }
}

@keyframes smoothCloseDropdown
{
    from 
    {
        height: 320px;
    }

    to 
    {
        height: 0px;
    }
}

#toggle 
{
    display: none;
}

.mobile-header-nav
{
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: baseline;
    margin: 0;
}

.mobile-element-line
{
    margin: 15px;
}

.mobile-flag-container
{
    display: flex;
    margin: 0px;
    z-index: 1;
}

.admin-login-form 
{
    width: 400px;
}

.login-form-container 
{
    display: flex;
    justify-content: center;
}

.home-quote
{
    text-align: center;
    margin: 5%;
    color: #666;
    font-size: 1.125rem;
}

.home-section
{
    margin: 5% 20%;
}

.home-card-container
{
    padding: 0 100px;
    margin-top: -50px;
    background-color: var(--background);
    border-radius: 50px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 75px;
    position: relative;
    z-index: 3;
}

.field-card-container
{
    margin: 50px 150px;
    padding: 0;
    justify-content: flex-start;
}

.field-intro
{
    margin: 25px 150px 0;
    padding-left: 0;
}

.field-intro-text
{
    max-width: 800px;
}

.home-card
{
    margin-top: -50px;
    width: 280px; 
    overflow: hidden;
    padding: 18px;
    border-radius: 25px;
    background-color: white;
    box-shadow: 0px 0px 30px 2px rgba(0, 0, 0, 0.3);
    text-align: left;
    transform: translateY(500px);
    transition: transform 0.75s ease;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.home-card-header
{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.home-card-title
{
    margin: 0;
    color: var(--text-hover);
    font-size: 1.05rem;
    line-height: 1.3;
    max-width: 165px;
}

.home-card-cta
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background-color: var(--footer-background);
    color: white;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.home-card-media
{
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 0;
    position: relative;
    z-index: 1;
}

.home-card-image
{
    width: 78%;
    height: auto;
    max-height: 168px;
}

.square-image {
    width: 80%;
    height: 80%;
    object-fit: contain;
    aspect-ratio: 1 / 1;
}

.home-card-no-anim
{
    transform: translateY(0px);
    margin-top: 0px;
    transition: transform 0s !important;
}

.home-card.active 
{
    transform: translateY(0px);
}

.body-border 
{
    border-radius: 50px;
    background-color: white;
}

.card-container 
{
    perspective: 1250px;
    text-decoration: none;
    color: black;
    display: block;
}

.card {
    cursor: pointer;
	position: relative;
	transform: rotate3d(0);
}

.card p 
{
    text-align: center;
    margin: 0 25px;
}

.field-card
{
	transition-duration: 300ms !important;
	transition-property: transform, box-shadow !important;
	transition-timing-function: ease-out !important;
}

.field-card .home-card-title
{
    max-width: 160px;
}

.field-card .field-card-title
{
    margin: 0;
    font-size: 1rem;
    font-weight: bold;
    text-wrap: balance;
}

.field-card .home-card-cta
{
    padding: 0 14px;
}
  
.card:hover
{
	transition-duration: 150ms;
}

.card:hover .home-card-cta
{
    background-color: var(--footer-background-hover);
    transform: translateY(-1px);
}

.link-btn 
{
    color: white;
    background-color: var(--footer-background);
    text-decoration: none;
    padding: 15px 26px;
    border-radius: 15px;
    transition: 0.2s;
    display: inline-block;
    width: auto;
    white-space: nowrap; 
}

.link-btn:hover 
{
    background-color: var(--footer-background-hover);
}

.basic-title
{
    text-transform: uppercase;
    margin: 40px 0px;
}

.header-mobile-title
{
    color: white;
    margin: 0;
    margin-left: 25px;
    font-family: 'Tangerine';
    font-size: 40px;
}

.home-field-btn 
{
    text-align: center;
    margin: 100px;

}

.home-profile-card
{
    display: flex;
    align-items: center;
    gap: 24px;
    background-color: white;
    border: 1px solid #e1e7e3;
    border-radius: 16px;
    padding: 24px;
    margin: 30px auto 50px;
    box-shadow: 0 12px 26px rgba(25, 59, 45, 0.08);
}

.home-profile-image
{
    width: 165px;
    height: 165px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
    border: 3px solid #eef5ef;
}

.home-profile-title
{
    margin: 0 0 10px;
    color: var(--text-hover);
    font-size: 1.25rem;
    line-height: 1.4;
}

.home-profile-description
{
    margin: 0;
    color: #4a4a4a;
    line-height: 1.7;
}

.home-faq
{
    margin-top: 80px;
}

.home-faq-item
{
    background-color: white;
    border: 1px solid #e1e7e3;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.home-faq-item summary
{
    cursor: pointer;
    font-weight: 700;
    color: var(--text-hover);
    line-height: 1.5;
}

.home-faq-item p
{
    margin: 12px 0 4px;
    color: #4a4a4a;
    line-height: 1.7;
}

.presentation-logo 
{
    float: right;
    width: 235px;
}

.field-law-attention-box 
{
    background-color: var(--interactive-component);
    border-radius: 15px;
    padding: 20px;
}

.image-juv-law
{
    display: block;
    margin-left: auto;
    margin-right: '0';
    width: 300px;
    height: auto;
}

.juv-law-title-container
{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.juv-law-text-title
{
    margin-right: 20px;
}

input::placeholder,
textarea::placeholder 
{
    font-size: 1.1em;
}

.fade-in-text 
{
    opacity: 0; /* Initial opacity set to 0 */
    transition: opacity 1s ease-in-out; /* Transition effect with a duration of 1 second */
}
  
.fade-in 
{
    opacity: 1; /* Change opacity to 1 when the element has the "fade-in" class */
}

.header-slideshow img:nth-of-type(1) {
    animation-name: fader;
    animation-delay: var(--header-slideshow-delay);
    animation-duration: var(--header-slideshow-effect-duration);
    z-index: 2;
}
.header-slideshow img:nth-of-type(2) {
    z-index: 1;
}
.header-slideshow img:nth-of-type(n+3) {
    display: none;
}

@keyframes fader 
{
    from { opacity: 1.0; }
    to   { opacity: 0.0; }
}

.hover-underline-animation {
    display: inline-block;
    position: relative;
}
  
.hover-underline-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: white;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}
  
.hover-underline-animation:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}