/* ==============================================================
   Abu Nida' Blog — Islamic Elegant Design System
   Ustadz Abu Nida' Chomsaha Sofwan, Lc.
   ============================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lateef:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Cinzel:wght@600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Islamic Green-Gold Dark Palette (Default) */
    --islamic-green: #1a5c38;
    --islamic-green-light: #2e7d52;
    --islamic-green-pale: #4caf78;
    --islamic-gold: #c8a84b;
    --islamic-gold-light: #e8c96a;
    --islamic-gold-dark: #9a7a2e;

    --bg-main: #0d1f17;
    --bg-surface: #122a1e;
    --bg-card: #162e22;
    --bg-card-hover: #1c3a2a;
    --bg-input: #0f2419;

    --border-color: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(200, 168, 75, 0.35);

    --text-primary: #f0f4f1;
    --text-secondary: #9db8a4;
    --text-muted: #617a6b;

    --gold-primary: #c8a84b;   /* alias untuk kompatibilitas */
    --gold-light: #e8c96a;
    --gold-dark: #9a7a2e;
    --gold-gradient: linear-gradient(135deg, #e8c96a 0%, #c8a84b 50%, #9a7a2e 100%);
    --gold-glow: 0 0 25px rgba(200, 168, 75, 0.15);

    --font-heading: 'Lateef', 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-brand: 'Cinzel', serif;
    --font-mono: 'JetBrains Mono', monospace;

    --shadow-luxury: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);

    /* Islamic SVG Pattern (Geometric) */
    --pattern-islamic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cg fill='none' stroke='%232e7d52' stroke-width='0.6' opacity='0.35'%3E%3Cpolygon points='30,2 55,17 55,43 30,58 5,43 5,17'/%3E%3Cpolygon points='30,10 48,21 48,39 30,50 12,39 12,21'/%3E%3Cline x1='30' y1='2' x2='30' y2='10'/%3E%3Cline x1='55' y1='17' x2='48' y2='21'/%3E%3Cline x1='55' y1='43' x2='48' y2='39'/%3E%3Cline x1='30' y1='58' x2='30' y2='50'/%3E%3Cline x1='5' y1='43' x2='12' y2='39'/%3E%3Cline x1='5' y1='17' x2='12' y2='21'/%3E%3C/g%3E%3C/svg%3E");
}

/* Islamic Light Mode */
[data-theme="light"] {
    --bg-main: #fafaf7;
    --bg-surface: #f4f1e8;
    --bg-card: #ffffff;
    --bg-card-hover: #eef5ef;
    --bg-input: #f0ede4;

    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(26, 92, 56, 0.35);

    --text-primary: #0f2a1a;
    --text-secondary: #3a6650;
    --text-muted: #7a9e8a;

    --gold-primary: #9a7a2e;
    --gold-light: #c8a84b;
    --gold-dark: #6e5620;
    --gold-gradient: linear-gradient(135deg, #c8a84b 0%, #9a7a2e 50%, #6e5620 100%);
    --gold-glow: 0 0 20px rgba(26, 92, 56, 0.12);

    --shadow-luxury: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Reading Progress Bar */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--gold-gradient);
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(200, 168, 75, 0.5);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 860px;
}

/* Navbar */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(13, 31, 23, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

[data-theme="light"] .site-header {
    background: rgba(250, 250, 247, 0.92);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-monogram {
    width: 44px;
    height: 44px;
    background: var(--bg-surface);
    border: 1px solid var(--border-hover);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gold-primary);
    box-shadow: var(--gold-glow);
}

.brand-title {
    font-family: var(--font-brand);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-primary);
}

.brand-title span {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.25rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gold-gradient);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Icon Buttons */
.btn-icon {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    color: var(--gold-primary);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--gold-glow);
}

.mobile-toggle {
    display: none;
}

/* Hero Section — with Islamic geometric pattern */
.hero-section {
    padding: 3.5rem 0 2rem;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--pattern-islamic);
    background-size: 60px 60px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.hero-section > .container {
    position: relative;
    z-index: 1;
}

.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    box-shadow: var(--shadow-luxury);
    transition: var(--transition);
    position: relative;
}

.hero-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.6), var(--gold-glow);
}

