/* noqai-section.css - Main styles for noqai theme */

/* Global background */
body {
	background-color: #90EE90; /* Light green background */
}

/* Genesis framework compatibility */
.site-container {
	background-color: #90EE90;
}

/* Main content area */
.site-inner {
	background-color: #90EE90;
}

/* Header and footer areas */
.site-header,
.site-footer {
	background-color: #90EE90;
}

/* Content sections */
.content,
.sidebar-primary,
.sidebar-secondary {
	background-color: #90EE90;
}

/* Ensure all sections inherit the background */
* {
	background-color: inherit;
}

/* Override for specific elements that need different backgrounds */
.noqai-section,
.feature-card,
.main-content {
	background-color: #ffffff;
}

/* Noqai section styles - using existing style.css classes */
.noqai-section {
	width: 100%;
	background: #ffffff;
	padding: 20px 0;
}

.container {
	max-width: 1360px;
	margin: 0 auto;
	padding: 0 2rem;
}

/* Add borders to existing blocks */
.main-content {
	border: 1px solid #333;
	border-radius: 8px;
	padding: 2rem;
	background: #f8f9fa;
}

.block {
	border: 1px solid #333;
	border-radius: 8px;
	padding: 1.5rem;
	background: #f8f9fa;
}

/* Flexbox layout for blocks in right column */
.blocks-row {
	display: flex;
	gap: 1rem;
	margin-bottom: 1rem;
}

.block {
	flex: 0 0 calc(50% - 0.5rem);
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.container {
		padding: 0 1rem;
	}
	
	.blocks-row {
		flex-direction: column;
	}
	
	.block {
		flex: 0 0 100%;
	}
}

/* ========================================
   SECTION 2: TEAM MEMBERS (3 COLUMNS)
   ======================================== */

.noqai-section-2 {
	width: 100%;
	background: #2a2a2a;
	padding: 20px 0;
	color: #ffffff;
}

.noqai-section-2 .container {
	max-width: 1360px;
	margin: 0 auto;
	padding: 0 2rem;
}

.noqai-section-2 .flex-row {
	display: flex;
	gap: 2rem;
	align-items: stretch;
}

.noqai-section-2 .section-column {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.noqai-section-2 .section-content {
	background: #2a2a2a;
	border-radius: 12px;
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
	border: 1px solid #444;
}

.noqai-section-2 .section-image {
	width: 100%;
	height: 250px;
	overflow: hidden;
}

.noqai-section-2 .section-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.noqai-section-2 .section-content:hover .section-image img {
	transform: scale(1.05);
}

.noqai-section-2 .section-text {
	padding: 2rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.noqai-section-2 .section-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
	color: #ffffff;
	line-height: 1.3;
}

.noqai-section-2 .section-description {
	font-size: 1rem;
	line-height: 1.6;
	color: #cccccc;
	margin: 0;
}

/* Section Header Title */
.noqai-section-2 .section-header {
	text-align: center;
	margin-bottom: 3rem;
}

.noqai-section-2 .section-main-title {
	font-size: 2.5rem;
	font-weight: 700;
	color: #ffffff;
	margin: 0;
	line-height: 1.2;
}

/* Responsive for Section 2 */
@media (max-width: 1024px) {
	.noqai-section-2 .flex-row {
		gap: 1.5rem;
	}
	
	.noqai-section-2 .section-text {
		padding: 1.5rem;
	}
}

@media (max-width: 768px) {
	.noqai-section-2 .flex-row {
		flex-direction: column;
		gap: 2rem;
	}
	
	.noqai-section-2 .section-column {
		flex: none;
	}
	
	.noqai-section-2 .section-image {
		height: 200px;
	}
}

/* ========================================
   SECTION 3: SCROLLING TEXT BANNER
   ======================================== */

.noqai-section-3 {
	width: 100%;
	background: #f8f9fa;
	padding: 20px 0;
	overflow: hidden;
	border: 1px solid #ddd;
}

/* Scrolling Banner Container */
.scrolling-banner {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	height: 200px;
	background: #f8f9fa;
}

/* Banner Gradients */
.banner-gradient {
	position: absolute;
	top: 0;
	width: 25%;
	height: 100%;
	z-index: 10;
	pointer-events: none;
}

.banner-gradient-left {
	left: 0;
	background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 30%, rgba(255,255,255,0.4) 70%, rgba(255,255,255,0) 100%);
}

.banner-gradient-right {
	right: 0;
	background: linear-gradient(to left, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 30%, rgba(255,255,255,0.4) 70%, rgba(255,255,255,0) 100%);
}

/* Banner Content */
.banner-content {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	border-radius: 8px;
	background: #ffffff;
	z-index: 1;
}

