* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #F3F4F6;
    color: #111827;
    line-height: 1.6;
}

.portal-header {
    background-color: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.5px;
}

.top-nav {
    display: flex;
    gap: 2rem;
}

.nav-item {
    font-size: 0.95rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
    position: relative;
}

.nav-item:hover {
    color: #10B981;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #10B981;
    transition: width 0.2s ease;
}

.nav-item:hover::after {
    width: 100%;
}

.main-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.content-area {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.menu-details {
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 1rem;
}

.menu-details summary {
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    padding: 0.5rem;
    list-style: none;
}

.menu-details summary::-webkit-details-marker {
    display: none;
}

.menu-details summary::before {
    content: '▶';
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.2s ease;
}

.menu-details[open] summary::before {
    transform: rotate(90deg);
}

.menu-details ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.body-content {
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 2rem;
    min-height: 300px;
}

.image-gallery {
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 1.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.gallery-item:hover img {
    opacity: 0.9;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.widget {
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 1.5rem;
}

.widget-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #10B981;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #10B981;
}

.editors-pick {
    cursor: pointer;
}

.pick-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.pick-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.editors-pick:hover .pick-image img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.pick-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
}

.community-poll {
    cursor: default;
}

.poll-question {
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.poll-option {
    margin-bottom: 1rem;
    cursor: pointer;
}

.poll-option:last-child {
    margin-bottom: 0;
}

.option-label {
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.poll-option:hover .option-label {
    color: #10B981;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.progress-fill {
    height: 100%;
    background-color: #10B981;
    transition: width 0.3s ease;
}

.poll-option:hover .progress-fill {
    background-color: #059669;
}

.option-percent {
    font-size: 0.75rem;
    color: #6B7280;
    font-weight: 500;
}

.topics-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.topic-item {
    font-size: 0.9rem;
    color: #374151;
    padding: 0.75rem 1rem;
    background-color: #F9FAFB;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.topic-item:hover {
    background-color: #ECFDF5;
    color: #10B981;
    border-color: #10B981;
    transform: translateX(4px);
}

.portal-footer {
    background-color: #FFFFFF;
    border-top: 1px solid #E5E7EB;
    margin-top: 4rem;
    padding: 3rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    font-size: 0.9rem;
    color: #6B7280;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #10B981;
}

.footer-contact {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.8;
}

.footer-contact a {
    color: #10B981;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #059669;
    text-decoration: underline;
}

@media (max-width: 968px) {
    .main-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .top-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

