.swiper-slide {
    height: auto;
    display: flex;
}

.news-card-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.rbt-card.event-grid-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 600px !important;
}

/* Responsive card height for different screen sizes */
@media (max-width: 1366px) and (min-width: 1024px) {
    .rbt-card.event-grid-card {
        min-height: 520px !important;
    }
}

@media (max-width: 1024px) {
    .rbt-card.event-grid-card {
        min-height: 450px !important;
    }
}

@media (max-width: 768px) {
    .rbt-card.event-grid-card {
        min-height: 400px !important;
    }
}

.rbt-card-img {
    position: relative;
    width: 100%;
    padding-bottom: 66.67%; /* Aspect ratio 3:2 */
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
}

.rbt-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rbt-card-img a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.rbt-badge-3 {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.rbt-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 25px;
    justify-content: space-between;
}

/* Adjust padding for 1024x1366 screens */
@media (max-width: 1366px) and (min-width: 1024px) {
    .rbt-card-body {
        padding: 20px;
    }
}

.rbt-meta {
    margin-bottom: 12px;
    font-size: 13px;
    flex-shrink: 0;
}

/* Adjust meta for 1024x1366 screens */
@media (max-width: 1366px) and (min-width: 1024px) {
    .rbt-meta {
        margin-bottom: 8px;
        font-size: 12px;
    }
}

.rbt-card-title {
    margin-bottom: 10px;
    min-height: 50px;
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
}

/* Adjust title for 1024x1366 screens */
@media (max-width: 1366px) and (min-width: 1024px) {
    .rbt-card-title {
        min-height: 45px;
        margin-bottom: 8px;
    }
}

.rbt-card-title a {
    display: block;
}

.rbt-card-title h4 {
    margin: 0;
    line-height: 1.4;
}

