@import"https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;500;600;700&display=swap";

:root {
    --main-color: #31473A;
    --red: #e74c3c;
    --orange: #f39c12;
    --light-color: #888;
    --light-bg: #eee;
    --black: green;
    --white: #fff;
    --border: .1rem solid rgba(0, 0, 0, .2)
}

* {
    font-family: Nunito, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none
}

*::selection {
    background-color: var(--main-color);
    color: #fff
}

html {
    font-size: 62.5%;
    overflow-x: hidden
}

html::-webkit-scrollbar {
    width: 1rem;
    height: .5rem
}

html::-webkit-scrollbar-track {
    background-color: transparent
}

html::-webkit-scrollbar-thumb {
    background-color: var(--main-color)
}

body {
    background-color: var(--light-bg);
    padding-left: 30rem
}

body.dark {
    --light-color: #aaa;
    --light-bg: #333;
    --black: #fff;
    --white: #222;
    --border: .1rem solid rgba(255, 255, 255, .2)
}

body.active {
    padding-left: 0
}

section {
    padding: 2rem;
    margin: 0 auto;
    max-width: 1200px
}

.heading {
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 2.5rem;
    border-bottom: var(--border);
    padding-bottom: 1.5rem;
    text-transform: capitalize
}

.inline-btn,
.inline-option-btn,
.inline-delete-btn,
.btn,
.delete-btn,
.option-btn {
    border-radius: .5rem;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    text-transform: capitalize;
    padding: 1rem 3rem;
    text-align: center;
    margin-top: 1rem
}

.btn,
.delete-btn,
.option-btn {
    display: block;
    width: 100%
}

.inline-btn,
.inline-option-btn,
.inline-delete-btn {
    display: inline-block
}

.btn,
.inline-btn {
    background-color: var(--main-color)
}

.option-btn,
.inline-option-btn {
    background-color: var(--orange)
}

.delete-btn,
.inline-delete-btn {
    background-color: var(--red)
}

.inline-btn:hover,
.inline-option-btn:hover,
.inline-delete-btn:hover,
.btn:hover,
.delete-btn:hover,
.option-btn:hover {
    background-color: var(--black);
    color: var(--white)
}

.flex-btn {
    display: flex;
    gap: 1rem
}

.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    z-index: 1000;
    border-bottom: var(--border)
}

.header .flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 1.5rem 2rem
}

.header .flex .logo {
    font-size: 2.5rem;
    color: var(--black)
}

.header .flex .search-form {
    width: 50rem;
    border-radius: .5rem;
    background-color: var(--light-bg);
    padding: 1.5rem 2rem;
    display: flex;
    gap: 2rem
}

.header .flex .search-form input {
    width: 100%;
    font-size: 1.8rem;
    color: var(--black);
    background: none
}

.header .flex .search-form button {
    background: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--black)
}

.header .flex .search-form button:hover {
    color: var(--main-color)
}

.header .flex .icons div {
    font-size: 2rem;
    color: var(--black);
    background-color: var(--light-bg);
    border-radius: .5rem;
    height: 4.5rem;
    width: 4.5rem;
    line-height: 4.5rem;
    cursor: pointer;
    text-align: center;
    margin-left: .7rem
}

.header .flex .icons div:hover {
    background-color: var(--black);
    color: var(--white)
}

.header .flex .profile {
    position: absolute;
    top: 120%;
    right: 2rem;
    background-color: var(--white);
    border-radius: .5rem;
    padding: 1.5rem;
    text-align: center;
    overflow: hidden;
    transform-origin: top right;
    transform: scale(0);
    transition: .2s linear;
    width: 30rem
}

.header .flex .profile.active {
    transform: scale(1)
}

.header .flex .profile .image {
    height: 10rem;
    width: 10rem;
    border-radius: 50%;
    object-fit: contain;
    margin-bottom: 1rem
}

