/**
Theme Name: Astra Harmony Dance
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-harmony-dance
Template: astra
*/

/* Globals */
:root {
    --primary-color: var(--e-global-color-astglobalcolor0);
    --secondary-color: var(--e-global-color-astglobalcolor1);
    --dark-color: var(--e-global-color-astglobalcolor2);
    --light-color: var(--e-global-color-astglobalcolor4);
    --hd-dark: #111111;
    --hd-gray: #333333;
    --hd-text: #ffffff;
}

body {
    font-style: italic;
}


.dance-swiper-button {
    font-style: normal;
}

/* Footer color override for front page */
.home .site-footer {
    background-color: #140200 !important;
}

/* Sticky header */

/* Base Sticky Header Styles */
.site-header {
    position: sticky; /* or fixed, depending on your layout preference */
    top: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: rgba(0,0,0,0.1) 0px 2px 20px -1px;
    transition: transform 0.3s ease-in-out; /* Smooths the hiding/showing */
}


/* The Hiding Class */
.site-header.header-hidden {
    transform: translateY(-100%); /* Moves the header completely out of view */
}

/* Ensure admin bar doesn't overlap if logged in */
body.admin-bar .site-header {
    top: 32px;
}
body.admin-bar .site-header.header-hidden {
    transform: translateY(calc(-100% - 32px));
}

/* Remove dotted outline */
a:focus, button:focus, input:focus, textarea:focus {
    outline: none;
}

/* Form styles */
.dance-form-input { 
        width: 100%; 
        padding: 12px; 
        border: 1px solid #ddd; 
        border-radius: 6px; 
        font-size: 15px;
    }

.dance-form-wrapper {
    max-width: 100%;
    margin: auto;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    background: linear-gradient(54deg, var(--dark-color), #361e14);
    backdrop-filter: blur(10px);
}

.light-theme .dance-form-wrapper {
    border: 0px solid #ccc;
    border-radius: 12px;
    background: rgba(95, 57, 32, 0.1);
}

.person-entry { 
    padding: 15px;
    margin-bottom: 15px;
    border-left: 3px solid var(--e-global-color-astglobalcolor0);
    background: rgba(0,0,0,0.1); /* Slight background to distinguish the block */
    border-radius: 0 10px 10px 0;
}

.light-theme .person-entry {
    background: rgba(255,255,255,0.5);
}

.dance-form-input { 
    width: 100% !important;
    padding: 8px !important;
    border: 0px !important;
    border-radius: 16px !important; 
    background: #ffffff2e !important;
}

.light-theme .dance-form-input {
    background: #fff !important;
}

/* When selected */
.dance-form-input:focus {
    background-color: #ffffff49 !important;
}

.light-theme .dance-form-input:focus {
    background-color: #fff !important;
}

.dance-form-input::placeholder {
    color: #ffffff7b !important;
}

.light-theme .dance-form-input::placeholder {
    color: #818181 !important;
}

.dance-form-label { 
    display: block; 
    font-weight: bold;
    margin-bottom: 5px;
}

.dance-form-text {
    color: white !important;
    font-style: italic;
}

.light-theme .dance-form-text {
    color: #333 !important;
}

.dance-form-wrapper #submit_btn {
    background: var(--light-color); color: black; padding: 12px 25px; border: 1px solid #0000001d; cursor: pointer;
}

.light-theme .dance-form-wrapper #submit_btn {
    background: #fff; color: #000; padding: 12px 25px; border: none; cursor: pointer;
}

/* ------------- NEWS & HISTORY ------------- */

