/* =========================================================
   MONEYBULL STOCK HOME
   GeneratePress + Gutenberg
   Version 3.0.0
   ========================================================= */


/* =========================================================
   01. ROOT
   ========================================================= */

.mb-stock-home {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
	font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #191f28;
	letter-spacing: -0.025em;
}

.mb-stock-home *,
.mb-stock-home *::before,
.mb-stock-home *::after {
	box-sizing: border-box;
}

.mb-stock-home a {
	text-decoration: none;
}

.mb-stock-home img {
	max-width: 100%;
	height: auto;
}


/* =========================================================
   02. SECTION
   ========================================================= */

.mb-stock-home section {
	width: 100%;
	margin: 0 0 42px;
}

.mb-section-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin: 0 0 18px;
}

.mb-section-header > div {
	min-width: 0;
}

.mb-section-label {
	display: block;
	margin-bottom: 5px;
	color: #2563eb;
	font-size: 11px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: 0.08em;
}

.mb-section-header h2 {
	margin: 0;
	color: #191f28;
	font-size: 25px;
	line-height: 1.3;
	font-weight: 800;
	letter-spacing: -0.045em;
}

.mb-section-header > a {
	flex-shrink: 0;
	color: #64748b;
	font-size: 13px;
	font-weight: 700;
	transition: color .2s ease;
}

.mb-section-header > a:hover {
	color: #2563eb;
}


/* =========================================================
   03. HERO
   ========================================================= */

.mb-market-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
	gap: 30px;

	width: 100%;
	margin: 0 0 22px;
	padding: 38px;

	background: #ffffff;
	border: 1px solid #e7eaf0;
	border-radius: 28px;

	box-shadow: 0 10px 35px rgba(15, 23, 42, 0.05);
}

.mb-market-hero-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

.mb-market-hero-content .mb-label {
	display: inline-flex;
	width: fit-content;
	margin: 0 0 13px;

	color: #2563eb;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
}

.mb-market-hero-content h1 {
	margin: 0 0 17px;

	color: #172033;
	font-size: clamp(36px, 4vw, 54px);
	line-height: 1.13;
	font-weight: 800;
	letter-spacing: -0.065em;
}

.mb-market-hero-content h1 strong {
	color: #2563eb;
	font-weight: 800;
}

.mb-market-hero-content p {
	margin: 0 0 25px;

	color: #64748b;
	font-size: 15px;
	line-height: 1.75;
	letter-spacing: -0.025em;
}


/* =========================================================
   HERO BUTTON
   ========================================================= */

.mb-hero-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}

.mb-hero-buttons a {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 44px;
	padding: 0 18px;

	border-radius: 12px;

	font-size: 13px;
	font-weight: 800;

	transition:
		transform .2s ease,
		box-shadow .2s ease,
		background .2s ease;
}

.mb-hero-buttons a:first-child {
	background: #2563eb;
	color: #ffffff;
	box-shadow: 0 7px 18px rgba(37, 99, 235, .18);
}

.mb-hero-buttons a:last-child {
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	color: #334155;
}

.mb-hero-buttons a:hover {
	transform: translateY(-2px);
}


/* =========================================================
   04. MARKET BOARD - FIXED
   ========================================================= */
.mb-market-board {
	min-width: 0;
	width: 100%;
	padding: 20px;
	background: #f8fafc;
	border: 1px solid #eef1f5;
	border-radius: 21px;
	box-sizing: border-box;
}

.mb-market-board .mb-market-grid {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 10px !important;
	width: 100% !important;
}

.mb-market-card {
	display: flex !important;
	flex-direction: column !important;
	width: 100% !important;
	min-width: 0;
	padding: 15px;
	background: #ffffff;
	border: 1px solid #edf0f4;
	border-radius: 14px;
	box-sizing: border-box;
}


/* =========================================================
   05. STOCK NAVIGATION - FIXED (가운데 정렬 + 빈틈 제거)
   ========================================================= */
.mb-stock-navigation-wrap {
  width: 100%;
  margin: 0 0 42px;
}
.mb-stock-navigation {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 auto !important;
}
/* GB가 자동 감싸도 패딩 제거 */
.mb-stock-navigation .gb-grid-column,
.mb-stock-navigation .gb-inside-container,
.mb-stock-nav-item {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}
.mb-stock-nav-item a {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 112px !important;
  padding: 14px 8px !important;
  background: #fff !important;
  border: 1px solid #e7eaf0 !important;
  border-radius: 17px !important;
  text-align: center !important;
  box-sizing: border-box !important;
  transition: all .2s ease !important;
}
.mb-stock-nav-item a:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1 !important;
  box-shadow: 0 10px 25px rgba(15,23,42,.07);
}
.mb-stock-nav-item a strong {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  margin: 0 0 10px !important;
  background: #f1f5f9 !important;
  border-radius: 12px !important;
  font-size: 18px !important;
}
.mb-stock-nav-item a span {
  color: #1f2937 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-align: center !important;
}
.mb-stock-nav-item a small {
  margin-top: 4px !important;
  color: #94a3b8 !important;
  font-size: 10px !important;
  text-align: center !important;
}

