* {
  font-family: OpenSans, sans-serif;
}
:root.light {
  --bg: #ffffff;
  --text: #000;
  --dark: #ccc;
  --box-header: #c2c2c2;
  --box-body: #e5e7eb;
  --border: #555;
  --box-shadow: rgba(214, 214, 214, 0.997);
  --primary: #0a8a9a;
  --header: #086d7a6a;
  --secondary: #086d7a;

  /* background: #086d7a; */
  --section-bg: linear-gradient(to right, #f3f7fd 20%, #ffffff 80%);
}
:root.dark {
  --bg: #222;
  --text: #fff;
  --dark: #333;
  --box-header: #292929;
  --box-body: #383838;
  --border: #999;
  --box-shadow: rgba(0, 0, 0, 0.6);
  --primary: #00465d;
  --header: #0c0f106a;
  --secondary: #001012;
  --section-bg: linear-gradient(to right, #171015 20%, #14151a 80%);
}

.light .main {
  background:
    linear-gradient(
      135deg,
      rgba(208, 225, 240, 0.599) 0%,
      rgba(200, 230, 255, 0.632) 100%
    ),
    url("/assets/images/page/static.webp") center/cover no-repeat;
}

.light .news-header {
  color: var(--bg) !important;
  background: #0a8a9a !important;
}
.light .about-section .about-card {
  color: #fff !important;
}
.dark .main {
  background:
    linear-gradient(135deg, #000000b4 0%, #0000009e 100%),
    url("/assets/images/page/static.webp") center/cover no-repeat;
}
.light .show-menu .col-md-3 {
  background: #f3f7fd;
}
.light .show-menu .col-md-9 {
  background: #fff;
}
.dark .show-menu .col-md-3 {
  background: #171015;
}
.dark .show-menu .col-md-9 {
  background: #14151a;
}
.light i {
  color: var(--text) !important;
}
.border {
    border: 1px solid var(--border) !important
}
.box-shodow {
  box-shadow: 0 0 10px var(--box-shadow) !important;
}

.toggle {
  width: 100px;
  height: 50px;
  background: #ebebeb;
  border-radius: 70px;
  position: relative;
  cursor: pointer;
  box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: 0.4s;
}
.toggle::before {
  content: "";
  width: 40px;
  height: 40px;
  background: linear-gradient(#ffcc89, #d8860b);
  border-radius: 50%;
  position: absolute;
  top: 5px;
  left: 5px;
  transition: 0.4s;
}
body.dark .toggle {
  background: #242424;
}
body.dark .toggle::before {
  left: 55px;
  background: linear-gradient(#777, #3a3a3a);
}

.toggle i {
  position: absolute;
  top: 15px;
  font-size: 24px;
  transition: 0.4s;
}
.fa-sun {
  left: 10px;
  color: #fff !important;
}
.fa-moon {
  right: 10px;
  color: #ffffff;
}

body.dark .fa-sun {
  color: #7e7e7e;
}
body.dark .fa-moon {
  color: #fff;
}

body {
  background: var(--bg);
  color: var(--text);
}

.container {
  max-width: 1728px !important;
  padding: 0 76px;
  margin: 0 auto;
}

.font-w600 {
  font-weight: 600;
}

.font-w700 {
  font-weight: 700;
}
.f-size-2r {
  font-size: 2rem !important;
}
.f-size-1-5r {
  font-size: 1.5rem !important;
}
a {
  font-weight: 600;
}
i {
  cursor: pointer;
}
li {
  font-size: 18px;
  font-weight: 600;
}

.icon-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  color: var(--text) !important;
}

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  color: var(--text) !important;
}

.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  color: var(--text) !important;
}

.overflow-y-auto {
  overflow-y: auto !important;
}

section {
  padding: 80px 0;
}

.bg-inherit {
  background: inherit !important;
}
.border-none {
  border: none !important;
}
.box-show-none {
  box-shadow: none !important;
}

.main-title {
  margin-bottom: 50px;
}
.bg-dark-teal {
  background: #0a8a9a !important;
}
.bg-teal-dark {
  background: #086d7a !important;
}
.bg-deep-blue {
  background: #2171b5 !important;
}
.bg-mint-teal {
  background: #14b8a6 !important;
}
.bg-purple {
  background: #8b5cf6 !important;
}
/* bg-dark-teal
bg-teal-dark
bg-deep-blue
bg-mint-teal
bg-purple */
#closePanel {
  position: absolute;
  right: 20px;
  top: 10px;
}
.accessibility-toggle {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 1100;
}

.accessibility-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: white;
  border-bottom: 1px solid #dee2e6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0.9rem 0;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.accessibility-panel.show {
  transform: translateY(0);
}

