html {
    scroll-behavior: smooth;
    margin: 0px !important;
}

@font-face {
  font-family: PlusJakartaSans-Light;
  src: url('../fonts/PlusJakartaSans-Light.ttf');
}

@font-face {
  font-family: PlusJakartaSans-Regular;
  src: url('../fonts/PlusJakartaSans-Regular.ttf');
}

@font-face {
  font-family: PlusJakartaSans-Medium;
  src: url('../fonts/PlusJakartaSans-Medium.ttf');
}

@font-face {
  font-family: PlusJakartaSans-SemiBold;
  src: url('../fonts/PlusJakartaSans-SemiBold.ttf');
}

@font-face {
  font-family: PlusJakartaSans-Bold;
  src: url('../fonts/PlusJakartaSans-Bold.ttf');
}

body{
    font-size: 16px;
    margin: 0;
    padding: 0;
    font-family: "PlusJakartaSans-Regular", sans-serif;
    color:var(--font-color);
    font-weight: normal;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    line-height: 1.625;
    background-color: var(--white);
}

h1, h2{
    font-family: "PlusJakartaSans-Bold", sans-serif;
    font-weight: normal;
}

h3, h4{
    font-family: "PlusJakartaSans-SemiBold", sans-serif;
    font-weight: normal;
}

h5{
    font-family: "PlusJakartaSans-Medium", sans-serif;
    font-weight: normal;
}

p{
    font-family: "PlusJakartaSans-Medium", sans-serif;
    font-weight: normal;
}

:root {
    --font-color: #000000;
    --font-color-light: #494d5f;
    --heading-color: #0F172A;
    --white: #ffffff;
    --black: #ffffff;
    --theme-color: #DD3333;
    --footer-bg: #2D1B1B;
    --body-bg: #F8F6F6;

    --theme-color-hover: #bb1111;
}

/* ================= HEADER ================= */
.top-white-bar {
    background: linear-gradient(25deg, #dd3333 20%, #dd3333 40%);
    border-bottom: 1px solid linear-gradient(25deg, #dd3333 20%, #dd3333 40%);
    padding: 6px 0;
    z-index: 1050;
    min-height: 80px;
    display: flex;
    align-items: center;
}

.top-white-bar.sticky{
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 999;
}

.header-logo {
    max-height: 65px;
}

.top-menu {
    gap: 20px;
}

.menu-toggle-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 35px;
    height: 35px;
    min-width: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.menu-toggle-btn span {
    width: 26px;
    height: 2px;
    background: #ffffff;
}

.side-menu {
    width: 320px;
}

.side-menu .nav-link {
    padding: 10px 0;
    font-size: 15px;
    font-family: 'PlusJakartaSans-Medium', sans-serif;
    color: var(--heading-color);
    transition: ease-in-out 0.3s;
}

.side-menu .nav-link:hover{
    color: var(--theme-color);
    transition: ease-in-out 0.3s;
}

.top-white-bar .nav-link {
    font-family: 'PlusJakartaSans-Medium', sans-serif;
    color: var(--white);
    font-size: 15px;
    transition: ease-in-out 0.3s;
}

.top-white-bar .dropdown-menu {
    min-width: 13rem;
    border: none;
    box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 10%);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.top-white-bar .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.top-white-bar .dropdown-menu .dropdown-item {
    font-family: 'PlusJakartaSans-Medium', sans-serif;
    color: var(--heading-color);
    font-size: 15px;
    padding: 10px 15px;
    transition: ease-in-out 0.3s;
}

.top-white-bar .dropdown-menu .dropdown-item:hover {
    background-color: rgb(255 226 226 / 40%);
    color: var(--theme-color);
}

/* footer styles */
.footer-container{
    background-color: var(--footer-bg);
    padding-top: 3rem;
}

.footer-bottom-wrapper{
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 0px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 20%);
}

.footer-bottom-wrapper p{
    margin-bottom: 0px;
    color: var(--white);
}

.footer-wrapper{
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.footer-brand{
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-brand img{
    width: 80px;
}

.footer-company-info{
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

.footer-info-heading{
    font-size: 20px;
    text-align: center;
    color: var(--white);
    margin-bottom: 0px;
}

.footer-info-description{
    text-align: center;
    color: var(--white);
    margin-bottom: 0px;
}

.footer-menu{
    margin-bottom: 0px;
    flex-wrap: wrap;
}

.footer-menu li{
    margin: 0px 0px;
}

.footer-menu li::after{
    position: relative;
    content: '|';
    color: var(--white);
    margin: 0px 15px;
}

.footer-menu li:last-child:after{
    display: none;
}

.footer-menu li a{
    color: var(--white);
    text-decoration: none;
    transition: ease-in-out 0.3s;
}

.footer-menu li a:hover{
    color: var(--theme-color);
}

/* home styles start */
.hero-container{
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    transform: scale(1);
    animation: slowZoom 18s ease-in-out forwards;
    overflow: hidden;
}

.hero-container::after{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(0, 0, 0, 0.6),
        rgba(0, 0, 0, 0.6)
    );
    z-index: 9;
    width: 100%;
    height: 100%;
}

@keyframes slowZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.12);
  }
}

