html, body {
  height: 100%;
  margin: 0;
}

.main {
  flex: 1;
}


body {
  display: flex;
  flex-direction: column;
}

.page {
  min-height: 100vh;          /* butun ekran */
  display: flex;
  flex-direction: column;
  
}

.main-content {
  flex: 1;                    /* BO‘SH JOYNI EGALLAYDI */
}




.site-header {
  color: #fff;
  width: 100%;
  
}

/* Yuqori qator */
.header-top {
  padding: 25px 0;
  background: #005096;
  width: 100%;
  margin: 0;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-logo img {
  height: 80px;
}
.nomi {
  font-size: 17px;
  line-height: 1.3;
  font-weight: bold;
  flex: 1;
  font-family: system-ui;
}

/*masofaviy lms uchun*/
.lms-btn{
  color: white;
  font-size: 18px;
  border-block-end: solid;
  writing-mode: horizontal-tb;
  color: white;
}
.lms-link {
    display: flex;
    align-items: center;   /* 🔥 MUHIM */
    gap: 8px;
    background: #005096;
    padding: 6px 12px;
    text-decoration: none;
    color: white;
    font-weight: 600;

}
.lms-link:hover{
  background: white;
  color: #005096;
} 


/*hemis tugmasi*/

.hemis-btn {
  border-block-end: solid;
  writing-mode: horizontal-tb;
  color: white;
}


.hemis-link {
    display: flex;
    align-items: center;   /* 🔥 MUHIM */
    gap: 8px;
    background: #005096;
    padding: 6px 12px;
    text-decoration: none;
    color: white;
    font-weight: 600;
}

.hemis-link:hover{
  background: white;
  color: #005096;
}

.hemis-btn:hover svg {
    fill: #005096 !important;
}

.hemis-btn svg {
width: 18px;
height: 18px; 
color: white;
transform: scale(1.2);
}


/*qdiruv tugmasiga*/

.search-open{
display: flex;
align-items: center;   /* ikonka va matnni bir chiziqqa keltiradi */
gap: 6px;              /* ikonka bilan matn orasidagi masofa */
background: #005096;
border: none;
padding: 8px 14px;
cursor: pointer;
font-weight: 600;

border-block-end: solid;
writing-mode: horizontal-tb;
color: white;
}

.search-open:hover{
background: white;
color: #005096;

}
/*qdiruv lupasini rangi ozgarishi*/
.search-open:hover svg {
    fill: #005096 !important;
}
.search-open svg{
width:18px;
height:18px;
color: white;
transform: scale(1.2);
}



/* overlay */
.search-overlay{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:#0d2f5c;
display:none;
align-items:center;
justify-content:center;
z-index:9999;
}

/* markazdagi forma */
.search-form{
display:flex;
}

.search-form input{
width:500px;
padding:14px;
border:none;
font-size:16px;
}

.search-form button{
background:rgba(114, 176, 226, 0.68);
color:#0d2f5c;
border:none;
padding:14px 20px;
cursor:pointer;
}


/* SEARCH OVERLAY */
.search-overlay{
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.75);
display: none;
align-items: center;
justify-content: center;
z-index: 9999;
}

/* search form markazda */
.search-form{
display: flex;
}

.search-form input{
width: 500px;
padding: 15px;
font-size: 16px;
border: none;
outline: none;
}

.search-form button{
padding: 15px 25px;
background: #0d2f5c;
color: white;
border: none;
cursor: pointer;
}

/*til va qdiruv tugmalari yozuvlari bir xil qalinlikda boladi*/
.search-open,
.lang-btn,
.hemis-btn{
font-weight: 600;   /* ikkalasi ham bir xil qalinlik */
font-family: inherit; /* bir xil font ishlatadi */
font-size: 14px;
}

/*language */

.lang-dropdown{
position:relative;
display:inline-block;
z-index: 10000;

}

.lang-btn{
background:white;
border:none;
padding:10px 22px;
border-radius:1px;
font-weight:600;
cursor:pointer;
color: black;
}

.lang-menu{
display:none;
position:absolute;
top:28px;
right:0;
background:white;
border-radius:1px;
box-shadow:0 6px 20px rgba(0,0,0,0.15);
min-width:113px;
}

.lang-menu.show{
display:block;
}



.lang-item{
width:100%;
padding:10px 14px;
border:none;
background:none;
text-align:left;
cursor:pointer;
}

.lang-item:hover{
background:#f2f2f2;
}
/*tilni tugashi#############################*/

