/**
 * Custom CSS - PT Widya Mandala Cendekia
 * Modern Corporate Design
 */

/* ========================================
   CSS Variables & Root Styles
   ======================================== */
:root {
    /* Brand Colors extracted from Draft_extracted/1.png */
    --primary-color: #0B2545;
    /* Deep Navy Blue */
    --primary-hover: #163A66;
    /* Lighter Navy for hover */
    --secondary-color: #C59D5F;
    /* Elegant Gold */
    --secondary-hover: #D4AF37;
    /* Brighter Gold */

    /* Functional Colors */
    --accent-color: #C59D5F;
    /* Gold as accent */
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;

    /* Neutrals */
    --light-color: #f8f9fc;
    --dark-color: #1a1c23;
    --body-bg: #ffffff;
    --text-color: #444444;
    /* Default text for WHITE background */
    --heading-color: #0B2545;
    /* Headings for WHITE background */

    /* Specific Text Colors for Dark Backgrounds */
    --text-on-primary: #ffffff;
    --heading-on-primary: #ffffff;
    --text-gold: #C59D5F;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0B2545 0%, #1D4E89 100%);
    --gradient-gold: linear-gradient(135deg, #C59D5F 0%, #E8C380 100%);
    --gradient-overlay: linear-gradient(rgba(11, 37, 69, 0.9), rgba(11, 37, 69, 0.8));

    /* Shadows */
    --box-shadow: 0 0.5rem 1rem rgba(11, 37, 69, 0.15);
    --box-shadow-hover: 0 1rem 3rem rgba(11, 37, 69, 0.175);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --section-padding: 80px 0;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-fast: all 0.15s ease;

    /* Missing Variables */
    --white-color: #ffffff;
}

/* ========================================
   Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   Navbar Styles
   ======================================== */
.navbar {
    padding: 1rem 0;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
    background: rgba(11, 37, 69, 0.97) !important;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    transition: var(--transition-base);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

/* Dark Background Text Overrides */
.bg-primary,
.bg-gradient-primary,
.hero-section,
footer {
    color: #ffffff !important;
}

.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section p,
footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer p,
footer li a {
    color: #ffffff !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #C59D5F !important;
    /* Gold on hover */
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    position: relative;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--white-color);
    transition: var(--transition-base);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    background: var(--gradient-primary);
    color: var(--white-color);
    /* padding-top accounts for fixed navbar (~70px) + visual breathing room */
    padding-top: 130px;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-cta {
    animation: fadeInUp 1s ease 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Section Styles
   ======================================== */
.section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--secondary-color);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   Card Styles
   ======================================== */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    overflow: hidden;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white-color);
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition-base);
}

.card:hover .card-icon {
    transform: rotate(360deg) scale(1.1);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--secondary-color);
    line-height: 1.7;
}

/* ========================================
   Button Styles
   ======================================== */
.btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ========================================
   Feature Box
   ======================================== */
.feature-box {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: var(--white-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    text-align: center;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    background: var(--gradient-primary);
    color: var(--white-color);
}

.feature-box:hover .feature-icon {
    background: var(--white-color);
    color: var(--primary-color);
}

.feature-box:hover .feature-title,
.feature-box:hover .feature-text {
    color: var(--white-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white-color);
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition-base);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: var(--transition-base);
}

.feature-text {
    color: var(--secondary-color);
    transition: var(--transition-base);
}

/* ========================================
   Stats Counter
   ======================================== */
.stats-section {
    background: var(--gradient-primary);
    color: var(--white-color);
    padding: 60px 0;
}

