/* IoC Skills Bootcamps - Global Styles */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --forest: #2D6A4F;
    --forest-dark: #1B4332;
    --forest-light: #40916C;
    --amber: #E6A817;
    --amber-soft: #F5D06B;
    --cream: #FDFCF7;
    --sand: #F0ECE2;
    --charcoal: #1C1C28;
    --slate: #4A4A5A;
    --mist: #8B8B9A;
    --white: #FFFFFF;
    --border: #D9D5CC;
    --shadow-sm: 0 1px 3px rgba(28,28,40,0.06);
    --shadow-md: 0 4px 12px rgba(28,28,40,0.08);
    --shadow-lg: 0 8px 30px rgba(28,28,40,0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--charcoal);
    background-color: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--forest-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Skip link */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--forest);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    z-index: 9999;
    font-size: 0.875rem;
}

.skip-to-content:focus {
    top: 0.5rem;
    color: var(--white);
}

/* Site Header */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-logo svg {
    height: 38px;
    width: auto;
}

.site-logo span {
    font-size: 0;
}

/* Primary Navigation */
.primary-navigation {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.primary-navigation a {
    color: var(--charcoal);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease, color 0.2s ease;
}

.primary-navigation a:hover,
.primary-navigation a[aria-current="page"] {
    background: var(--sand);
    color: var(--forest);
}

.primary-navigation .cta-link {
    background: var(--forest);
    color: var(--white);
    margin-left: 0.5rem;
    padding: 0.5rem 1.25rem;
}

.primary-navigation .cta-link:hover {
    background: var(--forest-dark);
    color: var(--white);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--charcoal);
}

.mobile-toggle svg {
    width: 26px;
    height: 26px;
}

/* Info Banner */
.info-banner {
    background: var(--sand);
    border-bottom: 1px solid var(--border);
}

.info-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.7rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--slate);
    line-height: 1.55;
}

.info-banner-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--forest);
}

.info-banner a {
    color: var(--forest);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--forest-light);
    text-underline-offset: 2px;
}

.info-banner a:hover {
    color: var(--forest-dark);
    text-decoration-color: var(--forest-dark);
}

