/* Import modern font */

@import url("https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=DM+Serif+Text:ital@0;1&family=Delicious+Handrawn&family=Figtree:ital,wght@0,300..900;1,300..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lexend:wght@100..900&family=Nanum+Pen+Script&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Outfit:wght@100..900&family=Pacifico&family=Public+Sans:ital,wght@0,100..900;1,100..900&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&family=Zen+Antique&display=swap");
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --mainBG: #fff;
    --specialColor: #e50b16;
    --line: #dfdfdf;
    --linkHover: rgba(224, 224, 224, 0.450);
    --mainWidth: 664px;
    --titleFont: "DM Serif Text", serif;
    --titleTextColor: #2b2b2b;
    --titleHover: rgb(69, 69, 69);
    --textFont: "Inter", sans-serif;
    --textColor: #2b2b2b;
    --placeholderBG: rgba(227, 227, 227, 0.748);
}

body {
    font-family: var(--textFont);
    background-color: var(--mainBG);
    color: var(--textColor);
    /* line-height: 1.6; */
}


/* header */

header {
    /* position: fixed; */
    top: 0;
    left: 0;
    right: 0;
    border-bottom: 1px solid var(--line);
    height: 50px;
    background-color: #ffffff5a;
    backdrop-filter: blur(7px);
    z-index: 101;
}


/* main */

main {
    /* border-left: 1px solid var(--line);
    border-right: 1px solid var(--line); */
    width: 995px;
    max-width: 100%;
    margin: 70px auto 0 auto;
}


/* main header */

.main-header {
    border-bottom: 1px solid var(--line);
}

.main-header-logo-social {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* border: 1px solid red; */
    padding: 0 10px;
}

.main-header-logo img {
    height: 120px;
}


/* header social */

.main-header-social {
    display: flex;
    align-items: center;
}

.main-header-social ul {
    display: flex;
    list-style: none;
}

.main-header-social ul li {
    margin: 0 0 0 10px;
}

