/* Body */
.body {
		max-width: 100vw;
		overflow-x: hidden;
}

/* Container */
@media (min-width: 1440px) {
		.container {
				max-width: 1440px !important;
		}
}

/* Header */
@media (min-width: 992px) {
		#header .header-nav-main nav > ul > li > a {
				font-weight: 500;
				font-size: 16px;
				padding-left: 1.3rem !important;
				padding-right: 1.3rem !important;
		}
}

@media (max-width: 1280px) {
		#header .header-nav-main nav > ul > li > a {
				padding-left: 1rem !important;
				padding-right: 1rem !important;
		}
}

/* Font Size */
.custom-font-size-1 {
		font-size: clamp(28px, 4px + 0.05 * 100vw, 64px);
		line-height: 1.1;
}

/* Hero */
.custom-hero-bg {
		position: absolute;
		width: 100vw;
		height: 100vh;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		opacity: 0;
		transition: opacity 300ms;
}

.custom-hero-bg svg {
		width: 100vw;
		height: 100vh;
}

.custom-hero-bg:after {
		content: "";
		width: 100%;
		height: 100%;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		position: absolute;
		opacity: 0.8;
		background-color: var(--dark);
}

.custom-hero-bg.loaded {
		opacity: 1;
}

.custom-stop-color-1 {
		stop-color: var(--primary);
}

.custom-hero-font-1 {
		font-size: clamp(28px, 0px + 0.0583333333 * 100vw, 70px);
		line-height: 1.1;
}

.custom-hero-heading {
		position: absolute;
		width: 100%;
		bottom: 0;
		text-align: center;
		-webkit-mask-image: linear-gradient(to bottom, black 0%, rgba(0, 0, 0, 0) 100%);
		mask-image: linear-gradient(to bottom, black 0%, rgba(0, 0, 0, 0) 100%);
}

@media (max-width: 991px) {
		.custom-hero-heading {
				bottom: 80px;
		}
}

.custom-hero-heading strong {
		text-transform: uppercase;
		font-size: 13cqw;
		line-height: 13cqw;
}

/* Page Header */
.page-header .custom-hero-bg {
		height: 500px;
}

.page-header .custom-hero-bg svg {
		height: 500px;
}

@keyframes arrowMove {
		0% {
				margin-top: 0;
		}
		50% {
				margin-top: -30px;
		}
		100% {
				margin-top: 0;
		}
}

/* Elements */
.custom-el-1 {
		opacity: 0.1;
		align-items: center;
		display: flex;
		justify-content: center;
		flex-direction: column;
		animation: arrowMove 3000ms linear;
		animation-iteration-count: infinite;
}

.custom-el-1 img {
		margin-bottom: -100px;
}

.custom-el-pos-1 {
		top: 55%;
		left: -60px;
}

.custom-el-2 {
		opacity: 0.1;
		align-items: center;
		display: flex;
		justify-content: center;
		flex-direction: column;
		animation: arrowMove 3000ms linear;
		animation-iteration-count: infinite;
}

.custom-el-2 img {
		margin-bottom: -47px;
}

.custom-el-pos-2 {
		top: 80%;
		right: -30px;
}

.custom-el-3 {
		width: 100%;
		height: 100%;
		max-width: 220px;
		max-height: 220px;
		min-height: 220px;
		position: relative;
		overflow: hidden;
}

.custom-el-3 .custom-el-3-img {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
}

.custom-el-3 .custom-el-3-img img {
		transition: transform 2s;
		will-change: transform;
}

.custom-el-3-pos-1 {
		top: 30%;
		z-index: 1;
}

.custom-el-3-pos-2 {
		top: -30%;
}

.custom-el-4-pos {
		margin-top: -15px;
}

.custom-el-pos-5 {
		left: -60px;
		top: 35%;
}

/* Custom Marquee */
.custom-marquee-1 .js-marquee-wrapper,
.custom-marquee-1 .js-marquee,
.custom-marquee-1 .js-marquee > span {
		display: flex;
}

/* Custom Avatar */
.custom-avatar-1 {
		width: 70px;
		height: 70px;
		position: relative;
}

