/* ========================================
   RIBOLOVNO.HR - NOVOSTI V5
======================================== */

.rib-novosti{
	--news-green:#22c55e;
	--news-text:#f5f7f5;
	--news-muted:#a7b3ac;
	--news-border:rgba(255,255,255,.10);
	width:100%;
	max-width:1320px;
	margin:0 auto;
	padding:28px 28px 72px;
	color:var(--news-text);
}

.rib-novosti__intro{
	max-width:760px;
	margin:0 auto 24px;
	text-align:center;
}

.rib-novosti__eyebrow{
	display:block;
	color:var(--news-green);
	font-size:12px;
	font-weight:800;
	letter-spacing:.13em;
	text-transform:uppercase;
}

.rib-novosti__title{
	margin:4px 0 9px;
	color:#fff;
	font-size:clamp(36px,4vw,50px);
	line-height:1.06;
	font-weight:800;
}

.rib-novosti__lead{
	margin:0 auto;
	color:var(--news-muted);
	font-size:15px;
	line-height:1.65;
}

.rib-novosti__filters{
	display:flex;
	flex-wrap:wrap;
	justify-content:center;
	gap:10px;
	margin:0 auto 34px;
}

.rib-novosti__filter{
	min-height:42px;
	padding:9px 16px;
	border:1px solid var(--news-border);
	border-radius:10px;
	background:rgba(255,255,255,.025);
	color:#dce3df;
	font:inherit;
	font-size:14px;
	font-weight:700;
	cursor:pointer;
	transition:.2s ease;
}

.rib-novosti__filter:hover{
	border-color:rgba(34,197,94,.55);
	color:#fff;
}

.rib-novosti__filter.is-active{
	border-color:var(--news-green);
	background:rgba(34,197,94,.13);
	color:var(--news-green);
}

.rib-novosti__grid{
	display:grid;
	grid-template-columns:repeat(3,minmax(0,1fr));
	gap:22px;
	align-items:stretch;
}

.rib-novosti-card{
	display:flex;
	flex-direction:column;
	min-width:0;
	overflow:hidden;
	border:1px solid var(--news-border);
	border-radius:16px;
	background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,.008));
	transition:transform .22s ease,border-color .22s ease;
}

.rib-novosti-card:hover{
	transform:translateY(-3px);
	border-color:rgba(34,197,94,.38);
}

.rib-novosti-card[hidden]{display:none!important}

.rib-novosti-card__image-link{
	display:block;
	text-decoration:none;
}

.rib-novosti-card__image{
	position:relative;
	display:flex;
	align-items:center;
	justify-content:center;
	overflow:hidden;
	aspect-ratio:16/10;
	background:#0a1510;
}

.rib-novosti-card__img{
	display:block;
	width:100%;
	height:100%;
	object-fit:contain;
	object-position:center;
}

.rib-novosti-card__placeholder{
	display:flex;
	align-items:center;
	justify-content:center;
	width:100%;
	height:100%;
	color:rgba(255,255,255,.55);
	font-weight:800;
}

.rib-novosti-badge,
.rib-novosti-featured-badge{
	position:absolute;
	display:inline-flex;
	align-items:center;
	min-height:28px;
	padding:5px 9px;
	border-radius:7px;
	font-size:10px;
	font-weight:800;
	line-height:1;
	text-transform:uppercase;
	letter-spacing:.045em;
	backdrop-filter:blur(6px);
}

.rib-novosti-badge{
	left:13px;
	bottom:13px;
	border:1px solid rgba(34,197,94,.58);
	background:rgba(5,18,12,.91);
	color:#79e89f;
}

.rib-novosti-featured-badge{
	top:13px;
	right:13px;
	border:1px solid rgba(255,255,255,.18);
	background:rgba(5,18,12,.88);
	color:#fff;
}

.rib-novosti-card__body{
	display:flex;
	flex:1;
	flex-direction:column;
	padding:19px;
}

.rib-novosti-meta{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:12px;
	margin-bottom:10px;
	color:var(--news-muted);
	font-size:12px;
}

.rib-novosti-meta__brand{
	color:var(--news-green);
	font-weight:800;
	text-transform:uppercase;
	letter-spacing:.04em;
}

.rib-novosti-card__title{
	margin:0 0 11px;
	font-size:20px;
	line-height:1.3;
	font-weight:800;
}

.rib-novosti-card__title a{
	color:#fff;
	text-decoration:none;
}

.rib-novosti-card__title a:hover{color:var(--news-green)}

.rib-novosti-card__excerpt{
	margin:0 0 18px;
	color:var(--news-muted);
	font-size:14px;
	line-height:1.62;
}

.rib-novosti-more{
	display:inline-flex;
	align-items:center;
	gap:7px;
	width:max-content;
	margin-top:auto;
	color:var(--news-green);
	font-size:14px;
	font-weight:800;
	text-decoration:none;
}

