/* GLOBAL START */

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    --primary-clr: rgba(250, 92, 0, 1);
    --light-gray: #a9a9a9;
    --white-clr: #fff;
    --black-clr: rgba(0, 0, 0, 1);

    /* This matches the clean, modern font from your screenshot */
    --poppins-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
    --inter-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
    --general-sans-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
}

/* GLOBAL END */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: black !important;
}

/* SCROLLBAR START */

::-webkit-scrollbar {
    width: 0px;
    display: none;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgb(166, 166, 166);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2c2f73;
    border-radius: 10px;
}

/* SCROLLBAR END */

/* COMMON START */

a {
    text-decoration: none;
}

h1 {
    font-size: 40px;
    line-height: 130%;
    font-weight: 500;
}

h4 {
    font-size: 17px;
    font-weight: 500;
}

h5 {
    font-size: 14px;
    font-weight: 500;
}

h6 {
    font-size: 12px;
    font-weight: 500;
}

li {
    font-size: 15px;
}

@media screen and (max-width: 1600px) {
    h1 {
        font-size: 35px;
    }

    h4 {
        font-size: 15px;
    }

    h5 {
        font-size: 12px;
    }

    h6 {
        font-size: 10px;
    }

    li {
        font-size: 13px;
    }
}

@media screen and (max-width: 1350px) {
    h1 {
        font-size: 30px;
    }

    h4 {
        font-size: 13px;
    }

    h5 {
        font-size: 10px;
    }

    h6 {
        font-size: 9px;
    }

    li {
        font-size: 12px;
    }
}

input,
button,
select {
    outline: none;
    border: none;
    font-family: var(--poppins-font);
}

input:not([type="radio"]),
select {
    height: 50px;
    width: 100%;
}

ul {
    list-style-type: none;
}

/* COMMON END */

/* BUTTON START */

.commonButton {
    border: 2px solid rgba(46, 47, 53, 1);
    box-shadow: 3px 3px 0px 0px rgba(46, 47, 53, 1);
    font-family: var(--inter-font);
    font-weight: 700;
    color: var(--white-clr);
    background-color: rgba(255, 109, 44, 1);
    border-radius: 12px;
    white-space: nowrap;
    padding: 10px;
    font-size: 16px;
    text-transform: uppercase;
    height: 45px;
    cursor: pointer;
}

@media screen and (max-width: 1600px) {
    .commonButton {
        font-size: 14px;
        height: 42px;
    }
}

@media screen and (max-width: 1350px) {
    .commonButton {
        font-size: 12px;
    }
}

/* BUTTON END */

/* HEADER START */

.headerSidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 0;
    z-index: 1000;
    background-color: rgba(240, 95, 23, 1);
    font-family: var(--poppins-font);
    transition: 0.5s;
    overflow: hidden;
}

.headerSidebar .content {
    padding: 20px;
}

.headerSidebar .content .closeSidebar {
    display: flex;
    justify-content: right;
}

.headerSidebar .content :where(.closeSidebar img, ul li) {
    cursor: pointer;
}

.headerSidebar ul {
    margin-block: 10px;
}

.headerSidebar ul li {
    padding: 10px 5px;
    white-space: nowrap;
}

.headerSidebar ul :where(li, li a) {
    color: var(--white-clr);
}

.headerContainer {
    padding: 20px 5%;
    height: 80px;
    display: flex;
    align-items: center;
    gap: 30px;
    font-family: var(--poppins-font);
    background-color: var(--white-clr);
}

.headerContainer .logoContainer {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
}

.headerContainer .logoContainer img:first-child {
    height: 60px;
}

.headerContainer .content {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.headerContainer .content .navigation {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
}

.headerContainer .content .navigation li {
    font-size: 15px;
}

.headerContainer .content .navigation li a {
    color: var(--black-clr);
}

.headerContainer .content .navigation li:last-child a {
    color: var(--primary-clr);
    font-weight: 600;
}

.headerContainer .content .hamburger {
    display: none;
    place-items: center;
    transform: scaleX(-1);
}

.headerContainer .content {
    justify-content: right;
}

.headerContainer .content .iconList {
    display: flex;
    align-items: center;
    gap: 10px;
}

.headerContainer .content .iconList button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background-color: rgba(255, 135, 0, 1);
    cursor: pointer;
}

