/* Global Reset & Base Styles */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	line-height: 1.6;
	color: #333;
	background-color: #f4f7f6; /* Light grayish background */
	overflow-x: hidden; /* Prevent horizontal scroll */
}

html {
	scroll-behavior: smooth;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
	margin-bottom: 0.75em;
	color: #2c3e50; /* Dark blue-gray for headings */
	line-height: 1.2;
}

h1 {
	font-size: 2.8rem;
}

h2 {
	font-size: 2.2rem;
}

h3 {
	font-size: 1.6rem;
}

p {
	margin-bottom: 1em;
	color: #555; /* Slightly lighter text color for paragraphs */
}

a {
	color: #3498db; /* Vibrant blue for links */
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: #2980b9; /* Darker blue on hover */
	text-decoration: underline;
}

ul {
	list-style-position: inside;
	padding-left: 0; /* Remove default padding for ul if styling with custom markers */
}

li {
	margin-bottom: 0.5em;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Container */
.container {
	width: 90%;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 15px;
}

/* Header & Navigation */
header {
	background-color: #ffffff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	padding: 1em 0;
	position: sticky;
	top: 0;
	z-index: 1000;
	width: 100%;
}

header nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-size: 1.2em;
	font-weight: bold;
	color: #2c3e50; /* Dark blue-gray */
	text-decoration: none;
}

.logo img {
	height: 40px;
	width: auto;
}

.logo:hover {
	color: #3498db;
	text-decoration: none;
}

header nav ul {
	list-style: none;
	display: flex;
	margin: 0;
	padding: 0;
}

header nav ul li {
	margin-left: 25px;
	margin-bottom: 0;
}

header nav ul li a {
	text-decoration: none;
	color: #555;
	font-weight: 500;
	padding: 0.5em 0;
	position: relative;
}

header nav ul li a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: #3498db;
	transition: width 0.3s ease;
}

header nav ul li a:hover::after,
header nav ul li a.active::after {
	/* Assuming an 'active' class for current page */
	width: 100%;
}
header nav ul li a:hover,
header nav ul li a.active {
	color: #3498db;
	text-decoration: none;
}

.mobile-nav-toggle {
	display: none; /* Hidden by default, shown in media query */
	background: none;
	border: none;
	font-size: 1.8rem;
	color: #2c3e50;
	cursor: pointer;
}

/* Main Content & Sections */
main {
	padding-top: 20px; /* Add some space below sticky header */
}

section {
	padding: 60px 0;
	overflow: hidden; /* For animations and layout */
}

.animated-section {
	opacity: 0;
	transform: scale(0.95) translateY(20px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animated-section.visible {
	opacity: 1;
	transform: scale(1) translateY(0);
}

/* Hero Section */
.hero-section {
	background-size: cover;
	background-position: center center;
	color: #ffffff;
	text-align: center;
	padding: 100px 0;
	position: relative;
}
.hero-section::before {
	/* Overlay for better text readability */
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(44, 62, 80, 0.6); /* Dark semi-transparent overlay */
	z-index: 1;
}
.hero-section .container {
	position: relative;
	z-index: 2;
}

.hero-section h1 {
	font-size: 3.5rem;
	margin-bottom: 0.5em;
	color: #ffffff;
	font-weight: 700;
}

.hero-section p {
	font-size: 1.2rem;
	margin-bottom: 1.5em;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
	color: #e0e0e0; /* Lighter text on dark background */
}

/* Buttons */
.btn {
	display: inline-block;
	background-color: #3498db; /* Primary blue */
	color: #ffffff;
	padding: 12px 25px;
	border-radius: 5px;
	text-decoration: none;
	font-weight: bold;
	transition: background-color 0.3s ease, transform 0.2s ease;
	border: none;
	cursor: pointer;
	font-size: 1rem;
}

.btn:hover {
	background-color: #2980b9; /* Darker blue */
	color: #ffffff;
	text-decoration: none;
	transform: translateY(-2px);
}

.btn-secondary {
	margin-top: 5px;
	background-color: #7f8c8d; /* Gray for secondary actions */
	color: #ffffff;
}

.btn-secondary:hover {
	background-color: #6c7a7b; /* Darker gray */
}

/* Stories Showcase (Cards) */
#stories-showcase {
	background-color: #ffffff; /* White background for card section */
}

#stories-showcase h2,
#our-mission h2,
#deep-dive h2,
#tech-trends h2,
#community-voice h2,
#faq-section h2,
#contact-section h2 {
	text-align: center;
	margin-bottom: 40px;
}

