/**
 * NPK School Theme - Widgets Styling
 *
 * สไตล์สำหรับการแสดงผลวิดเจ็ตใน Sidebar, Footer และส่วนแสดงผลหน้าเว็บ
 *
 * @package NPK_School_Theme
 */

/* =========================================================================
   1. RECENT ANNOUNCEMENTS WIDGET
   ========================================================================= */
.npk-widget-announcements-list {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.npk-widget-announcement-item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 10px 0;
	border-bottom: 1px dashed rgba(226, 232, 240, 0.8);
	transition: background-color 0.2s ease;
}

.npk-widget-announcement-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.npk-widget-announcement-item:first-child {
	padding-top: 0;
}

.npk-announcement-thumb-link {
	flex-shrink: 0;
	width: 60px;
	height: 60px;
	border-radius: 8px;
	overflow: hidden;
	display: block;
	background: #f1f5f9;
}

.npk-widget-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.npk-announcement-thumb-link:hover .npk-widget-thumb {
	transform: scale(1.08);
}

.npk-widget-thumb-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #eaf2ff;
	color: #0066FF;
}

.npk-announcement-info {
	flex-grow: 1;
	min-width: 0;
}

.npk-announcement-title {
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.4;
	color: #1e293b;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.15s ease;
}

.npk-announcement-title:hover {
	color: #0066FF;
}

.npk-announcement-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
	font-size: 11.5px;
	color: #64748b;
}

.npk-announcement-date {
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

.npk-announcement-date .dashicons {
	font-size: 13px;
	width: 13px;
	height: 13px;
}

.npk-widget-featured-tag {
	background: #fff7ed;
	color: #c2410c;
	border: 1px solid #ffedd5;
	padding: 1px 6px;
	border-radius: 4px;
	font-size: 10.5px;
	font-weight: 600;
}

.npk-widget-empty {
	color: #94a3b8;
	font-style: italic;
	font-size: 13px;
	margin: 0;
}


/* =========================================================================
   2. SCHOOL INFO WIDGET
   ========================================================================= */
.npk-school-info-widget-content {
	font-size: 13.5px;
	color: inherit;
}

.npk-widget-school-name {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 12px 0;
	color: inherit;
}

.npk-contact-list {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 0 16px 0 !important;
}

.npk-contact-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 10px;
	line-height: 1.5;
}

.npk-contact-list li:last-child {
	margin-bottom: 0;
}

.npk-contact-list .dashicons {
	color: #0066FF;
	font-size: 18px;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin-top: 2px;
}

.npk-contact-text a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}

.npk-contact-text a:hover {
	color: #0066FF;
}

.npk-widget-social-links {
	display: flex;
	gap: 8px;
	margin-top: 14px;
	flex-wrap: wrap;
}

.npk-social-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #f1f5f9;
	color: #475569;
	text-decoration: none;
	transition: all 0.2s ease;
}

.npk-social-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.npk-social-btn.npk-social-fb:hover {
	background: #1877f2;
	color: #ffffff;
}

.npk-social-btn.npk-social-line:hover {
	background: #06c755;
	color: #ffffff;
}

.npk-social-btn.npk-social-yt:hover {
	background: #ff0000;
	color: #ffffff;
}

.npk-widget-map-wrap {
	margin-top: 14px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.npk-widget-map-wrap iframe {
	width: 100% !important;
	height: 180px !important;
	border: 0;
	display: block;
}


/* =========================================================================
   3. QUICK LINKS WIDGET (BUTTON GRID)
   ========================================================================= */
.npk-quick-links-widget-wrap {
	width: 100%;
}

.npk-widget-ql-grid {
	display: grid;
	gap: 10px;
}

.npk-widget-ql-grid.npk-cols-1 {
	grid-template-columns: 1fr;
}

.npk-widget-ql-grid.npk-cols-2 {
	grid-template-columns: repeat(2, 1fr);
}

.npk-widget-ql-grid.npk-cols-3 {
	grid-template-columns: repeat(3, 1fr);
}

@media screen and (max-width: 480px) {
	.npk-widget-ql-grid.npk-cols-2,
	.npk-widget-ql-grid.npk-cols-3 {
		grid-template-columns: 1fr;
	}
}

.npk-widget-ql-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 10px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
	text-decoration: none;
	color: #1e293b;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	position: relative;
	overflow: hidden;
}

.npk-widget-ql-btn:hover {
	transform: translateY(-2px);
	border-color: #0066FF;
	box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
	color: #0066FF;
}

.npk-widget-ql-icon {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: #eaf2ff;
	color: #0066FF;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.npk-widget-ql-btn:hover .npk-widget-ql-icon {
	background: #0066FF;
	color: #ffffff;
}

.npk-widget-ql-icon .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.npk-widget-ql-label {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}
