:root {
    --color-primary: #ed1d24;
    --color-secondary: #33d9b2;
    --color-accent: #3858e9;
    --color-dark: #1a1a2e;
    --color-light: #f8f9fa;
    
    /* Font families */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --font-accent: 'Playfair Display', serif;
    --font-modern: 'Space Grotesk', sans-serif;
    
    /* Font weights */
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: var(--fw-regular);
    line-height: 1.6;
    color: #333;
}

/* Headings with magical typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: var(--fw-semibold);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: var(--fw-bold);
}

h2 {
    font-size: 2rem;
    font-weight: var(--fw-semibold);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5, h6 {
    font-size: 1rem;
    font-weight: var(--fw-medium);
}

/* Special accent text using Playfair Display */
.accent-text,
.hero-title,
.section-title {
    font-family: var(--font-accent);
    font-weight: var(--fw-semibold);
}

/* Modern text using Space Grotesk */
.modern-text,
.button-text,
.nav-text {
    font-family: var(--font-modern);
}
a{
    transition: all 0.3s ease;
    color: var(--color-primary);
}

a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

/* Responsive font sizes */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.375rem;
    }
}

/* Font utility classes */
.font-primary { font-family: var(--font-primary); }
.font-secondary { font-family: var(--font-secondary); }
.font-accent { font-family: var(--font-accent); }
.font-modern { font-family: var(--font-modern); }

.fw-light { font-weight: var(--fw-light); }
.fw-regular { font-weight: var(--fw-regular); }
.fw-medium { font-weight: var(--fw-medium); }
.fw-semibold { font-weight: var(--fw-semibold); }
.fw-bold { font-weight: var(--fw-bold); }

/* Enhanced text styles */
.text-gradient {
    background: linear-gradient(45deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-glow {
    text-shadow: 0 0 20px rgba(56, 88, 233, 0.5);
}
html body .widget h2,
html body h2.widget-title {
    border-bottom: 4px solid var(--color-primary);
    padding: 15px 0;
    font-family: var(--font-primary);
    font-weight: var(--fw-semibold);
    background: transparent;
    color: var(--color-dark);
    position: relative;
}

html body .widget h2::after,
html body h2.widget-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

html body .widget h2:hover::after,
html body h2.widget-title:hover::after {
    width: 100px;
}

.site-branding.brand-text a{
    color: var(--color-primary);
    font-family: var(--font-accent);
    font-weight: var(--fw-semibold);
    text-decoration: none;
}

.site-branding.brand-text a:hover {
    color: var(--color-accent);
}

.site-description {
    font-family: var(--font-secondary);
    font-weight: var(--fw-regular);
    font-style: italic;
    color: #666;
}

.main-navigation ul li a {
    text-decoration: none;
    font-family: var(--font-modern);
    font-weight: var(--fw-medium);
    color: var(--color-dark);
    transition: all 0.3s ease;
    position: relative;
}

.main-navigation ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--color-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-navigation ul li a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.main-navigation ul li a:hover::after {
    width: 100%;
}
.mg-wrapper {
    padding: 0 10px;
}
.menu-bar-inside {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.elementor-template-full-width .menu-bar {
    margin-bottom: 0;
}
.menu-bar-inside p {
    margin: 0;
    font-size: 14px;
}
.menu-bar-inside .head-logo {
    max-width: 500px;
}
.menu-bar-inside .head-logo {
    max-width: 500px;
}
.menu-bar-inside .head-logo {
    text-align: left;
    padding-top: 5px;
}

.menu-bar-inside h1.site-title {
    font-size: 24px;
}

.mg-grid {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 20px;
    row-gap: 20px;
}
.menu-bar-inside h1.site-title a,
.mg-grid-title a{
    text-decoration: none;
}
@media only screen and (max-width: 767px) {
    .mg-grid {
        display: grid;
        grid-template-columns: auto;
        
    }
}
h2.mg-grid-title {
    font-size: 22px;
}

a.mg-grid-categories {
    font-size: 70%;
    margin-bottom: 5px;
}
.mg-grid-item,
.pagination .nav-links a,
.pagination .nav-links span,
header.page-header.search-header{
    background: #fafafa;
}
header.page-header.search-header {
    text-align: center;
    padding: 15px 10px;
    margin-bottom: 20px;
}
.mg-grid .nx-single-grid-details {
    padding: 20px;
}
nav.navigation.pagination {
    margin-top: 30px;
}
.widget h2,
h2.widget-title{
    font-size: 20px;
}
a.magic-elementor-readmore {
    font-size: 15px;
}

.widget ul li a:hover {
    text-decoration: inherit;
}
h2.mg-grid-title {
    margin-bottom: 1rem;
}