* {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
}

body {
    line-height: 1;
    font-family: "Euclid Circular A", sans-serif;
}

@keyframes flash {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

header {
    padding: 10px 0;
    height: 90vh;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 0 3%;
    gap: 30px;
    z-index: 1;
    display: flex;
    padding-top: 9rem;
    flex-direction: column;
}

header #logo {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-direction: row;
    width: fit-content;
    align-items: center;
}

header h1 {
    font-size: 2rem;
    color: black;
    font-weight: bold;
    display: inline-block;
    overflow: hidden;
    margin-top: 80px;
}

header h1 span.flash {
    display: inline-block;
    animation: flash 1s linear infinite;
}

main {
    background: white;
    position: relative;
    margin-top: 88vh;
    z-index: 1;
}

.about {
    padding: 40px;
    margin: 0 auto;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 40px;
    display: flex;
    gap: 15px;
    flex-direction: column;
    /* background: #fe347e; */
    background: #F9F9F9;
    /* background: #A9A9A9; */
    /* background: #fbfae7; */
    /* background: #E9EAEB; */
    color: #2f4f4f;
}



.content-section {
    padding: 40px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    gap: 15px;
    flex-direction: column;
}

.about h2 {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 20px;
    margin-top: 10px;
    color: #f28500;
}

.about h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    color: #f28500;
}

.about h4 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    color: #f28500;
}

.about a {
    font-size: 1.5rem;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #f28500;
}

