/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0077C0;
    --light-blue: #E3F2FD;
    --blue-accent: #0066CC;
    --blue-dark: #0055AA;
    --navy-blue: #0B2B5C;
    --white: #FFFFFF;
    --black: #1a1a1a;
    --gray-light: #F5F7FA;
    --gray-medium: #E8EDF2;
    --gray-dark: #4a4a4a;
    --text-dark: #2c2c2c;
    --border-radius-default: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--gray-light);
    font-size: 16px;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Header */
.header {
    background: linear-gradient(180deg, rgba(227, 242, 253, 0.98) 0%, rgba(200, 230, 250, 0.95) 100%);
    box-shadow: 0 2px 12px rgba(0, 119, 192, 0.08), 0 1px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 500;
    /* Do not use backdrop-filter here — it makes position:fixed descendants
       (mobile-header) stick to <header> instead of the viewport. */
}

/* Header Top Layer */
.header-top {
    border-bottom: 1px solid rgba(0, 119, 192, 0.1);
    position: relative;
    background: linear-gradient(180deg, rgba(227, 242, 253, 0.98) 0%, rgba(215, 236, 252, 0.96) 100%);
}

.header-top::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 119, 192, 0.1) 20%, rgba(0, 119, 192, 0.15) 50%, rgba(0, 119, 192, 0.1) 80%, transparent 100%);
}

.header-top-controls {
    display: none;
}

.header-content-centered {
    display: none;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 60px;
    width: auto;
    max-width: 240px;
}

.header-top-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.375rem;
}

.header-title {
    width: auto;
}

.header-title h1 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 0;
    line-height: 1.3;
    text-align: right;
}

.header-phone-lang-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-end;
}

.header-phone {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.header-phone a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header-phone a:hover {
    color: var(--primary-blue);
}

.header-phone svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Header Bottom Layer */
.header-bottom {
    border-bottom: 1px solid rgba(0, 119, 192, 0.1);
    position: relative;
    background: linear-gradient(180deg, rgba(210, 232, 251, 0.94) 0%, rgba(200, 230, 250, 0.95) 100%);
}

.header-bottom .container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 2rem;
    position: relative;
}

.nav-menu {
    display: flex;
    justify-content: center;
    width: 100%;
}

.nav-menu .container {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 2rem;
}

.header-phone-lang-container .lang-switcher-desktop {
    display: flex;
    align-items: center;
    margin-left: 0;
}

.lang-switcher-desktop .lang-globe {
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: 1px solid rgba(0, 119, 192, 0.2);
    border-radius: 50%;
    color: var(--primary-blue);
}

.lang-switcher-desktop .lang-globe:hover {
    background-color: rgba(0, 119, 192, 0.1);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.lang-switcher-desktop .lang-globe svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 63.999rem) {
    .lang-switcher-desktop {
        display: none !important;
    }

}

.logo a {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
    padding: 0.25rem;
}

.logo a:hover {
    transform: scale(1.02);
}

.logo img {
    object-fit: contain;
    display: block;
    border-radius: 12px;
    background: transparent;
    clip-path: inset(0 round 12px);
    mask-image: radial-gradient(white, black);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    margin: 0 auto;
}


.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    justify-content: center;
}

.nav-menu-list {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    justify-content: center;
}

.nav-menu li,
.nav-menu-list li {
    position: relative;
    flex-shrink: 0;
}

.nav-menu a,
.nav-menu-list a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.6rem 0.9rem;
    display: block;
    white-space: nowrap;
    letter-spacing: 0.01em;
    border-radius: 6px;
}

.nav-menu a:hover,
.nav-menu-list a:hover {
    color: var(--primary-blue);
    background-color: rgba(0, 119, 192, 0.05);
}

.nav-menu a:active,
.nav-menu-list a:active {
    color: var(--primary-blue);
}

/* Active state for current section */
.nav-menu a.active,
.nav-menu-list a.active,
.nav-menu a.is-active,
.nav-menu-list a.is-active {
    color: var(--primary-blue);
    font-weight: 500;
    background-color: rgba(0, 119, 192, 0.07);
}

.menu-item--active-trail > a {
    color: var(--primary-blue);
    font-weight: 500;
    background-color: rgba(0, 119, 192, 0.07);
}

.nav-item-with-badge::after {
    content: 'NOU!';
    display: inline-block;
    background-color: #dc3545;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-left: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    vertical-align: middle;
}

.lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 1.5rem;
}

.lang-globe {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 119, 192, 0.15);
    border-radius: 50%;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.lang-globe:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 119, 192, 0.25);
    transform: translateY(-1px);
}

.lang-globe svg {
    width: 20px;
    height: 20px;
}

/* Legacy lang-dropdown styles - kept for backward compatibility if needed elsewhere */
.lang-dropdown:not(:has(.lang-dropdown-form)) {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border: 1px solid rgba(0, 119, 192, 0.15);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-width: 80px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
    pointer-events: none;
}

.lang-dropdown:not(:has(.lang-dropdown-form)).visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s;
}

.lang-option {
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
    text-decoration: none;
    display: block;
}

.lang-option:hover {
    background-color: rgba(0, 119, 192, 0.08);
    color: var(--primary-blue);
}

.lang-option.active {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* Language Switcher - List Design */
.lang-switcher,
.lang-switcher-desktop {
    position: relative;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(0);
    transition: opacity 0.15s ease,
                visibility 0s linear 0.15s;
    margin-top: 0;
    min-width: 130px;
}

/* Show dropdown on hover of parent OR dropdown itself */
.lang-switcher:hover .lang-dropdown,
.lang-switcher-desktop:hover .lang-dropdown,
.lang-dropdown:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.15s ease,
                visibility 0s linear 0s;
}

/* Language List Styles */
.lang-dropdown .lang-list {
    margin: 0;
    padding: 0.5rem 0;
    list-style: none;
    background: var(--white);
    border: 1.5px solid rgba(0, 119, 192, 0.25);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08),
                0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.lang-dropdown .lang-item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lang-dropdown .lang-link {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    text-align: left;
    width: 100%;
    letter-spacing: 0.01em;
}

.lang-dropdown .lang-item:hover .lang-link {
    background-color: rgba(0, 119, 192, 0.08);
    color: var(--primary-blue);
}

.lang-dropdown .lang-item.current .lang-link {
    background-color: var(--primary-blue);
    color: var(--white);
    font-weight: 700;
}

.lang-dropdown .lang-link:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: -2px;
    background-color: rgba(0, 119, 192, 0.1);
}

.lang-dropdown .lang-item.current .lang-link:focus {
    background-color: var(--blue-accent);
    outline-color: var(--white);
}

/* Desktop adjustments */
.lang-switcher-desktop .lang-dropdown {
    min-width: 80px;
}

.lang-switcher-desktop .lang-dropdown .lang-link {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
}

/* Legacy lang-btn styles - hidden by default, kept for fallback */
.lang-btn {
    display: none;
    padding: 0.5rem 0.9rem;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 119, 192, 0.15);
    border-radius: 6px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 44px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.lang-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 6px rgba(0, 119, 192, 0.12);
    transform: translateY(-1px);
}

.lang-btn.active {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 119, 192, 0.25);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
    z-index: 1001;
    position: relative;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
}

.nav-toggle span {
    width: 24px;
    height: 2.5px;
    background-color: var(--primary-blue);
    transition: all 0.3s ease;
    border-radius: 2px;
    display: block;
    position: relative;
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -1.25px;
    margin-left: -12px;
    transform: rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -1.25px;
    margin-left: -12px;
    transform: rotate(-45deg);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 50%, var(--light-blue) 100%);
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, rgba(227, 242, 253, 0.6) 0%, var(--gray-light) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    opacity: 0.4;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100%;
    min-width: 100%;
    max-width: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(227, 242, 253, 0.7) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(227, 242, 253, 0.7) 100%);
    z-index: 1;
}

.hero-wave-decoration {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background-size: cover;
    z-index: 2;
}

