/* ===============================
   GLOBAL SETTINGS
   =============================== */

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

/* ===============================
   NAVBAR
   =============================== */

.navbar-nav .nav-link {
    color: #212529 !important;
    font-weight: 600;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #0d6efd !important;
}

/* Dropdown (agar boshqa joylarda bo‘lsa) */
.dropdown-menu .dropdown-item {
    color: #212529 !important;
}

.dropdown-menu .dropdown-item:hover {
    color: #0d6efd !important;
    background-color: #f8f9fa !important;
}

/* ===============================
   HERO SECTION
   =============================== */

.hero-section {
    background: url("../images/diffphys_hero.jpg") center/cover no-repeat;
    height: 260px;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-title {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-title span {
    color: #00d4ff;
}

.hero-subtitle {
    color: #e0e0e0;
    font-size: 1.25rem;
    max-width: 900px;
    margin: 0 auto 30px;
}

.hero-buttons .btn {
    margin: 10px;
}
/* ===============================
   CARD ELEMENTS
   =============================== */

.card {
    min-height: 360px;
    border-radius: 8px;
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-title {
    font-weight: bold;
}

/* ===============================
   FOOTER
   =============================== */

.site-footer{
  border-top: 1px solid rgba(0,0,0,.08);
  font-size: 15px;
}

/* Umumiy matnlar – biroz jirniyroq */
.footer-text,
.footer-left,
.footer-right{
  font-weight: 600;
  color: #1f2937;
}

/* EDUFOREIGN.UZ – ko‘rgazmali */
.footer-brand{
  font-weight: 900;
  letter-spacing: 1px;
  font-size: 16px;
  background: linear-gradient(45deg, #0d6efd, #6610f2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Subtitr – ixcham va ilmiy */
.footer-subtitle{
  margin-left: 6px;
  font-size: 13px;
  font-weight: 600;
  opacity: .8;
}

/* Muallif ismi – underline YO‘Q */
.footer-author{
  font-weight: 800;
  color: #0d6efd;
}
/* ===============================
   DOWNLOAD INFO
   =============================== */

.downloads-count {
    background-color: rgba(13, 202, 240, 0.1);
    padding: 10px;
    border-radius: 5px;
}

/* ===== LOGO MARQUEE (LENTA) ===== */
.logo-marquee{
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 8px 0;
}

/* Track doim gorizontal bo‘lsin */
.logo-track{
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 18px;
  width: max-content;
  animation: marquee 22s linear infinite;
  will-change: transform;
}

.logo-item{
  display: inline-flex !important;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
  min-width: 110px;
  padding: 6px 10px;
}

.logo-item img{
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-item span{
  display: block;
  font-size: 12px;
  margin-top: 4px;
  color: #333;
}

@keyframes marquee{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-50%); }
}

.logo-marquee:hover .logo-track{
  animation-play-state: paused;
}

@media (max-width: 576px){
  .logo-track{ gap: 14px; animation-duration: 18s; }
  .logo-item{ min-width: 95px; }
  .logo-item img{ height: 34px; }
  .logo-item span{ font-size: 13px; }
}
/* ===============================
   MOBILE OPTIMIZATION
   =============================== */

@media (max-width: 576px) {
    .logo-track {
        gap: 14px;
        animation-duration: 18s;
    }

    .logo-item img {
        height: 34px;
    }

    .logo-item span {
        font-size: 13px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }
}
/* TOP BANNER ONLY IMAGE */
.top-banner {
    width: 100%;
    margin-bottom: 40px;
}

.top-banner-img{
    width:100%;
    height:220px;
    object-fit:cover;
}

/* ===============================
   PROFESSIONAL HOME (HERO + FEATURES)
   =============================== */

.hero{
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.hero--compact{
  min-height: 420px;
}

.hero__bg{
  position:absolute;
  inset:0;
  background-position:center;
  background-size:cover;
  transform: scale(1.02);
}

.hero__overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(10,16,30,.85), rgba(10,16,30,.35));
}

.hero__content{
  position: relative;
  padding: 48px 0;
}

.hero__badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#eaf2ff;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero__title{
  color:#fff;
  font-weight: 900;
  letter-spacing: .2px;
  line-height: 1.12;
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.hero__title span{
  color:#8fd3ff;
}

.hero__subtitle{
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: 22px;
}

.hero__actions{
  display:flex;
  gap:12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero__meta{
  display:flex;
  flex-wrap: wrap;
  gap:14px;
  color: rgba(255,255,255,.75);
  font-weight: 600;
  font-size: .95rem;
}

.hero__meta-item{
  display:flex;
  align-items:center;
  gap:8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  padding: 8px 10px;
  border-radius: 12px;
}

.hero__card{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.15);
  overflow: hidden;
}

.hero__card-title{
  font-weight: 900;
  padding: 16px 16px 8px 16px;
}

.hero__list .list-group-item{
  display:flex;
  align-items:center;
  gap:8px;
  border: 0;
  border-top: 1px solid rgba(0,0,0,.06);
  padding: 12px 16px;
}

.hero__card-footer{
  padding: 12px 16px 16px 16px;
  border-top: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.9);
}

/* Sections */
.section{
  padding: 48px 0;
}

.section--tight{
  padding: 24px 0 48px 0;
}

.section__head{
  margin-bottom: 18px;
}

.section__title{
  font-weight: 900;
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.section__subtitle{
  color:#6b7280;
  margin:0;
}

/* Feature cards */
.feature{
  display:block;
  text-decoration:none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
}

.feature:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0,0,0,.10);
}

.feature__icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(13,110,253,.10);
  color: #0d6efd;
  font-size: 18px;
  margin-bottom: 10px;
}

