* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}
::-webkit-scrollbar{
    display: none;
}
body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Header Style */

header {
    padding: 20px 0;
    background-color: #1a1a1a;
    color: #fff;
}
.logo {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.logo span {
    color: #4cd964;
}

/* Layout Container (Body) */
.layout-container {
    display: flex;
    flex-wrap: wrap;
    margin: 30px 0 0;
}
main, aside {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}


/* Aside styles */

.widget {
    margin-bottom: 40px;
}
.widget:last-child {
    margin-bottom: 0;
}
.widget h3 {
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #f8f9fa;
    position: relative;
}
.widget h3::after {
    content: ' ';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #4cd964;
}
.widget p {
    margin-bottom: 15px;
    color: #555;
}
.widget .categ {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.widget .categ a {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 30px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
}
.widget form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.widget form input {
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 4px;
}
.widget form button {
    background: #4cd964;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.widget ul {
    list-style: none;
}
.widget ul li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f8f9fa;
}
.widget ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.widget ul li a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 15px;
    display: flex;
    align-items: center;
}
.widget ul li a:hover {
    color: #4cd964;   
}
.widget ul li a::before {
    content: '›';
    margin-right: 8px;
    color: #4cd964;
    font-size: 18px;
}
.ad-container {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 40px;
}
.ad-container p {
    color: #999;
    font-size: 12px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Main Content */

.article {
    margin-bottom: 50px;
    border-bottom: 1px solid #eee;
    padding-bottom: 40px;
}
.article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.article h1, h2 {
    color: #1a1a1a;
    margin-bottom: 15px;
    font-size: 26px;
    font-weight: 700;
}
.article ul li{
    list-style: none;
}
.article ul li::before, .classes::before {
    content: '›';
    margin-right: 8px;
    color: #4cd964;
}
.article ul li a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 15px;
}
.article-meta {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #888;
}
.article-meta span {
    margin-right: 15px;
    display: flex;
    align-items: center;
}
.article-meta span i {
    margin-right: 5px;
}
.article-image {
    width: 100%;
    height: 350px;
    background-color: #f8f9fa;
    margin-bottom: 25px;
    border-radius: 8px;
    overflow:  hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}
.article-image img {
    width: 100%;
    height: 100%;
}
.artile p{
    margin-bottom: 20px;
    color: #555;
    font-size: 26px;
    line-height: 1.8;
}
.article .explore {
    display: inline-block;
    background-color: #4cd964;
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    transition: backgroun-color 0.3s;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 25px;
    border: none;
}
.article .explore:hover {
    background-color: #3cd853;
}

/* Footer Style */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 50px 30px 20px;
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.footer-section {
    margin-bottom: 30px;
}
.footer-section h3 {
    color: #4cd964;
    margin-bottom: 20px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-section p {
    color: #bbb;
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1..7;
}
.footer-section ul {
    list-style: none;
}
.footer-section ul li {
    margin-bottom: 12px;
}
.footer-section ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-section ul li a:hover {
    color: #4cd964;
}
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s;
}
.social-icons a:hover {
    background-color: #4cd964;
}
.copyright {
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
    color: #bbb;
    font-size: 14px;
}
.copyright a {
    text-decoration: none;
    color: #4cd964;
}

/* Library styles */
#bookContainer{
    display: none;
}
.classes{
    font-size: 20px;
}
    
hr{
    height: 1px;
    width: 100%;
    border: 0px;
    margin-left: auto;
    margin-right: auto;
    background-color: #eee;
}
.popular{
    height: 164px;
    background: #f1f1f1;
    border-radius: 10px;
    margin: 10px;
    padding: 10px;
    overflow-y: hidden;
    overflow-x: auto;
    white-space: nowrap;
    position: relative;
}
    
.popular > div{
    width: 30%;
    height: 100%;
    background: #ddd;
    margin-right: 5px;
    display:inline-block;
    overflow: hidden;
    position: relative;
}
    
.cover{
    position: relative;
    text-align: center;
    overflow: hidden;
}
    
.cover img{
    width: 100%;
    height: auto;
}
    
.bNameContainer{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.84);
    padding: 0 5px;
}




/* Responsive */

/* Desktop layout (default) */

@media (min-width: 920px) {
    .layout-container {
        display: grid;
        grid-template-columns: 1fr 3fr 1fr;
        gap: 30px;
    }
    header, footer {
        grid-column: 1/4;
    }
    main {
        grid-column: 2/3;
    }
    .left-sidebar {
        grid-column: 1/2;
    }
    .right-sidebar{
        grid-column: 3/4;
    }
}

/* Tablet Layout*/

@media (min-width: 650px) and (max-width: 919px) {
    .layout-container {
        display: grid;
        grid-template-columns: 3fr 1fr;
        gap: 30px;
    }
    header, footer {
        grid-column: 1/3;
    }
    main {
        grid-column: 1/2;
    }
    .left-sidebar {
        display: none;
    }
    .right-sidebar{
        grid-column: 2/3;
    }
}

/* Android Layout*/
@media (max-width: 649px){
    body {
        min-width: 200px;
        overflow-x: hidden;
    }
    .layout-container {
        display: flex;
        flex-direction: column;
        margin: 0;
        padding: 0 10px;
        width: 100%;
    }
    main, aside {
        width: 100%;
        padding: 15px;
        margin: 10px 0;
    }
    .left-sidebar {
        order: 2;
    }
    .main {
        order: 1;
    }
    .right-sidebar {
        order: 3;
    }
    footer {
        order: 4;
        padding: 15px;
    }
    .footer-content{
        flex-direction: column;
    }
    .article-image {
        height: 250px;
    }
    .article h2 {
        font-size: 22px;
    }
}











