* {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

/* General styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.dropbtn {
    background-image: linear-gradient(to right, #84cdfa 0%, #f48ff4 51%, #fde362 100%);
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    box-shadow: 0 0 20px #eee;
    flex: 1 1 auto;
    transition: 0.5s;
    border-radius: 10%;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: #ddd;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
    background-color: #f67c7c;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styling */
#header {
    background: #f4f4f4;
    padding: 20px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Aligns items to the start */
    flex-wrap: wrap;
}

.logo {
    max-width: 150px;
    /* Adjust as needed */
}

.header-actions {
    display: flex;
    align-items: center;
    margin-left: 20px;
    flex-wrap: wrap;
}

.search-button {
    background: #f67c7c;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-bar {
    padding: 8px 12px;
    border: 2px solid #f67c7c;
    border-radius: 5px;
    margin-right: 15px;
    outline: none;
    width: 200px;
    max-width: 100%;
}

.notification-icon {
    font-size: 24px;
    color: #f67c92;
    cursor: pointer;
    position: relative;
    /* Needed for the ::after pseudo-element */
}

.notification-icon::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background-color: red;
    border-radius: 50%;
    display: none;
}

.notification-icon:hover::after {
    display: block;
}

.profile-icon {
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

.profile-icon:hover {
    color: #007bff;
    /* Change color on hover */
}

/* Media queries for responsive search bar */
@media (max-width: 768px) {
    .search-bar {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .search-bar {
        width: 100px;
    }
}

@media (max-width: 320px) {
    .search-bar {
        width: 80px;
    }
}

/* Pop-Up Styles */
#signup-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

#signup-popup.show-popup {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f67c92;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
}

.close-btn:hover {
    background: #e55a74;
}

.popup-content h2 {
    margin-top: 0;
    font-size: 24px;
    color: #333;
}

.popup-content p {
    font-size: 16px;
    color: #555;
}

.popup-content input {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.popup-content button {
    margin-top: 20px;
    padding: 12px 20px;
    background: #f67c92;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.popup-content button:hover {
    background: #e55a74;
}

/* Responsive Design */
@media (max-width: 600px) {
    .popup-content {
        width: 95%;
        padding: 15px;
    }

    .close-btn {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }

    .popup-content h2 {
        font-size: 20px;
    }

    .popup-content p {
        font-size: 14px;
    }

    .popup-content button {
        padding: 10px 15px;
    }
}

#header {
    height: 100vh;
    background-image: url(images/illustr.jpg);
    background-position: center;
    background-size: cover;
    color: #0831e8;
}

.container {
    margin-right: 100px;
    margin-left: 100px;
}

.logo {
    margin-top: 30px;
    width: 100px;
    height: 100px;
}

.header-text {
    max-width: 350px;
    margin-top: 140px;
    text-align: leftt;
    /* updated */
}

.header-text h1 {
    font-size: 34px;
    text-align: left;
}

p {
    font-size: 18px;
    line-height: 18px;
    columns: #777;
    font-weight: bolder;
}

.square {
    height: 12px;
    width: 12px;
    display: block;
    background: #f67c92;
    margin: 15px 0;
}

.common-btn {
    padding: 18px 40px;
    background: transparent;
    outline: none;
    border: 2px solid #f67c92;
    font-weight: bold;
    cursor: pointer;
}

.header-text button {
    margin-top: 20px;
    margin-bottom: 60px;
}

.line-1 {
    width: 15px;
    height: 15px;
    background: #f67c92;
    display: inline-block;
}

.line-2 {
    width: 80px;
    height: 1px;
    background: #f67c92;
    display: inline-block;
}

.line-3 {
    width: 60px;
    height: 1px;
    background: #f67c92;
    display: inline-block;
}

.line {
    line-height: 8px;
}

#sideNav {
    width: 250px;
    height: 100vh;
    position: fixed;
    right: -250px;
    top: 0;
    background: #f67c92;
    z-index: 2;
    transition: .5s;
}

nav ul li {
    list-style: none;
    margin: 50px 20px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
}

#menuBtn {
    width: 50px;
    position: fixed;
    right: 65px;
    top: 35px;
    z-index: 2;
    cursor: pointer;
}

/* ----about---- */

#about,
#offer {
    padding: 100px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.about-left-col {
    flex-basis: 50%;
}

.about-left-col img {
    width: 100%;
}

.about-right-col {
    flex-basis: 50%;
    text-align: right;
}

.about-text {
    max-width: 500px;
    margin-right: 100px;
    display: inline-block;
}

.about-text h2 {
    margin: 50px 0 10px;
    font-size: 28px;
    font-style: italic;
}

.about-text h3 {
    font-size: 20px;
    font-style: italic;
    color: #777;
}

/* ---features--- */
#features {
    padding-top: 50px;
    padding-bottom: 50px;
}

.feature-row {
    width: 80%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
}