.feature__title{
  font-weight: 900;
  margin-bottom: 6px;
}

.feature__text{
  color:#6b7280;
  line-height: 1.6;
  margin:0;
}

/* Mobile tweaks */
@media (max-width: 576px){
  .hero--compact{ min-height: 420px; }
  .hero__title{ font-size: 1.65rem; }
  .hero__content{ padding: 36px 0; }
}

/* ===============================
   PAGE HERO (compact, professional)
   =============================== */
.page-hero{
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0,0,0,.06);
  min-height: 260px;
  display:flex;
  align-items:center;
}

.page-hero__bg{
  position:absolute;
  inset:0;
  background-position:center;
  background-size:cover;
  transform: scale(1.02);
}

.page-hero__overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(8,14,28,.80), rgba(8,14,28,.35));
}

.page-hero__content{
  position: relative;
  padding: 44px 0;
  color:#fff;
}

.page-hero__badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-hero__title{
  font-weight: 900;
  margin: 0 0 10px 0;
  letter-spacing: .2px;
}

.page-hero__subtitle{
  max-width: 760px;
  color: rgba(255,255,255,.86);
  margin: 0;
  line-height: 1.7;
}

/* ===============================
   SECTIONS
   =============================== */
.section{
  padding: 42px 0;
}

.section__head{
  margin-bottom: 16px;
}

.section__title{
  font-weight: 900;
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.section__subtitle{
  color:#6b7280;
  margin:0;
}

/* ===============================
   DOCUMENT CARDS
   =============================== */
.doc-card{
  background:#fff;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  overflow:hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.doc-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(0,0,0,.10);
}

.doc-card__top{
  padding: 18px 18px 14px 18px;
}

.doc-card__icon{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(13,110,253,.10);
  color:#0d6efd;
  font-size: 18px;
  margin-bottom: 10px;
}

.doc-card__title{
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.25;
  min-height: 42px;
}

.doc-card__meta{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top: 10px;
}

.doc-card__badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background: rgba(16,185,129,.12);
  border: 1px solid rgba(16,185,129,.18);
  color:#0f766e;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .9rem;
}

.doc-card__hint{
  color:#6b7280;
  font-weight: 700;
  font-size: .9rem;
}

.doc-card__bottom{
  padding: 0 18px 18px 18px;
}

.doc-card__btn{
  border-radius: 12px;
  font-weight: 900;
  padding: 11px 14px;
}

/* ===============================
   EMPTY STATE
   =============================== */
.empty-state{
  background:#fff;
  border: 1px dashed rgba(0,0,0,.15);
  border-radius: 16px;
  padding: 26px;
  text-align:center;
}

.empty-state__icon{
  font-size: 26px;
  color:#0d6efd;
  margin-bottom: 8px;
}

.empty-state__title{
  font-weight: 900;
  margin-bottom: 4px;
}

.empty-state__text{
  color:#6b7280;
  margin:0;
  line-height: 1.6;
}

/* Mobile */
@media (max-width: 576px){
  .page-hero{ min-height: 240px; }
  .page-hero__content{ padding: 34px 0; }
  .page-hero__title{ font-size: 1.6rem; }
}

.page-hero{
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0,0,0,.06);
  min-height: 260px;
  display:flex;
  align-items:center;
}

.page-hero__bg{
  position:absolute;
  inset:0;
  background-position:center;
  background-size:cover;
  transform: scale(1.02);
}

.page-hero__overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(8,14,28,.80), rgba(8,14,28,.35));
}

.page-hero__content{
  position: relative;
  padding: 44px 0;
  color:#fff;
}

.page-hero__badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-hero__title{
  font-weight: 900;
  margin: 0 0 10px 0;
  letter-spacing: .2px;
}

.page-hero__subtitle{
  max-width: 760px;
  color: rgba(255,255,255,.86);
  margin: 0 auto;
  line-height: 1.7;
}

.section{ padding: 42px 0; }

.doc-card{
  background:#fff;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  overflow:hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.doc-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(0,0,0,.10);
}

.doc-card__top{ padding: 18px 18px 14px 18px; }