/* --- Wrapper & Columns --- */
.harmony-split-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.harmony-column {
    display: flex;
    flex-direction: column;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.harmony-split-wrapper .section-title {
    font-weight: bold;
    color: var(--primary-color);
    font-style: italic;
    margin: 0;
    line-height: 1;
    margin-bottom: 40px;
}

/* --- LEFT COL: NEWS STYLES --- */
.harmony-news-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- FEATURED ITEM (Updated for Side-by-Side) --- */
.news-item.featured {
    display: flex; /* Horizontal Layout */
    flex-direction: row;
    background: linear-gradient(54deg, var(--light-color), #fff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(62, 39, 35, 0.15);
    transition: transform 0.3s;
    min-height: 220px; /* Ensure nice height */
}

.news-item.featured:hover {
    transform: translateY(-5px);
}

.news-thumb-feat {
    display: block;
    width: 40%; /* Image takes 40% width */
    height: auto; /* Stretch height */
    min-height: 200px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.news-content {
    padding: 25px;
    width: 60%; /* Text takes 60% width */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center text vertically */
}

.news-date {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.85rem;
    text-transform: uppercase;
}
.news-title {
    margin: 10px 0;
    font-size: 1.3rem; /* Slightly adjusted for side-layout */
    line-height: 1.3;
}
.news-title a { color: var(--dark-color); text-decoration: none; }
.news-excerpt { color: #666; font-size: 0.95rem; }

/* --- SMALL NEWS ITEMS BOX --- */
.news-sub-list {
    background: linear-gradient(54deg, var(--light-color), #fff);
    border-radius: 12px;
    padding: 15px 25px;
    box-shadow: 0 5px 20px rgba(62, 39, 35, 0.15);
    display: flex;
    flex-direction: column;
}

.news-content-small {
    padding-top: 4.75px;
    padding-bottom: 4.75px;
}

.news-item.small {
    padding: 15px 0;
    border-bottom: 1px solid #aaaaaa7b;
}
.news-item.small:first-child { padding-top: 0; }
.news-item.small:last-child {
    border-bottom: none;
    padding-bottom: 5px;
}
.news-title-small {
    margin: 5px 0 0 0;
    font-size: 1rem;
    font-weight: 600;
}
.news-title-small a { color: #3E2723; text-decoration: none; }
.news-date-small { font-size: 0.75rem; color: #888; }

/* --- HISTORY COLUMNS --- */
.history-list-wrapper {
    background: linear-gradient(54deg, var(--light-color), #fff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(62, 39, 35, 0.15);
    padding-bottom: 10px;
}

.history-hero {
    position: relative;
    border-bottom: 1px solid #aaaaaa7b;
}

.history-hero-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    text-decoration: none;
}
.history-hero-thumb::before {
    content: '';
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.3);
    transition: background 0.3s;
}
.history-hero-thumb:hover::before { background: rgba(0,0,0,0.5); }

.play-icon-hero {
    font-size: 3rem;
    color: #fff;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transition: transform 0.3s;
}
.history-hero-thumb:hover .play-icon-hero { transform: scale(1.1); }

.history-hero-content { padding: 20px; }
.history-year-hero { color: var(--primary-color); font-weight: 800; font-size: 0.9rem; }
.history-title-hero { margin: 5px 0 0 0; font-size: 1.2rem; line-height: 1.3; }
.history-title-hero a { color: #3E2723; text-decoration: none; }

.history-list { padding: 0 20px; }
.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #aaaaaa7b;
}
.history-item:last-child { border-bottom: none; }

.history-year {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary-color);
    width: 60px;
    flex-shrink: 0;
}
.history-details { flex-grow: 1; padding: 0 15px; }
.history-name { font-weight: 600; color: #3E2723; font-size: 1.05rem; display: block; }
.history-details:hover { color: var(--primary-color); }

.history-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}
.history-play-btn:hover { background: var(--primary-color); color: #fff; transform: scale(1.1); }

.history-read-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F08C00;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.2rem;
}

/* --- BUTTONS --- */
.harmony-btn-outline {
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none !important;
    font-weight: bold;
    text-align: center;
    border-radius: 16px;
    transition: all 0.3s;
    margin-top: 15px; 
}
.harmony-btn-outline:hover { background: var(--primary-color); color: #fff; text-decoration: none !important; }

/* --- RESPONSIVE --- */
@media (max-width: 767px) {
    .harmony-split-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .harmony-split-wrapper .section-title {
        text-align: center;
    }
    .harmony-split-icon {
        align-self: center;
    }
}

/* v------v BREADCRUMBS v------v */

/* Container */
.dance-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: sans-serif;
    font-size: 16px;
    color: #fff; /* Default text color */
    margin-bottom: 0px;
}

.dance-breadcrumbs span {
    font-family: 'Cabin';
}

/* Links */
.dance-breadcrumbs a {
    color: #fff;
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}

/* Hover effect (Underline like reference) */
.dance-breadcrumbs a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

/* The Home Icon */
.breadcrumb-home-icon {
    display: block;
    width: 16px;
    height: 16px;
    /* Stroke color is handled inline in PHP (#e65100), but you can override here if needed */
}

/* The Slash Separator */
.dance-breadcrumb-sep {
    color: var(--dark-color); /* Muted gray */
    font-weight: 300;
}

.light-theme .dance-breadcrumb-sep {
    color: #d1d1d1 !important; /* Darker gray for better contrast on light background */
}

/* The Current Page (Last item) */
.dance-breadcrumb-current {
    font-weight: normal; /* Slightly bolder */
    color: var(--dark-color);
    font-size: 14px;
}

.light-theme .dance-breadcrumb-current {
    color: #f5f5f5 !important; /* Darker gray for better contrast on light background */
}

.dance-breadcrumb-link {
    color: var(--dark-color) !important;
    font-weight: bold !important;
    font-size: 14px !important;
}

.light-theme .dance-breadcrumb-link {
    color: #ececec !important;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .dance-breadcrumbs {
        font-size: 12px;
        flex-wrap: wrap; /* Allow wrapping on small screens */
    }
}

/* ----- Course Box Shadow ----- */
.course-box .e-con-full {
    box-shadow: 0px 3px 3px 0px rgb(0 0 0 / 5%);
}

.course-infobox {
    text-decoration: none !important;
    
    /* THE KEY FIX: A warm, diffused shadow */
    /* This creates depth without darkness */
    box-shadow: 0 10px 30px -10px rgba(100, 50, 0, 0.15) !important;
    
    /* Smooth transition for hover effects */
    border: 1px solid var(--primary-color) !important;
}

/* Optional: Add a lift effect on hover to make it feel interactive */
.course-infobox:hover {
    border-color: var(--primary-color) !important;

}

/* Video */

/* --- Video Player Styling --- */

.elementor-video-wrapper {
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    width: 100%; /* Ensure wrapper fills container */
}   

.elementor-video-wrapper iframe {
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(100, 50, 0, 0.15) !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    
    /* Default (Desktop) Width */
    width: 75% !important; 
    transition: width 0.3s ease; /* Smooth transition on resize */
}

/* Background Video */

 .video-bg-container {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 0; /* Sit behind the text */
}

.dynamic-video-bg-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.dynamic-video-bg-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes it crop nicely like a background image */
    display: block;
    object-position: top center;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Wordpress Video Controls */
/* Fix WordPress Video Player Control Buttons - Complete Reset & Centered */
.mejs-container .mejs-controls .mejs-button button {
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    
    /* Strip away global Elementor button sizing */
    padding: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    
    /* Enforce the native MediaElement.js icon size */
    width: 20px !important; 
    height: 20px !important;
}

/* Ensure hover states remain clean */
.mejs-container .mejs-controls .mejs-button button:hover,
.mejs-container .mejs-controls .mejs-button button:focus {
    background-color: transparent !important;
}

/* Fix spacing and vertical alignment */
.mejs-container .mejs-controls .mejs-button {
    margin: 0 4px !important; /* Keeps the horizontal spacing */
    margin-top: 0px !important;
}

/* --- Responsive Adjustments --- */

/* Tablet: Make it a bit wider */
@media (max-width: 1024px) {
    .elementor-video-wrapper iframe {
        width: 90% !important;
    }
}

/* Mobile: Full width */
@media (max-width: 768px) {
    .elementor-video-wrapper iframe {
        width: 100% !important;
        box-shadow: 0 5px 15px -5px rgba(100, 50, 0, 0.15) !important; /* Softer shadow */
    }
}

/* Picture repositions */

#predtanecni img {
    object-position: 50% 30% !important;
}

#tanecni img {
    object-position: 50% 15% !important;
}

#dospeli img {
    object-position: 50% 20% !important;
}

/* Astra posts page */

.type-post .ast-post-format-:not(.single-layout-1) {
    background: linear-gradient(54deg, #eee7e0, rgba(255, 255, 255, 0.355)) !important;
    border: 1px solid #ffffff7e !important;
    box-shadow: 0px 3px 3px 0px rgb(0 0 0 / 10%) !important;
}

.type-post .ast-post-format-:not(.single-layout-1) .entry-title a {
    color: var(--primary-color) !important;
}

.type-post .ast-post-format-:not(.single-layout-1) .post-thumb img {
    object-fit: cover !important;
}

/* Hero video background */

/* --- FIX: Hero Section on Mobile Landscape --- */
/* Target screens that are sideways (landscape) and short (mobile) */
@media (max-height: 500px) and (orientation: landscape) {

    /* 1. Force the section to be TALLER than the screen */
    /* Replace '.elementor-section-height-full' with your specific hero section class if needed */
    .top-section {
        min-height: 90vh !important;
	margin-top: 0px !important;
    }

    /* 2. Ensure the video background stretches to fill this new height */
    .elementor-background-video-container {
        height: 100% !important;
    }

    	.top-section-heading {
		margin-top: 0px !important;
	}
}

/* --- Hamburger menu fixes --- */

.ast-menu-toggle, .main-header-menu-toggle {
    box-shadow: none;
    border: none !important;
    outline: none !important;
    background: none !important;
}
