/* Additions for the PHP version of the ittime.uz template:
   the slick/next-ui styles that the React build injected at runtime. */

/* --- slick structure --- */
.slick-slider { position: relative; display: block; box-sizing: border-box; user-select: none; touch-action: pan-y; }
.slick-list { position: relative; display: block; overflow: hidden; margin: 0; padding: 0; }
.slick-slider .slick-track { position: relative; top: 0; left: 0; display: flex !important; flex-wrap: nowrap; transition: transform .5s ease; will-change: transform; }
.slick-slider .slick-slide { flex: 0 0 auto; float: none; min-height: 1px; outline: none; }
.slick-arrow { z-index: 2; cursor: pointer; }

/* hero: all slides stacked, the active one fades in */
.js-fade-slider .slick-track { display: grid !important; transition: none; }
.js-fade-slider .slick-slide { grid-area: 1 / 1; width: 100%; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s ease; }
.js-fade-slider .slick-slide.slick-active { opacity: 1; visibility: visible; z-index: 1; }

/* carousel cards */
.js-carousel .slick-slide { width: 33.333%; }

/* --- list pages: wide cards with a description --- */
.post-wide { display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr); gap: 34px; align-items: center; margin-top: 40px; padding: 18px; border-radius: 18px; background: var(--color-white, #fff); border: 1px solid #eef0f3; transition: box-shadow .25s ease, transform .25s ease; }
.post-wide:hover { box-shadow: 0 18px 40px -18px rgba(16, 24, 40, .25); transform: translateY(-2px); }
.post-wide__thumb { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: #f1f3f5; }
.post-wide__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.post-wide:hover .post-wide__thumb img { transform: scale(1.04); }
.post-wide__body { padding: 6px 12px 6px 0; min-width: 0; }
.post-wide .post-cat { margin-bottom: 10px; }
.post-wide__title { font-size: 26px; line-height: 1.3; margin: 0 0 12px; }
.post-wide__title a { color: var(--color-heading, #000); }
.post-wide__title a:hover { color: var(--color-primary); }
.post-wide__desc { font-size: 17px; line-height: 1.65; color: #5f6b7a; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-wide__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: #889096; }
.post-wide__meta li { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.post-wide + .pagination { margin-top: 50px; }
@media (max-width: 991px) {
  .post-wide { grid-template-columns: 1fr; gap: 18px; padding: 14px; }
  .post-wide__body { padding: 0 6px 6px; }
  .post-wide__title { font-size: 22px; }
}
body.active-dark-mode .post-wide { background: #2a2a2a; border-color: #333; }
body.active-dark-mode .post-wide__title a { color: #fff; }
body.active-dark-mode .post-wide__desc { color: #c4c4c4; }

/* --- mobile submenu (toggled by site.js) --- */
.popup-mobilemenu-area .mainmenu .menu-item-has-children .axil-submenu.open { height: auto; visibility: visible; opacity: 1; }

/* --- post body --- */
.post-details-content img, .post-details-content iframe, .post-details-content video { max-width: 100%; height: auto; border-radius: 10px; }
.post-details-content table { width: 100%; display: block; overflow-x: auto; }
.audio-player-custom { cursor: pointer; }

/* --- currency / crypto tables (ittime.uz used next-ui for these) --- */
.axil-title { margin-bottom: 30px; }
.rate-table-container { width: 100%; overflow-x: auto; padding: 12px; border-radius: 14px; background: var(--color-white, #fff); box-shadow: 0 12px 20px 6px rgba(104, 112, 118, .08); }
.rate-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; min-width: 640px; }
.rate-table thead th { background: #f1f3f5; color: #687076; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; padding: 12px 14px; text-align: left; white-space: nowrap; }
.rate-table thead th:first-child { border-radius: 10px 0 0 10px; }
.rate-table thead th:last-child { border-radius: 0 10px 10px 0; }
.rate-table, .rate-table th, .rate-table td { border: 0; }
.rate-table tbody td { padding: 14px; border-bottom: 1px solid #f1f3f5; color: var(--color-heading, #000); white-space: nowrap; }
.rate-table tbody tr:last-child td { border-bottom: 0; }
.rate-table tbody tr:hover td { background: #f8f9fa; }
.rate-name { display: flex; align-items: center; gap: 1rem; }
.rate-name p { margin: 0; font-weight: 500; }
.rate-name img { border-radius: 50%; }
.rate-symbol { color: #889096; font-size: 13px; font-weight: 400; }
.rate-flag { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; padding: 0 8px; height: 28px; border-radius: 6px; background: var(--color-primary, #3858f6); color: #fff; font-size: 12px; font-weight: 700; }
.rate-change { margin: 0; font-weight: 600; white-space: nowrap; }
.rate-table th.num, .rate-table td.num { text-align: right; }
.rate-table a { color: inherit; }
.rate-table a:hover { color: var(--color-primary); }
.rate-table .muted { color: #889096; }
.spark { display: block; }
.spark.up path { stroke: #17c964; }
.spark.down path { stroke: #f31260; }
.market-title { font-size: 24px; margin: 0 0 18px; }
.market-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.market-stat { padding: 18px 20px; border-radius: 14px; background: var(--color-white, #fff); box-shadow: 0 12px 20px 6px rgba(104, 112, 118, .08); display: flex; flex-direction: column; gap: 4px; }
.market-stat span { color: #687076; font-size: 14px; }
.market-stat b { font-size: 22px; color: var(--color-heading, #000); }
.muted { color: #889096; }
body.active-dark-mode .market-stat { background: #2a2a2a; box-shadow: none; }
body.active-dark-mode .market-stat b { color: #fff; }
.rate-change.up { color: #17c964; }
.rate-change.down { color: #f31260; }
body.active-dark-mode .rate-table-container { background: #2a2a2a; box-shadow: none; }
body.active-dark-mode .rate-table thead th { background: #343434; color: #cfcfcf; }
body.active-dark-mode .rate-table tbody td { color: #fff; border-color: #343434; }
body.active-dark-mode .rate-table tbody tr:hover td { background: #303030; }

/* --- contact form notices --- */
.form-notice { padding: 14px 18px; border-radius: 10px; font-size: 16px; }
.form-notice.success { background: #e8f9ef; color: #0a7a3b; }
.form-notice.error { background: #fdecef; color: #b4123f; }

.tradingview-widget-container { width: 100%; }

/* --- X (Twitter) logo --- */
.x-icon { font-style: normal; }
.x-icon svg { width: 1em; height: 1em; fill: currentColor; vertical-align: -0.125em; }

/* --- mega menu: all topics --- */
.mainmenu-nav ul.mainmenu > li.megamenu-wrapper .megamenu-sub-menu .megamenu-item.mega-topics .axil-vertical-nav { min-width: 470px; max-width: 470px; padding: 26px 24px; }
.mega-topics__head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #889096; margin: 0 6px 12px; }
.mega-topics__list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }
.mainmenu-nav ul.mainmenu > li.megamenu-wrapper .megamenu-sub-menu .megamenu-item .axil-vertical-nav .mega-topics__list .vertical-nav-item { margin: 0; }
.mainmenu-nav ul.mainmenu > li.megamenu-wrapper .megamenu-sub-menu .megamenu-item .axil-vertical-nav .mega-topics__list .vertical-nav-item a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; font-size: 15px; line-height: 1.25; color: var(--color-heading, #1f2937); }
.mega-topics__list .vertical-nav-item.active a, .mega-topics__list .vertical-nav-item a:hover { background: #eef2ff; }
.mega-topic__img { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: #f1f3f5; }
.mega-topic__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mega-topic__name { flex: 1 1 auto; min-width: 0; }
.mainmenu-nav ul.mainmenu > li.megamenu-wrapper .megamenu-sub-menu .megamenu-item.mega-topics .axil-vertical-nav-content { width: auto; flex: 1 1 auto; padding: 26px 30px; }
.mega-topics__pane-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.mega-topics__pane-head h4 { margin: 0; font-size: 22px; }
.mega-topics__pane-head a { font-size: 15px; font-weight: 500; color: var(--color-primary); }
.mega-topics .axil-vertical-single .post-content .title { font-size: 16px; line-height: 1.4; margin-bottom: 6px; }
body.active-dark-mode .mega-topics__list .vertical-nav-item.active a, body.active-dark-mode .mega-topics__list .vertical-nav-item a:hover { background: #333; }
body.active-dark-mode .mainmenu-nav ul.mainmenu > li.megamenu-wrapper .megamenu-sub-menu .megamenu-item .axil-vertical-nav .mega-topics__list .vertical-nav-item a { color: #fff; }

/* --- article audio player --- */
.post-audio { display: flex; align-items: center; gap: 18px; margin: 0 0 34px; padding: 16px 20px; border-radius: 16px; background: linear-gradient(120deg, #eef2ff, #f5f8ff); border: 1px solid #e1e7ff; }
.post-audio button { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.post-audio__play { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50% !important; background: var(--color-primary, #3858f6) !important; color: #fff !important; font-size: 18px !important; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px -6px rgba(56, 88, 246, .6); transition: transform .2s ease; }
.post-audio__play:hover { transform: scale(1.06); }
.post-audio__play .fa-play { margin-left: 3px; }
.post-audio.is-playing .post-audio__play { animation: audio-pulse 1.6s ease-out infinite; }
@keyframes audio-pulse { 0% { box-shadow: 0 0 0 0 rgba(56, 88, 246, .45); } 100% { box-shadow: 0 0 0 14px rgba(56, 88, 246, 0); } }
.post-audio__main { flex: 1 1 auto; min-width: 0; }
.post-audio__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 15px; }
.post-audio__label { font-weight: 600; color: var(--color-heading, #000); }
.post-audio__label i { color: var(--color-primary); margin-right: 4px; }
.post-audio__time { color: #687076; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 14px; }
.post-audio__bar { position: relative; height: 6px; border-radius: 6px; background: #d5dcf5; cursor: pointer; touch-action: none; }
.post-audio__bar::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; bottom: -8px; }
.post-audio__bar:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; }
.post-audio__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 6px; background: var(--color-primary, #3858f6); }
.post-audio__knob { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; border: 3px solid var(--color-primary, #3858f6); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.post-audio__tools { display: flex; align-items: center; gap: 6px; }
.post-audio__skip, .post-audio__speed { height: 36px; min-width: 36px; padding: 0 8px !important; border-radius: 10px !important; color: #4b5563 !important; font-size: 15px !important; transition: background .2s ease; }
.post-audio__skip:hover, .post-audio__speed:hover { background: rgba(56, 88, 246, .1) !important; color: var(--color-primary) !important; }
.post-audio__speed { font-weight: 700 !important; font-size: 13px !important; min-width: 48px; background: #fff !important; border: 1px solid #dfe4f5 !important; }
body.active-dark-mode .post-audio { background: linear-gradient(120deg, #2c2f3a, #262626); border-color: #3a3d48; }
body.active-dark-mode .post-audio__label { color: #fff; }
body.active-dark-mode .post-audio__time, body.active-dark-mode .post-audio__skip { color: #c4c4c4 !important; }
body.active-dark-mode .post-audio__bar { background: #474b5a; }
body.active-dark-mode .post-audio__speed { background: #333 !important; border-color: #444 !important; color: #fff !important; }
@media (max-width: 575px) {
  .post-audio { flex-wrap: wrap; gap: 12px 14px; padding: 14px; }
  .post-audio__main { flex-basis: calc(100% - 70px); }
  .post-audio__tools { width: 100%; justify-content: flex-end; }
  .post-audio__label { font-size: 14px; }
}

/* --- article sidebar: sticky related posts --- */
@media (min-width: 992px) { .sidebar-sticky { position: sticky; top: 110px; } }

/* --- contact page: form only --- */
.contact-card { padding: 44px 48px; border-radius: 20px; background: var(--color-white, #fff); box-shadow: 0 20px 50px -24px rgba(16, 24, 40, .25); border: 1px solid #eef0f3; }
@media (max-width: 767px) { .contact-card { padding: 26px 18px; } }
body.active-dark-mode .contact-card { background: #2a2a2a; border-color: #333; box-shadow: none; }

/* --- main menu: keep all items on one line on 1200-1599px screens --- */
.mainmenu-nav ul.mainmenu { flex-wrap: nowrap; justify-content: center; }
.mainmenu-nav ul.mainmenu > li > a { white-space: nowrap; }
@media (max-width: 1599px) { .mainmenu-nav ul.mainmenu > li { margin-left: 8px; margin-right: 8px; } }
.post-audio__tools button { width: auto; flex: 0 0 auto; }
.post-audio__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 575px) {
  .post-audio__main { flex-basis: calc(100% - 72px); }
  .post-audio__label i { display: none; }
  .post-audio__time { font-size: 13px; }
  .post-audio__tools { gap: 10px; }
}

/* --- sticky header that slides away on scroll down --- */
/* the theme sets body{overflow:hidden}, which turns body into the scroll box and breaks sticky; html still clips sideways overflow */
body { overflow: visible; }
.axil-header.header-sticky { position: sticky; top: 0; z-index: 999; transition: transform .3s ease; }
.axil-header.header-sticky.is-hidden { transform: translateY(-100%); }

/* --- list headings: same column as the cards --- */
.list-area { padding: 60px 0 80px; }
.list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid #eef0f3; }
.list-head__title { position: relative; margin: 0; padding-left: 20px; font-size: 40px; line-height: 1.2; }
.list-head__title::before { content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 6px; border-radius: 6px; background: var(--color-primary, #3858f6); }
.list-head__sub { margin: 8px 0 0 20px; font-size: 16px; color: #889096; }
.list-head__link { font-size: 16px; font-weight: 500; color: var(--color-primary, #3858f6); white-space: nowrap; }
.list-head__link:hover { text-decoration: underline; }
.list-head + .post-wide { margin-top: 30px; }
@media (max-width: 767px) { .list-area { padding: 36px 0 50px; } .list-head__title { font-size: 30px; padding-left: 16px; } .list-head__sub { margin-left: 16px; } }
body.active-dark-mode .list-head { border-color: #333; }

/* --- privacy policy --- */
.policy { max-width: 860px; margin: 0 auto; }
.policy__head { padding-bottom: 26px; margin-bottom: 30px; border-bottom: 1px solid #eef0f3; }
.policy__head h1 { position: relative; padding-left: 20px; margin: 0 0 10px; font-size: 40px; }
.policy__head h1::before { content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 6px; border-radius: 6px; background: var(--color-primary, #3858f6); }
.policy__head p { margin: 0 0 0 20px; color: #889096; font-size: 16px; }
.policy__lead { font-size: 18px; line-height: 1.75; margin-bottom: 30px; }
.policy__section { display: grid; grid-template-columns: 44px 1fr; gap: 0 16px; padding: 24px 0; border-bottom: 1px solid #f1f3f5; }
.policy__num { width: 44px; height: 44px; border-radius: 12px; background: #eef2ff; color: var(--color-primary, #3858f6); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.policy__section h2 { font-size: 22px; margin: 8px 0 12px; }
.policy__section p, .policy__section li { font-size: 17px; line-height: 1.75; color: #4b5563; }
.policy__section p:last-child { margin-bottom: 0; }
.policy__section ul { margin: 0 0 12px; padding-left: 20px; }
.policy__section li { margin: 4px 0; }
.policy__contact { margin-top: 36px; padding: 30px 32px; border-radius: 18px; background: linear-gradient(120deg, #eef2ff, #f5f8ff); border: 1px solid #e1e7ff; }
.policy__contact h2 { font-size: 22px; margin: 0 0 18px; }
.policy__contact dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; font-size: 17px; }
.policy__contact dt { color: #687076; font-weight: 500; }
.policy__contact dd { margin: 0; color: var(--color-heading, #000); font-weight: 500; }
.policy__contact a { color: var(--color-primary, #3858f6); }
@media (max-width: 575px) {
  .policy__head h1 { font-size: 30px; }
  .policy__section { grid-template-columns: 1fr; }
  .policy__num { margin-bottom: 4px; }
  .policy__contact { padding: 22px 18px; }
  .policy__contact dl { grid-template-columns: 1fr; gap: 2px; }
  .policy__contact dd { margin-bottom: 10px; }
}
body.active-dark-mode .policy__head, body.active-dark-mode .policy__section { border-color: #333; }
body.active-dark-mode .policy__section p, body.active-dark-mode .policy__section li { color: #c4c4c4; }
body.active-dark-mode .policy__num { background: #2c2f3a; }
body.active-dark-mode .policy__contact { background: #2a2a2a; border-color: #3a3d48; }
body.active-dark-mode .policy__contact dd { color: #fff; }

/* page h1 for search engines and screen readers on the home page */
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

/* light mode: tinted cards so they stand out from the white page, like the dark theme */
body.active-light-mode .post-wide { background: #f3f5f9; border-color: #e4e8ef; }
body.active-light-mode .post-wide:hover { background: #eef1f6; }
body.active-light-mode .post-wide__thumb { background: #e4e8ef; }