/* Scrolling Text */
.scrolling-text {
	display: flex;
	white-space: nowrap;
	animation: scroll-left 20s linear infinite;
}

.text-line {
	font-size: 9rem;
	font-weight: normal;
	color: #333;
	margin-right: 3rem;
	white-space: nowrap;
}

/* Scrolling Animation */
@keyframes scroll-left {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

/* Responsive Design */
@media (max-width: 1400px) {
	.banner-gradient {
		width: 20%;
	}
}

@media (max-width: 768px) {
	.noqai-section-3 {
		padding: 1rem 0;
	}
	
	.scrolling-banner {
		height: 150px;
	}
	
	.text-line {
		font-size: 1.5rem;
		margin-right: 2rem;
	}
	
	.banner-gradient {
		width: 25%;
	}
}

/* ========================================
   SECTION 4: INTERACTIVE LIST/REPEATER
   ======================================== */

.noqai-section-4 {
	width: 100%;
	background: #ffffff;
	padding: 20px 0;
}

.noqai-section-4 .container {
	max-width: 1360px;
	margin: 0 auto;
	padding: 0 2rem;
}

/* Section Header */
.section-header {
	text-align: right;
	margin-bottom: 3rem;
}

.section-subtitle {
	font-size: 1.1rem;
	color: #28a745;
	font-weight: 500;
	margin: 0 0 1rem 0;
	line-height: 1.4;
}

.section-title {
	font-size: 1.8rem;
	font-weight: 600;
	color: #333;
	margin: 0;
	line-height: 1.4;
	max-width: 800px;
}

/* Services List */
.services-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* List Item */
.list-item {
	position: relative;
	display: flex;
	align-items: center;
	border-bottom: 1px solid #e0e0e0;
	padding: 2rem 0;
	transition: all 0.3s ease;
}

.list-item:last-child {
	border-bottom: none;
}

.list-item:hover {
	background: #f8f9fa;
	border-radius: 8px;
	cursor: pointer;
}

.list-item:hover .item-title {
	color: #ffffff;
	z-index: 10;
}

.list-item:hover .item-number {
	color: #ffffff;
	z-index: 10;
}

.list-item:hover .item-arrow {
	transform: translateX(-1px);
	z-index: 10;
}



/* Item Link */
.item-link {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 5;
	pointer-events: auto;
	cursor: pointer;
}

/* Item Image - Row Size on Hover */
.item-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s ease;
	z-index: 5;
	border-radius: 8px;
}

.list-item:hover .item-image {
	opacity: 1;
	visibility: visible;
}

.item-image img {
	width: 80%;
	height: 80%;
	object-fit: contain;
	border-radius: 4px;
}

/* Item Number */
.item-number {
	font-size: 2rem;
	font-weight: 700;
	color: #333;
	min-width: 60px;
	margin-right: 2rem;
	position: relative;
	z-index: 1;
}

/* Item Title */
.item-title {
	flex: 1;
	font-size: 1.5rem;
	font-weight: 600;
	color: #333;
	margin: 0;
	line-height: 1.3;
	position: relative;
	z-index: 1;
}

/* Item Arrow */
.item-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #666;
	transition: transform 0.3s ease;
	margin-left: 2rem;
	position: relative;
	z-index: 1;
	width: 24px;
	height: 24px;
}

.item-arrow svg {
	width: 100%;
	height: 100%;
	stroke: #666;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: all 0.3s ease;
}

.list-item:hover .item-arrow svg {
	stroke: #000000;
	background: #ffffff;
	border-radius: 4px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive for Section 4 */
@media (max-width: 1024px) {
	.noqai-section-4 .container {
		padding: 0 1.5rem;
	}
	
	.section-title {
		font-size: 1.6rem;
	}
}

@media (max-width: 768px) {
	.noqai-section-4 {
		padding: 2rem 0;
	}
	
	.section-title {
		font-size: 1.4rem;
	}
	
	.section-subtitle {
		font-size: 1rem;
	}
	
	.list-item {
		padding: 1.5rem 0;
	}
	
	.item-number {
		font-size: 1.5rem;
		min-width: 50px;
		margin-right: 1.5rem;
	}
	
	.item-title {
		font-size: 1.25rem;
	}
	
	.item-arrow {
		margin-left: 1.5rem;
	}
}

/* ========================================
   SECTION 5 - TESTIMONIAL
   ======================================== */

.noqai-section-5 {
	background: #F5F8F8;
	padding: 20px 0;
	position: relative; /* Add this for preloader positioning */
}

/* Preloader */
.testimonial-preloader {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(245, 248, 248, 0.95);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	transition: opacity 0.5s ease, visibility 0.5s ease;
}

.testimonial-preloader.hidden {
	opacity: 0;
	visibility: hidden;
}

.preloader-spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #E9EBE8;
	border-top: 4px solid #608087;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-bottom: 1rem;
}

