:root {
    --color-primary: #7289da;
    --color-primary-light: rgba(114, 137, 218, 0.18);
    --color-primary-variant: #5865f2;
    --color-red: #ff4757;
    --color-red-light: rgba(255, 71, 87, 0.15);
    --color-green: #20bf6b;
    --color-green-light: rgba(32, 191, 107, 0.15);
    --color-gray-900: #18191c;
    --color-gray-800: #202225;
    --color-gray-700: #2f3136;
    --color-gray-600: #36393f;
    --color-gray-500: #40444b;
    --color-gray-400: #72767d;
    --color-gray-300: #b9bbbe;
    --color-gray-200: #dcddde;
    --color-white: #ffffff;
    --color-bg: #121212;
    --color-bg-secondary: #1e1e2e;
    --color-text: #eaeaea;
    --color-accent: #8a61ff;
    --color-accent-hover: #6f42ff;

    --transition: all 300ms ease;
    --transition-slow: all 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 300ms cubic-bezier(0.68, -0.55, 0.27, 1.55);

    --container-width-lg: 78%;
    --container-width-md: 90%;
    --form-width: 40%;

    --card-border-radius-1: 0.4rem;
    --card-border-radius-2: 0.6rem;
    --card-border-radius-3: 1rem;
    --card-border-radius-4: 2rem;
    --card-border-radius-5: 5rem;

    --box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    --box-shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* =========== GENERAL =========== */

* {
    margin: 0;
    padding: 0;
    outline: 0;
    border: 0;
    appearance: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    font-size: 0.9rem;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(
            circle at 15% 50%,
            rgba(114, 137, 218, 0.08),
            transparent 25%
        ),
        radial-gradient(
            circle at 85% 30%,
            rgba(138, 97, 255, 0.08),
            transparent 25%
        );
    z-index: -1;
}

.container {
    width: var(--container-width-lg);
    max-width: 1800px;
    margin-inline: auto;
}

section {
    margin-top: 5rem;
    width: 100vw;
}

h1,
h2,
h3,
h4,
h5 {
    color: var(--color-white);
    line-height: 1.3;
    font-weight: 600;
}

.section__extra-margin {
    margin-top: 8rem;
}

h1 {
    font-size: 3.2rem;
    margin: 1rem 0;
    background: linear-gradient(
        90deg,
        var(--color-primary) 0%,
        var(--color-accent) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2rem;
    margin: 1rem 0;
}

h3 {
    font-size: 1.2rem;
    margin: 0.8rem 0 0.5rem;
}

h4 {
    font-size: 1rem;
}

a {
    color: var(--color-white);
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent);
}

img {
    display: block;
    width: 100%;
    object-fit: cover;
    height: 100%;
}

/* =========== NAVBAR =========== */

nav {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100vw;
    height: 4.5rem;
    position: fixed;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(18, 18, 18, 0.98);
    height: 3.8rem;
}

nav button {
    display: none;
}

.nav__container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-primary);
    transition: var(--transition-bounce);
}

.avatar:hover {
    transform: scale(1.1);
    border-color: var(--color-accent);
}