.rib-novosti-more:hover{color:#80eba5}

.rib-novosti__empty,
.rib-novosti__empty-filter{
	margin:25px auto 0;
	padding:25px;
	border:1px dashed var(--news-border);
	border-radius:14px;
	color:var(--news-muted);
	text-align:center;
}

/* ========================================
   SINGLE NOVOST - V6
======================================== */

.rib-single-news{
	--news-green:#22c55e;
	--news-text:#f5f7f5;
	--news-muted:#a7b3ac;
	--news-border:rgba(255,255,255,.10);
	--news-panel:rgba(255,255,255,.025);
	--news-panel-strong:#0a1812;
	width:100%;
	max-width:1220px;
	margin:0 auto;
	padding:46px 22px 74px;
	color:var(--news-text);
}

.rib-single-news__back{
	display:inline-flex;
	align-items:center;
	gap:7px;
	margin-bottom:20px;
	color:var(--news-green);
	font-size:14px;
	font-weight:800;
	text-decoration:none;
}

.rib-single-news__back:hover{
	color:#86edaa;
}

.rib-single-news__shell{
	display:grid;
	grid-template-columns:minmax(0,1fr) 310px;
	gap:18px;
	align-items:start;
	padding:14px;
	border:1px solid rgba(34,197,94,.55);
	border-radius:18px;
	background:linear-gradient(180deg,rgba(34,197,94,.025),rgba(255,255,255,.006));
}

.rib-single-news__article{
	min-width:0;
	overflow:hidden;
	border:1px solid rgba(255,255,255,.08);
	border-radius:15px;
	background:rgba(5,16,11,.52);
}

.rib-single-news__hero{
	position:relative;
	display:flex;
	align-items:center;
	justify-content:center;
	overflow:hidden;
	width:100%;
	background:#07130d;
}

.rib-single-news__image{
	display:block;
	width:100%;
	height:auto;
	max-height:560px;
	object-fit:contain;
	object-position:center;
}

.rib-single-news__image-placeholder{
	display:flex;
	align-items:center;
	justify-content:center;
	min-height:340px;
	width:100%;
	color:rgba(255,255,255,.55);
	font-weight:800;
}

.rib-single-news__hero-badge{
	position:absolute;
	top:14px;
	left:14px;
	display:inline-flex;
	align-items:center;
	min-height:29px;
	padding:6px 10px;
	border:1px solid rgba(34,197,94,.58);
	border-radius:7px;
	background:rgba(5,18,12,.92);
	color:#79e89f;
	font-size:11px;
	font-weight:800;
	line-height:1;
	text-transform:uppercase;
	letter-spacing:.045em;
	backdrop-filter:blur(6px);
}

.rib-single-news__article-body{
	padding:18px 20px 22px;
}

.rib-single-news__meta-line{
	display:flex;
	flex-wrap:wrap;
	align-items:center;
	gap:8px;
	margin-bottom:12px;
	color:var(--news-muted);
	font-size:12px;
}

.rib-single-news__brand{
	color:var(--news-green);
	font-weight:800;
	text-transform:uppercase;
	letter-spacing:.05em;
}

.rib-single-news__dot{
	opacity:.65;
}

.rib-single-news__title{
	margin:0 0 14px;
	color:#fff;
	font-size:clamp(30px,3.2vw,44px);
	line-height:1.08;
	font-weight:800;
}

.rib-single-news__summary{
	margin:0 0 20px;
	color:#b6c1ba;
	font-size:16px;
	line-height:1.7;
}

.rib-single-news__content{
	color:#e7ece9;
	font-size:15px;
	line-height:1.78;
}

.rib-single-news__content p{
	margin:0 0 17px;
}

.rib-single-news__content strong{
	color:#fff;
}

.rib-single-news__video{
	margin-top:24px;
	overflow:hidden;
	border:1px solid rgba(255,255,255,.10);
	border-radius:13px;
	background:#000;
	aspect-ratio:16/9;
}

.rib-single-news__video iframe{
	display:block;
	width:100%;
	height:100%;
	border:0;
}

.rib-single-news__share{
	display:flex;
	flex-wrap:wrap;
	align-items:center;
	gap:9px;
	margin-top:20px;
	padding-top:18px;
	border-top:1px solid rgba(255,255,255,.08);
}

.rib-single-news__share-label{
	margin-right:3px;
	color:var(--news-muted);
	font-size:13px;
}

.rib-single-news__share-btn{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	min-width:38px;
	min-height:38px;
	padding:8px 11px;
	border:1px solid rgba(255,255,255,.12);
	border-radius:9px;
	background:rgba(255,255,255,.035);
	color:#fff;
	font:inherit;
	font-size:13px;
	font-weight:800;
	text-decoration:none;
	cursor:pointer;
	transition:.18s ease;
}

.rib-single-news__share-btn:hover{
	border-color:rgba(34,197,94,.55);
	background:rgba(34,197,94,.10);
	color:#8aefad;
}

.rib-single-news__share-status{
	width:100%;
	margin-top:2px;
	color:#8aefad;
	font-size:12px;
}

.rib-single-news__sidebar{
	display:grid;
	gap:14px;
	position:sticky;
	top:24px;
}

.rib-single-news__side-card{
	padding:18px;
	border:1px solid rgba(255,255,255,.10);
	border-radius:13px;
	background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.018));
}

