/*
Theme Name: INCT-FNA
Theme URI: https://gabriel-lobo.github.io/
Author: Gabriel Lobo
Author URI: https://gabriel-lobo.github.io/
Description: Theme for the INCT-FNA website.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/*============================*/
/*            INDEX           */
/*============================*/
/* General                    */
/* Menu                       */
/* Responsive Navigation      */
/* Search Form                */
/* Section                    */
/* Article                    */
/* Pagination                 */
/* Footer                     */
/* Home                       */
/* Slider                     */
/* Carousel                   */
/* Posts                      */
/* Institution                */
/* Institution List           */
/* User Panel                 */
/* Google Chart               */
/* Plugins                    */
/* Font Awesome               */
/*============================*/

/* General */

/* Start Wordpress */

@media (max-width: 767.98px) {
	#wpadminbar {
		position: fixed !important;
	}
}

.aligncenter {
	display: block;
	margin: 0 auto;
}

.alignleft {
	float: left;
	margin: 0 1em 1em 0;
}

.alignright {
	float: right;
	margin: 0 0 1em 1em;
}

.wp-post-image {
	max-width: 100%;
	height: auto;
}

.wp-caption {
	max-width: 100%;
}

img[class*='wp-image'] {
	max-width: inherit;
	height: auto;
}

.wp-caption-text {
	text-align: center;
}

.navigation {
	display: flex;
	justify-content: center;
	margin-bottom: 20px;
}

.nav-links span,
.nav-links a {
	border: 1px solid #1571b0;
	border-radius: 2px;
	padding: 10px 15px;
}

.nav-links a:hover {
	background-color: #1571b0;
	color: #eee;
}

a {
	text-decoration: none;
}
/* End Wordpress */

/* Start Bootstrap */

.btn {
	padding: 12px 25px;
}

/* End Bootstrap */

p,
a {
	overflow-wrap: break-word;
}

body h1,
h2,
h3,
h4,
h5,
h6,
p {
	font-family: inherit !important;
}

html {
	height: 100%;
}

body {
	color: #424242 !important;
	height: 100%;
	margin: 0;
}

header {
	display: none;
	opacity: 0;

	background-color: #ffffff;
	border-bottom: 1px solid #6c757d;

	height: calc(100vh - 60px);
	width: 100%;

	overflow: hidden;

	z-index: 10;

	-webkit-transition: opacity 300ms ease-in, visibility 0s ease-in 300ms;
	transition: opacity 300ms ease-in, visibility 0s ease-in 300ms;

	flex-direction: column;
	align-items: center;
}

@media (min-width: 768px) {
	header {
		display: flex;
		opacity: 1;
		position: fixed;

		border-bottom: none;
		width: 260px;
		height: 100%;

		align-items: center;
		flex-direction: column;
		flex-wrap: initial;
		justify-content: initial;
	}
}

@media (min-width: 1200px) {
	header {
		width: 300px;
	}
}

header>a {
	display: none;
}

.header-logo {
	margin: 1em 0;
	text-align: center;
}

.header-logo a {
	margin: 0 0.5em;
}

.header-logo a img{
	height: 40px;
	width: auto;
}

@media (min-width: 768px) {
	.header-logo {
		margin: 1.75em 0;
		text-align: center;
	}

	.header-logo a {
		display: block;
		margin: 0.75em 0;
	}

	.header-logo a img{
		height: 60px;
		width: auto;
	}	
}

@media screen {
	.screen-reader-text {
		display: none;
	}
}

/* Menu */

@media (max-width: 767.98px) {
	.logged-in.admin-bar #header header {
		height: calc(100vh - 106px);
	}
}

.menu-main-container {
	width: 100%;
}

@media (min-width: 768px) {
	.menu-main-container {
		width: 60%;
	}
}

