/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/
p:empty{
    display: none;
}
/* polylang */
.language-switcher-dropdown {
    position: relative;
    display: inline-block;
}
.current-language {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 4px;
    user-select: none;
}
.language-dropdown {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: white;
    border: 1px solid #ddd;
    min-width: 150px;
    z-index: 1000;
    margin: 5px 0 0 0;
    padding: 5px 0;
    list-style: none;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.language-switcher-dropdown:hover .language-dropdown {
    display: block;
}
.language-option {
    padding: 0;
}
.language-option a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    text-decoration: none;
    color: #333;
}
.language-option a:hover {
    background: #f5f5f5;
}
.language-option.current a {
    background: #f0f0f0;
    font-weight: bold;
}
.language-flag {
    margin-right: 8px;
}
.dropdown-icon {
    font-size: 0.7em;
    margin-left: 5px;
    vertical-align: middle;
    opacity: 0.7;
}
.current-language:hover .dropdown-icon {
    opacity: 1;
}

/* main css */
:root {
    --icon-blue: #3b82f6;
    --icon-red: #f87171;
    --icon-green: #22c55e;
    --icon-yellow: #eab308;
    --icon-pink: #ec4899;
    --icon-cyan: #06b6d4; 
    
    --primary-red: #dc2626;
    --primary-red-hover: #b91c1c;
}
.icon-circle {
    margin-bottom: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 50%;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
}
.format-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f3f4f6;
    padding: 1rem;
    border-radius: 0.5rem;
}

.format-item svg {
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

/* Form */
.search-box {
    background: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 42rem;
    margin: 0 auto;
}
.search-box input {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    font-size: 1.125rem;
    border: none;
    outline: none;
    color: var(--text-dark);
    border-radius: 0.25rem;
}

.search-box button {
    background-color: var(--primary-red);
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-box button:hover {
    background-color: var(--primary-red-hover);
}
@media (min-width: 768px) {
    .search-box { flex-direction: row; }
}
/* grid responsive   */
@media (max-width: 1024px) {
    .grid-card {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .grid-card {
        grid-template-columns: 1fr;
    }
	.grid-yt-example {
        grid-template-columns: repeat(2, 1fr);
    }
	.grid-step{
        grid-template-columns: 1fr;
    }
}
/* footer */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links a:hover {
    color: var(--primary-red);
}
.footer-links a {
	  font-size: 14px;
    text-decoration: none;
    color: #6b7280;
    transition: color 0.2s;
}
