/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    color: #1a1a1a;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    padding: 3rem 1.5rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1200&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 32, 39, 0.85) 0%, rgba(44, 83, 100, 0.75) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Main Content */
.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

article {
    background: #ffffff;
}

article p {
    margin-bottom: 1.75rem;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #2d3748;
}

.lead {
    font-size: 1.25rem !important;
    font-weight: 400;
    color: #1a202c !important;
    line-height: 1.7 !important;
    margin-bottom: 2.5rem !important;
}

/* Footer */
.footer {
    background: #0f2027;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 2rem 1.5rem;
    font-size: 0.9375rem;
}

.footer p {
    margin: 0;
}
/* Image Styles */
article img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Inline Images */
.inline-image {
    display: inline-block;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    margin: 0 0.5rem;
}

/* Full Width Images */
.full-width-image {
    width: 100%;
    height: auto;
    margin: 2.5rem 0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Small Inline Icons */
.icon-inline {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    vertical-align: text-bottom;
    margin: 0 0.25rem;
}

/* Image with Caption */
.image-wrapper {
    margin: 2.5rem 0;
    text-align: center;
}

.image-wrapper img {
    margin: 0 auto 1rem;
}

.image-caption {
    font-size: 0.9rem;
    color: #718096;
    font-style: italic;
    line-height: 1.5;
}

/* Two Column Images */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.image-grid img {
    margin: 0;
    width: 100%;
}

/* Rounded Circle Images (for avatars, icons) */
.image-circle {
    border-radius: 50%;
    max-width: 150px;
}

/* Images in Paragraphs - Float Left/Right */
.float-left {
    float: left;
    margin: 0.5rem 1.5rem 1rem 0;
    max-width: 45%;
}

.float-right {
    float: right;
    margin: 0.5rem 0 1rem 1.5rem;
    max-width: 45%;
}

/* Clear floats */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Lazy Loading / Progressive Enhancement */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Responsive Image Adjustments */
@media (max-width: 768px) {
    article img {
        margin: 1.5rem auto;
        border-radius: 6px;
    }

    .full-width-image {
        margin: 2rem 0;
        border-radius: 8px;
    }

    .float-left,
    .float-right {
        float: none;
        max-width: 100%;
        margin: 1.5rem auto;
        display: block;
    }

    .image-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin: 2rem 0;
    }

    .image-wrapper {
        margin: 2rem 0;
    }

    .image-caption {
        font-size: 0.85rem;
    }

    .inline-image {
        margin: 0 0.25rem;
    }
}

@media (max-width: 480px) {
    article img {
        margin: 1.25rem auto;
        border-radius: 4px;
    }

    .full-width-image {
        margin: 1.5rem 0;
        border-radius: 6px;
    }

    .image-wrapper {
        margin: 1.5rem 0;
    }

    .image-circle {
        max-width: 100px;
    }

    .icon-inline {
        width: 1em;
        height: 1em;
    }
}

@media (min-width: 1200px) {
    article img {
        margin: 3rem auto;
    }

    .full-width-image {
        margin: 3.5rem 0;
    }

    .image-grid {
        gap: 2rem;
        margin: 3rem 0;
    }
}

/* Prevent layout shift */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* High DPI displays optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        min-height: 50vh;
        padding: 2.5rem 1.25rem;
    }

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

    .hero-badge {
        font-size: 0.8125rem;
        padding: 0.4rem 1rem;
        margin-bottom: 1.5rem;
    }

    .content {
        padding: 3rem 1.25rem;
    }

    article p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .lead {
        font-size: 1.125rem !important;
    }

    .footer {
        padding: 1.75rem 1.25rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .hero {
        min-height: 45vh;
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.875rem;
    }

    .content {
        padding: 2.5rem 1rem;
    }
}

@media (min-width: 1200px) {
    .hero h1 {
        font-size: 3rem;
    }

    .content {
        padding: 5rem 1.5rem;
    }

    article p {
        font-size: 1.125rem;
    }

    .lead {
        font-size: 1.375rem !important;
    }
}