.rbt-card-description {
    flex-grow: 1;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

/* Adjust description for 1024x1366 screens */
@media (max-width: 1366px) and (min-width: 1024px) {
    .rbt-card-description {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 12px;
    }
}

.read-more-btn {
    margin-top: auto;
    flex-shrink: 0;
    padding-top: 10px;
}

/* Adjust button for 1024x1366 screens */
@media (max-width: 1366px) and (min-width: 1024px) {
    .read-more-btn {
        margin-top: auto;
        padding-top: 8px;
    }
}

.single-slide {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Custom spacing classes */
.rbt-section-gap-top-80 {
    padding-top: 80px;
}

.rbt-section-gap-bottom-80 {
    padding-bottom: 80px;
}

.rbt-section-gap-top-30 {
    padding-top: 30px;
}

.rbt-section-m-top-80 {
    margin-top: 80px;
}

/* Title White - Always white text */
.title-white {
    color: white !important;
}

.title-white a {
    color: white !important;
}

.title-white:hover {
    color: white !important;
}

.title-white a:hover {
    color: white !important;
}

/* Responsive card column layout */
.responsive-card-col {
    width: 25%;
}

/* For 1024x1366 screens - 2 columns layout */
@media (max-width: 1366px) and (min-width: 1024px) {
    .responsive-card-col {
        width: 50% !important;
        flex: 0 0 50% !important;
    }
}

/* Modern Minimalist Modal Styles */
.modal-content.program-desc-modal {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.program-desc-modal .modal-header {
    border: none;
    padding: 30px 30px 20px;
    background: linear-gradient(135deg, #0099FF 0%, #4FA3DD 100%);
    border-radius: 12px 12px 0 0;
}

.program-desc-modal .modal-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.program-desc-modal .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.program-desc-modal .btn-close:hover {
    opacity: 1;
}

.program-desc-modal .modal-body {
    padding: 30px;
    background: #ffffff;
}

.program-desc-modal .modal-body h6 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0099FF;
    margin-bottom: 15px;
}

.program-desc-modal .modal-body p {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
    text-align: justify;
    margin: 0;
}

.program-desc-modal .modal-footer {
    border: none;
    padding: 20px 30px 30px;
    background: #ffffff;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.program-desc-modal .modal-footer .btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.program-desc-modal .modal-footer .btn-secondary {
    background: #f0f0f0;
    color: white !important;
}

.program-desc-modal .modal-footer .btn-secondary:hover {
    background: #e0e0e0;
    color: white !important;
}

.program-desc-modal .modal-footer .btn-primary {
    background: linear-gradient(135deg, #0099FF 0%, #4FA3DD 100%);
    color: white !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.program-desc-modal .modal-footer .btn-primary:hover {
    background: linear-gradient(135deg, #0077CC 0%, #3591C7 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 153, 255, 0.3);
    color: white !important;
}

.program-desc-modal .modal-footer .btn-primary i {
    font-size: 14px;
}

/* Modal backdrop */
.modal-backdrop.fade.show {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Disable hover effects on desktop */
@media (min-width: 992px) {
    .rbt-hover:hover {
        transform: none !important;
    }

    .rbt-hover-02:hover {
        transform: none !important;
    }

    .rbt-hover-03:hover {
        transform: none !important;
    }

    /* Remove all link hover color changes - GLOBAL */
    * a:hover,
    a:hover,
    a:active,
    a:focus,
    ul li a:hover,
    ol li a:hover,
    .rbt-information-list li a:hover,
    ul.rbt-dropdown-menu li .sub-menu li a:hover,
    .rbt-secondary-menu li a:hover,
    .social-share-transparent li a:hover,
    .rbt-header .mainmenu-nav .mainmenu li.has-dropdown .submenu li a:hover,
    .rbt-header .mainmenu-nav .mainmenu li.with-megamenu .rbt-megamenu .wrapper .mega-menu-item li a:hover,
    .page-list li a:hover,
    .social-default li a:hover,
    .social-default.icon-naked li a:hover,
    .multi-step-form-left .contact ul li a:hover,
    .rbt-default-tab-button li a:hover,
    .blog-meta li a:hover,
    .meta-list li a:hover,
    .rbt-single-product .product-feature li a:hover,
    .rbt-widget-details .rbt-course-details-list-wrapper li a:hover,
    .rbt-widget-details .rbt-default-sidebar-list li a:hover,
    .rbt-default-sidebar-wrapper .rbt-course-details-list-wrapper li a:hover,
    .rbt-default-sidebar-wrapper .rbt-default-sidebar-list li a:hover,
    .footer-widget .ft-link li a:hover,
    .copyright-style-1 .copyright-link li a:hover {
        color: currentColor !important;
        text-decoration: none !important;
    }

    .rbt-link-hover a:hover::after {
        transform: scaleX(0) !important;
    }

    /* Remove link color change on hover */
    a {
        color: currentColor !important;
    }

    .rbt-btn-link,
    .rbt-btn-link:hover {
        color: currentColor !important;
    }

    .slider-btn a,
    .slider-btn a:hover {
        color: currentColor !important;
    }

    /* Ensure text color stays white in banner */
    .rbt-banner-5 a,
    .rbt-banner-5 a:hover,
    .rbt-banner-5 a:focus,
    .rbt-banner-5 a:active {
        color: white !important;
    }

    /* Ensure heading stays white in banner */
    .rbt-banner-5 h2,
    .rbt-banner-5 h2:hover,
    .rbt-banner-5 .title,
    .rbt-banner-5 .title:hover {
        color: white !important;
    }

    /* Remove color-primary from all hover states */
    [class*="hover"] a:hover {
        color: currentColor !important;
    }

    /* Override any inline styles */
    a[style] {
        color: inherit !important;
    }

    /* Remove color change from all elements on hover */
    *:hover {
        color: inherit !important;
    }

    /* Disable hover on description text in banner */
    .rbt-banner-5 .description,
    .rbt-banner-5 p {
        pointer-events: none;
        cursor: default;
    }

    .rbt-banner-5 .description:hover,
    .rbt-banner-5 p:hover {
        color: inherit !important;
    }

    /* Make Jalur Pendaftaran section title blue */
    .rbt-service-area .section-title h2,
    .rbt-service-area .section-title .title {
        color: #0099FF !important;
    }

    .rbt-service-area .section-title h2:hover,
    .rbt-service-area .section-title .title:hover {
        color: #0099FF !important;
    }

    /* Disable hover on description text in service area */
    .rbt-service-area .section-title .description,
    .rbt-service-area .section-title p {
        pointer-events: none;
        cursor: default;
        color: #6b7385 !important;
    }

    .rbt-service-area .section-title .description:hover,
    .rbt-service-area .section-title p:hover {
        color: #6b7385 !important;
    }

    /* Disable hover on registration line badges */
    .registration-lines .line-badge,
    .registration-lines .line-separator {
        pointer-events: none;
        cursor: default;
    }

    .registration-lines .line-badge:hover,
    .registration-lines .line-separator:hover {
        color: inherit !important;
    }

    /* Disable hover on News Area title and subtitle */
    .rbt-event-area .section-title h2,
    .rbt-event-area .section-title .title {
        pointer-events: none;
        cursor: default;
        color: white !important;
    }

    .rbt-event-area .section-title h2:hover,
    .rbt-event-area .section-title .title:hover {
        color: white !important;
    }

    .rbt-event-area .section-title .subtitle,
    .rbt-event-area .section-title p {
        pointer-events: none;
        cursor: default;
        color: white !important;
    }

    .rbt-event-area .section-title .subtitle:hover,
    .rbt-event-area .section-title p:hover {
        color: white !important;
    }

    /* Disable hover on modal content */
    .program-desc-modal,
    .program-desc-modal * {
        pointer-events: auto;
    }

    .program-desc-modal .modal-title,
    .program-desc-modal .modal-title:hover {
        color: white !important;
        pointer-events: none;
    }

    .program-desc-modal .modal-body h6,
    .program-desc-modal .modal-body h6:hover {
        color: #0099FF !important;
        pointer-events: none;
    }

    .program-desc-modal .modal-body p,
    .program-desc-modal .modal-body p:hover {
        color: #0099FF !important;
        pointer-events: none;
    }

    .program-desc-modal .modal-footer .btn-secondary,
    .program-desc-modal .modal-footer .btn-secondary:hover {
        color: white !important;
    }

    .program-desc-modal .modal-footer .btn-primary,
    .program-desc-modal .modal-footer .btn-primary:hover {
        color: white !important;
    }

    .program-desc-modal .modal-footer .btn-primary i,
    .program-desc-modal .modal-footer .btn-primary i:hover {
        color: white !important;
    }
}


/* Footer Styles - Template Design */
.rbt-footer {
    background: #ffffff;
}

.rbt-footer.footer-style-1 {
    background: #ffffff;
}

.footer-top {
    padding: 80px 0 60px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget .logo {
    margin-bottom: 20px;
}

.footer-widget .logo img {
    max-width: 150px;
    height: auto;
}

.footer-widget .description {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}

.footer-widget .contact-btn {
    display: inline-block;
}

.footer-widget .ft-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.footer-widget .ft-link {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget .ft-link li {
    margin-bottom: 12px;
}

.footer-widget .ft-link li span {
    display: inline-block;
    font-weight: 600;
    color: #1a1a1a;
    margin-right: 8px;
}

.footer-widget .ft-link a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-widget .ft-link a:hover {
    color: #0099FF;
}

.social-icon.social-default.icon-naked li a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
}

.social-icon.social-default.icon-naked li a:hover {
    color: #0099FF;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-top {
        padding: 60px 0 40px;
    }

    .footer-widget .ft-title {
        font-size: 15px;
    }

    .footer-widget .description {
        font-size: 13px;
    }

    .offset-lg-1 {
        margin-left: 0 !important;
    }
}





/* ============================================
   HEADER TOP - FIX ALIGNMENT
   ============================================ */

.rbt-header-top-1 {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.top-expended-wrapper {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.top-expended-inner {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.rbt-header-center {
  flex: 1 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.rbt-header-sec-col.rbt-header-center {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
}

.rbt-header-top-news {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.rbt-header-top-news .inner {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.rbt-header-top-news .content {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.rbt-header-top-news img {
  max-width: 200px !important;
  height: auto !important;
}

/* Social icons positioning */
.rbt-header-right {
  position: absolute !important;
  right: 20px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

/* Ensure header top is full width */
.rbt-header-top {
  width: 100% !important;
}

.header-space-betwween {
  width: 100% !important;
}