.hero-image-wrap {
    position: relative;
    overflow: hidden;
    min-height: 380px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-card:hover .hero-image {
    transform: scale(1.04);
}

.hero-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge-luxury {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(200, 168, 75, 0.1);
    border: 1px solid rgba(200, 168, 75, 0.3);
    color: var(--gold-primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    align-self: flex-start;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.hero-title:hover {
    color: var(--islamic-green-pale);
}

.hero-excerpt {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Category Filter Bar */
.category-bar {
    padding: 1.5rem 0 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-bar::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    white-space: nowrap;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.cat-pill:hover,
.cat-pill.active {
    background: var(--bg-card-hover);
    color: var(--islamic-green-pale);
    border-color: var(--islamic-green-light);
    box-shadow: 0 0 15px rgba(26, 92, 56, 0.2);
}

/* Post Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.post-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-luxury), var(--gold-glow);
}

.post-card-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-surface);
}

.post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-cat-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(13, 31, 23, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(76, 175, 120, 0.3);
    color: var(--islamic-green-pale);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.post-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-title {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.85rem;
    color: var(--text-primary);
}

.post-card-title a:hover {
    color: var(--islamic-green-pale);
}

.post-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Single Post Page */
.article-header {
    padding: 3.5rem 0 2rem;
    text-align: center;
}

.article-category {
    margin-bottom: 1.25rem;
}

.article-headline {
    font-family: var(--font-heading);
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.75rem;
    color: var(--text-primary);
}

.article-meta-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.article-featured-image {
    margin: 2.5rem 0 3.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-luxury);
}

.article-featured-image img {
    width: 100%;
    max-height: 580px;
    object-fit: cover;
}

/* Rich Content Typography */
.article-content {
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--text-primary);
}

.article-content > p:first-of-type::first-letter {
    font-family: var(--font-heading);
    font-size: 4rem;
    float: left;
    line-height: 0.8;
    margin: 0.2rem 0.75rem 0 0;
    color: var(--islamic-green-pale);
    font-weight: 700;
}

.article-content p {
    margin-bottom: 1.85rem;
}

/* H2 — Islamic decorative line green-gold */
.article-content h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 3rem 0 1.25rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.75rem;
}

.article-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--islamic-green-light) 0%, var(--islamic-gold) 60%, transparent 100%);
}

/* H2 ornament star on left */
.article-content h2::before {
    content: '✦';
    position: absolute;
    left: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--islamic-gold);
    font-size: 0.85rem;
    opacity: 0.7;
}

.article-content h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0 2rem 1.75rem;
}

.article-content li {
    margin-bottom: 0.65rem;
}

/* Blockquote — Arabesque / Islamic decoration */
.article-content blockquote {
    margin: 2.5rem 0;
    padding: 1.75rem 2rem 1.75rem 2.5rem;
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-card-hover) 100%);
    border-left: 4px solid var(--islamic-green-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-style: italic;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

/* Arabesque ornament before blockquote */
.article-content blockquote::before {
    content: '❝';
    position: absolute;
    top: -0.5rem;
    left: 0.75rem;
    font-size: 3.5rem;
    color: var(--islamic-green-light);
    opacity: 0.25;
    font-style: normal;
    line-height: 1;
}

/* Bismillah-style top border ornament */
.article-content blockquote::after {
    content: '﷽';
    position: absolute;
    bottom: 0.5rem;
    right: 1rem;
    font-size: 1.1rem;
    color: var(--islamic-gold);
    opacity: 0.4;
    font-style: normal;
    font-family: 'Lateef', serif;
}

.article-content img {
    margin: 2.5rem auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.article-content pre {
    background: #071510;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    margin: 2rem 0;
    color: #c8f4d8;
}

.article-content code {
    font-family: var(--font-mono);
    background: rgba(76, 175, 120, 0.12);
    color: var(--islamic-green-pale);
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.article-content a {
    color: var(--islamic-green-pale);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.article-content a:hover {
    color: var(--islamic-gold-light);
}

/* Social Share Bar */
.share-section {
    margin: 3.5rem 0 2.5rem;
    padding: 1.75rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.share-title {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-share:hover {
    color: var(--islamic-green-pale);
    border-color: var(--islamic-green-light);
    transform: translateY(-2px);
}

/* Author Box */
.author-box {
    margin: 3rem 0;
    padding: 2.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gold-gradient);
    padding: 2px;
    flex-shrink: 0;
}

.author-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--islamic-green-pale);
}

.author-info h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.author-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Search Modal */
.search-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
}

.search-modal.active {
    display: flex;
}

.search-box {
    width: 100%;
    max-width: 640px;
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-luxury), var(--gold-glow);
    padding: 1.5rem;
}

/* Bismillah text in search modal */
.bismillah-text {
    text-align: center;
    font-family: 'Lateef', serif;
    font-size: 1.3rem;
    color: var(--islamic-gold);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    opacity: 0.85;
    animation: fadeInKalighrafi 0.6s ease forwards;
}

.search-form {
    display: flex;
    gap: 0.75rem;
}

.search-input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.25rem;
    color: var(--text-primary);
    font-size: 1.05rem;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--islamic-green-light);
}

