/********** Template CSS - Renewed Design **********/
:root {
  --primary: #4361ee;
  --primary-light: #6b8aff;
  --primary-dark: #3048c5;
  --secondary: #f72585;
  --tertiary: #4a5568;
  --light: #f7f8fc;
  --light-blue: #e8edff;
  --dark: #1a202c;
  --gray-100: #f7fafc;
  --gray-200: #edf2f7;
  --gray-300: #e2e8f0;
  --gray-400: #cbd5e0;
  --gray-500: #a0aec0;
  --gray-600: #718096;
  --success: #48bb78;
  --warning: #ecc94b;
  --danger: #f56565;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  color: var(--tertiary);
  line-height: 1.7;
  letter-spacing: -0.01em;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 30px;
  bottom: 30px;
  z-index: 99;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

h1,
.h1,
h2,
.h2,
.fw-bold {
  font-weight: 700 !important;
  color: var(--dark);
  letter-spacing: -0.02em;
}

h3,
.h3 {
  font-weight: 600 !important;
  color: var(--dark);
}

h4,
.h4,
.fw-medium {
  font-weight: 600 !important;
  color: var(--dark);
}

h5,
.h5,
h6,
.h6,
.fw-semi-bold {
  font-weight: 550 !important;
}

p {
  color: var(--gray-600);
  line-height: 1.8;
}

a {
  transition: var(--transition);
}

section,
.section {
  padding: 80px 0;
}

.text-primary {
  color: var(--primary) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.bg-light {
  background-color: var(--light) !important;
}

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s ease-out,
    visibility 0s linear 0.5s;
  z-index: 99999;
  background: linear-gradient(135deg, var(--light) 0%, var(--gray-100) 100%);
}

#spinner.show {
  transition:
    opacity 0.5s ease-out,
    visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/*** Button ***/
.btn {
  transition: var(--transition);
  font-weight: 500;
  border-radius: var(--radius-md);
  padding: 12px 28px;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  border: none;
  color: #fff;
  box-shadow: 0 4px 14px rgba(67, 97, 238, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    var(--primary) 100%
  );
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(67, 97, 238, 0.45);
  color: #fff;
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, #d61f69 100%);
  border: none;
  color: #fff;
  box-shadow: 0 4px 14px rgba(247, 37, 133, 0.35);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247, 37, 133, 0.45);
}

.btn-square {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
}

.btn-sm-square {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}

.btn-lg-square {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

/*** Navbar ***/
.fixed-top {
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.top-bar {
  height: 45px;
  border-bottom: 1px solid var(--gray-200);
}

.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
  padding: 25px 18px;
  color: var(--tertiary);
  font-weight: 500;
  outline: none;
  position: relative;
  font-size: 0.95rem;
}

.navbar .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 20px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: var(--transition);
  border-radius: 2px;
}

.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--primary);
}

.navbar-brand h1 {
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

@media (max-width: 991.98px) {
  .navbar .navbar-nav {
    margin-top: 15px;
    border-top: 1px solid var(--gray-200);
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 10px;
  }

  .navbar .navbar-nav .nav-link {
    padding: 12px 15px;
    border-radius: var(--radius-sm);
  }

  .navbar .navbar-nav .nav-link:hover {
    background: var(--light);
  }

  .navbar .navbar-nav .nav-link::after {
    display: none;
  }
}

@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    visibility: hidden;
    top: 100%;
    transform: rotateX(-75deg);
    transform-origin: 0% 0%;
    transition: var(--transition);
    opacity: 0;
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 10px;
  }

  .navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    transition: var(--transition);
    opacity: 1;
  }
}

/*** Header ***/
.carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: start;
  z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
  width: 3.5rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--primary);
  border: 10px solid var(--primary);
  transition: var(--transition);
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.carousel-control-prev-icon {
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
}

.carousel-control-next-icon {
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}

@media (max-width: 768px) {
  #header-carousel .carousel-item {
    position: relative;
    min-height: 450px;
  }

  #header-carousel .carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.page-header {
  padding-top: 12rem;
  padding-bottom: 6rem;
  background:
    linear-gradient(
      135deg,
      rgba(67, 97, 238, 0.9) 0%,
      rgba(48, 72, 197, 0.95) 100%
    ),
    url(../img/header.jpg) top left no-repeat;
  background-size: cover;
}

.page-header h1 {
  color: #fff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.6);
}

/*** Facts ***/
.facts {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  position: relative;
  overflow: hidden;
}

.facts::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  transform: rotate(-15deg);
}

.facts h1,
.facts h2,
.facts p {
  color: #fff !important;
}

/*** Callback ***/
.callback {
  position: relative;
}

