/* Global Styles */
* {
    font-family: 'Hind', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    overflow-x: hidden;
}

.clear {
    clear: both;
}

/* Main Container */
.page-container {
    width: 100%;
    max-width: 1290px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    text-align: left;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Header & Navbar */
.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    min-height: 75px;
    padding: 0 15px;
    box-sizing: border-box;
}

.header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo img {
    display: block;
    border: 0;
    max-width: 252px;
    height: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-grow: 1;
}

#navbar {
    margin: 0;
}

#navbar ul { 
    margin: 0; 
    padding: 5px 0; 
    list-style-type: none; 
    text-align: right; 
    background-color: #fff; 
} 

#navbar ul li {  
    display: inline-block; 
} 

#navbar ul li a { 
    text-decoration: none; 
    padding: .3em 1em; 
    color: #000; 
    background-color: #fff; 
    font-size: 14.5px;
    font-weight: 600;
    transition: all 0.2s ease;
    border-radius: 3px;
} 

#navbar ul li a:hover { 
    color: #fff; 
    background-color: #000; 
}

/* Top Visual Banner */
.banner-container {
    background-color: #c8d0d1;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    width: 100%;
}

.banner-img {
    border: 0;
    display: block;
    height: auto;
}

.banner-img-comp {
    width: 38.2%;
    max-width: 493px;
}

.banner-img-logo {
    width: 12.7%;
    max-width: 164px;
}

.banner-img-mags {
    width: 49.1%;
    max-width: 633px;
}

/* Publication Section Headers */
.section-header {
    margin-top: 25px;
    line-height: 0;
    width: 100%;
}

.section-header img {
    border: 0;
    display: block;
    width: 100%;
    max-width: 1280px;
    height: auto;
    margin: 0 auto;
}

.sahitya-header {
    background-color: #013f7d;
    padding-top: 25px;
}

.samachar-header {
    background-color: #ffffff;
    margin-top: 25px;
}

