/*
Theme Name: GeneratePress Child
Template: generatepress
Version: 1.0
*/

/* =========================================================
   SUBJECT TOPICS
   ========================================================= */

.worksheet-subject-topics {
	margin: 45px 0 50px;
}

.worksheet-subject-topics h2 {
	margin: 0 0 28px;
	font-size: 32px;
	line-height: 1.2;
}

.worksheet-subject-topics-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.worksheet-subject-topic-card {
	display: flex;
	align-items: center;
	min-height: 72px;
	padding: 20px 24px;
	border: 1px solid #d9e2e8;
	border-radius: 12px;
	background: #fff;
	font-size: 21px;
	font-weight: 600;
	text-decoration: none;
}

.worksheet-subject-topic-card:hover {
	text-decoration: none;
}

@media (max-width: 768px) {

	.worksheet-subject-topics {
		margin: 35px 0 40px;
	}

	.worksheet-subject-topics h2 {
		font-size: 28px;
	}

	.worksheet-subject-topics-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.worksheet-subject-topic-card {
		min-height: 60px;
		padding: 16px 20px;
		font-size: 19px;
	}

}

/* =========================================================
   SUBJECT GRADES
   ========================================================= */

.worksheet-subject-grades {
	margin: 45px 0 50px;
}

.worksheet-subject-grades h2 {
	margin: 0 0 28px;
	font-size: 32px;
	line-height: 1.2;
}

.worksheet-subject-grades-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.worksheet-subject-grade-card {
	display: flex;
	align-items: center;
	min-height: 72px;
	padding: 20px 24px;
	border: 1px solid #d9e2e8;
	border-radius: 12px;
	background: #fff;
	font-size: 21px;
	font-weight: 600;
	text-decoration: none;
}

.worksheet-subject-grade-card:hover {
	text-decoration: none;
}

@media (max-width: 768px) {

	.worksheet-subject-grades {
		margin: 35px 0 40px;
	}

	.worksheet-subject-grades h2 {
		font-size: 28px;
	}

	.worksheet-subject-grades-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.worksheet-subject-grade-card {
		min-height: 60px;
		padding: 16px 20px;
		font-size: 19px;
	}

}

.worksheet-related-taxonomy {
	margin: 45px 0 50px;
}

.worksheet-related-taxonomy h2 {
	margin: 0 0 28px;
	font-size: 32px;
	line-height: 1.2;
}

.worksheet-related-taxonomy-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.worksheet-related-taxonomy-card {
	display: flex;
	align-items: center;
	min-height: 72px;
	padding: 20px 24px;
	box-sizing: border-box;
	border: 1px solid #d9e2e8;
	border-radius: 12px;
	background: #fff;
	color: #111827;
	font-size: 20px;
	font-weight: 600;
	text-decoration: none;
}

.worksheet-related-taxonomy-card:hover {
	color: #2563eb;
	text-decoration: none;
}

@media (max-width: 768px) {

	.worksheet-related-taxonomy-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.worksheet-related-taxonomy-card {
		min-height: 60px;
		padding: 16px 20px;
		font-size: 19px;
	}
}

/* =========================================================
   RELATED CATEGORIES
   ========================================================= */

.related-categories {
    margin-top: 70px;
    padding-top: 55px;
    border-top: 1px solid #dfe6ef;
}

.related-categories-header {
    margin-bottom: 32px;
}

.related-categories-header h2 {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 600;
    color: #17243a;
}

.related-categories-header p {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
    color: #64748b;
}

.related-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.related-category-card {
    min-width: 0;
}

.related-category-link {
    display: block;
    height: 100%;
    padding: 10px;
    text-decoration: none !important;
    color: inherit;
    background: #fff;
    border: 1px solid #e1e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.related-category-link:hover {
    transform: translateY(-4px);
    border-color: #cbd8e8;
    box-shadow: 0 12px 30px rgba(30, 50, 80, 0.10);
}

.related-category-image {
    width: 100%;
    aspect-ratio: 8.5 / 11;
    overflow: hidden;
    border-radius: 10px;
    background: #f3f6fa;
}

