body {
    font-family: arial, sans-serif;
    color: #4d5156;
    background-color: #fff;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: #1a0dab;
}

a:hover {
    text-decoration: underline;
}

.google-header {
    display: flex;
    align-items: center;
    padding: 20px 30px 0;
    min-width: 400px;
    z-index: 100;
}

.brand-logo {
    margin-right: 40px;
    margin-top: 4px;
}

.search-form-container {
    flex-grow: 1;
    max-width: 692px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    height: 44px;
    padding: 0 14px 0 20px;
    box-shadow: 0 1px 6px rgba(32, 33, 36, .28);
    background: #fff;
}

.search-input-wrapper:hover {
    box-shadow: 0 1px 6px 0 rgba(32, 33, 36, 0.28);
    border-color: rgba(223, 225, 229, 0);
}

.main-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #202124;
    height: auto;
}

.search-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 8px;
}

.search-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #70757a;
}

.search-icon-btn svg {
    fill: currentColor;
    width: 24px;
    height: 24px;
}

.clear-btn-divider {
    border-left: 1px solid #dfe1e5;
    height: 65%;
    margin: 0 8px 0 4px;
}

.search-button-icon {
    color: #4285f4;
}

.header-right {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding-left: 30px;
    gap: 15px;
}

.settings-icon,
.apps-icon {
    color: #5f6368;
    cursor: pointer;
    border-radius: 50%;
    padding: 8px;
}

.settings-icon:hover,
.apps-icon:hover {
    background-color: rgba(60, 64, 67, .08);
}

.user-profile-btn {
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 9px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.user-profile-btn:hover {
    background-color: #1b66c9;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .3), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.search-modes-nav {
    display: flex;
    padding: 0 30px;
    margin-left: 150px;
    border-bottom: 1px solid #ebebeb;
    margin-top: 15px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 12px 12px;
    color: #5f6368;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    text-decoration: none;
}

.nav-item svg {
    fill: currentColor;
    width: 16px;
    height: 16px;
}

.nav-item.active {
    color: #1a73e8;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: #1a73e8;
    border-radius: 3px 3px 0 0;
}

.nav-item:hover {
    color: #202124;
    text-decoration: none;
}

.tools-btn {
    margin-left: auto;
}

.main-content {
    margin-left: 180px;
    max-width: 652px;
    padding-bottom: 50px;
}

.results-stats {
    color: #70757a;
    font-size: 14px;
    padding: 10px 0;
    margin-bottom: 10px;
}

.sponsored-header {
    font-size: 14px;
    color: #202124;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sponsored-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f1f3f4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 10px;
}

.search-result-block {
    margin-bottom: 28px;
}

.result-source {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
    color: #202124;
}

.source-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f3f4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.source-icon img {
    width: 18px;
    height: 18px;
}

.source-info {
    display: flex;
    flex-direction: column;
}

.source-name {
    font-size: 14px;
    color: #202124;
}

.source-url {
    font-size: 12px;
    color: #4d5156;
}

.result-title {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 4px;
    display: inline-block;
}

.result-title h3 {
    margin: 0;
    font-size: inherit;
    font-weight: 400;
    color: #1a0dab;
}

.result-snippet {
    color: #4d5156;
    line-height: 1.58;
    word-wrap: break-word;
}

.sponsored-label {
    font-weight: 700;
    color: #202124;
    margin-right: 4px;
}

.people-also-ask {
    border: 1px solid #dfe1e5;
    border-radius: 8px;
    margin: 32px 0;
    padding: 0 16px;
}

.paa-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    border-bottom: 1px solid #dfe1e5;
}

.paa-title {
    font-size: 20px;
    color: #202124;
    margin: 0;
    font-weight: 400;
}

.paa-item {
    padding: 14px 0;
    border-bottom: 1px solid #dfe1e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    color: #202124;
}

.paa-item:last-child {
    border-bottom: none;
}

.paa-icon {
    color: #70757a;
}

.page-footer {
    background: #f2f2f2;
    border-top: 1px solid #dadce0;
    color: #70757a;
    font-size: 14px;
}

.footer-location {
    padding: 15px 30px;
    border-bottom: 1px solid #dadce0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bullet {
    width: 8px;
    height: 8px;
    background: #70757a;
    border-radius: 50%;
}

.footer-links-row {
    padding: 0 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-links-group {
    display: flex;
    gap: 30px;
}

.footer-link {
    display: inline-block;
    padding: 15px 0;
    color: #70757a;
}

.footer-link:hover {
    color: #202124;
}

/* Homepage Styles */
.homepage-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.homepage-header {
    display: flex;
    justify-content: flex-end;
    padding: 15px;
}

.homepage-nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.homepage-link {
    color: #1f1f1f;
    font-size: 13px;
}

.homepage-link:hover {
    text-decoration: underline;
}

.homepage-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 80px;
}

.homepage-logo {
    margin-bottom: 30px;
}

.homepage-logo img {
    width: 272px;
    height: 92px;
}

.homepage-search-container {
    width: 100%;
    max-width: 584px;
    margin: 0 auto 20px;
}

.homepage-search-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    height: 44px;
    padding: 2px 8px 2px 14px;
    margin: 0 auto;
}

.homepage-search-wrapper:hover {
    box-shadow: 0 1px 6px rgba(32, 33, 36, .28);
    border-color: rgba(223, 225, 229, 0);
}

.search-icon-left svg {
    fill: #9aa0a6;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    margin-top: 4px;
}

.homepage-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #202124;
    height: auto;
}

.homepage-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding-top: 18px;
}

.homepage-btn {
    background-color: #f8f9fa;
    border: 1px solid #f8f9fa;
    border-radius: 4px;
    color: #3c4043;
    font-family: arial, sans-serif;
    font-size: 14px;
    margin: 11px 4px;
    padding: 0 16px;
    line-height: 27px;
    height: 36px;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

.homepage-btn:hover {
    box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
    background-color: #f8f9fa;
    border: 1px solid #dadce0;
    color: #202124;
}

.homepage-languages {
    font-size: 13px;
    color: #4d5156;
}

.homepage-languages a {
    color: #1a0dab;
    margin-left: 3px;
}

.homepage-footer {
    background: #f2f2f2;
    color: #70757a;
}
/* Responsive Styles */
@media (max-width: 768px) {
    /* Header */
    .google-header {
        min-width: 0;
        padding: 10px 15px 0;
        flex-wrap: wrap;
    }
    .brand-logo {
        margin-right: auto;
    }
    .search-form-container {
        order: 3;
        width: 100%;
        margin-top: 15px;
        max-width: none;
    }
    .header-right {
        padding-left: 0;
    }

    /* Nav */
    .search-modes-nav {
        margin-left: 0;
        padding: 0 15px;
        overflow-x: auto;
        white-space: nowrap;
        -ms-overflow-style: none; /* IE and Edge */
        scrollbar-width: none; /* Firefox */
    }
    .search-modes-nav::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }

    /* Main Content */
    .main-content {
        margin-left: 0;
        padding: 0 15px 30px;
    }

    /* Hide unneeded icons on mobile */
    .apps-icon,
    .settings-icon {
        display: none;
    }

    /* Homepage */
    .homepage-main {
        padding-top: 40px;
        width: 100%;
        box-sizing: border-box;
    }
    .homepage-logo img {
        width: 200px;
        height: auto;
    }
    .homepage-search-container {
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* Footer */
    .footer-location {
        padding: 15px;
        justify-content: center;
        text-align: center;
    }
    .footer-links-row {
        padding: 15px;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .footer-links-group {
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    .footer-link {
        padding: 5px 0;
    }
}