@media (min-width: 1101px) {
  .mb-stock-navigation { grid-template-columns: repeat(8, minmax(0, 1fr)) !important; }
}
@media (max-width: 768px) {
  .mb-stock-navigation { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 7px !important; }
  .mb-stock-nav-item a { min-height: 92px !important; }
  .mb-stock-nav-item a small { display: none !important; }
}
@media (max-width: 480px) {
  .mb-stock-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}


/* =========================================================
   06. MARKET BRIEF
   ========================================================= */

.mb-brief-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.mb-brief-card {
	padding: 22px;

	background: #ffffff;
	border: 1px solid #e7eaf0;
	border-radius: 18px;

	transition:
		transform .2s ease,
		box-shadow .2s ease;
}

.mb-brief-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 25px rgba(15, 23, 42, .06);
}

.mb-brief-card > span {
	display: block;
	margin-bottom: 12px;

	color: #2563eb;
	font-size: 11px;
	font-weight: 800;
}

.mb-brief-card h3 {
	margin: 0 0 8px;
	color: #111827;
	font-size: 18px;
	line-height: 1.4;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.mb-brief-card p {
	margin: 0 0 16px;
	color: #64748b;
	font-size: 13px;
	line-height: 1.65;
}

.mb-brief-card a {
	color: #2563eb;
	font-size: 12px;
	font-weight: 800;
}


/* =========================================================
   07. ADSENSE
   ========================================================= */

.mb-ad-slot {
	width: 100%;
	min-height: 90px;
	margin: 28px 0;
	overflow: hidden;
}

.mb-ad-slot ins.adsbygoogle {
	display: block !important;
	width: 100%;
	min-height: 90px;
	border-radius: 14px;
}


/* =========================================================
   08. HOT STOCKS
   ========================================================= */

.mb-stock-table {
	overflow: hidden;

	background: #ffffff;
	border: 1px solid #e7eaf0;
	border-radius: 18px;
}

.mb-stock-row {
	display: grid;
	grid-template-columns:
		minmax(0, 1fr)
		150px
		100px
		50px;

	align-items: center;
	gap: 20px;

	min-height: 70px;
	padding: 12px 20px;

	border-bottom: 1px solid #f1f3f5;
	color: #111827;
}

.mb-stock-row:last-child {
	border-bottom: 0;
}

.mb-stock-row:not(.mb-stock-header):hover {
	background: #f8fafc;
}

.mb-stock-header {
	min-height: 44px;
	background: #f8fafc;
	color: #94a3b8;
	font-size: 11px;
	font-weight: 700;
}

.mb-stock-row > span:first-child {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.mb-stock-row strong {
	font-size: 14px;
	font-weight: 800;
}

.mb-stock-row small {
	margin-top: 3px;
	color: #94a3b8;
	font-size: 10px;
}

.mb-stock-row em {
	color: #2563eb;
	font-size: 13px;
	font-style: normal;
	font-weight: 800;
}


/* =========================================================
   09. INVESTOR FLOW
   ========================================================= */

.mb-flow-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.mb-flow-card {
	padding: 22px;
	background: #ffffff;
	border: 1px solid #e7eaf0;
	border-radius: 18px;
}

.mb-flow-card > span {
	display: block;
	margin-bottom: 14px;
	color: #191f28;
	font-size: 14px;
	font-weight: 800;
}

.mb-flow-card ol {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: flow;
}

.mb-flow-card li {
	display: flex;
	align-items: center;
	gap: 10px;

	min-height: 40px;

	border-bottom: 1px solid #f1f3f5;

	counter-increment: flow;
}

.mb-flow-card li:last-child {
	border-bottom: 0;
}

.mb-flow-card li::before {
	content: counter(flow);

	display: flex;
	align-items: center;
	justify-content: center;

	flex: 0 0 22px;

	width: 22px;
	height: 22px;

	background: #f1f5f9;
	border-radius: 50%;

	color: #64748b;
	font-size: 10px;
	font-weight: 800;
}

.mb-flow-card li strong {
	font-size: 12px;
}

.mb-flow-card li em {
	margin-left: auto;
	color: #2563eb;
	font-size: 11px;
	font-style: normal;
	font-weight: 800;
}


/* =========================================================
   10. ANALYSIS
   ========================================================= */

.mb-analysis-feature {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

	overflow: hidden;

	background: #111827;
	border-radius: 22px;
}

.mb-analysis-main {
	padding: 36px;
}

.mb-analysis-main .mb-category {
	display: inline-block;
	margin-bottom: 16px;
	color: #93c5fd;
	font-size: 11px;
	font-weight: 800;
}

.mb-analysis-main h3 {
	margin: 0 0 14px;
	color: #ffffff;
	font-size: 28px;
	line-height: 1.35;
	font-weight: 800;
	letter-spacing: -0.04em;
}

.mb-analysis-main p {
	margin: 0 0 22px;
	color: #cbd5e1;
	font-size: 13px;
	line-height: 1.7;
}

.mb-analysis-main a {
	color: #ffffff;
	font-size: 13px;
	font-weight: 800;
}

.mb-analysis-list {
	display: flex;
	flex-direction: column;
	background: #172033;
}

.mb-analysis-list a {
	display: grid;
	grid-template-columns: 34px 1fr;
	column-gap: 10px;
	align-items: center;

	flex: 1;
	padding: 16px 20px;

	border-bottom: 1px solid rgba(255,255,255,.06);
}

.mb-analysis-list a:last-child {
	border-bottom: 0;
}

.mb-analysis-list a:hover {
	background: rgba(255,255,255,.04);
}

.mb-analysis-list span {
	grid-row: span 2;
	color: #64748b;
	font-size: 11px;
	font-weight: 800;
}

.mb-analysis-list strong {
	color: #ffffff;
	font-size: 13px;
	line-height: 1.4;
}

.mb-analysis-list small {
	color: #94a3b8;
	font-size: 10px;
}


/* =========================================================
   11. SECTOR
   ========================================================= */

.mb-sector-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.mb-sector-grid a {
	display: flex;
	flex-direction: column;

	padding: 18px;

	background: #ffffff;
	border: 1px solid #e7eaf0;
	border-radius: 16px;

	transition: .2s ease;
}

.mb-sector-grid a:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(15,23,42,.05);
}

.mb-sector-grid strong {
	color: #111827;
	font-size: 15px;
}

.mb-sector-grid span {
	margin-top: 5px;
	color: #94a3b8;
	font-size: 10px;
}

.mb-sector-grid em {
	margin-top: 12px;
	color: #2563eb;
	font-size: 12px;
	font-style: normal;
	font-weight: 800;
}


/* =========================================================
   12. US STOCK
   ========================================================= */

.mb-us-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 10px;
}

