/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    font-size: 0.95rem;
    background: #fafbfc;
    margin: 0 !important;
    padding: 0 !important;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Navigation Styles */
.nav {
    background-color: #fff;
    border-bottom: 1px solid #D9D9D9;
    box-shadow: none;
    padding: 0;
    min-height: 48px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding: 0 18px;
    gap: 0;
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 48px;
}

.logo-image {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
    margin: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.logo-text {
    font-family: 'Poppins', 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #232323;
    letter-spacing: 0.1px;
    line-height: 1;
    margin: 0;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-right {
    display: flex;
    align-items: center;
    margin-left: auto;
    height: 100%;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    margin-left: auto;
    /* Hapus border dan background tambahan */
    transition: none;
}
.hamburger-menu.active {
    border: none;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 5px;
    background-color: #333;
    margin: 4px 0;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.logo-text {
    color: black;
    font-size: 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.nav-search {
    flex: 1;
    max-width: 420px;
    margin: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-container {
    background: #F7F7F7;
    border-radius: 25px;
    padding: 0.1rem 0.7rem;
    display: flex;
    align-items: center;
    box-shadow: none;
    border: 1px solid #E0E0E0;
    min-width: 180px;
    max-width: 280px;
    width: 100%;
    font-size: 1rem;
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    color: #232323;
    padding: 0.4rem 0.6rem;
}

.search-button svg {
    margin-left: 0.2rem;
    width: 18px;
    height: 18px;
}

.search-button {
    padding: 0.2rem 0.4rem;
    border-radius: 50%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-items {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    height: 48px;
}

.nav-link, .nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    box-sizing: border-box;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 0 1.2rem;
    border-radius: 24px;
    background: none;
    border: none;
    transition: background 0.2s, color 0.2s;
    margin-top: 0; /* pastikan tidak ada margin atas */
}

.nav-link {
    color: #817F80;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #F05744;
}

.nav-button {
    background: none !important;
    color: #F05744 !important;
    box-shadow: none !important;
    border: none !important;
    font-weight: 700 !important;
    transition: background 0.2s, color 0.2s;
    margin-top: 0 !important; /* pastikan tidak turun */
    padding: 0 1.2rem !important; /* samakan padding dengan nav-link */
    height: 48px !important; /* samakan tinggi dengan nav-link */
    align-items: center !important;
    display: flex !important;
}

.nav-button:hover {
    background: #F05744 !important;
    color: #fff !important;
    border: none !important;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: unset;
    padding-top: 32px !important;
    padding-bottom: 32px !important;
    background-color: #fff;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.hero-content {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
}

.hero-title {
    font-size: 2.2rem;
    font-family: 'Baloo Chettan 2', cursive;
    font-weight: 700;
    color: #121011;
    line-height: 1.2;
    margin-bottom: 0.7rem;
}

.hero-text {
    color: #A4A1A3;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Hilangkan efek container putih di gambar Chill Guy pada hero section */
.hero-image {
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}
.hero-image img {
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.hero-image {
    flex: 1;
    max-width: 40%;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    object-fit: contain;
    max-width: 100%;
    max-height: 350px;
    display: block;
    margin: 0 auto;
}

/* Search Banner */
.search-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #EF5845;
    padding: 2.5rem 0;
    text-align: center;
    color: white;
    min-height: 40vh;
    width: 100%;
    box-sizing: border-box;
}

.search-banner-title {
    font-size: 2.2rem;
    font-family: 'Bungee', cursive;
    margin-bottom: 0;
    text-align: center;
    width: auto;
}

.search-banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    gap: 1.5rem;
}

.search-banner-input {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 43px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    justify-content: center;
}

/* Content Sections */
.section {
    padding: 1.5rem 0;
}

.section-title {
    font-size: 2rem;
    font-family: 'Changa One', cursive;
    text-align: center;
    margin-bottom: 0.8rem;
}

.section-subtitle {
    text-align: center;
    color: #7D7C7E;
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 4rem;
}

.article-card {
    border-radius: 10px;
    overflow: hidden;
}

.article-image {
    width: 100%;
    aspect-ratio: 16/10;
    height: auto;
    max-width: 320px;
    max-height: 210px;
    min-width: 200px;
    object-fit: cover !important;
    border-radius: 14px;
    margin: 0 auto;
    display: block;
    box-sizing: border-box;
}

.article-content {
    padding: 0.7rem;
}

.article-tag {
    color: #E85447;
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.article-title {
    font-size: 1.6rem;
    font-family: 'Baloo Chettan 2', cursive;
    margin-bottom: 0.8rem;
}

.article-text {
    color: #969496;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

/* Perbesar font judul dan deskripsi artikel grid */
.article-grid .article-title {
    font-size: 1.35rem;
    font-family: 'Baloo Chettan 2', cursive;
    margin-bottom: 0.7rem;
}
.article-grid .article-text {
    font-size: 1.08rem;
    color: #969496;
    margin-bottom: 1.1rem;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.category-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.category-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    color: white;
    text-align: center;
}

/* Edit Profile Styles */
.edit-profile {
    padding: 2rem 0;
    background: white;
}

.profile-page {
    padding: 2rem 0;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #F05744;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.back-button:hover {
    background: #e04634;
}

.back-button .arrow-left {
    width: 12px;
    height: 12px;
    background: white;
    display: inline-block;
    clip-path: polygon(100% 50%, 0 0, 0 100%);
}

.profile-header h1 {
    font-size: 2.7rem;
    color: #383838;
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: white;
    border: 1px solid #CCCCCC;
    border-radius: 6px;
    color: #45464F;
    font-size: 1.4rem;
    cursor: pointer;
}

.arrow-left {
    width: 22px;
    height: 16px;
    background: #383333;
}

.profile-nav {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.profile-nav a {
    color: #F05744;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 0;
}

.profile-nav a.active {
    border-bottom: 2px solid #F05744;
}

.profile-info-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 2rem;
    max-width: 450px;
}

.info-header {
    background: #F05744;
    color: white;
    padding: 1rem;
    font-size: 1.4rem;
    border-radius: 6px 6px 0 0;
}

.info-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    color: #524D55;
    font-size: 1.1rem;
}

.profile-form {
    max-width: 800px;
}

.form-section {
    margin-bottom: 3rem;
}

.form-section h2 {
    color: #45464F;
    font-size: 1.6rem;
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #45404B;
    font-size: 1.2rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #BCC1CA;
    border-radius: 4px;
    font-size: 1.1rem;
    color: #756F74;
}

.help-text {
    color: #89858C;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.submit-button {
    background: #F05744;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-button:hover {
    background: #e04634;
}

/* Login Page Styles */
.login-page {
    padding: 4rem 0;
    background: white;
    min-height: calc(100vh - 114px - 332px); /* viewport height minus header and footer */
}

.login-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.login-header h1 {
    font-size: 1.6rem;
    color: #302734;
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
}

.signup-btn {
    background: #F05744;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.6rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-form {
    max-width: 732px;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #271820;
    font-size: 1.1rem;
}

.login-form .form-input {
    width: 100%;
    padding: 1rem;
    background: #E8F0FE;
    border: 1px solid #D9E0ED;
    border-radius: 4px;
    font-size: 1.6rem;
    color: #191825;
}

.form-options {
    margin-bottom: 2rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #F0F0F0;
    border-radius: 2px;
    width: fit-content;
}

.remember-me input[type="checkbox"] {
    width: 23px;
    height: 23px;
    border: 1px solid #565E6C;
    border-radius: 4px;
}

.remember-me span {
    color: #171A1F;
    font-size: 1.1rem;
}

.login-btn {
    width: 100%;
    background: #F05744;
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 10px;
    font-size: 1.6rem;
    cursor: pointer;
    margin-bottom: 2rem;
}

.forgot-password {
    display: block;
    color: #1957FF;
    font-size: 1.6rem;
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    text-decoration: none;
}

.login-artwork {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2rem 0 1rem 0;
    padding: 0;
    width: 100%;
    min-height: 200px;
}

.no-activity-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 120px;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
}

.artwork-credit {
    color: #1843BB;
    font-size: 1.6rem;
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
}

/* Category Page Styles */
.category-page {
    padding: 2rem 0;
    background: white;
}

.category-header {
    background: #FFFCFC;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #eee;
}

.category-header h1 {
    font-size: 1.4rem;
    color: #1D1C24;
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    background: white;
    border: 1px solid #28242C;
    border-radius: 6px;
    color: #28242C;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    color: #A83547;
    border-color: #A83547;
}

.sort-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.sort-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.sort-link, .view-link {
    color: #28242C;
    font-size: 1.4rem;
    text-decoration: none;
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
}

.sort-link.active {
    color: #56262E;
}

.view-options {
    display: flex;
    gap: 1.5rem;
}

.category-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.category-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}

.category-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-item h3 {
    position: static;
    padding: 0.3rem 0;
    background: none;
    color: black;
    font-size: 1.4rem;
    text-align: center;
    margin-top: 0.3rem;
}

.ad-section {
    margin: 2rem 0;
}

.ad-banner {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
}

.ad-banner span {
    display: block;
    color: #505050;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.ad-banner img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.category-stats {
    background: white;
    padding: 1.5rem;
    border-radius: 4px;
}

.category-stats h2 {
    color: #1F1F1F;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.stat-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Article Detail Page Styles */
.article-detail {
    padding: 2rem 0;
    background: white;
}

.article-detail .article-title {
    font-size: 2.8rem;
    color: black;
    font-family: 'Epilogue', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-meta {
    color: #47454B;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.article-info {
    color: #4C4750;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #FFFDEB;
    margin-bottom: 2rem;
}

.share-btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 3px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.share-btn.facebook {
    background: #385898;
}

.share-btn.save {
    background: #FF3D00;
}

.share-btn.twitter {
    background: #0C7ABF;
}

.social-prompt {
    margin-left: auto;
    color: #4A9B47;
}

.article-section {
    margin-bottom: 3rem;
}

.article-section h2 {
    font-size: 1.9rem;
    color: #1A171D;
    font-family: 'Epilogue', sans-serif;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.article-section p {
    font-size: 1.25rem;
    color: #4C3640;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.article-image {
    margin: 2rem 0;
}

.article-image img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    object-fit: contain;
    max-width: 100%;
    max-height: 350px;
    display: block;
    margin: 0 auto;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.category-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: 4px;
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
}

.stat-item.cultures {
    background: #1AA2CB;
}

.stat-item.events {
    background: #0B6A40;
}

.comments-section {
    margin-top: 4rem;
}

.comment-form {
    margin: 2rem 0;
}

.comment-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #888888;
    border-radius: 4px;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.comment-btn,
.display-comments-btn {
    background: #F73D34;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
}

.display-comments-btn {
    width: 100%;
    margin-top: 1rem;
}

/* Article Page Styles */
.article-page {
    padding: 2rem 0;
}

.article-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.main-articles {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.featured-article {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
}

.article-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sidebar-articles {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-article {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.sidebar-article img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.sidebar-article h4 {
    font-size: 1rem;
    margin: 0;
    color: #2B272C;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.page-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #F05744;
    border-radius: 50%;
    background: white;
    color: #F05744;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-button:hover {
    background: #F05744;
    color: white;
}

/* Footer */
.footer {
    background: #ffffff;
    color: #232323;
    padding: 1.2rem 0;
    border-top: 2px solid #000000;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1.5rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-text {
    color: #A25A5A;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-link {
    display: block;
    color: rgb(0, 0, 0);
    text-decoration: none;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 53px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.button-primary {
    background: #EF5845;
    color: #FCD1C8;
}

/* Profile Page Styles */
.profile-page {
    padding: 2rem 0;
    background: white;
}

.profile-main {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
    max-width: 75rem;
    margin: 0 auto;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.profile-image {
    width: 24.875rem;
    height: 24.875rem;
    border-radius: 0.375rem;
    object-fit: cover;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.profile-name {
    font-family: 'Archivo', sans-serif;
    font-size: 2.125rem;
    font-weight: 700;
}

.profile-location,
.profile-joined {
    color: #565460;
    font-size: 1.1875rem;
}

.profile-stats {
    margin-top: 1rem;
    text-align: center;
}

.activity-tabs {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.tab {
    color: #5C5961;
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    cursor: pointer;
}

.tab.active {
    color: #434049;
}

.comments-section {
    text-align: center;
    margin-top: 2rem;
}

.comments-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.nav-button {
    background: #F05744;
    color: #FCD9D1;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-weight: 600;
    text-decoration: none;
    align-self: center;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        max-width: 95%;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
    
    .search-banner-title {
        font-size: 2.5rem;
    }
    
    .article-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.2rem;
    }
    .footer-content.custom-footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 900px) {
    .nav-container {
        display: flex;
        flex-wrap: wrap;
        position: relative;
        padding: 0.5rem 1rem;
    }

    .nav-right {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-left: auto;
        order: 1;
    }

    .hamburger-menu {
        display: flex;
        margin-left: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .search-banner-title {
        font-size: 2.2rem;
    }
    
    .search-banner {
        padding: 2rem 0;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .article-grid {
        gap: 1.2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

    .nav-search {
        max-width: none;
        margin: 0.7rem 0;
    }
    .search-container {
        min-width: 0;
        max-width: none;
    }

    .nav-search {
        order: 2;
        width: 100%;
        margin: 1rem 0;
        max-width: none;
        padding: 0 1rem;
    }

    .search-container {
        width: 100%;
    }

    .nav-items {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff !important; /* Paksa background solid putih */
        padding: 0.5rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        transition: all 0.3s ease-in-out;
        opacity: 0;
        transform: translateY(-10px);
        z-index: 99;
    }

    .nav-items .nav-link {
        display: block;
        padding: 0.8rem 1rem;
        text-align: left;
        border-radius: 8px;
        transition: background-color 0.3s;
    }

    .nav-items .nav-link:hover {
        background-color: rgba(0,0,0,0.05);
    }

    .nav-items .nav-button {
        margin: 0.5rem 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .nav-items .nav-link, .nav-items .nav-button {
        background: #fff !important;
        color: #817F80;
        border-radius: 8px;
        margin: 0.2rem 0;
        box-shadow: none;
    }

    .nav-items .nav-link:hover, .nav-items .nav-button:hover {
        background: #f5f5f5 !important;
        color: #F05744 !important;
    }

    .nav-mobile-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0 1rem;
    }

    .nav-items.show {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .logo-item {
        display: flex;
        align-items: center;
    }

    .login-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .login-form-container {
        order: 1;
    }

    .login-artwork {
        order: 2;
    }

    .login-header {
        margin-bottom: 2rem;
    }

    .login-form {
        max-width: 100%;
    }

    .signup-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1.4rem;
    }

    .category-header {
        padding: 1rem;
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 1.2rem;
        width: calc(50% - 0.5rem);
    }

    .sort-options {
        flex-direction: column;
        align-items: flex-start;
    }

    .sort-group, .view-options {
        width: 100%;
        justify-content: space-between;
    }

    .sort-link, .view-link {
        font-size: 1.2rem;
    }

    .category-layout {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .article-detail .article-title {
        font-size: 2rem;
    }

    .share-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .share-btn {
        width: 100%;
        text-align: center;
    }
    .footer-content.custom-footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 1.5rem;
    }

    .article-grid {
        grid-template-columns: repeat(2, 1fr); /* Tetap 2 kolom pada tablet/mobile */
        gap: 1.2rem;
    }
    .article-layout {
        grid-template-columns: 2fr 1fr; /* Tetap 2 kolom utama dan sidebar */
        gap: 2rem;
    }
    .main-articles {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2rem;
    }
    .featured-article, .article-item {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 2rem;
        align-items: start;
        width: 100%;
    }
}

/* Border dan background untuk dropdown/hamburger menu (nav-items) pada mobile */
@media (max-width: 900px) {
  .nav-items {
    border: none !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 0 !important;
    padding: 0.5rem;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
}

@media (max-width: 600px) {
    .container {
        padding: 0 6px;
    }
    .section-title {
        font-size: 1.3rem;
    }
    .search-banner-title {
        font-size: 1.1rem;
    }
    .footer-content.custom-footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 1rem;
        flex-wrap: nowrap;
    }
    .footer-brand-social, .footer-column {
        align-items: flex-start;
        margin-bottom: 0;
    }

    .article-grid {
        grid-template-columns: 1fr; /* Kembali ke satu kolom pada mobile agar rapi */
        gap: 1rem;
    }
    .article-layout {
        grid-template-columns: 1fr; /* Satu kolom utama, sidebar di bawah */
        gap: 1rem;
    }
    .main-articles {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 1rem;
    }
    .featured-article, .article-item {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    .article-image,
    .featured-article .article-image,
    .article-item .article-image {
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        display: block;
        margin: 0 auto 0.5rem auto;
    }
    .category-image {
        width: 100% !important;
        height: 120px !important;
        object-fit: cover !important;
    }
    .hero-image img {
        max-width: 100% !important;
        max-height: 180px !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        margin: 0 auto;
    }
    .sidebar-article img {
        width: 70px !important;
        height: 70px !important;
        object-fit: cover !important;
    }
}

/* Hapus selector global img yang menyebabkan semua gambar terkena height: 28px dan height: auto */
/* Atur hanya class gambar tertentu saja */
.footer-logo {
  max-width: 100%;
  width: auto;
  height: 28px;
  object-fit: contain;
  display: block;
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
.logo-image {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  vertical-align: middle;
}
.category-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.article-image {
  width: 100%;
  aspect-ratio: 16/10;
  height: auto;
  max-width: 320px;
  max-height: 210px;
  min-width: 200px;
  object-fit: cover !important;
  border-radius: 14px;
  margin: 0 auto;
  display: block;
  box-sizing: border-box;
}
/* img global tidak diatur height/width lagi agar tidak mengganggu logo dan gambar lain */
/* .no-activity-image tetap dibiarkan karena sudah spesifik */

/* Footer Custom Grid and Social Icons */
.footer-content.custom-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  align-items: flex-start;
  padding-top: 0.5rem;
}
.footer-brand-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
}
.footer-social {
  display: flex;
  gap: 1.1rem;
  margin-top: 0.5rem;
}
/* .social-icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  transition: transform 0.2s;
}
.social-icon img:hover {
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
} */
.footer-brand {
  margin-bottom: 0.5rem;
}
.footer-logo {
  max-width: 80px;
  height: auto;
  margin-bottom: 0.5rem;
}
.footer-text {
  color: #A25A5A;
  font-size: 0.95rem;
}
@media (max-width: 900px) {
  .footer-content.custom-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 1.5rem;
  }
  .footer-brand-social {
    margin-bottom: 1.5rem;
  }
}
@media (max-width: 600px) {
  .footer-content.custom-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 1rem;
    flex-wrap: nowrap;
  }
  .footer-brand-social, .footer-column {
    align-items: flex-start;
    margin-bottom: 0;
  }
  .footer-social {
    flex-wrap: wrap;
    gap: 0.7rem;
  }
}
@media (max-width: 600px) {
  .container {
    padding: 0 6px;
  }
  .section-title {
    font-size: 1.3rem;
  }
  .search-banner-title {
    font-size: 1.1rem;
  }
}

/* Perkecil ukuran font artikel dan judul */
.article-title, .featured-article .article-title, .article-item .article-title {
    font-size: 1.1rem !important;
}
.article-text, .main-articles, .article-content {
    font-size: 0.92rem !important;
}

/* Perbesar gambar artikel utama dan item */
.featured-article .article-image, .article-item .article-image {
    max-width: 170px !important;
    min-width: 120px !important;
    width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 600px) {
  .featured-article .article-image, .article-item .article-image {
    max-width: 110px !important;
    min-width: 70px !important;
  }
  .article-title, .featured-article .article-title, .article-item .article-title {
    font-size: 0.98rem !important;
  }
  .article-text, .main-articles, .article-content {
    font-size: 0.85rem !important;
  }
}

@media (max-width: 600px) {
    .footer-content.custom-footer-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        flex-wrap: nowrap;
    }
    .footer-brand-social, .footer-column {
        align-items: flex-start;
        margin-bottom: 0.5rem;
    }
    .footer-social {
        flex-wrap: wrap;
        gap: 0.7rem;
    }
}

@media (max-width: 600px) {
    .hero-content {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 1.5rem !important;
        padding: 0 0.5rem !important;
    }
    .hero-image {
        max-width: 45% !important;
        flex: 1 1 45% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .hero-image img {
        max-width: 100% !important;
        max-height: 160px !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        margin: 0 auto !important;
    }
    .hero-title {
        font-size: 2rem !important;
        margin-bottom: 0.5rem !important;
    }
    .hero-text {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 600px) {
    .profile-info-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.2rem 0.5rem !important;
        gap: 1.2rem !important;
    }
    .profile-avatar {
        width: 110px !important;
        height: 110px !important;
        margin-top: 0 !important;
        object-fit: contain !important;
        display: block;
    }
    .profile-header-details {
        width: 100%;
        padding: 0;
    }
    .profile-name {
        font-size: 2rem !important;
        word-break: break-word;
    }
    .profile-meta {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 1rem;
        align-items: center;
    }
}

@media (max-width: 600px) {
  .search-banner {
    min-height: 30vh;
    padding: 2rem 0;
  }
}

/* Ukuran lebih besar untuk gambar artikel grid (terbaru dari kami & artikel) */
body#index-page .article-grid .article-image,
body#index-page .featured-article .article-image,
body#index-page .article-item .article-image {
    width: 320px;
    height: 210px;
    object-fit: cover;
    border-radius: 14px;
    margin: 0 auto;
    display: block;
    box-sizing: border-box;
}

body#index-page .article-grid .article-image,
body#index-page .featured-article .article-image,
body#index-page .article-item .article-image {
    width: 100%;
    aspect-ratio: 16/10;
    max-width: 320px;
    max-height: 210px;
    min-width: 200px;
    height: auto;
    object-fit: cover !important;
    border-radius: 14px;
    margin: 0 auto;
    display: block;
    box-sizing: border-box;
}

@media (max-width: 600px) {
  body#index-page .article-grid .article-image,
  body#index-page .featured-article .article-image,
  body#index-page .article-item .article-image {
    width: 100%;
    aspect-ratio: 16/10;
    max-width: 100%;
    max-height: 160px;
    min-width: 100px;
    height: auto;
  }
}

/* Border khusus gambar artikel di Artikel.html */
body.artikel-page .article-image img {
    border: 3px solid #ed5c2f;
    border-radius: 14px;
    box-sizing: border-box;
}

.artikel-page img.article-image {
    border: 3px solid #ed5c2f;
    border-radius: 14px;
    box-sizing: border-box;
}

/* Sembunyikan search di header pada desktop, tampilkan di hamburger menu saat mobile */
.nav-search-mobile { display: none; }
@media (max-width: 900px) {
  .nav-search-mobile { display: block; margin: 1rem 0; }
  .nav-search:not(.nav-search-mobile) { display: none !important; }
}

@media (max-width: 600px) {
  .artikel-page .article-image,
  .artikel-page .featured-article .article-image,
  .artikel-page .article-item .article-image {
    width: 100% !important;
    max-width: 100% !important;
    height: 220px !important;
    max-height: 220px !important;
    min-width: 0 !important;
    object-fit: cover !important;
    border-radius: 14px !important;
    margin: 0 auto 1rem auto !important;
    display: block;
  }
}

@media (max-width: 600px) {
  /* Login Page */
  .login-page {
    padding: 1.2rem 0 !important;
    min-height: unset !important;
  }
  .login-layout {
    gap: 1.2rem !important;
  }
  .login-header h1 {
    font-size: 1.1rem !important;
  }
  .login-form .form-input,
  .login-btn,
  .signup-btn {
    font-size: 1rem !important;
    padding: 0.7rem 1rem !important;
  }
  .login-artwork img {
    width: 80px !important;
    max-width: 100%;
  }
  .forgot-password {
    font-size: 1rem !important;
  }

  /* Profile Page */
  .profile-page {
    padding: 1.2rem 0 !important;
  }
  .profile-header {
    flex-direction: column !important;
    padding: 0.7rem !important;
    gap: 0.7rem !important;
  }
  .profile-header h1,
  .profile-name {
    font-size: 1.2rem !important;
  }
  .profile-avatar {
    width: 70px !important;
    height: 70px !important;
  }
  .profile-info-card,
  .profile-about-card {
    padding: 0.7rem !important;
  }
  .activity-tabs .tab {
    font-size: 0.95rem !important;
    padding: 0.3rem 0.7rem !important;
  }

  /* Edit Profile */
  .edit-profile {
    padding: 1.2rem 0 !important;
  }
  .profile-form .form-input,
  .submit-button {
    font-size: 1rem !important;
    padding: 0.7rem 1rem !important;
  }
  .form-section h2 {
    font-size: 1.1rem !important;
  }
}
