/*
Theme Name: CISONow
Theme URI: https://cisonow.in/
Author: CISONow
Author URI: https://cisonow.in/
Description: A custom WordPress news and media theme built for CISONow.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cisonow
Tags: blog, news, custom-logo, custom-menu, featured-images, threaded-comments
*/

/* Basic Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #111;
    background: #fff;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.container {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}
/* =========================================================
   CISONOW HEADER
========================================================= */

:root {
    --ciso-blue: #159bde;
    --ciso-blue-dark: #0784bf;
    --ciso-purple: #63237f;
    --ciso-purple-dark: #45207d;

    --ciso-black: #080c12;
    --ciso-text: #10151d;
    --ciso-grey: #687182;
    --ciso-border: #e9edf2;

    --ciso-container: 1665px;
}


body {
    margin: 0;
    font-family: "Inter", "DM Sans", Arial, sans-serif;
}


.cisonow-container {
    width: min(
        var(--ciso-container),
        calc(100% - 48px)
    );

    margin: 0 auto;
}


/* =========================================================
   ROW 1
========================================================= */

.cisonow-topbar {
    height: 39px;

    background: #070b11;

    color: #ffffff;

    font-family: "Inter", sans-serif;

    font-size: 13px;
}


.cisonow-topbar-inner {
    height: 39px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


.cisonow-topbar-left {
    display: flex;
    align-items: center;

    height: 100%;

    min-width: 0;
}


.cisonow-date {
    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;
}


.cisonow-top-divider {
    width: 1px;
    height: 15px;

    background: rgba(255, 255, 255, 0.12);

    margin: 0 38px;
}


.cisonow-live-btn {
    appearance: none;

    border: 0;
    background: transparent;

    color: #ff4052;

    padding: 0;

    cursor: pointer;

    font-family: "Inter", sans-serif;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.2px;

    white-space: nowrap;
}


.live-dot {
    display: none;
}


.cisonow-fade-news {
    position: relative;

    width: 500px;
    height: 20px;

    overflow: hidden;

    color: #a7bfd4;
}


.cisonow-fade-item {
    position: absolute;

    inset: 0;

    display: flex;
    align-items: center;

    color: #a9bfd4;

    font-size: 13px;
    font-weight: 400;

    opacity: 0;

    transform: translateY(5px);

    pointer-events: none;

    transition:
        opacity 0.45s ease,
        transform 0.45s ease;
}


.cisonow-fade-item.active {
    opacity: 1;

    transform: translateY(0);

    pointer-events: auto;
}


.cisonow-top-menu {
    display: flex;

    align-items: center;

    gap: 31px;

    margin: 0;

    padding: 0;

    list-style: none;
}


.cisonow-top-menu a {
    color: #f8f9fb;

    font-size: 13px;
    font-weight: 600;

    transition: color 0.2s ease;
}


.cisonow-top-menu a:hover {
    color: var(--ciso-blue);
}



/* =========================================================
   ROW 2
========================================================= */

.cisonow-mainbar {
    height: 71px;

    background: #ffffff;

    border-bottom: 1px solid #eef1f4;
}


.cisonow-mainbar-inner {
    height: 71px;

    display: flex;

    align-items: center;
}


/* Logo */

.cisonow-logo-area {
    display: flex;

    align-items: center;

    flex-shrink: 0;
}


.cisonow-logo {
    display: flex;
    align-items: center;
}


.cisonow-logo img {
    width: auto;

    max-width: 190px;

    max-height: 42px;

    display: block;
}


.cisonow-text-logo {
    display: flex;

    align-items: center;

    gap: 10px;

    color: #10151c;

    font-family: "DM Sans", sans-serif;

    font-size: 30px;

    font-weight: 700;

    line-height: 1;
}


.cisonow-logo-circle {
    width: 34px;
    height: 34px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 100px;

    background: linear-gradient(
        135deg,
        #168dd0 0%,
        #4c2b94 100%
    );

    color: #ffffff;

    font-size: 15px;
}


.cisonow-media-badge {
    margin-left: 18px;

    padding: 5px 10px;

    border: 1px solid #98d9f3;

    border-radius: 4px;

    color: #0989c7;

    font-size: 10px;

    line-height: 1;

    font-weight: 700;

    letter-spacing: 1px;

    white-space: nowrap;
}



/* Navigation */

.cisonow-navigation {
    margin-left: auto;

    height: 100%;

    display: flex;

    align-items: center;
}


.cisonow-main-menu {
    height: 100%;

    display: flex;

    align-items: center;

    gap: 4px;

    margin: 0;

    padding: 0;

    list-style: none;
}


.cisonow-main-menu > li {
    height: 100%;

    display: flex;

    align-items: center;
}


.cisonow-main-menu > li > a {
    position: relative;

    display: flex;

    align-items: center;

    height: 44px;

    padding: 0 17px;

    border-radius: 12px;

    color: #697181;

    font-size: 15px;

    font-weight: 600;

    line-height: 1;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.cisonow-main-menu > li > a:hover {
    color: #078bc9;

    background: #eff9fd;
}


.cisonow-main-menu > li.current-menu-item > a,
.cisonow-main-menu > li.current_page_item > a {
    color: #078bc9;

    background: #edf8fc;
}



/* Header actions */

.cisonow-header-actions {
    display: flex;

    align-items: center;

    gap: 25px;

    margin-left: 25px;
}



/* Search */

.cisonow-search-wrap {
    position: relative;

    display: flex;

    align-items: center;
}


.cisonow-search-toggle {
    width: 27px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;

    background: transparent;

    color: #8792a4;

    cursor: pointer;
}


.cisonow-search-form {
    position: absolute;

    z-index: 100;

    right: 36px;

    top: 50%;

    width: 0;

    opacity: 0;

    visibility: hidden;

    transform: translateY(-50%);

    transition:
        width 0.25s ease,
        opacity 0.2s ease,
        visibility 0.2s ease;
}


.cisonow-search-wrap:hover .cisonow-search-form,
.cisonow-search-wrap.active .cisonow-search-form {
    width: 240px;

    opacity: 1;

    visibility: visible;
}


.cisonow-search-form input {
    width: 100%;
    height: 40px;

    padding: 0 15px;

    border: 1px solid #d8e0e8;

    border-radius: 7px;

    outline: none;

    background: #ffffff;

    color: #151a21;

    font-family: "Inter", sans-serif;

    font-size: 13px;

    box-shadow:
        0 8px 25px rgba(12, 35, 58, 0.12);
}


.cisonow-search-form input:focus {
    border-color: #159bde;
}



/* Subscribe */

.cisonow-subscribe-btn {
    min-width: 120px;

    height: 43px;

    padding: 0 22px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 30px;

    background:
        linear-gradient(
            110deg,
            #0697c8 0%,
            #137dbf 36%,
            #292da2 68%,
            #5b278c 100%
        );

    color: #ffffff;

    font-size: 15px;

    font-weight: 700;

    line-height: 1;

    box-shadow:
        0 6px 15px rgba(62, 45, 144, 0.12);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.cisonow-subscribe-btn:hover {
    color: #ffffff;

    transform: translateY(-1px);

    box-shadow:
        0 8px 19px rgba(62, 45, 144, 0.2);
}



/* =========================================================
   ROW 3
========================================================= */

.cisonow-breaking-row {
    height: 40px;

    background: #ffffff;

    border-bottom: 1px solid #e7ebef;
}


.cisonow-breaking-inner {
    height: 40px;

    display: flex;

    align-items: stretch;

    overflow: hidden;
}


.cisonow-breaking-label {
    position: relative;

    z-index: 5;

    width: 137px;

    flex: 0 0 137px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    background:
        linear-gradient(
            110deg,
            #098ac5 0%,
            #1f63b4 42%,
            #50217f 100%
        );

    color: #ffffff;

    font-family: "Inter", sans-serif;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 0.7px;
}


.breaking-dot {
    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: #ffffff;
}


.cisonow-breaking-marquee {
    position: relative;

    flex: 1;

    overflow: hidden;

    display: flex;

    align-items: center;
}


.cisonow-breaking-track {
    display: flex;

    align-items: center;

    width: max-content;

    white-space: nowrap;

    animation:
        cisonow-marquee 65s linear infinite;
}


.cisonow-breaking-marquee:hover
.cisonow-breaking-track {
    animation-play-state: paused;
}


.cisonow-breaking-item {
    display: inline-flex;

    align-items: center;

    color: #7d8593;

    font-size: 12.5px;

    font-weight: 500;

    padding: 0 31px;
}


.cisonow-breaking-item:hover {
    color: #168ec6;
}


.breaking-icon {
    margin-right: 7px;

    color: #159bde;
}


.breaking-separator {
    color: #c9ced5;

    font-size: 12px;
}


@keyframes cisonow-marquee {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

}



/* =========================================================
   LIVE POPUP
========================================================= */

.cisonow-live-popup {
    position: fixed;

    right: 24px;
    bottom: 24px;

    z-index: 99999;

    width: 420px;

    background: #080d14;

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 15px 60px rgba(0, 0, 0, 0.28);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(20px)
        scale(0.97);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}


.cisonow-live-popup.active {
    opacity: 1;

    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}


.cisonow-live-popup-header {
    height: 45px;

    padding: 0 14px 0 17px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    color: #ffffff;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 0.7px;
}


.cisonow-live-popup-header > div {
    color: #ff4555;
}


.cisonow-live-popup-header button {
    width: 30px;
    height: 30px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #ffffff;

    font-size: 25px;

    cursor: pointer;
}


.cisonow-video-wrap {
    position: relative;

    width: 100%;

    padding-bottom: 56.25%;

    background: #000;
}


.cisonow-video-wrap iframe {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    border: 0;
}



/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.cisonow-menu-toggle {
    display: none;

    width: 36px;
    height: 36px;

    padding: 7px;

    border: 0;

    background: transparent;

    cursor: pointer;
}


.cisonow-menu-toggle span {
    display: block;

    width: 100%;
    height: 2px;

    margin: 5px 0;

    background: #121821;
}



/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1300px) {

    .cisonow-container {
        width: calc(100% - 36px);
    }

    .cisonow-main-menu > li > a {
        padding-left: 11px;
        padding-right: 11px;

        font-size: 14px;
    }

    .cisonow-media-badge {
        display: none;
    }

    .cisonow-fade-news {
        width: 370px;
    }
}



@media (max-width: 1100px) {

    .cisonow-navigation {
        position: absolute;

        top: 110px;
        left: 0;
        right: 0;

        z-index: 9998;

        display: none;

        height: auto;

        padding: 15px 20px;

        background: #ffffff;

        border-top: 1px solid #e9edf1;

        box-shadow:
            0 15px 30px rgba(0, 0, 0, 0.08);
    }

    .cisonow-navigation.active {
        display: block;
    }

    .cisonow-main-menu {
        display: block;

        height: auto;
    }

    .cisonow-main-menu > li {
        display: block;

        height: auto;
    }

    .cisonow-main-menu > li > a {
        height: 46px;

        padding: 0 12px;
    }

    .cisonow-menu-toggle {
        display: block;
    }

}



@media (max-width: 768px) {

    .cisonow-topbar {
        height: 34px;
    }

    .cisonow-topbar-inner {
        height: 34px;
    }

    .cisonow-date {
        font-size: 11px;
    }

    .cisonow-top-divider {
        margin: 0 12px;
    }

    .cisonow-fade-news {
        display: none;
    }

    .cisonow-topbar-right {
        display: none;
    }


    .cisonow-mainbar,
    .cisonow-mainbar-inner {
        height: 65px;
    }

    .cisonow-logo img {
        max-width: 150px;
    }

    .cisonow-text-logo {
        font-size: 23px;
    }

    .cisonow-subscribe-btn {
        display: none;
    }

    .cisonow-header-actions {
        gap: 10px;

        margin-left: auto;
    }

    .cisonow-search-wrap:hover
    .cisonow-search-form,
    .cisonow-search-wrap.active
    .cisonow-search-form {
        width: 200px;
    }


    .cisonow-navigation {
        top: 99px;
    }


    .cisonow-breaking-label {
        width: 110px;

        flex-basis: 110px;

        font-size: 10px;
    }

    .cisonow-breaking-item {
        font-size: 11px;
    }


    .cisonow-live-popup {
        width: calc(100% - 30px);

        right: 15px;
        bottom: 15px;
    }

}