/* =========================================
   KOMBATPOL REDESIGN - DESIGN SYSTEM
   ========================================= */

   :root {
    /* Color Palette */
    --color-primary: #1F3C28; /* TNI Green Dark */
    --color-primary-light: #2D563A; 
    --color-secondary: #0A2540; /* Polri Blue Dark */
    --color-accent: #D4AF37; /* Elegant Gold */
    --color-accent-hover: #F2C94C;
    
    --color-text-main: #333333;
    --color-text-muted: #666666;
    --color-text-light: #F8F9FA;
    
    --color-bg-main: #FFFFFF;
    --color-bg-alt: #F4F7F6;
    --color-bg-dark: #0A192F;
    
    --color-danger: #E63946; /* NKRI Red Accent */
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --section-padding: 5rem 0;
    
    /* Effects */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-gold: 0 8px 24px rgba(212, 175, 55, 0.3);
    
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    line-height: 1.2;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--color-bg-alt);
}

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

/* =========================================
   TYPOGRAPHY & UTILITIES
   ========================================= */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.divider {
    height: 4px;
    width: 60px;
    background: var(--color-accent);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.section-desc {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.text-danger {
    color: var(--color-danger) !important;
}

.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--color-text-light);
}

.btn-secondary {
    background-color: var(--color-bg-main);
    color: var(--color-secondary);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    background-color: transparent;
    border-color: var(--color-text-light);
    color: var(--color-text-light);
}

.btn-outline-light:hover {
    background-color: var(--color-text-light);
    color: var(--color-secondary);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* =========================================
   HEADER & NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
    padding: 15px 0;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--color-secondary);
    line-height: 1;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-secondary);
    position: relative;
}

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

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

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

.nav-link.btn-primary-outline {
    border: 2px solid var(--color-primary);
    padding: 8px 20px;
    border-radius: 50px;
    color: var(--color-primary);
}

.nav-link.btn-primary-outline::after {
    display: none;
}

.nav-link.btn-primary-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--color-secondary);
    cursor: pointer;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, #ffffff 100%);
}

.hero-bg {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 100%;
    background: var(--color-primary);
    border-radius: 50px;
    transform: rotate(-15deg);
    opacity: 0.05;
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    z-index: 1;
}

.hero-content {
    max-width: 550px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(212, 175, 55, 0.15);
    color: #B8860B;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--color-secondary);
}

.hero-title span {
    color: var(--color-primary);
    position: relative;
}

.hero-title span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 15px;
    bottom: 5px;
    left: 0;
    background-color: rgba(212, 175, 55, 0.3);
    z-index: -1;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 35px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-visual {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(31, 60, 40, 0.05), rgba(10, 37, 64, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-lg);
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-wrapper img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.floating-card {
    position: absolute;
    background: var(--color-bg-main);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

.card-1 {
    top: 50px;
    left: -40px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 50px;
    right: -40px;
    animation-delay: 3s;
}

.icon-box {
    width: 45px;
    height: 45px;
    background: var(--color-primary-light);
    color: var(--color-text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.card-2 .icon-box {
    background: var(--color-danger);
}

.card-text h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.card-text p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* =========================================
   HIGHLIGHTS
   ========================================= */
.highlights {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

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

.highlight-item {
    background: var(--color-bg-main);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.highlight-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--color-accent);
}

.h-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(31, 60, 40, 0.05);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition);
}

.highlight-item:hover .h-icon {
    background: var(--color-primary);
    color: var(--color-text-light);
}

.highlight-item h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.highlight-item p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--border-radius);
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    height: 550px;
    object-fit: cover;
    width: 100%;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--color-accent);
    color: var(--color-secondary);
    padding: 30px;
    border-radius: 50%;
    width: 160px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--shadow-gold);
    border: 5px solid var(--color-bg-main);
}

.experience-badge .number {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 5px;
}

.about-subtitle {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.lead-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.check-list {
    margin-top: 25px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--color-secondary);
}

.check-list i {
    color: var(--color-accent);
    font-size: 1.2rem;
}

