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

body {
    font-family: "Montserrat", sans-serif;
    background: linear-gradient(135deg, #f5e6e8, #d4858f);
    color: #333;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

.logo {
    position: fixed;
    top: 20px;
    left: 30px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #d4858f;
    z-index: 100;
}

.slide {
    display: none;
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 40px 120px;
    min-height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: 2.8rem;
    color: #d4858f;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

h2 {
    font-size: 2.2rem;
    color: #d4858f;
    margin-bottom: 25px;
    font-weight: 600;
}

h3 {
    font-size: 1.6rem;
    color: #d4858f;
    margin: 25px 0 15px;
    font-weight: 500;
}

p {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #444;
}

.subtitle {
    font-size: 1.4rem;
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-style: italic;
}

.author-info {
    text-align: center;
    margin: 30px 0;
}

.author-name {
    font-size: 1.8rem;
    font-weight: 600;
    color: #d4858f;
    margin-bottom: 10px;
}

.author-title {
    font-size: 1.4rem;
    color: #777;
}

.navigation {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 100;
}

.nav-btn {
    background: #d4858f;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(212, 133, 143, 0.3);
}

.nav-btn:hover {
    background: #c0747d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 133, 143, 0.4);
}

.nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.slide-counter {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #d4858f;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

ul {
    margin: 20px 0;
    padding-left: 30px;
}

ul li {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.5;
    position: relative;
}

ul li:before {
    content: "•";
    color: #d4858f;
    font-size: 1.5rem;
    position: absolute;
    left: -20px;
    top: -2px;
}

.highlight {
    background: linear-gradient(
        120deg,
        rgba(212, 133, 143, 0.2) 0%,
        rgba(212, 133, 143, 0.4) 100%
    );
    padding: 3px 8px;
    border-radius: 5px;
    font-weight: 500;
    color: #333;
}

.author-photo {
    width: 250px;
    height: auto;
    aspect-ratio: 2/3;
    margin: 0 auto 20px;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.slide-image {
    max-width: 100%;
    border-radius: 15px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.image-grid img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Topic navigation styles */
.topic-nav {
    position: fixed;
    top: 80px;
    right: 30px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    overflow-y: auto;
    z-index: 90;
    max-height: calc(100vh - 200px);
}

/* Navigation toggle button for mobile */
.nav-toggle {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(212, 133, 143, 0.9);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    z-index: 95;
    display: none;
}

/* Hide topic nav on mobile by default */
@media (max-width: 1024px) {
    .nav-toggle {
        display: block;
    }

    .topic-nav {
        display: none;
        right: 20px;
        left: 20px;
        top: 120px;
        max-width: calc(100% - 40px);
        max-height: 50vh;
    }

    /* Show topic nav when toggled */
    .topic-nav.show-mobile {
        display: flex;
    }

    /* Adjust slide padding on mobile to prevent overlap */
    .slide {
        padding-right: 20px;
        padding-left: 20px;
    }
}

.topic-btn {
    background: #f0f0f0;
    color: #666;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    text-align: left;
}

.topic-btn:first-child {
    background: #d4858f;
    color: white;
    font-weight: bold;
}

.topic-btn:hover {
    background: #e0e0e0;
}

.topic-btn.active {
    background: #d4858f;
    color: white;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.column-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.good {
    color: #2e7d32;
}

.bad {
    color: #c62828;
}

.features-list {
    margin: 20px 0;
}

.type-number {
    display: inline-block;
    background: #d4858f;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 15px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .slide {
        padding: 70px 20px 100px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    p {
        font-size: 1.1rem;
    }

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

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

    .topic-nav {
        max-width: 95%;
        bottom: 210px;
    }
}