.rib-single-news__side-card h2{
	margin:0 0 14px;
	color:#fff;
	font-size:18px;
	line-height:1.2;
	font-weight:800;
}

.rib-single-news__info{
	display:grid;
	gap:12px;
	margin:0;
}

.rib-single-news__info-row{
	display:grid;
	grid-template-columns:92px minmax(0,1fr);
	gap:10px;
	align-items:start;
	font-size:13px;
	line-height:1.45;
}

.rib-single-news__info-row dt{
	color:#dce4df;
	font-weight:700;
}

.rib-single-news__info-row dd{
	margin:0;
	color:var(--news-muted);
	overflow-wrap:anywhere;
}

.rib-single-news__links{
	display:grid;
	gap:9px;
}

.rib-single-news__side-link{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:10px;
	min-height:42px;
	padding:10px 12px;
	border:1px solid rgba(255,255,255,.08);
	border-radius:9px;
	background:rgba(255,255,255,.035);
	color:#fff;
	font-size:13px;
	font-weight:800;
	text-decoration:none;
}

.rib-single-news__side-link--primary{
	border-color:rgba(34,197,94,.35);
	background:rgba(34,197,94,.16);
}

.rib-single-news__side-link:hover{
	border-color:rgba(34,197,94,.55);
	color:#8aefad;
}

.rib-single-news__side-copy{
	margin:0 0 13px;
	color:var(--news-muted);
	font-size:13px;
	line-height:1.6;
}

.rib-single-news__mini-list{
	display:grid;
	gap:7px;
}

.rib-single-news__mini-link{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:10px;
	min-height:38px;
	padding:7px 0;
	border-bottom:1px solid rgba(255,255,255,.07);
	color:#e8eeea;
	font-size:13px;
	font-weight:700;
	text-decoration:none;
}

.rib-single-news__mini-link:last-child{
	border-bottom:0;
}

.rib-single-news__mini-link:hover{
	color:var(--news-green);
}

@media(max-width:980px){
	.rib-single-news__shell{
		grid-template-columns:1fr;
	}
	.rib-single-news__sidebar{
		position:static;
		grid-template-columns:repeat(2,minmax(0,1fr));
	}
}

@media(max-width:767px){
	.rib-single-news{
		padding:30px 13px 56px;
	}
	.rib-single-news__shell{
		padding:8px;
		border-radius:14px;
	}
	.rib-single-news__article-body{
		padding:17px 15px 19px;
	}
	.rib-single-news__title{
		font-size:30px;
	}
	.rib-single-news__summary{
		font-size:15px;
	}
	.rib-single-news__sidebar{
		grid-template-columns:1fr;
	}
}

@media(max-width:420px){
	.rib-single-news__info-row{
		grid-template-columns:82px minmax(0,1fr);
	}
}


/* ========================================
   SINGLE NOVOST - V7 DORADE
======================================== */

.rib-single-news{
	max-width:1500px;
	width:min(94vw,1500px);
	padding-left:18px;
	padding-right:18px;
}

.rib-single-news__shell{
	grid-template-columns:minmax(0,1fr) 340px;
	gap:20px;
}

.rib-single-news__image{
	width:100%!important;
	max-width:none!important;
	height:auto!important;
	max-height:none!important;
	object-fit:contain!important;
}

.rib-single-news__hero{
	width:100%;
}

.rib-hp-field{
	position:absolute!important;
	left:-9999px!important;
	width:1px!important;
	height:1px!important;
	opacity:0!important;
	pointer-events:none!important;
}

.rib-single-news__subscribe-form{
	display:grid;
	gap:10px;
}

.rib-single-news__email-input,
.rib-news-modal__form input,
.rib-news-modal__form textarea{
	width:100%;
	min-height:42px;
	padding:10px 12px;
	border:1px solid rgba(255,255,255,.12);
	border-radius:9px;
	background:rgba(255,255,255,.045);
	color:#fff;
	font:inherit;
	font-size:14px;
	outline:none;
}

.rib-news-modal__form textarea{
	resize:vertical;
	min-height:120px;
}

.rib-single-news__email-input:focus,
.rib-news-modal__form input:focus,
.rib-news-modal__form textarea:focus{
	border-color:rgba(34,197,94,.75);
	box-shadow:0 0 0 2px rgba(34,197,94,.10);
}

.rib-single-news__consent{
	display:flex;
	align-items:flex-start;
	gap:8px;
	color:#a7b3ac;
	font-size:11px;
	line-height:1.45;
	cursor:pointer;
}

.rib-single-news__consent input{
	margin-top:2px;
}