.header .flex .profile .name {
    font-size: 2rem;
    color: var(--black);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.header .flex .profile .role {
    font-size: 1.8rem;
    color: var(--light-color)
}

#search-btn {
    display: none
}

.side-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 30rem;
    background-color: var(--white);
    height: 100vh;
    border-right: var(--border);
    z-index: 1200
}

.side-bar #close-btn {
    text-align: right;
    padding: 2rem;
    display: none
}

.side-bar #close-btn i {
    text-align: right;
    font-size: 2.5rem;
    background: var(--red);
    border-radius: .5rem;
    color: var(--white);
    cursor: pointer;
    height: 4.5rem;
    width: 4.5rem;
    line-height: 4.5rem;
    text-align: center
}

.side-bar #close-btn i:hover {
    background-color: var(--black)
}

.side-bar .profile {
    padding: 3rem 2rem;
    text-align: center
}

.side-bar .profile .image {
    height: 10rem;
    width: 10rem;
    border-radius: 50%;
    object-fit: contain;
    margin-bottom: 1rem
}

.side-bar .profile .name {
    font-size: 2rem;
    color: var(--black);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.side-bar .profile .role {
    font-size: 1.8rem;
    color: var(--light-color)
}

.side-bar .navbar a {
    display: block;
    padding: 2rem;
    font-size: 2rem
}

.side-bar .navbar a i {
    margin-right: 1.5rem;
    color: var(--main-color);
    transition: .2s linear
}

.side-bar .navbar a span {
    color: var(--light-color)
}

.side-bar .navbar a:hover {
    background-color: var(--light-bg)
}

.side-bar .navbar a:hover i {
    margin-right: 2.5rem
}

.side-bar.active {
    left: -30rem
}

.home-grid .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, 27.5rem);
    gap: 1.5rem;
    justify-content: center;
    align-items: flex-start
}

.home-grid .box-container .box {
    background-color: var(--white);
    border-radius: .5rem;
    padding: 2rem
}

.home-grid .box-container .box .title {
    font-size: 2rem;
    color: var(--black);
    text-transform: capitalize
}

.home-grid .box-container .box .flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem
}

.home-grid .box-container .flex a {
    background-color: var(--light-bg);
    border-radius: .5rem;
    padding: 1rem 1.5rem;
    font-size: 1.5rem
}

.home-grid .box-container .flex a i {
    margin-right: 1rem;
    color: var(--black)
}

.home-grid .box-container .flex a span {
    color: var(--light-color)
}

.home-grid .box-container .flex a:hover {
    background-color: var(--black)
}

.home-grid .box-container .flex a:hover span,
.home-grid .box-container .flex a:hover i {
    color: var(--white)
}

.home-grid .box-container .tutor {
    padding: 1rem 0;
    font-size: 1.8rem;
    color: var(--light-color);
    line-height: 2
}

.home-grid .box-container .likes {
    color: var(--light-color);
    font-size: 1.7rem;
    margin-top: 1.5rem
}

.home-grid .box-container .likes span {
    color: var(--main-color)
}

.watch-video .video-container {
    background-color: var(--white);
    border-radius: .5rem;
    padding: 2rem
}

.watch-video .video-container .video {
    position: relative;
    margin-bottom: 1.5rem
}

.watch-video .video-container .video iframe {
    border-radius: .5rem;
    height: 75vh;
    width: 100%;
    object-fit: contain;
    background-color: #000
}

.watch-video .video-container .title {
    font-size: 2rem;
    color: var(--black)
}

.watch-video .video-container p {
    font-size: 1.6rem;
    color: var(--light-color);
    margin-top: .5rem
}

.watch-video .video-container .info {
    display: flex;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: var(--border);
    padding-bottom: 1.5rem;
    gap: 2.5rem;
    align-items: center
}

.watch-video .video-container .info p {
    font-size: 1.6rem
}

