/* =========================================
   UCE SYSTEMS - ARTICLE PAGE CSS
   Production CSS for Article Pages Only
   DO NOT use for index.html
   ========================================= */

/* ===== CSS VARIABLES ===== */
:root {
    --navy: #000080;
    --blue: #2196F3;
    --red: #8B0000;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #F8FAFB;
}

html { 
    scroll-behavior: smooth; 
}

/* ===== LAYOUT & POSITIONING ===== */
.fixed { position: fixed; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }

/* ===== WIDTH & HEIGHT ===== */
.w-full { width: 100%; }
.h-10 { height: 2.5rem; }
.h-24 { height: 6rem; }
.h-auto { height: auto; }

/* Max Width */
.max-w-\[900px\] { max-width: 900px; }
.max-w-\[1400px\] { max-width: 1400px; }
.max-w-\[1600px\] { max-width: 1600px; }

/* Margin Auto */
.mx-auto { 
    margin-left: auto; 
    margin-right: auto; 
}

/* ===== FLEXBOX ===== */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* Gap */
.gap-3 { gap: 0.75rem; }
.gap-6 { gap: 1.5rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }

/* Space Between */
.space-y-3 > * + * { margin-top: 0.75rem; }

/* ===== GRID ===== */
.grid { display: grid; }

/* ===== DISPLAY UTILITIES ===== */
.inline-block { display: inline-block; }
.hidden { display: none; }

/* ===== SPACING - PADDING ===== */
.p-10 { padding: 2.5rem; }

/* Padding X (horizontal) */
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }

/* Padding Y (vertical) */
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

/* Padding Bottom */
.pb-8 { padding-bottom: 2rem; }
.pb-16 { padding-bottom: 4rem; }

/* Padding Top */
.pt-8 { padding-top: 2rem; }
.pt-16 { padding-top: 4rem; }