.rib-single-news__submit{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	min-height:42px;
	padding:10px 14px;
	border:1px solid rgba(34,197,94,.50);
	border-radius:9px;
	background:rgba(34,197,94,.18);
	color:#8cf0ae;
	font:inherit;
	font-size:13px;
	font-weight:800;
	cursor:pointer;
}

.rib-single-news__submit:hover{
	background:rgba(34,197,94,.25);
}

.rib-single-news__form-success,
.rib-single-news__form-error{
	margin:0 0 10px;
	padding:9px 10px;
	border-radius:8px;
	font-size:12px;
	line-height:1.45;
}

.rib-single-news__form-success{
	border:1px solid rgba(34,197,94,.35);
	background:rgba(34,197,94,.10);
	color:#8cf0ae;
}

.rib-single-news__form-error{
	border:1px solid rgba(239,68,68,.35);
	background:rgba(239,68,68,.08);
	color:#fca5a5;
}

.rib-single-news__latest-list{
	display:grid;
}

.rib-single-news__latest-item{
	display:grid;
	gap:4px;
	padding:10px 0;
	border-bottom:1px solid rgba(255,255,255,.07);
	text-decoration:none;
}

.rib-single-news__latest-item:last-child{
	border-bottom:0;
}

.rib-single-news__latest-title{
	color:#e9eeeb;
	font-size:12px;
	font-weight:750;
	line-height:1.4;
}

.rib-single-news__latest-date{
	color:#85928a;
	font-size:10px;
}

.rib-single-news__latest-item:hover .rib-single-news__latest-title{
	color:#22c55e;
}

.rib-single-news__suggest-trigger{
	width:100%;
	border:1px solid rgba(34,197,94,.35);
	cursor:pointer;
	text-align:left;
}

.rib-news-modal[hidden]{
	display:none!important;
}

.rib-news-modal{
	position:fixed;
	inset:0;
	z-index:999999;
	display:flex;
	align-items:center;
	justify-content:center;
	padding:18px;
}

.rib-news-modal__backdrop{
	position:absolute;
	inset:0;
	background:rgba(0,0,0,.72);
	backdrop-filter:blur(4px);
}

.rib-news-modal__dialog{
	position:relative;
	z-index:1;
	width:min(620px,100%);
	max-height:90vh;
	overflow:auto;
	padding:24px;
	border:1px solid rgba(34,197,94,.50);
	border-radius:16px;
	background:#07140f;
	box-shadow:0 24px 70px rgba(0,0,0,.45);
	color:#fff;
}

.rib-news-modal__dialog h2{
	margin:0 34px 8px 0;
	font-size:24px;
}

.rib-news-modal__dialog > p{
	margin:0 0 18px;
	color:#a7b3ac;
	font-size:13px;
	line-height:1.55;
}

.rib-news-modal__close{
	position:absolute;
	top:12px;
	right:12px;
	width:38px;
	height:38px;
	border:1px solid rgba(255,255,255,.12);
	border-radius:9px;
	background:rgba(255,255,255,.04);
	color:#fff;
	font-size:26px;
	line-height:1;
	cursor:pointer;
}

.rib-news-modal__form{
	display:grid;
	gap:12px;
}

.rib-news-modal__form label{
	display:grid;
	gap:6px;
	color:#dfe6e2;
	font-size:12px;
	font-weight:700;
}

body.rib-news-modal-open{
	overflow:hidden;
}

@media(max-width:1180px){
	.rib-single-news{
		width:min(96vw,1500px);
	}
	.rib-single-news__shell{
		grid-template-columns:minmax(0,1fr) 320px;
	}
}

@media(max-width:980px){
	.rib-single-news__shell{
		grid-template-columns:1fr;
	}
}

@media(max-width:767px){
	.rib-single-news{
		width:100%;
		padding-left:10px;
		padding-right:10px;
	}
	.rib-news-modal{
		padding:10px;
	}
	.rib-news-modal__dialog{
		padding:20px 15px 16px;
	}
}


/* ========================================
   V7.1 - VIDLJIVI INPUTI + ZELENI GUMBI
======================================== */

/* Pretplata - e-mail polje mora biti vidljivo i kada nije fokusirano */
.rib-single-news .rib-single-news__email-input,
.rib-single-news .rib-news-modal__form input,
.rib-single-news .rib-news-modal__form textarea {
	background: #0d2118 !important;
	border: 1px solid rgba(255,255,255,.18) !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	box-shadow: none !important;
}

.rib-single-news .rib-single-news__email-input::placeholder,
.rib-single-news .rib-news-modal__form input::placeholder,
.rib-single-news .rib-news-modal__form textarea::placeholder {
	color: #819189 !important;
	opacity: 1 !important;
}

.rib-single-news .rib-single-news__email-input:hover,
.rib-single-news .rib-news-modal__form input:hover,
.rib-single-news .rib-news-modal__form textarea:hover {
	border-color: rgba(34,197,94,.48) !important;
}