.feature-col {
    flex-basis: 25%;
    text-align: center;
}

.feature-col img {
    width: 100px;
}

.feature-col h4 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 15px;
}

.feature-btn {
    margin: 80px auto 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.feature-btn .line {
    text-align: right;
    display: inline-block;
    margin-right: 25px;
}

/* ---courses--- */
/* ---courses--- */
#courses {
    padding: 100px 0;
}

.course-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.course-right-col {
    flex-basis: 50%;
}

.course-right-col img {
    width: 100%;
}

.course-left-col {
    flex-basis: 50%;
}

.course-text {
    max-width: 350px;
}

.course-text button {
    margin: 30px 0;
}

/* Course Cards */
.courses-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 50px;
}

.course-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    width: calc(33% - 20px);
    margin: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-info {
    padding: 20px;
}

.course-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.course-info p {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

.course-card:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .course-card {
        width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .course-card {
        width: calc(100% - 20px);
    }
}

/* --offer-- */

#offer button {
    margin: 30px 0;
}

/* --contact-- */

.contact-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.contact-left-col,
.contact-right-col {
    flex-basis: 50%;
}

.contact-right-col img {
    width: 100%;
}

form {
    max-width: 350px;
    margin: 30px 0;
}

form input {
    width: 100%;
    padding: 12px 10px;
    margin-bottom: 5px;
    outline: none;
    box-shadow: none;
    box-sizing: border-box;
    border: 2px solid #fab3c4;
}

.btn-box {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.btn-box button {
    flex-basis: 48%;
    padding: 18px 0;
}

/* FAQ Section */
#faq {
    padding: 50px 0;
    background: #f9f9f9;
}

#faq h1 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 30px;
    color: #333;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
    transition: background 0.3s, box-shadow 0.3s;
}

.faq-item:hover {
    background: #f0f0f0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.faq-question {
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: color 0.3s;
}

.faq-question:hover {
    color: #f67c92;
}

.faq-answer {
    padding: 20px;
    font-size: 16px;
    color: #555;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ---footer--- */

#footer {
    padding: 50px 0 30px;
}

hr {
    width: 100%;
    border: 0;
    border-top: 1px solid #f67c92;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-left-col {
    flex-basis: 50%;
    margin-top: 60px;
}

.footer-right-col {
    flex-basis: 35%;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.link-title h4 {
    color: #fab3c4;
    margin-bottom: 20px;
}

.link-title small {
    font-size: 13px;
    color: #777;
}

.footer-info {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-logo img {
    width: 100px;
    margin-top: 20px;
    height: 100px;
}

.footer-logo button {
    padding: 12px 38px;
    margin-top: 20px;
    height: 100px;
}

.copyright-text,
.footer-logo {
    flex-basis: 40%;
}

/* --social-icons-- */

.social-icons {
    width: 50px;
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 1;
}

.social-icons img {
    display: block;
    width: 20px;
    margin: 0 auto 20px;
    cursor: pointer;
}

/*--media queries--*/
@media (max-width: 768px) {
    .search-bar {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .search-bar {
        width: 100px;
    }
}

@media (max-width: 320px) {
    .search-bar {
        width: 80px;
    }
}

@media only screen and (max-width: 770px) {
    #header {
        background-image: none;
    }

    .container {
        margin-right: 50px;
        margin-left: 50px;
    }

    .logo {
        margin-top: 27px;
        width: 70px;
    }

    .header-text {
        margin-top: 10px;
    }

    h1 {
        font-size: 27px;
    }

    #menuBtn {
        width: 40px;
        right: 50px;
    }

    .common-btn {
        padding: 10px 16px;
    }

    .social-icons img {
        width: 14px;
        margin: 15px auto;
    }

    .about-left-col,
    .about-right-col {
        flex-basis: 100%;
    }

    .about-text {
        margin: 50px 50px 0;
        display: inline-block;
    }

    .about-text h2 {
        font-size: 18px;
    }

    .feature-col {
        flex-basis: 100%;
        margin-bottom: 20px;
    }

    .course-left-col,
    .course-right-col {
        flex-basis: 100%;
    }

    .course-right-col {
        margin-top: 70px;
    }

    .contact-left-col,
    .contact-right-col {
        flex-basis: 100%;
    }

    .contact-right-col {
        margin-top: 50px;
    }

    .footer-left-col,
    .footer-right-col {
        flex-basis: 100%;
    }

    .link-title {
        flex-basis: 50%;
        margin-bottom: 30px;
    }
}

#faq {
    background-color: #f9f9f9;
    padding: 40px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    color: #333;
}

.faq-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.faq-list {
    flex: 1;
    margin-right: 20px;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-question {
    font-size: 1.2em;
    color: #007BFF;
    margin-bottom: 10px;
}

.faq-answer {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
}

.faq-image {
    flex: 1;
    text-align: center;
}

.faq-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