.accessibility-panel .btn-group .btn {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
}

.accessibility-panel .btn.active {
  background: #0d6efd;
  color: white;
  border-color: #0d6efd;
}
body.font-medium h1,
body.font-medium h2,
body.font-medium h3 {
  font-size: 2em !important;
}

body.font-large h1,
body.font-large h2,
body.font-large h3 {
  font-size: 2.5em !important;
}
body.font-medium * {
  font-size: 18px !important;
}

body.font-large * {
  font-size: 20px !important;
}

/* Panel o‘zgarmasin */
#accessibilityPanel {
  font-size: 14px;
}
body.contrast {
  background: #000 !important;
  color: var(--text) !important;
}
body.contrast * {
  color: var(--text) !important;
}

body.invert {
  filter: invert(100%) hue-rotate(180deg);
  background: #000 !important;
}

body.hide-images img,
body.hide-images [style*="background-image"] {
  display: none !important;
}

/* ============================== Main ============================== */
.main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

.main .d-line {
  transform: translateY(-20%);
  animation: slideUp 0.8s ease-out forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main .d-line h1 {
  color: var(--text) !important;
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
}

.main .d-line .btn {
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.15);
  /* MUHIM */
  border: 3px solid rgba(255, 255, 255, 0.25);
  color: var(--text) !important;
  border-radius: 15px;
  font-size: 20px;
  cursor: pointer;
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  background-color: rgba(255, 255, 255, 0);
  will-change: transform;
  box-shadow: 0 4px 20px #0000001a;
}

.main .d-line .btn:after {
  display: none;
}

.main .d-line .btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  animation: shine 3s infinite;
}

.main .d-line .btn:hover {
  transform: scale(1.1);
  background: #ffffff2e;
  box-shadow:
    0 8px 30px #00000026,
    0 2px 10px #ffffff1a;
  border-color: var(--text);
}

.main .d-line .btn:active {
  transform: translateY(0);
}

@keyframes shine {
  0% {
    left: -100%;
  }

  50% {
    left: 100%;
  }

  to {
    left: 100%;
  }
}

/* ============================== Nav ============================== */
.scroll-nav {
  background: linear-gradient(90deg, #086d7a, #09457a);
  height: 2.5rem;
  overflow: hidden;
  position: relative;
  line-height: 2.5rem;
}

.scroll-wrap {
  display: flex;
  white-space: nowrap;
  animation: scroll 10s linear infinite;
}

.scroll-wrap span {
  display: inline-block;
  padding-right: 50px;
  color: var(--text) !important;
  font-size: 16px;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ============================== Nav 2 ============================== */
.nav-2,
.nav-2 i,
.nav-2 span {
  color: var(--text) !important;
}

.nav-2 .dropdown-menu {
  color: var(--text) !important;
  background: var(--bg);
  border-radius: 5px;
  min-width: 5rem;
  padding: 1px;
}
.dropdown-item {
    display: block;
    width: 100%;
    padding: .25rem 1.5rem;
    clear: both;
    font-weight: 400;
    color: var(--text);
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: none;
}

.nav-2 .dropdown-menu button:hover {
  background: rgba(99, 167, 182, 0.804);
}

.nav-2 .btn-group .btn {
  min-width: 5rem;
}

/* ============================== Header ============================== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transition:
    backdrop-filter 0.3s,
    background 0.3s;
  z-index: 100000; /* overlaydan ustun bo'lishi uchun */
}

#header.active {
  background: var(--header);
  backdrop-filter: blur(20px);
}