.cards-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}

.card {
	background-color: #ffffff;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.card h3 {
	font-size: 1.4rem;
	color: #2c3e50;
	margin: 15px 20px 10px;
}

.card p {
	font-size: 0.95rem;
	color: #555;
	margin: 0 20px 15px;
	flex-grow: 1; /* Allows paragraph to take available space */
}

.card .read-more {
	display: inline-block;
	padding: 10px 20px;
	margin: 0 20px 20px;
	color: #3498db;
	font-weight: bold;
	text-decoration: none;
	align-self: flex-start;
}

.card .read-more:hover {
	text-decoration: underline;
}

/* Text-Only Section */
.text-only-section {
	background-color: #eaf2f8; /* Very light blue, almost white */
	padding: 60px 0;
}
.text-only-section .container {
	max-width: 800px; /* Narrower container for better readability */
}
.text-only-section h2 {
	text-align: left;
}

/* Deep Dive Section */
.deep-dive-section {
	background-color: #ffffff;
}
.content-image-split {
	display: flex;
	align-items: center;
	gap: 40px;
}
.content-image-split .text-content {
	flex: 1;
}
.content-image-split .image-content {
	flex: 1;
	max-width: 500px; /* Control image size */
}
.content-image-split .image-content img {
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Emoji Sections (Tech Trends, Community Voice) */
.emoji-section {
	text-align: center;
}
.emoji-section h2 {
	margin-bottom: 20px; /* Slightly less margin for emoji sections */
}
.emoji-section p,
.emoji-section ul {
	font-size: 1.1rem;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
	color: #444;
}
.emoji-section ul {
	list-style: none;
	padding: 0;
}
.emoji-section ul li {
	margin-bottom: 0.8em;
	background-color: #fff;
	padding: 15px;
	border-radius: 5px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.trends-content {
	display: flex;
	align-items: center;
	gap: 20px;
	text-align: left;
	max-width: 800px;
	margin: 0 auto;
	background-color: #fff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.trends-icon {
	width: 80px; /* Adjust size as needed */
	height: 80px;
	flex-shrink: 0;
}

/* Legal Pages Styling */
.legal-page main {
	padding-top: 40px;
	padding-bottom: 40px;
	background-color: #fff;
}
.legal-page .container {
	max-width: 800px;
}
.legal-page h1 {
	font-size: 1.5rem;
	margin-bottom: 1em;
	border-bottom: 2px solid #eee;
	padding-bottom: 0.5em;
}
.legal-page h2 {
	font-size: 1.5rem;
	margin-top: 1.5em;
	margin-bottom: 0.5em;
	color: #34495e; /* Slightly different heading color for legal */
}
.legal-page h3 {
	font-size: 1.4rem;
	margin-top: 1.2em;
	margin-bottom: 0.5em;
	color: #34495e;
}
.legal-page p,
.legal-page li {
	font-size: 1rem;
	line-height: 1.7;
	color: #444;
}
.legal-page ul {
	padding-left: 20px;
	list-style: disc;
}
.legal-page em {
	color: #777;
	font-style: italic;
}

/* FAQ Section */
#faq-section {
	background-color: #f9f9f9;
}
.faq-item {
	background-color: #ffffff;
	margin-bottom: 15px;
	border-radius: 5px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	overflow: hidden; /* Ensures border-radius is respected by children */
}
.faq-question {
	width: 100%;
	background-color: transparent; /* Button takes color from .faq-item or set explicit */
	border: none;
	padding: 20px;
	text-align: left;
	font-size: 1.2rem;
	font-weight: 600;
	color: #2c3e50;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: background-color 0.3s ease;
}
.faq-question:hover {
	background-color: #ecf0f1; /* Light gray on hover */
}
.faq-question::after {
	/* Basic arrow icon */
	content: '+';
	font-size: 1.5rem;
	font-weight: bold;
	color: #3498db;
	transition: transform 0.3s ease;
}
.faq-item.active .faq-question::after {
	transform: rotate(45deg);
}
.faq-answer {
	padding: 0 20px;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease-out, padding 0.4s ease-out;
	background-color: #ffffff; /* Ensure it has a background if needed */
}
.faq-answer p {
	margin: 0; /* Remove default p margin if padding is on .faq-answer */
	padding: 20px 0; /* Add padding inside paragraph if no padding on .faq-answer */
	color: #555;
	font-size: 1rem;
}
.faq-item.active .faq-answer {
	max-height: 500px; /* Adjust as needed for content length */
	padding: 0 20px 20px; /* Control padding on open */
}

#form-status.error {
	color: #e74c3c; /* Red for error */
}