@media (min-width: 768px) {
	.menu-main-menu-container {
		width: 100%;
		overflow-y: scroll;
		margin-bottom: 1em;
		direction: rtl;
		padding: 0 10%;
	}

	@supports (-moz-appearance:none) {
		.menu-main-menu-container {
			scrollbar-color: #90A4AE #FFFFFF;
			scrollbar-width: thin;
		}
	}

	@supports not (-moz-appearance:none) {
		.menu-main-menu-container::-webkit-scrollbar {
			width: .4em;
		}

		.menu-main-menu-container::-webkit-scrollbar-thumb {
			background-color: #90A4AE;
		}
	}
}

.menu {
	list-style: none;
	padding: 0;
}

.menu li {
	padding: 0.4em 0;
}

.menu li a {
	color: #1b1d1f;
	transition: color .2s linear 0s, background-color .2s linear 0s;
}

.menu li a:hover {
	color: #1571b0;
	transition: color .2s linear 0s, background-color .2s linear 0s;
}

.menu li a:not([href]) {
	color: #888888;
}

.menu-separator {
	border-bottom: 1px solid #aaaaaa;
}

/* Responsive Navigation */
.menu-toggle {
	display: none;
}

@media (min-width: 768px) {
	.mobile-bar {
		display: none;
	}
}

.menu-toggle:checked~header {
	display: flex;
	opacity: 1;
	-webkit-transition-delay: 0s;
	transition-delay: 0s;
}

.mobile-bar {
	z-index: 10;
	top: 0;
	left: 0;
	padding: 0 14px;
	width: 100%;
	height: 60px;
	background-color: #1571b0;
	-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.menu-icon {
	display: block;
	position: relative;
	margin-bottom: 0;
	width: 25px;
	height: 100%;
	cursor: pointer;
	-webkit-transition: -webkit-transform 300ms ease-in;
	transition: -webkit-transform 300ms ease-in;
	transition: transform 300ms ease-in;
	transition: transform 300ms ease-in, -webkit-transform 300ms ease-in;
}

.menu-icon>span {
	display: block;
	position: absolute;
	top: 55%;
	margin-top: -0.3em;
	width: 100%;
	height: 0.3em;
	border-radius: 1px;
	background-color: #eee;
	-webkit-transition: -webkit-transform 300ms ease-in;
	transition: -webkit-transform 300ms ease-in;
	transition: transform 300ms ease-in;
	transition: transform 300ms ease-in, -webkit-transform 300ms ease-in;
}

.menu-icon>span:before,
.menu-icon>span:after {
	content: "";
	position: absolute;
	width: 100%;
	height: 100%;
	border-radius: 1px;
	background-color: #eee;
	-webkit-transition: -webkit-transform 300ms ease;
	transition: -webkit-transform 300ms ease;
	transition: transform 300ms ease;
	transition: transform 300ms ease, -webkit-transform 300ms ease;
}

.menu-icon>span:before {
	-webkit-transform: translateY(-0.6em);
	transform: translateY(-0.6em);
}

.menu-icon>span:after {
	-webkit-transform: translateY(0.6em);
	transform: translateY(0.6em);
}

.menu-toggle:checked+.mobile-bar .menu-icon {
	-webkit-transform: rotate(45deg);
	transform: rotate(45deg);
}

.menu-toggle:checked+.mobile-bar span:before,
.menu-toggle:checked+.mobile-bar span:after {
	-webkit-transform: rotate(90deg);
	transform: rotate(90deg);
}

.sub-menu {
	padding-left: 1em;
	list-style-type: none;
}

/* Search Form */

@media (min-width: 768px) {
	#search-form input {
		direction: ltr;
	}
}

#search-form {
	margin-top: 2em;

	display: flex;
	align-items: center;
	flex-direction: column;
}

.search {
	padding: .5rem;
	width: -webkit-available;
	width: -moz-available;
}

.search-submit {
	margin-top: .8em;
}

/* Section */

section {
	background-color: #ffffff;
	min-height: 100%;

	padding: 60px 10px 10px 10px;
	text-align: center;
}

@media (min-width: 768px) {
	section {
		margin-left: 260px;
		padding: 1em;
	}
}

@media (min-width: 1200px) {
	section {
		margin-left: 300px;
		padding: 2em;
	}
}