.nav-3 {
  position: relative;
  height: 70px;
}

header .menu-wrapper {
  position: relative;
}

header .icon-bars i {
  cursor: pointer;
  font-size: 1.5rem;
  margin-right: 15px;
}

/* ICON */
header .icon-col {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text) !important;
}

/* CHEVRON */
header .icon-col .chevron {
  transition: transform 0.3s ease;
}

/* DROPDOWN */
header .d-menu {
  position: absolute;
  border-radius: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: 0.3s ease;
}

header .table-cells-menu {
  width: 260px;
  background: var(--bg);
  top: 55px;
  margin-right: 230px;
  visibility: hidden;
}

header .npuu-menu {
  border-radius: 5px;
}

header .n-menu {
  width: 260px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--bg);
  color: var(--text);
  top: 55px;
  margin-left: -130px;
}

header .n-menu li {
  font-size: 16px;
}

/* HOVER ISHLAYDI */
.npuu-menu:hover .n-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.icon-col:hover .table-cells-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* CHEVRON TEPAGA QARAYDI */
.icon-col:hover .chevron {
  transform: rotate(180deg);
}

header .d-menu li {
  width: 90%;
}

header .d-menu li a {
  width: 100%;
  color: #000;
  padding: 10px 10px;
  border-radius: 10px;
  font-weight: 500;
}

header .d-menu li a:hover {
  text-decoration: none;
  background: #086d7a3e;
  color: #086d7a;
}

header ul .nav-link {
  color: var(--text) !important;
  padding: 0;
  margin: 0.5rem 1rem;
  cursor: pointer;
}

header ul .nav-link:hover {
  text-decoration: underline;
  color: red;
}

.nav-link i.fa-chevron-down {
  transition: transform 0.3s ease;
  /* yumshoq aylanish */
  display: inline-block;
  /* rotate ishlashi uchun */
  transform: rotate(0deg);
  /* default tepaga qaragan */
}

.nav-link.active i.fa-chevron-down {
  transform: rotate(180deg);
  /* pastga qaragan */
}

header .h-btn {
  position: relative;
  cursor: pointer;
  background: linear-gradient(90deg, #086d7a, #09457a);
  border: none;
  border-radius: 5px;
  color: var(--text) !important;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  overflow: hidden;
  /* hover fonni cheklash uchun */
  transition: color 0.4s;
}

header .h-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  /* boshlanish chapdan */
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 0;
  transition: left 0.4s ease;
}

header .h-btn:hover::after {
  left: 0;
  /* chapdan o‘ngga siljiydi */
}

header .h-btn span {
  position: relative;
  z-index: 1;
  /* text fon ustida qoladi */
  transition: color 0.4s;
}

header .h-btn:hover span {
  color: #000;
  /* hoverda text qora */
}

/* ============================== Show Menu ============================== */

.show-menu {
  position: relative;
  top: -1000%;
  left: 0;
  width: 100%;
  padding: 30px 0;
  background-image: var(--section-bg);
  transition: top 0.5s ease;
  z-index: 999;
}

.show-menu.active {
  top: 100%;
}

.show-menu .row {
  margin-right: 0px;
}

.show-menu .col-md-3 {
  height: 400px;
}

.show-menu .col-md-9 {
  margin: 0 auto;
  height: 400px;
  margin-right: 0;
  padding: 0;
}

.show-menu ul li a:hover {
  color: #086d7a;
}

.desktop-menu .menu-list {
  padding-top: 26px;
  margin: 0 auto;
}

.desktop-menu .menu-item {
  padding: 14px 16px;
  margin: 10px 0;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text) !important;
  font-weight: 700;
  transition: all 0.25s ease;
}

