/*
 Theme Name:   CitadelaWP Child
 Theme URI:    http://www.ait-themes.club/citadelawp
 Description:  CitadelaWP Child Theme
 Author:       AitThemes
 Author URI:   http://www.ait-themes.club
 Template:     citadelawp
 Version:      1.0.1
 License:      GPLv2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  citadelawp-child
*/

/* 1. Typography Imports (MUST BE FIRST) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Fredoka:wght@400;600&display=swap');

/* 2. Global Font Definitons (Refined to avoid icons) */
body,
p,
a,
li,
strong,
b,
em {
    font-family: 'Outfit', sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.service-title,
.entry-title,
.site-title {
    font-family: 'Fredoka', sans-serif !important;
}

/* 3. Global Styling Fixes */
/* Global background pattern */
body {
    background-image: url('images/bg_pattern.png') !important;
    background-repeat: repeat;
    background-attachment: fixed;
}

#page,
.site,
.site-content {
    background-color: transparent !important;
}

/* Service Cards (Tiles) High-End Look */
.citadela-block-service {
    background-color: #f4fcf9 !important;
    /* Soft tone */
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    /* Visible thin border */
    overflow: hidden;
    display: flex;
    /* Flex layout for equal height content */
    flex-direction: column;
    flex-grow: 1;
}

/* White background for Location tiles inside grey groups */
.wp-block-group .citadela-block-service {
    background-color: #ffffff !important;
}

.wp-block-column {
    display: flex;
    flex-direction: column;
}

.citadela-block-service .service-content {
    flex-grow: 1;
}

.citadela-block-service:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.citadela-block-service .service-header {
    background: transparent !important;
    padding-top: 25px;
}

/* Titles */
.citadela-block-service .service-title {
    font-weight: 400 !important;
    font-size: 1.55em !important;
    color: #333 !important;
    text-transform: none !important;
    min-height: 3.5em;
    /* Layout alignment */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 4. Registration/Login Buttons (Modern) */
.wp-block-button__link[href*="user.gyermekfejlesztes.hu"] {
    border: none !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-size: 0.9em !important;
    font-weight: 600 !important;
    padding: 15px 35px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    border-radius: 6px !important;
}

/* Signup - Green */
.wp-block-button__link[href*="signup"] {
    background: linear-gradient(135deg, #299d83 0%, #177f6b 100%) !important;
}

.wp-block-button__link[href*="signup"]:hover {
    background: linear-gradient(135deg, #2eb395 0%, #1a917a 100%) !important;
    box-shadow: 0 8px 25px rgba(41, 157, 131, 0.4) !important;
}

/* Login - Blue */
.wp-block-button__link[href*="login"] {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
}

.wp-block-button__link[href*="login"]:hover {
    background: linear-gradient(135deg, #5dade2 0%, #3498db 100%) !important;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4) !important;
}

/* Fix inner strong tag usually making it too thick */
.wp-block-button__link[href*="user.gyermekfejlesztes.hu"] strong {
    font-weight: 600 !important;
}

/* --- REGISTRATION BLOCK STYLING --- */
/* Registration Block Container - Dark Theme */
.wp-block-column:has(.wp-block-button__link[href*="user.gyermekfejlesztes.hu"]) {
    background-color: #34495e !important;
    /* Dark Slate Blue */
    padding: 30px !important;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Headings inside the block - White */
.wp-block-column:has(.wp-block-button__link[href*="user.gyermekfejlesztes.hu"]) h5,
.wp-block-column:has(.wp-block-button__link[href*="user.gyermekfejlesztes.hu"]) p {
    color: #ffffff !important;
}

/* Override Login Button to White */
.wp-block-button__link[href*="login"] {
    background: #ffffff !important;
    color: #34495e !important;
    /* Matches block bg */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.wp-block-button__link[href*="login"]:hover {
    background: #f0f0f0 !important;
    color: #2c3e50 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}

/* --- NEWSLETTER BLOCK STYLING --- */

/* Fix Font */
.swp-form-cont input,
.swp-form-cont label,
.swp-form-cont .field-submit {
    font-family: 'Outfit', sans-serif !important;
}

/* Style Inputs to match modern theme */
.swp-form-cont input[type="text"],
.swp-form-cont input[type="email"] {
    padding: 12px 15px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    background: #ffffff !important;
    margin-bottom: 8px !important;
    /* Reduced Spacing */
}

/* Submit Button - Match Registration Button */
.swp-form-cont .field-submit {
    background: linear-gradient(135deg, #299d83 0%, #177f6b 100%) !important;
    border: none !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-size: 0.9em !important;
    font-weight: 600 !important;
    padding: 15px 35px !important;
    box-shadow: 0 4px 15px rgba(41, 157, 131, 0.4) !important;
    transition: all 0.3s ease !important;
    border-radius: 6px !important;
    width: 100% !important;
    /* Make it full width like inputs */
    cursor: pointer !important;
}

.swp-form-cont .field-submit:hover {
    background: linear-gradient(135deg, #2eb395 0%, #1a917a 100%) !important;
    box-shadow: 0 8px 25px rgba(41, 157, 131, 0.4) !important;
    transform: translateY(-2px);
}

/* Newsletter Title Sizing */
.citadela-block-custom-container:has(.swp-form-cont) h2 {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #34495e !important;
    margin-bottom: 25px !important;
}

/* --- ARTICLE/ITEM TILES (Terapeutak, etc) --- */
.citadela-article .item-content {
    background-color: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* COLORING ITEMBCK IN LIST */
.ctdl-directory-similar-items article,
.ctdl-directory-items-list article,
.ctdl-directory-search-results article,
.ctdl-authors-list article {
    background: #ffffff;
}

/* COLORING ITEMBCK IN LIST */

/* --- MAIN NAVIGATION TYPOGRAPHY --- */
#site-navigation .menu-item a {
    font-size: 1.3em !important;
    font-weight: 600 !important;
}

/* --- CUSTOM WP-GYFHU CLASSES --- */

/* Widget Container */
.wp-gyfhu-widget-box {
    background-color: #34495e !important;
    padding: 30px !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    color: #ffffff !important;
}

/* Widget Title */
.wp-gyfhu-widget-title {
    color: #ffffff !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}

/* Base Button Style */
.wp-gyfhu-btn {
    display: inline-block !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    padding: 15px 35px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-weight: 600 !important;
    font-size: 0.9em !important;
    border: none !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
}

.wp-gyfhu-btn:hover {
    transform: translateY(-2px);
}

/* Primary Button (Signup - Green) */
.wp-gyfhu-btn-primary {
    background: linear-gradient(135deg, #299d83 0%, #177f6b 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(41, 157, 131, 0.4) !important;
}

.wp-gyfhu-btn-primary:hover {
    background: linear-gradient(135deg, #2eb395 0%, #1a917a 100%) !important;
    box-shadow: 0 8px 25px rgba(41, 157, 131, 0.4) !important;
}

/* Secondary Button (Login - White) */
.wp-gyfhu-btn-secondary {
    background: #ffffff !important;
    color: #34495e !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.wp-gyfhu-btn-secondary:hover {
    background: #f0f0f0 !important;
    color: #2c3e50 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}

/* Mobile App Widget */
.wp-gyfhu-mobile-app {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background-color: #f4fcf9;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.wp-gyfhu-mobile-img {
    flex: 0 0 35%;
    max-width: 250px;
}

.wp-gyfhu-mobile-img img {
    width: 100%;
    height: auto;
    display: block;
}

.wp-gyfhu-mobile-content {
    flex: 1;
}

.wp-gyfhu-mobile-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #34495e;
    font-family: 'Fredoka', sans-serif;
}

.wp-gyfhu-mobile-text {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
    font-family: 'Outfit', sans-serif;
}

.wp-gyfhu-store-badges {
    display: flex;
    gap: 15px;
}

.wp-gyfhu-store-badge img {
    height: 48px;
    width: auto;
    transition: transform 0.2s ease;
}

.wp-gyfhu-store-badge img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .wp-gyfhu-mobile-app {
        flex-direction: column;
        text-align: center;
    }

    .wp-gyfhu-store-badges {
        justify-content: center;
    }
}

/* Reverse Modifier (Content Left, Image Right) */
.wp-gyfhu-reverse {
    flex-direction: row-reverse;
    background-color: #ffffff;
    /* White background for contrast */
}

.wp-gyfhu-reverse .wp-gyfhu-mobile-content {
    padding-right: 0;
    padding-left: 20px;
}

/* Professionals Category Grid */
.wp-gyfhu-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.wp-gyfhu-category-tile {
    background-color: #f8f9fa !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
    border-radius: 16px !important;
    padding: 30px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02) !important;
    min-height: 100% !important;
}

.wp-gyfhu-category-tile:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
    background-color: #ffffff !important;
}

.wp-gyfhu-category-icon {
    font-size: 80px !important;
    margin-bottom: 25px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100px !important;
    width: 100px !important;
}

/* Iconic Colors */
.wp-gyfhu-category-tile:nth-child(1) .wp-gyfhu-category-icon {
    color: #2ecc71 !important;
}

/* Mozgás - Green */
.wp-gyfhu-category-tile:nth-child(2) .wp-gyfhu-category-icon {
    color: #3498db !important;
}

/* Pszichológia - Blue */
.wp-gyfhu-category-tile:nth-child(3) .wp-gyfhu-category-icon {
    color: #f1c40f !important;
}

/* Tanulás - Yellow/Orange */
.wp-gyfhu-category-tile:nth-child(4) .wp-gyfhu-category-icon {
    color: #e74c3c !important;
}

/* Beszéd - Red */
.wp-gyfhu-category-tile:nth-child(5) .wp-gyfhu-category-icon {
    color: #1abc9c !important;
}

/* Alternatív - Teal */
.wp-gyfhu-category-tile:nth-child(6) .wp-gyfhu-category-icon {
    color: #9b59b6 !important;
}

/* Tanárok - Purple */

.wp-gyfhu-category-title {
    font-size: 22px !important;
    font-weight: 700;
    color: #34495e;
    margin-bottom: 15px;
    font-family: 'Fredoka', sans-serif;
    line-height: 1.3;
}

.wp-gyfhu-category-desc {
    font-size: 15px;
    color: #7f8c8d;
    line-height: 1.5;
    margin: 0;
    font-family: 'Outfit', sans-serif;
}

@media (max-width: 992px) {
    .wp-gyfhu-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .wp-gyfhu-category-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer Block */
.wp-gyfhu-footer {
    background-color: transparent !important;
    color: #ecf0f1;
    padding: 0;
    margin-top: 50px;
}

.wp-gyfhu-footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
    width: 80% !important;
    max-width: 100% !important;
    margin: 0 auto;

}

.wp-gyfhu-footer-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wp-gyfhu-footer-column h5 {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

.wp-gyfhu-footer-copyright {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    opacity: 0.8;
    text-transform: uppercase;
}

.wp-gyfhu-footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wp-gyfhu-footer-link {
    color: #ecf0f1;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.wp-gyfhu-footer-link:hover {
    color: #299d83;
    /* Green accent */
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .wp-gyfhu-footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .wp-gyfhu-footer-links {
        align-items: center;
    }
}

/* Remove gap between footer widgets and copyright */
.footer-widgets-area .widget {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.nav-menu-footer {
    display: none !important;
    /* Hide empty menu container */
}

.site-info {
    padding-top: 30px !important;
    padding-bottom: 25px !important;
}

/* Reduce spacing above footer */
#footer-widgets {
    padding-top: 5px !important;
}

/* Statistics Widget */
.wp-gyfhu-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
    margin-bottom: 30px;
}

.wp-gyfhu-stats-item {
    background: #34495e;
    /* Newsletter Dark Blue */
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.wp-gyfhu-stats-item:hover {
    transform: translateY(-5px);
}

.wp-gyfhu-stats-icon {
    font-size: 40px;
    color: #2ecc71;
    /* Lighter Green */
}

.wp-gyfhu-stats-number {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.wp-gyfhu-stats-label {
    font-size: 16px;
    color: #ecf0f1;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

@media (max-width: 992px) {
    .wp-gyfhu-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .wp-gyfhu-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Statistics Button */
.wp-gyfhu-stats-btn-container {
    text-align: center;
    margin-top: 30px;
}

.wp-gyfhu-stats-btn {
    display: inline-block;
    background: linear-gradient(135deg, #299d83 0%, #177f6b 100%) !important;
    /* Match Subscription */
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9em !important;
    /* Match Subscription */
    font-weight: 600 !important;
    /* Match Subscription */
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 15px 35px !important;
    border-radius: 6px !important;
    /* Match Subscription */
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(41, 157, 131, 0.4) !important;
    transition: all 0.3s ease !important;
    width: 60%;
    /* Long button */
    max-width: 500px;
    border: none !important;
}

.wp-gyfhu-stats-btn:hover {
    background: linear-gradient(135deg, #2eb395 0%, #1a917a 100%) !important;
    /* Match Subscription Hover */
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(41, 157, 131, 0.4) !important;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .wp-gyfhu-stats-btn {
        width: 100%;
    }
}

/* Virtual Assistant - Custom Background */
.wp-gyfhu-virtual-assistant {
    background-color: #d1f2eb !important;
    /* Darker Mint Green */
}

/* Reduce Virtual Assistant Image Size */
.wp-gyfhu-virtual-assistant .wp-gyfhu-mobile-img img {
    width: 90% !important;
    margin: 0 auto;
}

@media (max-width: 768px) {

    /* Ensure mobile layout overrides desktop 'reverse' class */
    .wp-gyfhu-mobile-app,
    .wp-gyfhu-mobile-app.wp-gyfhu-reverse {
        flex-direction: column-reverse !important;
    }

    /* Reset paddings for mobile */
    .wp-gyfhu-reverse .wp-gyfhu-mobile-content {
        padding-left: 0 !important;
        margin-bottom: 30px;
    }

    /* FORCE FOOTER WIDGETS OPEN - Fix "..." collapse */
    #footer-widgets,
    #footer-widgets .widget,
    #footer-widgets .widget-content,
    #footer-widgets .wp-block-group,
    #footer-widgets div {
        display: block !important;
        height: auto !important;
        max-height: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        white-space: normal !important;
        text-overflow: clip !important;
        overflow: visible !important;
    }
}