/*
Theme Name: EZIZ Block Theme
Theme URI: https://eziz.org
Author: 11:59
Author URI: https://1159.ai
Description: A WordPress block theme for the California Department of Public Health EZIZ website. Provides training and resources for California's Vaccine Programs.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: eziz

This is a block theme for CDPH's EZIZ site.
All design tokens are defined in theme.json.
Template parts: header, footer
Templates: front-page, page, page-program
*/

/* ============================================
   GLOBAL RESETS & BASE
   ============================================ */

*,
*::before,
*::after {
	box-sizing: border-box;
}

img {
	max-width: 100%;
	height: auto;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */

.site-header {
	border-bottom: 3px solid var(--wp--preset--color--primary);
}

.site-header .eziz-logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
}

.site-header .eziz-logo-icon {
	width: 40px;
	height: 40px;
}

.site-header .eziz-logo-text,
.site-header .wp-block-site-title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 3.0rem;
	font-weight: 1900;
	letter-spacing: 0.05em;
}

.site-header .wp-block-site-title a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

/* Navigation items */
.site-header .wp-block-navigation {
	font-weight: 600;
}

.site-header .wp-block-navigation a {
	color: var(--wp--preset--color--text-primary);
	text-decoration: none;
	padding: 0.5rem 0.75rem;
}

.site-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--primary);
}

/* Mega menu alignment in header */
.site-header #mega-menu-wrap-primary {
	align-self: center;
	display: flex;
	align-items: center;
}

.site-header #mega-menu-primary {
	margin: 0;
	align-items: center;
}

/* Google search field in header */
.header-search {
	min-width: 180px;
}

.header-search .wp-block-search__input {
	border: 1px solid var(--wp--preset--color--mid-gray);
	border-radius: 4px;
	padding: 0.3rem 0.75rem;
	font-size: var(--wp--preset--font-size--small);
	min-width: 180px;
	height: 2rem;
}

.header-search .wp-block-search__button {
	height: 2rem;
	width: 2rem;
	min-width: 2rem;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
	padding: 3rem 0;
}

.hero-section h1 {
	margin-bottom: 1.5rem;
}

.hero-section .wp-block-buttons {
	gap: 1rem;
}

.hero-section .wp-block-button__link {
    padding-left: 4.5rem;
    padding-right: 4.5rem;
}

/* ============================================
   PROGRAM CARDS
   ============================================ */

.program-cards-section {
	padding: 2.5rem 0;
}

.program-card-image {
	transition: box-shadow 0.2s ease;
	margin: 0 !important;
	padding: 0 !important;
	display: block;
}

.program-card-image a {
	display: block;
	line-height: 0;
	margin: 0;
	padding: 0;
}

.program-card-image:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.program-card-image img {
	width: 100%;
	height: auto;
	display: block;
	margin: 0;
	padding: 0;
	vertical-align: bottom;
}

.cdph-field-reps-link {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--wp--preset--color--link-blue);
	font-weight: 600;
	text-decoration: none;
}

.cdph-field-reps-link:hover {
	text-decoration: underline;
}

/* ============================================
   ANNOUNCEMENTS SECTION
   ============================================ */

.announcements-section {
	padding: 2.5rem 0;
	border-top: 3px solid var(--wp--preset--color--primary);
}

.announcement-header {
	background-color: var(--wp--preset--color--announcement-purple);
	color: var(--wp--preset--color--white);
	padding: 0.5rem 1.25rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.25rem;
	font-weight: 700;
	display: block;
	margin-bottom: 1.5rem;
}

.announcement-featured {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 1.1rem;
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--wp--preset--color--mid-gray);
	line-height: 1.4;
}

.announcement-category-title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 1rem;
	margin-bottom: 0.5rem;
	padding-bottom: 0.25rem;
	padding-top: 1.5rem;
}

.announcement-list-query {
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--wp--preset--color--mid-gray);
}

.announcement-list-query:last-child {
	border-bottom: none;
}

.announcement-list {
	list-style: disc;
	padding-left: 1.25rem;
	margin-bottom: 1.5rem;
}

.announcement-list li {
	margin-bottom: 0.35rem;
}

.announcement-list a {
	color: var(--wp--preset--color--link-blue);
	text-decoration: underline;
}

.announcement-list .announcement-date {
	color: var(--wp--preset--color--text-primary);
	font-weight: 700;
	text-decoration: none;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features-section {
	padding: 2.5rem 0;
	border-top: 1px solid var(--wp--preset--color--mid-gray);
}

.features-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 1.5rem;
}

.features-header h2 {
	margin: 0;
}

.features-header-links {
	display: flex;
	gap: 1.5rem;
	align-items: center;
}

.features-header-links a {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--wp--preset--color--link-blue);
	text-decoration: none;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--medium);
}

.features-header-links a:hover {
	text-decoration: underline;
}

.features-list {
	list-style: disc;
	padding-left: 1.25rem;
}

.features-list li {
	margin-bottom: 0.5rem;
}

.features-list a {
	color: var(--wp--preset--color--link-blue);
	text-decoration: none;
}

.features-list a:hover {
	text-decoration: underline;
}

.eziz-training-card {
    position: relative;
    overflow: hidden;
}

.eziz-training-card .wp-block-image {
    margin-bottom: 0;
}

.eziz-training-card .wp-block-image img {
    display: block;
    width: 100%;
}