.hero .hero-wave-decoration {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,64L48,69.3C96,75,192,85,288,80C384,75,480,53,576,48C672,43,768,53,864,58.7C960,64,1056,64,1152,58.7C1248,53,1344,43,1392,37.3L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
}

.hero-info-section .hero-wave-decoration {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23E3F2FD' fill-opacity='1' d='M0,64L48,69.3C96,75,192,85,288,80C384,75,480,53,576,48C672,43,768,53,864,58.7C960,64,1056,64,1152,58.7C1248,53,1344,43,1392,37.3L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    padding: 0 1.5rem;
}

.hero-quote {
    position: relative;
    margin-bottom: 1.75rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
    font-style: italic;
    text-shadow: none;
    padding: 0;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-shadow: none;
}

.hero-info-section {
    padding: 4rem 0 5rem;
    background-color: var(--gray-light);
    position: relative;
    overflow: hidden;
    z-index: 3;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    padding: 0;
    background: transparent;
    position: relative;
    z-index: 3;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    background: var(--white);
    padding: 2rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 119, 192, 0.1);
    border: 1px solid rgba(0, 119, 192, 0.1);
    min-width: 180px;
    transition: all 0.3s ease;
    flex: 0 1 auto;
}

.hero-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 119, 192, 0.2);
    border-color: var(--primary-blue);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.hero-description {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0;
    position: relative;
    z-index: 2;
}

.hero-description p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-dark);
    margin: 0;
    padding: 0 1rem;
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(0, 119, 192, 0.35);
}

.btn-primary:hover {
    background-color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    margin-top: 1rem;
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* Page Sections */
.page-section {
    background-color: var(--white);
}

.page-section.alt-bg {
    background-color: var(--gray-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--black);
    position: relative;
    display: inline-block;
    width: 100%;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
    border-radius: 2px;
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Content Above / Content Below regions: breathing room so blocks placed
   there don't stick to the surrounding content or the footer. */
.content-above {
    padding-bottom: clamp(1.5rem, 4vw, 2rem);
}

.content-below {
    padding: clamp(1.5rem, 4vw, 2rem) 0 clamp(2.5rem, 6vw, 2rem);
}

/* Main Content Area */
.main-content {
  background-color: #fff;
    min-height: 400px;
}

.content-area {
    width: 100%;
}

.content-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* Drupal Blocks Styling */
.block {
    margin-bottom: 3rem;
    position: relative;
}

.block:last-child {
    margin-bottom: 0;
}

/* Remove default block titles unless they're needed */
.block h2.block-title,
.block .block__title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-blue);
    position: relative;
}

.block h2.block-title::after,
.block .block__title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--primary-blue);
}

/* Block Content Wrapper */
.block__content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 119, 192, 0.1);
    transition: all 0.3s ease;
}

.block__content:hover {
    box-shadow: 0 6px 25px rgba(0, 119, 192, 0.15);
    transform: translateY(-2px);
}

/* Block paragraphs and text */
.block__content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.block__content p:last-child {
    margin-bottom: 0;
}

.block__content ul,
.block__content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

/* Global List Styles */
.content-area ul,
.content-area ol,
.content-wrapper ul,
.content-wrapper ol,
.node__content ul,
.node__content ol,
.field__item ul,
.field__item ol,
.block__content ul,
.block__content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    list-style-position: outside;
}

.content-area ul,
.content-wrapper ul,
.node__content ul,
.field__item ul,
.block__content ul {
    list-style: none;
    padding-left: 1.5rem;
}

.content-area ol,
.content-wrapper ol,
.node__content ol,
.field__item ol,
.block__content ol {
    list-style-type: decimal;
    color: var(--primary-blue);
}

.content-area li,
.content-wrapper li,
.node__content li,
.field__item li,
.block__content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 1.05rem;
    padding-left: 1.5rem;
    position: relative;
}

/* Custom bullet points for ul lists */
.content-area ul li::before,
.content-wrapper ul li::before,
.node__content ul li::before,
.field__item ul li::before,
.block__content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 8px;
    height: 8px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 119, 192, 0.3);
    transform: translateY(-50%);
}

.content-area li:last-child,
.content-wrapper li:last-child,
.node__content li:last-child,
.field__item li:last-child,
.block__content li:last-child {
    margin-bottom: 0;
}

/* Nested lists */
.content-area ul ul,
.content-area ol ol,
.content-area ul ol,
.content-area ol ul,
.content-wrapper ul ul,
.content-wrapper ol ol,
.content-wrapper ul ol,
.content-wrapper ol ul,
.node__content ul ul,
.node__content ol ol,
.node__content ul ol,
.node__content ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
}

.content-area ul ul,
.content-wrapper ul ul,
.node__content ul ul {
    padding-left: 1.5rem;
}

/* Smaller bullets for nested ul */
.content-area ul ul li::before,
.content-wrapper ul ul li::before,
.node__content ul ul li::before {
    width: 6px;
    height: 6px;
    box-shadow: 0 1px 3px rgba(0, 119, 192, 0.25);
}

.content-area ul ul ul,
.content-wrapper ul ul ul,
.node__content ul ul ul {
    padding-left: 1.5rem;
}

/* Square bullets for deeper nesting */
.content-area ul ul ul li::before,
.content-wrapper ul ul ul li::before,
.node__content ul ul ul li::before {
    border-radius: 2px;
    width: 6px;
    height: 6px;
    box-shadow: 0 1px 3px rgba(0, 119, 192, 0.25);
}

/* Links in headings */
.content-area h2 a,
.content-area h3 a,
.content-area h4 a,
.content-area h5 a,
.content-area h6 a,
.content-wrapper h2 a,
.content-wrapper h3 a,
.content-wrapper h4 a,
.content-wrapper h5 a,
.content-wrapper h6 a,
.node__content h2 a,
.node__content h3 a,
.node__content h4 a,
.node__content h5 a,
.node__content h6 a,
.node h2 a,
.node h3 a,
.node h4 a,
.node h5 a,
.node h6 a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.2s ease;
}