.doc-card__icon{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(13,110,253,.10);
  color:#0d6efd;
  font-size: 18px;
  margin-bottom: 10px;
}

.doc-card__title{ font-weight: 900; font-size: 1.05rem; }

.doc-card__meta{ display:flex; gap:10px; margin-top: 8px; }

.doc-card__badge{
  display:inline-flex;
  align-items:center;
  background: rgba(16,185,129,.12);
  border: 1px solid rgba(16,185,129,.18);
  color:#0f766e;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .9rem;
}

.doc-card__bottom{ padding: 0 18px 18px 18px; }

.doc-card__btn{ border-radius: 12px; font-weight: 900; padding: 11px 14px; }

.empty-state{
  background:#fff;
  border: 1px dashed rgba(0,0,0,.15);
  border-radius: 16px;
  padding: 26px;
  text-align:center;
}
.empty-state__icon{ font-size: 26px; color:#0d6efd; margin-bottom: 8px; }
.empty-state__title{ font-weight: 900; margin-bottom: 4px; }
.empty-state__text{ color:#6b7280; margin:0; line-height: 1.6; }


/* ===============================
   PRO: Me'yoriy hujjatlar page
   =============================== */

.hero-mini{
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0,0,0,.08);
  min-height: 240px;
  display:flex;
  align-items:center;
}

.hero-mini__bg{
  position:absolute;
  inset:0;
  background-position:center;
  background-size:cover;
  transform: scale(1.03);
}

.hero-mini__overlay{
  position:absolute;
  inset:0;
  background: radial-gradient(900px 260px at 15% 40%, rgba(13,110,253,.40), transparent 60%),
              linear-gradient(90deg, rgba(9,14,28,.88), rgba(9,14,28,.35));
}

.hero-mini__content{
  position: relative;
  padding: 38px 0;
  color:#fff;
}

.hero-mini__crumbs{
  font-size: .9rem;
  color: rgba(255,255,255,.78);
  display:flex;
  flex-wrap: wrap;
  gap:8px;
  align-items:center;
}

.hero-mini__crumbs a{
  color: rgba(255,255,255,.85);
  text-decoration: none;
}
.hero-mini__crumbs a:hover{ text-decoration: underline; }
.hero-mini__crumbs .active{ color:#fff; font-weight: 800; }

.hero-mini__title{
  margin: 10px 0 8px 0;
  font-weight: 950;
  letter-spacing: .2px;
  font-size: 2.05rem;
}

.hero-mini__subtitle{
  margin: 0;
  max-width: 820px;
  color: rgba(255,255,255,.86);
  line-height: 1.7;
}

.hero-mini__chips{
  margin-top: 14px;
  display:flex;
  flex-wrap: wrap;
  gap:10px;
}

.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
  font-weight: 800;
  font-size: .9rem;
}

.section-pro{
  padding: 44px 0;
}

.section-pro__head{
  display:flex;
  justify-content: space-between;
  align-items:flex-end;
  gap: 14px;
  margin-bottom: 14px;
}

.section-pro__title{
  font-weight: 950;
  font-size: 1.6rem;
  margin:0 0 6px 0;
}

.section-pro__desc{
  margin:0;
  color:#6b7280;
  line-height: 1.6;
}

/* Card */
.doc-card-pro{
  background:#fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  overflow:hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

.doc-card-pro:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(0,0,0,.10);
}

.doc-card-pro__top{
  padding: 18px 18px 10px 18px;
}

.doc-card-pro__icon{
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(13,110,253,.10);
  color:#0d6efd;
  font-size: 18px;
  margin-bottom: 10px;
}

.doc-card-pro__title{
  font-weight: 950;
  font-size: 1.05rem;
  line-height: 1.25;
  min-height: 44px;
}

.doc-card-pro__meta{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top: 10px;
}

.badge-soft{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(16,185,129,.12);
  border: 1px solid rgba(16,185,129,.20);
  color:#0f766e;
  font-weight: 950;
  font-size: .9rem;
}

.meta-text{
  color:#6b7280;
  font-weight: 800;
  font-size: .92rem;
}

.doc-card-pro__bottom{
  padding: 0 18px 18px 18px;
}

.btn-pro{
  border-radius: 14px;
  padding: 11px 14px;
  font-weight: 950;
}

/* Empty state */
.empty-pro{
  background:#fff;
  border: 1px dashed rgba(0,0,0,.18);
  border-radius: 18px;
  padding: 28px;
  text-align:center;
}

.empty-pro__icon{ font-size: 26px; color:#0d6efd; margin-bottom: 8px; }
.empty-pro__title{ font-weight: 950; margin-bottom: 4px; }
.empty-pro__text{ color:#6b7280; margin:0; line-height: 1.6; }

@media (max-width: 576px){
  .hero-mini{ min-height: 220px; }
  .hero-mini__title{ font-size: 1.6rem; }
  .hero-mini__content{ padding: 30px 0; }
}