.rib-single-news .rib-single-news__email-input:focus,
.rib-single-news .rib-news-modal__form input:focus,
.rib-single-news .rib-news-modal__form textarea:focus {
	background: #10271d !important;
	border-color: #22c55e !important;
	box-shadow: 0 0 0 2px rgba(34,197,94,.12) !important;
	outline: none !important;
}

/* Svi submit gumbi u Novostima - Ribolovno zelena */
.rib-single-news button.rib-single-news__submit,
.rib-single-news .rib-single-news__submit,
.rib-news-modal button.rib-single-news__submit {
	background: #15803d !important;
	border: 1px solid #22c55e !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

.rib-single-news button.rib-single-news__submit:hover,
.rib-single-news .rib-single-news__submit:hover,
.rib-news-modal button.rib-single-news__submit:hover {
	background: #16a34a !important;
	border-color: #4ade80 !important;
	color: #ffffff !important;
	transform: translateY(-1px);
}

.rib-single-news button.rib-single-news__submit:focus,
.rib-news-modal button.rib-single-news__submit:focus {
	outline: 2px solid rgba(74,222,128,.45) !important;
	outline-offset: 2px;
}

/* Popup naslov */
.rib-news-modal .rib-news-modal__dialog h2,
.rib-news-modal #rib-news-modal-title {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	opacity: 1 !important;
	text-shadow: none !important;
}

/* Popup labeli dodatno pojačani */
.rib-news-modal .rib-news-modal__form label {
	color: #dfe8e2 !important;
}

/* Browser autofill da ne ubaci svijetlo polje */
.rib-single-news input:-webkit-autofill,
.rib-single-news input:-webkit-autofill:hover,
.rib-single-news input:-webkit-autofill:focus,
.rib-news-modal input:-webkit-autofill,
.rib-news-modal input:-webkit-autofill:hover,
.rib-news-modal input:-webkit-autofill:focus {
	-webkit-text-fill-color: #ffffff !important;
	-webkit-box-shadow: 0 0 0 1000px #0d2118 inset !important;
	transition: background-color 9999s ease-out 0s;
}


/* ========================================
   V7.2 - OGRANIČENA VISINA NASLOVNE FOTOGRAFIJE
   Fotografija zadržava svoj omjer i NE reže se.
======================================== */

.rib-single-news .rib-single-news__hero {
	width: 100% !important;
	height: clamp(300px, 31vw, 430px) !important;
	min-height: 0 !important;

	display: flex !important;
	align-items: center !important;
	justify-content: center !important;

	overflow: hidden !important;
	background:
		radial-gradient(circle at center, rgba(34,197,94,.045), transparent 55%),
		#07130d !important;
}

.rib-single-news .rib-single-news__image {
	display: block !important;

	width: 100% !important;
	height: 100% !important;

	max-width: 100% !important;
	max-height: 100% !important;

	object-fit: contain !important;
	object-position: center center !important;

	margin: 0 auto !important;
}

/* Malo širi i skladniji glavni prikaz na većim monitorima */
@media (min-width: 1200px) {
	.rib-single-news {
		width: min(92vw, 1500px) !important;
	}

	.rib-single-news__shell {
		grid-template-columns: minmax(0, 1fr) 340px !important;
	}
}

/* Tablet */
@media (max-width: 980px) {
	.rib-single-news .rib-single-news__hero {
		height: clamp(280px, 52vw, 410px) !important;
	}
}

/* Mobitel */
@media (max-width: 767px) {
	.rib-single-news .rib-single-news__hero {
		height: clamp(220px, 68vw, 340px) !important;
	}

	.rib-single-news .rib-single-news__image {
		width: 100% !important;
		height: 100% !important;
		object-fit: contain !important;
	}
}


/* ========================================
   V7.3 - KOMPROMIS ŠIRINE/VISINE HERO SLIKE
   + UJEDNAČENE SLIKE KARTICA NA /NOVOSTI/
======================================== */

/*
 * SINGLE NOVOST:
 * Slika sada popunjava širinu hero prostora bez deformacije.
 * Koristi cover, pa se kod izrazito visokih/slikovnih formata može
 * minimalno odrezati gornji/donji dio, ali omjer ostaje potpuno očuvan.
 */
.rib-single-news .rib-single-news__hero {
	width: 100% !important;
	height: clamp(320px, 27vw, 410px) !important;
	min-height: 0 !important;
	overflow: hidden !important;
	background: #07130d !important;
}

.rib-single-news .rib-single-news__image {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover !important;
	object-position: center center !important;
	margin: 0 !important;
}

/*
 * GLAVNA STRANICA NOVOSTI:
 * sve kartice imaju jednaku visinu područja slike,
 * pa naslovi i sadržaj počinju u istoj visini.
 */
.rib-novosti .rib-novosti-card__image {
	width: 100% !important;
	height: 185px !important;
	aspect-ratio: auto !important;
	overflow: hidden !important;
	background: #0a1510 !important;
}

.rib-novosti .rib-novosti-card__img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center center !important;
}