.headerContainer .content .iconList .wrapper {
    position: relative;
    display: inline-block;
}

[popover] {
    inset: unset;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    border: none;
    position: fixed;
    top: 0px;
    right: 0px;
    pointer-events: none;
    overlay: none;
}

.menu {
    display: none;
    position: absolute;
    right: 0;
    top: 115%;
    margin-top: 2px;
    color: rgba(0, 0, 0, 1);
    font-weight: 500;
    padding: 8px 25px;
    border: 1px solid rgba(241, 114, 37, 1);
    list-style-type: none;
    border-radius: 18px;
    background-color: white;
    font-family: var(--general-sans-font);
}

.menu:after {
    content: "";
    position: absolute;
    transform: rotate(45deg);
    top: -7px;
    right: 18px;
    width: 10px;
    height: 10px;
    border-top: 1px solid rgba(241, 114, 37, 1);
    border-left: 1px solid rgba(241, 114, 37, 1);
    background-color: white;
}

.menu li {
    font-size: 16px;
    padding: 15px 35px 15px 0;
    white-space: nowrap;
    cursor: pointer;
}

.menu li:first-child {
    font-weight: 600;
    padding-bottom: 8px;
    color: rgba(241, 114, 37, 1);
}

.menu li:nth-child(2) {
    border-bottom: 1px solid rgba(217, 217, 217, 1);
}

[popover]:popover-open + .menu {
    display: block;
}

@media screen and (max-width: 1600px) {
    .headerContainer .content .iconList {
        gap: 8px;
    }

    .headerContainer .content .iconList button {
        width: 45px;
        height: 45px;
        padding: 12px;
    }

    .headerContainer .content .iconList button img {
        width: 100%;
        height: 100%;
    }
}

@media screen and (max-width: 1000px) {
    .headerContainer {
        padding: 10px 5%;
        display: flex;
        align-items: flex-start;
        gap: 30px;
        height: 150px;
        font-family: var(--poppins-font);
        position: relative;
    }

    .headerContainer .logoContainer img:last-child {
        width: 100%;
    }

    .headerContainer .content .searchBar {
        position: absolute;
        left: 0;
        bottom: 10px;
        width: 100%;
        padding-inline: 5%;
    }

    .headerContainer .content {
        justify-content: right;
    }
}

@media screen and (max-width: 768px) {
    .headerContainer .logoContainer img:last-child {
        width: 100%;
    }

    .headerContainer .content .hamburger {
        display: grid;
    }

    .headerContainer .content .navigation,
    .headerContainer .content .commonButton {
        display: none;
    }

    .headerContainer .content .iconList {
        gap: 5px;
    }

    .headerContainer .content .iconList button {
        width: 40px;
        height: 40px;
        padding: 12px;
    }
}

/* HEADER END */

/* ACCOUNT MIDDLE START */

.accountMiddleContainer {
    position: relative;
    background-color: rgba(244, 134, 31, 1);
}

.accountMiddleContainer > img {
    position: absolute;
    top: 0;
    left: 40%;
    transform: translateX(-50%);
    height: 100%;
}

.accountMiddleContainer .middleContent {
    font-family: var(--general-sans-font);
    text-align: center;
    position: relative;
    padding: 40px 5%;
}

@media screen and (max-width: 1000px) {
    .accountMiddleContainer > img {
        width: 100%;
    }
}

@media screen and (max-width: 700px) {
    .accountMiddleContainer .middleContent {
        padding: 40px 5%;
    }
}

/* ACCOUNT MIDDLE END */

/* FOOTER START */

.footerContainer {
    padding: 40px 5% 20px 5%;
    font-family: var(--poppins-font);
    background-color: #fef8f2;
}

.footerContainer .content {
    display: flex;
    gap: 25px;
    padding: 30px 40px;
    border-radius: 45px;
    box-shadow: 5px 5px 18px 0px #f4861f21;
    background-color: var(--white-clr);
}

.footerContainer .content :where(.category, .selectionItem) {
    width: 100%;
}

.footerContainer .content .category .categoryItems {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    font-weight: 600;
    margin-bottom: 10px;
}

.footerContainer .content .category .categoryItems li {
    padding-block: 10px;
}

