:root {
    --primary: #2c3e50;
    --secondary: #e74c3c;
    --text: #333;
    --text-light: #7f8c8d;
    --bg: #ffffff;
    --bg-gray: #f8f9fa;
    --border: #e9ecef;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-card: 0 4px 20px rgba(0,0,0,0.06);
    --radius: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, var(--primary), #34495e);
    --gradient-secondary: linear-gradient(135deg, var(--secondary), #e67e22);
}

/* ========== SPLASH SCREEN ========== // */
@keyframes splash-fade-in {
    0% { opacity: 0; transform: translateY(30px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes splash-cross-draw-v {
    0% { height: 0; opacity: 0; }
    20% { opacity: 1; }
    100% { height: 60px; opacity: 1; }
}

@keyframes splash-cross-draw-h {
    0% { width: 0; opacity: 0; }
    20% { opacity: 1; }
    100% { width: 40px; opacity: 1; }
}

@keyframes splash-cross-glow-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.6); opacity: 0.6; }
}

@keyframes splash-loader-fill {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes splash-particle-float {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) scale(0); opacity: 0; }
}

@keyframes splash-glow-rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes splash-verse-in {
    0% { opacity: 0; transform: translateY(15px); letter-spacing: 2px; }
    100% { opacity: 1; transform: translateY(0); letter-spacing: 0; }
}

@keyframes splash-out {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0; transform: scale(1.1); visibility: hidden; }
}

@keyframes page-reveal {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.splash-screen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(145deg, #0a0e1a 0%, #1a1f35 40%, #0d1225 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.splash-screen.splash-exit {
    animation: splash-out 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.splash-particles {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
}

.splash-particle {
    position: absolute;
    bottom: -10px;
    width: 3px; height: 3px;
    background: rgba(212, 175, 55, 0.7);
    border-radius: 50%;
    animation: splash-particle-float linear infinite;
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.4);
}

.splash-glow {
    position: absolute;
    top: 50%; left: 50%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
    animation: splash-glow-rotate 20s linear infinite;
    pointer-events: none;
}

.splash-content {
    text-align: center;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.splash-cross {
    position: relative;
    width: 50px; height: 70px;
    margin-bottom: 28px;
    animation: splash-fade-in 0.6s ease-out forwards;
}

.splash-cross-v {
    position: absolute;
    left: 50%; top: 0;
    transform: translateX(-50%);
    width: 6px; height: 0;
    background: linear-gradient(180deg, #d4af37, #f0d060);
    border-radius: 3px;
    animation: splash-cross-draw-v 0.8s 0.3s ease-out forwards;
}

.splash-cross-h {
    position: absolute;
    top: 18px; left: 50%;
    transform: translateX(-50%);
    height: 6px; width: 0;
    background: linear-gradient(90deg, #d4af37, #f0d060);
    border-radius: 3px;
    animation: splash-cross-draw-h 0.6s 0.7s ease-out forwards;
}

.splash-cross-glow {
    position: absolute;
    top: 50%; left: 50%;
    width: 80px; height: 80px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.25), transparent 70%);
    border-radius: 50%;
    animation: splash-cross-glow-pulse 2s 1s ease-in-out infinite;
}

.splash-logo {
    width: 80px; height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    opacity: 0;
    border-radius: 50%;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
    animation: splash-fade-in 0.8s 0.8s ease-out forwards;
}

.splash-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 0 16px 0;
    opacity: 0;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    animation: splash-fade-in 0.8s 1.1s ease-out forwards;
}

.splash-verse {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-style: italic;
    color: rgba(212, 175, 55, 0.8);
    max-width: 380px;
    line-height: 1.6;
    margin-bottom: 6px;
    opacity: 0;
    animation: splash-verse-in 1s 1.5s ease-out forwards;
}

.splash-ref {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 40px;
    opacity: 0;
    animation: splash-fade-in 0.6s 2s ease-out forwards;
}

.splash-loader {
    width: 180px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    opacity: 0;
    animation: splash-fade-in 0.4s 2.2s ease-out forwards;
}

.splash-loader-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #d4af37, #f0d060, #d4af37);
    border-radius: 3px;
    animation: splash-loader-fill 1.8s 2.4s ease-in-out forwards;
}

@media (max-width: 768px) {
    .splash-title { font-size: 1.5rem; letter-spacing: 2px; }
    .splash-verse { font-size: 0.85rem; max-width: 280px; padding: 0 20px; }
    .splash-logo { width: 60px; height: 60px; }
    .splash-cross { width: 40px; height: 55px; }
    .splash-cross-h { top: 14px; }
    .splash-glow { width: 300px; height: 300px; }
}



