@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: #f5f5f5;
    margin: 0 auto;
    padding: 0;
    color: #333;
}

/* ============================= */
/* header css */
/* ============================= */
header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 0px 0px;
    color: white;
    font-family: 'Poppins', sans-serif;
    border-bottom: 2px solid #d6580a;
}

header .logo a {
    font-size: 28px;
    font-weight: bold;
    color: #000000;
    text-shadow: 2px 2px 4px #000000;
    cursor: pointer;
    margin-left: 30px;
}

header nav .header-link {
    font-family: 'Poppins', sans-serif;
    margin-left: 20px;
    color: #000000;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

header nav .header-link:hover {
    margin-left: 20px;
    color: #d6580a;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

.nav-img {
    height: 30px;
    width: 30px;
    border-radius: 50%;
}

.profilemg {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.profile-upd {
    display: flex;
    gap: 20px;
}

.container {
    width: 100%;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
}

.profile-container {
    position: relative;
    display: inline-block;
}

.profile-image {
    width: 100px;
    height: 100px;
    padding: 0px 0px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ccc;
}

.hover-actions {
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    height: 95%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.profile-container:hover .hover-actions {
    opacity: 1;
}

.upload-icon {
    background-color: #d6580a;
    border: none;
    border-radius: 50%;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.remove-button {
    background-color: #d6580a;
    border: none;
    border-radius: 50% !important;
    padding: 8px 11px !important;
    cursor: pointer;
    font-size: 20px;
    margin-left: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.upload-icon i,
.remove-button i {
    color: #fff;
}

.file-input {
    display: none;
}

/* ======= */

/* Button styling */
button[class="update-btn"] {
    padding: 5px 20px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
}

/* Popup container */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: #fff;
    padding: 30px 20px 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    z-index: 999;
    border-radius: 10px;
    width: 300px;
    text-align: center;
}

.popup.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Background overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
    z-index: 998;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Close icon */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

.close-btn:hover {
    color: #d6580a;
}

/* ====== */

.modal {
    font-family: 'Poppins', sans-serif;
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 90px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    transition: opacity 0.3s ease;
}

.modal[id="accountModal"] {
    font-family: 'Poppins', sans-serif;
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

.modal-content {
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    margin: auto;
    padding: 20px;
    width: 25%;
    border-radius: 5px;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close:hover,
.close2:hover,
.close3:hover {
    color: #d6580a;
}

.close,
.close2,
.close3,
.close4 {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close2:hover,
.close3:hover,
.close4:hover {
    color: #d6580a;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

/* ====== */

.register-container {
    font-family: 'Poppins', sans-serif;
    background: white;
    padding: 20px;
    border-radius: 6px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.register-container i {
    color: black;
}

.login-container i {
    color: black;
    margin-right: 5px;
}

h2 {
    font-family: 'Poppins', sans-serif;
    color: #2c3e50;
    border-bottom: 2px solid #d6580a;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

form {
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    font-family: 'Poppins', sans-serif;
    width: 90%;
    /* Slightly less than full width for padding */
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
}

input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
input[type="password"]:focus-visible {
    outline: none;
}

input[type="submit"] {
    width: 97%;
    font-family: 'Poppins', sans-serif;
    background: #d6580a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

input[type="submit"]:hover {
    background: #d6580a;
}

header nav a {
    color: #d6580a;
    text-decoration: none;
}

header nav a:hover {
    text-decoration: underline;
}

nav[id="headnav"] {
    display: flex;
    justify-content: center;
    align-items: center;
}

a[id="accountbtn"] {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

svg[id="logosvg"] {
    width: 100px;
    height: 90px;
}

.h4 {
    color: #d6580a;
    margin: 0px 0px 10px 0px;
}

.update-btn {
    background-color: #d6580a;
    color: #fff;
    border: none;
}

.h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 0px;
    margin-top: 0;
}

.a {
    color: #333;
}

.a:hover {
    color: #d6580a;
}

.close-btn:hover {
    color: #d6580a;
}

button[id="showPopupBtn"],
button[id="showPopupBtn1"] {
    border: none;
    background-color: #f7c7a9;
    color: black;
    padding: 8px 15px;
    border-radius: 3px;
    font-size: 15px;
}

button[id="showPopupBtn"]:hover,
button[id="showPopupBtn1"]:hover {
    border: none;
    background-color: #d6580a;
    color: #fff;
    padding: 8px 15px;
    border-radius: 3px;
    font-size: 15px;
}

.your-content a {
    text-decoration: none;
}

/* ====== */

/* Default styles */
#headnav {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-right: 30px;
}

/* Hide hamburger by default */
.hamburger {
    display: none;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
}

#loginmodel .error,
#registerModal .error {
    width: 95%;
    text-align: start;
    color: #ff2121;
    font-size: 11px;
    margin-top: -7px;
    margin-left: 0px;
}

/* ============================= */
/* end header css */
/* ================================================== */


/* ============================= */
/* ask questions css */
/* ============================= */
.modal1 {
    font-family: 'Poppins', sans-serif;
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 45px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    transition: opacity 0.3s ease;
}

.modal1 .askmodal-content {
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    margin: auto;
    padding: 20px;
    width: 90%;
    border-radius: 5px;
    animation: slideDown 0.4s ease;
}

.modal1 .askcont {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 0;
    font-family: 'Poppins', sans-serif;
}

.modal1 h2 {
    color: #df5906;
}

.modal1 form[id="aksf"] {
    width: 100%;
    background: white;
    padding: 0px;
    border-radius: 10px;
    margin-top: 0px;
    font-family: 'Poppins', sans-serif;
}

.modal1 input[type="text"],
.modal1 textarea,
.modal1 input[type="file"] {
    font-family: 'Poppins', sans-serif;
    width: 96%;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    color: #686868;
}

.modal1 textarea {
    height: 120px;
}

.modal1 textarea:focus-visible {
    outline: none;
}

.modal1 input[type="submit"] {
    font-family: 'Poppins', sans-serif;
    background: #d6580a;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.modal1 input[type="submit"]:hover {
    background: #df5906;
}

.modal1 .success {
    color: green;
    font-weight: bold;
    margin-top: 15px;
}

.modal1 .error {
    width: 97%;
    color: red;
    font-size: 12px;
    margin-top: 3px;
    flex: 1;
}

/* ============================= */
/* end ask question css */
/* ======================================================= */

/* ============================= */
/* index css */
/* ============================= */

.cont {
    font-family: 'Poppins', sans-serif;
    width: 94%;
    margin: 0 20px;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.search-container {
    font-family: 'Poppins', sans-serif;
    width: 100%;
    margin: 10px auto;
    position: relative;
}

.index-container {
    font-family: 'Poppins', sans-serif;
    width: 100%;
    margin: 0px;
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.left-section {
    width: 75%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.right-section {
    width: 25%;
    margin-right: 15px;
}

form[id="indexform"] {
    width: 100%;
    margin-bottom: 20px;
    text-align: start;
    font-family: 'Poppins', sans-serif;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: #fff;
}

form .search {
    font-family: 'Poppins', sans-serif;
    width: 96%;
    background-color: #f5f5f5;
    padding: 13px;
    border: 1px solid #ccc;
    border-radius: 50px;
}

input[type="text"]:focus-visible {
    outline: none;
}

form .sebtn1 {
    position: absolute;
    right: 10px;
    top: 36%;
    transform: translateY(-50%);
    padding: 8px 12px;
    color: #d6580a;
    border: none;
    margin-top: 10px;
    margin-right: 10px;
    border-radius: 50px;
    cursor: pointer;
}

form .sebtn {
    padding: 8px 12px;
    color: #d6580a;
    border: none;
    margin-top: 10px;
    margin-right: 10px;
    border-radius: 50px;
    cursor: pointer;
}

.question-card {
    width: 100%;
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.question-card h3 {
    margin: 0;
}

.qusbt {
    font-family: 'Poppins', sans-serif;
    margin-left: 0px;
    color: #626262;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
}


.qusbt:hover {
    margin-left: 0px;
    color: #d6580a;
    text-decoration: none;
    font-weight: bold;
}

.qusdiv {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    margin-bottom: 0px;
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 3px;
}

button[id="likebtn"],
button[id="dislikebtn"],
button[class="likelogin"],
button[class="dislikelogin"],
a[id="likelogin"] {
    font-family: 'Poppins', sans-serif;
    margin-left: 0px;
    color: #626262;
    text-decoration: none;
    font-weight: bold;
    padding: 0px 0px;
    border: none;
    cursor: pointer;
    background: white;
    font-size: 12px;
}

button[id="likebtn"]:hover,
button[id="dislikebtn"]:hover,
button[class="likelogin"]:hover,
button[class="dislikelogin"]:hover,
a[id="likelogin"]:hover {
    margin-left: 0px;
    color: #d6580a;
    text-decoration: none;
    font-weight: bold;
    padding: 0px 0px;
    border: none;
    cursor: pointer;
    background: white;
    font-size: 12px;
}

.tag {
    font-family: 'Poppins', sans-serif;
    display: inline-block;
    background: #eee;
    color: #444;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
    margin-top: 5px;
}

.question-img {
    width: 100%;
    max-width: 700px;
    height: 450px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.excerpt {
    margin-top: 10px;
    color: #555;
}

/* ============================= */
/*       end index css */
/* =================================================== */


/* ============================= */
/*       ad area css */
/* ============================= */

.ad-container {
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 15px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.ad-image {
    width: 50%;
    height: 100%;
}

.ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 5px;
}

h2 {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
}

p {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}

ul {
    list-style-type: none;
    margin-bottom: 20px;
}

ul li {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #d6580a;
}

.cta-button {
    padding: 10px 20px;
    background-color: #d6580a;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;

    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #d6580a;
}

/* ============================= */
/* end area css */
/* ==================================================== */


/* ============================= */
/* footer css */
/* ============================= */

footer a {
    font-family: 'Poppins', sans-serif;
    color: #d6580a;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #d6580a;
    text-decoration: underline;
}

/* ============================= */
/* footer css */
/* ============================= */


/* ============================= */
/* responsive css */
/* ============================= */
@media (max-width: 900px) {
    .cont {
        width: 94%;
    }
}

@media (max-width: 730px) {


    .hamburger {
        display: block;

    }

    #headnav {
        display: none;
        flex-direction: column;
        gap: 10px;
        background-color: #fff;
        position: absolute;
        top: 80px;
        z-index: 10;
        right: 48px;
        padding: 15px 15px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    #headnav.show {
        display: flex;
        justify-content: center;
        align-items: end;
    }

    .header-link {
        display: block;
        padding: 5px 0;
        cursor: pointer;
    }

    .index-container {
        width: 100%;
        margin: 0px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }

    .container {
        width: 100%;
        margin: 20px auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .profile-upd {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .cont {
        width: 94%;
        margin: 0 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .left-section {
        width: 98%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .right-section {
        width: 98%;
        margin-right: 15px;
    }

    header nav .header-link {
        width: 100%;
        margin-left: 0px;
        color: #000000;
        text-decoration: none;
        font-weight: bold;
        border-bottom: 1px solid rgb(214, 214, 214);
    }

    header nav .header-link:hover {
        width: 100%;
        margin-left: 0px;
        color: #d6580a;
        text-decoration: none;
        font-weight: bold;
        border-bottom: 1px solid #d6580a;
    }

    .profilemg {
        display: flex;
        flex-direction: column;
        gap: 20px;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .nav-img {
        height: 30px;
        width: 30px;
        border-radius: 50%;
    }

    .modal-content {
        background-color: #fff;
        margin: auto;
        padding: 20px;
        width: 84%;
        border-radius: 10px;
        animation: slideDown 0.4s ease;
    }

}


@media (max-width: 400px) {
    .question-img {
        max-width: 310px;
        height: auto;
        border: 1px solid #ddd;
        border-radius: 6px;
    }
}

/* ============================= */
/* end responsive css */
/* ============================= */



/* ============================= */
/* responsive css */
/* ============================= */


.error[id="Emailupr"],
.error[id="currentpassupr"],.error[id="currentpasupr"],
.error[id="newpassupr"] {
    color: red;
    font-size: 11px;
    margin-top: -10px;
    text-align: start;
    width: 96%;
}