body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f4f4f4;
    color: #222;
}

nav {
    background: rgb(168, 210, 255);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background 0.2s;
}

/* Make nav items and dropdown items the same visible size */
nav a,
.dropbtn,
.dropdown-content a {
    font-size: 18px; /* adjust this value if you want larger/smaller */
}

nav a:hover {
    background: rgba(0,0,0,0.1);
}

.nav-left {
    display: flex;
    gap: 15px;
}

.nav-right {
    display: flex;
    gap: 15px;
}

/* Dropdown styles */
.dropdown {
    position: relative;
}

.dropbtn {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background 0.2s;
}

.dropbtn:hover {
    background: rgba(0,0,0,0.1);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgb(168, 210, 255);
    min-width: 120px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-radius: 4px;
    z-index: 1;
    flex-direction: column;
}

.dropdown-content a {
    display: block;
    padding: 8px 12px;
}

.dropdown:hover .dropdown-content {
    display: flex;
    flex-direction: column;
}

nav a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-weight: bold;
}

header {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    background: rgb(168, 210, 255);
    margin-top: 20px;
    border-radius: 8px;
}

section {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    background: rgb(168, 210, 255);
    margin-top: 20px;
    border-radius: 8px;
}

ol, ul {
    padding-left: 30px;
    line-height: 1.8;
}

ol li, ul li {
    margin-bottom: 10px;
}

section a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

section a:hover {
    color: #004499;
    text-decoration: underline;
}

.example {
    background: #eef7ff;
    padding: 15px;
    border-left: 4px solid #2980b9;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* ===========================================
      RESPONSIVE DESIGN
   =========================================== */

/* Telefoane mici (≤ 600px) */
@media (max-width: 600px) {

    nav {
        justify-content: center;
        text-align: center;
    }

    nav a {
        padding: 10px;
        font-size: 16px;
    }

    header, section {
        margin: 10px;
        padding: 18px;
    }

    body {
        font-size: 17px;
    }
}

/* Tablete (600px – 1000px) */
@media (max-width: 1000px) {
    nav {
        padding: 15px 3%;
    }

    header, section {
        max-width: 95%;
    }
}

/* Ecrane mari (≥ 1400px) */
@media (min-width: 1400px) {
    header, section {
        max-width: 1100px;
    }
}