.hero-inner-wrapper{
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    justify-content: center;
    z-index: 11;
}

.hero-top-label{
    width: fit-content;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(255 226 226 / 90%);
    border: 1px solid transparent;
    color: var(--theme-color);
    border-radius: 30px;
    font-weight: 600;
}

.hero-heading{
    font-size: 52px;
    color: var(--white);
    margin-bottom: 0px;
    text-align: center;
}

.hero-keywords{
    font-size: 16px;
    color: var(--white);
    margin-bottom: 0px;
}

.hero-description{
    font-size: 20px;
    color: #D1D5DB;
    margin-bottom: 0px;
    text-align: center;
}

.main-container{
    width: 100%;
    position: relative;
    display: inline-block;
    padding: 3rem 0rem;
    background-color: #F8F6F6;
    overflow: hidden;
}

.main-heading-wrapper{
    width: 100%;
    position: relative;
    display: inline-block;
}

.main-heading{
    font-size: 32px;
    color: var(--heading-color);
}

.main-description{
    margin-bottom: 0px;
    color: var(--font-color-light);
}

.featured-card-wrapper{
    width: 100%;
    position: relative;
    display: inline-block;
    border-radius: 16px;
    background-color: var(--white);
    box-shadow: 0px 20px 25px -5px rgba(0, 0, 0, 10%);
    padding: 25px;
    transition: ease-in 0.3s;
    height: 100%;
}

.featured-card-wrapper:hover{
    margin-top: -10px;
    transition: ease-in 0.3s;
}

.fc-top{
    width: 100%;
    position: relative;
    display: inline-block;
}

.card-main-heading{
    font-size: 24px;
    color: var(--theme-color);
    margin-bottom: 20px;
    transition: ease-in 0.3s;
}

.card-main-description{
    margin-bottom: 0px;
    color: var(--font-color-light);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.fc-top a{
    text-decoration: none;
    transition: ease-in 0.3s;
}

.fc-top a:hover h3{
    color: var(--theme-color-hover);
    transition: ease-in 0.3s;
}

.cards-divider{
    width: 100%;
}

.fc-bottom{
    width: 100%;
    position: relative;
    display: inline-block;
    padding: 20px;
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
}

.hpost-link{
    display: flex;
    align-items: center;
    gap: 5px;
    transition: ease-in-out 0.3s;
    text-decoration: none;
    color: var(--theme-color);
    width: fit-content;
    margin-top: 10px;
}

.hpost-link:hover{
    transition: ease-in-out 0.3s;
    color: var(--theme-color-hover);
}

.book-card-heading{
    font-size: 20px;
    color: var(--heading-color);
    margin-bottom: 15px;
}

.book-card-heading i{
    color: var(--theme-color);
    margin-right: 8px;
    font-size: 18px;
}

.bookinfo{
    display: flex;
    align-items: center;
    gap: 15px;
    color: inherit;
    text-decoration: none;
    transition: ease-in 0.3s;
}

.bookinfo img{
    width: 100px;
    height: 100px;
    min-width: 100px;
    object-fit: cover;
    border-radius: 6px;
    object-position: top;
}

.book-heading{
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--heading-color);
    transition: ease-in 0.3s;
}

.book-description{
    font-size: 14px;
    color: var(--font-color-light);
    margin-bottom: 0px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.bookinfo:hover .book-heading{
    transition: ease-in 0.3s;
    color: var(--theme-color);
}

.fc-middle{
    width: 100%;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.featuredimg{
    width: 160px;
    min-width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
}

.post-heading{
    text-decoration: none;
    color: inherit;
}

.post-heading h3{
    font-size: 20px;
    color: var(--heading-color);
    margin-bottom: 20px;
    transition: ease-in-out 0.3s;
}

.post-heading:hover h3{
    transition: ease-in-out 0.3s;
    color: var(--theme-color);
}

.post-description{
    margin-bottom: 0px;
    color: var(--font-color-light);
}

.no-posts-message h4{
    font-size: 18px;
    color: var(--heading-color);
}

.no-posts-message p{
    font-size: 14px;
    color: var(--font-color-light);
}

/* home styles end */

/* post view details */
.post-view-container{
    width: 100%;
    position: relative;
    display: inline-block;
    padding: 3rem 0rem;
}

.posts-view-wrapper{
    width: 100%;
    position: relative;
    display: inline-block;
    padding: 3rem;
    border-radius: 25px;
    background-color: #f8f6f6;
}

.post-view-heading{
    width: 100%;
    position: relative;
    display: inline-block;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 34px;
    color: var(--heading-color);
}

.post-featured-float {
    float: left;
    width: 45%;
    max-width: 480px;
    margin: 0 30px 20px 0;
    border-radius: 10px;
}

.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--font-color-light);
}