/* Pastki qator (menu) asosiy sahifa uchun menyu korinishi*/
.header-bottom {
  position: relative;
  z-index: 1;

}
body.home-page .header-bottom {
  position: absolute;
  backdrop-filter: blur(5px);
  z-index: 10;
  background:rgba(92, 161, 221, 0.68);
  width: 100%;
  padding: 10px 0;
  font-family: "Gill Sans", sans-serif;
}
/* qolgan bolimlar uchun menyu qismi */
.header-bottom {
    width: 100%;
    padding: 10px 0;
    position: relative;
    background: #005096 ;
    font-family: "Gill Sans", sans-serif;
}
body:not(.home-page) .header-bottom::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
      to right,
      transparent,
      rgba(255,255,255,0.5),
      transparent
    );
}
.main-nav {
  width: 100%;
}
.nav-list {
  display: flex;
  justify-content: space-evenly;/* 🔑 ENG MUHIM QATOR */
  align-items: center;
  gap: 50px;
  list-style: none;
  margin: 0;
  padding: 0 40px;/* 🔑 ul default paddingni o‘chiradi */
}
/* dropdown uchun */
.has-dropdown {
  position: relative;
}
.nav-list li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 550;
  position: relative;
  transition: 0.50s;
  display: block;
}
/* dropdown menyu */
.dropdown {
  position: absolute;
  top: 147%;
  margin-top: -3px; /* dropdown va asosiy menyu orasidagi kichik masofa */
  left: 50%;
  transform: translateX(-50%);
  background: white;
  min-width: 154px;
  padding: 0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.30s ease;
  z-index: 999;
  transition: all 0.3s ease-in-out 0s;
}
/* hover bo‘lsa ochiladi */
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
/* dropdown va asosiy menyu orasidagi kichik masofa uchun qo‘shimcha element menyuni qoshimcha menyuga boglab beradi */
.has-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px; /* dropdown boshlanguncha bo'lgan bo'shliqni to'ldiradi */
  background: transparent;
}
.dropdown li {
  list-style: none;
}
/* dropdown ichidagi linklar */
.dropdown li a {
  display: block;
  padding: 12px 18px;
  font-size: 15px;
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid #eaeaea;
  transition: all 0.2s ease, color 0.2s ease;
}
/*hoverda chiqqan matinni rangini ozgartiradi*/
.dropdown li a:hover {
  background: #f2f2f2;
  color: #005096;
  border-bottom-color: #ffffff;
}
/* Hover bo‘lganda chiziq chiqadi */
/*.dropdown li a:hover::after {
  width: 100%;
}*/

/*submenu #######################################*/

/* submenu parent */

/* submenu link */
.submenu-link {
    display: flex !important;

    justify-content: space-between;

    align-items: center;
}

/* arrow */
.submenu-arrow {
    font-size: 11px;

    transition: 0.2s ease;
}

/* hover bo‘lsa aylansin */
.has-submenu:hover .submenu-arrow {
    transform: translateX(3px);
}

.has-dropdown .has-submenu {
    position: relative;
}

/* submenu */
.has-submenu .submenu {
    position: absolute;

    top: 0;
    left: 100%;

    min-width: 220px;

    background: #fff;

    opacity: 0;
    visibility: hidden;

    transition: 0.25s ease;

    box-shadow: 0 5px 20px rgba(0,0,0,0.15);

    padding: 0;

    z-index: 999;
}

/* hover bo‘lsa ochiladi */
.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
}

/* submenu li */
.submenu li {
    list-style: none;
}

/* submenu link */
.submenu li a {
    display: block;
    padding: 12px 18px;

    color: #222;
    text-decoration: none;

    background: white;

    border-bottom: 1px solid #eee;
}

/* hover */
.submenu li a:hover {
    background: #f5f5f5;
}

/*menyu bo'limi tugashi*//*##############################*/









/*class footer*//* ###############################################*/
/*container ikkalasi uchunham*/
.container {
  width: 90%;
  max-width: 1500px;
  margin: 0 auto;
  /*padding-left: 20px;
  padding-right: 20px;*/
}




.site-footer {
  background: #005096;
  color: #fff;
  padding: 40px 0 20px;
}

.footer-row {
  display: flex;
  justify-content: space-between; /* 🔑 ENG MUHIM */
  gap: 30px;
  padding-bottom: 65px;
  width: 100%;
}

.footer-left {
  max-width: 220px;
  text-align: center;
  margin-bottom: 50px;
  display: flex;
  
  
}
.footer-right {
  display: flex;
  gap: 24px;
}
.footer-logo {
  height: 100px;
  text-align: center;
}

.footer-logo img {
  width: 100px;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 17px;
  line-height: 1.4;
}
.footer-title {
  font-size: 16px;
  margin-bottom: 12px;
  font-weight: bold;
}