.content-area h2 a:hover,
.content-area h3 a:hover,
.content-area h4 a:hover,
.content-area h5 a:hover,
.content-area h6 a:hover,
.content-wrapper h2 a:hover,
.content-wrapper h3 a:hover,
.content-wrapper h4 a:hover,
.content-wrapper h5 a:hover,
.content-wrapper h6 a:hover,
.node__content h2 a:hover,
.node__content h3 a:hover,
.node__content h4 a:hover,
.node__content h5 a:hover,
.node__content h6 a:hover,
.node h2 a:hover,
.node h3 a:hover,
.node h4 a:hover,
.node h5 a:hover,
.node h6 a:hover {
    color: var(--blue-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}

/* List items with links */
.content-area li a,
.content-wrapper li a,
.node__content li a,
.field__item li a,
.block__content li a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.content-area li a:hover,
.content-wrapper li a:hover,
.node__content li a:hover,
.field__item li a:hover,
.block__content li a:hover {
    color: var(--blue-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 2px;
}

/* Links in blocks */
.block__content a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.block__content a:hover {
    color: var(--blue-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 2px;
}

/* Section Blocks (like hero info sections) - no extra styling needed */
section.block,
.hero-info-section {
    background-color: transparent;
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: none;
}

section.block .block__content,
#harta.block .block__content {
    background-color: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

section.block .block__content:hover,
#harta.block .block__content:hover {
    transform: none;
    box-shadow: none;
}

/* Sidebar blocks */
.sidebar .block {
    margin-bottom: 2rem;
}

.sidebar .block__content {
    padding: 1.5rem;
}

/* Responsive adjustments for blocks */
@media (max-width: 63.999rem) {
    .content-layout {
        flex-direction: column;
        gap: 0;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .block {
        margin-bottom: 2rem;
    }

    .block__content {
        padding: 1.5rem;
        border-radius: 8px;
    }

    .block h2.block-title,
    .block .block__title {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
}

/* User page: breathing room between the content and the footer. */
.user-page .content-wrapper {
    padding-bottom: 3rem;
}

/* ==========================================================================
   User profile card (/user/N — user--full.html.twig)
   ========================================================================== */
.user-profile {
    width: 100%;
}

.user-profile__header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 72%);
    border: 1px solid var(--gray-medium);
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(11, 43, 92, 0.06);
}

.user-profile__avatar {
    width: 88px;
    height: 88px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary-blue);
    border: 3px solid var(--white);
    box-shadow: 0 6px 16px rgba(0, 119, 192, 0.25);
}

.user-profile__avatar .field,
.user-profile__avatar .field a,
.user-profile__avatar .field .field__item {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.user-profile__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-profile__avatar-fallback {
    color: var(--white);
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1;
}

/* Column stack: name / email / member pill each on their own row,
   so the header adapts cleanly at any width. */
.user-profile__identity {
    flex: 1 1 14rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
}

.user-profile__name {
    margin: 0;
    color: var(--navy-blue, #0B2B5C);
    font-size: clamp(1.35rem, 2.6vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.user-profile__email {
    display: block;
    max-width: 100%;
    margin: 0;
    color: var(--primary-blue);
    font-size: 0.925rem;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.user-profile__email:hover,
.user-profile__email:focus-visible {
    color: var(--blue-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* "Member for X" pill — own markup, always a single line. */
.user-profile__member {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    background: var(--light-blue);
    color: var(--primary-blue);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.user-profile__member-icon {
    width: 0.85rem;
    height: 0.85rem;
    flex-shrink: 0;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 3'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 3'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Header actions: edit + (for admins) masquerade. */
.user-profile__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-left: auto;
}

.user-profile__masquerade article {
    margin: 0;
    padding: 0;
}

.user-profile__masquerade a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.3rem;
    background: var(--white);
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.user-profile__masquerade a::before {
    content: '';
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3h5v5M21 3l-7 7M8 21H3v-5M3 21l7-7'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3h5v5M21 3l-7 7M8 21H3v-5M3 21l7-7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.user-profile__masquerade a:hover,
.user-profile__masquerade a:focus-visible {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 6px 16px rgba(0, 119, 192, 0.3);
    text-decoration: none;
}

.user-profile__edit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.3rem;
    background: var(--primary-blue);
    color: var(--white);
    border: 1px solid var(--primary-blue);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.user-profile__edit:hover,
.user-profile__edit:focus-visible {
    background: var(--blue-dark);
    color: var(--white);
    box-shadow: 0 6px 16px rgba(0, 119, 192, 0.3);
    text-decoration: none;
}

.user-profile__edit-icon {
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Details grid: each field as a small info card. */
.user-profile__details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.user-profile__details .field {
    margin: 0;
    padding: 0.9rem 1.1rem;
    background: var(--white);
    border: 1px solid var(--gray-medium);
    border-left: 4px solid var(--primary-blue);
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(11, 43, 92, 0.04);
}

.user-profile__details .field__label {
    margin: 0 0 0.3rem;
    color: var(--gray-dark);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.user-profile__details .field__item {
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    word-break: break-word;
}

.user-profile__details .field__item a {
    color: var(--primary-blue);
    text-decoration: none;
}

.user-profile__details .field__item a:hover,
.user-profile__details .field__item a:focus {
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 576px) {
    .user-profile__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-profile__actions {
        margin-left: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .user-profile__edit,
    .user-profile__masquerade a {
        width: 100%;
        justify-content: center;
    }

    .user-profile__details {
        grid-template-columns: 1fr;
    }
}

/* User account forms (e.g. Simplenews subscriptions on /user/N/simplenews). */
.user-page .content-layout .content-area .region--content form {
    padding: 24px;
}

.user-page .content-layout .content-area form fieldset {
    margin: 0 0 1.5rem;
    padding: 1.25rem 1.25rem 1.1rem;
    border: 1px solid var(--gray-medium);
    border-radius: calc(var(--border-radius-default) * 2);
    background: var(--gray-light);
}

/* Generic form controls — keeps other modules (Webform, Views, etc.) consistent. */
.user-page .content-layout .content-area form .form-text,
.user-page .content-layout .content-area form .form-email,
.user-page .content-layout .content-area form .form-search,
.user-page .content-layout .content-area form .form-tel,
.user-page .content-layout .content-area form .form-url,
.user-page .content-layout .content-area form .form-number,
.user-page .content-layout .content-area form .form-date,
.user-page .content-layout .content-area form select,
.user-page .content-layout .content-area form textarea {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--gray-medium);
    border-radius: var(--border-radius-default);
    background: var(--white);
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.user-page .content-layout .content-area form .form-text:focus,
.user-page .content-layout .content-area form .form-email:focus,
.user-page .content-layout .content-area form .form-search:focus,
.user-page .content-layout .content-area form .form-tel:focus,
.user-page .content-layout .content-area form .form-url:focus,
.user-page .content-layout .content-area form .form-number:focus,
.user-page .content-layout .content-area form .form-date:focus,
.user-page .content-layout .content-area form select:focus,
.user-page .content-layout .content-area form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 119, 192, 0.12);
}

.user-page .content-layout .content-area form label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
}

.user-page .content-layout .content-area form .form-item {
    margin: 0 0 1rem;
}

/* Filter/search rows (e.g. Webform submissions filter form). */
.user-page .content-layout .content-area form .form-item + .form-actions,
.user-page .content-layout .content-area form .container-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

/* Render the legend as an in-flow panel title, not the browser notch. */
.user-page .content-layout .content-area form legend {
    float: left;
    width: 100%;
    margin: 0 0 0.9rem;
    padding: 0;
    color: var(--text-dark);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.user-page .content-layout .content-area form .fieldset-wrapper {
    clear: both;
}

.user-page .content-layout .content-area form .form-type-checkbox:last-child {
    margin-bottom: 0;
}

.user-page .content-layout .content-area form .form-type-checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.6rem;
    padding: 0.7rem 0.9rem;
    background: var(--white);
    border: 1px solid var(--gray-medium);
    border-radius: var(--border-radius-default);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.user-page .content-layout .content-area form .form-type-checkbox:hover {
    border-color: var(--primary-blue);
}

.user-page .content-layout .content-area form .form-type-checkbox:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 119, 192, 0.12);
}

.user-page .content-layout .content-area form .form-type-checkbox input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--primary-blue);
    cursor: pointer;
}

.user-page .content-layout .content-area form .form-type-checkbox label {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
}

.user-page .content-layout .content-area form fieldset .description,
.user-page .content-layout .content-area form .fieldset-wrapper > .description {
    margin-top: 0.75rem;
    color: var(--gray-dark);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.user-page .content-layout .content-area form .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.user-page .content-layout .content-area form .form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0.7rem 1.75rem;
    border: 1px solid var(--primary-blue);
    border-radius: var(--border-radius-default);
    background: var(--primary-blue);
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.user-page .content-layout .content-area form .form-submit:hover,
.user-page .content-layout .content-area form .form-submit:focus {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    box-shadow: 0 6px 16px rgba(0, 119, 192, 0.25);
}

@media (max-width: 640px) {
    .user-page .content-layout .content-area .region--content form {
        padding: 16px;
    }

    .user-page .content-layout .content-area form fieldset {
        padding: 1rem 0.9rem 0.9rem;
    }

    .user-page .content-layout .content-area form .form-submit {
        width: 100%;
    }
}

/* Disable core's sticky thead on frontend tables — the admin-toolbar
   displace offset pushes the header into the middle of the table. */
.user-page table.sticky-header thead,
.user-page table.sticky-header thead th {
    position: static;
    top: auto;
}

/* User page tables (e.g. persistent logins on /user/N/persistent-logins). */
.user-page .content-layout .content-area .region--content table {
    width: calc(100% - 48px);
    margin: 24px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--gray-medium);
    border-radius: var(--border-radius-default);
    overflow: hidden;
    font-size: 0.925rem;
    line-height: 1.45;
}

.user-page .content-layout .content-area .region--content table thead th {
    padding: 0.8rem 1rem;
    background: var(--gray-light);
    color: var(--gray-dark);
    font-size: 0.8125rem;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid var(--gray-medium);
}

/* Sortable column links (tablesort) inherit the header look. */
.user-page .content-layout .content-area .region--content table thead th a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: inherit;
    font: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    text-decoration: none;
}

.user-page .content-layout .content-area .region--content table thead th a:hover,
.user-page .content-layout .content-area .region--content table thead th a:focus {
    color: var(--primary-blue);
    text-decoration: none;
}

.user-page .content-layout .content-area .region--content table .tablesort {
    flex-shrink: 0;
    width: 0.75rem;
    height: 0.75rem;
}

.user-page .content-layout .content-area .region--content table tbody td {
    padding: 0.85rem 1rem;
    color: var(--text-dark);
    background: var(--white);
    border-bottom: 1px solid var(--gray-medium);
    vertical-align: middle;
}

.user-page .content-layout .content-area .region--content table tbody tr:last-child td {
    border-bottom: none;
}

.user-page .content-layout .content-area .region--content table tbody tr:nth-child(even) td {
    background: #fafcfe;
}

.user-page .content-layout .content-area .region--content table tbody tr:hover td {
    background: var(--light-blue);
}

/* Empty-state cell ("No persistent logins have been created."). */
.user-page .content-layout .content-area .region--content table td[colspan] {
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--gray-dark);
    font-style: italic;
}

@media (max-width: 640px) {
    .user-page .content-layout .content-area .region--content table {
        width: calc(100% - 32px);
        margin: 16px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Sidebar user menu (Cabinetul Personal): logout as a separated danger action. */
/* "Unmasquerade" link — shown only while masquerading as another user. */
#block-sidebar-user-menu-block ul > li:has(a[data-drupal-link-system-path="unmasquerade"]) {
    border-bottom: 1px solid var(--gray-medium);
    padding-bottom: 0.35rem;
    margin-bottom: 0.35rem;
}

#block-sidebar-user-menu-block a[data-drupal-link-system-path="unmasquerade"] {
    color: var(--primary-blue);
    font-weight: 600;
    background: transparent;
}

#block-sidebar-user-menu-block a[data-drupal-link-system-path="unmasquerade"]::before {
    content: '';
    display: inline-block;
    vertical-align: -0.1em;
    width: 0.85rem;
    height: 0.85rem;
    margin-right: 0.4rem;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14L4 9l5-5'/%3E%3Cpath d='M4 9h10a6 6 0 0 1 0 12h-3'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14L4 9l5-5'/%3E%3Cpath d='M4 9h10a6 6 0 0 1 0 12h-3'/%3E%3C/svg%3E") center / contain no-repeat;
}

#block-sidebar-user-menu-block a[data-drupal-link-system-path="unmasquerade"]:hover,
#block-sidebar-user-menu-block a[data-drupal-link-system-path="unmasquerade"]:focus {
    color: var(--blue-dark);
    background: var(--light-blue);
}

#block-sidebar-user-menu-block ul > li:has(a[data-drupal-link-system-path="user/logout"]) {
    border-top: 1px solid var(--gray-medium);
    padding-top: 0.35rem;
}

#block-sidebar-user-menu-block a[data-drupal-link-system-path="user/logout"] {
    color: #b23a3a;
    background: transparent;
}

#block-sidebar-user-menu-block a[data-drupal-link-system-path="user/logout"]:hover,
#block-sidebar-user-menu-block a[data-drupal-link-system-path="user/logout"]:focus {
    color: #8f2626;
    background: #fdecec;
}

