body {
    margin: 0;
    display: flex;
    background-color: #0b0e14;
    color: #e0e0e0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

.sidebar {
    width: 220px;
    height: 100vh;
    position: sticky;
    overflow-y: auto;
    background-color: #151921;
    border-right: 1px solid #2a2f3a;
    position: sticky;
    top: 0;
    padding: 20px;
}

.sidebar h2 {
    color: #00d4ff;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin: 15px 0;
}

.sidebar a {
    color: #a0a0a0;
    text-decoration: none;
    transition: 0.3s;
}

.sidebar a:hover {
    color: #00d4ff;
    padding-left: 5px;
}

.content {
    flex: 1;
    padding: 40px;
    max-width: 900px;
}

h1 {
    color: #ffffff;
    border-bottom: 2px solid #00d4ff;
    display: block;
    width: fit-content;
    line-height: 1;
    padding-bottom: 4px;
    margin-bottom: 15px;
}

h2, h3 {
    color: #ffffff;
    border-bottom: 2px solid #00d4ff;
    display: block;
    width: fit-content;
    line-height: 1;
    padding-bottom: 1.5px;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 0.8em;
    font-weight: normal;
    vertical-align: middle;
    opacity: 0.7;
    margin-left: 5px;
}

iframe {
    border: 2px solid #2a2f3a;
    border-radius: 8px;
    background-color: #2a2f3a;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

ul {
    color: #00d4ff;
}

li p {
    color: #e0e0e0;
}

main a {
    color: #ffaa00;
    opacity: 1;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #2a2f3a;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

#caption-box {
    margin-top: 25px;
    padding: 20px;
    background-color: #1a1f29;
    border-left: 5px solid #00d4ff;
    color: #ffffff;
    font-size: 1.1em;
    font-style: italic;
    border-radius: 0 8px 8px 0;
    min-height: 50px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.image-container {
    position: relative;
    width: 250px;
    height: 180px;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.7em;
}

.image-container:hover .overlay-text {
    opacity: 1;
}

.image-container:hover img {
    filter: blur(2px);
    transform: scale(1.1);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 180px;
    gap: 15px;
    width: 100%;
}

.image-container:first-child {
    grid-column: span 2;
    grid-row: span 2;
    height: 100%;
    width: 100%;
}

.image-container:first-child .overlay-text {
    font-size: 1em;
    padding: 20px;
}