/*
 Theme Name: Hello Elementor Child
 Theme URI: https://example.com/hello-elementor-child
 Description: A child theme for Hello Elementor.
 Author: Mustafa
 Author URI: https://example.com
 Template: hello-elementor
 Version: 1.0.0
 License: GNU General Public License v2 or later
 License URI: https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: hello-elementor-child
 Tags: child-theme
*/

/* Place your custom CSS below this line */
.success-stories {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.stories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.submit-story-btn {
    background: #C69C6D;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.nav-arrows {
    display: flex;
    gap: 10px;
}

.nav-arrow {
    width: 40px;
    height: 40px;
    border: 1px solid #C69C6D;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
}

.story-categories {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    overflow-x: auto;
}

.category-tab {
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

.category-tab.active {
    color: #C69C6D;
}

.category-tab.active::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #C69C6D;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.story-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.story-image {
    position: relative;
    padding-top: 66.67%;
}

.story-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-content {
    padding: 20px;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    z-index: 1000;
}

.popup-content {
    background: white;
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 8px;
    position: relative;
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.story-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.story-form input,
.story-form select,
.story-form textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.submit-btn {
    background: #C69C6D;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .stories-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
    }
}