.about p {
    font-size: 1.5rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.about ul {
    font-size: 1.5rem;
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 600px;
}

.about li {
    margin-left: 30px;
}

.subsection {
    margin: 0 auto;
    width: 100%;
    display: flex;
    gap: 15px;
    flex-direction: column;
    font-size: 1.3rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.subsection a {
    color: #5b2d5b;
}

.subsection h3 {
    font-size: 1.5rem;
    color: #5b2d5b;
    font-weight: bold;
}



@media (max-width: 768px) {

    .about,
    .content-section {
        padding: 20px;
    }

    .about p {
        font-size: 1.5rem;
    }

    .about ul {
        font-size: 1.5rem;
        line-height: 1.5;
        margin-bottom: 20px;
        max-width: 600px;
    }

    .about li {
        margin-left: 30px;
    }
}

@media (max-width: 480px) {
    .about p {
        font-size: 1.3rem;
    }

    .about ul {
        font-size: 1.3rem;
    }

    .about li {
        margin-left: 20px;
    }
}

.testimonials-container {
    margin: 0 auto;
    width: 100%;
    margin-top: 20px;
    display: flex;
    gap: 20px;
    flex-direction: column;
}

.testimonials-container h4 {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0px;
    color: #5b2d5b;
}

.testimonials-container img {
    max-width: 600px;
    height: auto;
    border-radius: 20px;
}

.testimonials-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.testimonial {
    min-width: 200px;
    box-sizing: border-box;
    border-radius: 50px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.5;
    flex-shrink: 0;
    gap: 10px;
}

.testimonial h3 {
    font-size: 1.1rem;
    font-weight: bold;
}

.testimonial>div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.as-seen-on {
    margin-top: 30px;
    font-size: 1.3rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.as-seen-on h3,
.testimonials-container h3 {
    font-size: 1.5rem;
    color: #5b2d5b;
    font-weight: bold;
    margin-bottom: 20px;
}

.as-seen-on h4 {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #5b2d5b;
}

.as-seen-on .items {
    display: flex;
    align-items: stretch;
    gap: 30px;
}

.as-seen-on .items img {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    max-width: 120px;
    object-fit: contain;
}

@media (max-width: 600px) {
    .as-seen-on .items {
        gap: 10px;
        flex-wrap: wrap;
    }
}

.ebooks-container {
    padding: 40px;
    margin: 0 auto;
    width: 100%;
    margin-top: 20px;
}

.ebooks-container h4 {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #5b2d5b;
}

.ebooks-container img {
    cursor: pointer;
}

.contact-form-container {
    padding: 40px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.contact-form-container a {
    color: #5b2d5b;
}

.links {
    margin: 0 auto;
    width: 100%;
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.links h4 {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #5b2d5b;
}

.links a {
    color: #5b2d5b;
}

.contact-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.contact-content div,
.contact-content form {
    width: calc(50% - 20px);
}

@media (max-width: 768px) {

    .contact-content div,
    .contact-content form {
        width: 100%;
    }
}

@media (max-width: 768px) {

    header #logo {

        width: 100%;
        text-align: center;
    }
}

.contact-form-containerr {
    width: 90%;
    margin: 50px auto;
    padding: 20px;
    padding-top: 80px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.contact-form-containerr h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.contact-form-containerr form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form-containerr form label {
    font-weight: bold;
    margin-bottom: 5px;
}

.contact-form-containerr form input,
.contact-form-containerr form textarea {
    width: calc(100% - 20px);
    padding: 10px;
    border-radius: 20px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.contact-form-containerr form input:focus,
.contact-form-containerr form textarea:focus {
    border-color: #5b2d5b;
    outline: none;
}

.contact-form-containerr form button {
    padding: 10px;
    background-color: #5b2d5b;
    color: white;
    border-radius: 100px;
    border: none;
    cursor: pointer;
}

.contact-form-containerr form button:hover {
    background-color: #5b2d5b;
}

.contact-infoo {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: fit-content;
    flex-direction: column;
}

.contact-infoo a,
.contact-infoo p {
    text-decoration: none;
    color: #5b2d5b;
    font-size: 1rem;
    font-weight: bold;
}

footer {
    width: 100%;
    background-color: white;
    color: black;
    padding: 20px 0;
    text-align: center;
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    margin-top: 150px;
}

footer .footer-content {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

footer .footer-content p {
    margin: 0;
    font-size: 1rem;
    font-weight: bold;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.contact-info a {
    text-decoration: none;
    color: black;
    font-size: 1rem;
    font-weight: bold;
}

/* --- Base and Font Styles --- */
input,
button {
    font-family: "Euclid Circular A", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Popup Container and Animation --- */
#ebook-popup {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

#ebook-popup.is-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

/* --- Popup Content Box and Animation --- */
#popup-content {
    background-color: white;
    width: 100%;
    max-width: 28rem;
    /* max-w-md equivalent */
    position: relative;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#ebook-popup.is-visible #popup-content {
    transform: scale(1);
    opacity: 1;
}

/* --- Popup Header --- */
.popup-header {
    border-bottom: 1px solid #e5e7eb;
    /* border-gray-200 */
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h2 {
    font-size: 1.125rem;
    /* text-lg */
    font-weight: 700;
    color: #5b2d5b;
}

#close-popup-btn {
    font-size: 1.5rem;
    /* text-2xl */
    font-weight: 700;
    color: #9ca3af;
    /* text-gray-400 */
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.15s ease-in-out;
}

#close-popup-btn:hover {
    color: #fe347e;
}

.custom-button {
    padding: 12px 2rem;
    /* 2rem for px-8 equivalent */
    background-color: #5b2d5b;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.custom-button:hover {
    background-color: #4a244a;
}

/* --- Form Styles --- */
#ebook-form {
    padding: 1.5rem;
}

/* Creates space between form elements */
#ebook-form>*:not(:last-child) {
    margin-bottom: 1rem;
}

#ebook-form p {
    font-size: 0.875rem;
    /* text-sm */
    color: #4b5563;
    /* text-gray-600 */
    margin-bottom: 1rem;
    /* Re-add margin that was removed by selector above */
}

#ebook-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
    /* text-gray-700 */
    margin-bottom: 0.25rem;
}

.custom-input {
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 1rem;
    width: 100%;
}

.custom-input:focus {
    border-color: #5b2d5b;
    outline: none;
}

#ebook-form button {
    margin-top: 1rem;
    width: 100%;
}

/* --- Success Message --- */
#success-message {
    padding: 1.5rem;
    text-align: center;
}

#success-message h3 {
    font-size: 1.25rem;
    /* text-xl */
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #5b2d5b;
}

#success-message p {
    color: #374151;
}

/* Utility class */
.hidden {
    display: none;
}

@media (max-width: 700px) {
    .contact-info {
        flex-direction: column;
    }
}