/* =========================================================
   TRT MOBILE — BATCH 1
   Homepage foundation + current issue cards
   ========================================================= */

@media (max-width: 768px) {

	/* 1. Mobile reading canvas */
	body.pkp_page_index {
		background: #f7f3ea;
		color: #102d4b;
	}

	body.pkp_page_index .pkp_structure_main {
		width: 100%;
		padding: 0 14px 86px;
		background: #f7f3ea;
	}

	/* 2. Dark TRT mobile header */
	body.pkp_page_index .pkp_structure_head {
		border-bottom: 3px solid #d59a25;
		background: linear-gradient(120deg, #031d33 0%, #0b4165 100%);
		box-shadow: 0 4px 14px rgba(5, 31, 52, .22);
	}

	body.pkp_page_index .pkp_site_name,
	body.pkp_page_index .pkp_site_name a,
	body.pkp_page_index .pkp_site_name a:hover,
	body.pkp_page_index .pkp_site_name a:focus {
		color: #ffffff !important;
		font-family: Georgia, "Times New Roman", serif;
		font-size: 1rem;
		font-weight: 700;
		letter-spacing: .015em;
		text-decoration: none;
	}

	body.pkp_page_index .pkp_site_name {
		padding: 12px 0 !important;
		text-align: center;
	}

	/* Keep the normal OJS menu working for now */
	body.pkp_page_index .pkp_navigation_primary_wrapper {
		border-top: 1px solid rgba(255,255,255,.12);
		background: rgba(0, 18, 33, .26);
	}

	body.pkp_page_index #navigationPrimary a {
		color: #ffffff !important;
	}

	/* 3. Current Issue featured section */
	body.pkp_page_index .current_issue {
		display: grid;
		grid-template-columns: 102px minmax(0, 1fr);
		gap: 14px;
		margin: 20px 0 18px;
		padding: 16px;
		border: 1px solid #e5c37f;
		border-radius: 12px;
		background: #ffffff;
		box-shadow: 0 6px 20px rgba(25, 63, 91, .10);
	}

	body.pkp_page_index .current_issue > h2 {
		grid-column: 1 / -1;
		margin: 0;
		padding-bottom: 10px;
		border-bottom: 1px solid #e7edf2;
		color: #102d4b;
		font: 700 1.02rem/1.2 Arial, sans-serif;
		letter-spacing: .035em;
		text-transform: uppercase;
	}

	body.pkp_page_index .current_issue > a:first-child {
		grid-column: 1;
		grid-row: 2;
		display: block;
		align-self: start;
	}

	body.pkp_page_index .current_issue > a:first-child img {
		display: block;
		width: 100%;
		height: auto;
		border-radius: 5px;
		box-shadow: 0 5px 12px rgba(4, 31, 55, .22);
	}

	body.pkp_page_index .current_issue_title {
		grid-column: 2;
		grid-row: 2;
		margin: 0;
		color: #102d4b;
		font: 700 1.12rem/1.25 Georgia, "Times New Roman", serif;
	}

	/* 4. Compact article list */
	body.pkp_page_index .current_issue .obj_issue_toc {
		grid-column: 1 / -1;
		grid-row: 3;
		margin-top: 5px;
	}

	body.pkp_page_index .current_issue .obj_issue_toc .heading {
		margin: 0 0 10px;
		padding-bottom: 8px;
		border-bottom: 2px solid #d59a25;
		color: #102d4b;
		font: 700 .9rem/1 Arial, sans-serif;
		text-transform: uppercase;
	}

	body.pkp_page_index .current_issue .obj_article_summary {
		margin: 0 0 9px;
		padding: 12px 13px;
		border: 1px solid #e3e8ec;
		border-radius: 9px;
		background: #ffffff;
		box-shadow: 0 2px 8px rgba(25, 63, 91, .05);
	}

	body.pkp_page_index .current_issue .obj_article_summary .title {
		margin: 0 0 6px;
		font: 700 .91rem/1.35 Arial, sans-serif;
	}

	body.pkp_page_index .current_issue .obj_article_summary .title a {
		color: #123e63;
		text-decoration: none;
	}

	body.pkp_page_index .current_issue .obj_article_summary .authors,
	body.pkp_page_index .current_issue .obj_article_summary .pages {
		color: #587087;
		font-size: .76rem;
		line-height: 1.45;
	}

	/* 5. Gold View All Issues action */
	body.pkp_page_index .current_issue > .read_more {
		grid-column: 1 / -1;
		display: block;
		margin-top: 2px;
		padding: 12px 14px;
		border-radius: 7px;
		background: linear-gradient(135deg, #c58416, #e1ad42);
		color: #ffffff !important;
		font: 700 .82rem/1 Arial, sans-serif;
		text-align: center;
		text-decoration: none;
	}
}
/* TRT MOBILE — BATCH 2: SIMPLE MOBILE HEADER */
@media (max-width: 768px) {

	/* Dark compact header */
	body.pkp_page_index .pkp_structure_head,
	body.pkp_page_index .trt-header-rebuild {
		background: #062a46 !important;
	}

	body.pkp_page_index .trt-header-rebuild {
		min-height: 72px !important;
		padding: 0 55px !important;
		border-bottom: 3px solid #d59a25 !important;
	}

	/* Hide the desktop extra text on mobile */
	body.pkp_page_index .trt-header-identity,
	body.pkp_page_index .trt-header-concept {
		display: none !important;
	}

	/* Keep the journal logo centred */
	body.pkp_page_index .trt-header-top,
	body.pkp_page_index .pkp_site_name_wrapper {
		display: flex !important;
		min-height: 69px !important;
		align-items: center !important;
		justify-content: center !important;
	}

	body.pkp_page_index .pkp_site_name {
		margin: 0 !important;
		padding: 0 !important;
		text-align: center !important;
	}

	/* Existing OJS menu button becomes a hamburger */
	body.pkp_page_index .pkp_site_nav_toggle {
		position: absolute !important;
		z-index: 20 !important;
		top: 17px !important;
		left: 14px !important;
		width: 38px !important;
		height: 38px !important;
		border: 1px solid rgba(255,255,255,.35) !important;
		border-radius: 50% !important;
		background: transparent !important;
	}

	body.pkp_page_index .pkp_site_nav_toggle::before {
		color: #ffffff !important;
		content: "\f0c9" !important;
		font-family: FontAwesome !important;
		font-size: 17px !important;
		line-height: 36px !important;
	}

	body.pkp_page_index .pkp_site_nav_toggle span {
		display: none !important;
	}
}
/* TRT MOBILE — BATCH 3: HOMEPAGE HERO */
@media (max-width: 768px) {

	body.pkp_page_index .trt-mobile-hero {
		position: relative;
		display: block !important;
		overflow: hidden;
		min-height: 325px;
		margin: 0 -14px 20px;
		background: linear-gradient(135deg, #062a46, #0b5b83);
	}

	body.pkp_page_index .trt-mobile-hero::after {
		position: absolute;
		inset: 0;
		background: linear-gradient(90deg, rgba(3,22,39,.86), rgba(3,22,39,.28));
		content: "";
	}

	body.pkp_page_index .trt-mobile-hero-image {
		position: absolute;
		inset: 0;
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	body.pkp_page_index .trt-mobile-hero-content {
		position: relative;
		z-index: 2;
		max-width: 290px;
		padding: 48px 23px 36px;
		color: #ffffff;
	}

	body.pkp_page_index .trt-mobile-hero h2 {
		margin: 0 0 15px;
		color: #ffffff;
		font: 700 2.15rem/1.04 Georgia, "Times New Roman", serif;
		letter-spacing: .01em;
		text-shadow: 0 2px 8px rgba(0,0,0,.25);
	}

	body.pkp_page_index .trt-mobile-hero h2 span {
		display: block;
		margin-top: 5px;
		color: #e8bd5e;
		font: 700 1rem/1 Arial, sans-serif;
		letter-spacing: .09em;
	}

	body.pkp_page_index .trt-mobile-hero p {
		margin: 0 0 22px;
		color: #f1f6f9;
		font: .88rem/1.55 Arial, sans-serif;
	}

	body.pkp_page_index .trt-mobile-hero-button {
		display: inline-block;
		padding: 13px 16px;
		border-radius: 6px;
		background: linear-gradient(135deg, #c58416, #e1ad42);
		color: #ffffff !important;
		font: 700 .76rem/1 Arial, sans-serif;
		letter-spacing: .03em;
		text-decoration: none;
		text-transform: uppercase;
	}

	/* The hero uses the homepage image, so do not show it twice */
	body.pkp_page_index .homepage_image {
		display: none !important;
	}
}
/* =========================================================
   TRT MOBILE — BATCH 4
   Current Issue + Featured Articles refinement
   ========================================================= */

@media (max-width: 768px) {

	/* 1. Clear visual separation below the hero */
	body.pkp_page_index .current_issue {
		margin-top: 22px;
		border-top: 4px solid #d59a25;
	}

	/* 2. Current Issue heading */
	body.pkp_page_index .current_issue > h2 {
		display: flex;
		align-items: center;
		justify-content: space-between;
		color: #102d4b;
		font-size: .95rem;
	}

	body.pkp_page_index .current_issue > h2::after {
		color: #628099;
		content: "Latest";
		font: 700 .68rem/1 Arial, sans-serif;
		letter-spacing: .08em;
		text-transform: uppercase;
	}

	/* 3. Issue title with a small publication label */
	body.pkp_page_index .current_issue_title::before {
		display: block;
		margin-bottom: 6px;
		color: #c58416;
		content: "Latest Issue";
		font: 700 .64rem/1 Arial, sans-serif;
		letter-spacing: .1em;
		text-transform: uppercase;
	}

	body.pkp_page_index .current_issue_title {
		font-size: 1.2rem;
		line-height: 1.25;
	}

	/* 4. Change the visual section label to Featured Articles */
	body.pkp_page_index .current_issue .obj_issue_toc .heading {
		font-size: 0;
	}

	body.pkp_page_index .current_issue .obj_issue_toc .heading::before {
		color: #102d4b;
		content: "Featured Articles";
		font: 700 .9rem/1 Arial, sans-serif;
		letter-spacing: .035em;
		text-transform: uppercase;
	}

	/* 5. More polished article cards */
	body.pkp_page_index .current_issue .obj_article_summary {
		position: relative;
		padding: 13px 31px 13px 13px;
		transition: transform .18s ease, box-shadow .18s ease;
	}

	body.pkp_page_index .current_issue .obj_article_summary::after {
		position: absolute;
		top: 50%;
		right: 13px;
		color: #c58416;
		content: "›";
		transform: translateY(-52%);
		font: 700 1.5rem/1 Arial, sans-serif;
	}

	body.pkp_page_index .current_issue .obj_article_summary .title {
		padding-right: 4px;
	}

	body.pkp_page_index .current_issue .obj_article_summary .authors {
		margin-top: 5px;
	}

	body.pkp_page_index .current_issue .obj_article_summary .galleys,
	body.pkp_page_index .current_issue .obj_article_summary .pub_id {
		display: none;
	}
}
/* =========================================================
   TRT MOBILE — BATCH 5
   Fixed bottom navigation
   ========================================================= */

@media (max-width: 768px) {

	body {
		padding-bottom: 76px;
	}

	.trt-mobile-bottom-nav {
		position: fixed;
		z-index: 9999;
		right: 0;
		bottom: 0;
		left: 0;
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		min-height: 64px;
		border-top: 1px solid #d9e1e7;
		background: rgba(255,255,255,.98);
		box-shadow: 0 -4px 18px rgba(9, 39, 65, .12);
	}

	.trt-mobile-nav-item {
		display: flex;
		min-height: 64px;
		align-items: center;
		justify-content: center;
		gap: 4px;
		flex-direction: column;
		color: #31516d !important;
		font: 700 .62rem/1 Arial, sans-serif;
		text-decoration: none !important;
	}

	.trt-mobile-nav-item .fa {
		font-size: 1.08rem;
	}

	.trt-mobile-nav-item.is-active {
		color: #c58416 !important;
	}

	.trt-mobile-nav-item.is-active::before {
		position: absolute;
		top: 0;
		width: 38px;
		height: 3px;
		border-radius: 0 0 3px 3px;
		background: #d59a25;
		content: "";
	}
}
/* =========================================================
   TRT MOBILE — BATCH 6
   Featured article limit + clean action
   ========================================================= */

@media (max-width: 768px) {

	/* 1. Show the first three featured articles only */
	body.pkp_page_index .current_issue .obj_article_summary:nth-of-type(n+4) {
		display: none;
	}

	/* 2. Remove DOI and PDF/Scholar details from homepage cards */
	body.pkp_page_index .current_issue .doiInSummary,
	body.pkp_page_index .current_issue .galleys,
	body.pkp_page_index .current_issue .pub_id {
		display: none !important;
	}

	/* 3. Keep author and page information compact */
	body.pkp_page_index .current_issue .obj_article_summary .authors,
	body.pkp_page_index .current_issue .obj_article_summary .pages {
		overflow: hidden;
		margin-bottom: 0;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	/* 4. Make the existing action visually say View All Articles */
	body.pkp_page_index .current_issue > .read_more {
		font-size: 0;
	}

	body.pkp_page_index .current_issue > .read_more::before {
		content: "View All Articles  →";
		font: 700 .82rem/1 Arial, sans-serif;
		letter-spacing: .02em;
	}

	/* 5. Prevent a very long article area */
	body.pkp_page_index .current_issue .sections {
		margin-bottom: 4px;
	}
}