.educationalhero {
    width: 100%;
    height: 100%;
    background: url(pictures/hu-chen-tCbTGNwrFNM-unsplash.jpg);
    background-size: cover;
    display: flex;
    align-items: center;
    padding-left: 80px;
    padding-top: 40px;
}

.educationalhero-card {
    width: 631px;
    height: 562px;
    background: rgba(255,255,255,0.8);
    border-radius: 30px;
    padding: 80px;
    box-shadow: 10px 0px 4px rgba(0, 0, 0, 0.25);
}

.educationalhero-title {
    font-family: 'Fredoka';
    font-weight: bold;
    font-size:50px;
    margin-top: 80px;
    color: #DA3B80;
}

.educationalhero-text {
    font-family: 'Didact Gothic';
    font-size: 20px;
    margin-top: 20px;
    line-height: 1.6;
    color: #333333;
}

.tips-section {
    width: 100%;
    padding: 80px 100px;
    box-sizing: border-box;
    background-image: url('pictures/Rectangle\ 197.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tips-main-title {
    font-family: 'Fredoka';
    font-weight: bold;
    font-size: 42px;
    color: white;
    margin: 0;
}

.tips-subtitle {
    font-family: 'Fredoka';
    font-weight: bold;
    font-size: 28px;
    color: white;
    margin: 0;
}

.tips-intro {
    font-size: 18px;
    color: white;
    line-height: 1.7;
    text-align: justify;
    max-width: 900px;
    margin: 0;
}

.tips-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 20px;
}

.tip-card {
    background: #FFF7EE;
    border-radius: 30px;
    padding: 30px;          
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;              
    box-sizing: border-box;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.tip-title {
    font-family: 'Fredoka';
    font-weight: bold;
    font-size: 20px;
    color: #333333;
    margin: 0;
}

.tip-text {
    font-size: 18px;
    color: #333333;
    line-height: 1.7;
    text-align: justify;
    margin: 0;
}

.tip-icon {
    width: 150px;
    height: 150px;
    object-fit: contain;
    align-self: center;
    margin-top: auto;
}

.ttips-section {
    width: 100%;
    padding: 80px 100px;
    box-sizing: border-box;
    background-image: url('pictures/mistakeb.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ttips-main-title {
    font-family: 'Fredoka';
    font-weight: bold;
    font-size: 42px;
    color: #333333;
    margin: 0;
}

.ttips-subtitle {
    font-family: 'Fredoka';
    font-weight: bold;
    font-size: 28px;
    color: #333333;
    margin: 0;
}

.ttips-intro {
    font-size: 18px;
    color: #333333;
    line-height: 1.7;
    text-align: justify;
    max-width: 900px;
    margin: 0;
}

.ttips-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 20px;
}

.ttip-card {
    background: #FFF7EE;
    border-radius: 30px;
    padding: 30px;         
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;           
    box-sizing: border-box;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.ttip-title {
    font-family: 'Fredoka';
    font-weight: bold;
    font-size: 20px;
    color: #333333;
    margin: 0;
}

.ttip-text {
    font-size: 18px;
    color: #333333;
    line-height: 1.7;
    text-align: justify;
    margin: 0;
}

.ttip-icon {
    width: 150px;
    height: 150px;
    object-fit: contain;
    align-self: center;
    margin-top: auto;
}

.instructions-section {
    width: 100%;
    padding: 60px 80px;
    box-sizing: border-box;
    background-image: url('pictures/instructionb.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    box-shadow: 0px 4px 4px rgba(0,0,0,0.25);
}

.instructions-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.instructions-title {
    font-family: 'Fredoka';
    font-weight: bold;
    font-size: 36px;
    color: #333333;
    margin: 0;
}

.instructions-bubble {
    width: 80px;
}

.instructions-book {
    cursor: pointer;
    border-radius: 30px;
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    align-self: center;
}

.book-cover-img {
    width: 100%;
    height: auto;
    display: block;
}

.book-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 1000000;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    box-sizing: border-box;
}

.book-popup-overlay.active {
    display: flex;
}

.popup-topbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    box-sizing: border-box;
    background: rgba(0,0,0,0.5);
    flex-shrink: 0;
}

.page-counter {
    color: white;
    font-family: 'Fredoka';
    font-size: 20px;
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zoom-btn {
    padding: 6px 16px;
    border: none;
    border-radius: 20px;
    background: #50B7E8;
    color: white;
    font-family: 'Fredoka';
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

.zoom-btn:hover {
    background: #38a0d0;
}

.zoom-level {
    color: white;
    font-family: 'Fredoka';
    font-size: 16px;
    min-width: 50px;
    text-align: center;
}

.quit-btn {
    padding: 8px 24px;
    border: none;
    border-radius: 20px;
    background: #e8003d;
    color: white;
    font-family: 'Fredoka';
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.popup-canvas {
    flex: 1;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    position: relative;
}

.popup-canvas.dragging {
    cursor: grabbing;
}

.popup-img-wrapper {
    position: absolute;
    transform-origin: center center;
    transition: transform 0.1s ease;
    will-change: transform;
}

#popupImg {
    display: block;
    max-width: 90vw;
    max-height: calc(100vh - 140px);
    width: auto;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    pointer-events: none;
    user-select: none;
}

.flip-controls {
    display: flex;
    gap: 20px;
    padding: 10px 16px;
    flex-shrink: 0;
    background: rgba(0,0,0,0.5);
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
}

.flip-btn {
    padding: 12px 40px;
    border: none;
    border-radius: 30px;
    background: #50B7E8;
    color: white;
    font-family: 'Fredoka';
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.flip-btn:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
}

.faq-section {
    width: 100%;
    padding: 80px 100px;
    box-sizing: border-box;
    background-image: url('pictures/faqbackground.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.faq-deco {
    position: absolute;
    top: -22px;
    right: 20px;
    width: 220px;
}

.faq-title {
    font-family: 'Fredoka';
    font-weight: bold;
    font-size: 32px;
    color: #333;
    margin: 0 0 20px 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    display: flex;
    align-items: center;
    position: relative;
}

.faq-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #FAA633;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Didact Gothic';
    font-size: 28px;
    color: #333333;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0px 4px 4px rgba(0,0,0,0.25);
}

.faq-card {
    background: #FFF7EE;
    border-radius: 50px;
    padding: 20px 60px 20px 50px;
    margin-left: -20px;
    flex: 1;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0px 4px 4px rgba(0,0,0,0.25);
}

.faq-question {
    font-family: 'Didact Gothic';
    font-size: 24px;
    color: #333333;
    margin: 0;
    line-height: 1.5;
}

.faq-answer {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #ddd;
}

.faq-answer p {
    font-family: 'Didact Gothic';
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-item.open .faq-card {
    border-radius: 30px;
}

.faq-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: transparent;
    font-size: 32px;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: -50px;
    position: relative;
    z-index: 3;
    transition: transform 0.3s;
}

.faq-item.open .faq-btn {
    transform: rotate(45deg);
}