.footer-social {
  margin-top: 10px;
  display: flex;
  gap: 12px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  font-size: 13px;
  margin-bottom: 6px;
}

.footer-info {
  font-size: 13px;
  margin-bottom: 8px;
}

.footer-info a {
  color: #fff;
  text-decoration: none;
}
.footer-social a {
  color: #fff;
  font-size: 16px;
}
/*iconkalarniki*/
.footer-social {
  display: flex;
  gap: 12px;
}


.social-icon svg {
width: 32px;
  height: 32px;
  fill: #ffffff;
  transition: 0.3s ease;
}

.social-icon:hover svg {
  fill: #0d6efd;
  transform: scale(1.15);
}


/*kimtomonidan yaratilganligihaqidagi joyi ########## */ 
.footer-copyright {
  text-align: center;
  padding: 12px 10px;
  font-size: 15px;
  border-top: 1px solid #d2e1f5;/* oq chziq*/
  margin-top: 30px; /*yuqoridan masofa*/
  padding-top: 15px;  /* chiziq bilan matn orasida masofa */
}


.footer-copyright {
  border-top: 2px solid transparent;
  border-image: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.8),
    transparent
  );
  border-image-slice: 1;
  padding-top: 15px;
  margin-top: 30px;
  text-align: center;
}


.footer-copyright {
  position: relative;
  margin-top: 35px;
  padding-top: 18px;
  text-align: center;
  font-size: 14px;
}

.footer-copyright::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
}




/*index qismi*//*#################################*/


.home-hero {
  width: 100%;
  min-height: 76vh;  /*ekrandagi rasimni qancha qismini egallagani*/
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}




/*  YANGILIKLAR    */
.home-news {
  padding: 60px 0;
  text-align: center;
  padding-top: 20px;
  padding-bottom: 60px;
  /*background: #f8f9fc;*/
}
.home-news h2 {
  margin: 0 0 40px 0;
  font-size: 25px;
  font-weight: 600;
}

.news-card {
    display: block;
    background: #ffffffa2;
    border-radius: 1px;
    overflow: hidden;
    text-decoration: none;
    color: #000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.news-card:hover {
    transform: translateY(-6px);
}

.news-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.news-content {
    padding: 18px;
    position: relative;
    min-height: 80px;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #131416f6;
}

.news-date {
    font-size: 14px;
    color: #777;

    position: absolute;
    bottom: 10px;
    right: 15px;

}


/*videogalereya uchun css asosiy sahifada*/

.video-gallery-section {
    background: #f8f9fc;
    padding: 60px 0;
}





.container .section-title {
    font-size: 25px;
    font-weight: 600;
  

}
.all-video-link {
    text-decoration: none;
    color: #141618;
    font-size: 20px;
    font-weight: 600;
}





.video-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;

    box-shadow: 0 2px 10px rgba(0,0,0,0.08);

    transition: 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-wrapper {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: black;
    position: relative;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-btn {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 70px;
    height: 70px;

    border-radius: 50%;

    background: rgba(255,255,255,0);

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 34px;

    color: #0b4ea2;

    transition: 0.3s;

    pointer-events: none;
    z-index: 5;
}

.video-wrapper:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}


/* play tugmasini kattalashtiradi */


.video-content {
    padding: 15px;
}

.video-content h5 {
    font-size: 18px;
    margin-bottom: 10px;
}

.video-content span {
    color: #888;
    font-size: 14px;
}






/*news_detail yangiliklarning aloxida saxifasi ############################*/



.news-detail {
    padding: 60px 0;
}

.news-detail .container {
  max-width: 1200px;
  margin: 0 auto;
}

.detail-gallery {
  margin-bottom: 40px;
}

.detail-gallery img {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 10px;
    display: block;
    border-radius: 5px;
    
    
}

.news-detail h1 {
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
}

.news-detail p {
    font-size: 18px;
    line-height: 1.6;
    margin-top: 20px;
}

.news-date{
    font-size: 14px;
    color: #777;
    margin-top: 5px;
    text-align: center;
}

.detail-date{
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
    text-align: center;
}



/*bo'limlar raxbariyatga css ####################*/

.rahbariyat-container {
  width: 60%;
  margin: 50px auto;
}