.eziz-training-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #005b9e;
    margin: 0;
    padding: 0.5rem 1rem;
    text-align: center;
}

.eziz-training-label a {
    color: #fff;
    text-decoration: none;
    font-family: var(--wp--preset--font-family--heading);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ============================================
   VACCINE SYSTEMS SECTION
   ============================================ */

.vaccine-systems-section {
	padding: 2.5rem 0;
	border-top: 1px solid var(--wp--preset--color--mid-gray);
}

.vaccine-system-item {
	text-align: center;
}

.vaccine-system-item a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	color: var(--wp--preset--color--link-blue);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--medium);
}

.vaccine-system-item a:hover {
	text-decoration: underline;
}

.vaccine-system-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
}

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

.site-footer {
	background-color: var(--wp--preset--color--light-gray);
	border-top: 3px solid var(--wp--preset--color--primary);
	padding: 2.5rem 0 1.5rem;
	font-size: 14px;
}

.footer-contact-heading {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.footer-column h3 {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 1rem;
	margin-bottom: 0.75rem;
}

.footer-column p,
.footer-column li {
	line-height: 1.6;
	margin-top: 0;
	margin-bottom: 0.25rem;
}

.footer-column a {
	color: var(--wp--preset--color--link-blue);
}

.site-footer .wp-block-list {
	padding-left: 16px;
}

.contact-list {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.contact-item {
	display: flex;
	align-items: flex-start;
	gap: 0.5em;
	line-height: 1.5;
}

.contact-icon {
	flex-shrink: 0;
	width: 1.4em;
	text-align: center;
	margin-top: 0.1em;
}

.contact-text {
	flex: 1;
}

.footer-disclaimer {
	text-align: center;
	font-size: 0.75rem;
	color: var(--wp--preset--color--text-secondary);
	padding-top: 1.5rem;
	border-top: 1px solid var(--wp--preset--color--mid-gray);
	margin-top: 2rem;
}


/* ============================================
   PROGRAM PAGE STYLES
   ============================================ */

.program-page-header {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding: 1.5rem 0;
}

.program-page-badge {
	display: flex;
	flex-direction: column;
	padding: 1rem 1.25rem;
	min-width: 100px;
	border-left: 4px solid;
}

.program-page-badge .badge-abbr {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	font-size: 1.75rem;
	line-height: 1.1;
}

.program-page-badge .badge-name {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.3;
}

.program-page-badge.vfc {
	border-color: var(--wp--preset--color--vfc-orange);
	background: #FFF5ED;
}

.program-page-badge.vfc .badge-abbr {
	color: var(--wp--preset--color--vfc-orange);
}

.program-page-badge.vfa {
	border-color: var(--wp--preset--color--vfa-teal);
	background: #EDF7F6;
}

.program-page-badge.vfa .badge-abbr {
	color: var(--wp--preset--color--vfa-teal);
}

.program-page-badge.lhd {
	border-color: var(--wp--preset--color--lhd-dark-teal);
	background: #EDF3F5;
}

.program-page-badge.lhd .badge-abbr {
	color: var(--wp--preset--color--lhd-dark-teal);
}

.program-page-badge.sgf {
	border-color: var(--wp--preset--color--sgf-blue);
	background: #EDF2F9;
}

.program-page-badge.sgf .badge-abbr {
	color: var(--wp--preset--color--sgf-blue);
}

/* ============================================
   INFO CARDS (Enrollment, Termination, etc.)
   ============================================ */

.info-card {
	padding: 1.5rem;
	background: var(--wp--preset--color--white);
}

.info-card-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.info-card-icon {
	width: 32px;
	height: 32px;
	min-width: 32px;
	border-radius: 50%;
	flex-shrink: 0;
	background-color: var(--wp--preset--color--primary);
}

.info-card-header h3 {
	margin: 0;
}

/* ============================================
   OVERVIEW / ACCORDION (wp:details)
   ============================================ */

.overview-section {
	background-color: #c9e4fd;
	padding: 2rem;
	margin: 2.5rem 0;
}

.overview-section h2 {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	padding: 0.5rem 1.25rem;
	display: block;
	margin-bottom: 1rem;
}

.overview-section p.overview-subtitle {
	font-weight: 700;
	margin-bottom: 1rem;
}

/* Style the details/summary (accordion) blocks */
.overview-section .wp-block-details {
	border-bottom: 1px solid var(--wp--preset--color--mid-gray);
	padding: 0.75rem 0;
	margin: 0;
}

.overview-section .wp-block-details summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 18px;
	color: var(--wp--preset--color--text-primary);
	list-style: none;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.overview-section .wp-block-details summary::before {
	content: "+";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border: 2px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1;
	flex-shrink: 0;
}

.overview-section .wp-block-details[open] summary::before {
	content: "−";
}

/* Remove default marker */
.overview-section .wp-block-details summary::-webkit-details-marker {
	display: none;
}

.overview-section .wp-block-details .wp-block-details__content,
.overview-section .wp-block-details > *:not(summary) {
	padding: 0.75rem 0 0.5rem 1.75rem;
	color: var(--wp--preset--color--text-secondary);
}

/* ============================================
   CONTACT US SECTION (shared on front-page & footer)
   ============================================ */

.contact-section {
	background-color: var(--wp--preset--color--light-gray);
	padding: 2.5rem 0;
}

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

@media (max-width: 782px) {
	.features-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}

	.program-page-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.footer-contact-heading {
		flex-direction: column;
	}
}
