/* South Asian Journal of Cancer - Bootstrap 5 custom styling */

:root {
    --sajc-red: #c92b24;
    --sajc-dark: #333634;
    --sajc-text: #26384a;
}

html, body { margin: 0; padding: 0; }

body {
    color: var(--sajc-text);
    background: #fff;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 13px;
}

img { max-width: 100%; height: auto; }
a:hover { color: #9f1e19; }

/* =========================================================
   MOBILE LEFT SIDEBAR MENU
   ========================================================= */

.mobile-menu-btn {
    display: none;
}


/* Mobile sidebar */
.mobile-sidebar {
    display: none;
}


/* Overlay */
.mobile-sidebar-overlay {
    display: none;
}


/* Header */
.logomain{
        flex: 0 0 auto;
        width: 15%;
}
.site-header { background: #fff; }

.brand-logo { text-decoration: none; display: flex; align-items: center; }


.brand-fallback {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #000;
    margin-top: 30px;
}

.brand-fallback strong {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    font-family: Georgia, serif;
    font-size: 20px;
}

.brand-fallback span {
    color: var(--sajc-red);
    font-size: 1.9rem;
    line-height: 1.05;
    font-weight: 700;
}

.header-title { display: none; }

.partner-logos {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #222;
    font-size: 11px;
    font-weight: 700;
}

.partner-logos span { white-space: nowrap; }

.main-navbar { min-height: 42px; }

.main-navbar .navbar-nav {

}

.main-navbar .navbar-nav .nav-item{
    border-right: 1px solid #d0d0d0;
    padding: 10px;
}

.main-navbar .navbar-nav .nav-item:last-child{
    border-right: none;
}

.main-navbar .nav-link {
    font-size: 1rem;
    color: #222;
    font-weight: 700;
    padding: 10px 8px;
    text-transform: uppercase;
}

.main-navbar .nav-item:first-child .nav-link {

}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: #fff;
    background: var(--sajc-red);
    font-size: 1rem;
    padding: 10px 8px;
}

.header-red-line {
    height: 6px;
    background: var(--sajc-red);
}

/* Hero */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 160px;
    overflow: hidden;
    background:url("../images/bg_hero.png") repeat-x;
}



.hero-inner {
    position: relative;
    z-index: 2;
    min-height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-main {
    width: 86%;
    height: 215px;
    overflow: hidden;
}

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

.hero-cover {
    width: 190px;
    height: 214px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: #fff;
}

.hero-cover img {
    width: 166px;
    height: 214px;
    object-fit: contain;
}

/* Announcement */
.announcement-bar {
    height: 38px;
    border-top: 5px solid var(--sajc-red);
    overflow: hidden;
}

.announcement-track {
    white-space: nowrap;
    display: inline-block;
    padding-top: 9px;
    animation: announcement-scroll 24s linear infinite;
}

.announcement-track span { margin-left: 70px; }

@keyframes announcement-scroll {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

/* Content */
.main-container {
    max-width: 60%;
    padding-top: 10px;
    padding-bottom: 30px;
}

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

.section-heading h2 {
    color: #222;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.heading-icon {
    width: 16px;
    height: 6px;
    background: #333;
    display: inline-block;
    position: relative;
}

.heading-icon::after {
    content: "";
    width: 90px;
    height: 5px;
    background: var(--sajc-red);
    position: absolute;
    left: 366px;
    top: 0;
}

.content-title {
    color: var(--sajc-red);
    font-size: 16px;
    margin-bottom: 34px;
}

.content-title span {
    color: #222;
    font-size: 25px;
    margin-right: 8px;
}

.content-copy {
    text-align: justify;
    line-height: 1.45;
}

.content-copy p { margin-bottom: 16px; }

.publisher-notice {
    font-size: 15px;
    line-height: 1.45;
    margin-bottom: 20px;
}

.publisher-notice a { word-break: break-word; }

/* Editors */
.editor-grid {
    margin-top: 8px;
    text-align: center;
}

.editor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    line-height: 1.35;
}

.editor-card img {
    width: 109px;
    height: 126px;
    object-fit: cover;
}

#editoril-content h3{
    font-family: Verdana, Geneva, sans-serif;
    font-size: 1rem;
    color: #d53833;
    font-weight: 600;
}

