@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap');

:root {
    --mt-color: #4285f4;
    --black: #000000;
    --white: #ffffff;
    --ghost-white: #f8f8f8;
    --ghost-black: #1d1e20;
    --firebrick: #f24438;
    --pale-neutral-shade-light: #f6f6f6;
    --pale-neutral-shade-black: #1d1e20;
    --brandeis-blue: #0071cd;
    --pph-background: #e1f9fa;
    --facebook-color: #3b5998;
    --twitter-color: #55acee;
    --whatsapp-color: #075e54;
    --linkedin-color: #0e76a8;
    --shadow-black: rgba(0, 0, 0, 0.1);
    --shadow-white: rgba(255, 255, 255, 0.1);
    --post-card-black: rgba(0, 0, 0, 0.05);
    --post-card-white: rgba(255, 255, 255, 0.05);

    --background: var(--white);
    --background-text: var(--black);
    --background2: var(--ghost-white);
    --background3: var(--pale-neutral-shade-light);
    --post-background: var(--pale-neutral-shade-light);
    --box-shadow-background: var(--shadow-black);
    --post-card-background: var(--post-card-black);
}

@media (prefers-color-scheme: dark) {

    :root {
        --background: var(--black);
        --background-text: var(--white);
        --background2: var(--ghost-black);
        --background3: var(--pale-neutral-shade-black);
        --post-background: var(--pale-neutral-shade-dark);
        --box-shadow-background: var(--shadow-white);
        --post-card-background: var(--post-card-white);
    }

}

body.light {
    --background: var(--white);
    --background-text: var(--black);
    --background2: var(--ghost-white);
    --background3: var(--pale-neutral-shade-light);
    --post-background: var(--pale-neutral-shade-light);
}

body.dark {
    --background: var(--black);
    --background-text: var(--white);
    --background2: var(--ghost-black);
    --post-background: var(--pale-neutral-shade-dark);
}

html {
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
    transition: color 300ms, background-color 300ms;
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: 500;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* transition: all .5s linear; */
    transition: width none;
}

.font1 {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
}


.container {
    max-width: 900px;
}

a {
    color: var(--mt-color);
    text-decoration: none;
}

a:hover {
    color: var(--firebrick);
}

body {
    background-color: var(--background);
    color: var(--background-text);
}

.lazy {
    opacity: 0;
    transition: opacity 0.5s;
}

.lazy[src] {
    opacity: 1;
}

body {
    font-size: 16px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 15px;
    line-height: 1.5;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 4px;
}

.btn-primary {
    background-color: #2563eb;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #1e40af;
}

.btn-danger {
    background-color: #dc3545;
    color: #ffffff;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
}

.btn-danger:active {
    background-color: #a52834;
    transform: scale(0.98);
}

.btn-warning {
    background-color: #ffc107;
    color: #000000;
    border-color: #ffc107;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

.btn-warning:active {
    background-color: #c69500;
    transform: scale(0.98);
}

/* Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px;
    background-color: var(--background);
    color: var(--background-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 500;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar .fa {
    font-size: 22px;
    cursor: pointer;
}

.navbar .logo img {
    width: 150px;
    height: auto;
}

.nav-right {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

/* Left Menu */
.left-menu {
    position: fixed;
    top: 56px;
    left: -240px;
    width: 240px;
    height: calc(100% - 56px);
    background-color: var(--background);
    color: var(--background-text);
    padding-top: 10px;
    transition: 0.3s;
    overflow-y: auto;
    z-index: 504;
}

.left-menu .left-menu-left {
    display: none;
}

.left-menu.active {
    left: 0;
}

.left-menu.posts-page.active {
    left: 0;
}

.left-menu.collapsed {
    width: 70px;
}

.left-menu ul {
    list-style: none;
}

.left-menu ul li {
    padding: 12px 20px;
    cursor: pointer;
}

.left-menu ul li a {
    display: flex;
    align-items: center;
    color: var(--background-text);
}

.left-menu ul li.active {
    background: var(--background2);

}

.left-menu ul li:hover {
    background: var(--background3);
}

.left-menu ul li span {
    margin-left: 30px;
}

.left-menu.collapsed .menu-label {
    opacity: 0;
    width: 0;
    overflow: hidden;
}


/* Main */
.main {
    margin-top: 56px;
    margin-left: 0;
    transition: 0.3s;
}

.main.full {
    margin-left: 70px;
}

/* Basic Modal  */
.basic-modal {
    position: fixed;
    display: none;
    z-index: 501;
    padding: 20px;
}

.pop-modal-content {
    width: 320px;
    background-color: var(--background);
    color: var(--background-text);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 1px 5px var(--box-shadow-background);
}

.basic-modal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 10px 12px 5px;
}

