.subpages {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.subpage-grid {
    display: flex;
    justify-content: right;
    width: 100%;
    margin-top: 30px;
}

.training-subpages {
    overflow: hidden;
    padding: 0 6px;
	width:100%;
	margin-top:70px;
}

.training-subpages .slides {
    display: flex;
    transition: transform .3s ease;
}

.training-subpages .page {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    gap: 30px; /* 30px between slides only */
}

.training-subpages .slide {
    flex: 0 0 calc((100% - 90px) / 4);
}

.card {
    height: 185px;
    background: #e9e3e3;
    border-radius: 8px;
	color: #033b80;
    box-shadow: -1px 2px 5px rgba(0,0,0,.12);
	font-size:10px;
	padding:0px 10px;
	text-align:left;
	overflow:hidden;

}

.card h1 {
    font-size:20px;
	line-height:20px;
	padding-bottom:10px;
	margin-left:3px;
	font-family: var(--font-title);
	font-weight:400;
}

.circle {
    display: block !important;
    width: 15px !important;
    height: 15px !important;
    border-radius: 50%;	
	margin-top:5px;
}

.page:nth-child(1) .slide:nth-child(1) .circle {
	background: conic-gradient(
        #336b83 0deg 90deg,
        transparent 90deg 360deg
    );
	transform: translateX(-7.5px);
}

.page:nth-child(1) .slide:nth-child(2) .circle {
	background: conic-gradient(
        #dd3d6f 0deg 90deg,
        transparent 90deg 360deg
    );
	transform: translateX(-2px) rotate(315deg);
}

.page:nth-child(1) .slide:nth-child(3) .circle {
	background: conic-gradient(
        #e7ab1f 0deg 90deg,
        transparent 90deg 360deg
    );
	transform: translateX(-2px) translateY(-7.5px) rotate(135deg);
}

.page:nth-child(1) .slide:nth-child(4) .circle {
	background: conic-gradient(
        #7f8f4d 0deg 90deg,
        transparent 90deg 360deg
    );
	transform: translateX(-7.5px);
}

.page:nth-child(2) .slide:nth-child(1) .circle {
    transform: rotate(45deg);
	background: conic-gradient(
        #831974 0deg 90deg,
        transparent 90deg 360deg
    );
	transform: translateY(-2px) rotate(225deg);
}

.buttons {
	margin-top:40px;
	display:none;
}

.buttons button {
    color: #033b7f;
    font-size: 30px;
    margin-right: 20px;

    background: transparent;
    border: none;
    cursor: pointer;

    width: 36px;
    height: 36px;
    border-radius: 50%;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    transition: .2s;
}

.buttons button span {
    display: block;
    position: relative;
    top: -2px; /* moves only the arrow */
	transform: scaleX(.7); /* 70% width */
}

.buttons button.active {
    background: #033b7f;
    color: #fff;
}

.subpages h2 {
	font-size:50px;
	color: #033b80;
	margin-top:40px;
	font-family: var(--font-title);
	font-weight:500;
}

.subpages h3 {
	font-size:35px;
	color: #033b80;
	margin-top:40px;
	padding:5px 10px;
	line-height:30px;
	font-family: var(--font-title);
	font-weight:500;
}

.subpages h4 {
	font-size:15px;
	color: #80904d;
	margin-top:10px;
	

}


.subpages h5 {
	font-size:14px;
	color: #e16f0a;
	margin-top:10px;
	text-align:left;
}


.training-bottom-title {
    border-top:1px solid #033b7f;
	border-bottom:1px solid #033b7f;
	width:100%;
	margin-top:70px;
	font-size: 50px;
    color: #033b80;
	text-align:left;
	margin-bottom:30px;

}

.training-bottom-title span {
	margin-left:20px;	
}

.training-bottom {
	width:100%;	
	display:none;
}

.training-bottom h1 {
	color: #033b80;
	font-size:20px;
	line-height:30px;
	text-align:left;
	padding-left:20px;
	padding-right:120px;
}

.training-bottom h2 {
	color: #033b80;
	font-size:45px;
	    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.training-bottom h3 {
	color: #033b80;
	font-size:25px;
	    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.training-bottom h4 {
	color: #033b80;
	font-size:15px;
	    text-align: center;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.training-bottom h5 {
	color: #033b80;
	font-size:20px;
	    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.dot {
    width: 5px;
    height: 5px;
    display: inline-block;
    margin: 0 10px;
    position: relative;
    top: 0px;
}

.dot:nth-child(1) {
	background: #dd3d6f;
}

.dot:nth-child(2) {
	background: #e7ab1f;
}

.dot:nth-child(3) {
	background: #7f8f4d;
}


/* ==========================
   MOBILE VERSION
========================== */

@media (max-width: 768px) {

    .subpages {
        padding: 0 15px;
    }


    /* Header area */
    .subpages h2 {
        font-size: 32px;
        line-height: 36px;
        margin-top: 25px;
    }


    .subpages h3 {
        font-size: 22px;
        line-height: 28px;
        margin-top: 25px;
        padding: 0;
        white-space: nowrap;
    }


    .subpages h4 {
        font-size: 14px;
        line-height: 20px;
        margin-top: 15px;
    }


    /* Keep existing carousel HTML, but show slides normally */
    .training-subpages {
        overflow: visible;
        width: 100%;
        margin-top: 40px;
    }


    .training-subpages .slides {
        display: grid;
        transform: none !important;
        gap: 20px;
    }


    .training-subpages .page {
        display: contents;
    }


    .training-subpages .slide {
        width: 100%;
    }


    .card {
        height: auto;
        min-height: 190px;
        padding: 15px;
        font-size: 13px;
        border-radius: 10px;
    }


    .card h1 {
        font-size: 22px;
        line-height: 25px;
        margin-left: 0;
        padding-bottom: 10px;
		font-family: var(--font-title);
		font-weight:500;
    }


    .circle {
        width: 16px !important;
        height: 16px !important;
    }


    /* Hide carousel navigation */
    .buttons {
        display: none;
    }


    /* Who can apply section */
    .training-bottom-title {
        margin-top: 60px;
        padding: 20px 0;
        font-size: 32px;
        line-height: 36px;
        text-align: left;
    }


    .training-bottom-title span {
        margin-left: 0;
    }


    .training-bottom {
        padding-bottom: 70px;
		display:none;
    }


    .training-bottom h1 {
        font-size: 16px;
        line-height: 24px;
        padding: 0;
    }


    .training-bottom h2 {
        font-size: 30px;
        line-height: 35px;
        margin-top: 40px;
    }


    .training-bottom h3 {
        font-size: 20px;
        line-height: 26px;
    }


    .training-bottom h4 {
        font-size: 14px;
        line-height: 22px;
    }


    .training-bottom h5 {
        font-size: 18px;
    }


    /* Your idea / Your Impact / Our Support */
    .subpages h3 {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
    }


    .dot {
        width: 5px;
        height: 5px;
        margin: 0;
        flex-shrink: 0;
    }
	
	.training-bottom h3 {
        white-space: normal !important;
        display: block !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-wrap: break-word;
        text-align: center;
        font-size: 20px;
        line-height: 26px;
        padding: 0 10px;
        margin-left: auto;
        margin-right: auto;
    }

}