section a {
	color: #1571b0;
}

section h1 {
	color: #424242;
	margin-bottom: 0;
	margin-top: 1rem;
	text-align: center;
}

@media (min-width: 768px) {
	section h1 {
		margin-top: 0;
	}
}

section h2 a {
	font-size: 20px;
}

section h3 {
	margin-top: 50px;
}

/* Article */

#index-page {
	padding: 10px;
	border-bottom: 1px solid #ddd;
}

.container p a {
	word-break: break-all;
}

/* Pagination */

.pagination {
	margin-bottom: 3rem;

	display: flex;
	justify-content: center;
}

.nav-links>* {
	border: 1px solid;
	border-radius: .25rem;
	padding: .375rem .75rem;
}

.nav-links>a {
	border-color: #6c757d;
	color: #6c757d;
}

.nav-links>a:hover {
	background-color: #6c757d;
	color: #ffffff;
}

.nav-links>span {
	background-color: #1571b0;
	border-color: #1571b0;
	color: #ffffff;
}


.nav-links>span:hover {
	cursor: default;
}

/* Footer */

footer {
	background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0) 100%);
	background-color: #ffffff !important;
	background-size: 100% 1px;
	background-repeat: no-repeat;
	min-height: 172px;
	padding: 1rem;

	display: flex;
	align-items: center;
	flex-direction: column;
	justify-content: space-around;
}

footer div {
	display: grid;
	grid-gap: 25px;
	grid-template-columns: repeat(auto-fit, minmax(204px, 1fr));
}

@media (min-width: 768px) {
	footer {
		margin-left: 260px;
	}
}

@media (min-width: 992px) {
	footer div {
		display: grid;
		grid-gap: 25px;
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1200px) {
	footer {
		margin-left: 300px;
	}
}

footer div a {
	text-align: center;
}

footer div img {
	margin: 0 15px 15px;
}

footer p {
	font-weight: 600;
	margin: 0;
}

/* Home */

.home-separator {
	background-color: #99CC33;
	display: inline-block;
	margin-bottom: 35px;
	margin-top: 15px;
	height: 3px;
	width: 6%;
}

#news {
	margin: 0 15px;
	display: grid;
	grid-column-gap: 150px;
	grid-row-gap: 50px;
	grid-template-columns: repeat(auto-fill, minmax(40%, 1fr));
}

@media (min-width: 768px) {
	#news {
		margin: 0 50px;
	}
}

#news div {
	text-align: justify;

	display: flex;
	flex-direction: column;
	align-items: center;
}

#news p {
	word-break: break-word;
}

@media (min-width: 768px) {
	#news div>a {
		height: 350px;

		display: flex;
		align-items: center;
	}
}

#news div h4 {
	text-align: center;
}

.news-title {
	height: auto;
	overflow: hidden;
	word-break: break-word;
}

.news-title a {
	color: #424242;
}

@media (min-width: 768px) {
	.news-title {
		height: 3.5em;
	}
}

.news-image {
	margin: 25px 0;
}

#inct-info {
	margin: 4rem 2rem;
	display: grid;
	grid-column-gap: 75px;
	grid-template-columns: repeat(auto-fill, minmax(45%, 1fr));
}

#inct-info div {
	text-align: justify;
}

#inct-info div h3 {
	text-align: center;
}

#inct-info img {
	margin: auto;
	width: 100%;
}

/* Login */

section #loginform p {
	text-align: center;
}

section #loginform p label {
	display: block;
}

section #loginform p input[type="text"],
section #loginform p input[type="password"] {
	width: 17rem;
	height: 3rem;
	padding: 1rem;
}

/* Slider */

#slider .carousel-inner .carousel-item img {
	height: 25.1vw;
}

.slider-caption {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translate(-50%, 0);
	background-color: rgba(0, 0, 0, .6);
	margin-bottom: 0;
	padding: .5rem 0;
	width: 100%;
}

a .slider-caption {
	color: #eee;
}