.basic-modal-top h2 {
    font-size: 18px;
    font-weight: 600;
}

.basic-modal-top button {
    border: 0;
    outline: 0;
    background: transparent;
    cursor: pointer;
}

.basic-modal-top button .fa {
    font-size: 18px;
    color: var(--background-text);
}

.basic-modal-center {
    padding: 12px 10px 12px 5px;
}

.basic-modal-center ul {
    list-style: none;
}

.basic-modal-center ul li {
    background-color: var(--background);
    margin-bottom: 8px;
    padding: 12px 10px;
    cursor: pointer;
}

.basic-modal-center .login-link-li {
    margin-bottom: 0;
}

.basic-modal-center ul li a {
    display: flex;
    align-items: center;
    color: var(--background-text);
}

.basic-modal-center ul li:hover {
    background: #f2f2f2;
    background: var(--background2);
}

.basic-modal-footer {
    padding: 12px 10px 12px 5px;
}

.basic-modal-footer p {
    font-size: 16px;
}

/*  Top Categories Navigation */
.top-category {
    display: flex;
    background-color: var(--background);
    color: var(--background-text);
    height: 50px;
    width: 100%;
    padding: 5px;
}

.top-category a {
    color: var(--background-text);
    text-decoration: none;
    font-weight: 400;
}

.top-category a:hover {
    text-shadow: 0 0 5px var(--mt-color);
}

.top-cat-left {
    width: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 2px solid var(--background);
}

.top-cat-right {
    width: 75%;
}

.top-cat-right ul {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 1vw;
    overflow-x: auto;
}

.top-cat-right ul::-webkit-scrollbar {
    display: none;
}

.top-cat-right ul li {
    margin: 0vw 2vw;
    list-style-type: none;
}

.top-explore-btn {
    outline: none;
    background-color: var(--background2);
    border: none;
    padding: 8px 10px;
    border-radius: 2vw;
}

/* Hero */
.hero {
    background-image: linear-gradient(to right, #093028, #237a57);
    color: #ffffff;
    padding: 60px 20px 40px 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.4;
}

.hero-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Posts */
.posts {
    margin-top: 10px;
}

.section-header {
    margin-bottom: 30px;
    text-align: center;
}

.section-header h2 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.section-description {
    color: #666;
    font-size: 15px;
}

.post-grid {
    display: grid;
    gap: 15px;
    padding: 0 8px;
}

/* Post Card */
.post-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--background);
    color: var(--background-text);
    overflow: hidden;
    box-shadow: 0 4px 15px var(--post-card-background);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px var(--box-shadow-background);
}

.post-image {
    flex: 0 0 130px;
    aspect-ratio: 16 / 9;
    background: var(--background2);
    border-radius: 8px;
    overflow: hidden;
    display: block;
}

.post-image img {
    width: 100%;
    height: auto;
}

.post-content {
    flex: 1;
    padding: 0;
    padding: 10px 5px;
}