/* Status messages (status_messages module): the default close button is a
   tiny "x" at 25% opacity — replace it with a clear, round close control. */
.simple-status-messages .status-message-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    top: 8px;
    right: 8px;
    padding: 0;
    border-radius: 50%;
    color: inherit;
    transition: background 0.15s ease, transform 0.15s ease;
}

.simple-status-messages .status-message-close::before {
    content: '';
    width: 13px;
    height: 13px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Hide the raw "x" character; the icon above replaces it. */
.simple-status-messages .status-message-close span {
    display: none;
}

.simple-status-messages .status-message-close:hover,
.simple-status-messages .status-message-close:focus-visible {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.08);
}

.simple-status-messages .status-message-close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 1px;
}

/* Breadcrumb Styles */
.breadcrumb-wrapper {
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-medium);
    padding: 1rem 0;
}

/* When local tasks (tabs) follow the breadcrumb, don't double the spacing.
   Requires actual tab items — the region wrapper also renders empty (e.g. for
   users without admin tabs) and must not eat the breadcrumb margin then. */
.breadcrumb-wrapper:has(+ #highlighted li) {
    margin-bottom: 0;
}

#highlighted > .region--highlighted > .block-core > ul {
    margin: 0 auto;
}

.breadcrumb {
    font-size: 0.875rem;
    line-height: 1.4;
}

.breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 0;
}

.breadcrumb__item {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    color: var(--gray-dark);
}

.breadcrumb__item:not(:last-child)::after {
    content: '/';
    display: inline-block;
    margin: 0 0.5rem;
    color: var(--gray-dark);
    font-weight: 400;
    line-height: 1;
}

.breadcrumb__link {
    color: var(--primary-blue);
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
}

.breadcrumb__link:hover {
    color: var(--blue-dark);
    text-decoration: underline;
}

.breadcrumb__text {
    color: var(--text-dark);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border-width: 0 !important;
}

.subsection-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.subsection-title:first-child {
    margin-top: 0;
}

/* Organizational Structure */
.org-intro {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
}

/* Organizational Structure Section */
#structura.page-section {
    background-color: var(--gray-light);
    padding: 4rem 0;
}

#structura.page-section .content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.org-section {
    margin: 2rem 0;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-blue);
}

.org-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 119, 192, 0.15);
}

.org-section h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-medium);
}

.management-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.management-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background-color: var(--white);
    border-left: 4px solid var(--primary-blue);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.management-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 119, 192, 0.15);
}

/* Organizational Chart Image Section */
.org-chart-section {
    border-top: 2px solid var(--gray-light);
}

.org-chart-note-text {
    font-size: 1rem;
    color: var(--gray-dark);
    margin-bottom: 2rem;
    text-align: center;
    font-style: italic;
}

.org-chart-image {
    text-align: center;
    margin: 2rem 0;
}

.org-chart-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.org-chart-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 30px rgba(0, 119, 192, 0.2);
}

.org-chart-image a {
    display: inline-block;
    text-decoration: none;
}

.image-caption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--gray-dark);
    font-style: italic;
    text-align: center;
}

.management-item .role {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
    flex: 0 0 40%;
}

.management-item .name {
    font-size: 1.1rem;
    color: var(--black);
    font-weight: 600;
    text-align: right;
    flex: 1;
}

.section-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background-color: rgba(0, 119, 192, 0.05);
    border-left: 3px solid var(--primary-blue);
    border-radius: 8px;
}

.section-description p {
    margin-bottom: 1rem;
}

.section-description p:last-child {
    margin-bottom: 0;
}

.section-description ul,
.section-description ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.section-description li {
    margin-bottom: 0.5rem;
}

/* Global Page Content Styles - Applied to all pages */
.content-wrapper .node,
.content-area .node,
.node--type-page,
.node--type-article {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Page Title Styles - Applied to all pages (matching domenii-de-activitate) */
.content-wrapper .node h1:first-child,
.content-area .node h1:first-child,
.node--type-page h1:first-child,
.node--type-article h1:first-child,
.node h1:first-child,
.node__content h1:first-child,
.content-area .node h1.page-title,
.content-wrapper .node h1.page-title,
.node--type-page h1.page-title,
.node--type-article h1.page-title,
.node h1.page-title,
.node__content h1.page-title,
.content-area article.node h1:first-of-type:not(.section-title):not(.site-title),
.content-wrapper article.node h1:first-of-type:not(.section-title):not(.site-title),
.content-area .node__content > h1:first-child:not(.section-title):not(.site-title),
.content-wrapper .node__content > h1:first-child:not(.section-title):not(.site-title) {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 2.5rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-blue);
}

