@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,650;9..144,700&family=Outfit:wght@400;500;600;700&display=swap");

:root {
  --rg-burgundy: #7c1f2f;
  --rg-burgundy-dark: #5c1623;
  --rg-gold: #c9a227;
  --rg-gold-soft: #e8d48b;
  --rg-navy: #1b2a4a;
  --rg-ink: #2a2430;
  --rg-muted: #5c5560;
  --rg-cream: #f7f1e8;
  --rg-paper: #fbf8f4;
  --rg-white: #ffffff;
  --rg-line: rgba(123, 31, 47, 0.12);
  --rg-shadow: 0 18px 50px rgba(27, 42, 74, 0.08);
  --rg-radius: 18px;
}

body {
  font-family: "Outfit", "Barlow", sans-serif;
  color: var(--rg-ink);
  background: var(--rg-paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .title,
.banner-section .banner-content .title,
.section-header .title,
.pageheader-content h2 {
  font-family: "Fraunces", "Times New Roman", serif;
  letter-spacing: -0.02em;
  color: var(--rg-navy);
}

a {
  color: var(--rg-burgundy);
}

a:hover {
  color: var(--rg-burgundy-dark);
}

.lab-btn,
.lab-btn span,
.news-letter .section-wrapper .news-form form .nf-list input[type=submit] {
  background: var(--rg-burgundy) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lab-btn:hover,
.lab-btn:hover span {
  background: var(--rg-navy) !important;
}

.lab-btn,
.lab-btn:visited,
.lab-btn span {
  color: #fff !important;
}

.lab-btn.lab-btn-outline,
.lab-btn.lab-btn-outline:visited,
.lab-btn.lab-btn-outline span {
  background: transparent !important;
  color: var(--rg-burgundy) !important;
}

.lab-btn.lab-btn-outline:hover,
.lab-btn.lab-btn-outline:hover span {
  background: var(--rg-burgundy) !important;
  color: #fff !important;
}

.menu > ul > li > a,
.menu > ul > li > a:visited {
  font-weight: 600;
  color: var(--rg-navy) !important;
  font-size: 14px;
  padding: 0 10px;
}

footer,
footer p,
footer h4,
footer a,
footer a:visited,
footer a:hover,
footer a:focus,
footer a:active,
.footer-top,
.footer-top p,
.footer-top h4,
.footer-top .footer-item .footer-inner .footer-content .title h4,
.footer-top .footer-item .footer-inner .footer-content .content p,
.footer-top .footer-item .footer-inner .footer-content .content ul li a,
.footer-top .footer-item .footer-inner .footer-content .content ul li a:visited,
.footer-top .footer-item .footer-inner .footer-content .content ul li a:hover,
.footer-bottom,
.footer-bottom p,
.footer-bottom a,
.footer-bottom a:visited,
.footer-bottom a:hover {
  color: #fff !important;
}

.section-header .subtitle,
.banner-section .banner-content .subtitle {
  color: var(--rg-gold) !important;
  font-weight: 600;
  letter-spacing: 0.14em;
  transform: none;
  display: block;
  margin-bottom: 10px;
}

.lab-btn.lab-btn-outline {
  background: transparent !important;
  border: 2px solid var(--rg-burgundy) !important;
  padding: 8px 28px;
}

/* Header */
.header-section {
  background: var(--rg-white);
}

.header-top {
  background: var(--rg-navy) !important;
  color: #fff;
}

.header-top-area .left li,
.header-top-area .left li span,
.header-top-area .social-icons li p {
  color: rgba(255, 255, 255, 0.86) !important;
}

.header-top-area .social-icons li a {
  color: #fff !important;
}

.header-section {
  position: relative;
  z-index: 40;
}

.header-bottom {
  border-bottom: 1px solid var(--rg-line);
  position: relative;
  z-index: 20;
}

.header-wrapper .logo a {
  max-width: none !important;
}

.header-wrapper .logo img {
  max-height: 64px;
  width: auto;
}

.menu > ul > li > a.active,
.menu > ul > li > a:hover {
  color: var(--rg-burgundy) !important;
}

.rg-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 18px;
  padding: 4px;
  border: 1px solid var(--rg-line);
  border-radius: 999px;
  background: var(--rg-cream);
}

.rg-lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--rg-navy);
  text-decoration: none;
}

.rg-lang a.is-active {
  background: var(--rg-burgundy);
  color: #fff;
}

.rg-apply {
  margin-left: 12px;
}

.header-wrapper .menu-area .login,
.header-wrapper .menu-area .rg-apply.lab-btn {
  padding: 10px 18px;
}

