/* Written and developed by Naeime abbasi - WPHelper */
/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= font - start =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: 100;
	src: url('fonts/iranyekanwebthinfanum.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: 300;
	src: url('fonts/iranyekanweblightfanum.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: normal;
	src: url('fonts/iranyekanwebregularfanum.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: 500;
	src: url('fonts/iranyekanwebmediumfanum.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: 600;
	src: url('fonts/iranyekanwebboldfanum.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: 700;
	src: url('fonts/iranyekanwebextraboldfanum.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: 800;
	src: url('fonts/iranyekanwebblackfanum.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: 900;
	src: url('fonts/iranyekanwebextrablackfanum.woff') format('woff'); /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}


 body {
    font-family: 'iranyekan';
	font-weight: normal;   
}
h1,h2,h3,h4,h5,h6,p,ul,li,a,span,div{
	font-family: 'iranyekan' !important;
}

.plms-courses-modern-grid-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.plms-courses-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    justify-items: center; 
    max-width: 100%;
}

/* Ensure single card doesn't expand too much */
.plms-course-modern-card {
    width: 100%;
    max-width: 400px; 
    min-width: 350px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* For single card, center it properly */
.plms-courses-modern-grid:has(.plms-course-modern-card:only-child) {
    display: flex;
    justify-content: center;
    align-items: start;
}

/* Fallback for browsers that don't support :has() */
.plms-courses-modern-grid.single-card {
    display: flex;
    justify-content: center;
    align-items: start;
}

.plms-courses-modern-grid.single-card .plms-course-modern-card {
    max-width: 400px;
    width: 100%;
}




