/* ================================================================
   TipsTechTut Homepage Block — FRONTEND STYLES
   ================================================================ */

/* ---- Reset scoped to block ---- */
.ttt-homepage-wrap *,
.ttt-homepage-wrap *::before,
.ttt-homepage-wrap *::after {
	box-sizing: border-box;
}

.ttt-homepage-wrap {
	font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
	color: #111827;
	line-height: 1.6;
}

.ttt-homepage-wrap a {
	text-decoration: none;
}

/* ---- Layout Container ---- */
.ttt-container {
	width: 90%;
	max-width: 1250px;
	margin: 0 auto;
}

/* ================================================================
   HERO
   ================================================================ */
.ttt-hero {
	padding: 80px 0;
	background: linear-gradient( to bottom, #ffffff, #f4f7fc );
}

.ttt-hero-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.ttt-badge {
	display: inline-block;
	padding: 10px 18px;
	background: #eff6ff;
	color: #2563eb;
	border-radius: 100px;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 25px;
}

.ttt-hero-h1 {
	font-size: 56px;
	line-height: 1.1;
	font-weight: 800;
	margin-bottom: 24px;
}

.ttt-hero-h1 span {
	color: #2563eb;
}

.ttt-hero-p {
	font-size: 19px;
	color: #4b5563;
	margin-bottom: 35px;
	max-width: 600px;
}

.ttt-hero-buttons {
	display: flex;
	gap: 20px;
	margin-bottom: 40px;
	flex-wrap: wrap;
}

.ttt-btn {
	display: inline-block;
	padding: 16px 30px;
	border-radius: 14px;
	font-weight: 600;
	font-size: 16px;
	transition: background 0.25s, transform 0.2s;
}

.ttt-btn-primary {
	background: #2563eb;
	color: #fff;
}

.ttt-btn-primary:hover {
	background: #1d4ed8;
}

.ttt-btn-secondary {
	border: 2px solid #2563eb;
	color: #2563eb;
	background: #fff;
}

.ttt-btn-secondary:hover {
	background: #eff6ff;
}

/* Social proof */
.ttt-social-proof {
	display: flex;
	align-items: center;
	gap: 15px;
}

.ttt-avatar-group {
	display: flex;
}

.ttt-avatar-group img {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 3px solid #fff;
	margin-left: -10px;
}

.ttt-avatar-group img:first-child {
	margin-left: 0;
}

/* Hero image */
.ttt-hero-image img {
	width: 100%;
	border-radius: 25px;
	box-shadow: 0 20px 50px rgba( 0, 0, 0, 0.08 );
	display: block;
}

/* ================================================================
   SHARED SECTION
   ================================================================ */
.ttt-section {
	padding: 80px 0;
}

.ttt-section-title {
	text-align: center;
	font-size: 40px;
	font-weight: 800;
	margin-bottom: 50px;
}

.ttt-section-title span {
	color: #2563eb;
}

/* ================================================================
   CATEGORIES
   ================================================================ */
.ttt-category-grid {
	display: grid;
	grid-template-columns: repeat( 5, 1fr );
	gap: 25px;
}

.ttt-category-card {
	background: #fff;
	padding: 35px 25px;
	border-radius: 24px;
	transition: transform 0.3s, box-shadow 0.3s;
	border: 1px solid #eef2f7;
}

.ttt-category-card:hover {
	transform: translateY( -6px );
	box-shadow: 0 15px 40px rgba( 0, 0, 0, 0.07 );
}

.ttt-category-icon {
	width: 65px;
	height: 65px;
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 30px;
	margin-bottom: 20px;
}

.ttt-category-card h3 {
	font-size: 20px;
	margin-bottom: 10px;
}

.ttt-category-card p {
	font-size: 15px;
	color: #6b7280;
	margin-bottom: 16px;
}

.ttt-category-card a {
	color: #2563eb;
	font-weight: 600;
}

/* ================================================================
   BLOG CARDS
   ================================================================ */
.ttt-blog-grid {
	display: grid;
	grid-template-columns: repeat( 4, 1fr );
	gap: 25px;
}

.ttt-blog-card {
	background: #fff;
	border-radius: 22px;
	overflow: hidden;
	border: 1px solid #eef2f7;
	transition: transform 0.3s, box-shadow 0.3s;
}

.ttt-blog-card:hover {
	transform: translateY( -6px );
	box-shadow: 0 20px 45px rgba( 0, 0, 0, 0.07 );
}

.ttt-blog-card img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
}

.ttt-blog-content {
	padding: 25px;
}

.ttt-blog-category {
	font-size: 13px;
	font-weight: 700;
	color: #2563eb;
	margin-bottom: 10px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.ttt-blog-card h3 {
	font-size: 20px;
	line-height: 1.4;
	margin-bottom: 12px;
}

.ttt-blog-card p {
	font-size: 15px;
	color: #6b7280;
}

/* ================================================================
   NEWSLETTER
   ================================================================ */
.ttt-newsletter {
	background: #fff;
	padding: 55px;
	border-radius: 30px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 40px;
	border: 1px solid #eef2f7;
	flex-wrap: wrap;
}

.ttt-newsletter h2 {
	font-size: 34px;
	margin-bottom: 8px;
}

.ttt-newsletter p {
	color: #6b7280;
}

.ttt-news-form {
	display: flex;
	gap: 15px;
	min-width: 300px;
	flex: 1;
	max-width: 480px;
}

.ttt-news-form input {
	flex: 1;
	padding: 18px;
	border-radius: 14px;
	border: 1px solid #d1d5db;
	font-size: 16px;
	font-family: inherit;
	outline: none;
}

.ttt-news-form input:focus {
	border-color: #2563eb;
}

.ttt-news-form button {
	background: #2563eb;
	color: #fff;
	border: none;
	padding: 18px 28px;
	border-radius: 14px;
	font-weight: 600;
	font-size: 16px;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.25s;
}

.ttt-news-form button:hover {
	background: #1d4ed8;
}

/* ================================================================
   TRUST
   ================================================================ */
.ttt-trust-grid {
	display: grid;
	grid-template-columns: repeat( 4, 1fr );
	gap: 25px;
}

.ttt-trust-card {
	background: #fff;
	padding: 35px;
	border-radius: 24px;
	text-align: center;
	border: 1px solid #eef2f7;
}

.ttt-trust-icon {
	font-size: 42px;
	margin-bottom: 18px;
}

.ttt-trust-card h3 {
	font-size: 20px;
	margin-bottom: 8px;
}

.ttt-trust-card p {
	font-size: 15px;
	color: #6b7280;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media ( max-width: 1100px ) {
	.ttt-hero-grid {
		grid-template-columns: 1fr;
	}

	.ttt-category-grid {
		grid-template-columns: repeat( 2, 1fr );
	}

	.ttt-blog-grid {
		grid-template-columns: repeat( 2, 1fr );
	}

	.ttt-trust-grid {
		grid-template-columns: repeat( 2, 1fr );
	}
}

@media ( max-width: 768px ) {
	.ttt-hero-h1 {
		font-size: 38px;
	}

	.ttt-category-grid,
	.ttt-blog-grid,
	.ttt-trust-grid {
		grid-template-columns: 1fr;
	}

	.ttt-hero-buttons {
		flex-direction: column;
	}

	.ttt-newsletter {
		padding: 35px 25px;
	}

	.ttt-news-form {
		flex-direction: column;
		max-width: 100%;
		min-width: 0;
	}

	.ttt-section-title {
		font-size: 28px;
	}
}
