/*
Theme Name: SKA CONSULTING
Author: Forcefield Web Development
Author URI: https://forcefieldnc.com
Version: 2.55
Description: Custom base theme
*/

@font-face {
	font-family: "Nunito Sans";
	src: url("fonts/NunitoSans-VariableFont.woff2") format("woff2-variations");
	font-weight: 200 1000;
	font-style: normal;
	font-display: swap;
}


@font-face {
	font-family: "Lato";
	src: url("fonts/Lato-Light.woff2") format("woff2");
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Lato";
	src: url("fonts/Lato-Thin.woff2") format("woff2");
	font-weight: 100;
	font-style: normal;
	font-display: swap;
}


.menu-main-menu-1 {
	font-family:aktiv-grotesk!important;
}

.mobile-nav-nar {
	display:none;
}

.id_card {
	display:none!important;
}

.the_services h2,.the_news h2 {
	display:block;
	padding-bottom:10px;
	margin-bottom:10px;
 border-bottom:solid;
 border-bottom-width: 5px!important;
 border-bottom-color: #fdd935!important;
	
}

 
.dnxt-headline.clip .dnxt-words-wrapper:after {
  
	display:none!important
}

nav ul li ul li a:hover{
	background-color:#000000!important;
 
}
 
.logo-carousel img {
	width:130px!important
}

@media screen and (max-width: 1200px){
.logo-carousel img {
	width:100px!important
	}}

.mobile_menu_bar:before {
color: #253771!important;
}

.gallery-grid a div.the_caption {
    font-weight: bold !important;
    position: absolute;
    bottom: 20px !important;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    z-index: 20;
    line-height: 18px;
	height:auto!important;
	width:100%!important;
}

.et_mobile_menu li a:hover, .nav ul li a:hover {
    background-color: #333333;
    opacity: .7;
}

.et-l--header{
	height:118px
}

#news-title {
	line-height:50px!important
}

#talent_overlay{
	content:'';
	width:100%;
	height:100%;
  min-height: 100vh;

	position:fixed;
	top:0;

	background-color:black;
	opacity:.7;
	z-index:19999;
	display:none;

}

#talent_close{
	
	text-align:right;
	font-size:30px;
	width:50px;
	float:right;
}

#talent_popup{
	
	position:fixed;
 	z-index:29999;
	width:80%;
	height:auto!important;
	height:400px;
	background-color:#f8f8f8!important;
	    left: 50%;
    top: 50%;
     transform: translate(-50%,-50%);
	padding:20px;
  
	display:none;
	
}

#talent_content .twocol div:nth-child(1){
	width:20%;
	 
}

#talent_content .twocol div:nth-child(2){
	width:80%;
	padding-left:30px;
 
 }

.careers ul {
  list-style-type: none;
  padding-left: 20px;
}
.careers ul li:before {    
    font-family: 'FontAwesome';
    content: '\f08e';
    margin:0 5px 0 -15px;
    color: #1a378d;
}

.board_flex .et_pb_text_inner{
	display:flex;
}

.board_grid{
 display:block;
 font-size:12px!important;
 margin-right:50px;
}

.board_grid:hover {
	opacity:.7;
	cursor:pointer;
}
.board_grid h2 {
	font-size:16px;
	margin:0;
	padding:0;
		color:#253771!important
}

.board_grid h3 {
	font-size:14px;
	margin:10px 0 5px;
	padding:0
	
}

.board_copy {
	color:black!important;
	display:block;
	line-height:16px 
}

.talent_grid{
	
	display:inline-block;
	text-align:left!important;
	width:210px!important;
	margin:20px auto;
 	font-size:12px!important
}

.talent_grid h2{
	font-size:14px;
	padding-top:10px;
	padding-bottom:0
}

a .talent_grid{
	
	color:#1a378d;
	
}

.talent_img {
	width:170px;
	height:170px;
 	background-position:top center;
	
	
	background-size:cover!important;
	filter: grayscale(1);
}

.talent_img:hover {
filter: grayscale(0);
	cursor:pointer;
}
.news article {
	border:0;
	min-height:300px!important;
	padding:25px
}

