/* CaseNest - Main Stylesheet */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2d2d2d;
    background: #fafafa;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

/* ── HEADER ── */
header {
    background: #fff;
    border-bottom: 2px solid #f0f0f0;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: -0.5px;
}

.logo span {
    color: #e94560;
}

nav a {
    margin-left: 28px;
    font-size: 0.92rem;
    font-weight: 500;
    color: #555;
    transition: color 0.2s;
}

nav a:hover {
    color: #e94560;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 24px;
}

.btn-masuk {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e94560;
    border: 1.5px solid #e94560;
    padding: 7px 18px;
    border-radius: 20px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-masuk:hover {
    background: #e94560;
    color: #fff !important;
}

.btn-daftar {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff !important;
    background: #e94560;
    padding: 7px 18px;
    border-radius: 20px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-daftar:hover {
    background: #c73652 !important;
    color: #fff !important;
}

/* ── MEMBER BANNER ── */
.member-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    padding: 56px 40px;
}

.member-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.member-banner-text h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.member-banner-text h2 span {
    color: #e94560;
}

.member-banner-text p {
    font-size: 0.97rem;
    color: #b0b8d1;
    margin-bottom: 28px;
    line-height: 1.7;
}

.member-banner-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.member-banner-btns .btn-primary {
    display: inline-block;
    background: #e94560;
    color: #fff;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.92rem;
    transition: background 0.2s, transform 0.2s;
}

.member-banner-btns .btn-primary:hover {
    background: #c73652;
    transform: translateY(-2px);
}

.member-banner-btns .btn-secondary {
    display: inline-block;
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.4);
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s;
}

.member-banner-btns .btn-secondary:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.08);
}

.member-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.benefit-card {
    background: rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 18px 16px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: background 0.2s;
}

.benefit-card:hover {
    background: rgba(255,255,255,0.11);
}

.benefit-icon {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.benefit-card h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: #e8eaf6;
    margin-bottom: 4px;
}

.benefit-card p {
    font-size: 0.78rem;
    color: #7986cb;
    line-height: 1.5;
}

/* ── AUTH PAGES ── */
.auth-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background: #f5f5f5;
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 48px 44px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.10);
}

.auth-card .auth-logo {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.auth-card .auth-logo span {
    color: #e94560;
}

.auth-card .auth-subtitle {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 7px;
}

.auth-field input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.92rem;
    color: #333;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.auth-field input:focus {
    border-color: #e94560;
    box-shadow: 0 0 0 3px rgba(233,69,96,0.08);
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    margin-top: 8px;
}

.auth-btn:hover {
    background: #c73652;
}

.auth-divider {
    text-align: center;
    color: #aaa;
    font-size: 0.85rem;
    margin: 20px 0;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: #e0e0e0;
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-switch {
    text-align: center;
    font-size: 0.88rem;
    color: #777;
    margin-top: 20px;
}

.auth-switch a {
    color: #e94560;
    font-weight: 700;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.coupon-box {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    margin-top: 24px;
}

.coupon-box p {
    font-size: 0.85rem;
    color: #b0b8d1;
    margin-bottom: 10px;
}

.coupon-code {
    display: inline-block;
    background: #e94560;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 3px;
    padding: 10px 28px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.coupon-code:hover {
    background: #c73652;
}

.coupon-box small {
    display: block;
    color: #7986cb;
    font-size: 0.78rem;
}

/* ── PROMO PAGE ── */
.promo-hero {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    color: #fff;
    padding: 60px 40px;
    text-align: center;
}

.promo-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.promo-hero h1 span { color: #e94560; }

.promo-hero p {
    color: #b0b8d1;
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.promo-grid-section {
    max-width: 1100px;
    margin: 56px auto;
    padding: 0 40px;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.promo-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.13);
}

.promo-card-header {
    padding: 28px 24px 20px;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    text-align: center;
}

.promo-badge {
    display: inline-block;
    background: #e94560;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.promo-card-header h3 {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 4px;
}

.promo-card-header p {
    font-size: 0.82rem;
    color: #b0b8d1;
}

.promo-card-body {
    padding: 22px 24px;
}

.promo-card-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.promo-card-body ul li {
    font-size: 0.88rem;
    color: #555;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.promo-card-body ul li::before {
    content: '✓';
    color: #e94560;
    font-weight: 700;
    font-size: 0.85rem;
}

.promo-card-body .promo-code-display {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 10px 14px;
    text-align: center;
    font-size: 0.82rem;
    color: #777;
    margin-bottom: 14px;
}

.promo-card-body .promo-code-display strong {
    display: block;
    font-size: 1.1rem;
    color: #1a1a2e;
    letter-spacing: 2px;
    margin-top: 4px;
}

.promo-claim-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #e94560;
    color: #fff;
    padding: 11px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.2s;
    box-sizing: border-box;
}

.promo-claim-btn:hover {
    background: #c73652;
    color: #fff;
}

/* ── MEMBER DASHBOARD ── */
.member-dash {
    max-width: 900px;
    margin: 56px auto;
    padding: 0 40px;
}

.dash-welcome {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    border-radius: 16px;
    padding: 32px;
    color: #fff;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dash-welcome h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.dash-welcome p {
    font-size: 0.88rem;
    color: #b0b8d1;
}

.dash-badge {
    background: #e94560;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.dash-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.dash-card h4 {
    font-size: 0.82rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.dash-card .dash-value {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a2e;
}

.dash-card .dash-value span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #888;
    margin-left: 4px;
}

.dash-coupon-section {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    margin-bottom: 28px;
}

.dash-coupon-section h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 20px;
}

.coupon-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 12px;
    border-left: 4px solid #e94560;
}

.coupon-item-info h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 3px;
    letter-spacing: 1px;
}