.slider-thumbs {
	display: none;
}

@media (min-width: 768px) {
	.slider-thumbs {
		display: inline;
	}

	.slider-thumbs img,
	.slider-thumbs a img {
		border: 3px solid transparent;
		width: 7.07rem;
		height: 3.52rem;
		margin-top: 0.25rem;
		margin-right: 0.1rem;
	}

	.slider-thumbs img:hover,
	.slider-thumbs a img:hover {
		border-color: #1571b0;
	}
}

/* Carousel */

.carousel-item h4 {
	color: #eee;
}

#publish-carousel {
	padding: 35px;
}

#carousel-nav {
	display: flex;
	margin-bottom: 35px;
	flex-wrap: wrap;
	justify-content: center;
}

#carousel-nav a {
	margin: 10px;
	padding: 12px;
	width: 130px;
	white-space: normal;
	display: flex;
	justify-content: center;
	align-items: center;
}

.carousel-button {
	margin: 0 10px !important;
}

.carousel-button.active {
	background-color: #1571b0 !important;
	border-color: #1571b0 !important;
}

#publish-carousel-content {
	min-height: 525px;
}

@media (max-width: 611px) {
	#publish-carousel-content {
		min-height: 300px;
	}
}

.publish-carousel-item {
	margin: auto;
}

.publish-carousel-item a {
	color: #1b1d1f;
	text-decoration: none;

	height: 250px;
	overflow: hidden;
	padding: 1em;

	border: 3px solid;
	border-radius: 10px;
	border-image: conic-gradient(from 315deg, #1571b0, #99CC33, #1571b0) 1;

	background-image: url('assets/images/logo-inct-fna-desaturated.png');
	background-position: center;
	background-size: cover;

	position: relative;
}

.publish-carousel-item a::before {
	background-image: url('assets/images/logo-inct-fna-colored.png');
	background-position: center;
	background-size: cover;
	
	position: absolute;

	content: "";
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;

	opacity: 0;
  	transition: ease-in .4s;
}

.publish-carousel-item a:hover::before {
	opacity: .2;
}

@media (max-width: 611px) {
	.publish-carousel-item a {
		min-height: 300px;
	}
}

.publish-carousel-item a p {
	margin-bottom: 0;
	min-height: 250px;
	position: relative;
}

.publish-carousel-item a p:hover {
	animation: rolltext 4s infinite;
}

@keyframes rolltext {
	100% {
		transform: translateY(calc(-100% + 250px));
	}
}

@media (max-width: 611px) {
	.publish-carousel-item a p {
		min-height: 300px;
	}
}

.publish-carousel-item.active,
.publish-carousel-item.carousel-item-prev,
.publish-carousel-item.carousel-item-next {
	display: grid;
	grid-gap: 25px;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}


@media (min-width: 1262px) {

	.publish-carousel-item.active,
	.publish-carousel-item.carousel-item-prev,
	.publish-carousel-item.carousel-item-next {
		grid-template-columns: repeat(3, 1fr);
	}
}

.carousel-control-next,
.carousel-control-prev {
	color: black !important;
	font-size: 3em;
	width: auto;
}

.carousel-control-next {
	margin-right: 4px;
}

.carousel-control-prev {
	margin-left: 4px;
}

.carousel-control .fa {
	font-size: 1.5em;
}

.carousel-indicators {
	margin: 0 0;
	position: static;
	text-align: left;
	white-space: nowrap;
	width: 100%;
}

.carousel-indicators li {
	background-color: transparent;
	-webkit-border-radius: 0;
	border-radius: 0;
	display: inline-block;
	height: auto;
	margin: 0 !important;
	width: auto;
}

.carousel-indicators li img {
	display: block;
	opacity: 0.5;
}

.carousel-indicators li.active img {
	opacity: 1;
}

.carousel-indicators li:hover img {
	opacity: 0.75;
}

/* Posts */

#post-header {
	border-bottom: 1px solid #ededed;
	margin-bottom: 50px;
	padding: 25px 0;
}