.news article:hover {
cursor:pointer;
}

 .et_pb_module.et_pb_blog_grid_wrapper article{
  position: relative;
}

  #the_projects .et_pb_module.et_pb_blog_grid_wrapper article:before{
 content:"";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%!important;
    background-color: rgba(0,0,0,0);
    z-index: 1;
	
}

.et-db #et-boc .et-l .et_pb_blog_grid .et_pb_post {
    border: 0px;
    padding-bottom: 0px;
 
}
 
 #the_projects .et_pb_module.et_pb_blog_grid_wrapper article:hover:before{
  background-color: rgba(0,0,0,0.4);	
	cursor:pointer;
}
 

 #the_projects  .et_pb_module.et_pb_blog_grid_wrapper article .entry-title{
   font-weight:bold!important;
  position: absolute;
  bottom: 20px!important;
	color:#ffffff;
	font-size:16px;
	font-weight:500;
	z-index:20;
	line-height:18px;
  	}
 
 .twocol{
  display:flex;
  flex-wrap:wrap;
   
}

 .twocol div {
  width:50%;
}

button{
	padding:10px;
	background-color:#1a378d;
	color:#ffffff;
	border:0;
	font-size:14px;
	border-radius:5px;
}

button:hover{
	opacity:.7;
	cursor:pointer;
}

.twocol.contact-us div:nth-child(1) {
  width:60%;
}

.twocol.contact-us div:nth-child(2) {
  width:40%;
}

 
.gallery-grid a div {
	padding:20px;
	position:relative;
	width:400px;
	height:275px;
	margin-right:40px!important;
	margin-bottom:40px;
	background-size:cover;
	box-sizing:border-box;
	display:inline-block!important
 }

.gallery-grid a div.the_caption {
    font-weight: bold !important;
    position: absolute;
    bottom: 20px !important;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    z-index: 20;
    line-height: 18px;
	height:auto!important;
	width:100%!important;
	padding:0;
	margin-bottom:0;
}

.gallery-grid a:nth-child(3n + 3) div {
 
	margin-right:0px!important;
 
}


@media screen and (max-width: 1438px){
.gallery-grid a:nth-child(3) div {
	margin-right:40px!important;
	}
.gallery-grid a:nth-child(2n +2) div {
	margin-right:0px!important;
	}

}


.more-link {
	display:block;
	padding:10px;
	background-color:#1a378d;
 	margin-top:20px!important;
 	text-transform:uppercase;
	color:white;
	font-weight:bold;
	width:200px
	
}

@media screen and (max-width: 980px) {
	
	.mobile-nav-nar {
	display:block!important;
}
	
	 .twocol{
  display:block!important;
   
}

 .twocol div {
  width:100%!important;
}
	.board_flex .et_pb_text_inner{
	display:block!important;
}

.board_grid{
 display:inline-block!important;
 font-size:12px!important;
 margin-right:30px!important;
	width:45%!important;
	margin-bottom:40px
}

	
	#talent_popup{
		width:100%;
	}
	
	#talent_content .twocol div:nth-child(2){
		width:100%;
		height:300px
	}
	.twocol{
		display:block;
		width:100%;
	}
	
	.twocol div {
		width:100%;
	}
	
.et-l--header{
	height:88px!important
}
	
	.dnxt-headline.clip .dnxt-words-wrapper {
		padding:0!important
	}
}

/* Limit blog titles to 2 lines with ellipsis */
.news .et_pb_post .entry-title {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Change this to 1 for a single line */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
 
}

.news-title{
	line-height:50px
}

#news-bread ol li:nth-child(4) {
	display:none!important
}

.news_icon {
 	display:block;
	font-size:24px;
 	bottom:0;
	position:absolute;
	right:0;
	margin:20px;
	color:rgb(37, 55, 113) !important;

}

@media screen and (max-width: 750px) {
	
	.talent_grid {
		margin:20px 0px!important;
    text-align: left !important;
    width: 45%!important;
  
    font-size: 12px !important;
		box-sizing:border-box;
}
	
	.talent_img {
		width:110px;
		height:110px;	}
	
	.board_flex .et_pb_text_inner{
	display:block!important;
}

.board_grid{
 display:inline-block!important;
 font-size:12px!important;
 margin-right:30px!important;
	width:80%!important;
	margin-bottom:40px
	}}


