/* Active nav link for this page */
.nav a.active {
    background: var(--accent-yellow);
}

/* ===== Page Hero ===== */
.page-hero {
    background: linear-gradient(180deg, var(--sky-light) 0%, var(--sky-mid) 100%);
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23fffef5' d='M0,30 C200,60 400,0 600,30 C800,60 1000,0 1200,30 C1300,45 1400,15 1440,30 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
}

/* Decorative clouds */
.page-hero .cloud {
    position: absolute;
    background: white;
    border-radius: 100px;
    opacity: 0.7;
}

.page-hero .cloud::before,
.page-hero .cloud::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50%;
}

.page-hero .cloud-1 {
    width: 100px;
    height: 35px;
    top: 25%;
    left: 8%;
}
.page-hero .cloud-1::before { width: 40px; height: 40px; top: -20px; left: 18px; }
.page-hero .cloud-1::after { width: 30px; height: 30px; top: -12px; left: 50px; }

.page-hero .cloud-2 {
    width: 80px;
    height: 28px;
    top: 35%;
    right: 12%;
}
.page-hero .cloud-2::before { width: 32px; height: 32px; top: -16px; left: 12px; }
.page-hero .cloud-2::after { width: 24px; height: 24px; top: -10px; left: 38px; }

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-hero h1 {
    color: var(--text-dark);
    margin-bottom: 12px;
    text-shadow: 2px 2px 0 rgba(255,255,255,0.5);
}

.breadcrumbs {
    font-size: 0.95rem;
    color: var(--text-mid);
}

.breadcrumbs a {
    color: var(--accent-blue);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* ===== Main Content ===== */
.main-content {
    padding: 60px 0 80px;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
    align-items: start;
}

/* Content blocks */
.content-section {
    background: white;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-soft);
}

.content-section h2 {
    color: var(--accent-green);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-section h2 .icon {
    font-size: 1.4em;
}

.content-section p {
    margin-bottom: 16px;
}

.content-section p:last-child {
    margin-bottom: 0;
}

/* Highlight list */
.highlight-list {
    list-style: none;
    margin: 20px 0;
}

.highlight-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    color: var(--text-mid);
}

.highlight-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    background: var(--accent-green);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.feature-item {
    background: var(--sky-light);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
}

.feature-item .icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.feature-item h4 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-size: 1rem;
}

.feature-item p {
    font-size: 0.9rem;
    margin: 0;
}

/* Licenses */
.licenses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.license-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
    background: var(--sky-light);
    padding: 16px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease;
}

.license-card:hover {
    transform: translateY(-3px);
}

.license-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.08);
}

.license-file-card {
    width: 100%;
    min-height: 252px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 10px;
    border: 2px dashed rgba(41, 147, 224, 0.35);
    background: linear-gradient(180deg, #ffffff 0%, #eef7fd 100%);
    padding: 24px 16px;
    box-sizing: border-box;
}

.license-file-icon {
    width: 88px;
    height: 108px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.license-file-sheet {
    width: 74px;
    height: 94px;
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
    border: 2px solid rgba(41, 147, 224, 0.18);
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(41, 147, 224, 0.12);
}

.license-file-sheet::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 14px;
    width: 46px;
    height: 3px;
    border-radius: 999px;
    background: rgba(41, 147, 224, 0.18);
    box-shadow:
        0 12px 0 rgba(41, 147, 224, 0.18),
        0 24px 0 rgba(41, 147, 224, 0.18),
        0 36px 0 rgba(41, 147, 224, 0.18);
}

.license-file-sheet::after {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    width: 24px;
    height: 24px;
    background:
        linear-gradient(135deg, rgba(41, 147, 224, 0.08) 0 49%, transparent 50% 100%);
    border-top-right-radius: 10px;
}

.license-file-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(41, 147, 224, 0.12);
    color: var(--accent-blue);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.license-file-note {
    font-size: 0.82rem;
    text-align: center;
    color: var(--accent-blue);
    font-weight: 700;
    line-height: 1.2;
}

.license-card span {
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}

.license-note {
    font-size: 0.82rem;
    text-align: center;
    color: var(--accent-blue);
    font-weight: 700;
    line-height: 1.2;
}

/* ===== Sidebar ===== */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
}

.sidebar-card h3 {
    color: var(--accent-blue);
    margin-bottom: 16px;
    font-size: 1.15rem;
}

.sidebar-card p {
    font-size: 1rem;
    margin-bottom: 8px;
}

.sidebar-card p:last-child {
    margin-bottom: 0;
}

.sidebar-card.highlight {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1976d2 100%);
    color: white;
}

.sidebar-card.highlight h3 {
    color: white;
}

.sidebar-card.highlight p {
    color: rgba(255,255,255,0.9);
}

.sidebar-card .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 16px;
    background: var(--accent-yellow);
    color: var(--text-dark);
}

.sidebar-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.stem-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    margin-top: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    padding-bottom: 4px;
}

.stem-link img {
    height: 28px;
    width: auto;
    display: block;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-info a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-mid);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contact-info a:hover {
    color: var(--accent-blue);
}

.contact-info .icon {
    font-size: 1.2rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

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

@media (max-width: 600px) {
    .content-section {
        padding: 28px 24px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .licenses-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }
}