.main-header-social ul li a {
    text-decoration: none;
    color: var(--textColor);
    display: flex;
    border: 1px solid var(--textColor);
    width: 24px;
    height: 24px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.main-header-social ul li a:hover img {
    filter: invert(20%) sepia(100%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.main-header-social ul li a img {
    height: 12px;
    width: 12px;
    /* border: 1px solid red; */
}

.header-divider {
    height: 20px;
    width: 1px;
    background-color: #333;
    margin: 0 10px;
}

.header-date-time {
    font-size: 0.8rem;
}

.live-date {
    color: var(--specialColor);
    font-weight: 500;
}


/* main menu */

.main-menu {
    /* overflow-x: auto; */
    border-bottom: 1px solid var(--line);
    /* border: 1px solid red; */
    /* height: 49px; */
}

.main-menu::-webkit-scrollbar {
    display: none;
    /* Hide the scrollbar in Chrome, Safari, and Edge */
}

.menu {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.75rem;
    /* border: 1px solid red; */
}

.menu>li {
    display: flex;
    align-items: center;
    /* border-bottom: 1px solid var(--line); */
    height: 40px;
}

.menu-text-box {
    display: flex;
}

.menu>li>a {
    position: relative;
    display: block;
    padding: 15px 20px;
    color: var(--textColor);
    text-decoration: none;
    text-transform: uppercase;
    display: flex;
    /* flex-direction: column; */
    align-items: center;
    /* justify-content: center; */
    height: 100%;
    border-bottom: 2px solid transparent;
    /* margin-bottom: -2px; */
    /* border: 1px solid red; */
}

.menu>li:hover>a {
    /* background-color: var(--linkHover); */
    border-bottom: 2px solid var(--specialColor);
    border-spacing: 0;
}

.menu>li:hover>a .chev-icon-up {
    display: flex;
}

.menu>li:hover>a .chev-icon-down {
    display: none;
}

.menu-text-box {
    display: flex;
    align-items: center;
}

.chev-icon-box {
    margin-left: 4px;
}

.chev-icon-up {
    display: none;
}

.chev-icon-down {
    position: relative;
    top: 1px;
}

.menu>li:hover>a .active-tab-line {
    width: 50%;
    transition: all 0.3s ease;
    /* display: none; */
}


/* Submenu styles */

.submenu {
    display: none;
    position: absolute;
    background-color: var(--mainBG);
    top: 102%;
    /* left: 0; */
    min-width: 200px;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    z-index: 101;
}

.submenu li {
    list-style: none;
}

.submenu li a {
    padding: 7px 12px;
    color: var(--textColor);
    display: block;
    text-decoration: none;
    text-transform: uppercase;
}

.submenu li a:hover {
    background-color: var(--linkHover);
}


/* Show submenu on hover */

.menu>li:hover .submenu {
    display: block;
}

.menu a.active-tab {
    color: var(--specialColor);
    border-bottom: 2px solid var(--specialColor);
    /* border: 1px solid red; */
}

.menu a .active-tab-line {
    position: relative;
    top: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 4px;
    background-color: var(--specialColor);
    width: 10%;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: none;
}


/* main */

main {
    /* border: 1px solid red; */
}

.main-layer {
    display: flex;
    gap: 10px;
    /* border: 1px solid red; */
    /* margin-top: 10px; */
    padding-top: 20px;
    overflow-x: hidden;
}

.main-content {
    width: var(--mainWidth);
    max-width: 100%;
    /* border: 1px solid red; */
    /* padding: 10px 10px 0 10px; */
    /* overflow: hidden; */
    /* z-index: 1; */
}


/* headline-content */

.headline-content {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    /* border: 1px solid red;  */
}


/* category + title box */

.category-title-box {
    display: flex;
    flex-direction: column;
}

.category-date {
    display: flex;
    justify-content: space-between;
    /* padding: 0 20px 0 0px; */
    /* border: 1px dashed  red; */
    font-size: 0.65rem;
    margin-bottom: 10px;
}

.category {
    font-size: 0.57rem;
    text-transform: uppercase;
    color: var(--textColor);
    font-weight: 600;
    border: 1px solid #e4e4e4;
    height: 22px;
    display: flex;
    align-items: center;
    padding: 0 7px;
    border-radius: 30px;
}

.category a {
    text-decoration: none;
    color: var(--textColor);
}

.category a:hover {
    color: rgb(100, 100, 100);
}

.date {
    font-size: 0.57rem;
    color: var(--textColor);
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.096);
    display: none;
}

.headline-title {
    margin: 0px 0 15px 0;
}

.headline-title h1 a {
    text-decoration: none;
    color: var(--textColor);
    font-family: var(--titleFont);
}

.headline-title h1 a:hover {
    color: var(--titleHover);
}

.headline-img-context {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    /* border: 1px solid red; */
}

.headline-img a {
    display: flex;
    /* border: 1px solid var(--line); */
    /* width: 330px; */
    max-width: 100%;
    height: auto;
    /* min-height: 235px; */
    /* max-height: 280px; */
    border-radius: 10px;
    background-color: var(--placeholderBG);
}

.headline-img a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    vertical-align: middle;
}

.headline-context {
    font-size: 0.9rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 75px;
}


/* line */

.line {
    height: 2px;
    width: 100%;
    background-color: var(--line);
    margin: 10px 0;
}


/* main sub content */

.main-sub-content {
    /* border-top: 2px solid var(--line); */
}

.main-sub-content-layer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    /* border: 1px solid red;; */
    /* gap: 10px; */
}

.sub-content-box {
    display: flex;
    /* border: 1px solid red; */
    border-bottom: 1px solid var(--line);
    padding: 5px 0;
}

.sub-content-box .sub-content-link {
    display: flex;
    text-decoration: none;
    color: var(--textColor);
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 7px;
    gap: 10px;
    /* width: 100%; */
    width: 332px;
    max-width: 100%;
    /* border: 1px solid red; */
}

.sub-content-box .sub-content-link:hover {
    background-color: var(--linkHover);
    border: 1px solid var(--linkHover);
}

.sub-content-details {
    /* border: 1px solid red; */
    width: 100%;
}

.sub-content-img {
    /* border: 1px solid var(--line); */
    min-width: 90px;
    max-width: 90px;
    height: 90px;
    border-radius: 10px;
    background-color: var(--placeholderBG);
}

.sub-content-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.sub-content-title h2 {
    font-size: 0.95rem;
    /* border: 1px solid red; */
    /* add elipse after 3 lines*/
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* advertise box */

.advertise-box-main {
    /* border: 1px solid var(--line); */
    margin: 25px 0;
    /* border: 1px solid red; */
}

.ad-main-content-text p {
    font-size: 0.6rem;
    text-transform: uppercase;
    padding: 5px;
    border: 1px solid var(--line);
    width: fit-content;
    border-radius: 7px 7px 0 0;
    background-color: var(--linkHover);
    margin: 0 0 0 10px;
}

.ad-main-content a {
    display: flex;
    height: auto;
    min-height: 90px;
    max-height: 140px;
    width: 100%;
    border-radius: 10px;
}

.ad-main-content a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}


/* YouTube Latest 3 videos */

