@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* --- Reset & Base Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #F8F7F4;
    color: #4A4A4A;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

/* --- Header & Navigation --- */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.header-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon-wrapper {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #E9D8FD;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    border-radius: 0.5rem;
}

.icon-button {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #E2E8F0;
    border-radius: 0.5rem;
    font-size: 1.5rem;
    font-weight: 300;
    color: #4A5568;
}

.desktop-nav {
    display: none; /* Hidden on mobile */
    align-items: center;
    gap: 2rem;
    color: #6B7280;
}

.desktop-nav a:hover {
    color: #111827;
}

.search-active {
    border-bottom: 2px solid #6F6F6F;
    font-weight: 600;
    color: #1a1a1a;
}

.profile-tag {
    display: none; /* Hidden on mobile */
    background-color: #E2E8F0;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.menu-button {
    background-color: #FFFFFF;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.menu-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.menu-button span {
    font-weight: 600;
    font-size: 0.875rem;
}

/* --- Slider --- */
.slider-section {
    margin-bottom: 2.5rem;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    background: linear-gradient(90deg, rgba(248,247,244,1) 0%, rgba(248,247,244,0.8) 40%, rgba(248,247,244,0) 70%);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-logo {
    width: 8rem;
    margin-bottom: 1rem;
}

.slide-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1F2937;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.slide-description {
    margin-top: 1rem;
    font-size: 1.125rem;
    color: #374151;
    max-width: 28rem;
}

.slide-link {
    margin-top: 1.5rem;
    color: #1F2937;
    font-weight: 600;
    border-bottom: 2px solid #1F2937;
    align-self: flex-start;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: none; /* Hidden on mobile */
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.arrow-icon { width: 1.5rem; height: 1.5rem; }
.arrow-left { left: 1rem; }
.arrow-right { right: 1rem; }

.slider-nav {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0.5rem;
}

.slider-nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s;
}

.slider-nav-dot.active {
    background-color: #4A4A4A;
}


/* --- Main Content --- */
.main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.grid-col-span-2 {
    grid-column: span 1 / span 1;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Pinned Articles */
.pinned-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.article-card {
    display: block;
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px 0 rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.3s;
}

.article-card:hover {
    transform: translateY(-4px);
}

.article-card-image {
    width: 100%;
    height: 10rem;
    object-fit: cover;
}

.article-card-content {
    padding: 1rem;
}

.article-card-title {
    font-weight: 700;
    color: #1F2937;
}

.article-card-excerpt {
    font-size: 0.875rem;
    color: #4B5563;
    margin-top: 0.5rem;
}

.extra-card {
    display: none;
}

.view-more-button {
    width: 100%;
    background-color: #fff;
    text-align: center;
    margin-top: 1rem;
    padding: 0.75rem 0;
    border-radius: 0.75rem;
    font-weight: 600;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px 0 rgba(0,0,0,0.06);
}

.view-more-button:hover {
    background-color: #F9FAFB;
}


/* Info Column */
.info-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background-color: #fff;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px 0 rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item-icon {
    width: 3rem;
    height: 3rem;
}

.info-item-title {
    font-weight: 700;
}

.info-item-description {
    font-size: 0.75rem;
    color: #6B7280;
}

.update-box {
    background-color: #fff;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px 0 rgba(0,0,0,0.06);
    border-left: 4px solid #C084FC;
}

.update-label {
    font-weight: 600;
    color: #6B7280;
    font-size: 0.875rem;
}

.update-date {
    font-size: 0.75rem;
    color: #9CA3AF;
    margin-bottom: 0.5rem;
}

.update-text {
    color: #374151;
}

/* --- Footer --- */
.page-footer {
    margin-top: 3rem;
}

.profile-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px 0 rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.profile-picture {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.profile-info {
    text-align: center;
}

.profile-name {
    font-weight: 600;
    font-size: 1.125rem;
    color: #1F2937;
}

.profile-bio {
    font-size: 0.875rem;
    color: #6B7280;
    margin-top: 0.25rem;
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    z-index: 50;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.close-menu-button {
    font-size: 2.25rem;
    font-weight: 700;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 1.5rem;
    gap: 2rem;
}

.mobile-nav a:hover {
    color: #8B5CF6;
}

.profile-tag-mobile {
    margin-top: 2rem;
    background-color: #E2E8F0;
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}


/* --- Responsive Styles (Desktop) --- */
@media (min-width: 768px) {
    .container {
        padding: 2rem;
    }
    .desktop-nav {
        display: flex;
    }
    .profile-tag {
        display: block;
    }
    .slider-container {
        height: 400px;
    }
    .slide-content {
        width: 50%;
    }
    .slider-arrow {
        display: flex;
    }
    .pinned-grid {
        grid-template-columns: 1fr 1fr;
    }
    .profile-card {
        flex-direction: row;
    }
    .profile-info {
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .main-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .grid-col-span-2 {
        grid-column: span 2 / span 2;
    }
}