.coupon-item-info p {
    font-size: 0.78rem;
    color: #888;
}

.coupon-item-badge {
    background: #e94560;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.dash-promo-list {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.dash-promo-list h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 20px;
}

.promo-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.promo-list-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.promo-list-item h5 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 3px;
}

.promo-list-item p {
    font-size: 0.78rem;
    color: #888;
}

@media (max-width: 768px) {
    .nav-auth { margin-left: 12px; gap: 6px; }
    .btn-masuk, .btn-daftar { padding: 6px 12px; font-size: 0.8rem; }
    .member-banner-inner { grid-template-columns: 1fr; }
    .member-benefits { grid-template-columns: 1fr 1fr; }
    .promo-grid { grid-template-columns: 1fr; }
    .dash-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 32px 24px; }
    .member-dash { padding: 0 20px; }
    .promo-grid-section { padding: 0 20px; }
    .dash-welcome { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* ── HERO ── */
.hero {
    position: relative;
    color: #fff;
    text-align: center;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 46, 0.82) 0%,
        rgba(15, 52, 96, 0.70) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 40px;
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero h1 span {
    color: #e94560;
}

.hero p {
    font-size: 1.1rem;
    color: #b0b8d1;
    max-width: 560px;
    margin: 0 auto 32px;
}

.hero-btn {
    display: inline-block;
    background: #e94560;
    color: #fff;
    padding: 14px 36px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.2s;
}

.hero-btn:hover {
    background: #c73652;
    transform: translateY(-2px);
}

/* ── SECTION TITLES ── */
.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.section-title p {
    color: #777;
    font-size: 1rem;
}

/* ── FEATURED GRID ── */
.featured {
    padding: 64px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.article-card:hover .card-img img {
    transform: scale(1.05);
}

.card-body {
    padding: 20px;
}

.card-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e94560;
    margin-bottom: 8px;
}

.card-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-body p {
    font-size: 0.88rem;
    color: #777;
    margin-bottom: 16px;
}

.read-more {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e94560;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.read-more:hover {
    text-decoration: underline;
}

/* ── TRENDING STRIP ── */
.trending {
    background: #1a1a2e;
    padding: 48px 40px;
    color: #fff;
}

.trending-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.trending h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 28px;
    color: #fff;
}

.trending h2 span {
    color: #e94560;
}

.trending-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.trending-item {
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: background 0.2s;
}

.trending-item:hover {
    background: rgba(255,255,255,0.1);
}

.trending-num {
    font-size: 1.8rem;
    font-weight: 900;
    color: #e94560;
    min-width: 36px;
}

.trending-item h4 {
    font-size: 0.92rem;
    font-weight: 600;
    color: #e8eaf6;
    margin-bottom: 4px;
}

.trending-item p {
    font-size: 0.78rem;
    color: #7986cb;
}

/* ── NEWSLETTER ── */
.newsletter {
    padding: 64px 40px;
    text-align: center;
    background: #f5f5f5;
}

.newsletter h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.newsletter p {
    color: #777;
    margin-bottom: 28px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.newsletter-form input {
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 0.95rem;
    width: 300px;
    outline: none;
    transition: border 0.2s;
}

.newsletter-form input:focus {
    border-color: #e94560;
}

.newsletter-form button {
    padding: 14px 32px;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}

.newsletter-form button:hover {
    background: #c73652;
}

/* ── FOOTER ── */
footer {
    background: #111;
    color: #aaa;
    padding: 40px;
    text-align: center;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-links {
    margin-bottom: 16px;
}

.footer-links a {
    color: #aaa;
    margin: 0 12px;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #e94560;
}

.footer-copy {
    font-size: 0.82rem;
    color: #555;
}

/* ── ARTICLE PAGE ── */
.article-hero {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    color: #fff;
    padding: 60px 40px;
    text-align: center;
}

.article-hero .tag {
    display: inline-block;
    background: #e94560;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.article-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    max-width: 700px;
    margin: 0 auto 16px;
    line-height: 1.3;
}

.article-meta {
    font-size: 0.85rem;
    color: #b0b8d1;
}

.article-body {
    max-width: 760px;
    margin: 56px auto;
    padding: 0 40px;
}

.article-body h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 36px 0 14px;
}

.article-body p {
    font-size: 1rem;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.8;
}

.article-body ul {
    margin: 0 0 20px 24px;
}

.article-body ul li {
    font-size: 1rem;
    color: #444;
    margin-bottom: 10px;
    line-height: 1.7;
}

.article-body .highlight-box {
    background: #f0f4ff;
    border-left: 4px solid #e94560;
    padding: 20px 24px;
    border-radius: 0 8px 8px 0;
    margin: 28px 0;
}

.article-body .highlight-box p {
    margin: 0;
    color: #333;
    font-style: italic;
}

/* ── ABOUT PAGE ── */
.about-section {
    max-width: 820px;
    margin: 64px auto;
    padding: 0 40px;
}

.about-section h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.about-section p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.team-card {
    text-align: center;
    background: #fff;
    border-radius: 12px;
    padding: 28px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.team-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a2e, #e94560);
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.team-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.team-card p {
    font-size: 0.82rem;
    color: #888;
    margin: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.9rem; }
    .article-grid { grid-template-columns: 1fr; }
    .trending-list { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    header { padding: 0 20px; }
    .featured, .article-body, .about-section { padding: 0 20px; }
    .featured { padding: 40px 20px; }
}