@keyframes rolltext {
	100% {
		transform: translateY(calc(-100% + 250px));
	}
}

/* Index */

.category-bar input[type="radio"]:checked+label {
	background-color: #1571b0;
	border-color: #1571b0;
	color: #fff;
}

/* Institution */

.institution {
	text-align: center;
	width: 100%;

	display: grid;
	grid-gap: 50px 25px;
	grid-template-columns: repeat(1, minmax(250px, 1fr));
}

@media (min-width: 768px) {
	.institution {
		grid-template-columns: repeat(2, minmax(250px, 1fr));
	}
}

/* Institution List */

@media (max-width: 991.98px) {
	.institution-list-container {
		align-items: center;

		flex-flow: column-reverse;
		flex-wrap: wrap;
	}
}

@media (max-width: 991.98px) {
	.institution-list {
		column-count: 3;
		column-gap: 20px;
		padding: 0;
	}
}

.institution-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2rem;
}

.institution-list li {
	display: flex;
	border: 3px solid white;
	position: relative;
	transition: all 0.3s;
}

.institution-list li:hover {
	border-color:#1571b0;
}

.institution-list li a:first-child img {
	height: 125px;
	padding: 0.5rem;
}

.institution-list li a:nth-child(2) {
	position: absolute;
	left: 0.15rem;
}

@media (min-width: 992px) {
	.institution-list li a:first-child {
		margin-right: 0;
	}
}

.map-container {
	width: 100%;
	max-width: 100vh;
	margin: 0 auto;
}

@media (min-width: 992px) {
	.map-container {
		padding-left: 3rem;
		padding-right: calc(3rem - 10px);
	}
}

#map {
	padding-top: 100%;
	width: 100%;
}

/* User Panel */

.user-panel {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
}

.user-panel a {
	margin: 1em .5em;
	font-size: 2em;
	line-height: 1em;
	color: #444;
	text-align: center;
	flex-basis: auto;
	flex-grow: 1;
	max-width: 200px;
}

#loginform #wp-submit {
	display: inline-block;
	font-weight: 400;
	text-align: center;
	white-space: nowrap;
	vertical-align: middle;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	border: 1px solid transparent;
	border-top-color: transparent;
	border-right-color: transparent;
	border-bottom-color: transparent;
	border-left-color: transparent;
	padding: 12px 25px;
	font-size: 1rem;
	line-height: 1.5;
	border-radius: .25rem;
	transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;

	color: #6c757d;
	background-color: transparent;
	background-image: none;
	border-color: #6c757d;
}

#loginform #wp-submit:hover {
	color: #fff;
	cursor: pointer;
	background-color: #6c757d;
	border-color: #6c757d;
	text-decoration: none;
}

/* Google */

#google_translate_element {
	padding-bottom: 1rem;
}

.goog-te-gadget {
    font-family: inherit !important;
}

.goog-te-gadget .goog-te-combo {
	width: -webkit-available;
	width: -moz-available;
    font-family: inherit !important;
    font-size: 1rem;
    font-weight: 400;
    padding: .5rem;
    margin: 0;
}

/* Plugins */

/* AWSM Team */

.awsm-table-img-holder img {
	width: 4.6875rem;
}

#awsm-team-4730 .awsm-table .awsm-table-row .awsm-table-cell:nth-child(4),
#awsm-team-4730 .awsm-table .awsm-table-row .awsm-table-cell:nth-child(5),
#awsm-team-8267 .awsm-table .awsm-table-row .awsm-table-cell:nth-child(4),
#awsm-team-8267 .awsm-table .awsm-table-row .awsm-table-cell:nth-child(5),
#awsm-team-8266 .awsm-table .awsm-table-row .awsm-table-cell:nth-child(4),
#awsm-team-8266 .awsm-table .awsm-table-row .awsm-table-cell:nth-child(5),
#awsm-team-4727 .awsm-table .awsm-table-row .awsm-table-cell:nth-child(4),
#awsm-team-4727 .awsm-table .awsm-table-row .awsm-table-cell:nth-child(5),
#awsm-team-4728 .awsm-table .awsm-table-row .awsm-table-cell:nth-child(4),
#awsm-team-4728 .awsm-table .awsm-table-row .awsm-table-cell:nth-child(5) {
	display: none;
}

