* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* ================= HEADER ================= */

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(to right, #005F6B, #FF4500, #FFD700);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 10px 0;
}

.header-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo img {
    height: 90px;
}

/* ================= MENU ================= */

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 16px;
    padding: 10px 15px;
    transition: 0.3s;
    white-space: nowrap;
}

nav ul li a:hover {
    color: #FFD700;
}

/* DROPDOWN */
.dropdown .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 10px 0;
    z-index: 1000;
}

.dropdown:hover .submenu {
    display: block;
}

.submenu li {
    padding: 10px 20px;
}

.submenu li a {
    color: #333;
    font-weight: normal;
    display: block;
}

.submenu li a:hover {
    background: #6697ba;
    color: white;
}

/* ================= HERO ================= */

#klublego-hero {
    height: 70vh;
    background: url(images/632173138_122202926906583139_7967214711656308323_n.jpg) center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: white;
    margin-top: 80px;
}

#klublego-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.6),
        rgba(0,0,0,0.2)
    );
}

#klublego-hero h1 {
    position: relative;
    z-index: 2;
    font-size: 4rem;
    text-transform: uppercase;
    text-shadow: 0 3px 10px rgba(0,0,0,0.7);
}

/* ================= CONTENT ================= */

.klublego-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.klublego-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.klublego-content h2 {
    font-size: 2rem;
    margin: 25px 0 15px;
}

.klublego-content h3 {
    font-size: 2rem;
    margin: 25px 0 15px;
}

/* ================= TEXT CARDS (НОВЕ) ================= */

.klublego-content p {
    font-size: 1.15rem;
    line-height: 1.8;

    margin: 15px auto;
    padding: 18px 22px;

    max-width: 850px;

    background: #ffffff;
    

    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);

    text-align: left;
}


.klublego-content p1 {
    font-size: 1rem;
    line-height: 1.8;

    margin: 15px auto;
    padding: 18px 22px;

    max-width: 850px;

    background: #ffffff;
    

    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);

    text-align: center;

  
}


/* ================= IMAGES ================= */

.lego-image {
    width: 100%;
    max-width: 700px;
    margin: 20px auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.lego-image1 {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
/* ================= FOOTER ================= */

footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: white;
}

/* ================= MOBILE MENU ================= */

.menu-toggle {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    margin-right: 20px;
}

@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    nav ul.main-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 95, 107, 0.95);
    }

    nav ul.main-menu.active {
        display: flex;
    }

    nav ul li a {
        padding: 12px;
        font-size: 14px;
    }
}/* Footer */
footer {
    background-color: #333;
    color: rgb(0, 0, 0);
    text-align: center;
    padding: 15px 0;
    width: 100%; /* Встановлюємо ширину на 100% */
    position: relative; /* Змінюємо позицію на relative для коректної роботи */
}
/* Styles for text color */
.colored-text {
    color: #005F6B; /* Text color for "WYSTAWA" and "MAJSTERNIA" */
    margin-bottom: 20px; /* Margin under headings */
    margin-top: 20px;
    display: inline-block; /* Ensures correct margin for elements */
}

/* Additional margins for text under headings */
p {
    margin-top: 10px;
    font-size: 1rem;
}

/* Style for separate text */
.separate-text {
    margin-top: 30px; /* Top margin to lower the text */
    font-size: 1rem; /* Slightly increased font size */
    color: #333; /* Text color */
}

/* Container for all images */
.project-images {
    display: flex;
    justify-content: center; 
    gap: 20px; 
    margin-top: 20px; 
}

/* Style for each image container */
.image-container {
    flex-shrink: 0; 
}

/* Style for images */
.project-images img {
    width: 100%; 
    height: auto; 
    border-radius: 5px; /* Round corners */
}

/* Contact Section */
.contact-info {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.contact-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.contact-item {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    flex: 1 1 200px;
    display: flex;
    align-items: center;
    justify-content: center; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center; 
}
.contact-item a:hover {
    text-decoration: underline; /* Підкреслення при наведенні */
}
.contact-item img {
    height: 50px;
    margin-right: 10px;
    align-items: left;
}

/* Add for text in .contact-item */
.contact-text {
    flex: 1; /* Apply text stretching */
    display: flex;
    justify-content: center; 
    align-items: center; 
}