/* Original Leukai Theme - Earth Tones with Better Alignment */
:root {
    --bg-main: #F5EFE6;
    --frame-bg: #D2B48C;
    --label-title: #5C3A21;
    --btn-active: #E08D3C;
    --btn-hover: #F2C94C;
    --widget-bg: #C19A6B;
    --widget-text: #4B2E1A;
    --total-label: #3D1F0F;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--label-title);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background-color: var(--frame-bg);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--total-label);
    text-decoration: none;
    display: flex;
    align-items: center;
    /* Vertically align logo and text */
}

.brand-logo {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.navbar-nav {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
    /* Vertically align all nav items */
}

.nav-link {
    color: var(--total-label);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: inline-block;
}

.nav-link:hover {
    color: var(--btn-active);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* General Layout Helpers */
.intro-card {
    text-align: center;
    padding: 4rem 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s;
    font-size: 1rem;
    height: 40px;
    /* Fixed height for alignment */
    line-height: 1;
    box-sizing: border-box;
}

.btn-primary {
    background-color: var(--btn-active);
    color: white;
}

.btn-primary:hover {
    background-color: var(--btn-hover);
    color: var(--widget-text);
}

/* Sponsor Button specific fix */
.sponsor-btn {
    font-size: 0.9rem !important;
    /* Slightly smaller text */
    white-space: nowrap;
    /* Prevent line break */
    height: auto !important;
    /* Flexible height for this specific button if needed */
    padding: 0.6rem 1.2rem;
}

.card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

/* About Section Specifics */
.about-section h1 {
    text-align: center;
    color: var(--total-label);
}

.intro-text {
    text-align: justify;
    margin-bottom: 2rem;
}

.subsection h3 {
    color: var(--btn-active);
}

.highlight {
    background-color: var(--frame-bg);
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    color: var(--total-label);
}

.achievements-list li {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--frame-bg);
    color: var(--total-label);
    margin-top: 3rem;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Form Elements */
input[type="text"],
input[type="password"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type="checkbox"] {
    width: auto;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0; /* Star hidden */
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Language Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    min-width: 130px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    z-index: 1000;
    list-style: none;
    padding: 0.5rem 0;
    border-radius: 10px;
    margin-top: 5px;
    border: 1px solid rgba(0,0,0,0.05);
}

.dropdown-item {
    color: var(--total-label);
    padding: 0.7rem 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f1e9;
    color: var(--btn-active);
}

.dropdown-item.active {
    font-weight: bold;
    color: var(--btn-active);
    background-color: #fdf6ee;
}

/* Toggle visibility with hover for desktop, and support click-based toggle if needed */
.dropdown:hover .dropdown-menu, 
.dropdown.show .dropdown-menu {
    display: block;
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: bold !important;
}
