

.work-header {
	border: #000000 1px solid;
}

.work-header h2 {
	color: #000000;
	font-size: 2rem;
	font-weight: bolder;
    line-height: 1.25;
}

#work .work-timeline {
	max-width: 980px;
}
#work .timeline-wrap {
	position: relative;
	margin-top: 1.5rem;
	margin-bottom: 6rem;
}
#work .timeline-wrap::before {
	content: "";
	display: block;
	width: 1px;
	height: 100%;
	background: rgba(0, 0, 0, 0.1);
	position: absolute;
	left: 35%;
	top: 0;
}
#work .timeline-block {
	position: relative;
	padding-top: 1.5rem;
}
#work .timeline-ico {
	height: 3.8rem;
	width: 3.8rem;
	line-height: 3.8rem;
	background: #313131;
	border-radius: 50%;
	text-align: center;
	color: #FFFFFF;
	position: absolute;
	left: 36%;
	top: .9rem;
	margin-left: -2.4rem;
}
#work .timeline-ico i {
	position: relative;
	left: .05rem;
	top: .2rem;
}

#work .timeline-header {
	float: left;
	width: 35%;
	padding-right: 90px;
	text-align: right;
}

.timeline-header h3 {
	margin-bottom: 0;
	
}
.timeline-header p {
	font-family: "poppins-regular", sans-serif;
	font-size: 1.4rem;
	color: #888888;
}
#work .timeline-content {
	margin-left: 35%;
	padding-left: 60px;
}
#work .timeline-content h4 {
	position: relative;
	padding-bottom: 1.8rem;
}
#work .timeline-content h4::after {
	content: "";
	display: block;
	height: 3px;
	width: 50px;
	background: rgba(0, 0, 0, 0.2);
	position: absolute;
	left: 0;
	bottom: 0;
}

/**
 * responsive:
 * resume
 * ------------------------------------------------------------------- 
 */
@media only screen and (max-width:1024px) {
	#work .timeline-header {
		padding-right: 50px;
	}
	#work .timeline-header h3 {
		font-size: 1.8rem;
	}
	#work .timeline-header p {
		font-size: 1.4rem;
	}
	#work .timeline-content {
		padding-left: 50px;
	}
}
@media only screen and (max-width:768px) {
	#work .timeline-wrap::before {
		left: 2.4rem;
	}
	#work .timeline-ico {
		left: 2.4rem;
	}
	#work .timeline-header {
		float: none;
		width: auto;
		padding-right: 15px;
		text-align: left;
	}
	#work .timeline-header h3 {
		font-size: 1.4rem;
	}
	#work .timeline-header p {
		font-size: 1.2rem;
		margin-bottom: 1.5rem;
	}
	#work .timeline-content {
		margin: 0;
	}
	#work .timeline-content h4 {
		padding-bottom: 0;
		padding-top: 2.1rem;
		margin-bottom: .6rem;
		font-size: 1.7rem;
	}
	#resume .timeline-content h4::after {
		bottom: auto;
		top: 0;
	}
	#resume .timeline-header, #resume .timeline-content {
		padding-left: 7rem;
	}
}
@media only screen and (max-width:480px) {
	#work .resume-header h2 {
		font-size: 2.2rem;
	}
	#work .timeline-wrap::before {
		left: 1.8rem;
	}
	#work .timeline-ico {
		height: 3.6rem;
		width: 3.6rem;
		line-height: 3.6rem;
		left: 1.8rem;
		margin-left: -1.8rem;
		font-size: 1.5rem;
	}
	#work .timeline-header, #resume .timeline-content {
		padding-left: 5.5rem;
	}
}



/*------------------------------------------------------------------
    Projects
-------------------------------------------------------------------*/
/*------------------------------------------------------------------
    Projects - Responsive for all devices
-------------------------------------------------------------------*/
/* Main container for services grid */
.owl-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    width: 100%;
    padding: 0px;
}

/* Each service box styling */
.service-widget {
    position: relative;
    overflow: hidden;
    height: 150px;
    min-height: 300px;
    transition: transform 0.3s ease;
}

/* Image styling */
.post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* DEFAULT overlay (semi-dark) */
.post-media::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: opacity 0.3s ease, background 0.3s ease;
}

/* Visit link button (centered) */
.hoverbutton {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    z-index: 2;
    background: #067ded;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.4s ease;
}

/* Hover effects */
.service-widget:hover {
    transform: translateY(-2px);
}
.service-widget:hover .post-media img {
    transform: scale(0.97);
}
.service-widget:hover .post-media::after {
    background: rgba(0, 0, 0, 0.6);
}
.service-widget:hover .hoverbutton {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}


/* Responsive adjustments */
@media (max-width: 1199px) {
    /* Tablet landscape and smaller laptops */
    .owl-services {
        gap: 20px;
    }
    .service-widget {
        min-height: 280px;
    }
}

@media (max-width: 991px) {
    /* Tablets */
    .owl-services {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    .service-widget {
        min-height: 250px;
    }
    .hoverbutton {
        padding: 10px 20px;
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    /* Mobile landscape and small tablets */
    .owl-services {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 12px;
    }
    .service-widget {
        min-height: 220px;
    }
}

@media (max-width: 575px) {
    /* Mobile portrait */
    .owl-services {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .service-widget {
        min-height: 200px;
    }
    .hoverbutton {
        padding: 8px 18px;
        font-size: 14px;
    }
}

/* For very small mobile devices */
@media (max-width: 400px) {
    .service-widget {
        min-height: 100px;
    }
}