/* ===== SPACING - MARGIN ===== */
.mt-16 { margin-top: 4rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

/* ===== TYPOGRAPHY - SIZE ===== */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-5xl { font-size: 3rem; line-height: 1; }

/* ===== TYPOGRAPHY - WEIGHT ===== */
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* ===== TYPOGRAPHY - ALIGNMENT & TRANSFORM ===== */
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

/* ===== COLORS - TEXT ===== */
.text-white { color: #ffffff; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.text-blue-800 { color: #1e40af; }

/* ===== COLORS - BACKGROUND ===== */
.bg-white { background-color: #ffffff; }
.bg-red-600 { background-color: #dc2626; }
.bg-blue-100 { background-color: #dbeafe; }

/* ===== GRADIENTS ===== */
.bg-gradient-to-br { 
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); 
}

.from-blue-50 { 
    --tw-gradient-from: #eff6ff; 
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(239, 246, 255, 0)); 
}

.to-indigo-50 { --tw-gradient-to: #eef2ff; }

/* ===== BORDERS ===== */
.border-2 { border-width: 2px; border-style: solid; }
.border-t-2 { border-top-width: 2px; border-top-style: solid; }
.border-b-2 { border-bottom-width: 2px; border-bottom-style: solid; }

.border-gray-200 { border-color: #e5e7eb; }
.border-blue-200 { border-color: #bfdbfe; }

.rounded-xl { border-radius: 0.75rem; }

/* ===== TRANSITIONS ===== */
.transition { 
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* ===== HOVER STATES ===== */
.hover\:bg-red-700:hover { background-color: #b91c1c; }
.hover\:text-blue-600:hover { color: #2563eb; }

/* ===== RESPONSIVE - MEDIUM SCREENS (768px+) ===== */
@media (min-width: 768px) {
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ===== RESPONSIVE - LARGE SCREENS (1024px+) ===== */
@media (min-width: 1024px) {
    .lg\:flex { display: flex; }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:px-16 { padding-left: 4rem; padding-right: 4rem; }
    .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

/* ===== CUSTOM COMPONENTS ===== */

/* Navigation Shadow */
.nav-shadow { 
    box-shadow: 0 2px 8px rgba(0, 0, 128, 0.08); 
}

/* Card Hover Effect */
.card-hover { 
    transition: all 0.3s ease; 
}

.card-hover:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 12px 24px rgba(0, 0, 128, 0.12); 
}

/* ===== ARTICLE CONTENT STYLES ===== */

.article-content h2 {
    color: var(--navy);
    font-size: 2.25rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.article-content h3 {
    color: var(--navy);
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.article-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 1.5rem;
}

.article-content strong {
    font-weight: 700;
    color: var(--navy);
}

.article-content a {
    color: var(--blue);
    font-weight: 600;
    text-decoration: underline;
}

.article-content a:hover {
    color: var(--navy);
}

.article-content ul, 
.article-content ol {
    margin-bottom: 2rem;
    padding-left: 0;
    list-style: none;
}

.article-content ul li, 
.article-content ol li {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    list-style: none;
}

.article-content ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--blue);
    font-weight: 700;
}

.article-content ol {
    counter-reset: item;
}

.article-content ol li {
    counter-increment: item;
}

.article-content ol li:before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    color: var(--navy);
    font-weight: 700;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border: 2px solid #E5E7EB;
}

.article-content table th {
    background: var(--navy);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-content table td {
    padding: 1rem;
    border-bottom: 1px solid #E5E7EB;
    font-size: 1rem;
    color: #374151;
}

.article-content table tr:last-child td {
    border-bottom: none;
}

.article-content table tr:nth-child(even) {
    background: #F9FAFB;
}

.article-content blockquote {
    border-left: 4px solid var(--blue);
    background: #EFF6FF;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-size: 1.25rem;
    font-style: italic;
    color: #1E3A8A;
}

.article-content img {
    width: 100%;
    height: auto;
    margin: 2.5rem 0;
}

.article-image {
    margin: 3rem 0;
    border: 2px solid #E5E7EB;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
    border: none;
}

.article-image figcaption {
    padding: 1rem;
    background: white;
    font-size: 0.875rem;
    color: #6B7280;
    font-style: italic;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-image figcaption {
    padding: 1rem;
    background: white;
    font-size: 0.875rem;
    color: #6B7280;
    font-style: italic;
}

.article-content pre {
    background: #1F2937;
    color: #E5E7EB;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

.article-content code {
    background: #F3F4F6;
    color: var(--navy);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.article-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* ===== LINK STYLES ===== */

/* Remove underline from navigation and footer links */
nav a {
    text-decoration: none;
}

footer a {
    text-decoration: none;
}

/* Footer lists - no bullets */
footer ul {
    list-style: none;
    padding-left: 0;
}

footer ul li {
    list-style: none;
}

footer ul li:before {
    content: none;
}

/* CTA Button Override - ensure white text on red background */
a.bg-red-600 {
    color: white !important;
    text-decoration: none !important;
}

a.bg-red-600:hover {
    color: white !important;
}

/* ===== CASE STUDY CUSTOM STYLES ===== */

/* Key Metrics / Stat Boxes */
.stat-box {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border: 2px solid var(--blue);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 128, 0.12);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.125rem;
    color: #374151;
    font-weight: 600;
}

/* Challenge Cards */
.challenge-card {
    background: white;
    border-left: 4px solid var(--red);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.challenge-card:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.challenge-title {
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.challenge-desc {
    color: #6B7280;
    line-height: 1.6;
}

/* Solution Cards */
.solution-card {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border: 2px solid var(--blue);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.1) 0%, transparent 70%);
}

.solution-number {
    display: inline-block;
    background: var(--blue);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Result Cards */
.result-card {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    transition: all 0.3s;
}

.result-card:hover {
    border-color: var(--blue);
    box-shadow: 0 8px 24px rgba(33, 150, 243, 0.15);
    transform: translateY(-4px);
}

.result-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--blue) 0%, #1976D2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

/* Section Badge */
.section-badge {
    display: inline-block;
    background: var(--navy);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

/* Hero Gradient */
.hero-gradient {
    background: linear-gradient(135deg, #000080 0%, #1976D2 100%);
    padding: 4rem 2rem;
    margin: 3rem 0;
    border-radius: 16px;
    color: white;
}

/* ===== HEADER IMAGE WIDTH CONSTRAINT ===== */
/* Make header image same width as article content */
.max-w-\[1400px\] {
    max-width: 900px !important;
}