.btn-primary {
    background: var(--gold-gradient);
    color: #0a1f12;
    font-weight: 600;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.btn-primary:hover {
    box-shadow: var(--gold-glow);
    transform: translateY(-1px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3.5rem 0;
}

.page-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.page-link:hover,
.page-link.active {
    background: var(--gold-gradient);
    color: #0a1f12;
    border-color: transparent;
    box-shadow: var(--gold-glow);
}

/* Footer */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 4.5rem 0 2.5rem;
    margin-top: auto;
}

/* Footer basmallah */
.footer-basmallah {
    text-align: center;
    font-family: 'Lateef', serif;
    font-size: 1.5rem;
    color: var(--islamic-gold);
    letter-spacing: 0.08em;
    margin-bottom: 2.5rem;
    opacity: 0.8;
    animation: fadeInKalighrafi 0.8s ease forwards;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-about p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 1rem;
    max-width: 380px;
}

.footer-title {
    font-family: var(--font-brand);
    font-size: 1rem;
    letter-spacing: 1.5px;
    color: var(--islamic-green-pale);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--islamic-green-pale);
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Toast Notification */
.toast-notice {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--islamic-green-light);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-luxury), var(--gold-glow);
    z-index: 9999;
    font-size: 0.9rem;
    display: none;
    animation: fadeIn 0.3s ease;
}

/* =============================================
   Profil Page Styles
   ============================================= */

/* Profil Hero */
#profil-hero {
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-main) 100%);
    overflow: hidden;
}

#profil-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--pattern-islamic);
    background-size: 60px 60px;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

#profil-hero > * {
    position: relative;
    z-index: 1;
}

#profil-hero .profil-name {
    font-family: 'Lateef', serif;
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

#profil-hero .profil-subtitle {
    font-size: 1.1rem;
    color: var(--islamic-green-pale);
    font-weight: 500;
    letter-spacing: 0.5px;
}

#profil-hero .profil-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--islamic-gold);
    margin: 1.5rem auto;
    object-fit: cover;
    box-shadow: 0 0 30px rgba(200, 168, 75, 0.25);
    animation: fadeInKalighrafi 0.8s ease forwards;
}

/* Bio Card */
.bio-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.bio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--islamic-green-light), var(--islamic-gold));
    border-radius: 4px 0 0 4px;
}

.bio-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-luxury), var(--gold-glow);
}

.bio-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--islamic-green-pale);
    margin-bottom: 1rem;
    padding-left: 1rem;
}

.bio-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: 1rem;
}

/* Timeline Item */
.timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 2.5rem;
    bottom: -1rem;
    width: 2px;
    background: linear-gradient(180deg, var(--islamic-green-light) 0%, transparent 100%);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 2px solid var(--islamic-green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.25rem;
    color: var(--islamic-gold);
    font-size: 0.75rem;
    box-shadow: 0 0 10px rgba(26, 92, 56, 0.3);
}

.timeline-body {
    flex: 1;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.timeline-body:last-child {
    border-bottom: none;
}

.timeline-year {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--islamic-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.35rem;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =============================================
   Kaligrafi / Islamic Ornament Animations
   ============================================= */

@keyframes fadeInKalighrafi {
    0%   { opacity: 0; transform: translateY(12px) scale(0.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Ornamen kaligrafi standalone */
.kaligrafi-ornament {
    display: block;
    text-align: center;
    font-family: 'Lateef', serif;
    font-size: 2rem;
    color: var(--islamic-gold);
    opacity: 0;
    animation: fadeInKalighrafi 0.9s ease 0.3s forwards;
    letter-spacing: 0.1em;
    margin: 1.5rem 0;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-card {
        grid-template-columns: 1fr;
    }
    .hero-image-wrap {
        min-height: 260px;
    }
    .hero-content {
        padding: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .mobile-toggle {
        display: inline-flex;
    }
    .article-headline {
        font-size: 2.25rem;
    }
    .posts-grid {
        grid-template-columns: 1fr;
    }
    .share-section {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .timeline-item {
        flex-direction: column;
        gap: 0.75rem;
    }
    .timeline-item::before {
        display: none;
    }
}