/* Activity Domains specific - keep for backward compatibility */
.content-wrapper .activity-domains-page,
.content-area .activity-domains-page,
.node.activity-domains-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 0;
}

.content-wrapper .activity-domains-page .page-title,
.content-area .activity-domains-page .page-title,
.node.activity-domains-page .page-title,
.activity-domains-page h1.page-title,
.activity-domains-page h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 2.5rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-blue);
}

.activity-intro {
    margin-bottom: 2.5rem;
}

.activity-intro .lead-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--black);
    margin: 0;
}

.activity-domains-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.activity-domain-item {
    padding: 1.75rem 2.25rem;
    background-color: var(--white);
    border-left: 5px solid var(--primary-blue);
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.activity-domain-item:hover {
    box-shadow: 0 6px 20px rgba(0, 119, 192, 0.15);
    transform: translateX(5px);
}

.activity-domain-item h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--black);
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
}

.activity-domain-item p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 0;
}

.activity-main {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
    border-radius: 12px;
    border-left: 5px solid var(--primary-blue);
}

.activity-main .main-activity {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 0;
    font-weight: 500;
}

.activity-management {
    margin: 3rem 0;
}

.activity-management .management-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.activity-management .management-list li {
    padding: 1rem 1.5rem;
    margin: 0.75rem 0;
    background-color: var(--white);
    border-left: 4px solid var(--primary-blue);
    border-radius: 6px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.activity-capital {
    margin: 3rem 0;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.activity-capital p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 1rem 0;
}

.activity-capital p:first-child {
    margin-top: 0;
}

.activity-capital p:last-child {
    margin-bottom: 0;
}

.activity-capital p strong {
    color: var(--primary-blue);
    font-weight: 600;
}

.activity-achievements {
    margin: 3rem 0;
}

.activity-achievements p {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text-dark);
    margin: 1.5rem 0;
}

.activity-infrastructure {
    margin: 3rem 0;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 12px;
    border-top: 4px solid var(--primary-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.activity-infrastructure p {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text-dark);
    margin: 1.5rem 0;
}

.activity-infrastructure p:first-child {
    margin-top: 0;
}

.activity-infrastructure p:last-child {
    margin-bottom: 0;
}

.activity-infrastructure p strong {
    color: var(--primary-blue);
    font-weight: 600;
}

.activity-images-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--gray-medium);
}

.activity-images-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 2rem;
    text-align: center;
}

.activity-images-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 2rem;
    justify-content: center;
}

.activity-images-grid a {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 3px solid rgba(255, 255, 255, 0.8);
    background: var(--white);
    position: relative;
}

.activity-images-grid a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 119, 192, 0);
    transition: background 0.3s ease;
    z-index: 1;
    pointer-events: none;
    border-radius: 12px;
}

.activity-images-grid a:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 119, 192, 0.25);
    border-color: var(--primary-blue);
}

.activity-images-grid a:hover::before {
    background: rgba(0, 119, 192, 0.05);
}

.activity-images-grid a:active {
    transform: translateY(-4px) scale(1.01);
}

.activity-images-grid img {
    width: 250px;
    height: auto;
    display: block;
    max-width: 250px;
    max-height: 250px;
    min-height: 200px;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-images-grid a:hover img {
    transform: scale(1.08);
}

/* Elegant overlay effect on hover */
.activity-images-grid a::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2rem;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.activity-images-grid a:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Global Media Field Styles - Applied to all pages */
.node .field--type-entity-reference-revisions .field__item,
.node .field--name-field-media,
.content-area .field--type-entity-reference-revisions .field__item,
.content-area .field--name-field-media,
.content-wrapper .field--type-entity-reference-revisions .field__item,
.content-wrapper .field--name-field-media {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--gray-medium);
}

.node .field--name-field-media .field__label,
.content-area .field--name-field-media .field__label,
.content-wrapper .field--name-field-media .field__label {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 2rem;
    text-align: center;
}

.node .field--name-field-media .field__items,
.content-area .field--name-field-media .field__items,
.content-wrapper .field--name-field-media .field__items {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 2rem;
    justify-content: center;
}

.node .field--name-field-media .field__item,
.content-area .field--name-field-media .field__item,
.content-wrapper .field--name-field-media .field__item {
    position: relative;
}

.node .field--name-field-media a,
.content-area .field--name-field-media a,
.content-wrapper .field--name-field-media a {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 3px solid rgba(255, 255, 255, 0.8);
    background: var(--white);
    position: relative;
}

.node .field--name-field-media a::before,
.content-area .field--name-field-media a::before,
.content-wrapper .field--name-field-media a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 119, 192, 0);
    transition: background 0.3s ease;
    z-index: 1;
    pointer-events: none;
    border-radius: 12px;
}

.node .field--name-field-media a:hover,
.content-area .field--name-field-media a:hover,
.content-wrapper .field--name-field-media a:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 119, 192, 0.25);
    border-color: var(--primary-blue);
}

.node .field--name-field-media a:hover::before,
.content-area .field--name-field-media a:hover::before,
.content-wrapper .field--name-field-media a:hover::before {
    background: rgba(0, 119, 192, 0.05);
}

.node .field--name-field-media a:active,
.content-area .field--name-field-media a:active,
.content-wrapper .field--name-field-media a:active {
    transform: translateY(-4px) scale(1.01);
}

.node .field--name-field-media img,
.content-area .field--name-field-media img,
.content-wrapper .field--name-field-media img {
    width: 250px;
    height: auto;
    display: block;
    max-width: 250px;
    max-height: 250px;
    min-height: 200px;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.node .field--name-field-media a:hover img,
.content-area .field--name-field-media a:hover img,
.content-wrapper .field--name-field-media a:hover img {
    transform: scale(1.08);
}

/* Elegant overlay effect on hover */
.node .field--name-field-media a::after,
.content-area .field--name-field-media a::after,
.content-wrapper .field--name-field-media a::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2rem;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.node .field--name-field-media a:hover::after,
.content-area .field--name-field-media a:hover::after,
.content-wrapper .field--name-field-media a:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Activity Domains specific - keep for backward compatibility */
.activity-domains-page .field--type-entity-reference-revisions .field__item,
.activity-domains-page .field--name-field-media {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--gray-medium);
}

.activity-domains-page .field--name-field-media .field__label {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 2rem;
    text-align: center;
}

.activity-domains-page .field--name-field-media .field__items {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 2rem;
    justify-content: center;
}

.activity-domains-page .field--name-field-media .field__item {
    position: relative;
}

.activity-domains-page .field--name-field-media a {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 3px solid rgba(255, 255, 255, 0.8);
    background: var(--white);
    position: relative;
}

.activity-domains-page .field--name-field-media a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 119, 192, 0);
    transition: background 0.3s ease;
    z-index: 1;
    pointer-events: none;
    border-radius: 12px;
}

.activity-domains-page .field--name-field-media a:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 119, 192, 0.25);
    border-color: var(--primary-blue);
}

.activity-domains-page .field--name-field-media a:hover::before {
    background: rgba(0, 119, 192, 0.05);
}

.activity-domains-page .field--name-field-media a:active {
    transform: translateY(-4px) scale(1.01);
}

.activity-domains-page .field--name-field-media img {
    width: 250px;
    height: auto;
    display: block;
    max-width: 250px;
    max-height: 250px;
    min-height: 200px;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-domains-page .field--name-field-media a:hover img {
    transform: scale(1.08);
}

/* Elegant overlay effect on hover */
.activity-domains-page .field--name-field-media a::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2rem;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.activity-domains-page .field--name-field-media a:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* GLightbox images sizing - keep 250px width - Applied globally */
.activity-images-grid .glightbox > img,
.node .field--name-field-media .glightbox > img,
.content-area .field--name-field-media .glightbox > img,
.content-wrapper .field--name-field-media .glightbox > img,
.activity-domains-page .field--name-field-media .glightbox > img {
    width: 250px !important;
    height: auto !important;
    max-width: 250px !important;
    max-height: 250px !important;
}

/* Global GLightbox Image Styles */
a.glightbox {
    display: inline-block;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 3px solid rgba(255, 255, 255, 0.8);
    background: var(--white);
    position: relative;
}

a.glightbox::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 119, 192, 0);
    transition: background 0.3s ease;
    z-index: 1;
    pointer-events: none;
    border-radius: 12px;
}

