/* ============================================
   인베슘 Invesume - Custom Styles
   Dark Fern Theme
   ============================================ */

/* Root Variables */
:root {
    --primary-color: #081f19;      /* Very Dark Green (2 shades darker) */
    --secondary-color: #002821;    /* Extremely Dark Teal (2 shades darker) */
    --accent-color: #1a8f7a;       /* Medium Teal (2 shades darker) */
    --success-color: #0d8a61;      /* Darker Green (2 shades darker) */
    --warning-color: #f59e0b;      /* Orange */
    --danger-color: #ef4444;       /* Red */
    --light-bg: #f8fafc;           /* Light Gray */
    --border-color: #e2e8f0;       /* Border */
    --text-dark: #111827;          /* Very Dark Gray (2 shades darker) */
    --text-gray: #4a5568;          /* Darker Gray (2 shades darker) */
    --text-light: #718096;         /* Darker Light Gray (2 shades darker) */
    --white: #ffffff;
    --black: #000000;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Main content padding for fixed navbar */
main {
    padding-top: 120px;
}

/* Homepage hero section - no top margin */
.hero-section {
    margin-top: -120px;
    padding-top: 120px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; }
h5 { font-size: 0.95rem; }
h6 { font-size: 0.9rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(8, 31, 25, 0.98);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white) !important;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: var(--accent-color);
    color: var(--white) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.language-link {
    color: var(--white) !important;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.language-link:hover {
    opacity: 0.7;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 120px 0 80px;
    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="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.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.6;
}

.hero-section h1 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section .subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: var(--white) !important;
}

.btn-primary:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 143, 122, 0.4);
}

.btn-outline-primary {
    border-color: var(--accent-color) !important;
    color: var(--accent-color) !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: var(--white) !important;
}

