/*
Theme Name: Kalliope Clone
Theme URI: https://themeforest.net/item/kalliope-modern-blog-wordpress-theme/45020428
Author: Gemini Web Studio
Author URI: https://gemini.google.com
Description: A modern, responsive, and creative blog/magazine WordPress theme inspired by Kalliope. Built with Manrope typography, a vibrant blue accent palette, premium dark mode toggle, and rich card hover effects.
Version: 1.0.0
Text Domain: kalliope-clone
*/

/* --- CORE DESIGN SYSTEM --- */
:root {
    --primary: #4353F3;
    --primary-hover: #2a3ad6;
    --secondary: #000000;
    --bg: #ffffff;
    --paper: #ffffff;
    --text: #282828;
    --text-muted: #666666;
    --border: #f0f0f0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(67, 83, 243, 0.12);
    --radius: 8px;
    --ff-body: "Manrope", sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Dark Mode Variables */
body.dark-mode {
    --bg: #0b0d17;
    --paper: #121524;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --border: #1e293b;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 10px 30px rgba(67, 83, 243, 0.2);
}

/* --- BASICS & RESET --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--ff-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 1240px;
}

/* --- PRELOADER --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner {
    width: 40px;
    height: 40px;
    position: relative;
}

.double-bounce1, .double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #ffffff;
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    animation: sk-bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
    animation-delay: -1.0s;
}

@keyframes sk-bounce {
    0%, 100% { transform: scale(0.0); }
    50% { transform: scale(1.0); }
}

/* --- HEADER AREA --- */
.theme-header-main {
    position: relative;
    z-index: 100;
    background-color: var(--paper);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s ease;
}

.theme-header-area {
    padding: 15px 0;
}

.header-left-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.burger-nav-bar {
    cursor: pointer;
    padding: 5px;
}

.panel-bar-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.lv-header-bar-line {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text);
    transition: var(--transition);
}

.burger-nav-bar:hover .lv-header-bar-line {
    background-color: var(--primary);
}

.logo.theme-logo img {
    max-height: 40px;
    width: auto;
}

/* Logos switching depending on theme */
body.dark-mode .logo.theme-logo.main {
    display: none !important;
}
body:not(.dark-mode) .logo.theme-logo.dark {
    display: none !important;
}

/* NAVIGATION MENU */
.nav-menu-wrapper {
    display: flex;
    justify-content: center;
}

.theme-navigation-wrap {
    display: flex;
    list-style: none;
    gap: 25px;
}

.theme-navigation-wrap > li {
    position: relative;
}

.theme-navigation-wrap > li > a {
    font-size: 15px;
    font-weight: 600;
    padding: 10px 0;
    display: block;
}

.theme-navigation-wrap li.menu-item-has-children > a::after {
    content: "\ea4e"; /* RemixIcon down arrow code */
    font-family: 'remixicon' !important;
    font-size: 12px;
    margin-left: 5px;
    vertical-align: middle;
}

/* Submenu dropdown */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: var(--paper);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 99;
}

.theme-navigation-wrap li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li a {
    display: block;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
}

.sub-menu li a:hover {
    background-color: rgba(67, 83, 243, 0.05);
    padding-left: 25px;
}

/* HEADER ACTIONS */
.header-right-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.mode-switcher {
    cursor: pointer;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
}

.mode-switcher-icon {
    width: 18px;
    height: 18px;
    filter: none;
    transition: var(--transition);
}

body.dark-mode .mode-switcher-icon {
    filter: invert(1);
}

.header-search-wrap {
    position: relative;
}

.header-search-box {
    cursor: pointer;
    font-size: 18px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
}

/* Search Box Inner Overlay */
#theme-serach-box-Inner {
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    background-color: var(--paper);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    z-index: 98;
    padding: 20px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: var(--transition);
}

#theme-serach-box-Inner.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-serach-box-inner-wrapper {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.theme-serach-box-inner-wrapper input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 1.5px solid var(--border);
    border-radius: 30px;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--ff-body);
    font-size: 15px;
    outline: none;
}

.theme-serach-box-inner-wrapper input:focus {
    border-color: var(--primary);
}

#serach-popup-btn-box {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: #ffffff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
}

/* SUBSCRIBE BUTTON */
.subscribe-btn {
    display: inline-block;
    padding: 10px 22px;
    background-color: var(--primary);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
    border-radius: 30px;
    transition: var(--transition);
}

.subscribe-btn:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-hover);
}

/* --- OFFCANVAS AREA --- */
.tp-offcanvas-area {
    position: fixed;
    top: 0;
    left: -350px;
    width: 330px;
    height: 100%;
    background-color: var(--paper);
    z-index: 1000;
    box-shadow: 5px 0 30px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    padding: 30px;
    overflow-y: auto;
}

.tp-offcanvas-area.active {
    left: 0;
}