a.glightbox:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 119, 192, 0.25);
    border-color: var(--primary-blue);
}

a.glightbox:hover::before {
    background: rgba(0, 119, 192, 0.05);
}

a.glightbox:active {
    transform: translateY(-4px) scale(1.01);
}

a.glightbox > img {
    display: block;
    width: 150px;
    height: auto;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: cover;
}

a.glightbox:hover > img {
    transform: scale(1.08);
}

/* Elegant overlay effect on hover for GLightbox */
a.glightbox::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2rem;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

a.glightbox:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-blue) 100%);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.info-box.warning-box {
    border-left: 5px solid var(--primary-blue);
}

.info-box h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 1.5rem;
}

.info-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.info-box ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.info-box ul li {
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0.75rem 0;
    color: var(--text-dark);
}

.legal-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    margin: 1.5rem 0;
    color: var(--text-dark);
}

/* Legal Section Styles */
.legal-section {
    margin-bottom: 4rem;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-subsection {
    margin: 2.5rem 0;
}

.legal-subsection-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-blue);
}

.legal-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.legal-item {
    display: block;
    padding: 1.25rem 1.5rem;
    background-color: var(--white);
    border-left: 4px solid var(--primary-blue);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
    text-decoration: none;
    cursor: pointer;
}

.legal-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 119, 192, 0.15);
    text-decoration: none;
    color: var(--text-dark);
}

.legal-item:visited {
    color: var(--text-dark);
}

.legal-item strong {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Disconnection Section */
.disconnection-intro {
    margin-bottom: 3rem;
    text-align: center;
}

.disconnection-intro p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-dark);
    margin: 1rem 0;
}

.disconnection-types {
    display: inline-flex;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.disconnection-type-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.disconnection-type-card.warning {
    border-top-color: #0055AA;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-blue) 100%);
}

.disconnection-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 119, 192, 0.2);
}

.disconnection-type-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 1rem;
}

.disconnection-type-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.important-notice {
    background-color: rgba(255, 107, 107, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #0055AA;
    margin-top: 1rem;
}

.important-notice strong {
    color: var(--black);
}

.disconnection-contact {
    margin-top: 4rem;
}

.contact-card {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--blue-accent) 100%);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 119, 192, 0.25);
    max-width: 600px;
    margin: 0 auto;
}

.contact-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 1.5rem;
}

.contact-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.contact-phone {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.5rem 0;
}

.contact-phone a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-phone a:hover {
    color: var(--black);
    text-decoration: underline;
}

/* History Section (standalone - kept for potential future use) */
.history-content {
    max-width: 900px;
    margin: 0 auto;
}

.history-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    margin: 1.5rem 0;
    color: var(--text-dark);
}

/* News Section */
.news {
    padding: 5rem 0;
    background-color: var(--gray-light);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.news-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateX(8px);
    box-shadow: 0 10px 30px rgba(0, 119, 192, 0.2);
}

.news-card-important {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border-left: 8px solid var(--primary-blue);
}

.news-date {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--black);
    line-height: 1.3;
}

.news-card p {
    color: var(--gray-dark);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* News Images */
.news-images {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.news-images.gallery {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.news-images a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.news-images a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 119, 192, 0.3);
}

.news-images a:hover img {
    transform: scale(1.05);
}

.news-images:not(.gallery) {
    grid-template-columns: 1fr;
    max-width: 450px;
}

/* Procurement Section */
.procurement-year-section {
    margin-bottom: 4rem;
}

.procurement-year-section:last-child {
    margin-bottom: 0;
}

.procurement-year-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-blue);
}

.procurement-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.procurement-item {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.procurement-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 119, 192, 0.2);
}

.procurement-link {
    display: block;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.procurement-link:hover {
    color: var(--primary-blue);
    text-decoration: none;
}

.procurement-link strong {
    color: var(--black);
    font-weight: 600;
}

.procurement-link:hover strong {
    color: var(--primary-blue);
}

.procurement-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 1rem;
    font-style: italic;
}

.procurement-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.procurement-doc-link {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background-color: var(--light-blue);
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.procurement-doc-link:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 192, 0.3);
    text-decoration: none;
}

/* Tariff Section */
.tariff-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.tariff-intro h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--black);
}

.tariff-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 3rem 0;
}

.tariff-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.tariff-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 119, 192, 0.2);
}

.tariff-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.tariff-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--black);
    margin: 0;
}

.tariff-header h4 a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.tariff-header h4 a:hover {
    color: var(--black);
    text-decoration: underline;
}

.tariff-header strong {
    font-weight: 600;
    color: var(--black);
}

.tariff-date {
    font-size: 0.95rem;
    color: var(--gray-dark);
    font-weight: 500;
    white-space: nowrap;
}

.tariff-item p {
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

.tariff-item p a {
    color: var(--primary-blue);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.tariff-item p a:hover {
    color: var(--black);
}

.tariff-note {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem;
    background-color: var(--light-blue);
    border-radius: 12px;
}

.tariff-note p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

/* Contracte & Cereri Section */
.process-intro {
    margin-bottom: 3rem;
    text-align: center;
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.8;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin: 3rem 0;
}

.process-step {
    display: flex;
    gap: 2rem;
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 119, 192, 0.15);
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--blue-accent) 100%);
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 119, 192, 0.3);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 1.5rem;
}

.step-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.important-note {
    background-color: var(--light-blue);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
    margin: 1.5rem 0;
}

.important-note p {
    margin: 0;
}

.download-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.download-link-item {
    background-color: var(--gray-light);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.download-link-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 1rem;
}

.download-link-item .btn {
    width: 100%;
    font-size: 0.95rem;
    padding: 0.875rem 1.5rem;
}

.contract-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--primary-blue);
}

.info-card h4 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 1rem;
}

.info-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.info-card .btn {
    margin-top: 1rem;
}

/* Announcements Section */
.announcements {
    padding: 5rem 0;
    background-color: var(--white);
}

.announcement-box {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--blue-accent) 100%);
    padding: 4rem 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 119, 192, 0.25);
    max-width: 900px;
    margin: 0 auto;
}

.announcement-box p {
    font-size: 1.3rem;
    color: var(--black);
    font-weight: 500;
    line-height: 1.8;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--gray-light);
}

.contact-content {
    max-width: 1100px;
    margin: 0 auto;
}

.contact-main-info {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
}

.contact-company-name {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--primary-blue);
}

.contact-company-name h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--black);
    margin: 0;
}

.contact-section {
    margin-bottom: 2.5rem;
}

.contact-section:last-of-type {
    margin-bottom: 0;
}

.contact-section-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-medium);
}

.contact-detail {
    display: flex;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--gray-light);
}

.contact-detail:last-child {
    border-bottom: none;
}

.contact-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
    min-width: 220px;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.95rem;
}

.contact-value {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.8;
    flex: 1;
}

.contact-value a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value a:hover {
    color: var(--blue-dark);
    text-decoration: underline;
}

.contact-value .coordinates {
    font-size: 0.95rem;
    color: var(--gray-dark);
    font-style: italic;
    display: block;
    margin-top: 0.5rem;
}

