/* DJCMS Main Stylesheet */
:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #6c757d;
    --success: #20c997;
    --info: #0dcaf0;
    --warning: #ffc107;
    --danger: #e74c3c;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ============= DOWNLOAD PAGE STYLES ============= */
.download-page {
    padding-top: 0;
}

.download-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 60px 0;
    text-align: center;
}

.download-hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.download-icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(67, 97, 238, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    font-size: 48px;
    color: #4361ee;
}

.download-hero h1 {
    font-size: 42px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.download-hero p {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 32px;
    line-height: 1.8;
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #4361ee;
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(67, 97, 238, 0.4);
}

.btn-primary:hover {
    background: #3a56d4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.5);
}

.btn-outline {
    background: #fff;
    color: #4361ee;
    border: 2px solid #e2e8f0;
}

.btn-outline:hover {
    border-color: #4361ee;
    transform: translateY(-2px);
}

.download-meta {
    font-size: 14px;
    color: #94a3b8;
}

.download-section {
    padding: 60px 0;
    background: #fff;
}

.download-section.bg-gray {
    background: #f8fafc;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.section-header p {
    color: #64748b;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.feature-item {
    background: #f8fafc;
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(67, 97, 238, 0.05);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(67, 97, 238, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 20px;
    color: #4361ee;
}

.feature-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

.code-block {
    background: #1e293b;
    border-radius: 16px;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #334155;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red {
    background: #ef4444;
}

.code-dot.yellow {
    background: #eab308;
}

.code-dot.green {
    background: #22c55e;
}

.code-label {
    font-size: 12px;
    color: #94a3b8;
    margin-left: 12px;
}

.code-content {
    padding: 24px;
    font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
    font-size: 14px;
}

.code-content p {
    margin: 8px 0;
    color: #cbd5e1;
}

.code-prompt {
    color: #4ade80;
    margin-right: 12px;
}

.text-link {
    color: #4361ee;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.text-link:hover {
    gap: 12px;
}

.docs-grid {
    display: flex;
    gap: 24px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.docs-grid .doc-card {
    flex: 1;
    min-width: 280px;
}

.doc-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.doc-card:hover {
    border-color: rgba(67, 97, 238, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.doc-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.doc-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.doc-icon.green {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.doc-icon.purple {
    background: rgba(147, 51, 234, 0.1);
    color: #9333ea;
}

.doc-info {
    flex: 1;
}

.doc-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.doc-subtitle {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.doc-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 12px;
}

.doc-link {
    font-size: 14px;
    font-weight: 500;
    color: #4361ee;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.doc-card:hover .doc-link {
    gap: 8px;
}

.requirements-grid {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.requirements-grid .requirement-item {
    flex: 1;
    min-width: 160px;
}

.requirement-item {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.req-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 20px;
}

.req-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.req-icon.green {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.req-icon.orange {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.req-icon.purple {
    background: rgba(147, 51, 234, 0.1);
    color: #9333ea;
}

.requirement-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.requirement-item p {
    font-size: 13px;
    color: #64748b;
}

.mt-6 {
    margin-top: 24px;
}

/* ============= PROMOTE PAGE STYLES ============= */
.promote-page {
    padding-top: 0;
}

.promote-hero {
    position: relative;
    padding: 100px 0 80px;
    text-align: center;
    overflow: hidden;
    color: #fff;
}

.promote-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    z-index: 0;
}

.promote-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(67, 97, 238, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
}

.promote-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.promote-badge {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 50px;
    background: rgba(67, 97, 238, 0.2);
    border: 1px solid rgba(67, 97, 238, 0.4);
    font-size: 14px;
    font-weight: 500;
    color: #a5b4fc;
    margin-bottom: 24px;
}

.promote-hero h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.promote-hero p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    line-height: 1.8;
}

.promote-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.promote-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

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

.promote-stat strong {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
}

.promote-stat span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.promote-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

.promote-section {
    padding: 80px 0;
    background: #fff;
}

.promote-section.bg-dark {
    background: #1a1a2e;
}

.promote-section.bg-gray {
    background: #f8fafc;
}

.section-tag {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 50px;
    background: rgba(67, 97, 238, 0.1);
    color: #4361ee;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-tag.light {
    background: rgba(255, 255, 255, 0.1);
    color: #a5b4fc;
}

.text-white {
    color: #fff !important;
}

.text-light-sub {
    color: rgba(255, 255, 255, 0.6);
}

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

.advantage-card {
    padding: 32px;
    border-radius: 16px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.advantage-card:hover {
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.advantage-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.advantage-icon.icon-blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.advantage-icon.icon-green { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.advantage-icon.icon-purple { background: rgba(147, 51, 234, 0.1); color: #9333ea; }
.advantage-icon.icon-orange { background: rgba(249, 115, 22, 0.1); color: #f97316; }
.advantage-icon.icon-red { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.advantage-icon.icon-teal { background: rgba(20, 184, 166, 0.1); color: #14b8a6; }

.advantage-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.advantage-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
}

.features-showcase {
    max-width: 900px;
    margin: 48px auto 0;
}

.feature-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.feature-showcase-item {
    flex: 1;
    display: flex;
    gap: 20px;
    padding: 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.feature-showcase-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-showcase-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(67, 97, 238, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #a5b4fc;
    flex-shrink: 0;
}

.feature-showcase-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.feature-showcase-info p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

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

.security-card {
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.security-card:hover {
    border-color: rgba(67, 97, 238, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

.security-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ef4444;
    margin-bottom: 16px;
}

.security-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.security-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
}

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 48px;
}

.client-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-size: 15px;
    font-weight: 500;
    color: #334155;
    transition: all 0.3s ease;
}

.client-item i {
    font-size: 20px;
    color: #4361ee;
}

.client-item:hover {
    border-color: #4361ee;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.1);
    transform: translateY(-2px);
}

.client-testimonials {
    display: flex;
    gap: 24px;
    margin-top: 48px;
}

.testimonial-card {
    flex: 1;
    padding: 28px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

.testimonial-quote {
    color: #4361ee;
    font-size: 24px;
    margin-bottom: 16px;
}

.testimonial-card > p {
    font-size: 15px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author strong {
    display: block;
    font-size: 15px;
    color: #1a1a2e;
}

.testimonial-author span {
    font-size: 13px;
    color: #94a3b8;
}

.team-grid {
    display: flex;
    gap: 24px;
    margin-top: 48px;
    justify-content: center;
}

.team-card {
    flex: 1;
    max-width: 260px;
    padding: 32px 24px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
}

.team-card:hover {
    border-color: rgba(67, 97, 238, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

.team-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4361ee, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: #fff;
}

.team-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.team-role {
    font-size: 13px;
    color: #4361ee;
    font-weight: 500;
    margin-bottom: 12px;
}

.team-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.7;
}

.promote-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    text-align: center;
    color: #fff;
}

.promote-cta h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.promote-cta p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

.promote-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .security-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-row { flex-direction: column; }
    .client-testimonials { flex-direction: column; }
    .team-grid { flex-wrap: wrap; }
    .promote-hero h1 { font-size: 36px; }
}

@media (max-width: 576px) {
    .advantages-grid { grid-template-columns: 1fr; }
    .security-grid { grid-template-columns: 1fr; }
    .promote-hero-stats { gap: 20px; }
    .promote-stat strong { font-size: 24px; }
    .promote-hero h1 { font-size: 28px; }
    .team-grid { flex-direction: column; align-items: center; }
}

body {
    font-family: var(--font-family);
    padding-top: 72px;
    background: var(--light);
    color: #333;
    line-height: 1.7;
}

/* Navbar */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(26, 26, 46, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 0.8rem 0;
}
.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}
.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s;
    border-radius: 8px;
}
.nav-link:hover {
    background: rgba(255,255,255,0.1);
}

/* Hero Section */
.bg-gradient-primary {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* ============= FEATURED SHOWCASE ============= */
.featured-showcase {
    padding: 24px 0 0;
}

.featured-carousel {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 420px;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.carousel-item.active {
    display: block;
}

.featured-carousel .carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.featured-carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.featured-carousel .carousel-indicators button.active {
    width: 24px;
    border-radius: 5px;
    background: #fff;
}

.featured-carousel .carousel-prev,
.featured-carousel .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

.carousel-prev {
    left: 16px;
}

.carousel-next {
    right: 16px;
}

.featured-main-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 420px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.featured-main-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.featured-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.featured-main-card:hover .featured-bg {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    display: flex;
    align-items: flex-end;
    padding: 32px;
}

.featured-content {
    width: 100%;
}

.featured-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.featured-excerpt {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.featured-meta {
    color: rgba(255,255,255,0.6);
    font-size: 0.82rem;
}

.featured-side-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    height: 100%;
}

.featured-side-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.side-card-img {
    height: 100%;
    min-height: 100px;
    background-size: cover;
    background-position: center;
}

.side-card-body {
    padding: 14px 16px;
}

.side-card-title {
    color: #222;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.side-card-meta {
    color: #999;
    font-size: 0.75rem;
}

/* ============= STATS BAR ============= */
.stats-bar {
    background: #fff;
    padding: 28px 0;
    margin-top: 32px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.stat-item {
    padding: 8px;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.82rem;
    color: #999;
    margin-top: 2px;
}

/* ============= SECTION HEADERS ============= */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
}

.section-header-center {
    justify-content: center;
    text-align: center;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.title-line {
    display: inline-block;
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 2px;
}

.section-header-center .title-line {
    margin: 0 auto;
    display: none;
}

.section-subtitle {
    color: #999;
    font-size: 0.9rem;
    margin: 4px 0 0;
}

/* ============= ARTICLE CARDS ============= */
.article-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.article-card-img {
    position: relative;
    overflow: hidden;
    height: 180px;
}

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

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

.article-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f2ff 0%, #e8ecff 100%);
    color: var(--primary);
    font-size: 2rem;
}

.article-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,0.95);
    color: var(--primary) !important;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
}

.article-card-category:hover {
    background: var(--primary);
    color: #fff !important;
}

.article-card-body {
    padding: 18px 20px 12px;
    flex: 1;
}

.featured-badge {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.article-card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.article-card-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}

.article-card-title a:hover {
    color: var(--primary);
}

.article-card-excerpt {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.article-card-footer {
    padding: 12px 20px;
    border-top: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #666;
}

.author-avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

.article-card-stats {
    display: flex;
    gap: 12px;
    font-size: 0.78rem;
    color: #aaa;
}

/* ============= CATEGORY CARDS ============= */
.categories-section {
    background: #f8f9fc;
}

.category-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    background: var(--primary);
}

.category-card:hover .category-icon i,
.category-card:hover .category-name,
.category-card:hover .category-count {
    color: #fff;
}

.category-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 12px;
    transition: color 0.3s;
}

.category-name {
    color: #333;
    font-weight: 600;
    margin-bottom: 4px;
    transition: color 0.3s;
}

.category-count {
    font-size: 0.82rem;
    color: #999;
    transition: color 0.3s;
}

/* ============= TAG CLOUD ============= */
.tag-cloud-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f0f2ff;
    color: var(--primary) !important;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: var(--primary);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.3);
}

.tag-item i {
    font-size: 0.8em;
}

/* ============= CTA SECTION ============= */
.cta-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.cta-content {
    color: #fff;
    padding: 20px 0;
}

.cta-content .btn-light {
    color: var(--primary);
    font-weight: 600;
}

.cta-content .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* ============= RESPONSIVE ============= */
@media (max-width: 992px) {
    .featured-main-card {
        min-height: 300px;
    }
    .featured-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .featured-showcase {
        padding: 16px 0 0;
    }
    .featured-main-card {
        min-height: 240px;
        border-radius: 12px;
    }
    .featured-overlay {
        padding: 20px;
    }
    .featured-title {
        font-size: 1.1rem;
    }
    .stats-bar {
        padding: 20px 0;
    }
    .stat-number {
        font-size: 1.4rem;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .article-card-img {
        height: 160px;
    }
}

/* Empty State */
.empty-state {
    padding: 60px 20px;
}

/* Article Content */
.article-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #333;
}
.article-content h2, .article-content h3, .article-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}
.article-content p {
    margin-bottom: 1.2rem;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f0f2ff;
    border-radius: 0 12px 12px 0;
    font-style: italic;
}
.article-content pre {
    background: #1a1a2e;
    color: #e8e8e8;
    padding: 1.2rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5rem 0;
}
.article-content code {
    background: #f0f2ff;
    color: var(--primary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
}
.article-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Main Content Spacing */
.main-content {
    min-height: calc(100vh - 72px - 300px);
}

/* Pagination */
.page-link {
    border: none;
    padding: 0.5rem 1rem;
    margin: 0 2px;
    border-radius: 8px !important;
    color: var(--primary);
    font-weight: 500;
}
.page-link:hover {
    background: var(--primary);
    color: white;
}
.page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Footer */
.footer {
    margin-top: 0;
}
.footer h5, .footer h6 {
    color: #fff !important;
}
.footer p, .footer span, .footer li, .footer small {
    color: rgba(255, 255, 255, 0.7) !important;
}
.footer a {
    color: rgba(255, 255, 255, 0.7) !important;
}
.footer a:hover {
    color: white !important;
}
.social-links .btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.social-links .btn:hover {
    transform: translateY(-3px);
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

/* Avatar Placeholder */
.avatar-placeholder {
    font-weight: 600;
    flex-shrink: 0;
}

/* ============= CONTACT PAGE STYLES ============= */
.contact-page {
    padding-top: 0;
}

.contact-hero {
    position: relative;
    padding: 80px 0 60px;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.contact-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    z-index: 0;
}

.contact-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(67, 97, 238, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
}

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

.contact-hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.contact-hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.8;
}

.contact-cards-section {
    margin-top: -40px;
    position: relative;
    z-index: 2;
    padding-bottom: 60px;
}

.contact-cards-grid {
    display: flex;
    gap: 20px;
}

.contact-info-card {
    flex: 1;
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.contact-info-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 22px;
}

.contact-info-icon.icon-blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.contact-info-icon.icon-green { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.contact-info-icon.icon-orange { background: rgba(249, 115, 22, 0.1); color: #f97316; }
.contact-info-icon.icon-purple { background: rgba(147, 51, 234, 0.1); color: #9333ea; }

.contact-info-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.contact-info-card > p {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.contact-info-card a,
.contact-info-card > span {
    font-size: 14px;
    color: #4361ee;
    font-weight: 500;
    word-break: break-all;
}

.contact-info-card a:hover {
    text-decoration: underline;
}

.contact-main-section {
    padding: 0 0 80px;
    background: #f8fafc;
}

.contact-main-grid {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.contact-form-wrapper {
    flex: 1.2;
}

.contact-form-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.contact-form-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.contact-form-desc {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 28px;
}

.contact-form .form-row {
    display: flex;
    gap: 16px;
}

.contact-form .form-row .form-group {
    flex: 1;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.contact-form .required {
    color: #ef4444;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    background: #f8fafc;
    transition: all 0.25s ease;
    color: #1e293b;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #4361ee;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #9ca3af;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    display: block;
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
}

.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #4361ee, #6366f1);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(67, 97, 238, 0.3);
    font-family: inherit;
}

.contact-submit-btn:hover {
    background: linear-gradient(135deg, #3742fa, #4f46e5);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
    transform: translateY(-1px);
}

.contact-side-wrapper {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-side-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.side-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.side-card-header i {
    font-size: 18px;
    color: #4361ee;
}

.side-card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
}

.contact-side-card > p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 16px;
}

.side-card-stats {
    display: flex;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.side-stat strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #1a1a2e;
}

.side-stat span {
    font-size: 12px;
    color: #94a3b8;
}

.contact-page .social-links {
    display: flex;
    gap: 10px;
}

.social-link-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4361ee;
    font-size: 16px;
    transition: all 0.25s ease;
    text-decoration: none;
}

.social-link-btn:hover {
    background: #4361ee;
    color: #fff;
    transform: translateY(-2px);
}

.work-hours {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.work-hour-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.work-hour-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.work-hour-item span {
    font-size: 13px;
    color: #64748b;
}

.work-hour-item strong {
    font-size: 13px;
    color: #1a1a2e;
    font-weight: 600;
}

@media (max-width: 992px) {
    .contact-cards-grid { flex-wrap: wrap; }
    .contact-info-card { min-width: calc(50% - 10px); }
    .contact-main-grid { flex-direction: column; }
}

@media (max-width: 576px) {
    .contact-info-card { min-width: 100%; }
    .contact-form .form-row { flex-direction: column; }
    .contact-form-card { padding: 24px; }
    .contact-hero h1 { font-size: 28px; }
}

/* Form Styles */
.form-control {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    border: 2px solid #e8e8e8;
    transition: border-color 0.2s;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* Button Styles */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    transition: all 0.2s;
}
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}
.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
}
.breadcrumb-item a {
    color: var(--primary);
}

/* Card Image Hover */
.hover-card .card-img-top {
    transition: transform 0.3s ease;
}
.hover-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Hover underline animation */
.hover-underline {
    position: relative;
    text-decoration: none;
}
.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}
.hover-underline:hover::after {
    width: 100%;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeInUp 0.6s ease;
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}

/* Reading Progress Bar */
#reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--info));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Toast Notifications */
.toast-container {
    z-index: 9999;
}

/* Back to Top */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 1000;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
}
#back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Table of Contents */
.toc-nav .nav-link {
    color: #666;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.2s;
}
.toc-nav .nav-link:hover {
    color: var(--primary);
    background: rgba(67, 97, 238, 0.05);
}

/* Newsletter Form */
.newsletter-form .input-group {
    max-width: 300px;
}

/* Tag Cloud */
.tag-cloud .badge {
    transition: all 0.2s;
}
.tag-cloud .badge:hover {
    transform: scale(1.05);
}

/* Search Highlight */
.search-highlight {
    background: #fff3cd;
    padding: 0 2px;
    border-radius: 2px;
}

/* Card Image Hover */
.hover-card .card-img-top {
    transition: transform 0.3s ease;
}
.hover-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .navbar .container {
        padding: 0.5rem 1rem;
    }
    .display-5 {
        font-size: 1.8rem;
    }
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Hover underline animation */
.hover-underline {
    position: relative;
    text-decoration: none;
}
.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}
.hover-underline:hover::after {
    width: 100%;
}