/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape on iOS */
}

body {
    font-family: 'Linux Libertine', 'Georgia', 'Times', serif;
    line-height: 1.6;
    color: #202122;
    background-color: #f8f9fa;
    direction: ltr;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #a2a9b1;
    text-align: center;
}

.header .logo {
    margin-bottom: 10px;
}

.header .tagline {
    font-size: 1.2rem;
    color: #54595d;
}

/* Main Content */
.main {
    padding: 20px 0;
    background-color: #fff;
}

/* Search Section */
.search-section {
    margin-bottom: 30px;
    text-align: center;
}

.search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    margin: 0 auto 20px;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #a2a9b1;
    border-radius: 4px;
    font-size: 1rem;
}

.search-form select {
    padding: 10px;
    border: 1px solid #a2a9b1;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #fff;
}

.search-button {
    padding: 10px 15px;
    background-color: #0645ad;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background-color: #0b57c7;
}

.read-in-language {
    position: relative;
    display: inline-block;
}

.language-dropdown {
    display: none;
    position: absolute;
    background-color: #fff;
    border: 1px solid #a2a9b1;
    border-radius: 4px;
    width: 200px;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.language-dropdown a {
    display: block;
    padding: 8px 12px;
    color: #0645ad;
    text-decoration: none;
}

.language-dropdown a:hover {
    background-color: #f0f0f0;
}

/* Language List */
.language-list {
    margin-top: 30px;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.language-item {
    border: 1px solid #a2a9b1;
    padding: 10px;
    text-align: center;
}

.language-item a {
    display: block;
    color: #0645ad;
    text-decoration: none;
}

.language-item a:hover {
    text-decoration: underline;
}

.language-item strong {
    display: block;
    font-size: 1.1rem;
}

.language-item span {
    display: block;
    font-size: 0.9rem;
    color: #54595d;
}

/* Footer */
.footer {
    background-color: #f8f9fa;
    padding: 30px 0;
    border-top: 1px solid #a2a9b1;
    margin-top: 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-section {
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer-projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 120px;
}

.footer-projects a {
    color: #0645ad;
    text-decoration: none;
    font-weight: bold;
}

.footer-projects span {
    font-size: 0.8rem;
    color: #54595d;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #a2a9b1;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #0645ad;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form input, .search-form select, .search-button {
        width: 100%;
    }

    .language-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-projects {
        width: auto;
    }

    .mobile-menu-toggle {
        display: none; /* Hide for now, can be used for future mobile menu */
    }
}

/* Zoom Behavior */
@media (max-width: 1200px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 12px;
    }
}