.custom-avatar-1-info {
		position: absolute;
		top: -30px;
		text-align: center;
		font-size: 12px;
		white-space: nowrap;
		letter-spacing: -0.5px;
		font-weight: 600;
		margin-left: -15px;
		opacity: 0.5;
}

.custom-avatar-1-info .animated-icon {
		transform: rotate(120deg);
		float: left;
		margin-right: 5px;
}

/* Custom Popover */
.custom-popover-1 {
		text-align: center;
		font-size: 16px;
		font-weight: 600;
		letter-spacing: -1px;
}

/* Custom Btn */
.custom-btn-1 {
		width: 200px;
		height: 200px;
		line-height: 190px;
		border-radius: 100%;
		white-space: nowrap;
}

/* Custom Grid */
.custom-grid-1 {
		margin-top: -70px;
		position: relative;
}

.custom-grid-1 .container {
		margin: 0 auto;
}

.custom-grid-1 .container .row {
		margin: 0;
}

.custom-grid-1 .container .row > * {
		padding: 0;
		background-color: var(--light);
		min-height: 220px;
		align-items: center;
		overflow: hidden;
}

@media (max-width: 991px) {
		.custom-grid-1 .container .row > * {
				border: 1px solid var(--grey-100);
		}
}

@media (min-width: 992px) {
		.custom-grid-1 .container .row > *:nth-child(1),
		.custom-grid-1 .container .row > *:nth-child(3),
		.custom-grid-1 .container .row > *:nth-child(6),
		.custom-grid-1 .container .row > *:nth-child(8) {
				background-color: var(--grey-100);
		}
}

.custom-grid-1 .custom-grid-1-item {
		position: relative;
}

.custom-grid-1 .custom-grid-1-item .custom-grid-1-img {
		transition: opacity 300ms;
		opacity: 0;
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
}

.custom-grid-1 .custom-grid-1-item .custom-grid-1-img img {
		transition: transform 2s;
		will-change: transform;
		transform: scale(0.75);
}

.custom-grid-1 .custom-grid-1-item .custom-grid-1-img:after {
		content: "";
		width: 100%;
		height: 100%;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		position: absolute;
		opacity: 0.7;
		background-color: var(--dark);
}

.custom-grid-1 .custom-grid-1-item .custom-grid-1-text {
		position: relative;
		z-index: 1;
}

.custom-grid-1 .custom-grid-1-item:hover .custom-grid-1-img {
		opacity: 1;
}

.custom-grid-1 .custom-grid-1-item:hover .custom-grid-1-img img {
		transform: scale(1);
}

.custom-grid-1 .custom-grid-1-item:hover h3 {
		color: var(--light) !important;
}

/* Custom Projects */
@media (max-width: 991px) {
		.custom-projects-1 .border-end {
				border: 0 !important;
		}
}

/* Custom Border Radius */
.custom-border-radius-1 {
		border-radius: 0 100px 0 100px;
}

.custom-border-radius-2 {
		border-radius: 100px 0 0 0;
}

.custom-border-radius-3 {
		border-radius: 100px 100px 100px 0;
}

.custom-border-radius-4 {
		border-radius: 200px 10px 10px 10px;
}

.custom-border-radius-5 {
		border-radius: 0 0 100px 0;
}

/* Custom Section */
.custom-section-1 {
		margin-top: -70px;
		padding-top: 70px;
}

/* Custom Carousel */
@media (min-width: 1200px) {
		.custom-carousel-1 > .owl-carousel {
				width: calc( 100vw - ( ( 100vw - 1400px ) / 2 ));
		}
}

/* Custom Content */
.custom-page-content {
		margin-top: -70px;
}

/* Custom Padding */
.custom-padding-top-1 {
		padding-top: 70px;
}

.custom-padding-bottom-1 {
		padding-bottom: 70px;
}

/* Footer */
#footer {
		margin-top: -70px;
}

