/*Add your custom css here. This will override any existinc thems css*/

/* Modern Minimalist Design */
:root {
  --primary: #3D6A99;
  --primary-light: #5A8BC0;
  --primary-dark: #2D5275;
  --bg-gradient: linear-gradient(135deg, #3D6A99 0%, #2D5275 100%);
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container > .wrapper {
  flex: 1;
}

/* Header Enhancement */
.navbar {
  background: #1e293b !important;
  border: none;
  border-radius: 0;
  margin-bottom: 0;
}

.navbar .container-fluid {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-header {
  float: none;
}

.navbar-collapse {
  padding: 0;
  float: none;
}

.navbar-nav {
  float: none;
  display: flex;
  align-items: center;
  margin: 0;
}

.navbar-nav > li {
  float: none;
}

.navbar-brand {
  font-size: 20px;
  font-weight: 600;
  color: #fff !important;
}

.navbar-brand:hover {
  color: var(--primary-light) !important;
}

.navbar-nav > li > a {
  color: #cbd5e1 !important;
  transition: color 0.2s;
}

.navbar-nav > li > a:hover {
  color: #fff !important;
  background: transparent !important;
}

/* Header flex layout - no burger menu */
.navbar-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  float: none;
}

.navbar-nav-inline {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  float: none;
}

.navbar-nav-inline > li {
  float: none;
}

.navbar-nav-inline > li > a {
  padding: 10px 15px;
  color: #cbd5e1 !important;
  transition: color 0.2s;
  white-space: nowrap;
}

.navbar-nav-inline > li > a:hover {
  color: #fff !important;
  background: transparent !important;
}

@media (max-width: 560px) {
  .navbar-header-flex {
    flex-wrap: wrap;
    gap: 10px;
  }

  .navbar-brand {
    font-size: 16px;
  }

  .navbar-brand img {
    height: 32px !important;
    margin-right: 6px !important;
  }

  .navbar-nav-inline > li > a {
    padding: 8px 10px;
    font-size: 13px;
  }
}

/* Main container stretch */
.container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Home Cards Grid */
.home-cards {
  flex: 1;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Auto grid for variable card count */
.cards-grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Page with cards */
.page-cards {
  flex: 1;
  padding: 40px 20px;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

/* Back button - bottom sticky */
.back-button {
  position: sticky;
  bottom: 40px;
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  margin-top: 30px;
  margin-left: -110px;
  color: #64748b;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
  z-index: 100;
}

.back-button:hover {
  color: #3D6A99;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateX(-4px);
  text-decoration: none;
}

@media (max-width: 1000px) {
  .back-button {
    margin-left: 0;
  }
}

.page-title {
  text-align: center;
  color: #1e293b;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 40px;
}

/* Text page content */
.page-content {
  flex: 1;
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.page-content .page-title {
  margin-bottom: 30px;
}

.page-body {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.page-body h2 {
  color: #1e293b;
  font-size: 20px;
  font-weight: 600;
  margin: 30px 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}

.page-body h2:first-child {
  margin-top: 0;
}

.page-body p {
  color: #475569;
  line-height: 1.7;
  margin-bottom: 15px;
}

.page-body ul {
  color: #475569;
  line-height: 1.8;
  padding-left: 20px;
}

.page-body li {
  margin-bottom: 10px;
}

.page-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.page-body th,
.page-body td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.page-body th {
  background: #f8fafc;
  font-weight: 600;
  color: #1e293b;
}

.page-body tr:hover {
  background: #f8fafc;
}

.page-body strong {
  color: #1e293b;
}

@media (max-width: 768px) {
  .page-body {
    padding: 24px;
  }

  .page-body h2 {
    font-size: 18px;
  }
}

.home-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 30px 24px;
  text-decoration: none;
  color: #1e293b;
  background: white;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.home-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--bg-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.home-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.home-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  text-decoration: none;
  color: white;
}

.home-card:hover::before {
  opacity: 1;
}

.home-card:hover::after {
  opacity: 1;
}

.home-card:hover .card-inner {
  position: relative;
  z-index: 1;
}

.home-card:hover .card-title {
  color: white;
}

.card-inner {
  text-align: center;
  z-index: 1;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.3px;
  color: #334155;
  transition: color 0.3s ease;
}

.card-subtitle {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #64748b;
  margin-top: 6px;
  transition: color 0.3s ease;
}

.home-card:hover .card-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

/* Animation on page load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-card {
  animation: fadeInUp 0.5s ease forwards;
}

.home-card:nth-child(1) { animation-delay: 0.05s; }
.home-card:nth-child(2) { animation-delay: 0.1s; }
.home-card:nth-child(3) { animation-delay: 0.15s; }
.home-card:nth-child(4) { animation-delay: 0.2s; }
.home-card:nth-child(5) { animation-delay: 0.25s; }
.home-card:nth-child(6) { animation-delay: 0.3s; }
.home-card:nth-child(7) { animation-delay: 0.35s; }
.home-card:nth-child(8) { animation-delay: 0.4s; }
.home-card:nth-child(9) { animation-delay: 0.45s; }

/* Responsive */
@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .home-card {
    min-height: 150px;
    padding: 24px 20px;
  }
}

@media (max-width: 560px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-card {
    min-height: 120px;
  }

  .card-title {
    font-size: 14px;
  }
}

/* Footer Modern */
footer {
  background: #1e293b;
  color: #cbd5e1;
  margin-top: auto;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px 20px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #334155;
}

.footer-brand h3 {
  color: #fff;
  font-size: 18px;
  margin: 0 0 10px 0;
  font-weight: 600;
}

.footer-brand p {
  color: #cbd5e1;
  font-size: 14px;
  margin: 0;
  max-width: 300px;
}

.footer-contact p {
  color: #cbd5e1;
  font-size: 14px;
  margin: 0 0 8px 0;
}

.footer-contact a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-contact i {
  color: var(--primary-light);
  width: 20px;
  margin-right: 8px;
}

.footer-bottom {
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

@media (max-width: 600px) {
  .footer-main {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-contact {
    width: 100%;
  }
}

/* Expert Card - Modern Layout */
.expert-page {
  max-width: 900px;
}

.expert-card {
  background: white;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.expert-header {
  display: flex;
  gap: 30px;
  padding: 30px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-bottom: 1px solid #e2e8f0;
}

.expert-photo {
  flex-shrink: 0;
}

.expert-photo img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.expert-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.expert-name {
  font-size: 26px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.expert-position {
  font-size: 16px;
  color: var(--primary);
  font-weight: 600;
  margin: 0 0 8px 0;
}

.expert-degree {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.expert-body {
  padding: 30px;
}

.expert-body > p:first-child {
  display: none;
}

.expert-body img {
  display: none;
}

.expert-body h2 {
  color: #1e293b;
  font-size: 18px;
  font-weight: 600;
  margin: 25px 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.expert-body h2:first-of-type {
  margin-top: 0;
}

.expert-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.expert-body li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  color: #475569;
  line-height: 1.6;
}

.expert-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.expert-body strong {
  color: #1e293b;
}

@media (max-width: 600px) {
  .expert-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 24px;
  }

  .expert-photo img {
    width: 150px;
    height: 150px;
  }

  .expert-name {
    font-size: 22px;
  }

  .expert-body {
    padding: 24px;
  }
}

/* Expert Cards Grid - Horizontal Layout */
.cards-grid-experts {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.expert-card-link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: white;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.expert-card-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  text-decoration: none;
}

.expert-card-link:hover .card-title {
  color: var(--primary);
}

.expert-card-photo {
  flex-shrink: 0;
}

.expert-card-photo img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.expert-card-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.expert-card-placeholder span {
  font-size: 28px;
  font-weight: 600;
  color: #64748b;
}

.expert-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.expert-card-info .card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  transition: color 0.2s;
  text-align: left;
}

.expert-card-info .card-subtitle {
  font-size: 13px;
  color: #64748b;
  text-align: left;
  margin-top: 2px;
}

/* Animation for expert cards */
.expert-card-link {
  animation: fadeInUp 0.5s ease forwards;
}

.expert-card-link:nth-child(1) { animation-delay: 0.05s; }
.expert-card-link:nth-child(2) { animation-delay: 0.1s; }
.expert-card-link:nth-child(3) { animation-delay: 0.15s; }
.expert-card-link:nth-child(4) { animation-delay: 0.2s; }
.expert-card-link:nth-child(5) { animation-delay: 0.25s; }
.expert-card-link:nth-child(6) { animation-delay: 0.3s; }
.expert-card-link:nth-child(7) { animation-delay: 0.35s; }
.expert-card-link:nth-child(8) { animation-delay: 0.4s; }
.expert-card-link:nth-child(9) { animation-delay: 0.45s; }
.expert-card-link:nth-child(10) { animation-delay: 0.5s; }
.expert-card-link:nth-child(11) { animation-delay: 0.55s; }

@media (max-width: 900px) {
  .cards-grid-experts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .expert-card-link {
    padding: 16px;
    gap: 16px;
  }

  .expert-card-photo img,
  .expert-card-placeholder {
    width: 64px;
    height: 64px;
  }

  .expert-card-placeholder span {
    font-size: 24px;
  }

  .expert-card-info .card-title {
    font-size: 14px;
  }

  .expert-card-info .card-subtitle {
    font-size: 12px;
  }
}