.post-title {
    font-size: 16px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.post-title a {
    color: var(--background-text);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-title a:hover {
    color: var(--mt-color);
}

.post-meta {
    font-size: 14px;
    color: #777;
}


/* PP Posts */
.pp-posts {
    max-width: 100%;
    padding: 15px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 13px;
    margin-bottom: 12px;
}

.breadcrumb ol {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    color: #666;
}

.breadcrumb li+li:before {
    content: "›";
    padding: 0 8px;
    color: #aaa;
}

.breadcrumb a {
    text-decoration: none;
    color: var(--mt-color);
}

.breadcrumb a:hover {
    color: #ff0000;
}

/* Title */
.o-title h1 {
    font-size: 22px;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Author & Meta */
.post-author-details {
    font-size: 13px;
    color: #777;
    margin-bottom: 15px;
}

.post-author-details i {
    margin-right: 4px;
}

/* Featured Image */
.pp-posts figure {
    margin: 0 0 20px 0;
    text-align: center;
}

.pp-posts figure img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Ytube */
.pp-posts .ytube1 {
    text-align: center;
    margin: 20px 0;
    padding: 5px 0;
}

.pp-posts .ytube1 iframe {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    border: none;
    border-radius: 3vw;
}

/* Watch Text */
.pp-posts .ytube1 p {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Share Btn */
.share-btn {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 0;
    bottom: 40vh;
    z-index: 600;
}

.share-btn .fa-facebook,
.share-btn .fa-twitter,
.share-btn .fa-linkedin,
.share-btn h2 {
    display: none;
}

.share-btn .fa {
    padding: 10px;
    font-size: 20px;
    width: 50px;
    text-align: center;
    text-decoration: none;
}

.share-btn .fa:hover {
    opacity: 0.7;
}

.share-btn .fa-facebook {
    background: var(--facebook-color);
    color: var(--white);
}

.share-btn .fa-twitter {
    background: var(--twitter-color);
    color: var(--white);
}

.share-btn .fa-whatsapp {
    background: var(--whatsapp-color);
    color: var(--white);
}

.share-btn .fa-linkedin {
    background: var(--linkedin-color);
    color: var(--white);
}

/* PP */
.pp {
    min-width: 200px;
    margin: 1vw 0;
    position: relative;
    user-select: none;
}

.pp-editor {
    margin-bottom: 10vw;
}

.pp p,
.pph p {
    margin: 16px auto;
    font-size: 17px;
    line-height: 1.8rem;
    text-indent: 20px;
}

.pp h2,
.pph h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 30px 0 15px 0;
}

.pp h3,
.pph h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 20px 0 15px 0;
}

.pp h4,
.pph h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 15px 0;
}

.pp ul,
.pph ul {
    font-size: 16px;
    margin: 10px 0;
}

.pp ul li,
.pph ul li {
    padding-left: 5px;
    list-style-type: none;
    margin: 10px 0;
}

.pp video {
    display: block;
    margin: 0 auto;
}

.pp figure {
    text-align: center;
    padding: 0;
    margin: 3vw 0;
}

.pp figure img {
    width: 90%;
    margin: 0 auto;
    visibility: visible;
    border-radius: 0;
}

.pp figcaption {
    font-size: 14px;
    color: #777;
}

.pp .article-video {
    width: 100%;
    margin: 20px auto;
}

.pp .article-video-player {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.pp .article-video figcaption {
    font-size: 14px;
    color: #777;
    margin-top: 8px;
    line-height: 1.5;
}

.pph {
    background-color: var(--pph-background);
    color: var(--black);
    padding: 2px 15px;
    margin: 5px;
}

.pp-table {
    padding: 0.5vw;
    margin: 0.5vw;
    overflow-x: auto;
}

.pp-table table {
    color: var(--background-text);
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    border: 1px solid #ddd;
}

.pp-table th,
.pp-table td {
    text-align: left;
    padding: 8px;
}

.pp-table tr:nth-child(even) {
    background-color: var(--pale-neutral-shade);
}

/* Editor Button List */
.pp-button-list {
    display: flex;
    white-space: nowrap;
    background-color: var(--background2);
    color: var(--background-text);
    padding: 3vw;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.pp-button-list::-webkit-scrollbar {
    display: none;
}

.pp-button-list button {
    background-color: var(--mt-color);
    color: var(--white);
    border: none;
    outline: none;
    border-radius: 0.5vw;
    text-shadow: 0 0 5px var(--black);
    margin: 0 2vw 0 0;
    padding: 1.5vw 3.5vw;
    cursor: pointer;
}

.empty-block,
.broken-image {
    outline: 2px solid red;
    animation: shake 0.25s ease-in-out;
}

/* More Author */
.more-author {
    margin: 15px 0;
    padding: 0 12px;
}

.more-author .ma-top h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--background-text);
}

.more-author ul {
    margin: 0;
    padding-left: 20px;
}

.more-author ul li {
    margin-bottom: 10px;
}

.more-author ul li a {
    text-decoration: none;
    font-size: 15px;
    line-height: 1.5;
    display: block;
    transition: 0.2s ease;
}

.more-author ul li a:hover {
    color: #ff0000;
}

/* Optional: Better spacing on small screens */
.more-author .ma-bottom {
    margin-top: 15px;
}


/* General Alert Modal */
.general-alert-modal {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 95vw;
    padding: 2vw;
    margin: 0;
    z-index: 9999;
}

.general-alert {
    background-color: #3b82f6;
    color: #ffffff;
    padding: 1.5vw;
    margin-top: 1.5vw;
    display: flex;
    border-radius: 1.5vw;
}

.general-alert-left {
    width: 85%;
    padding-right: 2vw;
}

.general-alert-left p {
    margin: 0;
    font-size: 14px;
}

.general-alert-right {
    width: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.general-alert-right p {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
}

.general-alert-modal-right {
    padding: 3vw;
    margin-top: 1.5vw;
    text-align: center;
}

.general-alert-modal-right span {
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    background-color: #3b82f6;
    color: #ffffff;
    padding: 2.5vw;
    margin: 0 3vw;
    border-radius: 50%;
}


/* Form Section */
.form-section {
    padding: 25px 20px;
    background-color: var(--background);
    width: 100%;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-left h1 {
    font-size: 26px;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-left p {
    font-size: 15px;
    color: #777;
    line-height: 1.6;
}

.form-right {
    padding: 15px 25px;
    border-radius: 14px;
    width: 100%;
}

.google-form-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.google-form-btn:hover {
    background: #f9fafb;
}

.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    margin-bottom: 6px;
    color: #777;
}

.form-group input,
.form-group textarea {
    padding: 11px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    transition: all 0.2s ease;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: #777;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.form-section .btn-primary {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-thank {
    margin-top: 15px;
    font-size: 14px;
    min-height: 20px;
}

.form-footer {
    text-align: center;
    font-size: 14px;
}

.form-footer p {
    margin-bottom: 8px;
}

.form-footer a {
    text-decoration: none;
    color: var(--mt-color);
}

.form-footer a:hover {
    color: #ff0000;
}

/* Authors Section */
.authors-section {
    padding: 30px 20px;
    background-color: var(--background2);
}

.authors-header {
    text-align: center;
    margin-bottom: 40px;
}

.authors-header h1 {
    font-size: 26px;
    margin-bottom: 10px;
}

.authors-header p {
    font-size: 15px;
    color: #777;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.authors-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.author-card {
    background-color: var(--background);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    box-shadow: 0 4px 15px var(--post-card-background);
    transition: 0.2s ease;
}

.author-card:hover {
    transform: translateY(-4px);
}

.author-image img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
}

.author-content h2 {
    font-size: 18px;
    margin-bottom: 6px;
}

.author-content p {
    font-size: 14px;
    color: #777;
    line-height: 1.5;
}

/* Account Page */
.account-page {
    padding: 25px 18px;
}

.account-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px;
    border-radius: 12px;
}

.profile-image img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info {
    min-width: 0;
}

.profile-info h2 {
    font-size: 20px;
    margin-bottom: 6px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.profile-meta {
    font-size: 14px;
    color: #777;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.account-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.account-actions a,
.account-actions button {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    border: none;
}

.account-actions a:hover {
    color: #ffffff;
}

.account-menu {
    margin-top: 30px;
}

.account-menu h2 {
    font-size: 20px;
    margin-bottom: 12px;
}

.menu-list {
    list-style: none;
    padding: 0;
}

.menu-list li {
    border-bottom: 1px solid var(--background2);
}

.menu-list a {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: var(--background-text);
    font-size: 15px;
}

/* MT one Ad */
.mt-one-ad {
    border: 1px solid var(--background-text);
    background: var(--background);
}

.mt-one-ad .mt-one-ad-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--background-text);
}

.mt-one-ad .mt-one-ad-image {
    padding: 5px;
    margin: 0;
}

.mt-one-ad .mt-one-ad-image img {
    width: 100%;
    display: block;
}

.mt-one-ad .mt-one-ad-content {
    padding: 5px;
}

.mt-one-ad .mt-one-ad-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.mt-one-ad .mt-one-ad-description {
    text-indent: 0;
    font-size: 15px;
    margin-top: 8px;
    line-height: 1.5;
}

.mt-one-ad .mt-one-ad-arrow {
    display: block;
    text-align: right;
    padding: 0 10px 0 0;
}

.mt-one-ad .mt-one-ad-arrow .fa {
    font-size: 50px;
    color: var(--mt-color);

}

.mt-one-ad .mt-one-ad-link:hover .mt-one-ad-title {
    color: var(--firebrick);
}

/* Upload Post */
.upload-post {
    padding: 25px 20px;
    background-color: var(--background);
    width: 100%;
}

.upload-post-left {
    margin-bottom: 10px;
}

.upload-post-left h1 {
    font-size: 26px;
    font-weight: 600;
}

.upload-post-right {
    display: flex;
    flex-direction: column-reverse;
}

.upload-post-right-left {
    padding: 15px 25px;
}

.upload-post-right-left .editor-desc button {
    margin-top: 8px;
}

/* Upload Post Image Modal */
.upload-post-right .upload-post-image-modal {
    position: relative;
    aspect-ratio: 16/9;
}

.upload-post-right .upload-post-image-modal img {
    width: 100%;
    border-radius: 2vw;
    height: 100%;
}

.upload-post-right .upload-post-image-modal input {
    display: none;
}

.upload-post-right .upload-post-image-modal button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px var(--black);
}