.desktop-menu .menu-item:hover,
.desktop-menu .menu-item.active,
.nav-link.active .desktop-menu .menu-item {
  background: var(--bg) !important;
  color: var(--text) !important;
  cursor: pointer;
}

.desktop-menu .content-area {
  padding: 24px;
  margin-top: 26px;
}

.desktop-menu .content-section {
  display: none;
}

.desktop-menu .content-section.active {
  display: block;
}

.desktop-menu h5 {
  margin-bottom: 16px;
  color: var(--text) !important;
}

.desktop-menu a {
  color: var(--text) !important;
  text-decoration: none;
  transition: color 0.2s;
}

.desktop-menu a:hover {
  color: #3a5bff !important;
}

@media (max-width: 767px) {
  .desktop-menu {
    display: none;
  }
}

.mobile-accordion .accordion-item {
  margin-bottom: 12px;
}

.mobile-accordion .accordion-header {
  background: var(--bg);
  padding: 16px 20px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--text);
  transition: background 0.3s;
}

.mobile-accordion .accordion-header:hover {
  background: var(--dark);
}

.mobile-accordion .accordion-icon {
  font-size: 18px;
  color: #3a5bff;
}

.mobile-accordion .accordion-content {
  max-height: 0;
  overflow: hidden;
  background: var(--box-body);
  color: var(--text);
  border-radius: 10px;
  margin-top: 10px;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
  padding: 0 20px;
}

.mobile-accordion .accordion-content.show {
  max-height: 400px;
  padding: 16px 20px;
}

.mobile-accordion a {
  display: block;
  padding: 8px 0;
  color: var(--text);
  text-decoration: none;
}

.mobile-accordion a:hover {
  color: #3a5bff;
}

