h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

p {
    font-size: 1rem;
    line-height: 1.5;
}
button:focus {
    background: transparent !important;
}
.error-msg {
    text-align: center;
    color: red;
    padding: 30px;
    font-style: italic;
}
.error-msg-2 {
    text-align: center;
    color: #fddd00;
    font-style: italic;
    padding: 30px;
    margin-bottom: 0;
}
.img-loading {
    display: flex;
    margin: 40px auto;
    width: 80px;
}
/* Shortcode styles */
.api-list li a {
	color: #19196E;
}
.api-list li a:hover {
	color: #ddc100;
}
.api-title {
    font-size: 30px;
}
.api-meta-data {
    font-size: 20px;
}
/*NEWS*/
.api-news-container .container {
    display: flex;
    width: 100%;
}

.api-news-container .left {
    width: 50%; 
    height: auto;
    position: relative;
}

.api-news-container .left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 20px !important;
    border-bottom-left-radius: 20px !important; 
}

.api-news-container .right {
    width: 50%; 
    padding: 10px 40px 10px 40px;
    overflow-y: auto; 
}

.api-news-container .content {
    max-width: 600px;
    margin: auto;
    color: #fff;
}
.api-news-container .content a {
    color: #fff;
}
.api-news-container .content a:hover {
    color: #ddc100;
}
/*RESEARCH*/
.api-research-container .container {
    display: flex;
    width: 100%;
}

.api-research-container .right {
    width: 50%; 
    height: auto;
    position: relative;
}

.api-research-container .right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-right-radius: 20px !important;
    border-bottom-right-radius: 20px !important; 
}

.api-research-container .left {
    width: 50%; 
    padding: 10px 40px 10px 40px;
    overflow-y: auto; 
}

.api-research-container .content {
    max-width: 600px;
    margin: auto;
    color: #fff;
}
.api-research-container .content a {
    color: #fff;
}
.api-research-container .content a:hover {
    color: #ddc100;
}
/* ANNOUNCEMENTS */
.api-announcements-container {
    text-align: center;
}

.api-announcements-container img.announcement-img {
    margin: auto;
    padding: 0 35px;
}
.api-announcements-container h1 {
    font-size:18px;
}
.api-announcements-container a {
    color: #333;
}
.api-announcements-container a:hover {
    color: #ddc100;
}
.api-announcements-container .img-loading {
    display: flex;
    margin: 40px auto;
    width: 80px;
}
.api-announcements-slider button.custom-prev.slick-arrow, .api-announcements-slider button.custom-next.slick-arrow {
    padding: 0 5px;
}
/*.api-announcements-slider button.custom-prev.slick-arrow:hover, .api-announcements-slider button.custom-next.slick-arrow:hover, .api-announcements-slider button.custom-prev.slick-arrow:focus, .api-announcements-slider button.custom-next.slick-arrow:focus {
    background: transparent !important;
}*/
/*.api-announcements-slider button.custom-prev.slick-arrow i, .api-announcements-slider button.custom-next.slick-arrow i {
    font-size: 40px;
    color: #fddd00;
}
.api-announcements-slider button.custom-prev.slick-arrow:hover i, .api-announcements-slider button.custom-next.slick-arrow:hover i, .api-announcements-slider button.custom-prev.slick-arrow:focus i, .api-announcements-slider button.custom-next.slick-arrow:focus i {
    color: #fddd00;
}*/
.api-announcements-slider .slick-dots {
    bottom: -10% !important;
}
/* EVENTS */
.api-events-container p {
    margin-bottom: 8px;
}
.api-events-container p a {
    color: #19196E;
}
.api-events-container p a:hover {
    color: #ddc100;
}
.event-item {
    padding-right: 15%;
}
/*SLIDER*/
button.custom-prev.slick-arrow, button.custom-next.slick-arrow {
    position: absolute;
    z-index: 2;
    top: 45%;
}

button.custom-prev.slick-arrow {
    left: 0;
    border: 0;
    padding: 0 10px;
}
button.custom-next.slick-arrow {
    right: 0;
    border: 0;
    padding: 0 10px;
}
button.custom-prev.slick-arrow i, button.custom-next.slick-arrow i {
    font-size: 40px;
    color: #fddd00;
}
button.custom-prev.slick-arrow:hover i, button.custom-next.slick-arrow:hover i, button.custom-prev.slick-arrow:focus i, button.custom-next.slick-arrow:focus i {
    color: #ddc100;
}
button.custom-prev.slick-arrow:hover, button.custom-next.slick-arrow:hover, button.custom-prev.slick-arrow:focus, button.custom-next.slick-arrow:focus {
    background: none;
}
button.custom-prev-2.slick-arrow {
    border: 0;
    position: absolute;
    right: 0;
    z-index: 10;
    top: 30%;
    background: transparent;
    padding: 10px;
}

button.custom-next-2.slick-arrow {
    border: 0;
    position: absolute;
    right: 0;
    bottom: 35%;
    background: transparent;
    padding: 10px;
}

button.custom-prev-2.slick-arrow i, button.custom-next-2.slick-arrow i {
    font-size: 30px;
    color: #fddd00;
    display: flex;
}
button.custom-prev-2.slick-arrow.slick-disabled i, button.custom-next-2.slick-arrow.slick-disabled i {
    color: #8a8a8a;
}

button.custom-prev-2.slick-arrow:hover, button.custom-next-2.slick-arrow:hover, button.custom-prev-2.slick-arrow:focus, button.custom-next-2.slick-arrow:focus {
    color: #ddc100;
}