.yt-latest-videos-box {
    margin-bottom: 10px;
}

.yt-latest-videos-layer {
    width: 100%;
    /* border: 1px solid red; */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 2fr));
    gap: 10px;
}

.yt-latest-videos-box iframe {
    width: 100%;
    height: 300px;
    /* height: 100%; */
    /* border-radius: 10px; */
    background-color: var(--placeholderBG);
}


/* bottom sub content */

.bottom-sub-content {
    margin: 0 0 30px 0;
}

.bottom-sub-content-title h2 {
    margin: 0 0 10px 10px;
    font-family: var(--titleFont);
    font-size: 1.8rem;
}

.bottom-main-content {
    display: flex;
}

.bottom-sub-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    /* gap: 10px; */
}

.bottom-main-content a {
    text-decoration: none;
    color: var(--textColor);
    border: 1px solid transparent;
    padding: 10px;
    border-radius: 10px;
    width: 100%;
}

.bottom-main-content a:hover {
    background-color: var(--linkHover);
    border: 1px solid var(--linkHover);
}

.bottom-main-content-img {
    height: 155px;
    width: 100%;
    border-radius: 10px 10px 0 0;
    /* border: 1px solid red; */
    background-color: var(--placeholderBG);
}

.bottom-main-content-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    object-position: top;
}

.bottom-main-content-category {
    display: flex;
}


/* .article-date {
    font-size: 0.6rem;
    width: fit-content;
    height: fit-content
} */

.date-m {
    text-decoration: capitalize;
}

.bottom-main-content-text h2 {
    font-size: 0.9rem;
    line-height: 1.3;
    /* 3 line then elipse */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 10px;
}


/* multimedia content */

.multimedia-content {
    /* position: relative; */
    /* border: 1px solid red; */
    z-index: 1;
}

.multimedia-content .bottom-main-content {
    width: 300px;
    flex-shrink: 0;
    /* Prevent shrinking */
    /* border: 1px solid red; */
}

.multimedia-content .bottom-sub-content-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.multimedia-content .bottom-main-content a {
    position: relative;
}

.multimedia-content .nav-btns {
    display: flex;
    align-items: center;
    margin: 0 10px 0 0;
    gap: 7px;
    /* border: 1px solid red; */
}

.multimedia-content .nav-btns button {
    border: 1px solid var(--textColor);
    text-decoration: none;
    height: 30px;
    width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--textColor);
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
}

.nav-btns button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.multimedia-content .nav-btns button i {
    position: relative;
    top: 2px;
}

.title-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.title-box h2 {
    font-size: 1.8rem;
    margin: 0 0 10px 10px;
    font-family: var(--titleFont);
}

.video-play-icon {
    border: 1px solid var(--specialColor);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--specialColor);
}

.video-play-icon i {
    color: #fff;
    font-size: 1rem;
    position: relative;
    top: 1px;
}

.category-live {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--specialColor);
    font-weight: 600;
    height: 22px;
    display: flex;
    align-items: center;
    padding: 0 5px;
}

.date-live {
    font-size: 0.6rem;
    text-transform: lowercase;
    width: fit-content;
}