.preloader-text {
	color: #608087;
	font-size: 1rem;
	font-weight: 500;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.noqai-section-5 .container {
	max-width: 1360px;
	margin: 0 auto;
	padding: 0 2rem;
}

/* Testimonials Slider */
.testimonials-slider {
	position: relative;
}

.testimonial-item {
	display: none;
}

.testimonial-item:first-child {
	display: block;
}

/* Simple Two-Column Layout */
.testimonial-simple {
	display: flex;
	align-items: stretch; /* Stretch to same height */
	gap: 20px; /* Changed from 4rem to 20px */
}

/* Left Column - Image (2/5 width) */
.testimonial-image {
	flex: 0 0 40%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.testimonial-image img {
	max-width: 100%;
	height: auto;
	box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Right Column - Text (3/5 width) */
.testimonial-text {
	flex: 0 0 60%;
	background: #E9EBE8; /* Light grey background */
	padding: 3rem;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center; /* Center content vertically */
}

.quote {
	font-size: 1.5rem;
	line-height: 1.6;
	color: #333;
	margin-bottom: 2rem;
	font-style: italic;
}

.name {
	font-size: 2rem;
	font-weight: 700;
	color: #333;
	margin: 0 0 0.5rem 0;
}

.title {
	font-size: 1.1rem;
	color: #666;
	margin: 0;
}

/* Dots - centered at bottom */
.dots {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 2rem;
}

/* Testimonial dots (section 5) */
.testimonial-dot {
	width: 12px;
	height: 12px;
	background: #ddd;
	cursor: pointer;
	border-radius: 50%;
}

.testimonial-dot.active {
	background: #608087; /* Teal/blue-grey color */
}

/* Post dots (section 6) */
.posts-dots .dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #ddd;
	cursor: pointer;
	transition: background 0.3s ease;
}

.posts-dots .dot.active {
	background: #608087;
}

.posts-dots .dot:hover {
	background: #bbb;
}

/* ========================================
   SECTION 6 - BLOG POSTS
   ======================================== */

.noqai-section-6 {
	width: 100%;
	background: #ffffff;
	padding: 20px 0;
}

.noqai-section-6 .container {
	max-width: 1360px;
	margin: 0 auto;
	padding: 0 2rem;
}

/* Section Header */
.noqai-section-6 .section-header {
	text-align: center;
	margin-bottom: 3rem;
}

.noqai-section-6 .section-title {
	font-size: 2.5rem;
	font-weight: 700;
	color: #333;
	margin: 0;
	line-height: 1.2;
}

/* Posts Grid */
.posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin-bottom: 2rem;
}

/* Post Card */
.post-card {
	background: #ffffff;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Post Image */
.post-image {
	position: relative;
	width: 100%;
	height: 250px;
	overflow: hidden;
}

.post-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.post-card:hover .post-image img {
	transform: scale(1.05);
}

/* Post Overlay */
.post-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.post-card:hover .post-overlay {
	opacity: 1;
	visibility: visible;
}

/* Read More Button */
.read-more-btn {
	background: #608087;
	color: #ffffff;
	padding: 12px 24px;
	text-decoration: none;
	font-weight: 600;
	font-size: 1rem;
	transition: background 0.3s ease;
}

.read-more-btn:hover {
	background: #4a6b73;
	color: #ffffff;
}

/* Post Content */
.post-content {
	padding: 1.5rem;
}

.post-title {
	font-size: 1.3rem;
	font-weight: 700;
	color: #333;
	margin: 0 0 1rem 0;
	line-height: 1.4;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.post-number {
	background: #608087;
	color: #ffffff;
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
	font-size: 0.9rem;
	font-weight: 600;
	min-width: 24px;
	text-align: center;
}

.post-excerpt {
	font-size: 1rem;
	line-height: 1.6;
	color: #666;
	margin: 0;
}

/* Navigation Dots */
.posts-dots {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
}

.posts-dots .dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #ddd;
	cursor: pointer;
	transition: background 0.3s ease;
}

.posts-dots .dot.active {
	background: #608087;
}

.posts-dots .dot:hover {
	background: #bbb;
}

/* Responsive Design */
@media (max-width: 1200px) {
	.posts-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.5rem;
	}
}

@media (max-width: 900px) {
	.posts-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.5rem;
	}
}

@media (max-width: 600px) {
	.posts-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	
	.noqai-section-6 .section-title {
		font-size: 2rem;
	}
	
	.post-image {
		height: 200px;
	}
}