.slick-dotted.slick-slider {
    margin-bottom: 0px !important;
}

.slick-dots {
    bottom: 0 !important;
}

.slick-dots li button:before {
    opacity: .5;
    color: #FDDD00 !important;
    font-size: 8px;
}

.slick-dots li.slick-active button:before {
    opacity: 1 !important;
    color: #FDDD00 !important;
    font-size: 8px;
}

.slick-dots button:hover {
    background: none;
}

.slick-dots li {
    display: none !important; /* Hide all dots initially */
}

/* Show only the first 5 dots */
.slick-dots li:nth-child(-n+3) {
    display: inline-block !important;
}



/* Popup modal styles */
.shortcode-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden; /* Prevent scrolling of the background */
}

.shortcode-popup-content {
    max-width: 700px;
    width: 100%;
    max-height: 80%; /* Limit the modal's height */
    text-align: center;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional: Add shadow for better visibility */
    border-bottom: 15px solid #FDDD00;
    overflow: hidden; /* Prevent scrolling on the entire modal */
    border-radius: 20px;
}

.shortcode-popup-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    width: 100%; 
    height: auto;
    object-fit: cover;
}

.shortcode-popup-content h1#shortcode-popup-title {
    color: #fddd00;
    font-weight: bold;
    font-size: 40px;
    text-align: center;
    margin: 10px 30px 5px 30px;
}

.shortcode-popup-content p {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.5; /* Improve readability */
}
.shortcode-popup-content p#shortcode-popup-created {
    color: #fff;
    font-size: 18px;
}
.shortcode-popup-content p#shortcode-popup-description {
    text-align: left;
}
.shortcode-popup-close {
    position: absolute;
    top: 0px;
    right: 5px;
    background: none;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}
.shortcode-popup-close:hover, .shortcode-popup-close:focus {
    background: transparent !important;
    color: #FDDD00;
}
.shortcode-popup-header {
    background-color: #19196e;
    padding: 10px;

}
.shortcode-popup-body {
    padding: 10px 30px 30px 30px;
    max-height: 60vh; 
    overflow-y: auto; 
    padding: 15px; 
    background: #fff;
}
button#shortcode-popup-btn {
    margin: auto;
    background: #19196e;
    border: 1px solid #19196e;
    padding: 15px 30px;
}
button#shortcode-popup-btn  {
    color: #fff;
}
button#shortcode-popup-btn:hover, button#shortcode-popup-btn:focus {
    background: transparent;
    border: 1px solid #19196e;
    color: #19196e;
}
a#shortcode-popup-link:hover button#shortcode-popup-btn , a#shortcode-popup-link:focus button#shortcode-popup-btn   {
    color: #19196e;
}
/*popup for events */
.event-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.event-popup-content {
    max-width: 700px;
    width: 90%;
    text-align: center;
    position: relative;
    border-bottom: 15px solid #FDDD00;
    overflow: hidden; 
    border-radius: 20px;
}

.event-popup-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    width: 100%;
    object-fit: cover;
}

.event-popup-content h1#event-popup-title {
    font-size: 35px;
    color: #fddd00;
    text-align: center;
    margin: 10px 30px 5px 30px;
}

.event-popup-content p {
    margin-bottom: 10px;
    font-size: 16px;
}
.event-popup-content p b {
    color: #19196e;
}
.event-popup-close {
    position: absolute;
    top: 0px;
    right: 5px;
    background: none;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}
.event-popup-close:hover, .event-popup-close:focus {
    background: transparent !important;
    color: #FDDD00;
}
.event-popup-header {
    background-color: #19196e;
    padding: 10px;
}
.event-popup-body {
    padding: 20px 30px 20px 30px;
    max-height: 60vh; 
    overflow-y: auto; 
    padding: 15px; 
    background: #fff;
}

button#event-popup-btn {
    margin: auto;
    background: #19196e;
    border: 1px solid #19196e;
    padding: 15px 30px;
}
button#event-popup-btn  {
    color: #fff;
}
button#event-popup-btn:hover, button#event-popup-btn:focus {
    background: transparent;
    border: 1px solid #19196e;
    color: #19196e;
}
a#event-popup-link:hover button#event-popup-btn , a#event-popup-link:focus button#event-popup-btn   {
    color: #19196e;
}

@media (max-width: 1024px) {
    .api-news-container .container {
        display: block;
    }

    .api-news-container .left, .api-news-container .right {
        width: 100%;
    }
    .api-news-container .content {
        max-width: none;
    }

    .api-news-container .left img {
        height: 500px;
        object-fit: cover;
        object-position: center;
    }

    .api-research-container .container {
        display: block;
    }

    .api-research-container .left, .api-research-container .right {
        width: 100%;
    }

    .api-research-container .content {
        max-width: none;
    }

    .api-research-container .right img {
        height: 500px;
        object-fit: cover;
        object-position: center;
    }
}

@media (max-width: 768px) {
    button.custom-prev-2.slick-arrow i, button.custom-next-2.slick-arrow i {
        display: block;
        text-align: right;
    }

    button.custom-next.slick-arrow {
        display: flex;
        align-items: end;
        justify-content: end;
    }
    button.custom-prev.slick-arrow {
        display: flex;
        align-items: start;
        justify-content: start;
    }

    .shortcode-popup-close, .event-popup-close {
        display: flex;
        justify-content: end;
        align-items: end;
        top: -10px;
        right: 15px;
    }

}