html {
    scroll-behavior: smooth;
}

body {
	margin: 0;
	font-size: 16px;
}

.no-outline {
	outline:none!important;
}

.loader_size {
	font-size: 20px;
}

.centerLoading {
	width: 20px; 
	height: 20px; 
	margin: 10px auto;
	text-align: center;
}

/* hide pg scrollbar when bootstrap modal is open */
.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* hide/show pg scrollbar when w3 modal is open/close */
.w3-modal-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.active-link {
    color: #5F2DED;
}

/* Accent and background color styling for the modal */
.custom-modal-header {
    background-color: #007bff;
    color: #ffffff;
    border-bottom: 2px solid #0056b3;
}

.custom-modal-body {
    background-color: #f8f9fa;
}

.custom-modal-footer {
    background-color: #e9ecef;
    border-top: 2px solid #dee2e6;
}

.custom-modal-title {
    font-weight: bold;
}
    
.btn-primary-custom {
    background-color: #007bff;
    border-color: #007bff;
}
    
.btn-primary-custom:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.rounded-top-16 {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px
}

.rounded-bottom-16 {
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px
}

.btn-close.white-close {
    filter: brightness(0) invert(1);
}

.pointer {
	cursor: pointer;
}

.w3-modal{
	z-index: 1080;
}

.w3-modal-xs {
	width: 350px;
}

.w3-modal-sm {
	width: 400px;
}

.w3-modal-md {
	width: 600px;
}

.w3-modal-xl {
	width: 1140px;
}

@media screen and (min-width: 1140px) {
	.w3-modal-xl{margin-bottom: 15px;}
	.w3-modal-content{margin-bottom: 15px;}
	.w3-modal-md{margin-bottom: 15px;}
}

@media screen and (max-width: 1250px) {
	.w3-modal-xl{
		width: 992px;
		margin-right: auto;
    	margin-left: auto;
		margin-bottom: 15px;
	}
	
	.w3-modal-content{margin-bottom: 15px;}
	.w3-modal-md{margin-bottom: 15px;}
}

@media screen and (max-width: 1120px) {
	.w3-modal-xl{
		width: 768px;
		margin-right: auto;
    	margin-left: auto;
		margin-bottom: 15px;
	}
	
	.w3-modal-content{margin-bottom: 15px;}
	.w3-modal-md{margin-bottom: 15px;}
}

@media screen and (max-width: 890px) {
	.w3-modal-xl{
		width: 600px;
		margin-right: auto;
    	margin-left: auto;
		margin-bottom: 15px;
	}
	
	.w3-modal-content{margin-bottom: 15px;}
	.w3-modal-md{margin-bottom: 15px;}
}

@media screen and (max-width: 678px) {
	.w3-modal-xl{
		width: 500px;
		margin-right: auto;
    	margin-left: auto;
		margin-bottom: 15px;
	}
	
	.w3-modal-md{
		width: 500px;
		margin-right: auto;
    	margin-left: auto;
		margin-bottom: 15px;
	}
	
	.w3-modal-content{margin-bottom: 15px;}
}

@media screen and (max-width: 612px) {
	.w3-modal-xl{
		width: 400px;
		margin-right: auto;
    	margin-left: auto;
		margin-bottom: 15px;
	}
	
	.w3-modal-md{
		width: 400px;
		margin-right: auto;
    	margin-left: auto;
		margin-bottom: 15px;
	}
	
	.w3-modal-content{margin-bottom: 15px;}
}

@media screen and (max-width: 600px) {
	.w3-modal-xl{
		margin:0 15px 10px;
		width:auto !important;
	}
	
	.w3-modal-md{
		margin:0 15px 10px;
		width:auto !important;
	}
	
	.w3-modal-content{
		margin:0 15px 10px;
		width:auto !important;
	}
    
    .w3-modal-sm{
        margin:0 auto;
		width:auto !important;
    }
}

/*.exam-card {
    position: relative;
    border-radius: 1rem;
    padding: 2rem;
    transition: 0.3s ease;
    color: white;
    overflow: hidden;
}

.exam-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.exam-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}*/

/* Overlay effect */
/*.exam-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
    word-wrap: break-word;
}

.exam-card:hover .overlay {
    opacity: 1;
}*/

.bg-ican {
    background-color: #004080; /* Deep navy */
}

.bg-media {
    background-color: #6f42c1; /* Bootstrap purple */
}

.modal-overlay {
    background-color: rgba(0, 0, 0, 0.8);
}

/*///////////////////*/
.exam-card {
  border-radius: 1rem;
  padding: 2rem;
  transition: 0.3s ease;
  color: white;
  position: relative;
  overflow: hidden;
}
.exam-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.exam-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.exam-desc {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.5rem;
  opacity: 0;
  transition: 0.3s ease;
}
.exam-card:hover .exam-desc {
  opacity: 1;
}

/* Responsive padding for mobile */
@media (max-width: 576px) {
  .exam-card {
      padding: 100px 20px;
    padding: 1.5rem 1rem;
  }
  .exam-icon {
    font-size: 2rem;
  }
}

