/* ==========================================================================
   ALL-INCLUSIVE GLOBAL STYLESHEET: EM Material Analyzer
   ========================================================================== */

:root {
    --primary-bg: #F8F9FA;
    --text-main: #333333;
    --brand-navy: #2C3E50;
    --brand-blue: #0078D7;
    --brand-green: #28A745;
    --card-bg: #FFFFFF;
}

/* --- BASE STYLES & RESET --- */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-main);
    line-height: 1.6;
}

/* --- SITE NAVIGATION BAR --- */
nav {
    background-color: var(--card-bg);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #E0E0E0;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--brand-navy);
    font-weight: 800;
    font-size: 1.2rem;
}

.nav-logo img {
    height: 40px; 
    margin-right: 15px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    margin-left: 2rem;
    transition: color 0.2s;
}

.nav-links a:hover { 
    color: var(--brand-blue); 
}

/* --- HEADER BANNER COMPONENTS --- */
header {
    background-color: var(--brand-navy);
    color: white;
    padding: 4rem 5% 6.5rem 5%;
    text-align: center;
}

.article-header {
    background-color: var(--brand-navy);
    color: white;
    padding: 4rem 5% 4rem 5%;
    text-align: center;
}

header h1, .article-header h1 { 
    font-size: 2.8rem; 
    margin-bottom: 1rem; 
    line-height: 1.2;
}

header p, .article-header .article-meta { 
    font-size: 1.2rem; 
    color: #BDC3C7; 
    max-width: 800px; 
    margin: 0 auto; 
}

.article-header h1 {
    font-size: 2.5rem;
    max-width: 900px;
    margin: 0 auto 1rem auto;
}

/* --- READING TEMPLATE WRAPPER (The Standalone Articles) --- */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 5%;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-top: -2rem;
    position: relative;
}

article h2 {
    color: var(--brand-navy);
    margin: 2.5rem 0 1rem 0;
    font-size: 1.8rem;
    border-bottom: 2px solid #F0F0F0;
    padding-bottom: 0.5rem;
}

article h3 {
    color: var(--brand-blue);
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.3rem;
}

article p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

article ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

article li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cta-box {
    background-color: #E8F4FD;
    border-left: 5px solid var(--brand-blue);
    padding: 2rem;
    margin-top: 3rem;
    border-radius: 0 8px 8px 0;
    text-align: left;
}

.cta-box h3 { margin-top: 0; color: var(--brand-navy); }
.cta-box p { margin-bottom: 1.5rem; color: var(--text-main); }


/* --- DIRECTORY TEMPLATE WRAPPER (articles.html) --- */
.catalog-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 5%;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.article-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 2.5rem;
    border: 1px solid #E0E0E0;
    border-left: 6px solid var(--brand-blue); 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.article-category {
    color: var(--brand-blue);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.article-title {
    font-size: 1.6rem;
    color: var(--brand-navy);
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 800;
}

.article-title a {
    text-decoration: none;
    color: inherit;
}

.article-title a:hover {
    color: var(--brand-blue);
}

.article-excerpt {
    color: #6C757D;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.article-link {
    text-decoration: none;
    color: var(--brand-blue);
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
}

.article-link::after {
    content: "→";
    margin-left: 8px;
    transition: margin-left 0.2s;
}

.article-link:hover::after {
    margin-left: 12px;
}


/* --- HOMEPAGE STRUCTURAL WRAPPER (index.html) --- */
.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5% 4rem 5%;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--brand-navy);
    margin-bottom: 2rem;
    font-weight: 800;
}

/* --- HERO SLIDER COMPONENTS --- */
.hero-image-container {
    max-width: 1000px;
    margin: -3rem auto 3rem auto;
    padding: 0 5%;
    position: relative;
}

.slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 4px solid white;
    background: #fff;
}

.slide {
    display: none;
    width: 100%;
    animation: fadeEffect 1s;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    display: block;
}

@keyframes fadeEffect {
    from {opacity: 0.4} 
    to {opacity: 1}
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    background-color: rgba(44, 62, 80, 0.5);
    border: none;
    border-radius: 0 3px 3px 0;
    user-select: none;
    transition: 0.3s ease;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 120, 215, 0.9);
}

.dot-container {
    text-align: center;
    padding: 15px 0 0 0;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.active-dot, .dot:hover {
    background-color: var(--brand-blue);
}

/* --- FEATURES GRID LAYOUT --- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #E0E0E0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.feature-card h3 { 
    color: var(--brand-blue); 
    margin-bottom: 1rem; 
    font-size: 1.3rem;
    border-bottom: 2px solid #F0F0F0;
    padding-bottom: 0.5rem;
}

.feature-list {
    list-style: none;
    margin-top: 1rem;
}

.feature-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.feature-list li::before {
    content: "▪";
    position: absolute;
    left: 0;
    color: var(--brand-navy);
    font-weight: bold;
}

/* --- PRICING GRID LAYOUT --- */
.pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.price-tier {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    border: 1px solid #E0E0E0;
    text-align: center;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.price-tier.pro {
    border: 2px solid var(--brand-blue);
    transform: scale(1.02);
}

.price-tier h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.price { font-size: 2.5rem; font-weight: 800; margin-bottom: 1.5rem; color: var(--brand-navy); }

.tier-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.tier-features li { margin-bottom: 0.8rem; padding-left: 1.5rem; position: relative; }
.tier-features li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-green); font-weight: bold; }

/* --- INTERACTIVE UTILITY BUTTONS --- */
.btn, .btn-primary, .btn-outline {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-outline { 
    background: transparent; 
    border: 2px solid var(--brand-navy); 
    color: var(--brand-navy); 
}
.btn-outline:hover { 
    background: var(--brand-navy); 
    color: white; 
}

.btn-primary { 
    background: var(--brand-blue); 
    color: white; 
}
.btn-primary:hover { 
    background: #0063B1; 
}

.price-tier .btn, 
.price-tier .btn-outline, 
.price-tier .btn-primary {
    width: 100%;
    margin-top: auto;
}

/* --- SITE FOOTER --- */
footer {
    text-align: center;
    padding: 3rem 5%;
    color: #6C757D;
    font-size: 0.9rem;
    border-top: 1px solid #E0E0E0;
    margin-top: 3rem;
}

/* ==========================================================================
   PRINT MEDIA RULES: Generates Presentation-Ready Whitepaper PDFs
   ========================================================================== */
@media print {
    nav, footer, .cta-box, .btn, .hero-image-container, .pricing, .section-title {
        display: none !important;
    }
    body {
        background-color: #FFFFFF !important;
        color: #000000 !important;
        font-size: 11pt;
    }
    .container {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
    }
}