.footerContainer .content .category .selectionItem {
    display: flex;
    align-items: center;
    gap: 25px;
    max-width: 400px;
}

.footerContainer .content .category .selectionItem .selection {
    width: 50%;
}

.footerContainer .content .category .selectionItem .selection h4 {
    font-weight: 400;
    margin-top: 15px;
    white-space: nowrap;
}

.footerContainer .content .category .selectionItem .selection section {
    position: relative;
    margin-top: 15px;
    background-color: rgba(245, 162, 23, 0.2);
    box-shadow: 5px 5px 18px 0px rgba(244, 134, 31, 0.13);
    height: 50px;
    border-radius: 10px;
    appearance: none;
    font-family: var(--poppins-font);
}

.footerContainer .content .category .selectionItem .selection section select {
    appearance: none;
    font-family: var(--poppins-font);
    width: 100%;
    height: 100%;
    padding: 15px;
    background-color: transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
}

.footerContainer .content .category .selectionItem .selection section::after {
    content: "";
    position: absolute;
    top: 0;
    right: 15px;
    width: 18px;
    height: 100%;
    background: url("/images/footer/downArrow.svg") no-repeat center center;
    background-size: contain;
    cursor: pointer;
    pointer-events: none;
    transition: 0.25s all ease;
}

.footerContainer .content .moreOptions .application .downloads {
    display: flex;
    gap: 10px;
    margin-block: 10px 20px;
}

.footerContainer .content .moreOptions .application .downloads button {
    background-color: rgba(30, 35, 48, 1);
    border-radius: 30px;
    padding: 5px 15px;
    display: grid;
    place-items: center;
    height: 60%;
}

.footerContainer .content .moreOptions .application .downloads button img {
    width: 100%;
}

.footerContainer .content .moreOptions .followSection ul {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
    margin-block: 10px;
}

.footerContainer .content .moreOptions .followSection ul li {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--black-clr);
    display: grid;
    place-items: center;
}

.footerContainer .bigLogoCard {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background-color: var(--black-clr);
    padding: 60px;
    border-radius: 50px;
    margin-top: 40px;
}

.footerContainer .bigLogoCard img:first-child {
    width: 200px;
}

.footerContainer .bigLogoCard img:nth-child(2) {
    width: 500px;
}

.footerContainer .bottomContent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-block: 40px 20px;
    font-size: 14px;
}

