/* app.css for Astana Jastary
   Put this file at: /css/app.css
*/

:root {
  --primary: #1b75bb;
  --primary-dark: #0f4f87;
  --accent: #f6b21a;
  --accent-dark: #e09900;
  --text: #263238;
  --muted: #6c7a86;
  --light: #f5f8fb;
  --white: #ffffff;
  --border: #e3eaf1;
  --shadow: 0 14px 35px rgba(19, 49, 82, 0.12);
  --radius: 18px;
  --radius-sm: 10px;
  --container: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: #ffffff;
}

img,
iframe {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Bootstrap-like grid used by the HTML */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

[class*="col-"] {
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

.col-4 { width: 33.333333%; }
.col-8 { width: 66.666667%; }
.col-12 { width: 100%; }

.align-items-center { align-items: center; }
.align-self-end { align-self: flex-end; }

@media (min-width: 576px) {
  .col-sm-3 { width: 25%; }
  .col-sm-6 { width: 50%; }
  .col-sm-8 { width: 66.666667%; }
  .col-sm-9 { width: 75%; }
}

@media (min-width: 768px) {
  .col-md-2 { width: 16.666667%; }
  .col-md-3 { width: 25%; }
  .col-md-4 { width: 33.333333%; }
}

@media (min-width: 992px) {
  .col-lg-3 { width: 25%; }
  .col-lg-4 { width: 33.333333%; }
  .col-lg-8 { width: 66.666667%; }
  .col-lg-9 { width: 75%; }
}

/* Header */
.header {
  background:
    radial-gradient(circle at 15% 0%, rgba(246, 178, 26, 0.16), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f4f9ff 100%);
  border-bottom: 1px solid var(--border);
}

.header .container:first-child {
  padding-top: 22px;
  padding-bottom: 22px;
}

.header-sec {
  margin-bottom: 12px;
}

.header-logo a {
  display: block;
  width: 210px;
  max-width: 100%;
  height: 72px;
  background:
    linear-gradient(135deg, var(--primary), #25aae1),
    url("/images/logo.png") center / contain no-repeat;
  border-radius: 16px;
  position: relative;
  box-shadow: var(--shadow);
}

.header-logo a::after {
  content: "Astana\A Jastary";
  white-space: pre;
  position: absolute;
  left: 20px;
  top: 14px;
  color: #fff;
  font-size: 23px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.header-lang {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.header-lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.header-lang a.active,
.header-lang a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.switch-to-blind {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(20, 60, 100, 0.07);
}

.switch-to-blind::before {
  content: "◐";
  font-size: 16px;
}

.soc-icons {
  margin-top: 10px;
}

.phonecall {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  text-align: right;
}

.phonecall-title {
  color: var(--primary-dark);
  text-transform: uppercase;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.phonecall-info {
  min-width: 116px;
  padding: 12px 16px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ffcf59);
  box-shadow: 0 12px 24px rgba(246, 178, 26, 0.28);
  text-align: center;
}

.phonecall-label::before {
  content: "109";
  display: block;
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
}

.phonecall-desc {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.2;
  color: rgba(255,255,255,0.95);
}

/* Navigation */
.navbar-wrap {
  background: var(--primary);
  box-shadow: 0 12px 26px rgba(12, 83, 143, 0.18);
}

.navbar-stick {
  position: relative;
  z-index: 20;
}

.navbar-block {
  min-height: 58px;
}

.navbar-btn {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.navbar-btn span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 4px;
  background: #fff;
}

.navbar-list {
  display: flex;
  align-items: stretch;
}

.navbar-item {
  position: relative;
}

.navbar-item > a {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.navbar-item:hover > a {
  background: var(--primary-dark);
  color: #fff;
}

.navbar-item ul {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 240px;
  padding: 10px 0;
  background: #fff;
  border-radius: 0 0 14px 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 50;
}

.navbar-item:hover ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar-item ul a {
  display: block;
  padding: 10px 18px;
  color: var(--text);
  font-size: 15px;
}

.navbar-item ul a:hover {
  background: #f3f8fd;
  color: var(--primary);
}

/* Hero */
.main-slider-wrap {
  margin: 32px 0;
}

.main-slider,
.main-slider-item {
  min-height: 390px;
}

.main-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(10, 74, 128, 0.92), rgba(27, 117, 187, 0.65)),
    url("/images/main-slider.jpg") center / cover no-repeat,
    linear-gradient(135deg, var(--primary), #44b4e8);
  box-shadow: var(--shadow);
}

.main-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.22), transparent 24%);
}

.main-slider-caption {
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 22px;
  color: #fff;
  z-index: 2;
}

.main-slider-date {
  width: 92px;
  min-width: 92px;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  text-align: center;
  box-shadow: 0 12px 26px rgba(0,0,0,0.18);
}

.main-slider-day {
  padding: 11px 0 4px;
  color: var(--primary);
  font-size: 42px;
  line-height: 1;
  font-weight: 700;
}

.main-slider-month {
  padding: 7px 0 9px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.main-slider-text p {
  margin: 0;
}

.main-slider-text a {
  color: #fff !important;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 0 3px 12px rgba(0,0,0,0.25);
}

.main-slider-text a:hover {
  color: #ffdf79 !important;
}

/* Main banners */
.main-banners {
  display: grid;
  gap: 14px;
  height: 100%;
}

.main-banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 88px;
  padding: 18px;
  border-radius: var(--radius-sm);
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #38aee2);
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(27,117,187,0.18);
}

.main-banner:nth-child(2) { background: linear-gradient(135deg, #14a085, #36c6a8); }
.main-banner:nth-child(3) { background: linear-gradient(135deg, #f6b21a, #ffcd58); }
.main-banner:nth-child(4) { background: linear-gradient(135deg, #6c5ce7, #8e7dff); }

.main-banner::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
}

.main-banner:hover {
  transform: translateY(-3px);
  color: #fff;
  box-shadow: 0 16px 30px rgba(27,117,187,0.28);
}

.main-banner-desc {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
}

.main-banner-icon,
.info-item-icon,
.media-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.main-banner-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  font-size: 22px;
}

.main-banner-icon--projects::before { content: "★"; }
.main-banner-icon--info::before { content: "i"; font-weight: 700; }
.main-banner-icon--volon::before { content: "♥"; }
.main-banner-icon--acts::before { content: "§"; font-weight: 700; }

.main-banner-title {
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
}

/* Content widgets */
.widgets-wrap {
  padding-bottom: 28px;
}

.blog,
.soc-widgets {
  height: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(19, 49, 82, 0.08);
  overflow: hidden;
}

.tab-links {
  display: flex;
  background: #f2f7fc;
  border-bottom: 1px solid var(--border);
}

.tab-link {
  padding: 16px 22px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.tab-link.active {
  color: var(--primary);
  background: #fff;
}

.blog-items {
  padding: 8px 24px 18px;
}

.blog-item {
  display: flex;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.blog-item:last-child {
  border-bottom: none;
}

.blog-item-meta {
  min-width: 96px;
}

.blog-item-date {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf6ff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.blog-item-text a {
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
}

.blog-item-text a:hover {
  color: var(--primary);
}

.soc-widgets-tab-link--yt.active {
  color: #e62117;
}

.soc-widgets-tab-link--fb.active {
  color: #1877f2;
}

.soc-widgets-tabs {
  padding: 18px;
}

.soc-widgets-tab {
  display: none;
}

.soc-widgets-tab.active {
  display: block;
}

.soc-widgets iframe {
  display: block;
  min-height: 240px;
  border-radius: 14px;
  background: #eef3f8;
}

/* Info section */
.info-wrap {
  margin-top: 34px;
  padding: 48px 0;
  background: linear-gradient(180deg, #f6faff 0%, #ffffff 100%);
}

.info-item {
  position: relative;
  min-height: 180px;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 26px rgba(19, 49, 82, 0.08);
}

.info-item-title {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.info-item-title h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
}

.info-item-img {
  height: 118px;
  background:
    linear-gradient(135deg, rgba(27,117,187,0.74), rgba(246,178,26,0.58)),
    url("/images/info-bg.jpg") center / cover no-repeat,
    #dcecf8;
}

.info-item-desc {
  padding: 15px 16px;
}

.info-item-desc a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}

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

.info-item-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-size: 16px;
  font-weight: 700;
}

.info-item-icon--1::before { content: "1"; }
.info-item-icon--2::before { content: "2"; }
.info-item-icon--3::before { content: "3"; }
.info-item-icon--4::before { content: "4"; }
.info-item-icon--5::before { content: "5"; }
.info-item-icon--6::before { content: "6"; }
.info-item-icon--7::before { content: "7"; }

/* Media */
.media-wrap {
  padding: 48px 0 56px;
}

.media-title {
  margin: 0 0 24px;
  color: var(--primary-dark);
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
}

.media-item {
  overflow: hidden;
  margin-bottom: 30px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 26px rgba(19, 49, 82, 0.08);
}

.media-item-img {
  height: 180px;
  background:
    linear-gradient(135deg, rgba(15,79,135,0.66), rgba(27,117,187,0.3)),
    url("/images/media-bg.jpg") center / cover no-repeat,
    #dbe9f5;
}

.media-item:nth-child(1) .media-item-img,
.col-lg-4:nth-child(1) .media-item-img {
  background-color: #dfeef8;
}

.media-item-text {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  font-size: 18px;
  font-weight: 700;
}

.media-item-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
}

.media-item-icon--1::before { content: "▦"; }
.media-item-icon--2::before { content: "▶"; }
.media-item-icon--3::before { content: "ℹ"; font-weight: 700; }

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

/* Footer */
.footer {
  color: #d8e9f7;
  background: #0e3559;
}

.footer-sections {
  padding: 38px 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(246,178,26,0.2), transparent 25%),
    #103b63;
}

.footer address,
.footer p {
  margin: 0 0 10px;
  font-style: normal;
}

.footer-section,
.footer-address {
  font-size: 15px;
}

.footer-copy {
  padding: 18px 0;
  color: #b9cde0;
  background: #0a2a47;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 991px) {
  .header-logo a {
    width: 190px;
  }

  .phonecall {
    justify-content: flex-start;
    text-align: left;
    margin-top: 12px;
  }

  .navbar-btn {
    display: flex;
  }

  .navbar {
    width: calc(100% - 46px);
  }

  .navbar-list {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
  }

  .navbar-item > a {
    padding: 0 14px;
    font-size: 14px;
  }

  .main-banners {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 20px;
  }

  .main-slider,
  .main-slider-item {
    min-height: 330px;
  }

  .main-slider-text a {
    font-size: 26px;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  .header .container:first-child {
    padding-top: 16px;
    padding-bottom: 12px;
  }

  .header-logo a {
    height: 62px;
  }

  .header-logo a::after {
    top: 12px;
    left: 16px;
    font-size: 20px;
  }

  .switch-to-blind {
    margin-top: 8px;
  }

  .navbar-block {
    min-height: 52px;
  }

  .navbar-list {
    padding-bottom: 2px;
  }

  .navbar-item > a {
    min-height: 52px;
    padding: 0 12px;
    font-size: 13px;
  }

  .navbar-item ul {
    display: none;
  }

  .main-slider-wrap {
    margin: 22px 0;
  }

  .main-slider,
  .main-slider-item {
    min-height: 280px;
  }

  .main-slider-caption {
    left: 18px;
    right: 18px;
    bottom: 20px;
    align-items: flex-start;
    gap: 14px;
  }

  .main-slider-date {
    width: 72px;
    min-width: 72px;
  }

  .main-slider-day {
    font-size: 32px;
  }

  .main-slider-text a {
    font-size: 21px;
  }

  .main-banners {
    grid-template-columns: 1fr;
  }

  .blog-item {
    display: block;
  }

  .blog-item-meta {
    margin-bottom: 8px;
  }

  .info-wrap,
  .media-wrap {
    padding: 34px 0;
  }

  .media-title {
    font-size: 28px;
  }
}

@media (max-width: 575px) {
  .col-4,
  .col-8 {
    width: 100%;
  }

  .header-lang {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .phonecall {
    display: block;
  }

  .phonecall-info {
    margin-top: 10px;
    display: inline-block;
  }

  .tab-link {
    padding: 14px 16px;
    font-size: 13px;
  }
}
