/* General Styling */
html, body {
    height: 100%; /* нужни за sticky footer */
}
body {
    font-family: 'Merriweather', Georgia, serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Logo Header Styling */
.logo-header {
    background-color: #ffffff;
    text-align: center;
    padding: 20px 0;
}
.logo-header img {
    max-width: 500px;
    height: auto;
    object-fit: contain;
}

/* Header and Navigation Styling */
header {
    background-color: #561111;
    position: relative;
    z-index: 10;
    padding: 0;
}
nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}
nav ul li {
    position: relative;
    margin-right: 20px;
}
nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
}
nav ul li:hover a {
    background-color: #6f1414;
}
nav ul li .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #4a0404;
    list-style: none;
    z-index: 20;
}
nav ul li:hover .dropdown { display: block; }
nav ul li .dropdown li a {
    padding: 10px 20px;
    white-space: nowrap;
}

/* Image Container */
.image-container {
    position: relative;
    width: 100%;
    height: 500px;
    margin-top: 0; /* фиксира бялата линия */
    border-top: none;
}
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-bottom: none;
}

/* Overlay text (disabled) */
.overlay-text {
    display: none;
}

/* Content Section Styling */
.content-section {
    text-align: left;
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}
.content-section h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.content-section p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

/* Contact / Address Section */
.contact-address-section {
    background-color: #561111;
    color: white;
    padding: 40px 20px;
    text-align: center;
}
.address-section {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
}
.office {
    width: 45%;
    margin-bottom: 20px;
}
.office img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.office h3, .office h4 {
    font-weight: bold;
    margin-bottom: 10px;
}
.office p {
    margin: 5px 0;
    color: white;
}
.office a {
    color: #00acee;
    text-decoration: underline;
    display: inline-block;
    margin-top: 5px;
}
.office a:hover { text-decoration: none; }

/* Board Info (homepage bottom section) */
.board-info {
    background-color: #561111;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
}
.board-info p {
    margin: 10px 0;
}
.board-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: .2px;
    line-height: 1.4;
    margin: 0 0 10px;
}
.board-address {
    font-size: 1rem;
    margin: 0;
}

/* Partners grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    justify-items: center;
    align-items: center;
    margin-top: 30px;
}
.partners-grid a {
    display: block;
    transition: transform 0.2s ease;
}
.partners-grid a:hover {
    transform: scale(1.05);
}
.partners-grid img {
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;
}

/* Footer Styling – sticky at bottom */
main {
    flex: 1; /* избутва футъра надолу */
}
footer {
    background-color: #561111;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    margin-top: auto;
    width: 100%;
}