/* ========================================================
   MODULE THEME OVERRIDES — Dark Creative Theme
   --------------------------------------------------------
   skin-creative-agency-2 defines:
     --primary: #FBC105 (golden yellow)
     --secondary: #FFD519 (bright yellow) → unusable as section bg
     --tertiary: #F9F9F9 (off-white)
     --quaternary: #121212 (dark) → same as --dark, invisible as muted text
     --dark: #121212

   Modules use inline styles with var(--secondary) for section bg,
   var(--dark) for cards, var(--light) for text, var(--quaternary) for
   muted text. These rules fix the mismatches for the dark theme.
   ======================================================== */

/* === 1. Section Backgrounds → Dark instead of bright yellow ===
   Modules use style="background-color: var(--secondary)" (#FFD519) */
html.demo-creative-agency-2 .main section[style*="--secondary"]:not(.page-header) {
	background-color: #1a1a1a !important;
}

/* === 2. Card/Panel Backgrounds → Slightly lighter dark ===
   Modules use style="background-color: var(--dark)" — already #121212
   Add subtle border to distinguish from section bg */
html.demo-creative-agency-2 .main section div[style*="background-color: var(--dark)"],
html.demo-creative-agency-2 .main section aside [style*="background-color: var(--dark)"] {
	background-color: #1e1e1e !important;
	border: 1px solid rgba(251, 193, 5, 0.08) !important;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

/* === 3. Cards por clase → Dark card with golden accent border === */
html.demo-creative-agency-2 .main section[style*="--secondary"] .blog-card,
html.demo-creative-agency-2 .main section[style*="--secondary"] .service-card,
html.demo-creative-agency-2 .main section[style*="--secondary"] .project-card {
	background-color: #1e1e1e !important;
	border: 1px solid rgba(251, 193, 5, 0.08) !important;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

html.demo-creative-agency-2 .main section[style*="--secondary"] .blog-card:hover,
html.demo-creative-agency-2 .main section[style*="--secondary"] .service-card:hover,
html.demo-creative-agency-2 .main section[style*="--secondary"] .project-card:hover {
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5) !important;
	border-color: rgba(251, 193, 5, 0.15) !important;
}

/* === 4. Text colors: keep light on dark ===
   var(--light) = #FFF on dark bg → already correct, but enforce */
html.demo-creative-agency-2 .main section[style*="--secondary"] [style*="color: var(--light)"] {
	color: #FFF !important;
}

html.demo-creative-agency-2 .main section[style*="--secondary"] strong[style*="--light"] {
	color: #FFF !important;
}

/* === 5. Muted text: var(--quaternary) is #121212 = invisible on dark bg ===
   Override to visible grey */
html.demo-creative-agency-2 .main section[style*="--secondary"] [style*="color: var(--quaternary)"] {
	color: #999 !important;
}

/* === 6. Cyan borders (digital-agency heritage) → Golden subtle === */
html.demo-creative-agency-2 .main [style*="rgba(0, 240, 255"] {
	border-color: rgba(251, 193, 5, 0.1) !important;
}

html.demo-creative-agency-2 .main [style*="border: 1px solid rgba(0, 240, 255"] {
	border: 1px solid rgba(251, 193, 5, 0.1) !important;
}

html.demo-creative-agency-2 .main [style*="background-color: rgba(0, 240, 255"] {
	background-color: rgba(251, 193, 5, 0.05) !important;
	border-color: rgba(251, 193, 5, 0.1) !important;
}

/* === 7. Gallery module — filter pills + tags === */
html.demo-creative-agency-2 .main .btn-outline-light {
	color: #ccc !important;
	border-color: #333 !important;
	background: #1e1e1e !important;
}

html.demo-creative-agency-2 .main .btn-outline-light:hover {
	color: var(--primary) !important;
	border-color: var(--primary) !important;
	background: rgba(251, 193, 5, 0.08) !important;
}

html.demo-creative-agency-2 .main .text-muted {
	color: #888 !important;
}

html.demo-creative-agency-2 .main .portfolio-grid-item {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* === 8. FAQs MODULE — Dark Theme === */

/* Section background */
html.demo-creative-agency-2 .faq-category-section {
	background: #1e1e1e !important;
	border: 1px solid rgba(251, 193, 5, 0.08) !important;
}

/* FAQ items */
html.demo-creative-agency-2 .faq-item {
	background: #1e1e1e !important;
	border: 1px solid rgba(251, 193, 5, 0.08) !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

html.demo-creative-agency-2 .faq-item:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
	border-color: rgba(251, 193, 5, 0.15) !important;
}

/* Question header */
html.demo-creative-agency-2 .faq-question {
	background: #252525 !important;
	border-bottom: 1px solid rgba(251, 193, 5, 0.08) !important;
}

html.demo-creative-agency-2 .faq-question h5 {
	color: #FFF !important;
}

html.demo-creative-agency-2 .faq-question:hover h5 {
	color: var(--primary) !important;
}

/* Answer body */
html.demo-creative-agency-2 .faq-answer {
	background: #1e1e1e !important;
	border-top: 1px solid rgba(251, 193, 5, 0.06) !important;
}

html.demo-creative-agency-2 .faq-content {
	color: #aaa !important;
}

/* Category header */
html.demo-creative-agency-2 .category-header h4 {
	color: #FFF !important;
}

/* Sidebar card */
html.demo-creative-agency-2 .main aside.card {
	background-color: #1e1e1e !important;
	border: 1px solid rgba(251, 193, 5, 0.08) !important;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

html.demo-creative-agency-2 .main aside .card-header {
	background-color: #252525 !important;
	border-bottom: 1px solid rgba(251, 193, 5, 0.08) !important;
}

html.demo-creative-agency-2 .main aside .card-header h5 {
	color: #FFF !important;
}

/* Category navigation */
html.demo-creative-agency-2 .category-nav-item {
	color: #ccc !important;
	border: 1px solid #333 !important;
}

html.demo-creative-agency-2 .category-nav-item:hover {
	background: rgba(251, 193, 5, 0.08) !important;
	color: var(--primary) !important;
	border-color: rgba(251, 193, 5, 0.2) !important;
}

html.demo-creative-agency-2 .category-nav-item.active {
	background: var(--primary) !important;
	color: #121212 !important;
	border-color: var(--primary) !important;
}

html.demo-creative-agency-2 .category-nav-item.active .badge-count {
	background: rgba(18, 18, 18, 0.3) !important;
	color: #121212 !important;
}

html.demo-creative-agency-2 .badge-count {
	background: #252525 !important;
	color: #888 !important;
}

/* Quick actions */
html.demo-creative-agency-2 .quick-actions {
	background: #252525 !important;
	border: 1px solid rgba(251, 193, 5, 0.08) !important;
}

html.demo-creative-agency-2 .quick-actions h6 {
	color: #FFF !important;
}

html.demo-creative-agency-2 .quick-actions .btn {
	background: #1e1e1e !important;
	border: 1px solid #333 !important;
	color: #ccc !important;
}

html.demo-creative-agency-2 .quick-actions .btn:hover {
	background: rgba(251, 193, 5, 0.08) !important;
	color: var(--primary) !important;
}

/* FAQ actions */
html.demo-creative-agency-2 .faq-actions {
	border-top: 1px solid rgba(251, 193, 5, 0.06) !important;
}

html.demo-creative-agency-2 .faq-actions .btn {
	background: #252525 !important;
	border: 1px solid #333 !important;
	color: #ccc !important;
}

/* Search results */
html.demo-creative-agency-2 .search-results {
	background: #1e1e1e !important;
	border: 1px solid rgba(251, 193, 5, 0.08) !important;
}

html.demo-creative-agency-2 .search-results .faq-question {
	background: #252525 !important;
}

html.demo-creative-agency-2 .search-results .faq-question h5 {
	color: #FFF !important;
}

/* No results */
html.demo-creative-agency-2 .no-results {
	background: #1e1e1e !important;
	border: 1px solid rgba(251, 193, 5, 0.08) !important;
}

/* === 9. Sidebar nav links → light on dark === */
html.demo-creative-agency-2 .main section[style*="--secondary"] .nav-link {
	color: #ccc !important;
}

html.demo-creative-agency-2 .main section[style*="--secondary"] .nav-link.active,
html.demo-creative-agency-2 .main section[style*="--secondary"] .nav-link:hover {
	color: var(--primary) !important;
}

/* === 10. Pagination → dark theme === */
html.demo-creative-agency-2 .main section[style*="--secondary"] .pagination .page-link {
	color: #ccc;
	background-color: #1e1e1e;
	border-color: #333;
}

html.demo-creative-agency-2 .main section[style*="--secondary"] .pagination .page-item.active .page-link {
	background-color: var(--primary);
	border-color: var(--primary);
	color: #121212;
}

/* === 11. Empty state / fallback gradients === */
html.demo-creative-agency-2 .main [style*="linear-gradient(135deg, var(--dark)"] {
	background: #1e1e1e !important;
}

/* === 12. Blog card overrides === */
html.demo-creative-agency-2 .main .blog-card .card-body {
	background-color: #1e1e1e;
}

html.demo-creative-agency-2 .main .blog-card .card-title a {
	color: #FFF !important;
}

html.demo-creative-agency-2 .main .blog-card .card-title a:hover {
	color: var(--primary) !important;
}

/* === 13. Inner divs with var(--secondary) bg → Dark ===
   Card-headers and nested containers */
html.demo-creative-agency-2 .main section div[style*="background-color: var(--secondary)"] {
	background-color: #252525 !important;
	border-color: rgba(251, 193, 5, 0.08) !important;
}

/* === 14. Category/Tag badges → Dark theme treatment ===
   var(--secondary) bg = bright yellow → too loud. Darken. */
html.demo-creative-agency-2 .main .badge[style*="background-color: var(--secondary)"] {
	background-color: rgba(251, 193, 5, 0.12) !important;
	border: 1px solid rgba(251, 193, 5, 0.15);
}

html.demo-creative-agency-2 .main .badge[style*="background-color: var(--secondary)"][style*="color: var(--primary)"] {
	color: var(--primary) !important;
}

html.demo-creative-agency-2 .main .badge[style*="background-color: var(--secondary)"][style*="color: var(--quaternary)"] {
	color: #999 !important;
}

/* === 15. Service category badge === */
html.demo-creative-agency-2 .main .service-badge[style*="background-color: var(--secondary)"] {
	background-color: rgba(251, 193, 5, 0.10) !important;
	color: var(--primary) !important;
}

/* === 16. btn-outline-secondary → Dark neutral === */
html.demo-creative-agency-2 .main .btn-outline-secondary {
	color: #ccc !important;
	border-color: #333 !important;
	background: #1e1e1e !important;
}

html.demo-creative-agency-2 .main .btn-outline-secondary:hover,
html.demo-creative-agency-2 .main .btn-outline-secondary:focus {
	color: var(--primary) !important;
	border-color: var(--primary) !important;
	background: rgba(251, 193, 5, 0.08) !important;
}

/* === 17. Service icon circle → golden accent === */
html.demo-creative-agency-2 .main .service-card .rounded-circle[style*="primary-rgb"] {
	background: rgba(251, 193, 5, 0.08) !important;
	border: 1px solid rgba(251, 193, 5, 0.15) !important;
}

html.demo-creative-agency-2 .main .service-card .font-weight-extra-bold[style*="primary-rgb"] {
	color: rgba(251, 193, 5, 0.15) !important;
}

/* === 18. Projects sidebar filter text → light on dark card === */
html.demo-creative-agency-2 .main .projects-sidebar-sticky .card-body a {
	color: #ccc;
}

html.demo-creative-agency-2 .main .projects-sidebar-sticky .card-body a:hover,
html.demo-creative-agency-2 .main .projects-sidebar-sticky .card-body a.text-color-primary {
	color: var(--primary) !important;
}

html.demo-creative-agency-2 .main .projects-sidebar-sticky .card-header h5 {
	color: #FFF !important;
}

/* === 19. Project card internal borders → subtle golden === */
html.demo-creative-agency-2 .main .project-card [style*="border-top: 1px solid rgba(240"] {
	border-top: 1px solid rgba(251, 193, 5, 0.08) !important;
}

/* === 20. Mobile filter button → dark theme === */
html.demo-creative-agency-2 .main .projects-filter-btn {
	color: #ccc !important;
	border-color: #333 !important;
}

html.demo-creative-agency-2 .main .projects-filter-btn:hover {
	color: var(--primary) !important;
	border-color: var(--primary) !important;
}
