/*
Theme Name: HURO Modern
Template: education-hub
Description: Moderniziran izgled za huro.hr (child tema Education Hub-a). Admin, widgeti i izbornici ostaju isti.
Author: Techno Angels
Version: 1.0.2
Text Domain: huro-modern
*/

/* ---------- Boje i tipografija (boje iz loga HURO) ---------- */
:root {
	--huro-navy: #17324d;
	--huro-ink: #1f2933;
	--huro-muted: #5b6774;
	--huro-line: #e5e9ef;
	--huro-bg: #f5f7fa;
	--huro-green: #2f9e44;
	--huro-green-d: #24803a;
	--huro-blue: #1c94d2;
	--huro-yellow: #f5b800;
	--huro-red: #d6285a;
	--huro-radius: 14px;
	--huro-shadow: 0 1px 2px rgba(23, 50, 77, .06), 0 8px 24px rgba(23, 50, 77, .08);
	--huro-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--huro-head: "Nunito", "Inter", system-ui, sans-serif;
}

body.huro-modern {
	font-family: var(--huro-font);
	color: var(--huro-ink);
	background: #fff;
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
body.huro-modern #page { background: #fff; }
body.huro-modern h1, body.huro-modern h2, body.huro-modern h3,
body.huro-modern h4, body.huro-modern h5, body.huro-modern h6 {
	font-family: var(--huro-head);
	color: var(--huro-navy);
	letter-spacing: -.01em;
	line-height: 1.25;
}
body.huro-modern a { color: var(--huro-blue); transition: color .15s ease; }
body.huro-modern a:hover, body.huro-modern a:focus { color: var(--huro-green-d); }
body.huro-modern :focus-visible { outline: 3px solid var(--huro-yellow); outline-offset: 2px; }

/* ---------- Gumbi ---------- */
.huro-btn,
body.huro-modern .button,
body.huro-modern input[type="submit"],
body.huro-modern button[type="submit"],
body.huro-modern .wpcf7-submit {
	display: inline-flex; align-items: center; gap: .5em;
	font-family: var(--huro-font); font-weight: 600; font-size: 15px; line-height: 1;
	padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
	background: var(--huro-green); color: #fff; text-decoration: none; cursor: pointer;
	transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
	box-shadow: none; text-shadow: none;
}
.huro-btn:hover, body.huro-modern .button:hover, body.huro-modern input[type="submit"]:hover,
body.huro-modern .wpcf7-submit:hover { background: var(--huro-green-d); color: #fff; transform: translateY(-1px); }
body.huro-modern a.huro-btn, body.huro-modern a.huro-btn:hover, body.huro-modern a.huro-btn:focus { color: #fff; }
body.huro-modern a.huro-btn--ghost { background: transparent; color: var(--huro-navy); border-color: rgba(23, 50, 77, .25); }
body.huro-modern a.huro-btn--ghost:hover { background: var(--huro-navy); color: #fff; border-color: var(--huro-navy); }
body.huro-modern a.huro-btn--light { background: #fff; color: var(--huro-navy); }
body.huro-modern a.huro-btn--light:hover { background: var(--huro-yellow); color: var(--huro-navy); }

/* ---------- Zaglavlje ---------- */
body.huro-modern #tophead { display: none; } /* prazna traka iznad zaglavlja */
body.huro-modern #masthead {
	background: #fff; padding: 18px 0 14px; border: 0; min-height: 0;
}
body.huro-modern #masthead .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
body.huro-modern .site-branding { display: flex; align-items: center; gap: 18px; float: none; margin: 0; }
body.huro-modern .custom-logo { max-height: 86px; width: auto; }
body.huro-modern #site-identity { margin: 0; float: none; }
body.huro-modern .site-description {
	margin: 0; padding-left: 18px; border-left: 3px solid var(--huro-yellow);
	font-family: var(--huro-head); font-weight: 800; font-size: 18px; line-height: 1.3;
	color: var(--huro-navy); letter-spacing: 0; max-width: 240px;
}
body.huro-modern .search-section { float: none; margin: 0; }
body.huro-modern .search-form { display: flex; border: 1px solid var(--huro-line); border-radius: 999px; overflow: hidden; background: var(--huro-bg); }
body.huro-modern .search-form label { margin: 0; flex: 1; }
body.huro-modern .search-form .search-field {
	border: 0; background: transparent; height: 44px; padding: 0 18px; width: 220px;
	font-family: var(--huro-font); font-size: 15px; color: var(--huro-ink); box-shadow: none;
}
body.huro-modern .search-form .search-submit {
	border-radius: 0; height: 44px; padding: 0 20px; background: var(--huro-navy); font-size: 14px;
}
body.huro-modern .search-form .search-submit:hover { background: var(--huro-blue); transform: none; }

/* Glavni izbornik */
body.huro-modern #main-nav {
	float: none; width: 100%; /* roditelj ga floata pa sadržaj ispod bježi udesno */
	background: #fff; border-top: 1px solid var(--huro-line); border-bottom: 1px solid var(--huro-line);
	position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(23, 50, 77, .04);
}
body.admin-bar.huro-modern #main-nav { top: 32px; }
body.huro-modern #main-nav .container { position: relative; }
body.huro-modern .main-navigation ul li { border: 0 !important; }
body.huro-modern .main-navigation ul li a {
	color: var(--huro-navy); font-family: var(--huro-font); font-weight: 600; font-size: 15px;
	padding: 18px 16px; background: transparent; position: relative;
}
body.huro-modern .main-navigation ul li a::after {
	content: ""; position: absolute; left: 16px; right: 16px; bottom: 10px; height: 3px; border-radius: 3px;
	background: var(--huro-green); transform: scaleX(0); transition: transform .2s ease;
}
body.huro-modern .main-navigation ul li:hover > a,
body.huro-modern .main-navigation ul li.current-menu-item > a,
body.huro-modern .main-navigation ul li.current-menu-ancestor > a { color: var(--huro-green-d); background: transparent; }
body.huro-modern .main-navigation ul li:hover > a::after,
body.huro-modern .main-navigation ul li.current-menu-item > a::after { transform: scaleX(1); }
body.huro-modern .main-navigation ul ul {
	background: #fff; border-radius: 12px; box-shadow: var(--huro-shadow); padding: 8px 0; border: 1px solid var(--huro-line);
}
body.huro-modern .main-navigation ul ul li a { padding: 10px 18px; font-weight: 500; }
body.huro-modern .main-navigation ul ul li a::after { display: none; }
body.huro-modern .menu-toggle { background: var(--huro-navy); color: #fff; border-radius: 10px; font-family: var(--huro-font); font-weight: 600; }

/* ---------- Naslovnica ---------- */
.huro-hero {
	position: relative; overflow: hidden;
	background:
		radial-gradient(circle at 85% 20%, rgba(28, 148, 210, .14), transparent 45%),
		radial-gradient(circle at 10% 90%, rgba(47, 158, 68, .12), transparent 40%),
		linear-gradient(180deg, #f7fbff 0%, #f3f8f4 100%);
	padding: 72px 0 80px;
}
.huro-hero__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.huro-kicker {
	display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px;
	background: #fff; color: var(--huro-green-d); font-weight: 600; font-size: 14px; box-shadow: var(--huro-shadow);
}
body.huro-modern .huro-hero__title { font-size: clamp(32px, 4.4vw, 54px); font-weight: 900; margin: 0 0 18px; line-height: 1.1; }
.huro-hero__lead { font-size: 19px; color: var(--huro-muted); max-width: 560px; margin: 0 0 30px; }
.huro-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.huro-hero__art { position: relative; height: 320px; }
.huro-hero__art .dot { position: absolute; border-radius: 50%; opacity: .95; }
.huro-hero__art .dot--blue   { width: 120px; height: 120px; background: var(--huro-blue);   top: 0;    left: 42%; }
.huro-hero__art .dot--yellow { width: 170px; height: 170px; background: var(--huro-yellow); bottom: 10px; left: 8%; }
.huro-hero__art .dot--red    { width: 190px; height: 190px; background: var(--huro-red);    bottom: 0;  right: 4%; opacity: .9; }
.huro-hero__art .dot--green  { width: 60px;  height: 60px;  background: var(--huro-green);  top: 38%;  left: 2%; }

.huro-section { padding: 64px 0; }
.huro-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
body.huro-modern .huro-section__title { font-size: 32px; font-weight: 900; margin: 0; position: relative; padding-bottom: 10px; }
.huro-section__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 4px; background: var(--huro-yellow); }
.huro-more { font-weight: 600; text-decoration: none; }

.huro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.huro-card {
	background: #fff; border-radius: var(--huro-radius); overflow: hidden; box-shadow: var(--huro-shadow);
	display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.huro-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(23, 50, 77, .14); }
.huro-card__media { display: block; aspect-ratio: 16 / 9; background: var(--huro-bg); overflow: hidden; }
.huro-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.huro-card:hover .huro-card__media img { transform: scale(1.04); }
.huro-card__placeholder {
	display: flex; width: 100%; height: 100%; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--huro-navy) 0%, #24557f 100%); position: relative; overflow: hidden;
}
.huro-card__placeholder::before, .huro-card__placeholder::after { content: ""; position: absolute; border-radius: 50%; }
.huro-card__placeholder::before { width: 140px; height: 140px; background: rgba(245, 184, 0, .9); right: -30px; bottom: -40px; }
.huro-card__placeholder::after { width: 70px; height: 70px; background: rgba(28, 148, 210, .9); left: 24px; top: 20px; }
.huro-card__placeholder--1 { background: linear-gradient(135deg, var(--huro-green-d) 0%, var(--huro-green) 100%); }
.huro-card__placeholder--1::before { background: rgba(28, 148, 210, .85); }
.huro-card__placeholder--1::after { background: rgba(245, 184, 0, .95); }
.huro-card__placeholder--2 { background: linear-gradient(135deg, #1677ad 0%, var(--huro-blue) 100%); }
.huro-card__placeholder--2::before { background: rgba(214, 40, 90, .85); }
.huro-card__placeholder--2::after { background: rgba(245, 184, 0, .95); }
.huro-card__placeholder span { position: relative; z-index: 1; color: #fff; font-family: var(--huro-head); font-weight: 900; font-size: 34px; letter-spacing: .08em; }
.huro-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.huro-card__date { font-size: 13px; font-weight: 600; color: var(--huro-green-d); text-transform: uppercase; letter-spacing: .04em; }
body.huro-modern .huro-card__title { font-size: 19px; font-weight: 800; margin: 0; }
body.huro-modern .huro-card__title a { color: var(--huro-navy); text-decoration: none; }
body.huro-modern .huro-card__title a:hover { color: var(--huro-green-d); }
.huro-card__excerpt { color: var(--huro-muted); font-size: 15px; margin: 0; }

.huro-docs { background: var(--huro-bg); }
.huro-docs__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.huro-doc {
	display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: #fff; border-radius: var(--huro-radius);
	border: 1px solid var(--huro-line); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.huro-doc:hover { border-color: var(--huro-green); box-shadow: var(--huro-shadow); }
.huro-doc__icon {
	flex: 0 0 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
	background: rgba(47, 158, 68, .12); color: var(--huro-green-d); font-size: 20px;
}
.huro-doc__text { display: flex; flex-direction: column; gap: 4px; }
.huro-doc__text strong { color: var(--huro-navy); font-family: var(--huro-head); font-weight: 800; font-size: 17px; }
.huro-doc__text span { color: var(--huro-muted); font-size: 14px; }

.huro-join { padding: 0 0 72px; background: var(--huro-bg); }
.huro-join__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
	padding: 40px 44px; border-radius: 22px; color: #fff;
	background: linear-gradient(120deg, var(--huro-green-d) 0%, var(--huro-green) 45%, #3aa9d8 100%);
}
body.huro-modern .huro-join h2 { color: #fff; font-size: 28px; font-weight: 900; margin: 0 0 6px; }
body.huro-modern .huro-join p { margin: 0; color: #fff; opacity: .92; font-size: 17px; }
.huro-hero, .huro-section, .huro-join { clear: both; }

/* Naslovnica nema sadržaj ispod sekcija — sakrij prazan #content */
body.huro-modern.home.home-content-not-enabled #content { display: none; }
body.huro-modern #featured-news-events { display: none; }

/* ---------- Unutarnje stranice ---------- */
body.huro-modern #content { padding: 48px 0 64px; background: #fff; }
body.huro-modern #breadcrumb { background: var(--huro-bg); border: 0; padding: 12px 0; font-size: 14px; color: var(--huro-muted); }
body.huro-modern .entry-title { font-size: clamp(28px, 3vw, 38px); font-weight: 900; margin-bottom: 10px; }
body.huro-modern .entry-title a { color: var(--huro-navy); text-decoration: none; }
body.huro-modern .entry-meta, body.huro-modern .entry-footer { font-size: 14px; color: var(--huro-muted); }
body.huro-modern .entry-meta a, body.huro-modern .entry-footer a { color: var(--huro-green-d); font-weight: 600; text-decoration: none; }
body.huro-modern .entry-content { font-size: 17px; line-height: 1.75; }
body.huro-modern .entry-content img { border-radius: 10px; height: auto; }
body.huro-modern .entry-content blockquote { border-left: 4px solid var(--huro-yellow); background: var(--huro-bg); border-radius: 0 10px 10px 0; padding: 16px 22px; font-style: normal; }
body.huro-modern .hentry { border-bottom: 1px solid var(--huro-line); padding-bottom: 32px; margin-bottom: 36px; }
body.huro-modern.single .hentry, body.huro-modern.page .hentry { border: 0; }
body.huro-modern .post-navigation .nav-links a,
body.huro-modern .pagination .page-numbers {
	display: inline-block; padding: 10px 16px; border-radius: 10px; background: var(--huro-bg); color: var(--huro-navy);
	font-weight: 600; text-decoration: none; border: 1px solid var(--huro-line);
}
body.huro-modern .post-navigation .nav-links a:hover,
body.huro-modern .pagination .page-numbers.current,
body.huro-modern .pagination .page-numbers:hover { background: var(--huro-navy); color: #fff; }

/* Bočna traka */
body.huro-modern #sidebar-primary .widget {
	background: var(--huro-bg); border-radius: var(--huro-radius); padding: 22px 22px 16px; margin-bottom: 24px; border: 0;
}
body.huro-modern #sidebar-primary .widget-title {
	background: transparent; color: var(--huro-navy); padding: 0 0 10px; margin: 0 0 12px; font-size: 18px; font-weight: 900;
	border-bottom: 2px solid var(--huro-line); border-left: 0;
}
body.huro-modern #sidebar-primary .widget-title::before, body.huro-modern #sidebar-primary .widget-title::after { display: none; }
body.huro-modern #sidebar-primary ul li { padding: 7px 0; border-bottom: 1px dashed var(--huro-line); font-size: 15px; }
body.huro-modern #sidebar-primary ul li:last-child { border-bottom: 0; }
body.huro-modern #sidebar-primary ul li::before { display: none; }
body.huro-modern #sidebar-primary ul li a { color: var(--huro-ink); text-decoration: none; }
body.huro-modern #sidebar-primary ul li a:hover { color: var(--huro-green-d); }

/* Obrasci (pristupnice) */
body.huro-modern input[type="text"], body.huro-modern input[type="email"], body.huro-modern input[type="tel"],
body.huro-modern input[type="date"], body.huro-modern input[type="number"], body.huro-modern input[type="url"],
body.huro-modern textarea, body.huro-modern select {
	border: 1px solid #cfd6df; border-radius: 10px; padding: 11px 14px; font-family: var(--huro-font); font-size: 16px;
	background: #fff; color: var(--huro-ink); box-shadow: none; width: 100%; max-width: 100%;
}
body.huro-modern input:focus, body.huro-modern textarea:focus, body.huro-modern select:focus {
	border-color: var(--huro-blue); outline: none; box-shadow: 0 0 0 3px rgba(28, 148, 210, .18);
}
body.huro-modern .wpcf7 form { background: var(--huro-bg); padding: 28px; border-radius: var(--huro-radius); }
body.huro-modern .wpcf7-list-item { margin: 0 14px 6px 0; }

/* ---------- Podnožje ---------- */
body.huro-modern #footer-widgets { background: var(--huro-navy); color: rgba(255, 255, 255, .82); padding: 56px 0 32px; border: 0; }
body.huro-modern #footer-widgets .widget-title { color: #fff; font-size: 18px; font-weight: 900; border: 0; }
body.huro-modern #footer-widgets .footer-widget-area { border: 0 !important; }
body.huro-modern #footer-widgets a { color: #fff; text-decoration: none; opacity: .85; }
body.huro-modern #footer-widgets a:hover { opacity: 1; color: var(--huro-yellow); }
body.huro-modern #footer-widgets .textwidget p { margin: 0 0 6px; }
body.huro-modern #footer-widgets .education_hub_widget_social ul li a {
	background: rgba(255, 255, 255, .12); border-radius: 10px; opacity: 1; color: #fff;
}
body.huro-modern #footer-widgets .education_hub_widget_social ul li a:hover { background: var(--huro-yellow); color: var(--huro-navy); }
body.huro-modern #footer-widgets .education_hub_widget_social ul li a::before { color: #fff; }
body.huro-modern #footer-widgets .education_hub_widget_social ul li a:hover::before { color: var(--huro-navy); }
body.huro-modern #colophon { background: #10263b; color: rgba(255, 255, 255, .7); padding: 18px 0; font-size: 14px; border: 0; }
body.huro-modern #colophon a { color: rgba(255, 255, 255, .85); }
body.huro-no-credits #colophon .site-info { display: none; }

/* AddToAny ikone zaobljene */
body.huro-modern .a2a_kit a .a2a_svg { border-radius: 8px !important; }

/* ---------- Mobitel ---------- */
@media (max-width: 980px) {
	.huro-grid, .huro-docs__list { grid-template-columns: repeat(2, 1fr); }
	.huro-hero__inner { grid-template-columns: 1fr; }
	.huro-hero__art { display: none; }
	body.huro-modern .search-form .search-field { width: 170px; }
}
@media (max-width: 767px) {
	body.huro-modern #masthead .container { justify-content: center; text-align: center; }
	body.huro-modern .site-branding { flex-direction: column; gap: 8px; }
	body.huro-modern .site-description { border-left: 0; padding-left: 0; max-width: none; font-size: 16px; }
	body.huro-modern .search-section { width: 100%; }
	body.huro-modern .search-form .search-field { width: 100%; }
	body.huro-modern #main-nav { position: relative; top: 0; }
	body.huro-modern .main-navigation ul li a::after { display: none; }
	.huro-hero { padding: 44px 0 52px; }
	.huro-hero__lead { font-size: 17px; }
	.huro-grid, .huro-docs__list { grid-template-columns: 1fr; }
	.huro-section { padding: 44px 0; }
	body.huro-modern .huro-section__title { font-size: 26px; }
	.huro-join__inner { padding: 30px 24px; }
	body.huro-modern .wpcf7 form { padding: 18px; }
}