/* Font Awesome */

a .fa-brands {
	color: #424242;
	margin-left: .25rem;
}

a .fa-brands:hover {
	color: #007bff;
}

/* Custom Timeline Styles */
.timeline-horizontal-container {
	position: relative;
	max-width: 100%;
	margin: 0 auto;
}

@media (max-width: 992px) {
	.timeline-line {
		display: none;
	}
}

.timeline-line {
	position: sticky;
  height: 3px;
  background-color: #1571b0;
	margin: 1rem 0;
	left: 0;
	z-index: 10;
}

.timeline-horizontal-container::before,
.timeline-horizontal-container::after {
	content: '\f105';
	font-family: 'Font Awesome 6 Free';
	font-weight: 900;
	position: absolute;
	width: 1rem;
	height: 1rem;
	background: #424242;
	border-radius: 50%;
	top: 2.4rem;
	transform: translateY(-50%);
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.6rem;
	color: #fff;
}

.timeline-horizontal-container::before {
	left: 16px;
	content: '\f104';
}

.timeline-horizontal-container::after {
	right: 16px;
	content: '\f105';
}

.timeline-scroll-wrapper {
	padding-bottom: 2rem;
	overflow-x: auto;
	scrollbar-width: none;
	position: relative;
}

.timeline-horizontal-container {
	position: relative;
	max-width: 100%;
	margin: 0 auto;
	overflow: visible;
	padding: 0 32px;
}

/* Timeline dots for navigation */
.timeline-horizontal-container::before,
.timeline-horizontal-container::after {
	content: '\f105';
	font-family: 'Font Awesome 6 Free';
	font-weight: 900;
	position: absolute;
	width: 1rem;
	height: 1rem;
	background: #1571b0;
	border-radius: 50%;
	top: 2.4rem;
	transform: translateY(-50%);
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.6rem;
	color: #fff;
}

.timeline-horizontal-container::before {
	left: 16px;
	content: '\f104';
}

.timeline-horizontal-container::after {
	right: 16px;
	content: '\f105';
}

/* Timeline fade effects - using a different approach */
/* Timeline fade wrapper */
.timeline-fade-wrapper {
	position: relative;
}

.timeline-fade-wrapper::before,
.timeline-fade-wrapper::after {
	content: '';
	position: absolute;
	width: 60px;
	height: 100%;
	z-index: 5;
	pointer-events: none;
	top: 0;
}

@media (max-width: 992px) {		
	.timeline-fade-wrapper::before,
	.timeline-fade-wrapper::after {
		display: none;
	}
}

.timeline-fade-wrapper::before {
	left: 0;
	background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
}

.timeline-fade-wrapper::after {
	right: 0;
	background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
}

.timeline-scroll-wrapper {
	padding-bottom: 2rem;
	overflow-x: auto;
	scrollbar-width: none;
	position: relative;
}

.timeline-scroll-wrapper::-webkit-scrollbar {
	height: 8px;
}

.timeline-scroll-wrapper::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 4px;
}

.timeline-scroll-wrapper::-webkit-scrollbar-thumb {
	background: #007bff;
	border-radius: 4px;
}

.timeline-scroll-wrapper::-webkit-scrollbar-thumb:hover {
	background: #0056b3;
}

.timeline-horizontal {
	display: flex;
  width: 100%;
}

.timeline-horizontal::after {
	content: '';
	width: 2rem;
	flex-shrink: 0;
}

.timeline-horizontal::before {
	content: '';
	width: 2rem;
	flex-shrink: 0;
}

@media (max-width: 992px) {
	.timeline-horizontal::after,
	.timeline-horizontal::before {
		display: none;
	}
}

.timeline-item-horizontal {
	position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc((100% - 12rem) / 3);
  flex-shrink: 0;
	margin: 0 2rem;
}