/* Desktop - 3 kartice */
@media (min-width: 1025px) {
	.rib-novosti .rib-novosti-card__image {
		height: 190px !important;
	}
}

/* Tablet - 2 kartice */
@media (min-width: 768px) and (max-width: 1024px) {
	.rib-novosti .rib-novosti-card__image {
		height: 200px !important;
	}

	.rib-single-news .rib-single-news__hero {
		height: clamp(300px, 43vw, 390px) !important;
	}
}

/* Mobitel */
@media (max-width: 767px) {
	.rib-novosti .rib-novosti-card__image {
		height: 210px !important;
	}

	.rib-single-news .rib-single-news__hero {
		height: clamp(240px, 62vw, 330px) !important;
	}
}

/* Vrlo uski mobiteli */
@media (max-width: 420px) {
	.rib-novosti .rib-novosti-card__image {
		height: 190px !important;
	}
}


/* ========================================
   V7.4 - MOBITEL: 1 KARTICA U REDU + 95% SINGLE
======================================== */

/* Glavna stranica Novosti - na mobitelu jedna novost u redu */
@media (max-width: 767px) {

	.rib-novosti {
		width: 100% !important;
		max-width: 100% !important;
		padding-left: 12px !important;
		padding-right: 12px !important;
	}

	.rib-novosti__grid {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 18px !important;
		width: 100% !important;
	}

	.rib-novosti-card {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		margin: 0 !important;
	}

	.rib-novosti .rib-novosti-card__image {
		width: 100% !important;
		height: 220px !important;
	}

	.rib-novosti .rib-novosti-card__body {
		width: 100% !important;
		min-width: 0 !important;
	}

	.rib-novosti .rib-novosti-card__title,
	.rib-novosti .rib-novosti-card__excerpt,
	.rib-novosti .rib-novosti-meta {
		overflow-wrap: anywhere !important;
		word-break: normal !important;
	}
}