#editoril-content ul li{
    font-family: Verdana, Geneva, sans-serif;
    font-size: 1rem;
    color: #424c52;
    font-weight: normal;
}

/* Sidebar */
.sidebar { padding-top: 0; }

.sidebar-image {
    display: block;
    margin-top: 18px;
}

.sidebar-image.first { margin-top: 0; }

.sidebar-image img {
    width: 196px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.contact-details {
    margin: 5px auto 0;
    max-width: 196px;
    line-height: 1.4;
    font-size: 11px;
    text-align: left;
    overflow-wrap: anywhere;
}

.contact-details a { text-decoration: none; }

/* Footer */
.footer-container{
    width: 990px;
    margin: 0px auto;
}
.site-footer {
    background: var(--sajc-dark);
    border-top: 5px solid #ddd;
    color: #fff;
    padding: 18px 0 20px;
}

.footer-resource-title {
    margin-bottom: 10px;
    font-size: 12px;
}

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

.footer-logo-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    margin: 0 0 18px;
    padding: 0;
}

.footer-logo-row div {
    width: 80px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;
    border: 0;

    overflow: hidden;
    flex: 0 0 80px;
}

.footer-logo-row img {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
}

.footer-nav {
    font-size: 11px;
    margin-bottom: 25px;
}

.footer-nav a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    margin: 0 4px;
}

.follow-us { font-size: 11px; }

.follow-us a {
    color: #fff;
    margin-left: 20px;
    text-decoration: none;
}

.copyright {
    text-align: right;
    font-size: 10px;
    line-height: 1.5;
}
.form-control{
    width: 85%;
}
/* Responsive */
/* =========================================================
   MOBILE RESPONSIVE FIX
   320px - 767px
   ========================================================= */