@media screen and (max-width: 1150px) {
    .footerContainer .content {
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 700px) {
    .footerContainer {
        padding: 40px 5%;
        font-family: var(--poppins-font);
    }

    .footerContainer .bigLogoCard {
        gap: 20px;
        padding: 40px;
        border-radius: 30px;
        margin-top: 20px;
    }

    .footerContainer .bottomContent {
        flex-wrap: wrap;
        gap: 15px;
        margin-block: 40px 0px;
    }
}

@media screen and (max-width: 500px) {
    .footerContainer .content {
        padding: 20px 15px;
    }

    .footerContainer .content .moreOptions .followSection ul {
        gap: 5px;
    }

    .footerContainer .content .category .categoryItems {
        gap: 15px;
    }
}

/* FOOTER END */

/* DASHBOARD MIDDLE START */

.middleContainer {
    font-family: var(--poppins-font);
    background: rgba(240, 95, 23, 1);
    padding: 30px 5%;
    height: calc(100vh - 90px);
    display: flex;
    gap: 25px;
}

.middleContainer .sidebarContainer {
    width: 220px;
    position: relative;
}

.middleContainer .sidebarContainer .profileContent {
    color: var(--white-clr);
}

.middleContainer .sidebarContainer .profileContent .closeSidebar {
    position: absolute;
    top: 20px;
    right: 20px;
    display: none;
}

.middleContainer .sidebarContainer .profileContent .profile {
    width: 80px;
    height: 80px;
    background-color: rgba(217, 217, 217, 1);
    border-radius: 6px;
    position: relative;
    cursor: pointer;
}

.middleContainer .sidebarContainer .profileContent .profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.middleContainer .sidebarContainer .profileContent .profile button {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 8px;
    padding-top: 2px;
    color: #fff;
    background-color: rgba(220, 52, 52, 1);
}

.middleContainer .sidebarContainer .profileContent :where(h3, h4) {
    font-weight: 400;
}

.middleContainer .sidebarContainer .navItems {
    height: calc(100vh - 420px);
    overflow-y: scroll;
    margin-block: 30px;
}

.middleContainer .sidebarContainer .navItems li {
    color: rgba(255, 255, 255, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    white-space: nowrap;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.middleContainer .sidebarContainer .navItems li span {
    opacity: 0.6;
}

.middleContainer .sidebarContainer .navItems li button {
    background: rgba(255, 135, 0, 1);
    min-width: 50px;
    width: 50px;
    min-height: 50px;
    height: 50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding: 13px;
}

.middleContainer .sidebarContainer .navItems li button img {
    min-width: 100%;
    width: 100%;
    min-height: 100%;
    height: 100%;
}

.middleContainer .sidebarContainer .navItems .miniItem {
    padding: 15px;
    display: none;
    gap: 13px;
    opacity: 0.6;
}

.middleContainer .sidebarContainer .navItems .miniItem img {
    transform: rotate(270deg);
    min-width: 16px;
    max-width: 16px;
}

.middleContainer .sidebarContainer .navItems .highlight button {
    background-color: white;
}

.middleContainer .sidebarContainer .navItems .highlight span,
.middleContainer .sidebarContainer .navItems .miniItem.highlight,
.middleContainer .miniContainer .miniSidebar .highlight {
    opacity: 1;
}

.middleContainer .sidebarContainer .bottomContent h4 {
    margin-bottom: 8px;
    font-family: var(--inter-font);
    font-weight: 400;
    color: var(--white-clr);
    white-space: nowrap;
}

.middleContainer .sidebarContainer .bottomContent button,
.middleContainer .miniContainer button.visit {
    color: var(--black-clr);
    background-color: var(--white-clr);
}

.middleContainer .miniContainer {
    width: 100%;
    height: (100vh - 100px);
    overflow: hidden;
}

.middleContainer .miniContainer .subItem {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.middleContainer .miniContainer .subItem img {
    display: none;
    transform: scaleX(-1);
    cursor: pointer;
}

.middleContainer .miniContainer .miniContent {
    margin-top: 30px;
    display: flex;
    gap: 25px;
}

.middleContainer .miniContainer .miniSidebar {
    display: flex;
    border-radius: 25px;
    padding: 35px;
    background-color: rgba(255, 135, 0, 1);
}

.middleContainer .miniContainer .miniSidebar ul li {
    padding: 12px 2px;
    white-space: nowrap;
    font-weight: 600;
    color: var(--white-clr);
    cursor: pointer;
    white-space: nowrap;
}

.middleContainer .miniContainer .miniCard {
    border-radius: 25px;
    padding: 35px;
    background-color: var(--white-clr);
    height: calc(100vh - 230px);
    overflow-y: scroll;
    width: 100%;
    z-index: 1;
    position: relative;
}

.middleContainer .miniContainer .miniCard .backgroundImage {
    position: fixed;
    top: 195px;
    z-index: 1;
    height: calc(100vh - 235px);
}

@media screen and (max-width: 1600px) {
    .middleContainer {
        padding: 20px 5%;
    }

    .middleContainer .sidebarContainer .profileContent .profile {
        width: 65px;
        height: 65px;
    }

    .middleContainer .sidebarContainer .navItems {
        height: calc(100vh - 350px);
        margin-block: 20px;
    }

    .middleContainer .sidebarContainer .navItems li button {
        min-width: 40px;
        width: 40px;
        min-height: 40px;
        height: 40px;
        padding: 10px;
    }

    .middleContainer .miniContainer .miniContent {
        margin-top: 20px;
    }

    .middleContainer .miniContainer .miniSidebar {
        padding: 20px 26px;
    }

    .middleContainer .miniContainer .miniSidebar ul li {
        padding: 10px 2px;
    }

    .middleContainer .miniContainer .miniCard {
        padding: 30px;
        height: calc(100vh - 190px);
    }

    .middleContainer .miniContainer .miniCard .backgroundImage {
        top: 170px;
        height: calc(100vh - 190px);
    }
}

@media screen and (max-width: 1350px) {
    .middleContainer .sidebarContainer .navItems li button {
        min-width: 35px;
        width: 35px;
        min-height: 35px;
        height: 35px;
    }
}

@media screen and (max-width: 1000px) {
    .middleContainer {
        padding: 20px 5%;
    }

    .middleContainer .middleContent {
        height: calc(100vh - 120px);
    }

    .middleContainer .miniContainer .miniContent {
        margin-top: 20px;
    }

    .middleContainer .sidebarContainer .navItems .miniItem {
        display: flex;
    }

    .middleContainer .miniContainer .miniSidebar {
        display: none;
    }

    .middleContainer .miniContainer .miniCard {
        height: calc(100vh - 210px);
    }
}

@media screen and (max-width: 768px) {
    .middleContainer .sidebarContainer {
        width: 0px;
        position: fixed;
        top: 90px;
        height: calc(100vh - 90px);
        left: 0;
        overflow: hidden;
        transition: 0.5s;
        background: rgba(240, 95, 23, 1);
        z-index: 1000;
    }

    .middleContainer .sidebarContainer .profileContent .closeSidebar {
        display: initial;
    }

    .middleContainer .sidebarContainer .sidebarContent {
        padding: 25px;
    }

    .middleContainer .miniContainer .subItem img {
        display: flex;
    }

    .middleContainer .miniContainer .miniCard {
        padding: 25px;
    }

    .middleContainer .miniContainer .miniCard .backgroundImage {
        top: 180px;
        height: calc(100vh - 210px);
    }
}

.link-black {
    color: #000;
    text-decoration: none;
}

.link-black:hover {
    color: #000;
    text-decoration: underline; /* optional */
}

/* DASHBOARD MIDDLE END */

/* --- Custom Orangeggs Pagination --- */
.orangeggs-pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.orangeggs-pagination li {
    display: inline-block;
}

.orangeggs-pagination li a,
.orangeggs-pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #f5f5f5; /* Light gray background */
    color: var(--black-clr);
    text-decoration: none;
    font-family: var(--inter-font);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
}

/* Hover state for clickable links */
.orangeggs-pagination li a:hover {
    background-color: #ffe6d5; /* Very light orange */
    color: #f05f17; /* Brand Orange */
}

/* Active current page */
.orangeggs-pagination li.active span {
    background-color: #f05f17; /* Brand Orange */
    color: var(--white-clr);
    box-shadow: 0 4px 10px rgba(240, 95, 23, 0.3);
}

/* Disabled state (like the previous arrow on page 1) */
.orangeggs-pagination li.disabled span {
    background-color: transparent;
    color: var(--light-gray);
    cursor: not-allowed;
}
.commentsDescription {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    font-family: var(--inter-font);
}

/* Global Confirm Modal Styles */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.custom-modal-box {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    text-align: center;
}
.custom-modal-box h3 {
    margin-top: 0;
    color: #111827;
    font-size: 20px;
    margin-bottom: 10px;
}
.custom-modal-box p {
    color: #4b5563;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.5;
}
.custom-modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}
/* Custom Themed Dropdown Wrapper (Based on Footer CSS) */
.theme-dropdown-section {
    position: relative;
    background-color: rgba(245, 162, 23, 0.2);
    box-shadow: 5px 5px 18px 0px rgba(244, 134, 31, 0.13);
    height: 50px;
    border-radius: 10px;
    font-family: var(--poppins-font);
    width: 100%;
}

.theme-dropdown-section select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    font-family: var(--poppins-font);
    width: 100%;
    height: 100%;
    padding: 0 45px 0 20px; /* Padding pushes text away from edges and arrow */
    background-color: transparent;
    border: none;
    outline: none;
    color: var(--black-clr);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    z-index: 2; /* Ensures the select is clickable over the arrow */
}

/* The exact arrow from your footer */
.theme-dropdown-section::after {
    content: "";
    position: absolute;
    top: 0;
    right: 15px;
    width: 18px;
    height: 100%;
    background: url("/images/footer/downArrow.svg") no-repeat center center;
    background-size: contain;
    pointer-events: none; /* Clicks pass through the arrow to open the select */
    transition: 0.25s all ease;
    z-index: 1;
}

/* Optional: Rotate arrow when select is focused */
.theme-dropdown-section:focus-within::after {
    transform: rotate(180deg);
}