@media (max-width: 991px) {
  .rg-lang {
    margin: 0;
  }
  .rg-apply {
    margin: 0;
  }
}

.header-wrapper {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.header-wrapper .logo {
  flex: 0 1 auto;
}

.menu-area {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.header-bar {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: 0 !important;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 6;
  flex: 0 0 auto;
}

.header-bar span {
  position: absolute;
  left: 8px;
  width: 28px;
  height: 2px !important;
  background: var(--rg-navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.header-bar span:first-child { top: 13px; }
.header-bar span:nth-child(2) { top: 21px; transform: none; }
.header-bar span:last-child { top: 29px; bottom: auto; }

.header-bar.active span:first-child {
  transform: translateY(8px) rotate(45deg) !important;
}

.header-bar.active span:nth-child(2) {
  opacity: 0;
}

.header-bar.active span:last-child {
  transform: translateY(-8px) rotate(-45deg) !important;
}

.ellepsis-bar {
  display: none !important;
}

body.rg-menu-open {
  overflow: hidden;
}

.rg-menu-tools {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 991px) {
  body.rg-menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 18;
    background: rgba(27, 42, 74, 0.42);
  }

  .header-top {
    display: none !important;
  }

  .header-bar {
    display: block !important;
    width: 44px !important;
    height: 44px !important;
  }

  .header-bar span {
    width: 28px !important;
  }

  .header-wrapper {
    position: static !important;
    padding: 10px 0;
    min-height: 64px;
  }

  .header-wrapper .menu-area {
    padding: 0;
  }

  .menu-area {
    display: flex;
    align-items: center;
  }

  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff !important;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    box-shadow: 0 22px 40px rgba(27, 42, 74, 0.18);
    padding: 8px 16px 20px;
    max-height: min(78vh, 560px);
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  }

  .menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .menu > ul {
    display: block !important;
    width: 100% !important;
    position: static !important;
    transform: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .menu > ul > li {
    width: 100%;
    display: block;
  }

  .menu > ul > li > a,
  .menu > ul > li > a:visited {
    display: block !important;
    padding: 14px 16px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--rg-navy) !important;
    border-radius: 12px;
    border: 0 !important;
  }

  .menu > ul > li > a.active,
  .menu > ul > li > a:hover {
    background: rgba(124, 31, 47, 0.08);
    color: var(--rg-burgundy) !important;
  }

  .rg-menu-tools {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin: 12px 20px 0;
    padding-top: 16px;
    border-top: 1px solid var(--rg-line);
  }

  .rg-menu-tools .rg-lang {
    justify-content: center;
    margin: 0 auto;
  }

  .rg-menu-tools .rg-apply {
    display: inline-flex !important;
    justify-content: center;
    width: 100%;
    margin: 0;
    text-align: center;
  }
}

@media (min-width: 992px) {
  .menu {
    display: flex;
    align-items: center;
  }

  .rg-menu-tools {
    margin-left: 8px;
  }
}

/* Hero */
.banner-section.style-1 {
  background: linear-gradient(180deg, #fff 0%, var(--rg-cream) 100%);
  padding: 70px 0 40px;
}

.banner-section .all-shapes,
.banner-section .cbs-content-list {
  display: none !important;
}

.rg-kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(124, 31, 47, 0.08);
  color: var(--rg-burgundy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.banner-section .banner-content .title {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 18px;
}

.banner-section .banner-content .desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--rg-muted);
  max-width: 36rem;
}

.rg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 18px;
}

.rg-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rg-pills li {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--rg-line);
  font-size: 13px;
  font-weight: 600;
  color: var(--rg-navy);
}

.banner-section .banner-thumb img {
  border-radius: 28px;
  box-shadow: var(--rg-shadow);
}

/* Cards & sections */
.rg-section {
  padding: 80px 0;
}

.rg-section.alt {
  background: var(--rg-cream);
}

.rg-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--rg-line);
  border-radius: var(--rg-radius);
  padding: 28px;
  box-shadow: var(--rg-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(27, 42, 74, 0.12);
}

.rg-card .rg-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(124, 31, 47, 0.08);
  color: var(--rg-burgundy);
  font-size: 22px;
  margin-bottom: 16px;
}

.rg-card h3,
.rg-card h4,
.rg-card h5 {
  margin-bottom: 10px;
}

.rg-card p {
  color: var(--rg-muted);
  margin-bottom: 0;
}

.rg-card .rg-meta {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--rg-gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pageheader-section {
  background: linear-gradient(135deg, var(--rg-navy) 0%, var(--rg-burgundy) 100%) !important;
  padding: 70px 0 60px !important;
}

.pageheader-content h2,
.pageheader-content .breadcrumb-item,
.pageheader-content .breadcrumb-item a,
.pageheader-content .breadcrumb-item.active {
  color: #fff !important;
}

.pageheader-content .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.55);
}