@media (min-width: 768px) {
  .mobile-accordion {
    display: none;
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(-10px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.desktop-menu .menu-item:nth-child(1) {
  animation: slideInRight 0.2s ease 0.2s forwards;
}

.desktop-menu .menu-item:nth-child(2) {
  animation: slideInRight 0.2s ease 0.4s forwards;
}

.desktop-menu .menu-item:nth-child(3) {
  animation: slideInRight 0.2s ease 0.6s forwards;
}

.desktop-menu .menu-item:nth-child(4) {
  animation: slideInRight 0.2s ease 0.8s forwards;
}

/* ============================== Section Elon ============================== */
.s-latest-news {
  background: var(--bg) !important;
  height: 100%;
  padding-bottom: 80px;
}

.s-latest-news .main-title .main-box {
  display: flex;
  justify-content: space-between;
}

.partners .row,
.s-latest-news .row,
.faculties .row,
.university .row {
  display: inline;
}

.s-latest-news .row .col-md-6 {
  padding-right: 0;
  padding-left: 0;
}

/* .s-latest-news .row .col-md-6:nth-child(1) {
  background: yellow;
} */

.s-latest-news .row .col-md-6:nth-child(2) {
  padding-left: 10px;
}

.main-title img {
  width: 35px;
  height: 35px;
  margin-top: 8px;
  animation: rotateAnim 2s linear infinite;
  display: block;
  transform-origin: center;
}

.s-latest-news .left-menu .col-md-6 {
  height: 500px;
}

.s-latest-news .left-menu .card {
  position: relative;
  width: 100%;
  height: 100%;
  box-shadow: 0 0 6px rgba(111, 111, 111, 0.49);
}

.s-latest-news .left-menu .card i {
  position: relative;
  top: -5px;
  font-size: 1.5rem;
}

.s-latest-news .left-menu .card .header {
  background-image: url("assets/images/scroll/main.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.s-latest-news .left-menu .card .header span {
  max-width: 190px;
  line-height: 1.3;
  margin: 0;
  font-size: 14px;
}

.s-latest-news .left-menu .card .body {
  padding-left: 20px;
  padding-right: 20px;
  flex-direction: column;
  justify-content: space-between;
}

.s-latest-news .left-menu .card .body span {
  font-size: 20px;
}

.s-latest-news .left-menu .card .content {
  font-size: 18px;
  color: #333;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  height: 100px;
}

@keyframes rotateAnim {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.btn-close {
  cursor: pointer;
}

.btn-animer {
  display: flex;
  max-width: 200px;
  padding: 14.5px 18px;
  position: relative;
  text-decoration: none;
  justify-content: center;
  overflow: hidden;
  border: 0;
  cursor: pointer;
  border-radius: 8px;
  box-shadow: 0 0 5px #00000080;
}

.btn-animer:hover .wave {
  top: -120px;
}

.text {
  position: relative;
  z-index: 1;
  color: var(--text) !important;
  font-size: 16px;
  letter-spacing: 0%;
  font-weight: 600;
}

.wave {
  width: 200px;
  height: 200px;
  background-color: #086d7a9d;
  box-shadow: inset 0 0 50px #00000080;
  position: absolute;
  left: 0;
  top: -70px;
  transition: 3s;
}

.wave:before,
.wave:after {
  width: 200%;
  height: 200%;
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -75%);
}

.wave:before {
  border-radius: 45%;
  background-color: #2572b2c8;
  animation: wave 5s linear infinite;
}

.wave:after {
  border-radius: 40%;
  background-color: #195b9195;
  animation: wave 10s linear infinite;
}

@keyframes wave {
  0% {
    transform: translate(-50%, -75%) rotate(0);
  }

  to {
    transform: translate(-50%, -75%) rotate(360deg);
  }
}

/* ============================== Scroll UP Container ============================== */
/* Card dizayni */
.scroll-up-card .card {
  position: relative;
  width: 100%;
  box-shadow: 0 0 6px rgba(111, 111, 111, 0.49);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--bg) !important;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.scroll-up-card .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.scroll-up-card .card i.icon-link {
  font-size: 1.5rem;
  color: #007bff;
}
.s-latest-news .scroll-up-card .icon-link {
  position: absolute;
  top: 10px;
  right: 20px;
}

.scroll-up-card .card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}

.scroll-up-card .card .body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.scroll-up-card .card .title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 5px;
}

.scroll-up-card .card .content {
  font-size: 13px;
  color: #333;
  line-height: 1.2;
}

/* Modal stillari fayl oxirida */

.card {
  display: block;
}

.popup-content .close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  border: none;
  background: none;
  cursor: pointer;
}

.popup-content #popupTitle {
  padding: 20px 20px 10px 20px;
  font-weight: 600;
  font-size: 16px;
  border-bottom: 1px solid #999;
}

.popup-content #popupText {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

.hidden {
  display: none;
}

.scroll-up-container {
  height: 100%;
  overflow: hidden;
  position: relative;
}

.scroll-up-inner {
  display: flex;
  flex-direction: column;
  animation: scrollUp 60s linear infinite;
}

@keyframes scrollUp {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-100%);
  }
}

.scroll-up-inner:hover {
  animation-play-state: paused;
}

.scroll-up-card {
  position: relative;
  color: var(--text) !important;
  background: var(--bg) !important;
  margin: 5px 0;
  padding-right: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.scroll-up-card .scroll-box {
  display: flex;
  align-items: center;
}

.scroll-up-card p {
  color: #333;
}

.scroll-up-card span {
  width: 80%;
}

.scroll-up-card:hover {
  text-decoration: none;
}

.scroll-up-card .scroll-box img {
  min-width: 200px !important;
  height: 130px !important;
  margin-right: 10px;
}

/* ============================== Carousel Container ============================== */
.carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}

.carousel-inner {
  display: flex;
  animation: slide 30s linear infinite;
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }

  /* endi cloned card’lar bilan loop bo‘ladi */
}

.carousel-inner:hover {
  animation-play-state: paused;
}

.news-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  /* border: 1px solid var(--border); */
  /* box-shadow: var(--box-shadow); */
  background: var(--bg) !important;
  border-radius: 20px;
  overflow: hidden;
}