.callback::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 50%;
  top: 0;
  left: 0;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  z-index: -1;
}

/*** Feature ***/
.feature .feature-box,
.feature .feature-box * {
  transition: var(--transition);
}

.feature .feature-box {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-sm);
  background: #fff;
  border: 1px solid var(--gray-200) !important;
}

.feature .feature-box:hover {
  background: var(--primary);
  border-color: var(--primary) !important;
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.feature .feature-box:hover * {
  color: #ffffff !important;
}

/*** Service ***/
.service .nav .nav-link {
  transition: var(--transition);
  border-radius: var(--radius-md) !important;
  margin-bottom: 8px;
}

.service .nav .nav-link:hover {
  background: var(--light);
}

.service .nav .nav-link.active {
  border-color: var(--primary) !important;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  box-shadow: var(--shadow-md);
}

.service .nav .nav-link.active h5 {
  color: #ffffff !important;
}

.service .nav .nav-link.active h5 i {
  color: #ffffff !important;
}

/*** Project ***/
.project-item,
.project-item .project-img {
  position: relative;
}

.project-item .project-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.project-item .project-img a {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(67, 97, 238, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: var(--transition);
}

.project-item:hover .project-img a {
  opacity: 1;
}

.project-item .project-title {
  position: absolute;
  top: 3rem;
  right: 0;
  bottom: 0;
  left: 3rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  z-index: -1;
  transition: var(--transition);
  background: #fff;
}

.project-item:hover .project-title {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.project-item .project-title h4 {
  transition: var(--transition);
}

.project-item:hover .project-title h4 {
  color: #ffffff;
}

.project-carousel .owl-nav {
  margin-top: 25px;
  display: flex;
  justify-content: center;
}

.project-carousel .owl-nav .owl-prev,
.project-carousel .owl-nav .owl-next {
  margin: 0 12px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: var(--light);
  border-radius: 50%;
  font-size: 22px;
  transition: var(--transition);
}

.project-carousel .owl-nav .owl-prev:hover,
.project-carousel .owl-nav .owl-next:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}

/*** Notice ***/
.notice-item {
  position: relative;
  padding: 4rem 0;
}

.notice-item img {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
}

.notice-item .notice-text {
  position: absolute;
  top: 0;
  right: 3rem;
  bottom: 0;
  left: 3rem;
  padding: 15px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  z-index: 1;
  background: #fff;
}

.notice-item:hover .notice-text {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.notice-item .notice-text h4 {
  transition: var(--transition);
}

.notice-item:hover .notice-text h4 {
  color: #ffffff;
}

.notice-item .notice-social .btn {
  background: var(--light);
  color: var(--primary);
  border-radius: var(--radius-md);
}

.notice-item:hover .notice-social .btn {
  background: #ffffff;
}

.notice-item .notice-social .btn:hover {
  background: var(--primary);
  color: #fff;
}

/*** Testimonial ***/
.testimonial-item {
  position: relative;
  text-align: center;
  padding-top: 30px;
}

.testimonial-item .testimonial-text {
  position: relative;
  text-align: center;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 30px;
}

.testimonial-item .testimonial-text .btn-square {
  position: absolute;
  width: 60px;
  height: 60px;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: var(--radius-md);
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  box-shadow: var(--shadow-md);
}

.testimonial-item .testimonial-text::before {
  position: absolute;
  content: "";
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  border: 30px solid;
  border-color: var(--light) transparent transparent transparent;
}

.testimonial-item .testimonial-text::after {
  position: absolute;
  content: "";
  bottom: -59px;
  left: 50%;
  transform: translateX(-50%);
  border: 30px solid;
  border-color: #ffffff transparent transparent transparent;
}

.testimonial-carousel .owl-item img {
  margin: 0 auto;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--light);
  box-shadow: var(--shadow-md);
}

.testimonial-carousel .owl-dots {
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-carousel .owl-dot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
  width: 30px;
  height: 30px;
  border: 2px solid var(--gray-300);
  border-radius: 50%;
  transition: var(--transition);
}

.testimonial-carousel .owl-dot::after {
  position: absolute;
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gray-300);
  transition: var(--transition);
}

.testimonial-carousel .owl-dot.active {
  border-color: var(--primary);
}

.testimonial-carousel .owl-dot.active::after {
  background: var(--primary);
}

.border-box {
  border-style: solid;
  border-radius: var(--radius-xl);
  border-color: var(--primary);
  border-width: 2px;
  padding: 20px;
  text-align: center;
  background: #fff;
  transition: var(--transition);
}

.border-box:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.border-color-box {
  border-radius: var(--radius-xl);
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  padding: 20px;
  text-align: center;
  color: #fff;
  transition: var(--transition);
}

.border-color-box:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/***timeline***/
ul.timeline-horizontal {
  --gap-from-line: 8.5rem;
  --marker-size: 1.2rem;
  --line-thickness: 4px;
  --card-width: 280px;
  --line-color: var(--gray-300);
}

ul.timeline-horizontal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  gap: 0;
  width: 90%;
  margin: 6rem auto;
  margin-top: 12rem;
  list-style: none;
  padding: 0;
}