/* Clear float after content */
.post-content-wrapper::after {
    content: "";
    display: block;
    clear: both;
}

/* Mobile fix */
@media (max-width: 768px) {
    .post-featured-float {
        float: none;
        width: 100%;
        margin: 0 0 20px 0;
    }
}

.post-permalink strong{
    color: var(--heading-color);
}

.post-permalink a{
    color: var(--theme-color);
    overflow-wrap: break-word;
}

.post-content-wrapper h2{
    font-size: 24px;
    color: var(--heading-color);
}

.post-content-wrapper h3{
    font-size: 20px;
    color: var(--heading-color);
}

.post-content-wrapper a{
    color: var(--theme-color);
}

.about-modal-content{
    width: 100%;
    position: relative;
    display: inline-block;
}

.modal-title{
    color: var(--heading-color);
}

.about-modal-content .about-title{
    font-size: 24px;
    color: var(--heading-color);
    margin-bottom: 20px;
    text-align: center;
}

.about-modal-content .about-description{
    color: var(--font-color-light);
}

.view-publication-link{
    padding: 5px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    background-color: var(--theme-color);
    color: var(--white) !important;
    transition: ease-in 0.3s;
    width: fit-content;
}

.view-publication-link:hover{
    background-color: var(--theme-color-hover);
    transition: ease-in 0.3s;
}

/* publications page styles */
.publications-hero-container{
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.publications-hero-container::after{
    position: absolute;
    content: '';
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0%), rgba(0, 0, 0, 100%));
    z-index: 9;
}

.pubhero-wrapper{
    width: 100%;
    position: relative;
    display: inline-block;
    z-index: 11;
}

.pubhero-heading{
    font-size: 36px;
    color: var(--white);
    margin-bottom: 20px;
}

.pubhero-author-name{
    font-size: 20px;
    color: var(--white);
    margin-bottom: 20px;
    color: var(--theme-color);
}

.pubhero-description{
    color: var(--white);
}

.publications-card-wrapper{
    width: 100%;
    position: relative;
    display: inline-block;
    padding: 20px;
    border-radius: 25px;
    box-shadow: 0 5px 20px 1px rgba(0, 0, 0, 0.1);
    background-color: var(--white);
}

.publications-card-wrapper p{
    color: var(--font-color-light);
}

.read-more-toggle{
    display: inline-block;
    color: var(--theme-color);
    margin-bottom: 15px;
}

/* category page */
.category-posts{
    width: 100%;
    position: relative;
    display: inline-block;
    margin: 2rem 0rem;
}

.category-title{
    width: 100%;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    padding-bottom: 20px;
    color: var(--heading-color);
    font-size: 28px;
    border-bottom: 1px solid #dddddd;
}

.category-card{
    width: 100%;
    position: relative;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border-radius: 15px;
    background-color: #f8f6f6;
}

.cpost-meta{
    font-size: 12px;
    color: #494d5f;
}

.post-readtime span{
    font-size: 10px;
    margin: 0px 4px;
}

.cpost-bottom{
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.cpost-image-wrapper a img{
    width: 150px;
    height: 150px;
    min-width: 150px;
    object-fit: cover;
    object-position: top;
    border-radius: 15px;
}

.cpost-content-wrapper h3{
    font-size: 16px;
}

.cpost-content-wrapper h3 a{
    color: inherit;
    text-decoration: none;
    transition: ease-in 0.3s;
    display: inline-block;
    width: auto;
}

.cpost-content-wrapper h3 a:hover{
    transition: ease-in 0.3s;
    color: var(--theme-color);
}

.cpost-content-wrapper p{
    color: var(--font-color-light);
    margin-bottom: 0px;
    font-size: 14px;
}

.pagination{
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.pagination .nav-links{
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination .page-numbers{
    height: 35px;
    min-width: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid #dddddd;
    color: inherit;
    text-decoration: none;
    transition: ease-in 0.3s;
    color: var(--font-color-light);
}

.pagination .page-numbers.next{
    min-width: fit-content;
    padding: 2px 10px;
    transition: ease-in 0.3s;
}

.pagination .page-numbers.prev{
    min-width: fit-content;
    padding: 2px 10px;
    transition: ease-in 0.3s;
}

.pagination .page-numbers:hover{
    border-color: var(--theme-color);
    color: var(--theme-color);
    transition: ease-in 0.3s;
}

.pagination .page-numbers.current{
    border-color: var(--theme-color);
    color: var(--white);
    background-color: var(--theme-color);
    transition: ease-in 0.3s;
}