.nav__logo {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(
        90deg,
        var(--color-primary) 0%,
        var(--color-accent) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
}

.nav__logo:hover {
    transform: scale(1.05);
}

.nav__items {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav__items a {
    position: relative;
    font-weight: 500;
}

.nav__items a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(
        90deg,
        var(--color-primary) 0%,
        var(--color-accent) 100%
    );
    transition: var(--transition);
}

.nav__items a:hover::after {
    width: 100%;
}

.nav__profile {
    position: relative;
    cursor: pointer;
}

.nav__profile ul {
    position: absolute;
    top: 140%;
    right: 0;
    display: flex;
    flex-direction: column;
    background: var(--color-gray-800);
    border-radius: var(--card-border-radius-2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    overflow: hidden;
}

.nav__profile:hover > ul {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.nav__profile ul li a {
    padding: 1rem 1.5rem;
    display: block;
    width: 100%;
    transition: var(--transition);
}

.nav__profile ul li a:hover {
    background: var(--color-gray-700);
    color: var(--color-white);
}

.nav__profile ul li:last-child a {
    background: var(--color-red);
    color: var(--color-white);
}

.nav__profile ul li:last-child a:hover {
    background: var(--color-red-light);
}

/* =========== CATEGORY BUTTON =========== */

.category__button {
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: var(--card-border-radius-2);
    font-weight: 600;
    font-size: 0.8rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.category__button:hover {
    background: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* =========== POSTS =========== */

.post {
    background: var(--color-gray-900);
    padding: 1.5rem;
    border-radius: var(--card-border-radius-3);
    transition: var(--transition-slow);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    overflow: hidden;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.post__thumbnail {
    border-radius: var(--card-border-radius-3);
    overflow: hidden;
    margin-bottom: 1.6rem;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.post__thumbnail img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post:hover .post__thumbnail img {
    transform: scale(1.05);
}

.post__info {
    position: relative;
}

.post__title {
    margin: 1rem 0 0.5rem;
    transition: var(--transition);
}

.post__title:hover {
    color: var(--color-accent);
}

.post__body {
    color: var(--color-gray-300);
    margin: 1rem 0 1.5rem;
    font-size: 0.9rem;
    line-height: 1.7;
}

.post__author {
    display: flex;
    gap: 1rem;
    margin-top: 1.2rem;
    align-items: center;
}

.post__author-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-primary);
}

.post__author-info h5 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    color: var(--color-gray-200);
}

.post__author-info small {
    color: var(--color-gray-400);
}

/* =========== FEATURED =========== */

.featured {
    margin-top: 8rem;
}

.featured__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--color-gray-900);
    padding: 2rem;
    border-radius: var(--card-border-radius-3);
    box-shadow: var(--box-shadow);
    transition: var(--transition-slow);
}

.featured__container:hover {
    box-shadow: var(--box-shadow-hover);
}

.featured .post__thumbnail {
    height: auto;
}

/* =========== POSTS GRID =========== */

.posts__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

/* =========== CATEGORY BUTTONS =========== */

.category__buttons {
    padding: 4rem 0;
    border-top: 2px solid var(--color-gray-700);
    border-bottom: 2px solid var(--color-gray-700);
}

.category__buttons-container {
    width: fit-content;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* =========== FOOTER =========== */

footer {
    background: var(--color-gray-900);
    padding: 5rem 0 0;
    box-shadow: inset 0 1.5rem 1.5rem rgba(0, 0, 0, 0.1);
    margin-top: 6rem;
}

.footer__socials {
    margin-inline: auto;
    width: fit-content;
    margin-bottom: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.footer__socials a {
    background: var(--color-gray-700);
    border-radius: 50%;
    height: 3rem;
    width: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
}

.footer__socials a:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-5px);
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

footer li {
    padding: 0.6rem 0;
}

footer h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

footer ul a {
    color: var(--color-gray-300);
    transition: var(--transition);
}

footer ul a:hover {
    color: var(--color-white);
    margin-left: 0.5rem;
}

.footer__copyright {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 2px solid var(--color-gray-700);
    margin-top: 4rem;
    color: var(--color-gray-400);
}

/* =========== SEARCH =========== */

.search__bar {
    margin-top: 7rem;
}

.search__bar-container {
    position: relative;
    width: 30rem;
    background: var(--color-gray-700);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    padding: 0.8rem 1.5rem;
    border-radius: var(--card-border-radius-3);
    color: var(--color-gray-300);
    transition: var(--transition);
}

.search__bar-container:focus-within {
    box-shadow: 0 0 15px rgba(114, 137, 218, 0.3);
}

.search__bar-container > div {
    width: 100%;
    display: flex;
    align-items: center;
}

.search__bar input {
    background: transparent;
    margin-left: 0.7rem;
    padding: 0.5rem 0;
    width: 100%;
    color: var(--color-white);
    font-size: 1rem;
}

.search__bar input::placeholder {
    color: var(--color-gray-400);
}

/* =========== BUTTONS =========== */

.btn {
    display: inline-block;
    width: fit-content;
    padding: 0.8rem 1.6rem;
    background-color: var(--color-primary);
    border-radius: var(--card-border-radius-2);
    cursor: pointer;
    transition: var(--transition);
    color: var(--color-white);
    font-weight: 600;
}

.btn.sm {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}

.btn.danger {
    background-color: var(--color-red);
}

.btn:hover {
    background: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn.danger:hover {
    background: #ff0a2f;
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* =========== DASHBOARD =========== */

.dashboard {
    margin-top: 6rem;
    padding: 2rem;
}

.sidebar__toggle {
    display: none;
}

.dashboard__container {
    display: grid;
    grid-template-columns: 14rem auto;
    gap: 2rem;
    background: var(--color-gray-800);
    padding: 2.5rem;
    margin-bottom: 5rem;
    border-radius: var(--card-border-radius-3);
    box-shadow: var(--box-shadow);
}

.dashboard aside a {
    color: var(--color-white);
    background: var(--color-gray-700);
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1.6rem;
    transition: var(--transition);
}

.dashboard aside ul li:not(:last-child) a {
    border-bottom: 1px solid var(--color-gray-600);
}

.dashboard aside a:hover {
    background: var(--color-primary-light);
}

.dashboard aside a.active {
    background-color: var(--color-primary);
}

.dashboard aside ul li:first-child a {
    border-top-left-radius: var(--card-border-radius-2);
    border-top-right-radius: var(--card-border-radius-2);
}

.dashboard main table th:first-child {
    border-top-left-radius: var(--card-border-radius-2);
}

.dashboard main table th:last-child {
    border-top-right-radius: var(--card-border-radius-2);
}

.dashboard aside ul li:last-child a {
    border-bottom-left-radius: var(--card-border-radius-2);
    border-bottom-right-radius: var(--card-border-radius-2);
}

.dashboard main {
    margin-left: 1.5rem;
}

.dashboard main h2 {
    margin: 0 0 2rem 0;
    line-height: 1;
}

.dashboard main table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}

.dashboard main table th {
    background: var(--color-primary);
    padding: 0.8rem;
    color: var(--color-white);
    font-weight: 600;
}

.dashboard main table td {
    padding: 1rem;
    border-bottom: 1px solid var(--color-gray-700);
    color: var(--color-gray-300);
}

.dashboard main table tr {
    transition: var(--transition);
}

.dashboard main table tr:hover {
    background-color: var(--color-gray-700);
    color: var(--color-white);
    cursor: default;
}

/* =========== SINGLE POST =========== */

.singlepost {
    margin: 6rem 0 2rem;
}

.singlepost__container {
    width: 65%;
    background: var(--color-gray-900);
    padding: 2rem;
    border-radius: var(--card-border-radius-3);
    box-shadow: var(--box-shadow);
    margin: 0 auto;
}

.singlepost__container h2 {
    margin-top: 0;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

.singlepost__author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.singlepost__author-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-primary);
}

.singlepost__author-info h5 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    color: var(--color-gray-200);
}

.singlepost__author-info small {
    color: var(--color-gray-400);
}

.singlepost__thumbnail {
    border-radius: var(--card-border-radius-3);
    overflow: hidden;
    margin-bottom: 2rem;
    height: auto;
    /* max-height: 500px; */
    display: flex;
    justify-content: center;
}

.singlepost__thumbnail img {
    max-width: 100%;
    /* max-height: 100%; */
    object-fit: contain;
}

/* Improved Slider */
.singlepost__slider {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1rem 0;
    margin-bottom: 2rem;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) var(--color-gray-700);
}

.singlepost__slider::-webkit-scrollbar {
    height: 8px;
}

.singlepost__slider::-webkit-scrollbar-track {
    background: var(--color-gray-700);
    border-radius: 10px;
}

.singlepost__slider::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: 10px;
}

