/* ================================
   Resources Management – Frontend Styles
   ================================ */

:root {
  --rm-primary: #006DAF;
  --rm-secondary: #1E273B;
  --rm-bg: rgba(239, 243, 252, 1);
  --rm-card-bg: #fff;
  --rm-radius: 12px;
  --rm-shadow: 0 2px 8px rgba(0,0,0,0.08);
  --rm-transition: all 0.25s ease;
}

body, button, input, select, textarea{
    font-family: 'Poppins', sans-serif !important;
}
h1, h2, h3, h4, h5, h6{
    font-family: 'Poppins', sans-serif !important;
    margin: 0 !important;
}
p:last-child{
    margin: 0 !important;
}
.mb-0{
    margin-bottom: 0px !important;
}


/* Base Layout
---------------------------------- */
#rm-resources-hub {
  display: grid;
  /*grid-template-columns: 220px 1fr 300px;*/
  grid-template-columns: 220px minmax(0, 1fr) 300px;
  gap: 24px;
  padding: 100px 0;
  box-sizing: border-box;
}


/* Sidebar: Left
---------------------------------- */
.rm-sidebar-left {
  background: var(--rm-bg);
  border-radius: var(--rm-radius);
  padding: 16px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  position: sticky;
  top: 20px;
  border-radius: 24px;
  box-sizing: border-box;
  
}

.rm-sidebar-left .rm-logo {
    border-bottom: 1px solid rgba(223, 221, 223, 1);
    padding-bottom: 10px;
    text-align: center;
    margin-bottom: 10px;
}

ul#rm-category-list {
    padding: 0;
    list-style: none;
    margin: 0;
}

.rm-category-link {
    font-size: 20px;
    color: #000;
    font-weight: 600;
    font-family: 'Poppins', sans-serif !important;
}

.rm-category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rm-category-list li a {
    padding: 10px;
    border-radius: 6px;
    color: var(--rm-secondary);
    cursor: pointer;
    transition: var(--rm-transition);
    display: block;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    gap: 16px;
}

.rm-category-list li a:hover {
  background: rgba(0, 109, 175, 0.08);
}

.rm-category-list li a.active {
  background: var(--rm-primary);
  color: #fff;
}
.rm-category-list li {
    margin-bottom: 4px;
}
.rm-category-list li:last-child {
    margin-bottom: 0;
}

/* Main Content
---------------------------------- */

a.rm-card-link{
    color: #000;
}

.rm-main-content {
    min-height: 500px;
    min-width: -webkit-fill-available;
}

.rm-slide-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 16px;
}

.rm-card {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.rm-card .rm-title {
    font-size: 16px;
    line-height: 24px;
    margin: 8px 0 !important;
    color: #333;
    font-weight: 600;
    margin: 8px 0 !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    /*min-height: 48px;*/
    cursor: pointer;
}

.rm-card .rm-title a {
    color: #333;
}
/* Swiper grid slides MUST have equal height */

.rm-carousel .swiper-slide {
  height: calc((100% - 30px) / 2) !important;
  display: flex;
  flex-direction: column;
}

.rm-carousel .swiper-slide article.rm-card,
.rm-carousel .swiper-slide > article.rm-card {
  height: 100% !important;
  display: flex;
  flex-direction: column;
}


.rm-card .rm-post-content-wrapper {
    flex: 1;
}


.rm-excerpt p, .rm-event-excerpt {
    font-size: 14px;
    line-height: 24px;
    color: #858585;
}
.rm-event-date{
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 8px !important;
}

.rm-post-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /*max-height: 180px;*/
    overflow: hidden;
}

.rm-event-card .rm-event-title {
    font-size: 20px;
}

.rm-event-info {
    margin-top: 20px;
}

.rm-sections-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}


.rm-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.rm-section-header h2 {
  font-size: 20px;
  color: var(--rm-secondary);
  margin: 0;
}

.rm-card img, .rm-event-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--rm-radius);
}

