/* Apply Inter font and basic styling */
body {
    font-family: "Inter", sans-serif;
    background-color: #f0f4f8; /* Light gray background */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

h1 {
    color: #1a202c; /* Dark text */
    margin-bottom: 40px;
    font-size: 2.5rem; /* Larger heading */
    font-weight: 700;
    text-align: center;
}

.exercise-section {
    background-color: #ffffff; /* White background for sections */
    padding: 30px;
    border-radius: 15px; /* Rounded corners */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08); /* Soft shadow */
    margin-bottom: 40px;
    width: 100%;
    max-width: 700px;
    text-align: center;
}

.exercise-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 25px;
    border-bottom: 2px solid #edf2f7; /* Subtle separator */
    padding-bottom: 10px;
}

/* --- Exercise 2: Colorful Button on Hover --- */
.qseudo-ex {
    position: relative;
}
.qseudo-ex::after {
    content: "";
    width: 30%;
    height: 3px;
    background-color: blue;
    position: absolute;
    top: 45%;
    right: 0;
}
.qseudo-ex::before {
    content: "";
    width: 30%;
    height: 3px;
    background-color: red;
    position: absolute;
    top: 45%;
    left: 0;
}

/* --- Exercise 2: Colorful Button on Hover --- */
.color-button {
    background-color: tomato; /* Soft Orange */
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: 600;
}

.color-button:hover {
    background-color: yellowgreen; /* Darker Orange on hover */
    color: #fff; /* Ensure text stays white */
}

/* --- Exercise 2: List Item with Emoji Bullet Change --- */
.emoji-list {
    list-style: none; /* Remove default bullets */
    padding: 0;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.emoji-list li {
    position: relative;
    padding: 10px 0 10px 35px; /* Space for custom bullet */
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #4a5568; /* Gray text */
    border-bottom: 1px dashed #e2e8f0; /* Subtle separator */
    cursor: pointer; /* Indicate interactivity */
}

.emoji-list li::before {
    content: "🔵"; /* Default blue circle emoji */
    position: absolute;
    left: 0;
    top: 50%;
    /* Kept for vertical alignment, not animation */
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.emoji-list li:hover {
    color: #805ad5; /* Purple text on hover */
}

.emoji-list li:hover::before {
    content: "✨"; /* Change bullet to sparkle emoji on hover */
}

/* --- Exercise 3: Simple Image Border on Hover --- */
.image-border-container {
    width: 280px; /* Fixed width for the image container */
    height: 200px; /* Fixed height */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto; /* Center the container */
    overflow: hidden; /* Ensure image stays within rounded border */
    border: 5px solid transparent; /* Start with transparent border */
}

.image-border-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the container */
    display: block;
}

.image-border-container:hover {
    border: 5px solid #48bb78; /* Green border on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
}

/* --- Exercise 4: Text with Icon Reveal on Hover --- */
.text-with-icon {
    font-size: 1.3rem;
    color: #2d3748;
    font-weight: 500;
    position: relative;
    display: inline-block; /* Allows ::after to position relative to the text */
    padding-right: 25px; /* Space for the icon */
    cursor: help; /* Indicates something will appear */
}

.text-with-icon::after {
    content: ""; /* Starts empty */
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%); /* Center vertically */
    font-size: 1.5rem;
    opacity: 0; /* Starts invisible */
    color: #e53e3e; /* Red color for the icon */
}

.text-with-icon:hover::after {
    content: "💡"; /* Lightbulb emoji on hover */
    opacity: 1; /* Make icon visible */
}

/* General utility classes for spacing */
.mb-8 {
    margin-bottom: 2rem;
}
.mt-4 {
    margin-top: 1rem;
}
