/* --- Global Styles --- */
:root {
    --primary-color: #ff9900;
    --secondary-color: #333;
    --bg-color: #f8f9fa;
    --text-color: #444;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* --- Header & Navigation --- */
header {
    background: var(--secondary-color);
    padding: 15px 0;
    color: var(--white);
    box-shadow: var(--shadow);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* --- Main Layout --- */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    padding: 40px 20px;
}

@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
}

/* --- Hero Section --- */
.hero {
    background: var(--white);
    padding: 60px 30px;
    text-align: center;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #222;
}

.search-container {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.search-container input {
    width: 70%;
    padding: 15px 20px;
    border: 2px solid #eee;
    border-radius: 50px 0 0 50px;
    outline: none;
    font-size: 1rem;
}

.search-container button {
    padding: 15px 30px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    font-weight: bold;
}

/* --- Content Cards --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.card ul {
    list-style: none;
}

.card ul li {
    margin-bottom: 8px;
}

.card ul li a {
    color: #666;
}

.card ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* --- Sidebar (Already integrated from previous step) --- */

/* --- Footer --- */
.site-footer {
    background: var(--secondary-color);
    color: #ccc;
    padding: 60px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-about p {
    margin-top: 15px;
    line-height: 1.8;
}

.site-footer h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.site-footer ul {
    list-style: none;
}

.site-footer ul li {
    margin-bottom: 10px;
}

.site-footer ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}
/* --- All-in-One Converter UI (Generic) --- */
.converter-box {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.converter-ui {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Mobile responsive optimization */
@media (max-width: 768px) {
    .converter-ui { flex-direction: column; align-items: stretch; }
    .swap-btn { transform: rotate(90deg); margin: 10px auto; }
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #666;
}

.input-group input, .input-group select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
}

.swap-btn button {
    background: var(--bg-color);
    border: 1px solid #ddd;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.swap-btn button:hover {
    background: var(--primary-color);
    color: white;
}