.btn-outline-primary.active {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: var(--white) !important;
}

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

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card-text {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

/* Stats Section */
.stats-section {
    background-color: var(--light-bg);
    padding: 60px 0;
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
    white-space: nowrap;
}

/* Products Section */
.product-card {
    height: 100%;
    border: 1px solid var(--border-color);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 4rem;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
}

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

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

.footer-hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 991px) {
    h1 { font-size: 1.4rem; }
    h2 { font-size: 1.15rem; }

    .hero-section {
        padding: 100px 0 60px;
    }

    .hero-section h1 {
        font-size: 1.4rem;
    }

    section {
        padding: 60px 0;
    }

    .navbar-collapse {
        background-color: var(--primary-color);
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 8px;
    }

    .navbar-nav {
        margin-bottom: 1rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 14px;
    }

    .hero-section {
        padding: 80px 0 40px;
        margin-top: 60px;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section .subtitle {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    section {
        padding: 40px 0;
    }

    .section-header h2 {
        font-size: 1.15rem;
    }

    .card-body {
        padding: 1.5rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Utility Classes */
.text-accent {
    color: var(--accent-color);
}

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

.container {
    max-width: 1200px;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Styles */
a:focus,
button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ============================================
   Events Gallery Section Styles
   ============================================ */

.events-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.event-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.event-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.event-info {
    background: var(--white);
}

.event-info h5 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.event-info .text-muted {
    font-size: 0.9rem;
    line-height: 1.4;
}

@media (max-width: 991px) {
    .events-section {
        padding: 60px 0;
    }

    .event-image {
        height: 200px;
    }
}

@media (max-width: 767px) {
    .events-section {
        padding: 40px 0;
    }

    .event-image {
        height: 180px;
    }

    .event-info h5 {
        font-size: 1rem;
    }
}

/* ============================================
   Privacy & Terms Page Styles
   ============================================ */

/* Privacy & Terms Content Container */
.page-legal {
    background: var(--white);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin: 0 auto;
}

.page-legal h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 1rem;
}

.page-legal h2 {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.page-legal h3 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
}

.page-legal p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
    text-align: left;
}

.page-legal ul,
.page-legal ol {
    margin: 1rem 0 1rem 2rem;
    padding-left: 1rem;
}

.page-legal li {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 0.75rem;
    text-align: left;
}

.page-legal strong {
    color: var(--primary-color);
    font-weight: 600;
}

.page-legal hr {
    border: none;
    border-top: 2px solid var(--border-color);
    margin: 3rem 0;
}

.page-legal a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-legal a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 991px) {
    .page-legal {
        padding: 2rem;
    }

    .page-legal h1 {
        font-size: 1.4rem;
    }

    .page-legal h2 {
        font-size: 1.15rem;
    }

    .page-legal h3 {
        font-size: 1.05rem;
    }
}

@media (max-width: 767px) {
    .page-legal {
        padding: 1.5rem;
    }

    .page-legal h1 {
        font-size: 1.3rem;
    }

    .page-legal h2 {
        font-size: 1.1rem;
    }

    .page-legal h3 {
        font-size: 1rem;
    }

    .page-legal ul,
    .page-legal ol {
        margin-left: 1.5rem;
    }
}

/* ============================================
   Tag-based Timeline Styles
   ============================================ */

/* Tag Legend */
.tag-legend {
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    transition: all 0.3s ease;
}

.tag-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tag-ai {
    background: linear-gradient(135deg, #002821 0%, #081f19 100%);
}

.tag-os {
    background: linear-gradient(135deg, #081f19 0%, #002821 100%);
}

.tag-service {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.tag-consulting {
    background: linear-gradient(135deg, #1a8f7a 0%, #081f19 100%);
}

.tag-education {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.tag-development {
    background: linear-gradient(135deg, #002821 0%, #1a8f7a 100%);
}

.tag-research {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

/* Timeline Container */
.timeline-container {
    position: relative;
    padding: 20px 0;
}

/* Vertical Line */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

/* Timeline Badge */
.timeline-badge {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
}

.timeline-year {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(20, 77, 64, 0.3);
    border: 3px solid var(--white);
}

/* Timeline Content */
.timeline-content {
    width: calc(100% - 100px);
    margin-left: 100px !important;
    margin-right: 0 !important;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Project Grid - Horizontal List */
.project-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 2fr 80px;
    gap: 12px;
    align-items: center;
    padding: 10px 16px;
    background: var(--light-bg);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
    transition: all 0.2s ease;
}

.project-card:hover {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.project-card.highlight {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
    border-left-color: var(--success-color);
}

.project-client {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-desc {
    color: var(--text-gray);
    font-size: 0.8rem;
    line-height: 1.3;
}

.project-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 991px) {
    .timeline-container::before {
        left: 40px;
    }

    .timeline-badge {
        left: 5px;
    }

    .timeline-year {
        min-width: 60px;
        padding: 8px 14px;
        font-size: 0.9rem;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }

    .project-card {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 10px 12px;
    }

    .project-client {
        font-size: 0.8rem;
    }

    .project-desc {
        font-size: 0.75rem;
    }

    .project-tag {
        font-size: 0.6rem;
        padding: 3px 6px;
    }
}

@media (max-width: 576px) {
    .timeline-container::before {
        left: 35px;
    }

    .timeline-badge {
        left: 0;
    }

    .timeline-year {
        min-width: 50px;
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .timeline-content {
        width: calc(100% - 65px);
        margin-left: 65px !important;
        padding: 12px;
    }

    .project-card {
        padding: 8px 10px;
    }

    .project-client {
        font-size: 0.75rem;
    }

    .project-desc {
        font-size: 0.7rem;
    }

    .project-tag {
        font-size: 0.55rem;
        padding: 2px 5px;
    }

    .tag-badge {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

/* ============================================
   Products Page Styles
   ============================================ */

/* Products Header */
.products-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

/* Product Cards */
.product-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.product-icon {
    text-align: center;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.product-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.product-features li {
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--text-gray);
}

.product-features li::before {
    content: "✓";
    color: var(--success-color);
    margin-right: 8px;
}

/* Service Cards */
.service-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* ============================================
   News Page Styles
   ============================================ */

/* News Header */
.news-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

/* News Filter */
.news-filter {
    border-bottom: 1px solid var(--border-color);
}

.filter-btn {
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
}

.filter-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
}

/* News Cards */
.news-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.news-card .card-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.news-card .card-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card .card-title a:hover {
    color: var(--accent-color);
}

.news-card .card-text {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* News Detail Page */
.news-detail .news-article {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.news-detail .news-article .news-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    border-radius: 8px !important;
    padding: 2rem !important;
    margin: 0 0 2rem 0 !important;
    border: none !important;
}

.news-detail .news-article .news-header .news-title {
    color: var(--white) !important;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1rem 0 0.5rem 0;
}

.news-detail .news-article .news-header .badge {
    background-color: var(--accent-color) !important;
}

.news-detail .news-article .news-header .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 0;
}

.news-content {
    line-height: 1.8;
    color: var(--text-dark);
}

.news-content h2 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-size: 1.25rem;
}

.news-content h3 {
    color: var(--secondary-color);
    margin: 1.5rem 0 0.75rem;
    font-size: 1.1rem;
}

.news-content ul, .news-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.news-content li {
    margin-bottom: 0.5rem;
}

.news-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Category Badge Colors */
.badge.bg-primary {
    background-color: var(--accent-color) !important;
}

.badge.bg-success {
    background-color: var(--success-color) !important;
}

.badge.bg-info {
    background-color: var(--accent-color) !important;
}

.badge.bg-warning {
    background-color: var(--warning-color) !important;
}

.badge.bg-danger {
    background-color: var(--danger-color) !important;
}

.badge.bg-secondary {
    background-color: var(--text-gray) !important;
}

/* ============================================
   Contact Page Styles
   ============================================ */

/* Contact Header */
.contact-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

/* Contact Details */
.contact-details {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    min-width: 50px;
    text-align: center;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-form label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Map */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Community Cards */
.community-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.community-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.community-card h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* ============================================
   Customers Page Styles
   ============================================ */

/* Customers Header */
.customers-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

/* Customers Stats */
.customers-stats {
    background-color: var(--light-bg);
}

.customers-stats .stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.customers-stats .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Customers Section */
.customers-section {
    background-color: var(--white);
}

.customer-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

.customer-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.customer-card h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.customer-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.customer-features li {
    padding: 0.5rem 0;
    color: var(--text-gray);
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.5rem;
}

.customer-features li::before {
    content: "✓";
    color: var(--success-color);
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* Customer Logos */
.customer-logos {
    background-color: var(--white);
}

.partner-logo {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: scale(1.05);
}

.partner-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

/* Certifications */
.cert-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
}

.cert-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.cert-card img {
    max-height: 150px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.cert-card h6 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
}

/* ============================================
   Formspree Form Styles
   ============================================ */

/* Form Validation States */
.contact-form .form-control[aria-invalid="true"] {
    border-color: #dc3545;
    background-color: #fff8f8;
}

.contact-form .form-control[aria-invalid="true"]:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Field-level Error Messages */
.contact-form span[data-fs-error] {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

.contact-form span[data-fs-error]:not(:empty) {
    display: block !important;
}

/* Form-level Success/Error Messages */
.contact-form-wrapper .alert {
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.contact-form-wrapper .alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.contact-form-wrapper .alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Submit Button Loading State */
.contact-form button[data-fs-submit-btn]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.contact-form button[data-fs-submit-btn] .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* ============================================
   Featured Product Cards (One Per Row)
   ============================================ */

.product-card-featured {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.product-card-featured:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    height: 100%;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.product-image img {
    max-height: 300px;
    object-fit: contain;
    width: 100%;
    transition: transform 0.3s ease;
}

.product-card-featured:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    height: 100%;
}

.product-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    color: var(--white);
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.product-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.product-description {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--light-bg);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #f0f7ff;
    transform: translateX(5px);
}

.feature-item i {
    font-size: 1.1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.feature-item strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 991px) {
    .product-card-featured .row {
        flex-direction: column;
    }

    .product-image {
        min-height: 280px;
    }

    .product-image img {
        max-height: 220px;
    }

    .product-title {
        font-size: 1.15rem;
    }

    .product-subtitle {
        font-size: 1rem;
    }

    .product-description {
        font-size: 0.95rem;
    }

    .feature-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .feature-item i {
        margin-top: 0;
    }
}

@media (max-width: 576px) {
    .product-image {
        min-height: 220px;
        padding: 1.5rem;
    }

    .product-image img {
        max-height: 180px;
    }

    .product-title {
        font-size: 1.1rem;
    }

    .product-description {
        font-size: 0.9rem;
    }

    .feature-item span {
        font-size: 0.85rem;
    }
}

/* Enhanced Product Image Styles */
.product-image {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    height: 100%;
    min-height: 450px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem !important;
    position: relative;
    overflow: hidden;
}

.product-image img {
    max-height: 400px !important;
    object-fit: contain;
    width: 100%;
    transition: transform 0.3s ease;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-card-featured:hover .product-image img {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Product CTA Button Styles */
.product-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-cta .btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.product-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-cta .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border: none;
}

.product-cta .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
}

.product-cta .btn i {
    font-size: 0.9rem;
}

/* Update Product CTA Button Styles */
.product-cta .btn {
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

/* Product Link Styles */
.product-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-link:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.product-image a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 10;
}

.product-image a:hover {
    transform: scale(1.05);
    z-index: 10;
}

.product-image img {
    transition: transform 0.3s ease;
}

.product-image a:hover img {
    transform: scale(1.05);
}

/* Customer Logos Gallery Styles */
.customer-logos {
    background-color: var(--white);
    padding: 4rem 0;
}

.partner-logo {
    background: var(--white);
    border: 2px solid #e8ecef;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.partner-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(8, 31, 25, 0.05) 0%, rgba(0, 40, 33, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.partner-logo:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.partner-logo:hover::before {
    opacity: 1;
}

.partner-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ============================================
   Tabs Navigation Styles
   ============================================ */

.nav-tabs {
    border-bottom: 2px solid var(--primary-color);
}

.nav-tabs .nav-link {
    color: var(--text-dark);
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--secondary-color);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background-color: transparent;
    border-bottom: 3px solid var(--accent-color);
}

.tab-content {
    padding-top: 1.5rem;
}

/* Table Styles */
.table thead th {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    font-weight: 500;
}

.table tbody tr td {
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

/* ============================================
   Case Studies Section Styles
   ============================================ */

.case-studies-hero {
    background-color: var(--light-bg);
}

.case-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.case-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.case-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.case-subtitle {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.case-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.case-features {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: auto;
}

.case-features li {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
}

.case-features li:before {
    content: "✓";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

@media (max-width: 767px) {
    .case-image {
        height: 150px;
    }

    .case-title {
        font-size: 1rem;
    }

    .case-description {
        font-size: 0.85rem;
    }
}

/* ============================================
   Certification & Video Section Styles
   ============================================ */

.cert-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-color);
}

.cert-image {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.video-container {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    border-radius: 10px;
}

.hero-video {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--accent-color);
}

.hero-video iframe {
    border-radius: 10px;
}

@media (max-width: 767px) {
    .cert-image {
        max-height: 200px;
    }

    .hero-video {
        margin-top: 2rem;
    }
}

/* ============================================
   Products Preview Section
   ============================================ */

.products-preview-section {
    background-color: var(--white);
}

.product-preview-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.product-preview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.product-preview-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-preview-card:hover .product-preview-image img {
    transform: scale(1.05);
}

.product-preview-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-preview-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-preview-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-preview-title a:hover {
    color: var(--accent-color);
}

.product-preview-desc {
    margin-bottom: 1rem;
    line-height: 1.4;
}

.product-preview-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.product-preview-features li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

@media (max-width: 767px) {
    .product-preview-image {
        height: 180px;
    }
}

/* Product Badge Top - Positioned at Top Right */
.product-badge-top {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    opacity: 0.95;
}

.product-preview-card {
    position: relative;
}

/* ============================================
   Open Source Projects Preview Section
   ============================================ */

.opensource-preview-section {
    background-color: var(--light-bg);
}

.github-graph-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.github-contribution-graph {
    display: flex;
    gap: 3px;
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.github-week {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.github-day {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background-color: #ebedf0;
}

.github-day.level-0 {
    background-color: #ebedf0;
}

.github-day.level-1 {
    background-color: #9be9a8;
}

.github-day.level-2 {
    background-color: #40c463;
}

.github-day.level-3 {
    background-color: #30a14e;
}

.github-day.level-4 {
    background-color: #216e39;
}

.github-contribution-graph-small {
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.opensource-preview-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.opensource-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.opensource-preview-content h5 {
    color: var(--primary-color);
    font-weight: 600;
}

.opensource-preview-content p {
    margin-bottom: 0.75rem;
}