.singlepost__slider img {
    width: 300px;
    height: 200px;
    object-fit: contain;
    border-radius: var(--card-border-radius-2);
    scroll-snap-align: start;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    cursor: pointer;
    background-color: var(--color-gray-800);
}

.singlepost__slider img:hover {
    transform: scale(1.05);
}

/* Content Formatting */
.singlepost__content {
    line-height: 1.8;
    color: var(--color-gray-200);
    font-size: 1.05rem;
}

.singlepost__content p {
    margin: 1.5rem 0;
}

.singlepost__content h3,
.singlepost__content h4 {
    margin: 2rem 0 1rem;
    color: var(--color-primary);
}

.singlepost__content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.singlepost__content a:hover {
    color: var(--color-accent);
}

.singlepost__content ul,
.singlepost__content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.singlepost__content li {
    margin-bottom: 0.5rem;
    list-style-type: disc;
}

.singlepost__content ol li {
    list-style-type: decimal;
}

.singlepost__content blockquote {
    background: var(--color-gray-800);
    border-left: 3px solid var(--color-primary);
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 var(--card-border-radius-2) var(--card-border-radius-2) 0;
}

.content-image {
    max-width: 100%;
    margin: 2rem auto;
    border-radius: var(--card-border-radius-2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.image-caption {
    text-align: center;
    font-style: italic;
    color: var(--color-gray-400);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* =========== CATEGORY POSTS =========== */

.category__title {
    height: 15rem;
    margin-top: 4.5rem;
    background:
        linear-gradient(rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 0.9)),
        var(--color-gray-900);
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.category__title::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,20 C60,40 40,30 0,50 Z" fill="%237289da" opacity="0.1"/></svg>');
    background-size: cover;
    z-index: 0;
}

.category__title h2 {
    font-size: 3rem;
    position: relative;
    z-index: 1;
}

/* =========== EMPTY PAGES =========== */

.empty__page {
    height: 70vh;
    text-align: center;
    display: grid;
    place-content: center;
}

.empty__page h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.empty__page p {
    color: var(--color-gray-400);
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

/* =========== FORM =========== */

.form__section {
    display: grid;
    place-items: center;
    min-height: 90vh;
    margin: 5rem 0;
}

.form__section-container {
    width: var(--form-width);
    background: var(--color-gray-900);
    padding: 3rem;
    border-radius: var(--card-border-radius-3);
    box-shadow: var(--box-shadow);
}

.form__section-container h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.alert__message {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--card-border-radius-2);
    display: flex;
    align-items: center;
}

.alert__message i {
    margin-right: 1rem;
    font-size: 1.5rem;
}

.alert__message.error {
    background: var(--color-red-light);
    color: var(--color-red);
    border-left: 3px solid var(--color-red);
}

.alert__message.success {
    background: var(--color-green-light);
    color: var(--color-green);
    border-left: 3px solid var(--color-green);
}

.alert__message.lg {
    text-align: center;
    padding: 1.5rem 2rem;
    font-size: 1.1rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form__control {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form__control label {
    color: var(--color-gray-300);
    font-weight: 500;
    font-size: 0.9rem;
}

.form__control.inline {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.form__section small {
    margin-top: 1.5rem;
    display: block;
    text-align: center;
    color: var(--color-gray-400);
}

.form__section small a {
    color: var(--color-primary);
    margin-left: 0.5rem;
    transition: var(--transition);
}

.form__section small a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

input,
textarea,
select {
    padding: 1rem 1.6rem;
    background-color: var(--color-gray-700);
    border-radius: var(--card-border-radius-2);
    resize: none;
    color: var(--color-white);
    font-family: "Poppins", sans-serif;
    border: 1px solid transparent;
    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--color-primary);
    background: var(--color-gray-800);
    box-shadow: 0 0 15px rgba(114, 137, 218, 0.1);
}

input[type="file"] {
    background: var(--color-gray-700);
    padding: 1rem;
    border-radius: var(--card-border-radius-2);
    font-size: 0.9rem;
}

/* Animated elements */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(114, 137, 218, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(114, 137, 218, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(114, 137, 218, 0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0px);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slideIn {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.delay-100 {
    animation-delay: 0.1s;
}
.delay-200 {
    animation-delay: 0.2s;
}
.delay-400 {
    animation-delay: 0.4s;
}
.delay-500 {
    animation-delay: 0.5s;
}
.delay-600 {
    animation-delay: 0.6s;
}

/* =========== MEDIA QUERIES (Medium-Sized Devices) =========== */
@media screen and (max-width: 1024px) {
    /* General Styles */
    .container {
        width: var(--container-width-md);
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    h5 {
        font-size: 0.8rem;
    }

    /* Nav Styles */
    nav button {
        display: inline-block;
        font-size: 1.5rem;
        background: transparent;
        color: var(--color-white);
        cursor: pointer;
    }

    nav button#close__nav-btn {
        display: none;
    }

    .nav__container {
        position: relative;
    }

    .nav__items {
        display: none;
        position: absolute;
        flex-direction: column;
        top: 100%;
        right: 0;
        width: 12rem;
        align-items: flex-start;
        justify-content: center;
        gap: 0;
        z-index: 100;
    }

    .nav__items li {
        width: 100%;
        height: 4.5rem;
        display: flex;
        align-items: center;
        box-shadow: -2rem 3rem 7rem rgba(0, 0, 0, 0.7);
        background: var(--color-gray-900);
        border-top: 1px solid var(--color-bg);
        opacity: 0;
        animation: animateDropdown 400ms 0s ease forwards;
        transform-origin: top;
    }

    .nav__items li:nth-child(2) {
        animation-delay: 150ms;
    }

    .nav__items li:nth-child(3) {
        animation-delay: 250ms;
    }

    .nav__items li:nth-child(4) {
        animation-delay: 350ms;
    }

    .nav__items li:nth-child(5) {
        animation-delay: 450ms;
    }

    .nav__items li:nth-child(6) {
        animation-delay: 550ms;
    }

    /* Nav dropdown animations */
    @keyframes animateDropdown {
        0% {
            transform: rotateX(90deg);
        }
        100% {
            transform: rotateX(0deg);
            opacity: 1;
        }
    }

    .nav__items a {
        border-radius: 0;
        width: 100%;
        height: 100%;
        background: var(--color-gray-900);
        padding: 0 2rem;
        display: flex;
        align-items: center;
    }

    .nav__items a::after {
        display: none;
    }

    .nav__profile {
        background: var(--color-gray-900);
    }

    .nav__profile ul {
        top: 100%;
        width: 100%;
    }

    .nav__profile ul li a {
        padding: 0 2rem;
        display: block;
        width: 100%;
        text-align: left;
        align-self: center;
        display: flex;
    }

    .nav__profile .avatar {
        margin-left: 2rem;
    }

    .featured__container {
        gap: 3rem;
    }

    .posts__container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .footer__container {
        grid-template-columns: 1fr 1fr;
    }

    /* Blog */
    .search__bar-container {
        width: 60%;
    }

    /* General Form */
    .form__section-container {
        padding: 3rem;
    }

    /* Dashboard */
    .dashboard__container {
        grid-template-columns: 4.5rem auto;
    }

    .dashboard aside h5 {
        display: none;
    }

    .dashboard main table thead {
        display: none;
    }

    .dashboard main table tr {
        display: flex;
        flex-direction: column;
    }

    .dashboard main table tr:nth-child(even) {
        background: var(--color-gray-900);
    }

    .dashboard main table tr:hover td {
        background: transparent;
    }

    .sidebar__toggle {
        display: none;
    }
}

.post-main-image {
    max-width: 100%;
    /* max-height: 600px; */
    object-fit: contain;
    margin: 0 auto;
}

.slider-image {
    max-height: 180px;
    object-fit: contain;
    background-color: var(--color-gray-800);
    padding: 5px;
}

@media screen and (max-width: 768px) {
    .singlepost__thumbnail {
        height: auto;
        /* max-height: 400px; */
    }

    .post-main-image {
        /* max-height: 400px; */
    }

    .slider-image {
        max-height: 150px;
    }
}

/* =========== MEDIA QUERIES (Small-Sized Devices) =========== */
@media screen and (max-width: 600px) {
    section {
        margin-top: 2rem;
    }

    h1 {
        font-size: 2rem;
    }

    .featured {
        margin-top: 6rem;
    }

    .featured__container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .posts__container {
        grid-template-columns: 1fr;
    }

    .post__thumbnail {
        height: 200px;
    }

    .category__buttons-container {
        grid-template-columns: 1fr 1fr;
    }

    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    /* Blog */
    .search__bar-container {
        width: var(--container-width-md);
    }

    /* Single Post */
    .singlepost__container {
        width: 95%;
        background-color: transparent;
        padding: 0;
    }

    /* General Form */
    .form__section-container {
        padding: 0;
    }

    .form__section form a {
        padding-bottom: 2rem;
    }

    /* Dashboard */
    .dashboard {
        margin-top: 5rem;
    }

    .dashboard__container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .dashboard main {
        margin: 0;
    }

    .dashboard main h2 {
        margin-top: 1rem;
    }

    .dashboard aside {
        position: fixed;
        box-shadow: 2rem 0 4rem rgba(0, 0, 0, 0.4);
        left: -100%;
        z-index: 2;
        height: 100vh;
        transition: var(--transition);
        background: var(--color-primary);
    }

    .dashboard .sidebar__toggle {
        display: inline-block;
        background: var(--color-primary-variant);
        color: var(--color-white);
        position: fixed;
        right: 0;
        bottom: 4rem;
        z-index: 1;
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 50% 0 0 50%;
        font-size: 1.3rem;
        cursor: pointer;
        box-shadow: -1rem 0 2rem rgba(0, 0, 0, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dashboard aside a h5 {
        display: inline-block;
    }

    #hide__sidebar-btn {
        display: none;
    }
}