@media (max-width: 767.98px) {

    /* ---------- GLOBAL ---------- */

    html,
    body {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    .container,
    .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-left: auto;
        margin-right: auto;
    }


    /* ---------- OLD FIXED WIDTH WRAPPERS ---------- */

    #page,
    #wrapper,
    #content,
    #mid-block,
    #footer {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    

    /* ---------- HEADER ---------- */

    .header-brand-row {
        width: 100%;
        min-height: auto;
        padding: 10px 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }

    .brand-logo {
        max-width: 100%;
        min-width: 0;
        width: 100%;
        margin-left: 30px;
    }

    .brand-logo img {
        max-width: 100%;
        width: auto;
        max-height: 65px;
    }

    .brand-fallback {
        gap: 6px;
    }

    .brand-fallback strong {
        width: 48px;
        height: 48px;
        font-size: 13px;
    }

    .brand-fallback span {
        font-size: 16px;
        line-height: 1.05;
    }

    .partner-logos {
        display: none !important;
    }


    /* ---------- NAVBAR ---------- */

    .main-navbar {
        width: 100%;
        min-height: auto;
    }

    .main-navbar .container-fluid {
        padding-left: 0;
        padding-right: 0;
    }

    .main-navbar .navbar-toggler {
        border: 1px solid #ccc;
        padding: 5px 8px;
        border: 0px !important;
        box-shadow: none !important;
    }

    .main-navbar .navbar-collapse {
        width: 100%;
    }

    .main-navbar .navbar-nav {
        width: 100%;
        display: flex;
        flex-direction: column;
        border: 0;
    }

    .main-navbar .nav-item {
        width: 100%;
    }

    .main-navbar .nav-link,
    .main-navbar .nav-item:first-child .nav-link {
        width: 100%;
        display: block;
        padding: 11px 15px;
        border: 0 !important;
        border-bottom: 1px solid #ddd !important;
        font-size: 13px;
        text-align: left;
    }

    .main-navbar .nav-link.active {
        color: #fff;
        background-color: #c92b24;
    }

    .header-red-line {
        height: 4px;
    }


    /* ---------- HERO ---------- */

    .hero-section {
        width: 100%;
        min-height: auto;
        overflow: hidden;
    }

    .hero-bg {
        display: none !important;
    }

    .hero-inner {
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-main {
        width: 100%;
        height: auto;
        overflow: hidden;
    }

    .hero-main img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
    }

    .hero-cover {
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 10px 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-cover img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }


    /* ---------- ANNOUNCEMENT ---------- */

    .announcement-bar {
        width: 100%;
        height: 32px;
        border-top: 3px solid #c92b24;
    }

    .announcement-track {
        width: max-content;
        max-width: none;
        padding-top: 7px;
        font-size: 10px;
    }


    /* ---------- MAIN CONTENT ---------- */

    .main-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 15px 25px;
        margin: 0;
    }

    .section-heading {
        width: 100%;
        margin-bottom: 12px;
    }

    .section-heading h2 {
        font-size: 14px;
    }

    .heading-icon::after {
        width: 60px;
    }

    .content-title {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .content-title span {
        font-size: 20px;
    }


    /* ---------- BOOTSTRAP ROW ---------- */

    .content-row {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .content-row > * {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }


    /* ---------- MAIN TEXT ---------- */

    .content-copy {
        width: 100%;
        font-size: 12px;
        line-height: 1.5;
        text-align: justify;
    }

    .content-copy p {
        margin-bottom: 14px;
    }

    .publisher-notice {
        width: 100%;
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 18px;
    }

    .publisher-notice a {
        word-break: break-all;
    }


    /* ---------- EDITORS ---------- */

    .editor-grid {
        width: 100%;
        margin-top: 15px;
    }

    .editor-grid .row {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .editor-card {
        padding-left: 5px !important;
        padding-right: 5px !important;
        font-size: 10px;
        line-height: 1.3;
    }

    .editor-card img {
        width: 100px;
        height: 115px;
        object-fit: cover;
    }


    /* ---------- SIDEBAR ---------- */

    .sidebar {
        width: 100%;
        margin-top: 25px;
    }

    .sidebar-image {
        width: 196px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-top: 15px;
    }

    .sidebar-image.first {
        margin-top: 0;
    }

    .sidebar-image img {
        width: 196px;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }

    .contact-details {
        width: 196px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        font-size: 10px;
        line-height: 1.4;
    }


    /* ---------- FOOTER ---------- */

    .site-footer {
        width: 100%;
        max-width: 100%;
        padding: 15px 0;
        overflow: hidden;
    }

    .site-footer .container {
        width: 100% !important;
        max-width: 100% !important;
    }

    .footer-resource-title {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
    }

    .footer-logo-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;

        gap: 8px;

        width: 100%;
        margin: 0 0 15px;
    }

    .footer-logo-row div {
        width: 70px;
        height: 52px;

        flex: 0 0 70px;

        display: flex;
        align-items: center;
        justify-content: center;

        background: #fff;
        overflow: hidden;
    }

    .footer-logo-row img {
        display: block;
        width: auto;
        height: auto;

        max-width: 100%;
        max-height: 100%;

        object-fit: contain;
    }

    .footer-logo-row a {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 100%;
        height: 100%;
    }

    .footer-bottom {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .footer-nav {
        font-size: 9px;
        line-height: 1.8;
        margin-bottom: 15px;
    }

    .footer-nav a {
        margin: 0 2px;
    }

    .follow-us {
        font-size: 10px;
        line-height: 2;
    }

    .follow-us a {
        margin-left: 8px;
    }

    .copyright {
        font-size: 9px;
        line-height: 1.5;
        text-align: left !important;
        margin-top: 15px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   320px - 480px
   ========================================================= */

@media (max-width: 480px) {

    .logomain{
        width: auto;
    }

    .header-brand-row {
        padding: 8px 10px;
    }

    .brand-fallback strong {
        width: 42px;
        height: 42px;
        font-size: 11px;
    }

    .brand-fallback span {
        font-size: 14px;
    }

    .main-container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .content-copy {
        font-size: 11px;
    }

    .publisher-notice {
        font-size: 12px;
    }

    .editor-card {
        font-size: 9px;
    }

    .editor-card img {
        width: 85px;
        height: 100px;
    }

    .sidebar-image {
        width: 180px;
    }

    .sidebar-image img {
        width: 180px;
    }

    .contact-details {
        width: 180px;
        font-size: 9px;
    }

    .footer-logo-row div {
         width: 70px;
        height: 52px;
        flex: 0 0 70px;
    }

    .footer-nav {
        font-size: 8px;
    }
}