.related-category-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.related-category-content {
    padding: 18px 8px 12px;
}

.related-category-content h3 {
    margin: 0 0 16px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
    color: #17243a;
}

.related-category-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 600;
    color: #1670d2;
}

.related-category-arrow span {
    font-size: 21px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.related-category-link:hover .related-category-arrow span {
    transform: translateX(4px);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .related-categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 600px) {

    .related-categories {
        margin-top: 45px;
        padding-top: 40px;
    }

    .related-categories-header h2 {
        font-size: 28px;
    }

    .related-categories-header p {
        font-size: 16px;
    }

    .related-categories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

}

/* =====================================================
   CONTACT FORM
   ===================================================== */

.wsprint-contact-form {
    max-width: 720px;
    margin: 40px auto 20px;
}

.wsprint-form-field {
    margin-bottom: 24px;
}

.wsprint-form-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #17243a;
}

.wsprint-form-field input,
.wsprint-form-field textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid #d5deea;
    border-radius: 9px;
    background: #fff;
    color: #17243a;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.wsprint-form-field input {
    min-height: 50px;
}

.wsprint-form-field textarea {
    min-height: 170px;
    resize: vertical;
}

.wsprint-form-field input:focus,
.wsprint-form-field textarea:focus {
    outline: none;
    border-color: #1670d2;
    box-shadow: 0 0 0 3px rgba(22, 112, 210, 0.10);
}

.wsprint-contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 28px;
    border: 0;
    border-radius: 9px;
    background: #1670d2;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.wsprint-contact-submit:hover {
    background: #0f5eaf;
    transform: translateY(-1px);
}

.wsprint-contact-message {
    margin-bottom: 28px;
    padding: 16px 18px;
    border-radius: 9px;
    font-size: 16px;
    line-height: 1.5;
}

.wsprint-contact-message.success {
    border: 1px solid #b7dfc5;
    background: #f0faf3;
    color: #216b39;
}

.wsprint-contact-message.error {
    border: 1px solid #ecc1c1;
    background: #fff5f5;
    color: #9b2c2c;
}

/* Invisible anti-spam field */

.wsprint-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 600px) {

    .wsprint-contact-form {
        margin-top: 30px;
    }

    .wsprint-contact-submit {
        width: 100%;
    }

}

/* =========================================================
   WORKSHEETSPRINT FOOTER
   ========================================================= */

.wsprint-footer {
    margin-top: 70px;
    background: #f4f6f8;
    border-top: 1px solid #e1e6ec;
    color: #17243a;
}

.wsprint-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 55px 30px 45px;

    display: grid;
    grid-template-columns:
        1.6fr
        1fr
        1fr
        1fr
        1fr;

    gap: 45px;
}

.wsprint-footer-column h3 {
    margin: 0 0 18px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: #17243a;
}

.wsprint-footer-column p {
    max-width: 300px;
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #66758a;
}

.wsprint-footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wsprint-footer-column li {
    margin: 0 0 10px;
    padding: 0;
}

.wsprint-footer-column a {
    color: #53657c;
    font-size: 15px;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wsprint-footer-column a:hover {
    color: #1670d2;
}

.wsprint-footer-bottom {
    border-top: 1px solid #dde3ea;
    padding: 20px 30px;
    text-align: center;
}

.wsprint-footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: #7a8797;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 800px) {

    .wsprint-footer-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px 25px;
        padding: 45px 25px;
    }

    .wsprint-footer-column:first-child {
        grid-column: 1 / -1;
    }

}


@media (max-width: 500px) {

    .wsprint-footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 20px;
    }

    .wsprint-footer-column:first-child {
        grid-column: auto;
    }

    .wsprint-footer-bottom {
        padding: 18px 20px;
    }

}

/* =====================================================
   ALL WORKSHEETS
   ===================================================== */

.wsprint-all-worksheets {
	width: 100%;
	padding: 60px 20px 80px;
	box-sizing: border-box;
}

.wsprint-worksheets-inner {
	max-width: 1180px;
	margin: 0 auto;
}


/* HEADER */

.wsprint-worksheets-header {
	max-width: 760px;
	margin: 0 auto 50px;
	text-align: center;
}