.timeline-item-horizontal:first-child {
	margin-left: 0;
}

.timeline-item-horizontal:last-child {
	margin-right: 0;
}

.timeline-content {
	display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.timeline-date {
	background: #f8f9fa;
	border: 2px solid #dee2e6;
	border-radius: 8px;
	padding: 10px;
	text-align: center;
	min-width: 60px;
	margin-bottom: 15px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timeline-date-day {
	display: block;
	font-size: 18px;
	font-weight: bold;
	color: #495057;
}

.timeline-date-month {
	display: block;
	font-size: 12px;
	color: #6c757d;
	text-transform: uppercase;
}

.timeline-box {
	background: #ffffff;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	width: 100%;
	height: 190px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-box a {
	color: #424242;
}

.timeline-box a:hover {
	color: #1571b0;
	text-decoration: none;
}

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

.timeline-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	padding: 8px 0 8px 8px;
	border-left: 4px solid #99CC33;
	border-bottom: 1px solid #e9ecef;
}

.timeline-category {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	color: #6c757d;
}

.timeline-time {
	font-size: 11px;
	color: #adb5bd;
}

.timeline-title {
	margin: 0 0 10px 0;
	font-size: 18px;
	line-height: 1.3;
}

.timeline-title a {
	color: #2c3e50;
	text-decoration: none;
	transition: color 0.3s ease;
}

.timeline-title a:hover {
	color: #007bff;
}

.timeline-image {
	margin: 10px 0;
	overflow: hidden;
	border-radius: 6px;
}

.timeline-image img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.3s ease;
}

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

.timeline-excerpt {
	font-size: 14px;
	line-height: 1.6;
	color: #6c757d;
	margin: 10px 0;
	max-height: 80px;
	overflow: hidden;
}

.timeline-read-more {
	display: inline-block;
	font-size: 13px;
	font-weight: 500;
	color: #007bff;
	text-decoration: none;
	transition: color 0.3s ease;
}

.timeline-read-more:hover {
	color: #0056b3;
}

.timeline-dot {
	position: absolute;
  top: calc(-1rem - 0.1rem);
  left: 50%;
  width: 16px;
  height: 16px;
  background: #1571b0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.timeline-scroll-hint {
	text-align: center;
	margin-top: 10px;
	color: #6c757d;
	font-size: 14px;
	font-style: italic;
}

/* Responsive Design */
@media (max-width: 1200px) {
	.timeline-item-horizontal {
		width: calc((100% - 8rem) / 3);
	}
}

@media (max-width: 992px) {
	.timeline-item-horizontal {
		width: 100%;
	}
	
	.timeline-horizontal {
		gap: 40px;
	}
}

@media (max-width: 768px) {	
	.timeline-horizontal-container::after,
	.timeline-horizontal-container::before {
		display: none;
	}
	
	.timeline-horizontal-container {
		padding: 20px 0;
	}
	
	.timeline-item-horizontal {
		width: 100%;
	}
	
	.timeline-horizontal {
		gap: 30px;
		padding: 0 15px;
	}
}

@media (max-width: 576px) {
	.timeline-horizontal-container {
		padding: 15px 0;
	}
	
	.timeline-item-horizontal {
		width: 100%;
	}
	
	.timeline-horizontal {
		gap: 20px;
		padding: 0 10px;
	}
	
	.timeline-box {
		padding: 12px;
	}
	
	.timeline-title {
		font-size: 15px;
	}
	
	.timeline-excerpt {
		font-size: 12px;
		max-height: 60px;
	}
	
	.timeline-date {
		min-width: 50px;
		padding: 8px;
	}
	
	.timeline-date-day {
		font-size: 16px;
	}
	
	.timeline-date-month {
		font-size: 10px;
	}
}

@media (max-width: 992px) {	
	.timeline-horizontal-container::after,
	.timeline-horizontal-container::before {
		display: none;
	}
}

.text-primary a {
	font-weight: bold;
	color: #1571b0 !important;
}