.carousel-inner .news-card {
  width: 350px;
  margin-right: 20px;
  flex-shrink: 0;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.news-header {
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  font-weight: 600;
  font-size: 14px;
  background: var(--box-header);
  padding: 24px 20px;
  /* background: linear-gradient(135deg, #086d7a 0%, #0a8a9a 100%); */
}

.news-header span {
  max-width: 190px;
  color: var(--text) !important;
  line-height: 1.3;
  margin: 0;
  font-size: 14px;
}

.news-body {
  background: var(--bg) !important;
  padding: 15px;
  height: 226px;
  flex-direction: column;
  justify-content: space-between;
}

.news-body span {
  color: var(--text) !important;
  font-size: 14px;
}

.location {
  display: flex;
  justify-content: space-between;
  /* span left, icon right */
  align-items: center;
  margin-bottom: 10px;
  font-weight: bold;
  font-size: 12px;
}

.location i {
  margin-right: 5px;
}

.news-content {
  font-size: 14px;
  color: var(--text) !important;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  height: 100px;
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* ============================== Faculties ============================== */
.hover-container {
  position: relative;
}

.faculties .box-wrapper {
  margin-top: 20px;
  position: relative;
}
.faculties .box {
  position: relative;
  border-radius: 24px;
  background-color: var(--bg) !important;
  width: 100%;
  height: 220px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--box-shadow);
  z-index: 2;
  padding: 20px;
}

.faculties .box:hover {
  transform: translateY(-10px);
  border-color: #086d7a;
  box-shadow: 0 20px 40px rgba(8, 109, 122, 0.12);
}

.faculties .box img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  z-index: 2;
  transform-origin: center;
  animation: floatY 2s ease-in-out infinite alternate;
  transition: transform 0.3s ease;
}

@keyframes floatY {
  0% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(10px);
  }
}

.faculties .box p {
  margin-top: 10px;
  font-weight: bold;
  color: var(--text) !important;
  text-align: center;
  z-index: 2;
}

/* Orqa fon, global, boxlar ortida */
.state-animate,
.box-animate {
  position: relative;
}
.box-animate .bg-effect {
  min-width: 220px;
  height: 220px;
}
.state-animate .bg-effect {
  min-width: 48%;
  height: 30%;
}
.bg-effect {
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(18, 88, 120, 0.61);
  border-radius: 16px;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s ease;
}

/* ============================== University Container ============================== */
.about-section {
  height: 150vh;
}

.about-section .about-wrap {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-section .about-img,
.about-section .about-card {
  width: 50%;
  will-change: transform, opacity;
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}

.about-section .about-img img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 16px;
}

.about-section .about-card {
  background: var(--primary) !important;
  color: var(--text) !important;
  padding: 40px;
  border-radius: 16px;
}

.about-section .about-card a {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 16px;
  border: 1px solid #fff;
  color: var(--text) !important;
  text-decoration: none;
  border-radius: 8px;
}

/* mobile */
@media (max-width: 992px) {
  .about-section .about-wrap {
    justify-content: center;
  }

  .about-section .about-img {
    display: none;
  }

  .about-section .about-card {
    width: 100%;
  }
}

.about-section .next-sec {
  height: 100vh;
  background: #086d7a;
  color: var(--text) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

/* ============================== University Container ============================== */
.university {
  background: var(--bg) !important;
}

/* .university Stat box */
.university .d-flex .campus-img {
  width: 100%;
  height: 350px;
}

.university .stat-box {
  position: relative;
  border-radius: 16px;
  height: 130px;
  margin-bottom: 30px;
  color: var(--text) !important;
  background-color: var(--bg) !important;
  padding: 16px;
  overflow: hidden;
  z-index: 1;
  border: 1px solid transparent;
  transition:
    border 0.2s,
    box-shadow 0.3s,
    transform 0.3s;
  cursor: pointer;
}

/* .university .row-1 .stat-box {
  height: 80px;
} */

.university .stat-box:hover {
  border-color: #279cb2;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transform: scale(1.1);
}

.university .stat-box .icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 45px;
  height: 53px;
  object-fit: contain;
  z-index: 10;
}