/* Form Submission Modal */
.form-submission-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent backdrop */
	display: none; /* Hidden by default */
	align-items: center;
	justify-content: center;
	z-index: 2001; /* Higher than cookie modal */
	padding: 20px;
}

.form-submission-modal.active {
	display: flex;
}

.form-submission-modal-content {
	background-color: #ffffff;
	color: #333;
	padding: 30px 40px;
	border-radius: 8px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
	text-align: center;
	min-width: 300px;
	max-width: 500px;
}

.form-submission-modal-content .modal-state p {
	font-size: 1.1rem;
	margin: 0;
	color: #2c3e50;
}

/* Contact Form Section */
#contact-section {
	background-color: #ffffff;
}
.contact-form-container {
	display: flex;
	gap: 40px;
	background-color: #f9f9f9;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
#contact-form {
	flex: 2; /* Form takes more space */
}
.contact-details-sidebar {
	flex: 1;
	background-color: #eaf2f8;
	padding: 25px;
	border-radius: 8px;
}
.contact-details-sidebar h3 {
	color: #2c3e50;
	margin-bottom: 10px;
}
.contact-details-sidebar p {
	font-size: 0.95rem;
	margin-bottom: 15px;
	line-height: 1.5;
}
.form-group {
	margin-bottom: 20px;
}
.form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #444;
}
.form-group input[type='text'],
.form-group input[type='email'],
.form-group textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 1rem;
	transition: border-color 0.3s ease;
}
.form-group input[type='text']:focus,
.form-group input[type='email']:focus,
.form-group textarea:focus {
	border-color: #3498db;
	outline: none;
	box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}
.form-group textarea {
	resize: vertical;
	min-height: 120px;
}
.form-group-checkbox {
	display: flex;
	align-items: center;
	gap: 10px; /* Spacing between checkbox and label */
}
.form-group-checkbox input[type='checkbox'] {
	width: auto; /* Override default width for inputs */
	margin-right: 5px; /* Space between checkbox and label text */
	accent-color: #3498db; /* Color the checkbox itself if supported */
}
.form-group-checkbox label {
	margin-bottom: 0; /* Remove default label margin */
	font-weight: normal; /* Make consent label less prominent than field labels */
	font-size: 0.9rem;
	color: #555;
}
#form-status {
	margin-top: 15px;
	font-weight: bold;
}
#form-status.success {
	color: #2ecc71; /* Green for success */
}