/* Pojedinačna novost - 95% širine ekrana na mobitelu */
@media (max-width: 767px) {

	.rib-single-news {
		width: 95% !important;
		max-width: 95% !important;
		margin-left: auto !important;
		margin-right: auto !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.rib-single-news__shell {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 auto !important;
		padding: 8px !important;
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.rib-single-news__article,
	.rib-single-news__sidebar {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}

	.rib-single-news__hero {
		width: 100% !important;
	}

	.rib-single-news__article-body {
		width: 100% !important;
		min-width: 0 !important;
	}

	.rib-single-news__title,
	.rib-single-news__summary,
	.rib-single-news__content,
	.rib-single-news__side-card {
		overflow-wrap: anywhere !important;
		word-break: normal !important;
	}
}

/* Vrlo uski mobiteli */
@media (max-width: 380px) {
	.rib-single-news {
		width: 96% !important;
		max-width: 96% !important;
	}

	.rib-novosti {
		padding-left: 9px !important;
		padding-right: 9px !important;
	}
}

/* ========================================
   V7.5 - SINGLE NOVOST: CENTRIRANJE + OVERFLOW FIX
   30.08.2026.

   Problem je nastajao jer je .rib-single-news koristio vw širinu
   unutar već ograničenog .container elementa teme. Na manjim
   desktop/laptop ekranima element je zato mogao biti širi od svog
   roditelja i izlaziti udesno iz viewporta.
======================================== */

/* Samo single Novosti: dopusti stranici dovoljno širok, ali uvijek
   centriran container. Ne utječe na ostale stranice Ribolovno.hr. */
body.single-rib_novost #content > .container,
body.single-rib_novost .site-content > .container {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: 1544px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 22px !important;
	padding-right: 22px !important;
}

/* Glavni wrapper više nikada ne koristi vw unutar theme containera. */
body.single-rib_novost .rib-single-news {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: 1500px !important;
	min-width: 0 !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Grid i oba stupca moraju smjeti stati unutar raspoložive širine. */
body.single-rib_novost .rib-single-news__shell,
body.single-rib_novost .rib-single-news__article,
body.single-rib_novost .rib-single-news__sidebar,
body.single-rib_novost .rib-single-news__article-body,
body.single-rib_novost .rib-single-news__hero,
body.single-rib_novost .rib-single-news__content,
body.single-rib_novost .rib-single-news__video {
	box-sizing: border-box !important;
	min-width: 0 !important;
	max-width: 100% !important;
}

body.single-rib_novost .rib-single-news__shell {
	width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Mediji i dugi URL-ovi ne smiju proširiti članak. */
body.single-rib_novost .rib-single-news__content img,
body.single-rib_novost .rib-single-news__content iframe,
body.single-rib_novost .rib-single-news__content video,
body.single-rib_novost .rib-single-news__content embed,
body.single-rib_novost .rib-single-news__content object {
	max-width: 100% !important;
}

body.single-rib_novost .rib-single-news__content,
body.single-rib_novost .rib-single-news__info-row dd,
body.single-rib_novost .rib-single-news__side-card {
	overflow-wrap: anywhere !important;
}

/* Laptop / manji desktop: sidebar ostaje desno dok za njega ima mjesta,
   ali cijeli layout ostaje unutar ekrana. */
@media (min-width: 981px) and (max-width: 1399px) {
	body.single-rib_novost #content > .container,
	body.single-rib_novost .site-content > .container {
		max-width: 100% !important;
		padding-left: 18px !important;
		padding-right: 18px !important;
	}

	body.single-rib_novost .rib-single-news {
		max-width: 1320px !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	body.single-rib_novost .rib-single-news__shell {
		grid-template-columns: minmax(0, 1fr) minmax(280px, 320px) !important;
		gap: 18px !important;
	}
}

/* Tablet: postojeća logika jednog stupca ostaje, samo uklanjamo mogućnost
   horizontalnog izlaska. */
@media (max-width: 980px) {
	body.single-rib_novost #content > .container,
	body.single-rib_novost .site-content > .container {
		max-width: 100% !important;
		padding-left: 14px !important;
		padding-right: 14px !important;
	}

	body.single-rib_novost .rib-single-news {
		width: 100% !important;
		max-width: 100% !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
}

/* Mobitel: zadržavamo ranije dogovorenih približno 95% širine. */
@media (max-width: 767px) {
	body.single-rib_novost #content > .container,
	body.single-rib_novost .site-content > .container {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	body.single-rib_novost .rib-single-news {
		width: 95% !important;
		max-width: 95% !important;
	}
}

@media (max-width: 380px) {
	body.single-rib_novost .rib-single-news {
		width: 96% !important;
		max-width: 96% !important;
	}
}

/* ========================================
   V7.6 - SINGLE NOVOST: NASLOVI U SADRŽAJU
======================================== */

body.single-rib_novost .rib-single-news__content h2 {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	margin: 30px 0 14px !important;
	font-size: 26px !important;
	line-height: 1.3 !important;
	font-weight: 800 !important;
}

body.single-rib_novost .rib-single-news__content h3 {
	color: #f5f7f5 !important;
	-webkit-text-fill-color: #f5f7f5 !important;
	margin: 24px 0 12px !important;
	font-size: 21px !important;
	line-height: 1.35 !important;
	font-weight: 800 !important;
}

@media (max-width: 767px) {
	body.single-rib_novost .rib-single-news__content h2 {
		font-size: 23px !important;
		margin-top: 26px !important;
	}

	body.single-rib_novost .rib-single-news__content h3 {
		font-size: 19px !important;
	}
}
/* ========================================
   V8 - PREDLOŽI NOVOST
======================================== */
.rib-novosti__suggest-wrap{display:flex;justify-content:center;margin:0 0 30px}
.rib-novosti__suggest-button{display:inline-flex;align-items:center;gap:10px;padding:11px 18px;border:1px solid rgba(34,197,94,.35);border-radius:10px;background:rgba(34,197,94,.08);color:#22c55e!important;font-weight:700;text-decoration:none!important;transition:.2s ease}
.rib-novosti__suggest-button:hover{background:#22c55e;color:#031109!important;transform:translateY(-1px)}

.rib-news-submit-page{padding:34px 20px 60px;color:#edf7f0}
.rib-news-submit{max-width:980px;margin:0 auto}
.rib-news-submit__back{display:inline-flex;margin:0 0 18px;color:#22c55e!important;font-weight:700;text-decoration:none!important}
.rib-news-submit__hero{padding:28px 30px;margin-bottom:18px;border:1px solid rgba(34,197,94,.22);border-radius:18px;background:linear-gradient(180deg,rgba(11,30,20,.95),rgba(7,22,15,.95))}
.rib-news-submit__eyebrow{display:block;margin-bottom:8px;color:#22c55e;font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.rib-news-submit__hero h1{margin:0 0 10px;color:#fff;font-size:clamp(30px,4vw,46px);line-height:1.08}
.rib-news-submit__hero p{max-width:760px;margin:0;color:#aebdb4;line-height:1.65}
.rib-news-submit__notice{margin:0 0 18px;padding:14px 16px;border-radius:12px;font-weight:650}
.rib-news-submit__notice--success{border:1px solid rgba(34,197,94,.38);background:rgba(34,197,94,.12);color:#baf7cd}
.rib-news-submit__notice--error{border:1px solid rgba(248,113,113,.38);background:rgba(248,113,113,.10);color:#fecaca}
.rib-news-submit__form{display:grid;gap:14px}
.rib-news-submit__section{padding:24px;border:1px solid rgba(255,255,255,.08);border-radius:16px;background:#0b1711}
.rib-news-submit__section-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid rgba(255,255,255,.07)}
.rib-news-submit__section-head>span{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:9px;background:rgba(34,197,94,.14);color:#22c55e;font-weight:800}
.rib-news-submit__section-head h2{margin:0 0 4px;color:#fff;font-size:21px}
.rib-news-submit__section-head p{margin:0;color:#829288;font-size:14px}
.rib-news-submit__grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.rib-news-submit__field{display:flex;flex-direction:column;gap:7px}
.rib-news-submit__field--full{grid-column:1/-1}
.rib-news-submit__field label{color:#dce9e0;font-weight:700;font-size:14px}
.rib-news-submit__field em,.rib-news-submit__consent em{color:#22c55e;font-style:normal}
.rib-news-submit__field input,.rib-news-submit__field select,.rib-news-submit__field textarea{width:100%;box-sizing:border-box;border:1px solid rgba(255,255,255,.09)!important;border-radius:9px!important;background:#16231c!important;color:#f4faf6!important;box-shadow:none!important;padding:12px 13px!important}
.rib-news-submit__field input:focus,.rib-news-submit__field select:focus,.rib-news-submit__field textarea:focus{border-color:#22c55e!important;outline:none!important;box-shadow:0 0 0 2px rgba(34,197,94,.12)!important}
.rib-news-submit__field textarea{resize:vertical;line-height:1.55}
.rib-news-submit__field small{color:#788b7f}
.rib-news-submit__field input[type=file]{padding:10px!important}
.rib-news-submit__section--final{text-align:center}
.rib-news-submit__consent{display:flex;align-items:flex-start;justify-content:center;gap:10px;max-width:780px;margin:0 auto 18px;color:#b8c7bd;text-align:left;line-height:1.5}
.rib-news-submit__consent input{margin-top:4px;accent-color:#22c55e}
.rib-news-submit__button{display:inline-flex;justify-content:center;align-items:center;min-height:50px;padding:0 26px;border:0;border-radius:11px;background:#22c55e;color:#041109;font-weight:800;cursor:pointer;transition:.2s ease}
.rib-news-submit__button:hover{filter:brightness(1.06);transform:translateY(-1px)}
.rib-news-submit__note{margin:12px 0 0;color:#75867b;font-size:13px}

@media(max-width:720px){
  .rib-news-submit-page{padding:20px 14px 44px}
  .rib-news-submit__hero{padding:22px 18px}
  .rib-news-submit__section{padding:18px 14px}
  .rib-news-submit__grid{grid-template-columns:1fr}
  .rib-news-submit__field--full{grid-column:auto}
  .rib-news-submit__button{width:100%}
}


/* ========================================
   PREDLOŽI NOVOST - V9 UX POLISH
======================================== */

/* Na ovoj stranici koristimo vlastiti hero pa skrivamo generički bijeli naslov teme. */
body.rib-news-submit-route .entry-header,
body.rib-news-submit-route .hp-page__title{
	display:none!important;
}

body.rib-news-submit-route .site-content{
	background:#03110b!important;
}

/* Čitljiviji placeholderi. */
.rib-news-submit__field input::placeholder,
.rib-news-submit__field textarea::placeholder{
	color:#a9b9af!important;
	opacity:1!important;
}

.rib-news-submit__field select:invalid{
	color:#a9b9af!important;
}

/* Frontend rich-text editor u tamnom Ribolovno.hr stilu. */
.rib-news-submit__editor-help{
	margin:0 0 8px;
	color:#8fa198;
	font-size:13px;
	line-height:1.55;
}

.rib-news-submit__editor-field .wp-editor-wrap{
	border:1px solid rgba(255,255,255,.10);
	border-radius:11px;
	overflow:hidden;
	background:#16231c;
}

.rib-news-submit__editor-field .wp-editor-tools,
.rib-news-submit__editor-field .wp-editor-container,
.rib-news-submit__editor-field .mce-toolbar-grp,
.rib-news-submit__editor-field .mce-container-body,
.rib-news-submit__editor-field .mce-panel{
	border-color:rgba(255,255,255,.09)!important;
	background:#132019!important;
}

.rib-news-submit__editor-field .mce-toolbar .mce-btn,
.rib-news-submit__editor-field .mce-toolbar .mce-btn-group .mce-btn{
	background:transparent!important;
	border-color:transparent!important;
}

.rib-news-submit__editor-field .mce-toolbar .mce-btn:hover,
.rib-news-submit__editor-field .mce-toolbar .mce-btn.mce-active{
	background:rgba(34,197,94,.14)!important;
}

.rib-news-submit__editor-field .mce-toolbar .mce-ico,
.rib-news-submit__editor-field .mce-toolbar .mce-txt,
.rib-news-submit__editor-field .mce-toolbar .mce-caret{
	color:#e9f5ed!important;
}

.rib-news-submit__editor-field .mce-statusbar{
	background:#101b15!important;
	border-top:1px solid rgba(255,255,255,.07)!important;
}

.rib-news-submit__editor-field .mce-path-item,
.rib-news-submit__editor-field .mce-resizehandle i{
	color:#819388!important;
}

/* Textarea fallback ako se vizualni editor ne učita. */
.rib-news-submit__editor-field textarea.wp-editor-area{
	min-height:320px;
	border:0!important;
	border-radius:0!important;
	background:#16231c!important;
	color:#f4faf6!important;
}