.phone-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.phone-item {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.phone-number {
    font-weight: 600;
    min-width: 140px;
    font-size: 1.05rem;
}

.phone-number a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.phone-number a:hover {
    color: var(--blue-dark);
    text-decoration: underline;
}

.phone-label {
    color: var(--gray-dark);
    font-size: 1rem;
}

/* History Section within Contact */
.contact-section.history-section {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 2px solid var(--gray-medium);
}

.contact-section.history-section .contact-section-title {
    margin-bottom: 2rem;
}

.contact-section.history-section .history-content {
    max-width: 100%;
    margin: 0;
}

.contact-section.history-section .history-content p {
    font-size: 1.05rem;
    line-height: 1.85;
    margin: 1.25rem 0;
    color: var(--text-dark);
}

.contact-section.history-section .history-content p:first-child {
    margin-top: 0;
}

.contact-section.history-section .history-content p:last-child {
    margin-bottom: 0;
}

.contact-section.history-section .history-content strong {
    color: var(--primary-blue);
    font-weight: 600;
}

/* District map (.map-section etc.) is fully styled by the apa_canal_harta
   module (css/map.css); no theme rules here to avoid conflicts. */

/* Contact Map Section (different from main map) */
.contact-map-wrapper {
    margin-top: 3rem;
}

.contact-map-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--white);
}

.contact-map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
    display: block;
}

/* ============================================
   FOOTER - ENHANCED STYLING
   ============================================ */

.footer {
    background: linear-gradient(135deg, #0088D1 0%, #0077C0 50%, #005599 100%);
    color: var(--white);
    padding: 3.5rem 0 1.5rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 119, 192, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.footer-decoration {
    position: absolute;
    top: 0;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    padding: 0.5rem 0;
}

.footer-section {
    padding: 0;
}

.footer-section h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--white);
    letter-spacing: -0.3px;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h4::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 2px;
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.95);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.95) !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-section a:hover {
    color: var(--white) !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.6);
}

.footer-section strong {
    color: var(--white);
    font-weight: 600;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.2) 80%, transparent 100%);
    margin: 2rem 0 1.5rem 0;
    position: relative;
    z-index: 1;
}