.rm-thumb.rm-download-thumb {
    width: 100%;
    height: 160px;
    background: rgba(239, 243, 252, 1);
    border-radius: var(--rm-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rm-thumb.rm-download-thumb img {
    height: 100px;
    object-fit: contain;
}

.rm-card-content {
  padding: 12px 14px;
}

.rm-card-content h3 {
  font-size: 16px;
  color: var(--rm-secondary);
  margin: 0 0 6px;
}

.rm-card-content .rm-download-btn {
  display: inline-block;
  background: var(--rm-primary);
  color: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  text-decoration: none;
  font-size: 13px;
  transition: var(--rm-transition);
}

.rm-card-content .rm-download-btn:hover {
  background: #004b79;
}

.rm-download-feature img.rm-download-single-thumb {
    height: auto;
    margin: 24px 0;
}

.rm-download-feature {
    width: 100%;
    background: rgba(239, 243, 252, 1);
    border-radius: var(--rm-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rm-sidebar-right .rm-featured-events-full .rm-event-card {
    margin-bottom: 30px;
}
.rm-sidebar-right .rm-featured-events-full .rm-event-card:last-child{
    margin-bottom: 0px;
}

/* Right Sidebar
---------------------------------- */
.rm-sidebar-right {
  background: var(--rm-card-bg);
  border-radius: var(--rm-radius);
  /*box-shadow: var(--rm-shadow);*/
  /*padding: 20px;*/
  position: sticky;
  top: 20px;
  height: fit-content;
}

/* Featured Events / Form Area */
.rm-featured-events {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rm-featured-events .rm-event {
  border: 1px solid #eee;
  border-radius: var(--rm-radius);
  overflow: hidden;
}

.rm-featured-events .rm-event img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.rm-featured-events .rm-event-content {
  padding: 10px 12px;
}

.rm-featured-events .rm-event-content h4 {
  font-size: 15px;
  margin: 0 0 4px;
}

.rm-featured-events .rm-event-content a {
  color: var(--rm-primary);
  text-decoration: none;
}
.rm-flex-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rm-carousel-wrapper {
  position: relative;
  overflow: hidden;
}

/*.::-webkit-scrolrm-carousel-tracklbar { display: none; }*/

.rm-carousel-nav { display: flex; gap: 8px; align-items:center; }

.rm-carousel-nav .button { border-radius: 50%; width: 38px; height: 38px; display:flex; align-items:center; justify-content:center; padding:0; background:#fff; border:1px solid rgba(0,0,0,0.06); cursor:pointer; }

.rm-carousel-nav .button[disabled] { opacity:0.45; cursor:not-allowed; }

.rm-section-content.rm-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    box-sizing: border-box;
    justify-content: flex-start;
}

.rm-section-content.rm-grid article.rm-card {
  flex: 0 0 calc(33.333% - 12px);
  max-width: calc(33.333% - 12px);
  box-sizing: border-box;
}

/* Section header row layout */
.rm-section-header .rm-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.rm-section-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

/* Carousel nav buttons in header */
.rm-carousel-nav {
  display: flex;
  gap: 10px;
}

.rm-carousel-nav button {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rm-carousel-nav button:hover {
  background: #1E273B;
  color: #fff;
}

.rm-carousel-nav svg path {
  stroke: #1E273B;
}

.rm-carousel-nav button:hover svg path {
  stroke: #fff;
}

.rm-widget.rm-widget-help {
  background: #f8fafc;
  border: 1px solid #e3e7ed;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 36px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.rm-widget.rm-widget-help:last-child{
      margin-bottom: 0;
}
.rm-card.rm-featured-events-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rm-right-widgets .gform_heading .gform_title, .rm_sidebar_widget--title {
    font-size: 26px;
    line-height: 36px !important;
    margin-bottom: 12px !important;
}
.rm-sidebar-right form input, .rm-sidebar-right form select  {
    color: #000 !important;
    font-size: 14px !important;
}
.rm-sidebar-right input#gform_submit_button_1{
    color: #fff !important;
}

.rm-gravity-form {
  font-family: inherit;
}

.rm-gravity-form form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body #gform_wrapper_1 .gfield_label {
    color: #7b7272 !important;
}
body .rm-gravity-form .gform_wrapper .gfield_label {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #333 !important;
    margin-bottom: 4px !important;
    line-height: 18px;
}
.gform_wrapper.gravity-theme input[type="text"], .gform_wrapper.gravity-theme input[type="email"], .gform_wrapper.gravity-theme input[type="tel"], .gform_wrapper.gravity-theme select {
    background: #fff !important;
    border-radius: 4px !important;
    border: 1px solid #efefef !important;
    height: 44px !important;
    width: 100% !important;
}
.gform_wrapper.gravity-theme textarea {
    height: 85px !important;
    background: #fff !important;
    border-radius: 4px !important;
    border: 1px solid #efefef !important;
    width: 100% !important;
}

.gform_wrapper.gravity-theme .gform_fields {
    grid-row-gap: 8px !important;
}
.rm-gravity-form .select-arrow {
    background: #f8fafc !important;
}
.rm-gravity-form .gform-footer.gform_footer.top_label {
    padding: 0;
    margin: 0;
}

.rm-gravity-form .gform-footer.gform_footer.top_label input.gform_button {
    padding: 10px 28px;
    font-size: 16px;
    font-weight: 500;
}

.rm-see-more-btn {
    border-radius: 30px;
    background: #fcb444;
    cursor: pointer;
    color: #fff;
    border: none;
    margin-top: 8px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    transition:0.5s;
}

a.rm-event-link.rm-see-more-btn {
    padding: 10px 24px;
    font-size: 14px;
}
.rm-see-more-btn:hover{
    background: #2e2e2e;
    color: #fff;
}
.rm-see-more-btn:hover svg path{
    stroke: #fff;
}

.rm-video-thumb {
  position: relative;
  overflow: hidden;
  height: 150px;
  border-radius: var(--rm-radius);
}
.rm-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.1);
  transition: transform 0.3s ease;
}
.rm-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}
.fancybox__container {
  will-change: transform, opacity;
  transform: translateZ(0);
}

.rm-gallery-grid {
    display: flex;
    gap: 4px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.rm-gallery-grid a {
  flex: 0 0 calc(33.333% - 4px);
  max-width: calc(33.333% - 4px);
  box-sizing: border-box;
}
.rm-gallery-item img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    border-radius: 4px;
}

.rm-content {
    font-size: 16px;
    line-height: 26px;
    color: #646464;
    font-weight: 400;
    letter-spacing: 0.1px;
}

.rm-single-view .rm-single-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rm-download-box {
  text-align: left;
}

.rm-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #007aff;
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.5s
}