.stat-box {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ========================================
   Timeline
   ======================================== */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-content {
    background: var(--white-color);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid var(--white-color);
}

/* ========================================
   Team/Organization Cards
   ======================================== */
.team-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: var(--white-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 5px solid var(--light-color);
    transition: var(--transition-base);
}

.team-card:hover .team-photo {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.team-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.team-position {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-contact {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* ========================================
   Contact Form
   ======================================== */
.form-control,
.form-select {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 2px solid #e9ecef;
    transition: var(--transition-base);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* ========================================
   Footer Styles
   ======================================== */
footer {
    background: var(--dark-color);
}

footer h5,
footer h6 {
    color: var(--white-color);
}

footer a.hover-primary:hover {
    color: var(--primary-light) !important;
    padding-left: 5px;
}

/* ========================================
   WhatsApp Floating Button
   ======================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: var(--white-color);
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: var(--white-color);
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    50% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
}

/* ========================================
   Scroll to Top Button
   ======================================== */
.scroll-to-top {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 40px;
    right: 120px;
    background: var(--gradient-primary);
    color: var(--white-color);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   Utilities
   ======================================== */
.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.bg-gradient-secondary {
    background: var(--gradient-secondary) !important;
}

.bg-light-gray {
    background-color: #f8f9fa;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: var(--shadow-lg);
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .hero-section {
        padding-top: 90px;
        padding-bottom: 40px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        font-size: 18px;
        bottom: 20px;
        right: 85px;
    }

    .timeline::before {
        left: 30px;
    }
}

/* ========================================
   Loading Animation
   ======================================== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   Alert Styles
   ======================================== */
.alert {
    border-radius: var(--radius-md);
    border: none;
    padding: 1rem 1.5rem;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
}

.alert-info {
    background-color: #cff4fc;
    color: #055160;
}

/* ========================================
   Badge Styles
   ======================================== */
.badge {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {

    .navbar,
    footer,
    .whatsapp-float,
    .scroll-to-top {
        display: none !important;
    }
}

/* ========================================
   Slideshow / Carousel Banner (Swiper.js)
   ======================================== */

/* Section wrapper — sits directly under fixed navbar (height: ~70px) */
.slideshow-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 70px;
}

/* Swiper container */
.main-swiper {
    width: 100%;
    height: 600px;
}

/* Each slide */
.swiper-slide {
    position: relative;
    overflow: hidden;
}

/* Background image layer */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Use !important to override any element style */
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    /* Subtle Ken Burns zoom */
    animation: kenBurns 12s ease-in-out infinite alternate;
    /* Fallback gradient when image is missing */
    background-color: #0B2545;
    z-index: 0;
}

@keyframes kenBurns {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.06);
    }
}

/* Dark gradient overlay */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(105deg,
            rgba(11, 37, 69, 0.82) 0%,
            rgba(11, 37, 69, 0.55) 55%,
            rgba(11, 37, 69, 0.20) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Content layer */
.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
    pointer-events: none;
    /* Allow clicks to pass through if needed, but buttons need events */
}

/* Enable pointer events for interactive elements inside content */
.slide-content>* {
    pointer-events: auto;
}

/* Slide title */
.slide-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    /* Swiper parallax needs will-change */
    will-change: transform;
}

/* Gold accent underline on title */
.slide-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
    margin-top: 0.75rem;
}

/* Slide subtitle */
.slide-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 560px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
    will-change: transform;
}

/* CTA buttons */
.slide-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    will-change: transform;
}

.btn-slide-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2rem;
    background: var(--gradient-gold);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50px;
    border: none;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 20px rgba(197, 157, 95, 0.4);
}

.btn-slide-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(197, 157, 95, 0.55);
    color: #fff;
}

.btn-slide-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2rem;
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    backdrop-filter: blur(4px);
}

.btn-slide-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-3px);
    color: #fff;
}

/* ── Navigation Arrows ── */
.slide-nav-btn {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(6px);
    border-radius: 50% !important;
    width: 52px !important;
    height: 52px !important;
    transition: background 0.25s ease, transform 0.25s ease !important;
}

.slide-nav-btn::after {
    font-size: 1.1rem !important;
    font-weight: 900 !important;
}

.slide-nav-btn:hover {
    background: rgba(197, 157, 95, 0.85) !important;
    transform: scale(1.1) !important;
}

/* ── Pagination Bullets ── */
.slide-pagination {
    bottom: 24px !important;
}

.slide-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
}

.slide-pagination .swiper-pagination-bullet-active {
    background: var(--secondary-color);
    width: 28px;
    border-radius: 5px;
}