.category-live .red-dot {
    width: 10px;
    height: 10px;
    background-color: var(--specialColor);
    border-radius: 50%;
    margin-right: 5px;
    /* blink animation */
    animation: blink 1s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.multi-flex-scroll-layout {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Hide scrollbar but allow scrolling */
}

.multi-layer {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
    padding: 10px;
    /* flex-shrink: 0; */
}

.main-sidebar {
    width: 300px;
    /* border-left: 1px solid var(--line); */
}


/* Most Read */

.s-most-read {}

.s-title h2 {
    font-size: 1.3rem;
    margin: 10px 0 0 0;
    text-align: center;
    font-family: var(--titleFont);
    padding: 5px;
}

.s-text {
    font-size: 0.85rem;
    text-align: center;
}

.most-read-title h2 {
    font-size: 1.3rem;
    margin: 10px 0;
    text-align: center;
    font-family: var(--titleFont);
    border-bottom: 1px solid var(--line);
    padding: 5px;
}

.most-read-box a {
    /* border: 1px solid; */
    display: flex;
    color: var(--textColor);
    text-decoration: none;
    padding: 5px;
}

.most-read-box a:hover {
    color: rgb(116, 116, 116);
}

.mr-number h3 {
    font-size: 1.2rem;
    /* border: 1px solid red; */
    width: 30px;
    color: rgb(204, 204, 204);
}

.mr-title {
    font-size: 0.55rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-box .s-title {
    margin: 0 0 15px 0;
}

.book-cover-img {
    /* border: 1px solid var(--line); */
    height: 214px;
    width: 100%;
    border-radius: 5px;
    background-color: var(--placeholderBG);
}

.book-cover-img img {
    height: 100%;
    width: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.author-box {
    margin: 10px 0 20px 0;
    display: flex;
    gap: 10px;
}

.author-img {
    /* border: 1px solid var(--line); */
    height: 50px;
    min-width: 50px;
    border-radius: 5px;
    background-color: var(--placeholderBG);
}

.author-text p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.8rem;
}

.book-btn {
    /* border: 1px solid red; */
    align-items: center;
    justify-content: center;
    display: flex;
}

.book-btn a {
    border: 1px solid var(--textColor);
    background-color: var(--textColor);
    height: 48px;
    width: 90%;
    display: flex;
    color: #fff;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.book-btn a:hover {
    background-color: #363636;
}


/* feedback box */

.feedback-box {
    /* margin: 40px 0 0 0; */
}

.feedback-title {
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.feedback-title h2 {
    font-size: 1.3rem;
    margin: 10px 0;
    /* text-align: center; */
    font-family: var(--titleFont);
}

.feedback-title p {
    font-size: 0.9rem;
}


/* sidebar line */

.s-line {
    background-color: var(--line);
    display: flex;
    height: 1px;
    width: 100%;
    margin: 30px 0;
}


/* sidebar footer */

.sidebar-footer ul {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
}

.sidebar-footer ul li {
    display: flex;
    margin: 4px;
    font-size: 0.85rem;
}

.sidebar-footer ul li a {
    text-decoration: none;
    color: var(--textColor);
    font-weight: 500;
}

.sidebar-footer ul li a:hover {
    text-decoration: underline;
}

.l-line {
    display: flex;
    height: 10px;
    width: 1px;
    background-color: grey;
    align-items: center;
    justify-content: center;
}

.sidebar-social {
    margin: 25px 0 0 0;
    /* border: 1px solid red; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-footer-copy {
    margin: 30px 0 0 0;
}

.sidebar-footer-copy p {
    font-size: 0.75rem;
    text-align: center;
}


/* ===================== */


/* === LOGIN & REGISTER PAGE STYLES === */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f2f5;
    font-family: 'Inter', sans-serif;
}

.auth-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.auth-card .logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.auth-card h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.auth-card .auth-subtitle {
    color: #666;
    margin-bottom: 2rem;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--specialColor);
}

.auth-form .remember-me {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.auth-form .remember-me label {
    color: #555;
    font-weight: normal;
}

.auth-btn {
    width: 100%;
    padding: 0.9rem;
    border: none;
    border-radius: 5px;
    background-color: var(--specialColor);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-btn:hover {
    background-color: #0056b3;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #aaa;
    margin: 2rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.divider:not(:empty)::before {
    margin-right: .5em;
}

.divider:not(:empty)::after {
    margin-left: .5em;
}

.auth-card .extra-links {
    margin-top: 1.5rem;
    color: #555;
}

.auth-card .extra-links a {
    color: var(--specialColor);
    text-decoration: none;
    font-weight: 600;
}

.auth-card .extra-links a:hover {
    text-decoration: underline;
}


/* Flash Messages Styling */

.flash-messages {
    list-style-type: none;
    padding: 0;
    margin-bottom: 1rem;
}

.flash-messages li {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.flash-messages .success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-messages .error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* Responsive */

@media screen and (max-width: 884px) {
    .main-sidebar {
        display: none;
    }
    .main-layer {
        justify-content: center;
    }
}

@media screen and (max-width: 600px) {
    .main-header-social {
        display: none;
    }
    .main-menu {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* border-bottom: none; */
    }
    .menu {
        font-size: 0.6rem;
    }
    .chev-icon-box {
        display: none;
    }
    .main-layer {
        padding-top: 0;
    }
    .headline-content {
        flex-direction: column-reverse;
    }
    .category-title-box {
        padding: 0 10px;
        margin-top: 10px;
    }
    .category-date {
        padding: 0;
    }
    .category {
        font-size: 0.5rem;
        padding: 0 7px;
    }
    .date {
        font-size: 0.5rem;
    }
    .headline-title h1 {
        font-size: 1.4rem;
    }
    .headline-img a {
        border-radius: 0;
        /* height: auto; */
    }
    .headline-context {
        display: none;
    }
    .line {
        height: 1px;
    }
    .padding-space {
        padding: 0 7px;
    }
    .advertise-box-main {
        padding: 0 7px;
    }
}