ul.timeline-horizontal::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: var(--line-thickness);
  background: linear-gradient(
    90deg,
    var(--primary-light),
    var(--primary),
    var(--primary-light)
  );
  transform: translateY(-50%);
  z-index: 0;
  border-radius: 2px;
}

.timeline-horizontal li {
  position: relative;
  text-align: center;
  z-index: 1;
  padding: 0;
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: -3rem;
  margin-right: -3rem;
  box-shadow: none;
  background: transparent;
  border: 0;
  margin-right: 2rm;
}

.timeline-horizontal li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--marker-size);
  height: var(--marker-size);
  background: var(--primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 4px solid #fff;
  box-shadow:
    0 0 0 3px var(--primary),
    var(--shadow-md) !important;
  z-index: 2;
}

.timeline-horizontal li::after {
  content: none;
}

.timeline-horizontal li:nth-child(odd)::after {
  top: calc(50% - var(--gap-from-line));
  height: calc(var(--gap-from-line) - (var(--marker-size) / 2));
}
.timeline-horizontal li:nth-child(odd) > * {
  transform: translateY(calc(-1 * var(--gap-from-line)));
}

.timeline-horizontal li:nth-child(even)::after {
  top: 50%;
  height: calc(var(--gap-from-line) - (var(--marker-size) / 2));
}
.timeline-horizontal li:nth-child(even) > * {
  transform: translateY(var(--gap-from-line));
}

.timeline-horizontal .date,
.timeline-horizontal .descr {
  width: var(--card-width);
  box-sizing: border-box;
  display: block;
  margin: 0;
}

.timeline-horizontal .date {
  background: linear-gradient(
    135deg,
    var(--accent-color) 0%,
    var(--accent-color) 100%
  );
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.timeline-horizontal .descr {
  background-color: #fff;
  padding: 1.25rem;
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.6;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-md);
  color: var(--tertiary);
}

.timeline-horizontal .descr::after {
  content: none !important;
}

.timeline-horizontal li:nth-child(odd) {
  margin-top: 0;
}
.timeline-horizontal li:nth-child(even) {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  ul.timeline-horizontal {
    flex-direction: column;
    gap: 2rem;
    --gap-from-line: 8rem;
  }

  ul.timeline-horizontal::before {
    top: 0;
    left: 50%;
    width: var(--line-thickness);
    height: 100%;
    background: linear-gradient(
      180deg,
      var(--primary-light),
      var(--primary),
      var(--primary-light)
    );
    transform: translateX(-50%);
  }

  .timeline-horizontal li::before {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary);
    box-shadow:
      0 0 0 3px var(--primary),
      var(--shadow-md);
  }

  .timeline-horizontal li::after {
    content: none;
  }

  .timeline-horizontal li:nth-child(odd)::after {
    right: 50%;
    left: auto;
    transform: translateY(-50%);
  }
  .timeline-horizontal li:nth-child(odd) > * {
    transform: translateX(calc(-1 * var(--gap-from-line)));
    text-align: right;
  }

  .timeline-horizontal li:nth-child(even)::after {
    left: 50%;
    transform: translateY(-50%);
  }
  .timeline-horizontal li:nth-child(even) > * {
    transform: translateX(var(--gap-from-line));
    text-align: left;
  }

  .timeline-horizontal .date,
  .timeline-horizontal .descr {
    width: min(90vw, var(--card-width));
  }
}

/*** yap table ***/
.table-wrapper {
  width: 100%;
  margin: 2rem auto;
}

.table-wrapper p {
  text-align: right;
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 0 0.5rem 0;
  color: var(--tertiary);
}

.transparent-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 12px;
  background: transparent;
  border: 0;
}

.transparent-table col {
  width: 33.3333%;
}