/* Carousel Layout */
.custom-container {
    position: relative;
    width: 100%;
    max-width: 1290px;
    height: 385px;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.custom-container.default {
    background-color: #ffffff;
}

.custom-container.sahitya {
    background-color: #02407d;
}

.custom-container.newsletter {
    background-color: #ffffff;
}

.custom-container .prev,
.custom-container .next {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    width: 43px;
    height: 250px;
    flex-shrink: 0;
    z-index: 10;
    transition: opacity 0.2s;
}

.custom-container .prev {
    margin-left: 10px;
}

.custom-container .next {
    margin-right: 10px;
}

.custom-container .prev:hover,
.custom-container .next:hover {
    opacity: 0.75;
}

.custom-container .prev img,
.custom-container .next img {
    display: block;
    max-width: 100%;
    height: auto;
}

.custom-container .carousel {
    overflow: hidden;
    position: relative;
    height: 385px;
    margin: 0 auto;
}

/* Carousel Track */
.car_ul, .car_ul_blue {
    margin: 0px;
    padding: 0px;
    position: relative;
    list-style: none;
    display: flex;
    white-space: nowrap;
    will-change: transform;
}

.car_ul a:link,
.car_ul a:visited {
    color: #000000;
    text-decoration: none;
}

.car_ul a:hover {
    color: #ffffff;
    text-decoration: underline;
    background-color: #2f4f4f;
}

.car_ul_blue a:link,
.car_ul_blue a:visited {
    color: #ffffff;
    text-decoration: none;
}

.car_ul_blue a:hover {
    color: #000000;
    text-decoration: underline;
    background-color: #ffffff;
}

/* Carousel Item Elements */
.c_li {
    box-sizing: content-box !important;
    overflow: hidden;
    flex-shrink: 0;
    width: 205px;
    height: 345px;
    padding: 15px 15px 0 15px;
    font-size: 13px;
    text-align: center;
}

.c_image {
    height: 257px;
    width: 200px;
    border: 1px solid #808080;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
    object-fit: cover;
}

.c_meta {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
    width: 200px;
    margin-left: auto;
    margin-right: auto;
    word-wrap: break-word;
    box-sizing: border-box;
    white-space: normal;
}

/* Older Archives Box in Samachar */
.archive-box {
    border: 1px solid #808080;
    padding: 6px;
    width: 200px;
    height: 257px;
    background-color: #ffffff;
    overflow-y: auto;
    margin: 0 auto;
    box-sizing: border-box;
}

.archive-box b {
    display: block;
    text-align: center;
    margin-bottom: 4px;
    font-size: 13px;
}

.archive-box table {
    width: 100%;
    border-collapse: collapse;
}

.archive-box td {
    padding: 2px 4px;
    font-size: 11px;
    vertical-align: top;
    line-height: 1.35;
}

.archive-box a {
    color: #000000;
    text-decoration: none;
}

.archive-box a:hover {
    text-decoration: underline;
    background-color: #e0e0e0;
}

/* Semantic Footer */
.site-footer {
    background-color: #ffffff;
    padding: 20px 25px 25px 25px;
    text-align: center;
    color: #222222;
    font-size: 12.5px;
    line-height: 1.8;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #c0c0c0, #999999, #c0c0c0, transparent);
    margin-bottom: 15px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-line {
    margin: 3px 0;
}

.primary-line {
    font-size: 12.5px;
    color: #1a1a1a;
}

.primary-line span {
    display: inline-block;
    margin: 0 4px;
}

.primary-line a {
    color: #02407d;
    text-decoration: none;
}

.primary-line a:hover {
    text-decoration: underline;
}

.en-sep, .dot-sep {
    color: #999999;
    margin: 0 6px !important;
}

.secondary-line {
    font-size: 12px;
    color: #444444;
}

.secondary-line a {
    color: #02407d;
    text-decoration: none;
}

.secondary-line a:hover {
    text-decoration: underline;
}

/* ======================================================== */
/* Responsive Media Queries */
/* ======================================================== */

/* Tablets & Small Laptops (max-width: 992px) */
@media (max-width: 992px) {
    .header-wrapper {
        padding: 8px 12px;
    }
    .custom-container {
        height: 380px;
    }
}

/* Mobile Devices & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
    .header-wrapper {
        flex-direction: column;
        justify-content: center;
        padding: 10px;
        min-height: auto;
    }

    .header-logo {
        width: 100%;
        justify-content: center;
        text-align: center;
        margin-bottom: 10px;
    }

    .header-logo a {
        display: inline-flex;
        justify-content: center;
        width: 90%;
        max-width: 90%;
    }

    .header-logo img {
        width: 90%;
        max-width: 90%;
        height: auto;
        margin: 0 auto;
    }

    .header-nav {
        width: 100%;
        justify-content: center;
    }

    #navbar ul {
        text-align: center;
        padding: 5px 0;
    }

    /* Banner stacking */
    .banner-container {
        padding: 8px 0;
    }

    .banner-img-comp {
        width: 44%;
    }

    .banner-img-logo {
        width: 16%;
    }

    .banner-img-mags {
        width: 90%;
        margin-top: 8px;
    }

    /* Arrows on tablet/mobile */
    .custom-container .prev,
    .custom-container .next {
        width: 36px;
        height: 200px;
    }

    .custom-container .prev {
        margin-left: 5px;
    }

    .custom-container .next {
        margin-right: 5px;
    }

    /* Footer stacking */
    .site-footer {
        padding: 15px 10px;
    }

    .primary-line span {
        display: block;
        margin: 3px 0;
    }

    .en-sep {
        display: none;
    }

    .secondary-line span {
        display: block;
        margin: 3px 0;
    }

    .dot-sep {
        display: none;
    }
}

/* Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {
    .header-logo img {
        width: 90%;
        max-width: 90%;
        height: auto;
    }

    #navbar ul li a {
        font-size: 13px;
        padding: .2em .6em;
    }

    /* Banner on small phones */
    .banner-img-comp {
        width: 65%;
    }

    .banner-img-logo {
        width: 25%;
    }

    .banner-img-mags {
        width: 96%;
        margin-top: 6px;
    }

    .custom-container {
        height: 365px;
    }

    .custom-container .prev,
    .custom-container .next {
        width: 28px;
        height: 160px;
    }

    .custom-container .prev {
        margin-left: 2px;
    }

    .custom-container .next {
        margin-right: 2px;
    }

    .c_li {
        height: 330px;
        padding: 10px 5px 0 5px;
    }

    .c_image {
        width: 180px;
        height: 231px;
    }

    .archive-box {
        width: 180px;
        height: 231px;
    }

    .c_meta {
        width: 180px;
        font-size: 12.5px;
    }
}