/* Footer */
footer {
	background-color: #2c3e50; /* Dark blue-gray */
	color: #bdc3c7; /* Light gray text */
	padding: 40px 0;
	text-align: center;
}
.footer-links {
	margin-bottom: 20px;
}
.footer-links a {
	color: #ecf0f1; /* Very light gray, almost white */
	margin: 0 10px;
	text-decoration: none;
	transition: color 0.3s ease;
}
.footer-links a:hover {
	color: #3498db; /* Primary blue on hover */
	text-decoration: underline;
}
.contact-info p {
	margin-bottom: 0.5em;
	font-size: 0.9rem;
	color: #bdc3c7;
}
.contact-info a {
	color: #ecf0f1;
}
.contact-info a:hover {
	color: #3498db;
}
.copyright {
	margin-top: 20px;
	font-size: 0.9rem;
	color: #95a5a6; /* Darker gray for copyright */
}

/* Cookie Consent Modal */
.cookie-modal {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: rgba(44, 62, 80, 0.95); /* Dark, slightly transparent */
	color: #ecf0f1;
	padding: 25px;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
	z-index: 2000;
	display: none; /* Hidden by default, shown by JS */
	align-items: center; /* Vertically align items if modal content is flex container */
	justify-content: center; /* Horizontally align items */
	text-align: center;
}
.cookie-modal.active {
	display: block; /* Or flex/grid depending on inner layout needs */
}
.cookie-modal-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px; /* Space between p and buttons div */
}

.cookie-modal-content p {
	margin: 0 0 15px 0; /* Remove bottom margin or adjust if using gap */
	font-size: 1rem;
	max-width: 600px;
	color: #ecf0f1;
}

.cookie-modal-buttons {
	display: flex;
	gap: 15px;
}
.cookie-modal .btn {
	padding: 10px 20px;
}
.cookie-modal .btn-secondary {
	background-color: #95a5a6; /* Lighter gray for decline */
}
.cookie-modal .btn-secondary:hover {
	background-color: #7f8c8d;
}

/* Responsive Design */
@media (max-width: 992px) {
	.content-image-split {
		flex-direction: column;
	}
	.content-image-split .text-content,
	.content-image-split .image-content {
		max-width: 100%; /* Full width on smaller screens */
	}
	.trends-content {
		flex-direction: column;
		text-align: center;
	}
	.trends-icon {
		margin-bottom: 15px;
	}
	.contact-form-container {
		flex-direction: column;
	}
}

@media (max-width: 768px) {
	h1 {
		font-size: 2.2rem;
	}
	.hero-section h1 {
		font-size: 2.5rem;
	}
	h2 {
		font-size: 1.8rem;
	}
	h3 {
		font-size: 1.4rem;
	}

	header nav ul {
		display: none; /* Hide desktop nav */
		flex-direction: column;
		position: absolute;
		top: 100%; /* Position below header */
		left: 0;
		width: 100%;
		background-color: #ffffff;
		box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
		padding: 10px 0;
	}
	header nav ul.active {
		/* JS will toggle this class */
		display: flex;
	}
	header nav ul li {
		margin: 10px 20px;
		text-align: center;
	}
	.mobile-nav-toggle {
		display: block; /* Show hamburger menu */
	}

	.cards-container {
		grid-template-columns: 1fr; /* Single column for cards */
	}

	.footer-links {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}
	.footer-links a {
		margin: 5px 0;
	}

	.cookie-modal-content {
		flex-direction: column;
		align-items: center;
	}
	.cookie-modal-buttons {
		flex-direction: column; /* Stack buttons on small screens */
		width: 100%;
		max-width: 250px; /* Limit button stack width */
	}
	.cookie-modal .btn {
		width: 100%;
	}
}

@media (max-width: 576px) {
	body {
		font-size: 15px; /* Slightly smaller base font for small devices */
	}
	.hero-section {
		padding: 60px 0;
	}
	.hero-section h1 {
		font-size: 2rem;
	}
	.hero-section p {
		font-size: 1rem;
	}
	section {
		padding: 40px 0;
	}
	.container {
		width: 95%;
	}
	.btn {
		padding: 10px 20px;
		font-size: 0.9rem;
	}
	.form-group input[type='text'],
	.form-group input[type='email'],
	.form-group textarea {
		padding: 10px;
	}
}
