
:root {
    --primary-orange: #FF6B00;
    --black: #000000;
    --white: #ffffff;
    --bg-light: #f9f9f9;
    --font-main: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    color: var(--black);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.main-header {
    position: sticky;
    top: 0;
    width: 100%; 
    background-color: var(--white);
    border-bottom: 2px solid var(--primary-orange); 
    z-index: 1000;
    padding: 10px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

#main-logo { 
    height: 40px; 
    width: auto; 
    display: block;
    transition: height 0.3s ease;
}

.nav-links { display: flex; list-style: none; gap: 20px; }

.nav-links a {
    color: var(--black);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.nav-links a:hover { color: var(--primary-orange); }

.parent {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
}

.div2 { order: 1; }
.div4 { order: 2; }
.div5 { order: 3; }
.div6 { order: 4; }
.div7 { order: 5; }
.div3 { 
    order: 6; 
    margin-top: 40px; 
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}
.div9 { order: 7; }
.div8 { order: 8; display: flex; justify-content: center; padding: 20px 0; }
.main-footer { order: 9; }


.div2 {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 12px;
}

.div2::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('assets/hero.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    filter: blur(2px);
    z-index: 1;
}

.div2::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 2;
}

.hero-content { position: relative; z-index: 3; padding: 20px; text-align: center; width: 100%; }
.div2 h1 { font-size: 2rem; color: var(--primary-orange); margin-bottom: 15px; }
.white-text { color: var(--white); }
.div2 p { font-size: 1rem; color: var(--white); }


#side-icon {
    width: 120px;
    height: auto;
    object-fit: contain;
}


@media (min-width: 900px) {
    #main-logo { 
        height: 45px !important; 
    }

    .parent {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(12, auto);
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 5%;
    }

    .div2, .div3, .div4, .div5, .div6, .div7, .div8, .div9 { order: unset; }

    .div2 {
        grid-column: 1 / -1;
        grid-row: span 3;
        min-height: 600px;
        margin-left: -15%; 
        margin-right: -15%;
        margin-bottom: 40px;
        border-radius: 0;
    }

    .div2::after { background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 100%); }
    .hero-content { text-align: left; padding-left: 10%; width: auto; }
    .div2 h1 { font-size: clamp(2.5rem, 5vw, 3.8rem); white-space: nowrap; }

    .div3 {
        grid-column: 1 / 3;
        grid-row: 4 / 8;
        height: fit-content;
        top: 110px;
        z-index: 10;
        margin-top: 0;
    }

    .div8 {
        grid-column: 1 / 3;
        grid-row: 8 / 11;
        top: 550px;
        display: flex;
        align-items: center; 
        justify-content: center;
        padding: 20px;
    }

    #side-icon {
        width: auto;
        max-height: 220px; 
        opacity: 0.9;
    }
    .div4 { grid-column: 3 / 9; grid-row: 4 / 6; padding-left: 50px; }
    
    .div5 { grid-column: 3 / 5; grid-row: 6 / 8; margin-left: 50px; }
    .div6 { grid-column: 5 / 7; grid-row: 6 / 8; margin-left: 20px; }
    .div7 { grid-column: 7 / 9; grid-row: 6 / 8; margin-left: 20px; }

    .div9 {
        grid-column: 3 / 9;
        grid-row: 8 / 11;
        background: var(--black);
        color: white;
        padding: 40px;
        border-radius: 12px;
        margin-left: 50px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}
.pillar {
    background: white;
    padding: 25px;
    border-top: 4px solid var(--primary-orange);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: 0.4s ease;
    height: 100%;
}

.pillar:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.sidebar-form { display: flex; flex-direction: column; gap: 15px; }

.sidebar-form input, .sidebar-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
    font-family: inherit;
}

.btn-register, .btn-orange, .btn-submit, .btn-outline {
    padding: 12px 25px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: 0.3s ease;
    cursor: pointer;
    text-align: center;
    display: inline-block;
}

.btn-register, .btn-orange, .btn-submit {
    background-color: var(--primary-orange);
    color: var(--white);
    border: 2px solid var(--primary-orange);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-register:hover, .btn-orange:hover, .btn-submit:hover, .btn-outline:hover { 
    background-color: var(--white); 
    color: var(--black); 
    border-color: var(--black); 
}

.btn-submit { width: 100%; margin-top: 10px; }
.main-footer { 
    grid-column: 1 / -1;
    width: 100%;
    text-align: center; 
    padding: 40px 20px; 
    background: #f4f4f4; 
    margin-top: 40px; 
    box-sizing: border-box;
}