/* =========================
   RESET & BASE
========================= */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    line-height: 1.8em;
    background-color: #ffe6f0; /* soft pink base */

    /* Hearts pattern */
    background-image:
        radial-gradient(#ffb6c1 10%, transparent 10%),
        radial-gradient(#ffb6c1 10%, transparent 10%);
    background-position: 0 0, 25px 25px;
    background-size: 50px 50px;
}

/* =========================
   LAYOUT (3 COLUMNS)
========================= */
.container {
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    gap: 20px;
    padding:40px 0;
}

.sidebar,
.right-col {
    padding: 15px;
    border-radius: 10px;
}

.main {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* =========================
   TYPOGRAPHY
========================= */
h1, h2, h3 {
    text-align: center;
    color: #e63946;
}

p {
    line-height: 1.7;
}

/* =========================
   QUIZ STEPS
========================= */
.question {
    display: none;
}

.question.active {
    display: block;
}

/* =========================
   FORM ELEMENTS
========================= */
label {
    display: block;
    margin: 8px 0;
    cursor: pointer;
}

input[type="radio"] {
    margin-right: 8px;
}

/* =========================
   BUTTONS
========================= */
button {
    background: #e63946;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
}

button:hover {
    opacity: 0.9;
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* =========================
   QUIZ NAVIGATION
========================= */
.quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.quiz-nav .prevBtn {
    background: #999;
}

.quiz-nav .nextBtn {
    margin-left: auto;
}

.quiz-nav button {
    width: auto;
    min-width: 120px;
}

/* Align "See My Result" button to the right */
.quiz-nav button[type="submit"] {
    margin-left: auto;
    display: inline-block;
}

 h1 {
            text-align: center;
            color: #e63946;
            margin-top: 30px;
        }

        p {
            text-align: center;
            font-size: 16px;
            margin-bottom: 20px;
        }

h2 { font-size: 24px; color: #e63946; margin: 20px 0; }
        h3 { margin-top: 30px; color: #d62839; }
        

/* =========================
   SHARE BUTTON
========================= */

a.tool-share {
    display: inline-block;
    margin: 20px auto;
    text-align: center;
}

 a.tool-share, a.try-again, ul li a {
            color: white;
            text-decoration: none;
            display: inline-block;
            padding: 12px 18px;
            border-radius: 8px;
            text-align: center;
            font-weight: bold;
            margin: 5px 0;
        }

        a.tool-share {
            background-color: #25D366; /* WhatsApp green */
        }

        a.tool-share:hover {
            background-color: #1ebe57;
        }

        a.try-again {
            background-color: #e63946;
        }

        a.try-again:hover {
            background-color: #d62839;
        }

        ul {
            padding-left: 20px;
        }

        ul li a {
            background: none;
            color: #e63946;
            padding: 0;
            font-weight: normal;
        }

        ul li a:hover {
            text-decoration: underline;
        }

/* =========================
   LISTS
========================= */
ul {
    padding-left: 20px;
}

ul li {
    margin-bottom: 8px;
}

/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    .sidebar,
    .right-col {
        display: none;
    }

    .main {
        padding: 20px;
    }

    h1 {
        font-size: 22px;
    }
}

/* -- sidebar recent posts -- */
    .sidebar-recent-posts {
    background: #fff0f5; /* soft pink bg for sidebar */
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.sidebar-recent-posts h3 {
    font-size: 20px;
    margin-bottom: 12px;
    text-align: center;
    color: #e63946;
}

.sidebar-recent-posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-recent-posts ul li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    transition: transform 0.2s;
}

.sidebar-recent-posts ul li:hover {
    transform: translateX(5px);
}

.sidebar-recent-posts .thumbnail img {
    width: 12vw;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 5px;
}

.sidebar-recent-posts .title {
    font-size: 16px;
    color: #333;
    display: inline-block;
}

/* Mobile collapse */
@media (max-width: 768px) {
    .sidebar-recent-posts ul li {
        flex-direction: column;
        align-items: flex-start;
    }

    .sidebar-recent-posts .thumbnail img {
        margin-bottom: 6px;
        width:50vw;
        height: auto;
    }
}