/*
Theme Name: Kho Bien So Theme
Theme URI: https://khobienso.vn/
Author: Hoji
Author URI: https://khobienso.vn/
Description: Theme cơ bản dành cho Kho Biển Số, không chứa CSS mặc định gây xung đột.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: khobienso-theme
*/

/* 
 * Bản thân theme này hoàn toàn rỗng để phục vụ hiển thị plugin khobienso-filter tốt nhất.
 */
	:root {
		--navy-dark: #0f172a;
		--navy-light: #2563eb;
		--gold-dark: #ea580c;
		--gold-light: #f97316;
		--bg-gray: #f1f5f9;
	}
	html, body {
		font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
		margin: 0;
		padding: 0;
		background: var(--bg-gray);
		color: #334155;
		overflow-x: hidden;
		max-width: 100vw;
	}
	a { text-decoration: none; color: inherit; }
	ul { list-style: none; padding: 0; margin: 0; }
	
	/* HEADER */
	.home-header {
		background: rgba(255, 255, 255, 0.85);
		backdrop-filter: blur(12px);
		-webkit-backdrop-filter: blur(12px);
		box-shadow: 0 4px 24px rgba(0,0,0,0.06);
		position: sticky;
		top: 0;
		z-index: 100;
		transition: all 0.3s ease;
	}
	.header-container {
		max-width: 1200px;
		margin: 0 auto;
		padding: 12px 20px;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
	.header-logo {
		font-size: 24px;
		font-weight: 900;
		color: var(--navy-dark);
		display: flex;
		align-items: center;
		gap: 10px;
	}
	.header-logo span { color: var(--gold-light); }
	.header-contact {
		display: flex;
		gap: 12px;
	}
	.header-contact a {
		padding: 8px 16px;
		border-radius: 20px;
		font-weight: 700;
		font-size: 14px;
		display: flex;
		align-items: center;
		gap: 6px;
	}
	.btn-outline { border: 1.5px solid var(--navy-dark); color: var(--navy-dark); }
	.btn-filled { background: var(--navy-dark); color: #fff; }

	/* HERO SECTION */
	.hero-section {
		background: linear-gradient(135deg, var(--navy-dark) 0%, #0f172a 100%);
		color: #ffffff;
		padding: 60px 20px 100px;
		text-align: center;
	}
	.hero-content {
		max-width: 800px;
		margin: 0 auto;
	}
	.hero-title {
		font-size: 42px;
		font-weight: 900;
		margin-bottom: 20px;
		line-height: 1.2;
		color: #f8fafc;
	}
	.hero-title span { color: var(--gold-light); }
	.hero-subtitle {
		font-size: 18px;
		color: #cbd5e1;
		margin-bottom: 30px;
		line-height: 1.6;
	}
	.btn-cta {
		display: inline-block;
		background: linear-gradient(to right, var(--gold-light), var(--gold-dark));
		color: #fff;
		font-weight: 800;
		font-size: 16px;
		padding: 14px 32px;
		border-radius: 30px;
		box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
		transition: transform 0.2s;
	}
	.btn-cta:hover { transform: translateY(-3px); }

	/* APP SECTION */
	.app-section {
		max-width: 1200px;
		margin: -60px auto 40px;
		padding: 0 20px;
		position: relative;
		z-index: 10;
	}
	.app-container {
		background: #ffffff;
		border-radius: 20px;
		box-shadow: 0 20px 40px rgba(0,0,0,0.1);
		padding: 30px;
	}

	/* FEATURES SECTION */
	.features-section {
		max-width: 1200px;
		margin: 60px auto;
		padding: 0 20px;
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
		gap: 30px;
	}
	.feature-card {
		background: #ffffff;
		padding: 30px;
		border-radius: 16px;
		text-align: center;
		box-shadow: 0 4px 12px rgba(0,0,0,0.03);
		border: 1px solid #e2e8f0;
	}
	.feature-icon {
		font-size: 40px;
		margin-bottom: 16px;
	}
	.feature-card h3 {
		font-size: 18px;
		color: var(--navy-dark);
		margin-bottom: 12px;
	}
	.feature-card p {
		color: #64748b;
		font-size: 14px;
		line-height: 1.6;
	}

	/* NEWS SECTION */
	.news-section {
		max-width: 1200px;
		margin: 60px auto;
		padding: 0 20px;
	}
	.section-title {
		text-align: center;
		font-size: 28px;
		color: var(--navy-dark);
		margin-bottom: 40px;
	}
	.news-grid {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 24px;
	}
	.news-card {
		background: #ffffff;
		border-radius: 12px;
		overflow: hidden;
		box-shadow: 0 4px 12px rgba(0,0,0,0.05);
	}
	.news-thumb {
		width: 100%;
		height: 200px;
		background: #e2e8f0;
		object-fit: cover;
	}
	.news-content {
		padding: 20px;
	}
	.news-content h3 {
		font-size: 18px;
		margin: 0 0 10px;
		color: #1e293b;
		line-height: 1.4;
	}
	.news-content p {
		font-size: 14px;
		color: #64748b;
		margin: 0 0 16px;
		line-height: 1.5;
	}
	.news-readmore {
		font-size: 14px;
		font-weight: 700;
		color: var(--navy-light);
	}

	/* FOOTER */
	.home-footer {
		background: #0f172a;
		color: #cbd5e1;
		padding: 60px 20px 20px;
		font-size: 14px;
	}
	.footer-grid {
		max-width: 1200px;
		margin: 0 auto;
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
		gap: 40px;
		margin-bottom: 40px;
	}
	.footer-col h4 {
		color: #ffffff;
		font-size: 16px;
		margin-bottom: 20px;
		font-weight: 700;
	}
	.footer-logo {
		font-size: 24px;
		font-weight: 900;
		color: #ffffff;
		margin-bottom: 16px;
		display: block;
	}
	.footer-logo span { color: var(--gold-light); }
	.footer-col p { line-height: 1.6; margin-bottom: 10px; }
	.footer-links li { margin-bottom: 10px; }
	.footer-links a { transition: color 0.2s; }
	.footer-links a:hover { color: var(--gold-light); }
	.social-icons {
		display: flex;
		gap: 12px;
		margin-top: 20px;
	}
	.social-icons a {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		background: #1e293b;
		border-radius: 50%;
		color: #ffffff;
		transition: background 0.2s;
	}
	.social-icons a:hover { background: var(--gold-light); }
	.footer-bottom {
		text-align: center;
		padding-top: 20px;
		border-top: 1px solid #1e293b;
		color: #64748b;
	}

	@media (max-width: 768px) {
		.hide-on-mobile { display: none !important; }
		.mobile-menu-toggle { display: block !important; }
		.hero-title { font-size: 32px; }
		.header-contact a { padding: 6px 12px; font-size: 13px; }
		.app-container { padding: 15px; }
		.news-grid { grid-template-columns: 1fr; }
		.features-section { grid-template-columns: 1fr; }
		.testimonial-grid { grid-template-columns: 1fr; }
		.about-content { flex-direction: column; }
	}

	/* SLIDER SECTION */
	.swiper { width: 100%; height: auto; overflow: hidden; }
	.swiper-slide { text-align: center; }

	/* ABOUT SECTION */
	.about-section { max-width: 1200px; margin: 60px auto; padding: 0 20px; }
	.about-content { display: flex; gap: 40px; align-items: center; }
	.about-text { flex: 1; }
	.about-text h2 { font-size: 32px; color: var(--navy-dark); margin-bottom: 20px; }
	.about-text p { color: #475569; line-height: 1.8; font-size: 16px; margin-bottom: 16px; }
	.about-image { flex: 1; text-align: center; }
	.about-image img { width: 100%; max-width: 500px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

	/* TESTIMONIAL SECTION */
	.testimonial-section { background: var(--navy-dark); color: #fff; padding: 80px 20px; margin: 60px 0; }
	.testimonial-container { max-width: 1200px; margin: 0 auto; text-align: center; }
	.testimonial-container h2 { font-size: 32px; margin-bottom: 40px; color: var(--gold-light); }
	.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
	.testi-card { background: rgba(255,255,255,0.05); padding: 30px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.1); text-align: left; }
	.testi-card p { font-style: italic; line-height: 1.6; margin-bottom: 20px; color: #cbd5e1; }
	.testi-author { display: flex; align-items: center; gap: 15px; }
	.testi-author img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
	.testi-info h4 { margin: 0 0 5px; font-size: 16px; color: #fff; }
	.testi-info span { font-size: 13px; color: var(--gold-light); }

	/* NAVIGATION MENU */
	.main-navigation ul { display: flex; gap: 24px; }
	.main-navigation a { color: var(--navy-dark); font-weight: 700; font-size: 15px; transition: color 0.2s; text-transform: uppercase; }
	.main-navigation a:hover { color: var(--gold-light); }
	
	.primary-menu .current-menu-item > a { color: var(--gold-dark); border-bottom: 2px solid var(--gold-light); }

	/* MOBILE MENU */
	.mobile-menu-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--navy-dark); cursor: pointer; margin-left: 10px; padding: 5px; }
	.mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.6); z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
	.mobile-menu-content { position: absolute; top: 0; right: -320px; width: 280px; height: 100vh; background: #ffffff; padding: 30px 20px; box-shadow: -5px 0 20px rgba(0,0,0,0.2); transition: all 0.3s ease; }
	
	body.mobile-menu-open { overflow: hidden; }
	body.mobile-menu-open .mobile-menu-overlay { opacity: 1; visibility: visible; }
	body.mobile-menu-open .mobile-menu-content { right: 0; }
	
	.mobile-menu-close { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 28px; color: var(--navy-dark); cursor: pointer; }

	.mobile-menu-actions a.menu-modal-zalo {
		background: #0068FF;
		color: #ffffff;
		padding: 10px 8px;
		border-radius: 30px;
		font-weight: 700;
		font-size: 13px;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 4px;
		white-space: nowrap;
		box-shadow: 0 4px 12px rgba(0, 104, 255, 0.25);
		text-decoration: none;
	}
	.mobile-menu-actions a.menu-modal-call {
		background: #dc2626;
		color: #ffffff;
		padding: 10px 8px;
		border-radius: 30px;
		font-weight: 700;
		font-size: 13px;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 4px;
		white-space: nowrap;
		box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
		text-decoration: none;
	}
	.mobile-primary-menu { margin-top: 50px; }
	.mobile-primary-menu li { border-bottom: 1px solid #f1f5f9; }
	.mobile-primary-menu a { display: block; padding: 15px 0; color: var(--navy-dark); font-size: 16px; font-weight: 600; text-transform: uppercase; }

	/* FLOATING ACTION BUTTONS (FAB) */
	.kbs-fab-container {
		position: fixed;
		bottom: 30px;
		right: 30px;
		display: flex;
		flex-direction: column;
		gap: 15px;
		z-index: 9999;
	}
	.kbs-fab-item {
		width: 55px;
		height: 55px;
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		color: #fff;
		font-size: 24px;
		text-decoration: none;
		box-shadow: 0 4px 15px rgba(0,0,0,0.2);
		position: relative;
		transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	}
	.kbs-fab-item:hover {
		transform: scale(1.1);
	}
	.kbs-fab-message {
		background: linear-gradient(135deg, #10b981, #059669);
	}
	.kbs-fab-zalo {
		background: #0068ff;
	}
	.kbs-fab-phone {
		background: linear-gradient(135deg, #f97316, #ea580c);
	}
	
	/* Tooltip */
	.kbs-fab-tooltip {
		position: absolute;
		right: 70px;
		background: #1e293b;
		color: #fff;
		padding: 8px 16px;
		border-radius: 20px;
		font-size: 14px;
		font-weight: 600;
		white-space: nowrap;
		opacity: 0;
		visibility: hidden;
		transform: translateX(10px);
		transition: all 0.3s ease;
		box-shadow: 0 4px 10px rgba(0,0,0,0.1);
		pointer-events: none;
	}
	.kbs-fab-item:hover .kbs-fab-tooltip {
		opacity: 1;
		visibility: visible;
		transform: translateX(0);
	}
	.kbs-fab-tooltip::after {
		content: '';
		position: absolute;
		right: -5px;
		top: 50%;
		transform: translateY(-50%);
		border-width: 6px 0 6px 6px;
		border-style: solid;
		border-color: transparent transparent transparent #1e293b;
	}

	/* Pulse Effect */
	.pulse-effect {
		animation: kbs-pulse 2s infinite;
	}
	@keyframes kbs-pulse {
		0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7); }
		70% { box-shadow: 0 0 0 15px rgba(249, 115, 22, 0); }
		100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
	}
	@media (max-width: 768px) {
		.kbs-fab-container { bottom: 20px; right: 20px; }
		.kbs-fab-item { width: 50px; height: 50px; font-size: 20px; }
		.kbs-fab-tooltip { display: none; } /* Ẩn tooltip trên mobile */
	}