/* ========== PAGE REVEAL ========== */
body.page-loaded main {
    animation: page-reveal 0.6s ease forwards;
}

body.page-loaded .footer {
    animation: page-reveal 0.6s ease 0.1s forwards;
}

/* ========== SCROLL ANIMATIONS ========== */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== BASE ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-gray); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--secondary); }

::selection { background: var(--secondary); color: #fff; }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ========== NAVBAR ========== */
.navbar {
    background: var(--primary);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-lg);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 65px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    transition: opacity var(--transition);
}

.navbar-brand:hover { opacity: 0.9; }

.navbar-brand img {
    height: 40px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background var(--transition);
}

.navbar-toggle:hover { background: rgba(255,255,255,0.1); }

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 4px;
}

.navbar-menu a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: all var(--transition);
    font-size: 0.95rem;
    font-weight: 450;
    position: relative;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: var(--secondary);
    border-radius: 1px;
    transition: transform var(--transition);
}

.navbar-menu a:hover { background: rgba(255,255,255,0.12); color: #fff; }
.navbar-menu a:hover::after { transform: translateX(-50%) scaleX(1); }

/* Dropdown menus */
.navbar-menu li { position: relative; }

.has-dropdown > a .dropdown-arrow {
    font-size: 0.6rem;
    margin-left: 4px;
    transition: transform var(--transition);
}

.has-dropdown:hover > a .dropdown-arrow { transform: rotate(180deg); }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    z-index: 1001;
}

.has-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    color: var(--text) !important;
    font-size: 0.9rem;
    font-weight: 450;
    white-space: nowrap;
    border-radius: 0;
}

.dropdown-menu li a::after { display: none; }

.dropdown-menu li a:hover {
    background: var(--bg-gray) !important;
    color: var(--primary) !important;
}

.dropdown-menu li a i { width: 18px; text-align: center; color: var(--secondary); font-size: 0.85rem; }

/* ========== HERO ========== */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.2) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 18px;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 35px;
    opacity: 0.92;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 10px rgba(0,0,0,0.2);
    line-height: 1.7;
}

/* ========== SECTIONS ========== */
.section { padding: 70px 0; }
.section-gray { background: var(--bg-gray); }

.section-title {
    text-align: center;
    font-size: 2.1rem;
    color: var(--primary);
    margin-bottom: 45px;
    position: relative;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--gradient-secondary);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* ========== CARDS ========== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

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

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

.card-body { padding: 22px; }

.card-body h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 650;
    line-height: 1.4;
    transition: color var(--transition);
}

.card:hover .card-body h3 { color: var(--secondary); }

.card-body p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-date {
    color: var(--secondary);
    font-size: 0.85rem;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.card-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 11px 26px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.93rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.2px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-secondary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

/* ========== PAGE HEADER ========== */
.page-header {
    background: var(--header-bg, var(--primary));
    color: #fff;
    padding: 55px 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.page-header h1 {
    font-size: 2.3rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: relative;
}

/* ========== CONTENT AREA ========== */
.content-area { margin: 0 auto; }

.content-image {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.page-layout.has-image {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 25px;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.page-image-left img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: sticky;
    top: 85px;
}

.content-body { font-size: 1.05rem; line-height: 1.8; overflow-wrap: break-word; word-break: break-word; }
.content-body p { margin-bottom: 15px; }
.content-body img { max-width: 100%; height: auto; }
.content-body iframe { max-width: 100%; }
.content-body table { width: 100%; overflow-x: auto; display: block; }

.event-meta {
    background: var(--bg-gray);
    padding: 22px;
    border-radius: var(--radius);
    margin-bottom: 25px;
    border-left: 4px solid var(--secondary);
}

.event-meta p { margin-bottom: 8px; color: var(--text); }
.event-meta i { color: var(--secondary); width: 20px; }

/* ========== VIDEO / AUDIO ========== */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin: 25px 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.audio-container { margin: 25px 0; }
.audio-container audio { width: 100%; border-radius: var(--radius); }

/* ========== SERMON DETAIL ========== */
.sermon-header-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 12px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.sermon-header-meta i { margin-right: 6px; }

.sermon-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 35px;
    align-items: start;
}

.sermon-main { min-width: 0; }

.sermon-featured-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 28px;
}

.sermon-featured-img img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 420px;
}

.sermon-media-card {
    background: var(--bg-gray);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 28px;
    border: 1px solid var(--border);
}

.sermon-media-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 14px;
}

.sermon-media-label i {
    color: var(--secondary);
    margin-right: 8px;
}

.sermon-media-card audio { width: 100%; border-radius: 8px; }

.sermon-info-card .video-container {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
}

.sermon-content-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
}

.sermon-content-card h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.sermon-content-card h2 i {
    margin-right: 10px;
    color: var(--secondary);
}