@media (max-width: 480px) {
    .info-banner-inner {
        font-size: 0.8125rem;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest) 50%, var(--forest-light) 100%);
    color: var(--white);
    padding: 5rem 1.5rem 4.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--cream);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-inner {
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero-section h1 em {
    font-style: normal;
    color: var(--amber);
}

.hero-tagline {
    font-size: 1.2rem;
    opacity: 0.92;
    max-width: 620px;
    margin: 0 auto 2.25rem;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    background: var(--amber);
    color: var(--charcoal);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-primary:hover {
    background: var(--amber-soft);
    color: var(--charcoal);
    transform: translateY(-1px);
}

.btn-outline {
    display: inline-block;
    border: 2px solid rgba(255,255,255,0.4);
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

/* Content Sections */
.content-band {
    padding: 4.5rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.content-band.narrow {
    max-width: 860px;
}

.section-heading {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
    letter-spacing: -0.015em;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--slate);
    max-width: 680px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.accent-bar {
    width: 48px;
    height: 4px;
    background: var(--amber);
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

/* Topic Cards */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.topic-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem 1.75rem;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.topic-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.topic-card .icon-wrap {
    width: 48px;
    height: 48px;
    background: var(--sand);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.topic-card .icon-wrap svg {
    width: 24px;
    height: 24px;
    color: var(--forest);
}

.topic-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.625rem;
}

.topic-card p {
    color: var(--slate);
    font-size: 0.9375rem;
    line-height: 1.65;
}

/* Two Column Layout */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4.5rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.split-section.reversed {
    direction: rtl;
}

.split-section.reversed > * {
    direction: ltr;
}

.split-visual {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--sand);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.split-visual svg {
    width: 70%;
    height: auto;
}

/* Stats Bar */
.stats-band {
    background: var(--forest-dark);
    color: var(--white);
    padding: 3.5rem 1.5rem;
}

.stats-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--amber);
    line-height: 1.2;
}

.stat-item .label {
    font-size: 0.9375rem;
    opacity: 0.85;
    margin-top: 0.375rem;
}

/* Audience Sections */
.audience-block {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.audience-block h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.audience-block p {
    color: var(--slate);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.audience-block p:last-child {
    margin-bottom: 0;
}

.audience-tag {
    display: inline-block;
    background: var(--sand);
    color: var(--forest);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--forest) 0%, var(--forest-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 4rem 1.5rem;
    border-radius: var(--radius-lg);
    margin: 2rem auto;
    max-width: 1200px;
}

.cta-banner h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cta-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 560px;
    margin: 0 auto 2rem;
}

/* Partners Section */
.partners-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 2rem 0;
    opacity: 0.6;
}

.partners-logos svg {
    height: 32px;
    width: auto;
}

/* Site Footer */
.site-footer {
    background: var(--charcoal);
    color: rgba(255,255,255,0.7);
    padding: 3.5rem 1.5rem 2rem;
    font-size: 0.9375rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand p {
    margin-top: 1rem;
    line-height: 1.7;
    font-size: 0.875rem;
}

.footer-column h4 {
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
    font-size: 0.8125rem;
}

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

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

/* Cookie Notice */
.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--charcoal);
    color: rgba(255,255,255,0.85);
    padding: 1.25rem 1.5rem;
    z-index: 999;
    display: none;
    font-size: 0.875rem;
}

.cookie-bar.visible {
    display: block;
}

.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-inner p {
    flex: 1;
    min-width: 280px;
    line-height: 1.6;
}

.cookie-inner a {
    color: var(--amber-soft);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-accept {
    background: var(--forest);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cookie-accept:hover {
    background: var(--forest-light);
}

.cookie-decline {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.cookie-decline:hover {
    border-color: rgba(255,255,255,0.5);
    color: var(--white);
}

/* Responsive */
@media (max-width: 960px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .split-section {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .split-section.reversed {
        direction: ltr;
    }
}

@media (max-width: 860px) {
    .content-band [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .site-header .wrap {
        height: 64px;
    }

    .primary-navigation {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem 1.5rem 1.5rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

    .primary-navigation.open {
        display: flex;
    }

    .primary-navigation a {
        width: 100%;
        padding: 0.75rem 0.875rem;
    }

    .primary-navigation .cta-link {
        margin-left: 0;
        text-align: center;
        margin-top: 0.5rem;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-section {
        padding: 3.5rem 1.5rem 3rem;
    }

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

    .hero-tagline {
        font-size: 1.05rem;
    }

    .section-heading {
        font-size: 1.625rem;
    }

    .content-band {
        padding: 3rem 1.5rem;
    }

    .cta-banner {
        margin: 2rem 1rem;
        padding: 3rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .cookie-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-outline {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .stats-inner {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

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

    .audience-block {
        padding: 2rem 1.5rem;
    }
}

/* Blogroll */
.blogroll {
    display: flex;
    flex-direction: column;
    gap: 0;
}

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

.blogroll-item:first-child {
    padding-top: 0.5rem;
}

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

.blogroll-date {
    display: block;
    font-size: 0.8125rem;
    color: var(--mist);
    margin-bottom: 0.4rem;
}

.blogroll-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.blogroll-title a {
    color: var(--charcoal);
    text-decoration: none;
}

.blogroll-title a:hover {
    color: var(--forest);
}

.blogroll-excerpt p {
    color: var(--slate);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.blogroll-excerpt a {
    color: var(--forest);
    text-decoration: underline;
}

.blogroll-more {
    display: inline-block;
    margin-top: 0.25rem;
    color: var(--forest);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
}

.blogroll-more:hover {
    text-decoration: underline;
}