.rm-single-featured {
  margin-bottom: 20px;
  text-align: center;
}

.rm-single-featured img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.rm-download-btn:hover {
  background: #2e3b58;
  transform: translateY(-2px);
}

.rm-download-icon {
  width: 22px;
  height: 22px;
  stroke: #fff;
}
.category-badge {
  display: inline-block;
  background: #006DAF;
  color: #ffffff;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  margin: 3px 5px 3px 0;
  font-weight: 500;
  line-height: 1.4;
  transition: all 0.2s ease;
}

.category-badge:hover {
  background: #1e273b;
  color: #fff;
}

.rm-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f2f4f8;
  color: #006DAF;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rm-back-btn:hover {
  background: #006DAF;
  color: #fff;
  transform: translateX(-2px);
}

.rm-back-btn svg {
  stroke: currentColor;
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.rm-back-btn:hover svg {
  transform: translateX(-2px);
}


/* -------------- Responsive ------------- */

@media (max-width: 1024px) {
   
    #rm-resources-hub {
        display: grid !important;
        grid-template-columns: 220px minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        gap: 20px !important;
    } 
    
   .rm-sidebar-right {
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }

    .rm-sidebar-left {
        position: inherit !important;
        top: 0 !important;
        max-height: none !important;
    }
    
    .rm-section-content.rm-grid article.rm-card {
        flex: 0 0 calc(50% - 12px);
        max-width: calc(50% - 12px);
    }
    .rm-sidebar-left {
        position: inherit;
    }
}

@media (max-width: 768px) {
    #rm-resources-hub {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto !important;
    }

    .rm-sidebar-left {
        position: relative;
        top: 0;
        max-height: none;
        width: 100%;
    }
    
    .rm-sidebar-right {
        grid-column: 1 / -1;
        width: 100%;
    }
    
    .rm-section-content.rm-grid article.rm-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .rm-gallery-grid a {
      flex: 0 0 calc(50% - 4px);
      max-width: calc(50% - 4px);
      box-sizing: border-box;
    }
    .rm-gallery-item img {
        height: 200px;
    }
}

@media (max-width: 480px) {
  .rm-gallery-item img {
        height: 160px;
    }
}