.sermon-share {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-light);
}

.share-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: transform var(--transition), box-shadow var(--transition);
}

.share-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.share-facebook { background: #1877F2; }
.share-whatsapp { background: #25D366; }
.share-twitter { background: #1DA1F2; }

/* Sermon sidebar */
.sermon-info-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
}

.sermon-info-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.sermon-info-card h3 i {
    margin-right: 8px;
    color: var(--secondary);
}

.sermon-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sermon-info-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.sermon-info-list li:last-child { border-bottom: none; }

.sermon-info-list li > i {
    width: 36px; height: 36px;
    background: var(--bg-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.sermon-info-list li div strong {
    display: block;
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sermon-info-list li div span {
    font-weight: 600;
    color: var(--text);
    font-size: 0.92rem;
}

.sermon-recent-list { display: flex; flex-direction: column; gap: 12px; }

.sermon-recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 8px;
    border-radius: 8px;
    transition: background var(--transition);
}

.sermon-recent-item:hover { background: var(--bg-gray); }

.sermon-recent-item img {
    width: 56px; height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.sermon-recent-placeholder {
    width: 56px; height: 56px;
    border-radius: 8px;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.sermon-recent-item div strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 600;
    line-height: 1.3;
}

.sermon-recent-item div span {
    font-size: 0.78rem;
    color: var(--text-light);
}

.sermon-sidebar .btn-block {
    margin-top: 8px;
    text-align: center;
    justify-content: center;
}

@media (max-width: 992px) {
    .sermon-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .sermon-header-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
    .sermon-content-card { padding: 20px; }
    .sermon-share { flex-wrap: wrap; }
}

/* ========== COMMENTS (shared sermon & news) ========== */
.comment-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-input {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
}

.comment-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    resize: vertical;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.comment-box {
    margin-top: 25px;
    padding: 25px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
}

.comments-section { margin-top: 40px; }

.comments-title {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.comment-item {
    padding: 15px;
    background: #f9fafb;
    border-radius: 10px;
    margin-bottom: 12px;
    border-left: 3px solid var(--primary, #2563eb);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-author { color: var(--primary, #2563eb); font-weight: bold; }
.comment-date { font-size: 0.8rem; color: #9ca3af; }
.comment-body { margin: 0; color: #374151; line-height: 1.6; }

.comment-empty { color: #9ca3af; text-align: center; padding: 20px; }

.comment-success {
    padding: 12px 18px;
    background: #d4edda;
    color: #155724;
    border-radius: 8px;
    margin-bottom: 20px;
}

.detail-meta {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #6b7280;
    flex-wrap: wrap;
}

/* ========== CONTACT ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }

.contact-info h2 { color: var(--primary); margin-bottom: 20px; font-weight: 700; }
.contact-info h3 { color: var(--primary); margin-top: 25px; margin-bottom: 10px; }
.contact-info p { margin-bottom: 14px; color: var(--text-light); line-height: 1.7; }
.contact-info i { color: var(--secondary); width: 20px; margin-right: 10px; }

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ========== FORMS ========== */
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.93rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition);
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(44, 62, 80, 0.1);
}

.form-control:hover {
    border-color: #d0d5db;
}

/* ========== ALERTS ========== */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #b1dfbb;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f1b0b7;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 25px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 35px;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 18px;
    font-size: 1.1rem;
    font-weight: 650;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary);
    border-radius: 1px;
}

.footer-col p { margin-bottom: 10px; font-size: 0.9rem; line-height: 1.7; }
.footer-col i { margin-right: 8px; color: var(--secondary); }

.social-links { display: flex; gap: 10px; margin-top: 12px; }

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    transition: all var(--transition);
    font-size: 1rem;
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.footer-bottom {
    margin-top: 35px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* ========== BLOG LAYOUT ========== */
.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 35px; align-items: start; }
.blog-main { min-width: 0; }

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.article-meta i { color: var(--secondary); margin-right: 5px; }

.article-featured-img {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.article-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.article-tag {
    background: var(--bg-gray);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ========== SIDEBAR ========== */
.blog-sidebar { position: sticky; top: 85px; }

.sidebar-widget {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 22px;
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.04);
}

.widget-title {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
    font-weight: 650;
}

.widget-title i { margin-right: 6px; }

.widget-list { list-style: none; padding: 0; margin: 0; }
.widget-post { margin-bottom: 12px; }
.widget-post:last-child { margin-bottom: 0; }

.widget-post a {
    display: flex;
    gap: 10px;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.widget-post a:hover { background: var(--bg-gray); }
.widget-post.active a { background: var(--bg-gray); border-left: 3px solid var(--secondary); }

.widget-post img {
    width: 55px; height: 55px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.widget-post-placeholder {
    width: 55px; height: 55px;
    background: var(--bg-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    flex-shrink: 0;
}

.widget-post-title {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.widget-post-date { font-size: 0.78rem; color: var(--text-light); }

.widget-categories { list-style: none; padding: 0; margin: 0; }
.widget-categories li { margin-bottom: 4px; }

.widget-categories a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--text);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.widget-categories a:hover { background: var(--bg-gray); color: var(--primary); }
.widget-categories a.active { background: var(--primary); color: #fff; }

/* ========== RICH CONTENT ========== */
.rich-content h2 { font-size: 1.6rem; color: var(--primary); margin: 30px 0 15px; padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.rich-content h3 { font-size: 1.3rem; color: var(--primary); margin: 25px 0 12px; }
.rich-content h4 { font-size: 1.1rem; color: var(--text); margin: 20px 0 10px; }
.rich-content p { margin-bottom: 15px; }
.rich-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 20px 0; box-shadow: var(--shadow); }
.rich-content figure { margin: 25px 0; text-align: center; }
.rich-content figcaption { font-size: 0.9rem; color: var(--text-light); margin-top: 8px; font-style: italic; }
.rich-content ul, .rich-content ol { margin: 15px 0; padding-left: 25px; }
.rich-content li { margin-bottom: 8px; }
.rich-content blockquote { border-left: 4px solid var(--secondary); padding: 15px 20px; margin: 20px 0; background: var(--bg-gray); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--text-light); }
.rich-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.rich-content th, .rich-content td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.rich-content th { background: var(--bg-gray); font-weight: 600; }
.rich-content a { color: var(--secondary); text-decoration: underline; }
.rich-content hr { border: none; border-top: 2px solid var(--border); margin: 30px 0; }
.rich-content pre { background: #1e1e2e; color: #cdd6f4; padding: 18px; border-radius: var(--radius); overflow-x: auto; font-size: 0.9rem; box-shadow: var(--shadow); }
.rich-content iframe { max-width: 100%; border-radius: var(--radius); }

.text-center { text-align: center; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .navbar-toggle { display: block; }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 65px;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 15px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .navbar-menu.active { display: flex; }
    .navbar-menu a::after { display: none; }

    .has-dropdown > a .dropdown-arrow { margin-left: auto; }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(0,0,0,0.15);
        box-shadow: none;
        border-radius: 6px;
        padding: 4px 0;
        margin: 4px 0;
        display: none;
    }

    .has-dropdown.open > .dropdown-menu { display: block; }

    .dropdown-menu li a {
        color: rgba(255,255,255,0.85) !important;
        padding: 8px 20px;
    }

    .dropdown-menu li a:hover {
        background: rgba(255,255,255,0.1) !important;
        color: #fff !important;
    }

    .dropdown-menu li a i { color: rgba(255,255,255,0.7); }

    .hero-content h1 { font-size: 2rem; letter-spacing: -0.5px; }
    .hero-content p { font-size: 1rem; }
    .hero { padding: 70px 0; background-attachment: scroll; }
    .hero-slider { height: 400px; }
    .hero-slide { background-attachment: scroll; }
    .hero-slider-btn { width: 36px; height: 36px; font-size: 0.9rem; }

    .card-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .page-layout.has-image { grid-template-columns: 1fr; }
    .page-image-left img { position: static; }
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; }
    .article-meta { flex-wrap: wrap; gap: 10px; }
    .comment-form-grid { grid-template-columns: 1fr; }
    .comment-box { padding: 18px; }
    .comment-header { flex-direction: column; align-items: flex-start; gap: 4px; }
    .detail-meta { flex-direction: column; gap: 6px; }
    .section { padding: 45px 0; }
    .section-title { font-size: 1.7rem; }
    .page-header { padding: 40px 0; }
    .page-header h1 { font-size: 1.8rem; }
}

/* ========== HERO SLIDER ========== */
.hero-slider {
    position: relative;
    height: 550px;
    overflow: hidden;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide .hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 18px;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    line-height: 1.2;
    animation: heroFadeUp 0.8s ease forwards;
}

.hero-slide .hero-content p {
    font-size: 1.25rem;
    margin-bottom: 35px;
    opacity: 0.92;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 10px rgba(0,0,0,0.2);
    line-height: 1.7;
    animation: heroFadeUp 0.8s 0.2s ease forwards;
}

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

.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider-btn:hover {
    background: rgba(0,0,0,0.6);
    border-color: #fff;
}

.hero-slider-prev { left: 20px; }
.hero-slider-next { right: 20px; }

.hero-slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.hero-dot.active,
.hero-dot:hover {
    background: #fff;
    border-color: #fff;
}