.upload-post-right figure {
    margin: 0;
}

/* Useful Modal */
.useful-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--background2);
    width: 90%;
    z-index: 505;
    box-shadow: 0 0 8px var(--box-shadow-background);
}

.useful-modal-left {
    background-color: var(--background2);
    padding: 10px 20px;
    text-align: right;
}

.useful-modal-left button {
    border: 0;
    outline: 0;
    background: transparent;
}

.useful-modal-left .fa {
    font-size: 18px;
    cursor: pointer;
    color: var(--background-text);
}

.useful-modal-center {
    background-color: var(--background2);
    padding: 10px;
    max-height: 250px;
    overflow-y: auto;
}

.useful-modal-center ul li {
    list-style-type: none;
    background-color: var(--background);
    padding: 13px 10px;
    margin: 10px 0 0 0;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Selected item */
.useful-modal-center ul li.selected {
    background-color: #0d6efd;
    color: #fff;
}

.useful-modal-center .spinner {
    margin: 20px auto;
    background-color: transparent;
}

.useful-modal-center .no-editor-post {
    background-color: var(--background);
    padding: 15px 5px 5px 5px;
    text-align: center;
}

.useful-modal-center .no-editor-post p {
    font-size: 18px;
    margin: 0;
}

.useful-modal-center .no-editor-post .btn {
    margin: 10px 0;
}

.useful-modal-right {
    background-color: var(--background2);
    padding: 10px;
    text-align: right;
}

/* Login Required Modal */
.login-required {
    background-color: var(--background);
    padding: 20px;
    margin: 0 auto;
    aspect-ratio: 3 / 3;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
}

.login-required a:hover {
    color: #ffffff;
}

.login-required .login-required-header h1 {
    font-size: 26px;
    font-weight: 600;
}

.login-required .login-required-content p {
    font-size: 16px;
}

.login-required .login-required-content .login-required-actions {
    margin: 20px 0;
}

.login-required .login-required-content .login-required-actions .btn {
    margin: 0 6px;
}

/* My Btn */
.myBtn {
    position: fixed;
    bottom: 25px;
    right: 20px;
    z-index: 99;
    border: none;
    background-color: var(--brandeis-blue);
    color: white;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Show state */
.myBtn.show {
    opacity: 0.7;
    visibility: visible;
}

/* Hover */
.myBtn:hover {
    opacity: 1;
    transform: translateY(-3px);
}

/* Spinner */
.spinner {
    display: block;
    text-align: center;
    padding: 30px 0;
}

.spinner.active {
    display: block;
}

.spinner i {
    font-size: 32px;
    color: var(--background-text);
}

/* Accessibility helper */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
}


/* Optional smoother animation (override FA default speed) */
.fa-spin {
    animation: fa-spin 1s infinite linear;
}

/* Tablet and up */
@media only screen and (min-width: 768px) {

    /*  Top Categories Navigation */
    .top-cat-left {
        width: 13%;
    }

    .top-cat-right {
        width: 87%;
    }

    .top-explore-btn {
        padding: 8px 10px;
        border-radius: 1vw;
    }

    /* Hero */
    .hero h1 {
        font-size: 32px;
    }

    /* Posts */
    .section-header h2 {
        font-size: 22px;
    }

    .post-card {
        display: block;
        border-radius: 12px;
    }

    .post-grid {
        padding: 0 8px;
        gap: 30px;
        grid-template-columns: repeat(2, 1fr);
    }

    .post-image img {
        height: auto;
    }

    /* PP Posts */
    .pp-posts {
        padding: 25px;
    }

    /* Featured Image */
    .pp-posts figure {
        margin: 30px 0 15px 0;
    }

    .pp-posts figure img {
        width: 50%;
    }

    /* Ytube */
    .pp-posts .ytube1 iframe {
        height: 350px;
    }

    /* Share Btn */
    .share-btn {
        margin: 20px 0;
        display: initial;
        top: initial;
        bottom: initial;
        position: relative;
        padding: 0;
        font-size: initial;
        z-index: 0;
    }

    .share-btn .fa-facebook,
    .share-btn .fa-twitter,
    .share-btn .fa-linkedin,
    .share-btn h2 {
        display: initial;
    }

    .share-btn .fa {
        margin: 10px 0;
    }

    .share-btn h2 {
        display: block;
        font-size: 16px;
        text-align: left;
    }

    /* PP */
    .pp {
        margin: 1.5vw 0;
    }

    .pp p,
    .pph p {
        font-size: 16px;
    }

    .pp h2,
    .pph h2 {
        font-size: 22px;
        font-weight: 600;
        margin: 20px 0 10px 0;
    }

    .pp h3,
    .pph h3 {
        font-size: 20px;
        font-weight: 600;
        margin: 15px 0 10px 0;
    }

    .pp h4,
    .pph h4 {
        font-size: 18px;
        font-weight: 600;
        margin: 15px 0 10px 0;
    }

    .pp figure {
        text-align: center;
        padding: 0.5vw 0;
        margin: 1.5vw 0;
    }

    .pp figure img {
        width: 60%;
        margin: 0 auto;
        visibility: visible;
        border-radius: 0;
    }

    .pp figcaption {
        font-size: 14px;
    }


    .pp .article-video {
        max-width: 700px;
    }

    .pp .article-video figcaption {
        font-size: 15px;
    }

    .pph {
        padding: 5px 15px;
    }

    .pp-table {
        padding: 0.5vw;
        margin: 0.5vw;
        overflow-x: auto;
    }

    .pp-table table {
        color: var(--background-text);
        border-collapse: collapse;
        border-spacing: 0;
        width: 100%;
        border: 1px solid #ddd;
    }

    .pp-table th,
    .pp-table td {
        text-align: left;
        padding: 8px;
    }

    .pp-table tr:nth-child(even) {
        background-color: var(--pale-neutral-shade);
    }

    /* Editor Button List */
    .pp-button-list {
        padding: 1.5vw;
    }

    .pp-button-list button {
        border-radius: 1vw;
        margin: 0 1.5vw 0 0;
        padding: 1vw 3vw;
    }

    /* More Author */
    .more-author {
        margin: 20px 0;
    }

    .more-author .ma-top h2 {
        font-size: 22px;
    }

    .more-author ul li a {
        font-size: 16px;
    }

    /* General Alert Modal */
    .general-alert-modal {
        width: 50vw;
        margin: 2vw;
    }

    .general-alert {
        padding: 1.5vw;
        border-radius: 1vw;
    }

    .general-alert-left {
        width: 88%;
    }

    .general-alert-right {
        width: 12%;
    }

    .general-alert-modal-right {
        margin-top: 0.5vw;
    }

    .general-alert-modal-right span {
        padding: 1vw;
        margin: 0 1.5vw;
    }

    /* Form Section */
    .form-section {
        padding: 30px 20px;
    }

    .form-container {
        width: 90%;
        margin: 0 auto;
    }

    .form-left h1 {
        font-size: 30px;
    }

    .form-right {
        padding: 40px;
    }


    .form-group small {
        font-size: 13.5px;
    }

    /* Authors Section */
    .authors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .authors-header h1 {
        font-size: 30px;
    }

    /* Account Page */
    .account-page {
        max-width: 700px;
        margin: auto;
    }

    .profile-image img {
        width: 90px;
        height: 90px;
    }

    /* MT one Ad */
    .mt-one-ad .mt-one-ad-link {
        flex-direction: row;
        padding: 5px;
    }

    .mt-one-ad .mt-one-ad-image {
        width: 40%;
    }

    .mt-one-ad .mt-one-ad-content {
        width: 60%;
    }

    .mt-one-ad .mt-one-ad-title {
        font-size: 26px;
    }

    /* Upload Post */
    .upload-post {
        padding: 30px 20px;
    }

    .upload-post-left h1 {
        font-size: 30px;
    }

    .upload-post-right {
        padding: 40px;
    }

    .upload-post-right-left {
        padding: 15px 25px;
    }

    .upload-post-right-left .editor-desc button {
        margin-top: 10px;
    }

    /* Useful Modal */
    .useful-modal {
        width: 70%;
    }

    .useful-modal-left {
        padding: 15px 20px;
    }

    .useful-modal-center {
        padding: 20px;
        max-height: 300px;
    }

    .useful-modal-center .no-editor-post {
        padding: 25px 15px 15px 15px;
    }

    .useful-modal-right {
        padding: 20px;
    }

    /* Login Required Modal */
    .login-required {
        padding: 50px;
        aspect-ratio: 16 / 9;
        gap: 20px;
    }

    .login-required .login-required-content .login-required-actions {
        margin: 30px 0;
    }

    .login-required .login-required-content .login-required-actions .btn {
        margin: 0 10px;
    }

}

/* Desktop */
@media only screen and (min-width: 1024px) {

    /* Header */
    .navbar {
        box-shadow: 0 1px 3px var(--box-shadow-background);
    }

    /* Left Menu */
    .left-menu {
        left: 0;
        z-index: 0;
    }

    .left-menu .left-menu-left {
        display: none;
        align-items: center;
        gap: 15px;
        height: 56px;
        padding-left: 16px;
    }

    .left-menu .left-menu-left .fa {
        font-size: 22px;
        cursor: pointer;
    }

    .left-menu .left-menu-left .logo img {
        width: 150px;
        height: auto;
    }

    .left-menu.posts-page {
        left: -240px;
        padding-top: 0;
        top: 0;
        height: 100%;
        z-index: 502;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .left-menu.posts-page .left-menu-left {
        display: flex;
    }

    .main {
        margin-left: 240px;
    }

    .main.posts-page-active {
        margin-left: 6vw;
        margin-right: 6vw;
        display: flex;
    }

    .main .pp-posts {
        width: 70%;
    }

    .main aside {
        width: 30%;
    }

    /*  Top Categories Navigation */
    .top-cat-left {
        width: 10%;
    }

    .top-cat-right {
        width: 90%;
    }

    /* Hero */
    .hero {
        width: 100%;
    }

    .hero h1 {
        font-size: 36px;
    }

    /* Posts */
    .posts {
        margin-top: 70px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .post-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .post-grid.posts-aside {
        grid-template-columns: repeat(1, 1fr);
    }


    /* PP Posts */
    .pp-posts {
        padding: 15px;
    }

    /* Featured Image */
    .pp-posts figure {
        margin: 20px 0 5px 0;
    }


    /* Ytube */
    .pp-posts .ytube1 iframe {
        height: 500px;
        border-radius: 10px;
    }

    /* Share Btn */
    .share-btn .fa {
        margin: 10px 10px 10px 0;
    }

    /* PP */
    .pp p,
    .pph p {
        font-size: 16px;
    }

    .pp .article-video {
        max-width: 800px;
    }

    .pp .article-video figcaption {
        font-size: 16px;
    }

    /* Editor Button List */
    .pp-button-list {
        padding: 0.5vw;
        left: 4vw;
    }

    .pp-button-list button {
        border-radius: 0.5vw;
        margin: 0 0.7vw 0 0;
        padding: 0.4vw 0.6vw;
    }

    /* More Author */
    .more-author {
        margin: 5px 0;
    }

    .more-author .ma-top h2 {
        font-size: 24px;
    }

    .more-author ul li {
        margin-bottom: 18px;
    }

    .more-author ul li a {
        font-size: 17px;
    }

    .more-author .ma-bottom {
        margin-top: 20px;
    }

    /* General Alert Modal */
    .general-alert-modal {
        width: 30vw;
        margin: 0.5vw;
        padding: 1vw;
    }

    .general-alert {
        padding: 0.5vw;
        margin-top: 0.5vw;
        border-radius: 0.5vw;
    }

    .general-alert-left {
        width: 90%;
    }

    .general-alert-right {
        width: 10%;
    }

    .general-alert-modal-right {
        margin-top: 0;
    }

    .general-alert-modal-right span {
        padding: 0.5vw;
        margin: 0 0.5vw;
        font-size: 16px;
    }

    /* Form Section */
    .form-section {
        padding: 20px;
    }

    .form-container {
        width: 50%;
        gap: 1px;
    }

    .form-right {
        max-width: 600px;
    }

    .form-group small {
        font-size: 14px;
    }

    .form-left h1 {
        font-size: 34px;
    }

    /* Authors Section */
    .authors-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .authors-header h1 {
        font-size: 34px;
    }

    .author-card {
        flex-direction: column;
        text-align: center;
    }

    .author-image img {
        width: 90px;
        height: 90px;
    }

    /* Account Page */
    .account-page {
        margin-left: 0;
        max-width: 800px;
    }

    .account-header h1 {
        font-size: 32px;
    }

    /* MT one Ad */
    .mt-one-ad .mt-one-ad-link {
        padding: 15px;
    }

    .mt-one-ad .mt-one-ad-content {
        padding-left: 15px;
    }

    .mt-one-ad .mt-one-ad-title {
        font-size: 32px;
    }

    .mt-one-ad .mt-one-ad-description {
        font-size: 16px;
    }

    .mt-one-ad .mt-one-ad-arrow {
        font-size: 50px;
    }

    /* Upload Post */
    .upload-post {
        padding: 20px;
    }

    .upload-post-left {
        margin-bottom: 0;
    }

    .upload-post-left h1 {
        font-size: 34px;
    }

    .upload-post-right {
        flex-direction: row;
    }

    .upload-post-right-left {
        padding: 10px 40px;
        width: 60%;
    }

    .upload-post-right-right {
        width: 40%;
        padding: 10px;
    }


    /* Useful Modal */
    .useful-modal {
        width: 50%;
    }

    .useful-modal-left {
        padding: 15px 30px;
    }

    .useful-modal-center .no-editor-post {
        padding: 35px 25px 25px 25px;
    }

    .useful-modal-center .no-editor-post p {
        font-size: 18px;
        margin: 0;
    }

    .useful-modal-center .no-editor-post .btn {
        margin: 10px 0;
    }

    .useful-modal-right {
        padding: 20px 30px;
    }

    /* Login Required Modal */
    .login-required {
        height: 300px;
    }

    .login-required .login-required-content .login-required-actions .btn {
        margin: 0 20px;
    }


}