/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* =============================================================================
   STICKY FOOTER FIX - Ensures footer stays at bottom
   ============================================================================= */

/* Set full viewport height */
html {
    height: 100%;
}

/* Main body flexbox container - CRITICAL FIX */
body {
    min-height: 100vh;
    display: flex !important;
    flex-direction: column !important;
    margin: 0;
    padding: 0;
}

/* Elementor location header shouldn't grow */
.elementor-location-header {
    flex-shrink: 0;
}

/* Main content area MUST grow to fill available space */
#content,
.site-content,
main.site-main,
main#content {
    flex: 1 0 auto !important;
    width: 100%;
}

/* Footer stays at bottom - NO margin-top auto needed with flex */
#site-footer,
footer.site-footer,
.site-footer,
.elementor-location-footer {
    flex-shrink: 0 !important;
    margin-top: 0 !important;
    position: relative !important;
    width: 100%;
}

/* Ensure all elementor sections take proper space */
.elementor-section {
    position: relative;
}

/* Fix for single course pages specifically */
body.single-courses {
    min-height: 100vh;
}

/* Ensure Tutor course content doesn't have fixed heights */
.tutor-course-details-content,
.tutor-container,
.tutor-course-content-wrapper {
    min-height: auto !important;
    height: auto !important;
}

/* Ensure main content wrapper exists and grows */
body > #content,
body > main,
body > .site-content {
    flex: 1 0 auto !important;
}

/* Additional specificity for Elementor pages */
.elementor-page body {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}

/* Fix any wrapper that might be interfering */
#page,
.site {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* =============================================================================
   LOGIN BUTTON STYLES - Mobile Icon Only
   ============================================================================= */

/* Icon styling */
.tutor-user-btn .tutor-user-icon {
    display: none;
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Desktop: Show name, hide icon */
.tutor-user-btn .tutor-user-name {
    display: inline;
}

/* Mobile: Hide name, show icon */
@media (max-width: 768px) {
    .tutor-user-btn .tutor-user-name {
        display: none !important;
    }

    .tutor-user-btn .tutor-user-icon {
        display: inline-block !important;
    }
}

/* =============================================================================
   INSTRUCTOR BIO STYLES
   ============================================================================= */

.tutor-instructor-bio {
    line-height: 1.6;
    color: #374151;
}

.tutor-instructor-bio p {
    margin-bottom: 1em;
}

.tutor-instructor-bio p:last-child {
    margin-bottom: 0;
}