.watch-video .video-container .info p span {
    color: var(--black)
}

.watch-video .video-container .info i {
    margin-right: 1rem;
    color: var(--main-color)
}

.watch-video .video-container .tutor {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem
}

.watch-video .video-container .tutor img {
    border-radius: 50%;
    height: 5rem;
    width: 5rem;
    object-fit: cover
}

.watch-video .video-container .tutor h3 {
    font-size: 2rem;
    color: var(--black);
    margin-bottom: .2rem
}

.watch-video .video-container .tutor span {
    font-size: 1.5rem;
    color: #1a1919
}

.watch-video .video-container .flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem
}

.watch-video .video-container .flex button {
    border-radius: .5rem;
    padding: 1rem 1.5rem;
    font-size: 1.8rem;
    cursor: pointer;
    background-color: var(--light-bg)
}

.watch-video .video-container .flex button i {
    margin-right: 1rem;
    color: var(--black)
}

.watch-video .video-container .flex button span {
    color: var(--light-color)
}

.watch-video .video-container .flex button:hover {
    background-color: var(--black)
}

.watch-video .video-container .flex button:hover i,
.watch-video .video-container .flex button:hover span {
    color: var(--white)
}

.watch-video .video-container .description {
    line-height: 1.5;
    font-size: 1.7rem;
    color: var(--light-color);
    margin-top: 2rem
}

.form-container {
    min-height: calc(100vh - 20rem);
    display: flex;
    align-items: center;
    justify-content: center
}

.form-container form {
    background-color: var(--white);
    border-radius: .5rem;
    padding: 2rem;
    width: 50rem
}

.form-container form h3 {
    font-size: 2.5rem;
    text-transform: capitalize;
    color: var(--black);
    text-align: center
}

.form-container form p {
    font-size: 1.7rem;
    color: var(--light-color);
    padding-top: 1rem
}

.form-container form p span {
    color: var(--red)
}

.form-container form .box {
    font-size: 1.8rem;
    color: var(--black);
    border-radius: .5rem;
    padding: 1.4rem;
    background-color: var(--light-bg);
    width: 100%;
    margin: 1rem 0
}

.footer-section {
    background: #31473a;
    padding: 25px 11px
}

.footer-section p {
    margin: 0;
    font-size: medium;
    color: #fff;
    font-weight: 500
}

.footer-section .section-content {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    width: 100%
}

.footer-section :where(.copyright-text, .social-link, .policy-link) {
    color: #fff;
    transition: .3s ease
}

.footer-section .social-link-list {
    display: flex;
    gap: 15px
}

.footer-section .social-link-list .social-link {
    font-size: large
}

.footer-section .social-link-list .social-link:hover,
.footer-section .policy-text .policy-link:hover {
    color: #adff2f
}

.footer-section .policy-text .separator {
    margin: 0 10px;
    color: #fff
}

@media (max-width:1200px) {
    body {
        padding-left: 0
    }

    .side-bar {
        left: -30rem;
        transition: .2s linear
    }

    .side-bar #close-btn {
        display: block
    }

    .side-bar.active {
        left: 0;
        box-shadow: 0 0 0 100vw #000c;
        border-right: 0
    }
}

@media (max-width:991px) {
    html {
        font-size: 55%
    }
}

@media (max-width:768px) {
    #search-btn {
        display: inline-block
    }

    .header .flex .search-form {
        position: absolute;
        top: 99%;
        left: 0;
        right: 0;
        border-top: var(--border);
        border-bottom: var(--border);
        background-color: var(--white);
        border-radius: 0;
        width: auto;
        padding: 2rem;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: .2s linear
    }

    .header .flex .search-form.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%)
    }
}

@media (max-width:450px) {
    html {
        font-size: 50%
    }

    .flex-btn {
        gap: 0;
        flex-flow: column
    }

    .home-grid .box-container {
        grid-template-columns: 1fr
    }

    .about .row .image img {
        height: 25rem
    }
}