.mb-us-grid a {
	display: flex;
	flex-direction: column;
	padding: 18px;

	background: #ffffff;
	border: 1px solid #e7eaf0;
	border-radius: 16px;

	transition: .2s ease;
}

.mb-us-grid a:hover {
	border-color: #cbd5e1;
	transform: translateY(-2px);
}

.mb-us-grid span {
	color: #94a3b8;
	font-size: 10px;
	font-weight: 800;
}

.mb-us-grid strong {
	margin: 4px 0 10px;
	color: #111827;
	font-size: 14px;
}

.mb-us-grid em {
	color: #2563eb;
	font-size: 11px;
	font-style: normal;
	font-weight: 800;
}


/* =========================================================
   13. ETF
   ========================================================= */

.mb-etf-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.mb-etf-grid a {
	display: flex;
	flex-direction: column;
	padding: 20px;

	background: #ffffff;
	border: 1px solid #e7eaf0;
	border-radius: 16px;

	transition: .2s ease;
}

.mb-etf-grid a:hover {
	border-color: #bfdbfe;
	background: #f8fbff;
}

.mb-etf-grid strong {
	color: #111827;
	font-size: 14px;
	line-height: 1.4;
}

.mb-etf-grid span {
	margin-top: 6px;
	color: #94a3b8;
	font-size: 11px;
}

.mb-etf-grid em {
	margin-top: 14px;
	color: #2563eb;
	font-size: 11px;
	font-style: normal;
	font-weight: 800;
}


/* =========================================================
   14. TOOLS
   ========================================================= */

.mb-tools-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.mb-tools-grid a {
	display: flex;
	flex-direction: column;
	padding: 20px;

	background: #ffffff;
	border: 1px solid #e7eaf0;
	border-radius: 16px;

	transition: .2s ease;
}

.mb-tools-grid a:hover {
	border-color: #bfdbfe;
	background: #f8fbff;
}

.mb-tools-grid strong {
	color: #111827;
	font-size: 14px;
}

.mb-tools-grid span {
	margin-top: 7px;
	color: #94a3b8;
	font-size: 11px;
	line-height: 1.5;
}


/* =========================================================
   15. GUIDE
   ========================================================= */

.mb-guide-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.mb-guide-grid a {
	display: flex;
	flex-direction: column;
	padding: 20px;

	background: #ffffff;
	border: 1px solid #e7eaf0;
	border-radius: 16px;

	transition: .2s ease;
}

