/* Global Styles */
:root {
    --sidebar-width: 260px;
    --primary-color: #000000;
    --secondary-color: #555555;
    --bg-color: #ffffff;
    --text-color: #333333;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    display: flex;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #fff;
    /* Optional right border or shadow if needed, usually minimalist doesn't have it */
}

.brand h1 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.4;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.brand h1 span {
    display: block;
}

.nav-links li {
    margin-bottom: 12px;
}

.nav-links a {
    font-size: 0.9rem;
    color: #999;
    font-weight: 500;
    text-transform: capitalize;
}

.nav-links a:hover,
.nav-links a.active {
    color: #000;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    display: block;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    font-size: 1.1rem;
    color: #ccc;
}

.social-links a:hover {
    color: #000;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    background-color: #f9f9f9;
    /* Slight contrast for content area */
}

/* Grid Gallery (Home) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(33.333%, 1fr));
    width: 100%;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1/1;
    /* Square ratio */
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay-text {
    text-align: center;
}

.overlay-text h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    color: #000;
}

.overlay-text p {
    font-family: 'Times New Roman', serif;
    font-style: italic;
    color: #666;
}

/* Page Content (Non-Grid) */
.content-container {
    padding: 80px 10%;
    max-width: 1000px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Text & Typography Utilities */
p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #444;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #000;
}

h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}


/* Timeline & Cards for inner pages */
.timeline-item,
.card {
    background: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #eee;
}

.timeline-item h3,
.card h3 {
    text-transform: uppercase;
    letter-spacing: 1px;
}

.date {
    font-family: 'Times New Roman', serif;
    font-style: italic;
    color: #888;
    margin-bottom: 1rem;
    display: block;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    background: #fafafa;
    font-family: inherit;
}

.btn-submit {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #333;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 30px;
        align-items: center;
        text-align: center;
    }

    .main-content {
        margin-left: 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(50%, 1fr));
    }
}