.tpoffcanvas-close-btn {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.close-btn img {
    width: 12px;
    height: 12px;
    transition: var(--transition);
}

.close-btn:hover {
    border-color: var(--primary);
    background-color: var(--primary);
}
.close-btn:hover img {
    filter: brightness(0) invert(1);
}

.tpoffcanvas-logo {
    margin-bottom: 40px;
}

.tpoffcanvas-logo img {
    max-height: 35px;
}

/* Sidebar overlay background */
.body-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(2px);
}

.body-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Offcanvas Widgets */
.canvas-widget {
    margin-bottom: 40px;
}

.canvas-widget h3.widget-title {
    font-size: 18px;
    margin-bottom: 20px;
    border-left: 3px solid var(--primary);
    padding-left: 10px;
}

/* --- POST BLOCKS & CARDS --- */
.post-block-style-wrapper {
    position: relative;
    background-color: var(--paper);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-block-style-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.post-block-media-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.post-block-media-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.post-block-style-wrapper:hover .post-block-media-wrap img {
    transform: scale(1.06);
}

.post-block-content-wrap {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-category-box {
    margin-bottom: 10px;
}

.post-category-box a {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    padding: 3px 10px;
    background-color: rgba(67, 83, 243, 0.06);
    border-radius: 4px;
}

.post-category-box a:hover {
    background-color: var(--primary);
    color: #ffffff !important;
}

.post-item-title .post-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.post-item-title .post-title a:hover {
    color: var(--primary);
}

.post-excerpt-box {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-bottom-meta-list {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: auto;
}

.post-bottom-meta-list.bullet > div:not(:last-child)::after {
    content: "•";
    margin-left: 12px;
    color: var(--border);
}

.post-meta-author-box a {
    font-weight: 600;
    color: var(--text);
}

/* Large layout modifications */
.post-block-template-large .post-block-media-wrap {
    aspect-ratio: 16/9;
}

.post-block-template-large .post-item-title .post-title {
    font-size: 24px;
}

.post-block-template-large .post-bottom-meta-list {
    gap: 15px;
}

.post-block-template-large .meta-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}

.post-block-template-large .meta-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* List post templates (Horizontal) */
.post-block-template-list .post-block-list-style-inner {
    display: flex;
    flex-direction: row;
    height: 100%;
}

.post-block-template-list .post-block-media-wrap {
    width: 33%;
    aspect-ratio: 1/1;
    flex-shrink: 0;
}

.post-block-template-list .post-block-content-wrap {
    padding: 15px;
    width: 67%;
}

.post-block-template-list .post-item-title .post-title {
    font-size: 15px;
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Large text left list */
.post-block-template-list-large .post-block-list-style-inner {
    display: flex;
    flex-direction: row;
}

.post-block-template-list-large .post-block-content-wrap {
    width: 65%;
    padding: 20px;
}

.post-block-template-list-large .post-block-media-wrap {
    width: 35%;
    aspect-ratio: 4/3;
}

.post-block-template-list-large .post-item-title .post-title {
    font-size: 18px;
}

/* Counter Template (Numbered) */
.post-block-template-counter {
    border: none;
    background: transparent;
    padding: 10px 0;
}
.post-block-template-counter:hover {
    transform: none;
    box-shadow: none;
}

.post-block-list-style-inner-counter {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.post-block-number-wrap {
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    color: rgba(67, 83, 243, 0.15);
    font-family: var(--ff-body);
}

.post-block-template-counter .post-block-content-wrap {
    padding: 0;
}

.post-block-template-counter .post-item-title .post-title {
    font-size: 14px;
    margin-bottom: 5px;
}

/* Section dividers */
.section-divider {
    height: 1px;
    background-color: var(--border);
    margin: 20px 0;
    width: 100%;
}

/* Divider lines from theme */
.elementor-divider {
    padding: 10px 0;
    display: flex;
}
.elementor-divider-separator {
    width: 100%;
    border-top: 1px solid var(--border);
}

/* Titles styled */
.kalliope-title.section-title {
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.kalliope-title.section-title h2.title-block {
    font-size: 20px;
    font-weight: 700;
    text-transform: capitalize;
    padding-bottom: 10px;
    position: relative;
}

.kalliope-title.section-title h2.title-block::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
}

/* Spotlight Section dark BG override */
.dark-mode-bg {
    background-color: #0d0f19 !important;
    padding: 60px 0;
    margin: 40px 0;
    color: #ffffff;
}

.dark-mode-bg h1, .dark-mode-bg h2, .dark-mode-bg h3, .dark-mode-bg h4 {
    color: #ffffff;
}

.dark-mode-bg .post-block-style-wrapper {
    background-color: #171a2b;
    border-color: #272a3e;
}
.dark-mode-bg .post-block-style-wrapper:hover {
    border-color: transparent;
}
.dark-mode-bg .post-meta-author-box a {
    color: #ffffff;
}
.dark-mode-bg .section-divider {
    background-color: #272a3e;
}

/* --- VIDEO OVERLAYS --- */
.video-play-icon-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.video-play-btn {
    width: 55px;
    height: 55px;
    background-color: #ffffff;
    color: var(--primary) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.video-play-btn:hover {
    transform: scale(1.1);
    background-color: var(--primary);
    color: #ffffff !important;
}

/* Small lists for video */
.post-block-template-video-small .post-block-media-wrap {
    aspect-ratio: 16/9;
}
.post-block-template-video-small .video-play-btn {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

/* --- SLICK OVERRIDES --- */
.slide-arrow-left, .slide-arrow-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    background-color: var(--paper);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.slide-arrow-left {
    left: -22px;
}

.slide-arrow-right {
    right: -22px;
}

.slide-arrow-left:hover, .slide-arrow-right:hover {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.theme-main-carousel {
    position: relative;
    padding: 0 10px;
}

.theme-main-carousel .slick-slide {
    padding: 0 10px;
}

/* --- SIDEBAR & WIDGETS --- */
.blog-sidebar {
    padding-left: 20px;
}

.blog-sidebar .widget {
    background-color: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 30px;
}

.blog-sidebar .widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    border-left: 3px solid var(--primary);
    padding-left: 12px;
}

.blog-sidebar .widget ul {
    list-style: none;
}

.blog-sidebar .widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

.blog-sidebar .widget ul li:last-child {
    border-bottom: none;
}

/* --- SINGLE POST --- */
.single-post-header {
    margin-bottom: 30px;
    text-align: center;
}

.single-post-header .post-category-box {
    margin-bottom: 15px;
}

.single-post-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 15px;
}

.single-post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: var(--text-muted);
}

.single-featured-image {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 40px;
}

.single-featured-image img {
    width: 100%;
}

.post-content-body {
    font-size: 16px;
    line-height: 1.8;
}

.post-content-body p {
    margin-bottom: 25px;
}

.post-content-body blockquote {
    padding: 20px 30px;
    border-left: 4px solid var(--primary);
    background-color: var(--border);
    font-size: 18px;
    font-style: italic;
    font-weight: 500;
    margin: 30px 0;
}

/* Tags in single post */
.post-tags-wrap {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.post-tags-wrap a {
    padding: 5px 12px;
    background-color: var(--border);
    font-size: 12px;
    border-radius: 4px;
    font-weight: 500;
}

.post-tags-wrap a:hover {
    background-color: var(--primary);
    color: #ffffff;
}

/* Author Box */
.theme_author_box {
    display: flex;
    gap: 20px;
    background-color: var(--paper);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: var(--radius);
    margin: 40px 0;
}

.author_avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author_content h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.author_content p {
    font-size: 13px;
    color: var(--text-muted);
}

/* --- FOOTER AREA --- */
.liber-footer {
    background-color: #0b0d17;
    color: #94a3b8;
    padding: 60px 0 30px;
    border-top: 1px solid #1e293b;
}

.liber-footer h3 {
    color: #ffffff;
}

.liber-footer .footer-overview-text {
    font-size: 14px;
    line-height: 1.7;
    margin: 20px 0;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #1e293b;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary);
}

.footer-widget h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 25px;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul li a {
    font-size: 14px;
    color: #94a3b8;
}

.footer-widget ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-newsletter h3 {
    font-size: 16px;
    margin-bottom: 20px;
}

.subscribe-input {
    display: flex;
    border: 1px solid #1e293b;
    border-radius: 30px;
    padding: 3px;
    background-color: #121524;
}

.subscribe-input input[type="email"] {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 8px 15px;
    color: #ffffff;
    outline: none;
    font-family: var(--ff-body);
    font-size: 13px;
}

.subscribe-button {
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition);
}

.subscribe-button:hover {
    background-color: var(--primary-hover);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

/* --- SCROLL TO TOP --- */
.scrolltotop {
    position: fixed;
    bottom: 30px;
    right: -50px;
    width: 44px;
    height: 44px;
    background-color: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 99;
}

.scrolltotop.active {
    right: 30px;
}

.scrolltotop:hover {
    background-color: #ffffff;
    color: var(--primary);
}

/* --- RESPONSIVE GRIDS (BOOTSTRAP ADAPTATIONS) --- */
@media (max-width: 991px) {
    .theme-navigation-wrap {
        display: none !important;
    }
    .tp-offcanvas-area {
        width: 100%;
        left: -100%;
    }
    .tp-offcanvas-area.active {
        left: 0;
    }
    .blog-sidebar {
        padding-left: 0;
        margin-top: 40px;
    }
    .header-right-wrapper .subscribe-btn {
        display: none;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