/* =========================================
   PROGRAMS SECTION
   ========================================= */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.program-card {
    background: var(--color-bg-main);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.program-img {
    height: 240px;
    overflow: hidden;
    position: relative;
}

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

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

.program-content {
    padding: 30px;
    position: relative;
}

.program-icon {
    position: absolute;
    top: -25px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: var(--color-text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--color-bg-main);
}

.program-content h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.program-content p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.read-more {
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.read-more:hover {
    color: var(--color-accent);
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* =========================================
   CTA SECTION
   ========================================= */
.cta {
    background: linear-gradient(rgba(10, 37, 64, 0.9), rgba(10, 37, 64, 0.9)), url('https://images.unsplash.com/photo-1596720426673-e4e14290f0cc?auto=format&fit=crop&q=80') center/cover fixed;
    padding: 100px 0;
    color: var(--color-text-light);
}

.cta h2 {
    color: var(--color-text-light);
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    padding-top: 80px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand .brand-title {
    color: var(--color-text-light);
}

.footer-brand p {
    color: #a0aec0;
    max-width: 300px;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--color-text-light);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--color-accent);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a0aec0;
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: #a0aec0;
}

.contact-info i {
    color: var(--color-accent);
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #a0aec0;
    font-size: 0.9rem;
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

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

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

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* =========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================= */
@media (max-width: 1024px) {
    .nav-list { gap: 20px; }
    .hero-title { font-size: 3rem; }
    .about-grid { gap: 40px; }
    .experience-badge {
        width: 130px; height: 130px;
        right: -15px; bottom: -15px;
    }
    .programs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .hero { padding-bottom: 80px; }
    .highlights-grid { grid-template-columns: 1fr; gap: 20px; }
    .highlights { margin-top: 40px; }
    .hero-bg { width: 100%; right: 0; top: 0; border-radius: 0; transform: none; }
}

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    
    .nav-menu {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background: var(--color-bg-main);
        flex-direction: column;
        padding: 40px 20px;
        transition: 0.4s ease-in-out;
        box-shadow: inset 0 10px 10px -10px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active { left: 0; }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }
    
    .nav-link { font-size: 1.1rem; }
    
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-content { max-width: 100%; margin: 0 auto; }
    .hero-actions { justify-content: center; }
    
    .card-1 { left: 10px; top: 10px; }
    .card-2 { right: 10px; bottom: 10px; }
    
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .about-image { margin-bottom: 40px; }
    .check-list li { justify-content: center; }
    
    .programs-grid { grid-template-columns: 1fr; }
    
    .footer-top { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .social-links { justify-content: center; }
    .footer-links h4::after, .footer-contact h4::after { left: 50%; transform: translateX(-50%); }
    .contact-info li { justify-content: center; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
    .cta-buttons { flex-direction: column; }
    .image-wrapper img { height: 350px; }
}

/* =========================================
   GALLERY PAGE STYLES (ZIGZAG / MASONRY)
   ========================================= */
.gallery-header {
    text-align: center;
    padding: 150px 20px 60px;
    background-color: var(--color-bg-main);
}

.gallery-title {
    font-size: 4rem;
    font-weight: 800;
    /* Colorful gradient text as requested */
    background: linear-gradient(to right, #3b82f6, #8b5cf6, #ec4899, #ef4444, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.gallery-subtitle {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--color-secondary);
    text-transform: uppercase;
}

.gallery-subtitle::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-danger);
    margin: 15px auto 0;
}

.gallery-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.gallery-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 450px;
}

.gallery-row.reverse {
    direction: rtl;
}

.gallery-row.reverse > * {
    direction: ltr; /* Reset direction inside items */
}

.gallery-img {
    position: relative;
    overflow: hidden;
    min-height: 350px;
}

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

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

.gallery-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.gallery-img-overlay h3 {
    color: white;
    font-size: 1.8rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.gallery-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 10%;
}

.gallery-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.gallery-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.gallery-category {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.dropcap {
    float: left;
    font-size: 3.5rem;
    line-height: 0.8;
    margin-right: 10px;
    font-weight: 700;
    font-family: var(--font-heading);
}

/* Color Utility Classes for Gallery Blocks */
.bg-white {
    background-color: #FFFFFF;
    color: var(--color-text-main);
}

.bg-white h3 { color: var(--color-secondary); }
.bg-white p { color: var(--color-text-muted); }
.bg-white .dropcap { color: var(--color-accent); }

.bg-light-grey {
    background-color: #F4F7F6;
    color: var(--color-text-main);
}
.bg-light-grey h3 { color: var(--color-secondary); }
.bg-light-grey p { color: var(--color-text-muted); }
.bg-light-grey .dropcap { color: var(--color-accent); }

.bg-dark-blue {
    background-color: #2E3440;
    color: #ECEFF4;
}
.bg-dark-blue h3 { color: #FFFFFF; }
.bg-dark-blue p { color: #D8DEE9; }
.bg-dark-blue .dropcap { color: var(--color-accent); }

.bg-dark-grey {
    background-color: #242933;
    color: #ECEFF4;
}
.bg-dark-grey h3 { color: #FFFFFF; }
.bg-dark-grey p { color: #D8DEE9; }
.bg-dark-grey .dropcap { color: var(--color-danger); }

.bg-orange {
    background-color: #E66646;
    color: white;
}
.bg-orange h3 { color: white; }
.bg-orange p { color: rgba(255,255,255,0.9); }
.bg-orange .dropcap { color: var(--color-secondary); }

/* =========================================
   ARTICLE PAGE STYLES
   ========================================= */
.article-page {
    padding-top: 100px;
    background-color: var(--color-bg-main);
}

.article-hero {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.article-category {
    background-color: rgba(212, 175, 55, 0.15);
    color: #B8860B;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.article-title {
    font-size: 3rem;
    line-height: 1.3;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 40px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta i {
    color: var(--color-accent);
}

.article-cover {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 50px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.article-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #444;
    margin-bottom: 25px;
}

.article-content h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
}

.article-content h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
}

.article-content blockquote {
    border-left: 5px solid var(--color-accent);
    padding: 20px 30px;
    background-color: var(--color-bg-alt);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-secondary);
    margin: 40px 0;
    border-radius: 0 10px 10px 0;
}

.article-content ul,
.article-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.article-content li {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 10px;
    position: relative;
}

.article-content ul li {
    list-style-type: disc;
}

/* =========================================
   ARTICLE INDEX PAGE (GRID)
   ========================================= */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.article-card {
    background: var(--color-bg-main);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

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

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

.article-card-img-wrapper {
    overflow: hidden;
    position: relative;
}

.article-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card-category {
    font-size: 0.8rem;
    color: var(--color-accent);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.article-card-title {
    font-size: 1.3rem;
    color: var(--color-secondary);
    margin-bottom: 15px;
    line-height: 1.4;
    transition: var(--transition);
}

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

.article-card-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.article-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
    color: #888;
    font-size: 0.85rem;
}

/* Responsive updates for Gallery and Article */
@media (max-width: 992px) {
    .gallery-row {
        grid-template-columns: 1fr;
    }
    .gallery-row.reverse {
        direction: ltr;
    }
    .gallery-text {
        padding: 50px 20px;
    }
    .gallery-title {
        font-size: 3rem;
    }
    .article-title {
        font-size: 2.2rem;
    }
}