.about-section.style-3 .about-left .about-left-content,
.about-section.style-3 .about-left .about-left-content::after {
  background: var(--rg-burgundy) !important;
}

.stu-feed-item .stu-feed-inner {
  background: #fff;
  border-radius: var(--rg-radius);
  border: 1px solid var(--rg-line);
  box-shadow: var(--rg-shadow);
}

.count-item .count-inner .count-content h2,
.count-item .count-inner .count-content h2 span {
  color: var(--rg-burgundy);
}

.achievement-section {
  background: var(--rg-navy);
}

.achievement-section .section-header .title,
.achievement-section .count-content p,
.achievement-section .section-header .subtitle {
  color: #fff !important;
}

.achievement-section .count-item .count-inner .count-content h2,
.achievement-section .count-item .count-inner .count-content h2 span {
  color: var(--rg-gold-soft) !important;
}

.instructor-single-section .instructor-single-thumb img {
  border-radius: 24px;
}

.news-letter {
  background: var(--rg-burgundy) !important;
}

.news-letter .news-title h3 {
  color: #fff;
  font-family: "Fraunces", serif;
}

.news-letter .section-wrapper .news-form form .nf-list input[type=email] {
  border-radius: 999px 0 0 999px;
  border: 0;
}

.news-letter .section-wrapper .news-form form .nf-list input[type=submit] {
  border-radius: 0 999px 999px 0 !important;
  background: var(--rg-navy) !important;
}

footer {
  background: var(--rg-navy);
  color: #fff;
}

.footer-top .footer-item .footer-inner .footer-content .title h4::after {
  background: var(--rg-gold);
}

.footer-bottom {
  background: #121b30;
  color: #fff;
}

.rg-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.rg-values li {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(124, 31, 47, 0.08);
  color: var(--rg-burgundy);
  font-weight: 600;
  font-size: 14px;
}

.rg-list {
  padding-left: 0;
  list-style: none;
}

.rg-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  color: var(--rg-muted);
}

.rg-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rg-gold);
}

.rg-table {
  background: #fff;
  border-radius: var(--rg-radius);
  overflow: hidden;
  box-shadow: var(--rg-shadow);
}

.rg-table table {
  margin-bottom: 0;
}

.rg-table thead {
  background: var(--rg-navy);
  color: #fff;
}

.rg-table thead th {
  border: 0;
  font-weight: 600;
}

.tz-gallery .lightbox {
  display: block;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--rg-shadow);
}

.tz-gallery .lightbox img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.35s ease;
  background: var(--rg-cream);
}

.tz-gallery .lightbox:hover img {
  transform: scale(1.05);
}