/* ==============================
   SKA PROJECT GRID (NEW)
============================== */

.ska-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px!important;
}

/* tablet */
@media (max-width: 980px) {
  .ska-project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* mobile */
@media (max-width: 640px) {
  .ska-project-grid {
    grid-template-columns: 1fr;
  }
}

.ska-project-card {
  position: relative;
}

.ska-project-link {
  display: block;
  text-decoration: none;
}

/* fixed aspect ratio 390x245 */
.ska-project-image {
  position: relative;
  width: 100%;
  aspect-ratio: 390 / 245;
  overflow: hidden;
  border-radius: 4px;
}

/* image fills box */
.ska-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ska-project-image img:hover {
  opacity:.8
}

/* overlay title */
.ska-project-title {
  position: absolute;
  left: 18px;
  bottom: 55px!important;
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  z-index: 2;
  line-height: 1.2;
  text-shadow: 0 2px 6px rgba(0,0,0,.6);
	width:90%
}

/* optional dark fade */
.ska-project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.55),
    rgba(0,0,0,0)
  );
  z-index: 1;
}

.ska-project-image > * {
  position: relative;
  z-index: 2;
}

.ska-load-more {
	
	background-color:#253771!important;
	margin-top:30px;
	font-size:16px
	
	
}


.ff-col-gallery .ff-item {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin: 0 0 15px 0; /* or use a CSS var if you want this dynamic */
    display: inline-block;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}
.ff-col-gallery .ff-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .25s ease;
}
.ff-col-gallery .ff-item:hover img {
    transform: scale(1.02);
}
@media (max-width: 768px) {
    .ff-col-gallery { column-count: 2 !important; }
}
@media (max-width: 480px) {
    .ff-col-gallery { column-count: 1 !important; }
}

@media (max-width: 980px) {
  .et-animated,
  [data-et-animation] {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =====================================================
   HOME — featured projects
   ===================================================== */
.home-featured {
	background: #f8f8f8;
	padding: 4rem 0;
}
.home-featured .container {
	width: 90%;
	max-width: 1300px;
	margin: 0 auto;
}
.home-featured__title {
	text-align: center;
	margin: 0 0 2.5rem;
}

/* =====================================================
   GLOBAL CONTAINER
   ===================================================== */
.container {
	width: 95%;
	max-width: 1300px;
	margin: 0 auto;
}

/* =====================================================
   PAGE BANNER — reusable across internal pages
   ===================================================== */
.page-banner {
	height: 175px;
	display: flex;
	align-items: center;
	background-color: #253771;
	background-image: url("https://skaeng.com/wp-content/uploads/2025/01/arches.webp");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
.page-banner__inner {
	width: 95%;
	max-width: 1300px;
	margin: 0 auto;
}
.page-banner__title {
	font-family: "Nunito Sans", system-ui, sans-serif;
	font-size: 38px;
	font-weight: 700;
	color: #fff;
	text-transform: uppercase;
	margin: 0;
	letter-spacing: 0.01em;
}
@media (max-width: 767px) {
	.page-banner { height: 120px; }
	.page-banner__title { font-size: 26px; line-height: 1.3; }
}

/* =====================================================
   ENTRY CONTENT — single project body
   ===================================================== */
.entry-content {
	padding: 3rem 0 2rem;
	font-size: 16px;
	line-height: 1.7;
}
.entry-content p { margin: 0 0 1.25rem; }
.entry-content p:last-child { margin-bottom: 0; }


/* =====================================================
   BREADCRUMBS
   ===================================================== */
.ff-breadcrumbs {
	padding: 1.25rem 0 0;
	font-family: "Nunito Sans", system-ui, sans-serif;
	font-size: 13px;
	color: #666;
}
.ff-breadcrumbs ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4em;
}
.ff-breadcrumbs li {
	display: flex;
	align-items: center;
	gap: 0.4em;
}
.ff-breadcrumbs li + li::before {
	content: "›";
	color: #aaa;
	font-size: 14px;
}
.ff-breadcrumbs a {
	color: #666;
	text-decoration: none;
	transition: color 150ms ease;
}
.ff-breadcrumbs a:hover { color: #253771; }
.ff-breadcrumbs li:last-child span {
	color: #333;
	font-weight: 600;
}