/* 1. Custom Font Setup */
@font-face {
    font-family: 'AvenirCustom';
    src: url('fonts/Avenir-Book.woff2') format('woff2'),
         url('fonts/Avenir-Book.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* CSS Reset & Base Styles */
html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

:root {
    --sidebar-width: max-content; 
    --line-color: #e5e5e5; 
}

body {
    margin: 0;
    padding: 0;
    background-color: #ffffff !important; 
    color: #1a1a1a !important; 
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: row; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Sidebars (Left and Right) */
.sidebar {
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    flex-shrink: 0; 
}

.left-sidebar {
    border-right: 1px solid var(--line-color);
    padding: clamp(1.5rem, 2.5vw, 3rem) clamp(1rem, 3.5vw, 4rem); 
    justify-content: flex-start;
    align-items: center; 
}

.right-sidebar {
    border-left: 1px solid var(--line-color);
    padding: clamp(1.5rem, 2.5vw, 3rem) clamp(1rem, 3.5vw, 4rem);
    justify-content: flex-end; 
    align-items: center;    
}

/* Header Layout */
header {
    padding: 0; 
    background: none;
    width: 100%;
    display: flex;
    justify-content: center;
}

.logo {
    font-family: 'AvenirCustom', sans-serif;
    font-weight: normal;
    font-size: clamp(0.9rem, 1.8vw, 2rem);
    letter-spacing: 0.15em;
    color: #1a1a1a;
    white-space: nowrap; 
}

/* Main Content (Center) */
main {
    flex-grow: 1; 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(2rem, 5vw, 4rem);
}

.content-wrapper {
    max-width: 960px; 
    width: 100%;
}

/* Image Header Layout */
.image-header {
    display: flex;
    justify-content: space-between; 
    align-items: baseline;
    width: 100%;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #1a1a1a;
}

.content-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 2rem;
    background-color: #f4f4f4; 
    filter: grayscale(100%); 
    opacity: 0.9;            
}

.content-wrapper p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #1a1a1a;
    margin: 0;
    text-align: center; 
}

.content-wrapper a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.content-wrapper a:hover {
    border-bottom: 1px solid #1a1a1a;
}

/* Footer Styling */
footer {
    font-size: clamp(0.65rem, 1vw, 0.8rem);
    color: #888888;
    letter-spacing: 0.02em;
    text-align: center; 
    width: 100%; 
    line-height: 1.5; 
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    body {
        flex-direction: column;
    }
    .sidebar {
        width: 100% !important;
    }
    .left-sidebar {
        border-right: none;
        padding: 3rem 2rem 1rem 2rem;
    }
    .right-sidebar {
        border-left: none;
        padding: 2rem;
        justify-content: center; 
        align-items: center;     
    }
    
    .logo {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .image-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        margin-bottom: 1.5rem;
    }

    footer {
        text-align: center;      
    }
    main {
        padding: 2rem;
    }
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    body {
        flex-direction: column;
    }
    .sidebar {
        width: 100% !important;
    }
    .left-sidebar {
        border-right: none;
        padding: 3rem 2rem 1rem 2rem;
        align-items: center; /* Ensures the logo wrapper is centered */
    }
    .right-sidebar {
        border-left: none;
        padding: 2rem;
        justify-content: center; 
        align-items: center;     
    }
    
    .logo {
        font-size: clamp(1.5rem, 6vw, 2rem);
        text-align: center;
    }

    /* OVERRIDE: Stacks and centers the top text on small screens */
    .image-header {
        flex-direction: column;
        align-items: center; /* Centers the items horizontally */
        text-align: center;  /* Centers the text itself */
        gap: 0.5rem;         /* Adds a little breathing room between the two lines */
        margin-bottom: 1.5rem;
    }

    footer {
        text-align: center;      
    }
    main {
        padding: 2rem 2rem 0 2rem; /* Reduced bottom padding slightly to pull footer up */
    }
}