/* card */
.rahbar-card {
  display: flex;
  background: #e6eef8;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

/* image */
.rahbar-img {
  flex: 0 0 30%;
}

.rahbar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* info */
.rahbar-info {
  padding: 40px;
  flex: 1;
}

.rahbar-info h4 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.rahbar-title {
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 20px;
}

.rahbar-text {
  color: black;
  line-height: 1.6;
  font-size: 18px;
}

/* contact */
.rahbar-contact {
  margin-top: 20px;

}

.rahbar-contact p {
  margin: 6px 0;
}


/*kafedralar ###################################*/
/* CARD */
.kafedra-detail {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: 0.3s;
    min-height: 500px;
    max-width: 1000px;
    margin: 10px auto;
    position: center;
    
}

.kafedra-detail:hover {
    transform: translateY(-5px);
}

/* IMAGE */
.kafedra-detail .kafedra-img {
    overflow: hidden;
    border-radius: 10px;
    text-align: center;
    margin: 20px auto;

}

.kafedra-detail .kafedra-img img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* TITLE */
.kafedra-detail h2 {
    margin: 15px 0;
    font-size: 22px;
}

/* TEXT */
.kafedra-detail p {
    color: #202020;
    font-size: 18px;
    max-width: 900px;   /* rasm bilan bir xil */
    margin: 20px auto;  /* markazga */
    padding: 0 20px;    /* chetlardan chiqmasin */

}
/*kafedra list uchun css #####################*/




.kafedra-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 ta yonma-yon */
    gap: 30px;

    width: 90%;
    margin: 40px auto;
    height: auto;
    min-height: 500px;
    margin-bottom: 110px;
}

/* card */
.kafedra-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;

    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    margin-bottom: 90px;
}

/* rasm */
.kafedra-card img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 10px;
}

/* title */
.kafedra-card h2 {
    margin: 15px 0;
}

/* text */
.kafedra-card p {
    color: #555;
}

/* button */
.btn {
    display: inline-block;
    margin-top: 10px;
    background: #005096;
    color: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
}

/* 📱 mobil */
@media (max-width: 768px) {
    .kafedra-list {
        grid-template-columns: 1fr;
    }
}


/*yangiliklarning asosiy bo'limi uchun css */
/* TITLE */

/* Sarlavha 
.news-title {
    text-align: center;
    margin: 40px 0;
    font-size: 32px;
    font-weight: 700;
}*/

/* Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
    margin: 40px;
}

/* Card */
.news-cards {
    background: #ffffff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
}

/* Hover effekt */
.news-cards:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Rasm */
.news-cards img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}





/* Card ichidagi body */
.news-body {
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
}

/* Knopka */
.news-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    background: #1c5b8c;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: 0.3s;
}

/* Hover */
.news-btn:hover {
    background: #0f3f66;
}

/* Card hover */
.news-card:hover .news-btn {
    transform: translateX(5px);
}


.news-body a {
  position: center;
}






/* Text */
.news-cards h3 {
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    
}

/* Bo‘sh holat */
.news-grid p {
    text-align: center;
    grid-column: 1 / -1;
    font-size: 18px;
    color: #888;
}


/* ecofaol talabalar */
.eco-section {
    background: #f5f7fb;
    min-height: 600px;
    
}

.eco-link {
    text-decoration: none;
    color: inherit;
}

.eco-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
    height: 100%;
}

.eco-card:hover {
    transform: translateY(-5px);
}

.eco-media {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #000;
}

.eco-media img,
.eco-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eco-content {
    padding: 20px;
}

.eco-content h4 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #0b2c5f;
}

.eco-content p {
    color: #555;
    line-height: 1.7;
}

.eco-date {
    display: inline-block;
    margin-top: 10px;
    color: #888;
    font-size: 14px;
}


.eco-image {
    position: relative;
    overflow: hidden;
    border-radius: 14px;

    width: 100%;
    height: 280px;
  

}

.eco-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.3s;
}

.eco-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}
/*ekofaol talabalar batafsil*/

.eco-gallery{
    display: flex;
    flex-wrap: wrap;
    /*grid-template-columns: repeat(2, 1fr);*/
    gap: 20px;
    margin-top: 50px;
    
    justify-content:flex-start;
}

/* Agar oxirgi rasm yolg'iz qolsa o'rtaga tushadi */
.eco-gallery .gallery-item:last-child:nth-child(odd){
    grid-column: 1 / 3;
    justify-self: center;
    width: 50%;
}

.gallery-item{
    overflow:hidden;
    border-radius:14px;
}


.gallery-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

/* Small */
.gallery-item.small{
    width:30%;
    height:250px;
}

/* Medium */
.gallery-item.medium{
    width:48%;
    height:350px;
}

/* Large */
.gallery-item.large{
    width:70%;
    height:500px;
}

/* Full Width */
.gallery-item.full{
    width:100%;
    height:600px;
}



.eco-content{
    max-width: 1000px;
    margin: 0 auto;
}

.detail-video{
    width: 100%;
    max-height: 700px;
    object-fit: contain;
    background: black;
    border-radius: 12px;
    margin-top: 30px;
}





.gallery-item img{
    width:100%;
    border-radius:14px;
    display:block;
}