.transparent-table td {
  background: #fff;
  border: none;
  padding: 20px;
  text-align: center;
  vertical-align: middle;
  box-sizing: border-box;
  word-break: keep-all;
  overflow-wrap: anywhere;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.transparent-table td:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.transparent-table td:nth-child(3) {
  text-align: center !important;
}

.transparent-table {
  pointer-events: none;
}

/*** Footer ***/
.footer {
  background: linear-gradient(135deg, var(--dark) 0%, #0d1a2d 100%);
}

.footer .btn.btn-link {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  text-align: left;
  color: var(--gray-400);
  font-weight: normal;
  text-transform: capitalize;
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer .btn.btn-link::before {
  position: relative;
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 10px;
  color: var(--primary);
}

.footer .btn.btn-link:hover {
  color: #fff;
  letter-spacing: 1px;
  box-shadow: none;
  padding-left: 5px;
}

.footer h4 {
  color: #fff !important;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.footer p {
  color: var(--gray-400) !important;
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer i {
  color: var(--primary);
}

.copyright {
  color: var(--gray-500);
  background: #000810;
  font-size: 0.9rem;
}

.copyright a {
  color: var(--gray-400);
  transition: var(--transition);
}

.copyright a:hover {
  color: var(--primary);
}

/*** Notice Table ***/
table {
  width: 100%;
  border-collapse: collapse;
  border-style: hidden;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

th,
td {
  padding: 18px 15px;
  text-align: center;
  font-size: 0.95em;
  border-right: none;
  border-bottom: 1px solid var(--gray-200);
}

th:last-child,
td:last-child {
  border-right: none;
}

/* 열 너비 조정 */
th:nth-child(1),
td:nth-child(1) {
  width: 7%;
} /* 번호 */
th:nth-child(2),
td:nth-child(2) {
  width: 13%;
} /* 유형 */
th:nth-child(4),
td:nth-child(4) {
  width: 10%;
} /* 작성일 */
th:nth-child(5),
td:nth-child(5) {
  width: 7%;
} /* 조회 */
th:nth-child(3) {
  width: 63%;
} /* 제목 */
td:nth-child(3) {
  width: 63%;
  text-align: left;
  padding-left: 20px;
}

th {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: #fff;
  font-weight: 600;
  border-bottom: none;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

tr {
  transition: var(--transition);
}

tr:hover {
  background-color: var(--light);
}

tr:last-child td {
  border-bottom: none;
}

.notice-title {
  color: var(--dark);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.notice-title:hover {
  color: var(--primary);
}

/* 페이지네이션 스타일 */
.pagination {
  display: flex;
  justify-content: center;
  padding: 20px;
  gap: 5px;
}

.page-item {
  margin: 0;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--tertiary);
  font-weight: 500;
  transition: var(--transition);
  background: var(--light);
}

.page-item:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-item.active {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

#myModal {
  display: block;
}

#myModal .modal-content {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: none;
}

.none {
  display: none !important;
}

/*** Form Controls ***/
.form-control {
  border-radius: var(--radius-md);
  border: 2px solid var(--gray-300);
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.15);
}

.form-control::placeholder {
  color: var(--gray-400);
}

textarea.form-control {
  min-height: 120px;
}

/*** Cards ***/
.card {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-body {
  padding: 1.5rem;
}

.smooth-shadow-md {
  box-shadow: var(--shadow-lg);
}

/*** curriculum ***/
.curriculum-wrapper {
  width: 100%;
  overflow-x: auto;
  text-align: center;
}

#curriculum-area {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 60px !important;
  flex-wrap: nowrap !important;
  margin: 40px auto !important;
  text-align: center !important;
  overflow: hidden;
  pointer-events: none;
}

#curriculum-area .curriculum-block {
  flex-direction: column !important;
  justify-content: flex-start !important;
  flex-shrink: 0 !important;
  text-align: center !important;
  transition: none !important;
  transform: none !important;
  box-shadow: none !important;
}

#curriculum-area .curriculum-block:hover {
  transform: none !important;
  box-shadow: none !important;
  cursor: default !important;
}

#curriculum-area .curriculum-block img {
  display: block !important;
  width: 100px !important;
  height: 100px !important;
  margin: 0 auto 15px auto !important;
  border-radius: var(--radius-lg);
}

#curriculum-area .curriculum-block span {
  display: block !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  text-align: center !important;
  color: var(--tertiary);
}

[class*="align-items-"] {
  align-items: initial !important;
}

/*** Additional Utilities ***/
.section-title {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.bg-gradient-primary {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
}

/* Login Page */
.card.smooth-shadow-md {
  border-radius: var(--radius-xl);
  padding: 2rem;
}

.card.smooth-shadow-md .form-control {
  border-radius: var(--radius-md);
}

.card.smooth-shadow-md .btn-primary {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
}

/* About Page */
.about-section {
  background: var(--light);
  border-radius: var(--radius-xl);
  padding: 3rem;
}

/* Animation Enhancements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out forwards;
}