.footer-bottom {
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 63.999rem) {
    .header-top {
        padding: 0.875rem 0;
    }

    .header-top-controls {
        display: flex;
        position: absolute;
        top: 0.875rem;
        right: 1.5rem;
        gap: 0.75rem;
        z-index: 10;
    }

    .header-top .container {
        padding: 0 1.5rem;
        max-width: 100%;
        justify-content: center;
    }

    .header-content-desktop {
        display: none;
    }

    .header-content-centered {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        gap: 0.75rem;
    }

    .header-content-centered .logo {
        justify-content: center;
    }

    .header-content-centered .header-title h1 {
        font-size: 1.1rem;
        text-align: center;
        text-transform: uppercase;
        font-weight: 700;
        letter-spacing: 0.02em;
        color: var(--primary-blue);
    }

    .header-content-centered .header-phone {
        justify-content: center;
    }

    .header-content-centered .header-phone a {
        color: var(--primary-blue);
        font-weight: 600;
        font-size: 0.95rem;
    }

    .header-bottom .container {
        padding: 0.5rem 1.5rem;
        position: relative;
    }

    .logo img {
        height: 60px;
        max-width: 200px;
    }

    .header-phone svg {
        width: 18px;
        height: 18px;
    }

    .header-bottom .nav {
        position: fixed;
        left: -100%;
        top: var(--header-height, 140px);
        width: 100%;
        height: calc(100vh - var(--header-height, 140px));
        background: linear-gradient(180deg, rgba(227, 242, 253, 0.98) 0%, rgba(200, 230, 250, 0.95) 100%);
        padding: 0;
        box-shadow: 0 4px 20px rgba(0, 119, 192, 0.15);
        transition: left 0.3s ease;
        z-index: 999;
        transform: none;
        overflow-y: auto;
        padding-top: 1.5rem;
        padding-bottom: 3rem;
    }

    .header-bottom .nav.active {
        left: 0;
    }

    /* Keep toggle button visible - position it outside nav */
    .header-top-controls .nav-toggle {
        position: fixed;
        right: 1.5rem;
        top: 0.875rem;
        z-index: 1002;
        background-color: rgba(255, 255, 255, 0.95);
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .header-top-controls .nav-toggle.active span {
        background-color: var(--primary-blue);
    }

    .header-top-controls .lang-switcher {
        position: fixed;
        right: 5rem;
        top: 0.875rem;
        z-index: 1001;
    }

    .header-top-controls .lang-globe {
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.95);
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        color: var(--primary-blue);
        border: none;
    }

    .header-top-controls .lang-globe svg {
        width: 20px;
        height: 20px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu,
    .nav-menu-list {
        position: static;
        flex-direction: column;
        width: 100%;
        text-align: left;
        padding: 2rem 0;
        gap: 0;
        background: transparent;
        box-shadow: none;
        display: flex;
    }

    .nav-menu li,
    .nav-menu-list li {
        width: 100%;
        padding: 0;
    }

    .nav-menu a,
    .nav-menu-list a {
        display: block;
        padding: 1.5rem 2.5rem;
        border-bottom: 1px solid rgba(0, 119, 192, 0.08);
        font-size: 0.95rem;
        border-radius: 0;
        color: var(--text-dark);
    }

    .nav-menu a:hover,
    .nav-menu-list a:hover {
        background-color: rgba(0, 119, 192, 0.06);
        color: var(--primary-blue);
        padding-left: 3rem;
    }

    .nav-menu a.active,
    .nav-menu-list a.active,
    .nav-menu a.is-active,
    .nav-menu-list a.is-active {
        background-color: rgba(0, 119, 192, 0.1);
        color: var(--primary-blue);
    }

    .menu-item--active-trail > a {
        background-color: rgba(0, 119, 192, 0.1);
        color: var(--primary-blue);
    }



    /* Hide legacy buttons on mobile */
    .lang-btn {
        display: none;
    }
}

@media (max-width: 640px) {
    .header-top {
        padding: 0.75rem 0;
    }

    .header-top-controls {
        top: 0.75rem;
        right: 1rem;
        gap: 0.5rem;
    }

    .header-top .container {
        padding: 0 1rem;
        max-width: 100%;
    }

    .header-content-centered {
        gap: 0.625rem;
    }

    .header-content-centered .logo img {
        height: 50px;
        max-width: 160px;
    }

    .header-content-centered .header-title h1 {
        font-size: 0.85rem;
        line-height: 1.25;
        padding: 0 0.5rem;
    }

    .header-content-centered .header-phone a {
        font-size: 0.85rem;
    }

    .header-content-centered .header-phone svg {
        width: 16px;
        height: 16px;
    }

    .header-bottom .container {
        padding: 0.5rem 1rem;
        position: relative;
        min-height: 44px;
    }

    .header-top-controls .nav-toggle {
        position: fixed;
        right: 1rem;
        top: 0.75rem;
        padding: 6px;
        z-index: 1002;
        background-color: rgba(255, 255, 255, 0.95);
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .header-top-controls .nav-toggle.active span {
        background-color: var(--primary-blue);
    }

    .header-top-controls .lang-switcher {
        position: fixed;
        right: 4.5rem;
        top: 0.75rem;
        z-index: 1001;
    }

    .header-top-controls .lang-globe {
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.95);
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        color: var(--primary-blue);
        border: none;
    }

    .header-top-controls .lang-globe svg {
        width: 20px;
        height: 20px;
    }

    /* Ensure desktop lang switcher is hidden on mobile */
    .lang-switcher-desktop {
        display: none !important;
    }

    /* Hide legacy buttons on mobile */
    .lang-btn {
        display: none;
    }

    .nav-toggle {
        padding: 6px;
    }

    .nav-toggle span {
        width: 24px;
        height: 2.5px;
    }

    .hero {
        padding: 4rem 0 3rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-info-section {
        padding: 3rem 0 4rem;
    }

    .hero-stats {
        gap: 1.5rem;
        margin: 0 0 2.5rem 0;
    }

    .hero-stat {
        min-width: 160px;
        padding: 1.75rem 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .hero-description {
        padding: 0 1rem;
    }

    .hero-description p {
        font-size: 1.05rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .news-grid,
    .contact-main-info {
        padding: 2rem;
    }

    .activity-domain-item {
        padding: 1.25rem 1.5rem;
    }

    .activity-domain-item h3 {
        font-size: 1.1rem;
    }

    .activity-main,
    .activity-capital,
    .activity-infrastructure {
        padding: 1.5rem;
    }

    .activity-images-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .contact-company-name h3 {
        font-size: 1.5rem;
    }

    .contact-section-title {
        font-size: 1.2rem;
    }

    .contact-detail {
        flex-direction: column;
        gap: 0.75rem;
    }

    .contact-label {
        min-width: auto;
        font-size: 0.95rem;
    }

    .contact-value {
        font-size: 1rem;
    }

    .phone-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .phone-number {
        min-width: auto;
    }

    .management-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .management-item .role {
        flex: none;
    }

    .management-item .name {
        text-align: left;
    }

    .footer {
        padding: 2.5rem 0 1rem;
    }

    .footer-decoration {
        right: -150px;
        width: 250px;
        height: 250px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 1.5rem;
    }

    .footer-section {
        margin-bottom: 0;
    }

    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }

    .footer-section h4::after {
        width: 25px;
        height: 2px;
    }

    .footer-section p {
        font-size: 0.9rem;
        margin: 0.4rem 0;
    }

    .footer-divider {
        margin: 1.5rem 0 1rem 0;
    }

    .hero {
        padding: 3rem 0 2.5rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-info-section {
        padding: 2.5rem 0 3.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.25rem;
        margin: 0 0 2rem 0;
    }

    .hero-stat {
        min-width: 100%;
        padding: 1.5rem 1.75rem;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .hero-description p {
        font-size: 1rem;
        line-height: 1.8;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .hero-description {
        margin: 1.25rem auto 0;
    }

    .hero-description p {
        font-size: 0.95rem;
    }

    .page-section,
    .news,
    .contact {
        padding: 3.5rem 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2.5rem;
    }

    .service-card,
    .news-card,
    .tariff-item,
    .management-item,
    .procurement-item {
        padding: 1.25rem;
    }

    .activity-domain-item {
        padding: 1rem 1.25rem;
    }

    .activity-domain-item h3 {
        font-size: 1rem;
    }

    .activity-main,
    .activity-capital,
    .activity-infrastructure {
        padding: 1.25rem;
    }

    .activity-main .main-activity,
    .activity-capital p,
    .activity-infrastructure p {
        font-size: 1rem;
    }

    .activity-management .management-list li {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }

    .contact-main-info {
        padding: 1.5rem;
    }

    .contact-company-name {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .contact-company-name h3 {
        font-size: 1.35rem;
    }

    .contact-section {
        margin-bottom: 2rem;
    }

    .contact-section.history-section {
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .contact-section-title {
        font-size: 1.1rem;
    }

    .contact-section.history-section .history-content p {
        font-size: 1rem;
        line-height: 1.8;
    }

    .contact-detail {
        padding: 1rem 0;
    }

    .contact-label {
        font-size: 0.9rem;
    }

    .contact-value {
        font-size: 0.95rem;
    }

    .phone-list {
        gap: 0.75rem;
    }

    .phone-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .phone-number {
        font-size: 1rem;
    }

    .phone-label {
        font-size: 0.9rem;
    }

    .procurement-year-title {
        font-size: 1.5rem;
    }

    .procurement-link {
        font-size: 1rem;
    }

    .procurement-title {
        font-size: 1rem;
    }

    .procurement-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .procurement-doc-link {
        width: 100%;
        text-align: center;
    }

    .org-section {
        padding: 1.5rem;
    }

    .org-section h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }

    .org-chart-section {
        margin-top: 3rem;
        padding-top: 2rem;
    }

    .org-chart-note-text {
        font-size: 0.95rem;
    }

    .section-description {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    .subsection-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .org-intro {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    .tariff-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tariff-header h4 {
        font-size: 1.1rem;
    }

    .process-step {
        flex-direction: column;
        padding: 1.5rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        align-self: flex-start;
    }

    .step-content h3 {
        font-size: 1.5rem;
    }

    .download-links {
        grid-template-columns: 1fr;
    }

    .contract-info {
        grid-template-columns: 1fr;
    }

    .history-content p {
        font-size: 1.05rem;
    }

    .legal-section {
        margin-bottom: 3rem;
    }

    .legal-subsection {
        margin: 2rem 0;
    }

    .legal-subsection-title {
        font-size: 1.3rem;
    }

    .legal-item {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    .disconnection-types {
        grid-template-columns: 1fr;
    }

    .disconnection-type-card {
        padding: 1.5rem;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }

    .contact-phone {
        font-size: 1.25rem;
    }

    .info-box {
        padding: 2rem;
    }

    .announcement-box {
        padding: 2.5rem 1.5rem;
    }

    .announcement-box p {
        font-size: 1.1rem;
    }

    .logo img {
        height: 53px;
        max-width: 170px;
    }

    .container {
        padding: 0 16px;
    }

    .breadcrumb-wrapper {
        padding: 0.55rem 0;
    }

    .breadcrumb {
        font-size: 0.8125rem;
        line-height: 1.4;
    }

    .breadcrumb__list {
        gap: 0;
    }

    .breadcrumb__item:not(:last-child)::after {
        margin: 0 0.5rem;
    }

    .breadcrumb__link,
    .breadcrumb__text {
        font-size: inherit;
        line-height: inherit;
    }

    /* Current page title — wrap fully, never clip. */
    .breadcrumb__item:last-child {
        flex: 1 1 0;
        min-width: 0;
        align-items: flex-start;
    }

    .breadcrumb__item:last-child .breadcrumb__text {
        display: inline;
        max-width: none;
        overflow: visible;
        text-overflow: unset;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

/* Smooth animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 119, 192, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--blue-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 119, 192, 0.5);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }

    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Drupal Messages Styling */
.messages-wrapper {
    padding: 1.5rem 0;
    background-color: var(--white);
}

[data-drupal-messages] {
    margin: 0;
    padding: 0;
}

[data-drupal-messages] > div {
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid;
    font-size: 1rem;
    line-height: 1.6;
}

[data-drupal-messages] > div:last-child {
    margin-bottom: 0;
}

/* Status messages (green/success) */
[data-drupal-messages] > div[role="contentinfo"][aria-label*="Status"] {
    background-color: #f0f9ff;
    border-left-color: #10b981;
    color: #065f46;
}

[data-drupal-messages] > div[role="contentinfo"][aria-label*="Status"] h2.visually-hidden {
    display: none;
}

[data-drupal-messages] > div[role="contentinfo"][aria-label*="Status"] a {
    color: #047857;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

[data-drupal-messages] > div[role="contentinfo"][aria-label*="Status"] a:hover {
    color: #065f46;
    text-decoration: underline;
}

[data-drupal-messages] > div[role="contentinfo"][aria-label*="Status"] .placeholder {
    font-style: normal;
}

/* Warning messages */
[data-drupal-messages] > div[role="alert"][aria-label*="Warning"],
[data-drupal-messages] > div[role="contentinfo"][aria-label*="Warning"] {
    background-color: #fffbeb;
    border-left-color: #f59e0b;
    color: #92400e;
}

[data-drupal-messages] > div[role="alert"][aria-label*="Warning"] a,
[data-drupal-messages] > div[role="contentinfo"][aria-label*="Warning"] a {
    color: #d97706;
    font-weight: 600;
}

/* Error messages */
[data-drupal-messages] > div[role="alert"][aria-label*="Error"],
[data-drupal-messages] > div[role="contentinfo"][aria-label*="Error"] {
    background-color: #fef2f2;
    border-left-color: #ef4444;
    color: #991b1b;
}

[data-drupal-messages] > div[role="alert"][aria-label*="Error"] a,
[data-drupal-messages] > div[role="contentinfo"][aria-label*="Error"] a {
    color: #dc2626;
    font-weight: 600;
}

@media (max-width: 768px) {
    .messages-wrapper {
        padding: 1rem 0;
    }

    [data-drupal-messages] > div {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
}
