/*
	Theme Name:  Your Website
	Description: Custom child theme for the <a href="http://genesistheme.com">Genesis Framework</a>.
	Author:      Bill Erickson
	Author URI:  https://www.billerickson.net
	Version:     1.0.0
	License:     GPL-2.0+
	License URI: http://www.gnu.org/licenses/gpl-2.0.html
	Template:    genesis
*/

/*
BEFORE MODIFYING THIS THEME:
Please read the instructions here (private repo): https://github.com/billerickson/EA-Starter/wiki
Devs, contact me if you need access
*/
/* Fix oversized icons - Genesis Child Theme */
.site-container img.icon,
.site-container svg.icon,
.site-container [class*="icon"] img {
    max-width: 24px !important;
    max-height: 24px !important;
    width: auto !important;
    height: auto !important;
}

/* Additional responsive styles */
@media (max-width: 1024px) {
    .hero-section {
        margin: 40px auto;
    }
    
    .content-grid {
        margin: 60px auto;
    }
}

/* Print styles */
@media print {
    .search-section,
    .category-nav {
        display: none;
    }
    
    .content-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Custom Homepage Styles for Genesis */
.custom-homepage.genesis-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.custom-homepage.genesis-custom .search-section {
    margin-bottom: 40px;
    text-align: center;
}

.custom-homepage.genesis-custom .search-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.custom-homepage.genesis-custom .search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 25px 0 0 25px;
    font-size: 16px;
    outline: none;
}

.custom-homepage.genesis-custom .search-button {
    padding: 12px 30px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.custom-homepage.genesis-custom .search-button:hover {
    background-color: #005a87;
}

/* Navigation Tabs */
.custom-homepage.genesis-custom .nav-tabs {
    margin-bottom: 40px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.custom-homepage.genesis-custom .tabs-container {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.custom-homepage.genesis-custom .tab {
    padding: 10px 25px;
    cursor: pointer;
    color: #666;
    font-weight: 500;
    position: relative;
    font-size: 16px;
}

.custom-homepage.genesis-custom .tab.active {
    color: #0073aa;
    font-weight: bold;
}

.custom-homepage.genesis-custom .tab.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0073aa;
}

/* Homepage Content Layout */
.custom-homepage.genesis-custom .homepage-content {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

/* Sidebar */
.custom-homepage.genesis-custom .sidebar {
    width: 200px;
    flex-shrink: 0;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.custom-homepage.genesis-custom .sidebar-section {
    margin-bottom: 30px;
}

.custom-homepage.genesis-custom .sidebar-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Main Content */
.custom-homepage.genesis-custom .main-content {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Content Cards */
.custom-homepage.genesis-custom .content-card.genesis-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.custom-homepage.genesis-custom .content-card.genesis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.custom-homepage.genesis-custom .card-title {
    font-size: 22px;
    color: #222;
    margin-bottom: 10px;
    font-weight: 700;
}

.custom-homepage.genesis-custom .card-subtitle {
    font-size: 18px;
    color: #0073aa;
    margin-bottom: 15px;
    font-weight: 600;
}

.custom-homepage.genesis-custom .card-text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
}

.custom-homepage.genesis-custom .highlighted-text {
    background-color: #e7f5ff;
    padding: 12px 15px;
    border-radius: 6px;
    font-weight: bold;
    color: #0056b3;
    border-left: 4px solid #339af0;
    margin-top: 15px;
    font-size: 16px;
}

.custom-homepage.genesis-custom .read-more-btn {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.custom-homepage.genesis-custom .read-more-btn:hover {
    background-color: #005a87;
}

/* Responsive Design */
@media (max-width: 768px) {
    .custom-homepage.genesis-custom .homepage-content {
        flex-direction: column;
    }
    
    .custom-homepage.genesis-custom .sidebar {
        width: 100%;
        display: flex;
        justify-content: space-around;
        margin-bottom: 20px;
        padding: 15px;
    }
    
    .custom-homepage.genesis-custom .sidebar-section {
        margin-bottom: 0;
    }
    
    .custom-homepage.genesis-custom .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .custom-homepage.genesis-custom .tabs-container {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .custom-homepage.genesis-custom .tab {
        padding: 8px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .custom-homepage.genesis-custom .search-container {
        flex-direction: column;
    }
    
    .custom-homepage.genesis-custom .search-input,
    .custom-homepage.genesis-custom .search-button {
        border-radius: 5px;
        width: 100%;
        margin-bottom: 10px;
    }
}

// Add custom styles for home page
add_action( 'wp_enqueue_scripts', 'custom_homepage_styles' );
function custom_homepage_styles() {
    if ( is_page_template( 'home-custom.php' ) ) {
        wp_enqueue_style( 'custom-homepage', get_stylesheet_directory_uri() . '/css/custom-homepage.css' );
    }
}

/* मुख्य कंटेंट बॉक्स स्टाइल */
.content-box-wrapper {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 20px 0;
    padding: 25px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

/* पतली लाइन इफेक्ट के लिए अतिरिक्त स्टाइल */
.content-box-wrapper::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border: 1px solid #d0d0d0;
    border-radius: 9px;
    pointer-events: none;
}

/* पोस्ट/पेज टाइटल के लिए स्टाइल */
.content-box-wrapper h1.entry-title {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* मेटा इन्फो स्टाइल */
.content-box-wrapper .entry-meta {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ecf0f1;
}

/* कंटेंट के अंदर की स्टाइल */
.content-box-wrapper .entry-content {
    line-height: 1.7;
    color: #34495e;
}

/* नोट बॉक्स के लिए */
.content-box-wrapper .note-box {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 12px 15px;
    margin: 15px 0;
    font-style: italic;
    border-radius: 0 4px 4px 0;
}

/* रिस्पॉन्सिव डिज़ाइन */
@media (max-width: 768px) {
    .content-box-wrapper {
        padding: 15px;
        margin: 10px 0;
    }
}