.rg-album-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: var(--rg-radius);
  overflow: hidden;
  box-shadow: var(--rg-shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rg-album-card:hover,
.rg-album-card:focus {
  color: inherit;
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(27, 42, 74, 0.12);
}

.rg-album-card__mosaic {
  display: grid;
  height: 220px;
  gap: 3px;
  background: var(--rg-navy);
  overflow: hidden;
}

.rg-album-card__mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rg-album-card__mosaic--1 {
  grid-template-columns: 1fr;
}

.rg-album-card__mosaic--2 {
  grid-template-columns: 1.35fr 1fr;
}

.rg-album-card__mosaic--3 {
  grid-template-columns: 1.45fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.rg-album-card__mosaic--3 img:first-child {
  grid-row: 1 / 3;
}

.rg-album-card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rg-album-card__body h3 {
  margin: 6px 0 8px;
  color: var(--rg-navy);
  font-size: 22px;
  line-height: 1.25;
}

.rg-album-card__body p {
  margin: 0 0 12px;
  color: var(--rg-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rg-album-card__cta {
  margin-top: auto;
  padding-top: 12px;
  color: var(--rg-burgundy);
  font-weight: 600;
  font-size: 14px;
}

.rg-gallery-album {
  margin-bottom: 56px;
}

.rg-gallery-album__header {
  text-align: center;
  margin-bottom: 28px;
}

.rg-gallery-album__kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--rg-gold);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
}

.rg-gallery-album__header h3 {
  margin: 0 0 8px;
  color: var(--rg-navy);
}

.rg-gallery-album__header p {
  max-width: 640px;
  margin: 0 auto 8px;
  color: var(--rg-muted);
}

.rg-gallery-album__count {
  display: inline-block;
  color: var(--rg-burgundy);
  font-size: 13px;
  font-weight: 600;
}

.rg-album-others {
  margin-top: 64px;
  padding-top: 16px;
}

.rg-album-others h4 {
  margin: 0 0 24px;
  color: var(--rg-navy);
}

.contact-wrapper,
.contact-form {
  background: #fff;
  border-radius: var(--rg-radius);
  box-shadow: var(--rg-shadow);
}

.contact-wrapper {
  padding: 28px 28px 16px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 4px 18px;
}

.contact-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 24px;
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 52px 40px;
  box-sizing: border-box;
}

.contact-form .form-group {
  flex: 1 1 calc(50% - 12px);
  width: calc(50% - 12px);
  max-width: calc(50% - 12px);
  margin-bottom: 0;
}

.contact-form .form-group.w-100,
.contact-form .form-group.col-12,
.contact-form .alert {
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 12px !important;
  border: 1px solid var(--rg-line) !important;
  background: #fff;
  color: var(--rg-ink);
  height: 52px;
  padding: 0 16px;
}

.contact-form textarea {
  height: auto;
  min-height: 160px;
  padding: 14px 16px;
  resize: vertical;
}

.contact-form .form-group.w-100.text-center {
  padding-top: 8px;
}

@media (max-width: 767px) {
  .contact-wrapper {
    padding: 22px 18px 10px;
  }

  .contact-form {
    padding: 28px 22px 24px;
  }

  .contact-form .form-group {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }
}

.map-area .maps {
  border-radius: var(--rg-radius);
  overflow: hidden;
  box-shadow: var(--rg-shadow);
}

.post-item .post-inner {
  border-radius: var(--rg-radius);
  overflow: hidden;
  box-shadow: var(--rg-shadow);
  background: #fff;
}

.rg-exam-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.rg-exam-result {
  background: var(--rg-cream);
  border: 1px solid var(--rg-line);
  border-radius: 16px;
  padding: 22px 14px;
  text-align: center;
}

.rg-exam-result strong {
  display: block;
  font-size: 2.4rem;
  line-height: 1.1;
  color: var(--rg-burgundy);
  font-weight: 800;
}

.rg-exam-result span {
  display: block;
  margin-top: 8px;
  color: var(--rg-navy);
  font-weight: 600;
  font-size: 14px;
}

@media (max-width: 575px) {
  .rg-exam-results {
    grid-template-columns: 1fr;
  }
}

.rg-empty {
  text-align: center;
  padding: 48px 24px;
  background: #fff;
  border-radius: var(--rg-radius);
  border: 1px dashed var(--rg-line);
  color: var(--rg-muted);
}

.instructor-item .instructor-inner {
  background: #fff;
  border-radius: var(--rg-radius);
  overflow: hidden;
  box-shadow: var(--rg-shadow);
}

.scrollToTop {
  background: var(--rg-burgundy) !important;
}

.preloader {
  display: none !important;
}

.rg-hero-slider {
  position: relative;
  background: var(--rg-navy);
}

.rg-hero-slider .home-hero-slider {
  width: 100%;
}

.rg-hero-slide {
  min-height: 560px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.rg-hero-overlay {
  min-height: 560px;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(18, 27, 48, 0.82) 0%, rgba(18, 27, 48, 0.45) 55%, rgba(124, 31, 47, 0.25) 100%);
  padding: 80px 0 90px;
}

.rg-hero-copy {
  max-width: 640px;
  color: #fff;
}

.rg-hero-copy .title {
  color: #fff;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  margin: 12px 0 16px;
}

.rg-hero-copy .desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 22px;
}

.rg-hero-copy .rg-kicker {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.rg-hero-slider .swiper-pagination {
  bottom: 22px;
}

.rg-hero-slider .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.45;
}

.rg-hero-slider .swiper-pagination-bullet-active {
  background: var(--rg-gold-soft);
  opacity: 1;
}

.rg-hero-slider .swiper-button-prev,
.rg-hero-slider .swiper-button-next {
  width: 46px;
  height: 46px;
  margin-top: -23px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: #fff;
}

.rg-hero-slider .swiper-button-prev:after,
.rg-hero-slider .swiper-button-next:after {
  display: none;
}

.rg-hero-slider .swiper-button-prev i,
.rg-hero-slider .swiper-button-next i {
  font-size: 22px;
}

@media (max-width: 767px) {
  .rg-hero-slide,
  .rg-hero-overlay {
    min-height: 480px;
  }
  .rg-hero-overlay {
    padding: 48px 0 70px;
  }
}

@media (max-width: 767px) {
  .rg-section {
    padding: 56px 0;
  }
  .banner-section.style-1 {
    padding-top: 36px;
  }
}