.engagement-bar {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    padding: 15px 0;
    border-bottom: var(--border)
}

.engagement-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    background-color: var(--light-bg);
    border: none;
    cursor: pointer;
    font-size: 1.6rem;
    transition: .3s ease
}

.engagement-btn:hover {
    background-color: var(--black);
    color: var(--white);
    transform: translateY(-2px)
}

.engagement-btn i {
    font-size: 1.8rem
}

.engagement-btn.liked {
    background-color: #ff6b6b;
    color: #fff
}

.engagement-btn.liked i {
    font-weight: 900
}

.comments-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: var(--border)
}

.comments-title {
    font-size: 2rem;
    color: var(--black);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px
}

.comment-form {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.comment-form textarea {
    padding: 12px;
    border-radius: 10px;
    border: 2px solid var(--light-bg);
    font-size: 1.6rem;
    font-family: Nunito, sans-serif;
    resize: vertical;
    transition: .3s ease
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--main-color)
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px
}

.comment-item {
    background: var(--light-bg);
    padding: 15px;
    border-radius: 10px;
    transition: .3s ease
}

.comment-item:hover {
    background: #e0e0e0
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover
}

.comment-author {
    display: flex;
    flex-direction: column;
    flex: 1
}

.comment-author-name {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--black)
}

.comment-date {
    font-size: 1.3rem;
    color: var(--light-color)
}

.comment-content {
    font-size: 1.5rem;
    color: var(--black);
    line-height: 1.6;
    margin-left: 52px
}

.comment-actions {
    margin-top: 10px;
    margin-left: 52px;
    display: flex;
    gap: 10px
}

.comment-actions button {
    background: none;
    border: none;
    color: var(--light-color);
    cursor: pointer;
    font-size: 1.4rem;
    padding: 5px 10px;
    border-radius: 5px;
    transition: .3s ease
}

.comment-actions button:hover {
    background: var(--main-color);
    color: #fff
}

.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #000000b3;
    display: flex;
    align-items: center;
    justify-content: center
}

.modal-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 15px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn .3s ease
}

@keyframes slideIn {
    0% {
        transform: translateY(-50px);
        opacity: 0
    }

    to {
        transform: translateY(0);
        opacity: 1
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 3rem;
    font-weight: 700;
    color: var(--light-color);
    cursor: pointer;
    transition: .3s ease
}

.close-modal:hover {
    color: var(--black)
}

#quiz-title {
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 10px
}

#quiz-description {
    font-size: 1.6rem;
    color: var(--light-color);
    margin-bottom: 30px
}

.quiz-question {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px
}

.question-text {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 15px
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: .3s ease
}

.quiz-option:hover {
    background: #f0f0f0
}

.quiz-option input[type=radio] {
    width: 20px;
    height: 20px;
    cursor: pointer
}

.quiz-option label {
    font-size: 1.6rem;
    color: var(--black);
    cursor: pointer;
    flex: 1
}

.quiz-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px
}

#quiz-results {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    color: #fff;
    margin-top: 20px
}

#quiz-results h3 {
    font-size: 2.5rem;
    margin-bottom: 15px
}

.score-text {
    font-size: 2rem;
    margin-bottom: 20px
}

#quiz-results button {
    margin-top: 15px
}

.login-prompt {
    text-align: center;
    padding: 30px;
    background: var(--light-bg);
    border-radius: 10px;
    margin: 20px 0
}

.login-prompt p {
    font-size: 1.6rem;
    color: var(--light-color);
    margin-bottom: 15px
}

@media (max-width: 768px) {
    .engagement-bar {
        flex-wrap: wrap
    }

    .engagement-btn {
        font-size: 1.4rem;
        padding: 8px 15px
    }

    .comment-content,
    .comment-actions {
        margin-left: 0
    }

    .modal-content {
        padding: 20px
    }
}