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

body {
    font-family: 'Onest', sans-serif;
    background-color: #ffffff;
    color: #3E1B86;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- HEADER / TOP BAR LAYOUT --- */
.top-bar {
    display: block;
    height: 50px;
    background-color: #3E1B86;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    overflow: hidden;
}

.top-bar-content-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100%;
    display: flex;
    pointer-events: none;
}

.top-bar-spacer {
    width: max(160px, calc((100vw - 1440px) / 2 + 160px));
    flex-shrink: 0;
}

.top-bar-content {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: calc(1440px - 160px);
    padding-right: 80px;
}

.top-bar-text {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 15px;
    font-weight: 300;
    white-space: nowrap;
}

.white-text {
    color: #ffffff;
}

.purple-text {
    color: #3E1B86;
}

.arrow-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.timer-box {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: #DADC12;
    width: 80px;
    z-index: 2;
    overflow: hidden;
    transition: width 30s linear;
}

#countdown {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: #3E1B86;
    font-weight: 900;
    font-size: 22px;
    z-index: 20;
    pointer-events: none;
}

/* --- MAIN CONTENT --- */
.main-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    width: 100%;
    background-color: #ffffff;
}

.hero-image {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    width: auto;
    max-width: 50vw;
    object-fit: contain;
    object-position: right bottom;
    z-index: 1;
    transform: scaleX(-1);
    pointer-events: none;
}

.content-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 60px 80px 40px 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.top-section {
    display: flex;
    flex-direction: column;
    gap: 36px;
    max-width: 680px;
}

.main-logo-small {
    width: 400px;
    height: auto;
}

.description-text {
    font-size: 23px;
    line-height: 1.45;
    font-weight: 700;
    color: #3E1B86;
}

.button-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 32px;
    font-size: 18px;      
    font-weight: 400;         
    text-decoration: none;
    letter-spacing: 0.03em;
    border: none;
    cursor: pointer;
}

.btn-yellow {
    background-color: #DADC12;
    color: #3E1B86;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-yellow:hover { 
    background-color: #DADC12; 
    filter: brightness(0.9) contrast(1.1); 
}

.btn-yellow .arrow-icon {
    transition: transform 0.3s ease;
}

.btn-yellow:hover .arrow-icon {
    transform: translateX(4px);
}

.btn-purple {
    background-color: #3E1B86;
    color: #ffffff;
}
.btn-purple:hover { background-color: #2d1363; }

/* --- BOTTOM SECTION --- */
.bottom-section {
    display: flex;
    align-items: flex-end;
    gap: 4rem;
    margin-top: 5rem;
}

.schools-placeholder {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 40px;
    row-gap: 32px;
    width: 100%;
    height: auto;
    max-width: 580px;
    align-items: center;
}

.school-logo {
    width: 75%;
    height: auto;
    object-fit: contain;
    object-position: left center; 
}

.logo-mehaanika {
    grid-column: 1 / -1; 
    max-width: 330px; 
}

.logo-poly {
    max-width: 150px;
}

.logo-ehitus {
    max-width: 260px;
}

.logo-toostus {
    grid-column: 1 / -1;
    max-width: 380px;
}

.main-logo-large {
    width: 320px;
    height: auto;
    object-fit: contain;
}

/* --- BACKGROUND SHAPES --- */
.bg-shapes {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-arrow-file {
    position: absolute;
    top: 7rem;
    left: 0;
    width: 75%;
    max-width: 900px;
    object-fit: contain;
}

/* --- RESPONSIVENESS --- */
@media (max-width: 1200px) {
    .content-container {
        padding: 40px 40px;
    }
    .hero-image {
        opacity: 0.2;
    }
    .bottom-section {
        gap: 24px;
    }
    .schools-placeholder {
        width: 350px;
        height: auto;
    }
    .main-logo-large {
        width: 220px;
        height: auto;
    }
}

@media (max-width: 900px) {
    body { overflow-y: auto; }
    .top-bar { height: 60px; }
    .timer-box { width: 80px; }
    .top-bar-spacer { width: 80px; }
    .top-bar-content { padding-right: 20px; }
    #countdown { right: 15px; font-size: 18px; }
    .content-container { gap: 40px; height: auto; }
    .bottom-section { flex-direction: column; align-items: flex-start; }
    .schools-placeholder { width: 100%; max-width: 400px; }
    .hero-image { width: 100%; max-width: 100%; opacity: 0.12; }
}