.mb-guide-grid a:hover {
	border-color: #bfdbfe;
	background: #f8fbff;
}

.mb-guide-grid strong {
	color: #111827;
	font-size: 14px;
}

.mb-guide-grid span {
	margin-top: 7px;
	color: #94a3b8;
	font-size: 11px;
	line-height: 1.5;
}


/* =========================================================
   16. NEWSLETTER
   ========================================================= */

.mb-newsletter {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;

	padding: 32px;

	background: #f1f5f9;
	border-radius: 22px;
}

.mb-newsletter h2 {
	margin: 6px 0 7px;
	color: #111827;
	font-size: 24px;
	line-height: 1.3;
	font-weight: 800;
	letter-spacing: -0.04em;
}

.mb-newsletter p {
	margin: 0;
	color: #64748b;
	font-size: 12px;
}

.mb-newsletter-form {
	display: flex;
	width: 400px;
	max-width: 100%;
}

.mb-newsletter-form input {
	flex: 1;
	min-width: 0;

	height: 46px;
	padding: 0 14px;

	background: #ffffff;
	border: 1px solid #dbe1e8;
	border-radius: 10px 0 0 10px;
	outline: none;
}

.mb-newsletter-form button {
	height: 46px;
	padding: 0 18px;

	background: #2563eb;
	border: 0;
	border-radius: 0 10px 10px 0;

	color: #ffffff;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}


/* =========================================================
   17. DISCLAIMER
   ========================================================= */

.mb-disclaimer {
	padding: 18px;

	background: #f8fafc;
	border: 1px solid #edf0f4;
	border-radius: 14px;
}

.mb-disclaimer strong {
	display: block;
	margin-bottom: 7px;
	color: #475569;
	font-size: 11px;
}

.mb-disclaimer p {
	margin: 0;
	color: #94a3b8;
	font-size: 10px;
	line-height: 1.7;
}


/* =========================================================
   18. TABLET
   ========================================================= */

@media (max-width: 1100px) {

	.mb-market-hero {
		grid-template-columns: 1fr;
	}

	.mb-stock-navigation {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	}

	.mb-us-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.mb-etf-grid,
	.mb-tools-grid,
	.mb-guide-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}


/* =========================================================
   19. MOBILE
   ========================================================= */

@media (max-width: 768px) {

	.mb-stock-home {
		padding: 0 14px;
	}

	.mb-market-hero {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 24px;
		border-radius: 22px;
	}

	.mb-market-hero-content h1 {
		font-size: 34px;
	}

	.mb-market-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mb-stock-navigation {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
		gap: 7px !important;
	}

	.mb-stock-navigation > a {
		min-height: 92px !important;
		padding: 10px 4px !important;
		border-radius: 14px !important;
	}

	.mb-stock-navigation > a strong {
		width: 32px !important;
		height: 32px !important;
		font-size: 15px !important;
	}

	.mb-stock-navigation > a span {
		font-size: 10px !important;
	}

	.mb-stock-navigation > a small {
		display: none !important;
	}

	.mb-brief-grid,
	.mb-flow-grid,
	.mb-sector-grid {
		grid-template-columns: 1fr;
	}

	.mb-stock-row {
		grid-template-columns:
			minmax(0, 1fr)
			90px
			70px
			25px;

		gap: 8px;
		padding: 12px;
	}

	.mb-stock-row strong {
		font-size: 12px;
	}

	.mb-stock-row small {
		font-size: 9px;
	}

	.mb-stock-row > strong {
		font-size: 11px;
	}

	.mb-stock-row em {
		font-size: 10px;
	}

	.mb-analysis-feature {
		grid-template-columns: 1fr;
	}

	.mb-analysis-main {
		padding: 26px;
	}

	.mb-analysis-main h3 {
		font-size: 23px;
	}

	.mb-us-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mb-etf-grid,
	.mb-tools-grid,
	.mb-guide-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mb-newsletter {
		flex-direction: column;
		align-items: flex-start;
		padding: 24px;
	}

	.mb-newsletter-form {
		width: 100%;
	}

	.mb-section-header {
		align-items: center;
	}

	.mb-section-header h2 {
		font-size: 20px;
	}
}


/* =========================================================
   20. SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

	.mb-market-grid {
		grid-template-columns: 1fr;
	}

	.mb-stock-navigation {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.mb-stock-row {
		grid-template-columns:
			minmax(0, 1fr)
			75px
			55px;
	}

	.mb-stock-row > span:last-child {
		display: none;
	}

	.mb-us-grid,
	.mb-etf-grid,
	.mb-tools-grid,
	.mb-guide-grid {
		grid-template-columns: 1fr;
	}

	.mb-market-hero-content h1 {
		font-size: 30px;
	}

	.mb-market-hero-content p {
		font-size: 13px;
	}
}