/* ── Progress Bar ── */
.slide-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: var(--gradient-gold);
    z-index: 10;
    border-radius: 0 2px 2px 0;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .main-swiper {
        height: 480px;
    }

    .slideshow-section {
        margin-top: 70px;
    }
}

@media (max-width: 767px) {
    .main-swiper {
        height: 380px;
    }

    .slide-title {
        font-size: 1.5rem;
    }

    .slide-subtitle {
        font-size: 0.9rem;
    }

    .btn-slide-primary,
    .btn-slide-outline {
        padding: 0.65rem 1.4rem;
        font-size: 0.85rem;
    }

    .slide-nav-btn {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .main-swiper {
        height: 320px;
    }

    .slide-title {
        font-size: 1.25rem;
    }

    .slide-subtitle {
        display: none;
    }
}

/* ========================================
   Page Hero Section (Berita, etc.)
   ======================================== */
.page-hero-section {
    background: var(--gradient-primary);
    /* padding-top accounts for fixed navbar (~70px) + visual breathing room */
    padding-top: 130px;
    padding-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.page-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
}

/* ========================================
   News Card Component
   ======================================== */
.news-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 15px rgba(11, 37, 69, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-base);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(11, 37, 69, 0.15);
}

.news-card-img-link {
    display: block;
    overflow: hidden;
    position: relative;
}

.news-card-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.news-card-img-featured {
    height: 380px;
}

.news-card:hover .news-card-img {
    transform: scale(1.05);
}

.news-card-img-placeholder {
    width: 100%;
    height: 210px;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #adb5bd;
}

.news-card-img-placeholder.news-card-img-featured {
    height: 380px;
}

.news-badge-featured {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-gold);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.news-meta-item {
    font-size: 0.8rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.news-meta-item i {
    font-size: 0.85rem;
}

.news-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--heading-color);
}

.news-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.news-card-title a:hover {
    color: var(--primary-color);
}

.news-card-excerpt {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

/* ========================================
   Homepage News Section
   ======================================== */
.news-homepage-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 15px rgba(11, 37, 69, 0.08);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition-base);
    border: 1px solid rgba(11, 37, 69, 0.06);
}

.news-homepage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(11, 37, 69, 0.15);
}

.news-homepage-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-homepage-card:hover .card-img-top {
    transform: scale(1.04);
}

.news-homepage-card .card-img-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #adb5bd;
}

.news-homepage-card .card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-homepage-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.news-homepage-card .card-title a {
    color: inherit;
    text-decoration: none;
}

.news-homepage-card .card-title a:hover {
    color: var(--primary-color);
}

.news-homepage-card .card-text {
    font-size: 0.875rem;
    color: #6c757d;
    flex: 1;
}

.news-homepage-card .card-footer {
    background: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.75rem 1.25rem;
    font-size: 0.8rem;
    color: #6c757d;
}

/* ========================================
   Sidebar Widgets
   ======================================== */
.sidebar-widget {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 2px 15px rgba(11, 37, 69, 0.07);
    border: 1px solid rgba(11, 37, 69, 0.05);
}

.sidebar-widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.sidebar-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-primary);
}

.recent-news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-news-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.recent-news-item:hover {
    background: #f8f9fa;
}

.recent-news-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.recent-news-thumb-placeholder {
    width: 64px;
    height: 48px;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #adb5bd;
    flex-shrink: 0;
}

.recent-news-info {
    flex: 1;
    min-width: 0;
}

.recent-news-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0.25rem;
    line-height: 1.4;
    transition: color 0.2s;
}

.recent-news-item:hover .recent-news-title {
    color: var(--primary-color);
}

/* ========================================
   Article Detail Page
   ======================================== */
.article-wrapper {
    max-width: 100%;
}

.article-title {
    font-size: 2rem;
    line-height: 1.3;
    color: var(--heading-color);
}

.article-meta {
    font-size: 0.9rem;
}

.avatar-circle-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .article-title {
        font-size: 1.5rem;
    }

    .news-card-img-featured {
        height: 220px;
    }
}