@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&family=Sofia+Sans:ital,wght@0,1..1000;1,1..1000&display=swap');

/* Базова типографіка та фон */
html {
  font-size: 100%;
  height: 100%;
  margin: 0;
}
body {
  font-size: 1rem;
  background: rgba(0, 133, 186, 0.12);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  height: 100%;
  margin: 0;
}
html, body {
  overflow-x: hidden;
}

h1, p {
  font-size: 1rem;
}
.footerlink {
  color: grey;
}
.logoheader {
  display: block;
  position: absolute; 
  top: 15px; left: calc(50% - 95px);
  width: 40px; height: 40px;
}
.logoheader_2 {
  display: block;
  position: absolute; 
  top: 10px; right: 10px;
  width: 40px; height: 40px;
}
.footerlink:hover {
  text-decoration: underline;
}
.logo {
  display: block;
  width: 36px;
  height: 36px;
  margin: 30px auto;
  background: url('../images/icon/logo.png') center center / contain no-repeat;
}

/* Header */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 4;
}

.header_center {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 800px;
  height: 64px;
  margin: 0 auto;
  background: white;
  border: 0.5px solid #E5E5E5;
  border-top: none;
  border-radius: 0 0 10px 10px;
  position: relative;
}
.icon_left {
  position: absolute;
  top: 10px;
  left: 0;                  /* обидва краї + фіксована ширина */
  right: 0;
  width: 20px;
  height: 20px;
  margin: 0 auto;           /* центр */
  background: url('../images/icon/icon_left.svg') center / contain no-repeat;
}
.button_block {
  display: block;
  position: absolute;  
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 40px;
  background: rgba(228, 240, 255, 0.4);
}
.button_block:hover {
  cursor: pointer;
  background: #F8F7F7;
}
.hbbleft { top: 10px; left: 12px; }
.hbbright { top: 10px; right: 12px; }
.page_title {
  display: block;
  position: absolute; 
  top: 11px; left: 62px;
  width: calc(100% - 124px); 
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  line-height: 20px; /* 125% */
  background: linear-gradient(90deg, #1F2C47 85.49%, rgba(31, 44, 71, 0.40) 88.86%, rgba(31, 44, 71, 0.05) 93.16%, rgba(31, 44, 71, 0.01) 95.61%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page_title_2 {
  display: block;
  position: absolute; 
  top: 11px; left: 62px;
  width: calc(100% - 124px); 
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  line-height: 20px; /* 125% */
  color: #1F2C47;
}
.page_signaturetitle {
  display: block;
  position: absolute; 
  top: 31px; left: 62px;
  width: calc(100% - 124px);  
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 480;
  line-height: 20px; /* 142.857% */
  background: linear-gradient(90deg, #8A898E 85.49%, rgba(138, 137, 142, 0.40) 88.86%, rgba(138, 137, 142, 0.05) 93.16%, rgba(138, 137, 142, 0.01) 95.61%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page_signaturetitle_2 {
  display: block;
  position: absolute; 
  top: 31px; left: 62px;
  width: calc(100% - 124px);  
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 480;
  line-height: 20px; /* 142.857% */
  color: #8A898E; 
}
.article_item {
  display: block;
  width: calc(100% - 20px);
  background: #E9F5FD;
  border-radius: 8px;
  padding: 10px 10px;      /* додаємо внутрішній відступ */
  margin-top: 10px; 
}
.article_item {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

.txtai {
  font-size: 1rem;
  line-height: 1.45;
  display: block; 
  font-weight: 500;
  color: #3B77E1;
}

.article_item:hover { background: #d0e6f4; cursor: pointer; }
/* Header buttons */
.button_left,
.button_right {
  position: absolute;
  top: 12px;
  width: 40%;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 5px;
  color: #2B3942;
}

.button_left {
  left: 12px;
}

.button_right {
  right: 12px;
}

.button_left:hover,
.button_right:hover {
  background: rgba(198, 218, 254, 0.5);
  cursor: pointer;
}

/* Container */
#container {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  max-width: 800px;
  background: white;
  border-radius: 10px;
  margin-top: 76px;
  z-index: 3;
}

#content {
  width: 100%;
  position: relative;
  padding-bottom: 12px;
  border: 0.5px solid #E5E5E5;
  border-radius: 10px;
  box-sizing: border-box;
}

/* Blocks */
.block {
  width: 100%;
  min-height: 16px;
  padding: 0 12px 12px;
  border-bottom: 0.3px solid #E5E5E5;
  box-sizing: border-box;
  margin-bottom: 0;
}

.block_title {
  line-height: 34px;
  font-weight: 500;
  margin: 12px 0 0;
  color: #2B3942;
}

.admin_logo {
  float: left;
  width: 34px;
  height: 34px;
  margin: 12px 12px 0 0;
  background: url('../images/admin_logo.png') center center / contain no-repeat;
  border-radius: 34px;
}

.txt {
  clear: both;
  margin-top: 12px;
  margin-left: 46px;
  color: #2B3942;
  white-space: pre-line;
  line-height: 1.5rem;
}

/* Footer */
.block_footer {
  position: relative;
  width: 100%;
  height: 40px;
  margin: 12px 0 2px;
}

.like {
  position: absolute;
  top: 0;
  left: 36px;
  width: 50px;
  height: 40px;
}

.icon_like {
  position: absolute;
  left: 0;
  top: 10px;
  width: 20px;
  height: 20px;
  margin-left: 12px;
  background: url('../images/icon/icon_like.svg') center center / contain no-repeat;
}

.like_count {
  position: absolute;
  top: 0;
  left: 0;
  line-height: 40px;
  text-indent: 40px;
  font-size: 0.8rem;
  color: #2B3942;
}

.button_send,
.button_copy {
  position: absolute;
  top: 5px;
  right: 0;
  width: 150px;
  height: 36px;
  border: 0.5px solid #E5E5E5;
  border-radius: 5px;
}

.button_send:hover,
.button_copy:hover {
  background: rgba(198, 218, 254, 0.5);
  cursor: pointer;
}

.icon_send,
.icon_copy,
.icon_load {
  position: absolute;
  top: 8px;
  width: 20px;
  height: 20px;
  margin-left: 12px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

.icon_send {
  left: 10px;
  background-image: url('../images/icon/icon_send.svg');
}

.icon_copy {
  left: 5px;
  background-image: url('../images/icon/icon_copy.svg');
}

.icon_load {
  left: 12px;
  background-image: url('../images/icon/icon_load.svg');
}

.share_text,
.copy_text {
  display: block;
  position: absolute;
  top: 0;
  line-height: 36px;
  text-indent: 40px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #2B3942;
}

.share_text {
  left: 10px;
}

.copy_text {
  left: 5px;
}

/* Titles */
.title {
  margin-top: 12px;
  padding: 12px;
  background: rgba(198, 218, 254, 0.5);
  border-radius: 5px;
  text-align: center;
  font-weight: 600;
  line-height: 1.5rem;
}

/* Images */
.artitles_preview {
  display: block;
  width: 100%;
  margin-top: 12px;
  border-radius: 5px;
}

.img {
  margin: 12px 0 0 46px;
}

.img img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 5px;
  transition: all 0.2s ease-in-out;
}

.img img.is-vertical {
  width: 50vh;
  height: auto;
}

.img img.is-horizontal {
  width: 100%;
  height: auto;
}

/* Carousels */
.carousel {
  display: flex;
  overflow-x: auto;
  width: calc(100% - 24px);
  padding: 0 12px;
  box-sizing: content-box;
  max-height: 100%;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  border-bottom: 0.3px solid #E5E5E5;
  padding-bottom: 12px;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel.grabbing {
  cursor: grabbing;
}

.carousel a,
.carousel img {
  pointer-events: auto;
}
.carousel {
  width: 100%;
  padding: 0 12px 12px;
  box-sizing: border-box;
  overflow-x: auto;
}


/* Round blocks */
.roundblock {
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: calc(80% - 48px);
  margin: 12px 24px 0 0;
  height: 100%;
  border: 0.3px solid rgba(0, 102, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 102, 255, 0.2);
}

.roundblock:last-child {
  margin-right: 0;
}

.roundblock img {
  display: block;
  width: calc(100% - 24px);
  height: 100%;
  margin: 12px;
  margin-bottom: 0;
  object-fit: cover;
}

/* Titles in carousel */
.carousel_title {
  display: block;
  margin-top: 24px;
  padding: 12px;
  border-radius: 5px;
  font-weight: 500;
  line-height: 1.5rem;
  text-align: center;
}

.round_title {
  display: block;
  color: #35BDE4;
  line-height: 1.5rem;
  text-align: center;
  padding: 12px;
  font-weight: 600;
}

.round_title a {
  color: #35BDE4;
}

/* Special styles */
.ctop {
  border: 0.3px solid rgba(255, 216, 177, 0.4) !important;
  box-shadow: 0 0 15px rgba(255, 216, 177, 0.5) !important;
}

.coltop {
  color: #e88e33;
}

.logotype {
  display: block;
  margin: 0 auto;
  width: 200px;
  height: auto;
  z-index: 9;
}

/* Greet blocks */
.greet-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 0 12px;
  box-sizing: border-box;
  margin-top: 12px;
}

.greetblock {
  position: relative;
  flex: 0 0 calc((100% - 36px) / 4);
  aspect-ratio: 1 / 1.1;
  border-radius: 5px;
  overflow: hidden;
}

.greet_image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 5px;
}

.gt_title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  padding-top: 35px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
  color: white;
  text-align: center;
  font-weight: bold;
  font-family: "Sofia Sans", sans-serif;
  font-size: 1.2em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 1;
}

/* Mobile/Desktop-specific */
.mobile-only {
  display: none;
}

.desktop-only {
  display: none;
}

@media (max-width: 767px) {
  .mobile-only {
    display: inline-flex;
  }

  .roundblock {
    width: calc(100% - 48px);
    margin-right: 20px;
  }

  .greetblock {
    flex: 0 0 calc((100% - 12px) / 2);
  }
}

@media (min-width: 768px) {
  .desktop-only {
    display: inline-flex;
  }
}