.wsprint-worksheets-header h1 {
	margin: 0 0 18px;
	font-size: 42px;
	line-height: 1.15;
	font-weight: 700;
}

.wsprint-worksheets-header p {
	margin: 0;
	font-size: 18px;
	line-height: 1.7;
	color: #5f6b78;
}


/* GRID */

.wsprint-worksheets-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
}


/* CARD */

.wsprint-worksheet-card {
	min-width: 0;
}

.wsprint-worksheet-card-link {
	display: block;
	height: 100%;
	color: inherit;
	text-decoration: none;
	background: #fff;
	border: 1px solid #e5eaf0;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 3px 12px rgba(20, 35, 55, 0.06);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		border-color 0.2s ease;
}

.wsprint-worksheet-card-link:hover {
	color: inherit;
	text-decoration: none;
	transform: translateY(-4px);
	box-shadow: 0 10px 28px rgba(20, 35, 55, 0.12);
	border-color: #d6dee8;
}


/* WORKSHEET PREVIEW */

.wsprint-worksheet-preview {
	width: 100%;
	aspect-ratio: 8.5 / 11;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px;
	box-sizing: border-box;
	background: #f3f6fa;
	overflow: hidden;
}

.wsprint-worksheet-preview img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 5px;
	box-shadow: 0 3px 10px rgba(20, 35, 55, 0.12);
}


/* CARD CONTENT */

.wsprint-worksheet-card-content {
	padding: 18px 18px 20px;
}

.wsprint-worksheet-card-content h2 {
	margin: 0 0 10px;
	font-size: 18px;
	line-height: 1.35;
	font-weight: 650;
	color: #182331;
}


/* GRADE */

.wsprint-worksheet-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}

.wsprint-worksheet-meta span {
	display: inline-block;
	padding: 4px 9px;
	border-radius: 6px;
	background: #f0f4f8;
	color: #526171;
	font-size: 12px;
	font-weight: 600;
}


/* TOPIC */

.wsprint-worksheet-topic {
	margin-bottom: 14px;
	color: #697786;
	font-size: 14px;
	line-height: 1.4;
}


/* VIEW LINK */

.wsprint-worksheet-view {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #2f6fed;
}

.wsprint-worksheet-card-link:hover .wsprint-worksheet-view {
	text-decoration: underline;
}


/* PAGINATION */

.wsprint-worksheets-pagination {
	margin-top: 55px;
	text-align: center;
}

.wsprint-worksheets-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wsprint-worksheets-pagination .page-numbers li {
	margin: 0;
	padding: 0;
}

.wsprint-worksheets-pagination .page-numbers a,
.wsprint-worksheets-pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	box-sizing: border-box;
	border: 1px solid #dfe5eb;
	border-radius: 8px;
	background: #fff;
	color: #334155;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
}

.wsprint-worksheets-pagination .page-numbers a:hover {
	background: #f3f6fa;
}

.wsprint-worksheets-pagination .page-numbers .current {
	background: #2f6fed;
	border-color: #2f6fed;
	color: #fff;
}


/* EMPTY */

.wsprint-no-worksheets {
	padding: 70px 20px;
	text-align: center;
}

.wsprint-no-worksheets h2 {
	margin: 0 0 10px;
}

.wsprint-no-worksheets p {
	margin: 0;
	color: #687585;
}


/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1000px) {

	.wsprint-worksheets-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

}


@media (max-width: 760px) {

	.wsprint-all-worksheets {
		padding: 45px 16px 60px;
	}

	.wsprint-worksheets-header {
		margin-bottom: 35px;
	}

	.wsprint-worksheets-header h1 {
		font-size: 34px;
	}

	.wsprint-worksheets-header p {
		font-size: 16px;
	}

	.wsprint-worksheets-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}

	.wsprint-worksheet-card-content {
		padding: 14px;
	}

	.wsprint-worksheet-card-content h2 {
		font-size: 16px;
	}

}


@media (max-width: 480px) {

	.wsprint-worksheets-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.wsprint-worksheets-header h1 {
		font-size: 30px;
	}

}