.header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    padding: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-bottom: 0.5px solid #AAA;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.header-content img {
    max-height: 40px;
    width: auto;
}

.header-content-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-link {
    color: #191817;
    font-size: 1.05rem;
    font-weight: 400;
    cursor: pointer;
    transition: color 0.3s ease;
}

.header-link:hover {
    color: red;
}

.header-divider-horizontal {
    width: 100%;
    background: #E3E6EA;
    height: 1px;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.header-main-text {
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
}

.header-main-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.txt-btn button {
    display: flex;
    align-items: center;
    color: #191817;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    background-color: transparent;
    border: 0;
    gap: 0.2rem;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.txt-btn:hover button {
    text-decoration: underline;
    text-decoration-color: black;
}

.overlay-card {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    width: 900px;
    max-width: 90vw;
    margin-top: 1rem;
    align-items: flex-start;
    z-index: 1001;
    box-sizing: border-box;
}

.overlay-card-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #191817;
    margin: 0 0 1rem 0;
}

/* Desktop Large - 1200px and above */
@media (min-width: 1200px) {
    .header {
        padding: 1rem 2rem;
    }
    
    .header-content img {
        max-height: 45px;
    }
}

/* Laptop - 992px to 1199px */
@media (min-width: 992px) and (max-width: 1199px) {
    .header-content,
    .header-main {
        max-width: 960px;
        padding: 0 1rem;
    }
    
    .header-main-text {
        gap: 2rem;
    }
    
    .overlay-card {
        width: 700px;
    }
}

/* Tablet - 768px to 991px */
@media (min-width: 768px) and (max-width: 991px) {
    .header {
        padding: 0.8rem 1rem;
        gap: 0.4rem;
    }
    
    .header-content,
    .header-main {
        max-width: 720px;
        padding: 0 0.5rem;
    }
    
    .header-content img {
        max-height: 35px;
    }
    
    .header-content-nav {
        gap: 1rem;
    }
    
    .header-link {
        font-size: 0.95rem;
    }
    
    .header-main-text {
        gap: 1.5rem;
    }
    
    .txt-btn button {
        font-size: 0.95rem;
    }
    
    .header-main-btn {
        gap: 0.8rem;
    }
    
    .overlay-card {
        width: 600px;
        padding: 1.5rem;
    }
}

/* Mobile - 767px and below */
@media (max-width: 767px) {
    .header {
        padding: 0.8rem;
        gap: 0.4rem;
    }
    
    .header-content {
        padding: 0;
    }
    
    .header-content img {
        max-height: 30px;
    }
    
    .header-content-nav {
        gap: 0.8rem;
    }
    
    .header-link {
        font-size: 0.9rem;
    }
    
    .header-divider-horizontal {
        margin: 0 -0.8rem;
        width: calc(100% + 1.6rem);
    }
    
    .header-main {
        padding: 0;
    }
    
    .header-main-text {
        gap: 1rem;
    }
    
    .txt-btn button {
        font-size: 0.9rem;
        padding: 0.3rem;
    }
    
    .txt-btn button img {
        width: 14px;
        height: 14px;
    }
    
    .header-main-btn {
        gap: 0.5rem;
    }
    
    .header-main-btn button {
        padding: 0.3rem;
    }
    
    .header-main-btn button img {
        width: 20px;
        height: 20px;
    }
    
    .overlay-card {
        position: fixed;
        top: auto;
        left: 0.8rem;
        right: 0.8rem;
        width: auto;
        max-width: calc(100vw - 1.6rem);
        padding: 1.2rem;
        margin-top: 0.5rem;
    }
    
    .overlay-card-title {
        font-size: 1.1rem;
    }
}

/* Mobile Small - 479px and below */
@media (max-width: 479px) {
    .header {
        padding: 0.6rem;
    }
    
    .header-content img {
        max-height: 28px;
    }
    
    .header-content-nav {
        gap: 0.5rem;
    }
    
    .header-link {
        font-size: 0.85rem;
    }
    
    .header-main-text {
        gap: 0.8rem;
    }
    
    .txt-btn button {
        font-size: 0.85rem;
    }
    
    .header-main-btn {
        gap: 0.4rem;
    }
    
    .header-main-btn button img {
        width: 18px;
        height: 18px;
    }
    
    .overlay-card {
        padding: 1rem;
    }
    
    .overlay-card-title {
        font-size: 1rem;
    }
}

/* Extra Small Mobile - 360px and below */
@media (max-width: 360px) {
    .header {
        padding: 0.5rem;
    }
    
    .header-content img {
        max-height: 26px;
    }
    
    .header-link {
        font-size: 0.8rem;
    }
    
    .txt-btn button {
        font-size: 0.8rem;
    }
    
    .header-main-btn button img {
        width: 16px;
        height: 16px;
    }
    
    .overlay-card {
        left: 0.5rem;
        right: 0.5rem;
        max-width: calc(100vw - 1rem);
        padding: 0.8rem;
    }
}