.university .stat-box .number {
  font-size: 24px;
  font-weight: 600;
  color: var(--text) !important;
  margin-bottom: 8px;
  position: relative;
  z-index: 10;
}

.university .stat-box .label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text) !important;
  position: relative;
  z-index: 10;
}

.university .stat-box .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  pointer-events: none;
  z-index: 0;
}

/* Main image */
.campus-img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  height: 100%;
  transition: transform 0.3s;
}

.campus-img:hover {
  transform: scale(1.03);
}

/* ============================== Footer Container ============================== */
footer {
  background: var(--secondary);
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 44px;
  height: 44px;
  padding: 0 14px;
  margin-right: 12px;
  border-radius: 50px;
  color: var(--text) !important;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.social-btn:hover {
  width: 140px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-btn span {
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-10px);
  transition: 0.3s ease;
}

.social-btn:hover {
  width: 140px;
}

.social-btn:hover span {
  opacity: 1;
  transform: translateX(0);
}

/* ranglar */
.linkedin {
  background: #0a66c2;
}

.youtube {
  background: #ff0000;
}

.instagram {
  background: linear-gradient(45deg, #e4405f, #833ab4);
}

.facebook {
  background: #1877f2;
}

.telegram {
  background: #24a1de;
}

/* ============================== Media ============================== */
@media (max-width: 1046px) {
  header .nav-center {
    display: none;
  }

  .s-latest-news .main-title .d-flex h1,
  .partners .main-title .d-flex h1 {
    margin-top: 7px;
    font-size: 2rem;
  }
}

@media (max-width: 900px) {
  .main .d-line h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .main .d-line h1 {
    font-size: 2rem;
  }
}

@media (max-width: 700px) {
  .main .d-line h1 {
    font-size: 1.7rem;
  }

  .btn-animer {
    height: 50px;
  }

  .btn-animer span {
    font-size: 14px;
  }
}

@media (max-width: 619px) {
  .btn-animer {
    height: 50px;
  }

  .container {
    padding: 0 10px;
  }

  .btn-animer span {
    font-size: 14px;
  }

  .s-latest-news .main-title .d-flex h1,
  .partners .main-title .d-flex h1 {
    margin-top: 13px;
    font-size: 1.5rem;
  }

  .s-latest-news .row .main-title {
    padding: 20px 0;
  }

  .s-latest-news .main-title .main-box {
    display: inline;
  }
}

@media (max-width: 360px) {
  html,
  body {
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    max-width: fit-content;
  }
}
@media (max-width: 425px) {
  .main-title h1 {
    margin-top: auto;
    font-size: 18px !important;
  }
  header .d-flex a {
    width: auto;
  }
  header .d-flex a img {
    max-width: 150px;
    height: auto;
  }
  .nav-2 .justify-content-end {
    justify-content: center !important;
  }
  header .icon-bars i {
    font-size: 1.2rem;
    margin-right: 10px;
  }

  .main .d-line h1 {
    font-size: 1.5rem;
  }

  header .icon-col img {
    width: 20px;
    font-size: 14px;
  }

  header .icon-col i {
    margin-top: -5px;
  }

  header .h-btn {
    width: 90px;
    margin-top: -5px;
    font-size: 14px;
  }
}

@media (max-width: 366px) {
  body {
    width: 100%;
  }
}

/* ============================== Modal Overlay & Content ============================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-content-custom {
  background: var(--bg) !important;
  backdrop-filter: blur(10px);
  border-radius: 24px;
  box-shadow: var(--box-shadow) !important;
  overflow: hidden;
  max-width: 800px;
  width: 95%;
  animation: modalScaleUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modalScaleUp {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header-custom {
  padding: 24px 30px;
  color: white;
  position: relative;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.modal-body-custom {
  padding: 30px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--dark) !important;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.modal-content-text {
  line-height: 1.8;
  color: var(--text) !important;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg);
}
