/* Active nav link for this page */
.nav a.active {
    background: #ffcccb;
}

/* ===== 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;
}

.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-section {
    background: white;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-soft);
}

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

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

.content-section h3 {
    color: var(--accent-green);
    margin: 24px 0 12px;
}

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

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

/* Document list */
.document-list {
    list-style: none;
    margin: 20px 0;
}

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

.document-list li::before {
    content: '📄';
    position: absolute;
    left: 0;
    top: 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;
}

/* Adaptation timeline */
.adaptation-timeline {
    margin: 24px 0;
}

.timeline-item {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
}

.timeline-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.timeline-day {
    flex-shrink: 0;
    width: 80px;
    height: 40px;
    background: var(--accent-blue);
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.timeline-day.week {
    background: var(--accent-orange);
}

.timeline-content {
    flex: 1;
    padding-top: 8px;
}

.timeline-content p {
    margin: 0;
}

/* Daily schedule */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.schedule-table tr {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.schedule-table tr:last-child {
    border-bottom: none;
}

.schedule-table td {
    padding: 12px 8px;
    vertical-align: top;
}

.schedule-table td:first-child {
    width: 120px;
    font-weight: 700;
    color: var(--accent-blue);
    white-space: nowrap;
}

.schedule-table td:last-child {
    color: var(--text-mid);
}

/* Items checklist */
.items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.item-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--sky-light);
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-mid);
}

.item-tag .icon {
    font-size: 1.1rem;
}

/* Tips box */
.tips-box {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-left: 4px solid var(--accent-orange);
    padding: 20px 24px;
    border-radius: 0 16px 16px 0;
    margin: 24px 0;
}

.tips-box h4 {
    color: var(--accent-orange);
    margin-bottom: 12px;
    font-family: 'Nunito', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tips-box ul {
    list-style: none;
    margin: 0;
}

.tips-box li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-mid);
    font-size: 0.95rem;
}

.tips-box li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: 700;
}

.tips-box li:last-child {
    margin-bottom: 0;
}

/* ===== 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-red) 0%, #c62828 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);
}

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

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

.contact-info a:hover {
    color: white;
}

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

/* Quick nav */
.quick-nav {
    list-style: none;
}

.quick-nav li {
    margin-bottom: 8px;
}

.quick-nav a {
    display: block;
    padding: 10px 14px;
    background: var(--sky-light);
    border-radius: 10px;
    color: var(--text-mid);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.quick-nav a:hover {
    /* Rollback note: previous hover used var(--accent-blue). */
    background: var(--accent-red);
    color: white;
}

.quick-nav a:focus-visible {
    outline: 2px solid rgba(210, 77, 87, 0.35);
    outline-offset: 2px;
}

.quick-nav a[aria-current="true"] {
    background: rgba(210, 77, 87, 0.14);
    color: var(--accent-red);
}

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

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

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

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

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

    .timeline-item {
        flex-direction: column;
        gap: 10px;
    }

    .timeline-day {
        width: 100%;
    }
}
