.ag-app-container {
  position: relative;
  overflow: hidden;
}

/* 
===============================================
MARK: WIDGET
===============================================
*/
#ag-widget {
  height: 106px;
  max-height: 106px;
  position: fixed;
  right: 28px;
  top: 0;
  z-index: 99;
  opacity: 0;
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.3));
  transition: opacity 0.4s 0.4s;
  user-select: none;
}

#ag-widget * {
  user-select: none;
  object-fit: contain;
  width: auto;
}

/* 
===============================================
MARK: HEADER
===============================================
*/
.ag-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.65rem;
}

.ag-header .ag-logo-container {
  width: 44px;
}

.ag-header .ag-btn--menu {
  --_size: 28px;
  width: var(--_size);
  height: var(--_size);

  display: flex;
  align-items: center;
  justify-content: center;
}

.ag-header .ag-menu-icon {
  --_offset: 8px;
  --_color-shadow: var(--color-black);

  position: relative;
  width: 100%;
  height: 3px;
  background-color: var(--color-black);
  border-radius: 50px;

  box-shadow: 0 var(--_offset) 0px 0 var(--_color-shadow),
    0 calc(0px - var(--_offset)) 0px 0 var(--_color-shadow);

  transition: box-shadow 0.4s 0.4s, transform 0.4s;
}

.ag-body:has(.ag-sidebar[data-state="show"]) .ag-header .ag-menu-icon {
  --_color-shadow: transparent;
  transform: rotate(45deg);
  transition: box-shadow 0.4s, transform 0.4s 0.4s;
}

.ag-header .ag-menu-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: inherit;
  border-radius: inherit;
  transition: transform 0.4s;
}

.ag-body:has(.ag-sidebar[data-state="show"]) .ag-header .ag-menu-icon::before {
  transform: rotate(90deg);
  transition: transform 0.4s 0.4s;
}

.ag-header .ag-lang-container {
  display: none;
}

@media only screen and (min-width: 961px) {
  .ag-header {
    padding: 2.7rem 7rem;
  }

  .ag-header .ag-logo-container {
    width: 80px;
  }

  .ag-header .ag-btn--menu {
    display: none;
  }

  .ag-header .ag-lang-container {
    display: block;
  }
}

/* 
===============================================
MARK: SIDEBAR
===============================================
*/
.ag-sidebar {
  position: absolute;
  top: var(--header-height);
  left: 0;
  z-index: 999;

  width: 100%;
  height: calc(100vh - var(--header-height));
  display: grid;
  grid-template-rows: 1fr 88px;

  transition: all 0.4s;
}

.ag-sidebar[data-state="hide"] {
  transform: translate(100%, 0);
}

.ag-sidebar[data-state="show"] {
  transform: translate(0, 0);
}

/* MARK: banner */
.ag-sidebar-banner-container {
  display: none;
}

/* MARK: menu */
.ag-sidebar-menu {
  position: relative;
  padding: 1.2rem 1.65rem;
  background-color: white;
}

.ag-sidebar-menu::before {
  --_offset-x: 1.6rem;

  content: "";
  position: absolute;
  top: 0;
  left: var(--_offset-x);
  right: var(--_offset-x);
  width: auto;
  height: 1px;
  background-color: var(--color-separator);
}

.ag-nav-item {
  position: relative;
  width: auto;
  font-weight: var(--font-bold);
  font-size: var(--font-lg);
  margin: 20px 0;
}

.ag-nav-item a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-primary);
  transition: width 0.3s;
}

.ag-nav-item[data-state="active"] {
  color: var(--color-primary);
  font-weight: var(--font-bold);
}

.ag-nav-item[data-state="active"] a::after {
  width: 100%;
}

.ag-nav-item a {
  display: inline-block;
  position: relative;
  padding: 5px 0;
}

/* MARK: footer */
.ag-sidebar-footer {
  padding: 20px;
  background-color: var(--color-orange-light);

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ag-sidebar-footer .ag-lang-container {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: var(--font-bold);
  flex-direction: row;
}

.ag-sidebar-footer .ag-lang-container .ag-separator {
  width: 1px;
  height: 10px;
  background-color: var(--color-black);
}

.ag-sidebar-footer .ag-lang-container .ag-lang-icon-container {
  --_size: 24px;
  width: var(--_size);
  height: var(--_size);
  transform: translate(0, -2px);
}

.ag-sidebar-footer .ag-lang-list {
  display: flex;
  align-items: center;
  position: relative;
  top: auto;
  left: auto;
  bottom: auto;
  transform: none;
  border: 0;
  background: none;
  gap: 5px;
}

.ag-sidebar-footer .ag-lang-list:before {
  display: none;
}

.ag-sidebar-footer .ag-lang-item .active {
  color: #d31145;
}

.ag-sidebar-footer .ag-btn--logout {
  width: max-content;
  margin-right: 0;
}

@media only screen and (min-width: 961px) {
  .ag-sidebar {
    position: unset;
    width: 400px;
    grid-template-rows: auto 1fr 88px;
    grid-template-columns: 400px;
  }

  .ag-sidebar[data-state="hide"] {
    transform: translate(0, 0);
  }

  .ag-sidebar-banner-container {
    display: block;
  }

  .ag-sidebar-menu {
    padding-inline: 7rem;
  }

  .ag-sidebar-menu::before {
    display: none;
  }

  .ag-main-content-container {
    display: grid;
    grid-template-columns: 400px 1fr;
  }

  .ag-sidebar-footer {
    padding: 0 7rem 3.8rem;
    background-color: transparent;
  }

  .ag-sidebar-footer .ag-lang-container {
    display: none;
  }

  .ag-sidebar-footer .ag-btn--logout {
    margin-inline: 0;
  }
}

/* 
===============================================
MARK: MAIN
===============================================
*/
.ag-main {
  position: relative;
}

.ag-main:has(.ag-post-container[data-post-type="reel"]) {
  margin-top: calc(var(--header-height) * -1);
}

.ag-main-container {
  --_filter-bar-height: 40px;

  display: grid;
  grid-template-rows: var(--_banner-height, auto) var(--_filter-bar-height) 1fr;
  min-height: calc(100vh - var(--header-height));
}

.ag-main:has(.ag-post-container[data-post-type="reel"]) .ag-main-container {
  min-height: 100vh;
}

@media only screen and (min-width: 961px) {
  .ag-main-container {
    /* grid-template-rows: var(--_filter-bar-height) 1fr; */
    margin-top: calc(0px - var(--_filter-bar-height));
  }
}

/* MARK: hero */
.ag-section--hero {
  height: var(--_banner-height);
  text-align: center;
}

@media only screen and (min-width: 961px) {
  .ag-section--hero {
    /* display: none; */
  }
  .ag-section--hero .ag-section-hero-banner {
    display: none;
  }
  .ag-main-container[data-type="tag"] .ag-section--hero {
    height: 100px;
  }
  .ag-main-container[data-type="tag"] .ag-section--hero .ag-btn--back {
    top: 0;
  }
}

.ag-section--hero .ag-hero-tag {
  font-size: var(--font-4xl);
  color: var(--color-primary);
}

.ag-section--hero .ag-hero-tag-container {
  display: none;
}

.ag-section--hero .ag-btn--back {
  transform: translate(-100%, 0);
}

.ag-main-container[data-type="tag"] .ag-section--hero {
  height: auto;
  padding-bottom: 1rem;
}

.ag-main-container[data-type="tag"] .ag-section--hero .ag-btn--back {
  transform: translate(0, 0);
  transition: transform 0.4s 0.4s;
}

.ag-main-container[data-type="tag"] .ag-section--hero .ag-section-hero-banner {
  display: none;
}

.ag-main-container[data-type="tag"] .ag-section--hero .ag-hero-tag-container {
  display: block;
}

/* MARK: filter */
.ag-filter-container {
  position: relative;
}

.ag-filter-list {
  display: flex;
  align-items: center;
  gap: 2.6rem;

  padding: 0 1.8rem;
  color: var(--color-gray);
}

.ag-filter-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: all 0.3s;
}

.ag-filter-item {
  cursor: pointer;
  transition: color 0.3s;
  position: relative;
  padding: 0.8rem 0;
}

.ag-filter-item[data-state="active"] {
  color: var(--color-primary);
}
.ag-filter-item[data-state="active"]::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transition: all 0.3s;
}

/* MARK: post */
.ag-section--post {
  --_columns: 2;
  padding: 2rem 1.45rem;
  background-color: var(--color-orange-light);
}

.ag-all-posts {
  /* --_columns: 2;
  display: grid;
  grid-template-columns: repeat(var(--_columns), 1fr);
  gap: 1.6rem; */
  /* column-width: 165px;
  column-count: var(--_columns);
  column-gap: 1.6rem; */
}
.ag-post-item {
  width: 50%;
  padding: 5px;
}

@media only screen and (min-width: 961px) {
  .ag-section--post {
    max-height: calc(100vh - var(--header-height));
    /* padding: 3rem; */
    overflow: hidden scroll;
  }
}

@media only screen and (min-width: 1200px) {
  .ag-all-posts {
    --_columns: 3;
  }
  .ag-post-item {
    width: 33%;
  }
}

@media only screen and (min-width: 1400px) {
  .ag-all-posts {
    --_columns: 4;
  }
  .ag-post-item {
    width: 25%;
  }
}

@media only screen and (min-width: 1680px) {
  .ag-all-posts {
    --_columns: 5;
  }
  .ag-post-item {
    width: 20%;
  }
}

.ag-post {
  --_padding-x: 1rem;

  border-radius: 16px;
  padding-block: 0.8rem;
  background: linear-gradient(180deg, var(--_color-start), var(--_color-stop));

  break-inside: avoid;
}

.ag-post[data-color-schema="dark"] {
  color: white;
}

.ag-post[data-color-schema="light"] {
  color: var(--color-text);
}

.ag-post:not(:last-child) {
  margin-bottom: 1.6rem;
}

.ag-post-header {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ag-publisher-profile-pic {
  --_size: 26px;
  width: var(--_size);
  height: var(--_size);
  border-radius: 100px;
  overflow: hidden;
}

.ag-post-main {
  position: relative;
}

.ag-post-footer {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ag-post-favourite-icon {
  --_size: 24px;
  width: var(--_size);
  height: var(--_size);
}

.ag-post-favourite-icon img {
  object-fit: contain;
}

/* MARK: post -- text */
.ag-post[data-type="text"] {
  padding-inline: 1rem;
}

.ag-post[data-type="text"] > * + * {
  margin-top: 2rem;
}

.ag-post[data-type="text"] .ag-post-title {
  margin-bottom: 8px;
}

/* MARK: post -- ad */
.ag-post[data-type="ad"] {
  aspect-ratio: 1;

  background-image: var(--_bg-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.ag-post[data-type="ad"] .ag-post-icon-container {
  --_offset: 1rem;
  position: absolute;
  top: var(--_offset);
  right: var(--_offset);

  --_size: 36px;
  width: var(--_size);
  height: var(--_size);
}

/* MARK: post -- image */
.ag-post[data-type="image"] .ag-post-header,
.ag-post[data-type="image"] .ag-post-footer,
.ag-post[data-type="image"] .ag-post-title {
  padding-inline: var(--_padding-x);
}

.ag-post[data-type="image"] > * + * {
  margin-top: 0.8rem;
}

.ag-post-main-image-container {
  /* transform: scale(1.005); */
}

.ag-post[data-type="image"] .ag-post-title {
  margin-top: 8px;
}

.ag-post[data-type="image"] .ag-post-more {
  padding-inline: var(--_padding-x);
}

/* MARK: post -- video */
.ag-post[data-type="video"] .ag-post-header,
.ag-post[data-type="video"] .ag-post-footer,
.ag-post[data-type="video"] .ag-post-title {
  padding-inline: var(--_padding-x);
}
.ag-post[data-type="video"] .ag-post-more {
  padding-inline: var(--_padding-x);
}

.ag-post[data-type="video"] > * + * {
  margin-top: 0.8rem;
}

.ag-post-main-video-container {
  overflow: hidden;
}
.ag-post-main-video-container img {
  height: auto;
}

.ag-post-main-video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  vertical-align: middle;
}

.ag-post[data-type="video"] .ag-post-title {
  margin-top: 8px;
}

.ag-post[data-type="video"] .ag-post-icon-container {
  --_offset: 1rem;
  position: absolute;
  top: var(--_offset);
  right: var(--_offset);

  width: 32px;
}

/* 
===============================================
MARK: POST CONTENT
===============================================
*/
.ag-section--post-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: calc(100vh - var(--header-height));
  background-color: white;
  z-index: 30;
  transition: transform 0.4s;

  overflow: hidden;
}

.ag-post-container[data-post-type="reel"] {
  color: white;
  min-height: 100vh;
  font-size: 14px;
}

.ag-section--post-content:has(.ag-post-container[data-post-type="reel"])
  .ag-btn--back {
  top: calc(10px + var(--header-height));
}

.ag-section--post-content .ag-btn--back {
  transform: translate(-100%, 0);
  transition: transform 0.4s 0.6s;
}

.ag-section--post-content[data-state="show"] .ag-btn--back {
  transform: translate(0, 0);
  z-index: 2;
}

.ag-section--post-content[data-state="hide"] {
  transform: translate(100%, 0);
}

.ag-section--post-content[data-state="show"] {
  transform: translate(0, 0);
}

.ag-post-hero-icon-container[data-icon="video"] {
  --_offset: 1rem;
  position: absolute;
  top: var(--_offset);
  right: var(--_offset);

  width: 34px;
}

.ag-section--post-content .ag-post-content-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.ag-section--post-content .ag-post-content-header .ag-post-like-container {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ag-section--post-content .ag-post-content {
  position: relative;
  padding: 3rem 1.65rem;
  display: flex;
  flex-direction: column;
}

.ag-post-container:not([data-post-type="reel"])
  .ag-section--post-content
  .ag-post-content {
  border-top: 1px solid var(--color-separator);
}

.ag-post-container {
  min-height: calc(100vh - var(--header-height));
}

.ag-post-container:not([data-post-type="reel"]) {
}

.ag-post-container[data-post-type="text"] {
  display: grid;
  grid-template-rows: 0fr 1fr;
  min-height: calc(100vh - var(--header-height));
}

.ag-post-container[data-post-type="text"] .ag-post-content {
  padding-top: 6rem;
}

.ag-post-hero-container {
  position: relative;
  z-index: 1;
}

.ag-post-hero-video-container {
  position: relative;
  height: 100%;
}

.ag-post-hero-video-container video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ag-post-container[data-post-type="reel"] .ag-post-content {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 1), transparent);
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.ag-post-container[data-post-type="reel"] .ag-post-content .ag-post-content-left{
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: end;
}
.ag-post-container[data-post-type="reel"] .ag-post-content .ag-post-content-right{
  flex-shrink: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 10px;
}

.ag-post-container[data-post-type="reel"] video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ag-section--post-content .ag-post-content-body {
  margin-block: 3rem;
}

.ag-post-container[data-post-type="reel"] .ag-post-content-body {
  margin: 0.4rem 0 0 0;
}



.ag-section--post-content .ag-post-content-body > * + * {
  margin-top: 2rem;
}
.ag-section--post-content .ag-post-content-body > .ag-post-title {
  margin-top: 0;
}

.ag-post-container[data-post-type="reel"] .ag-post-content-body > * + * {
  margin-top: 0.6rem;
}

.ag-section--post-content .ag-post-content-body .ag-post-title {
  font-size: 2.4rem;
  font-weight: var(--font-bold);
  color: var(--color-primary);
}
.ag-section--post-content .ag-post-content-body .ag-post-title .ag-post-open-text{
  font-size: 80%;
  color:#adb1b5;
  cursor: pointer;
}

.ag-post-container[data-post-type="reel"] .ag-post-content-body .ag-post-title {
  color: white;
  font-size:16px;
}

.ag-post-container[data-post-type="reel"] .ag-post-content-body .ag-post-text {
  display: none;
}

.ag-post-container[data-post-type="reel"] .ag-post-content-body[data-state="show"] .ag-post-text {
  display: block;
}
.ag-post-container[data-post-type="reel"] .ag-post-content-body[data-state="show"] .ag-post-title .ag-post-open-text{
  display: none;
}

.ag-post-container[data-post-type="reel"]  .ag-post-like-container{
  display: inline-block;
  text-align: center;
}
.ag-post-container[data-post-type="reel"]  .ag-more-video{
  display: inline-block;
  text-align: center;
}
.ag-post-container[data-post-type="reel"]  .ag-more-video img{
  width: 27px;
  margin: 0 auto;
  object-fit: none;
  height: auto;
}

.ag-post-container[data-post-type="reel"]
  .ag-post-content-body
  .ag-post-text[data-state="hide"] {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ag-section--post-content .ag-post-tags {
}
.ag-section--post-content .ag-post-tags li {
  display: inline-block;
  white-space: nowrap;
  cursor: pointer;
}

.ag-section--post-content .ag-post-content > .ag-post-btns {
  margin-top: auto;
}
.ag-section--post-content .ag-post-content > .ag-post-btns .ag-btn{
  text-align: center;
}

.ag-post-container:not([data-post-type="reel"])
  .ag-post-content
  > .ag-post-btns
  > *
  + * {
  margin-top: 1.2rem;
}

.ag-post-video-bg-container {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #000;
}

.ag-post-container[data-post-type="reel"] .ag-post-content > .ag-post-btns {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ag-post-container[data-post-type="reel"]
  .ag-post-content
  > .ag-post-btns
  .ag-post-btn {
  text-align: center;
}

/*******************************/

.company {
  position: relative;
}

.ag-compant-page {
  position: relative;
  height: 90vh;
  width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
  background: rgb(236, 198, 198);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.company-cover {
  background: rgb(234, 190, 203);
  background: linear-gradient(
    180deg,
    rgba(234, 190, 203, 1) 0%,
    rgba(255, 253, 254, 1) 70%
  );
}
.company-cover .pattern_bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url(../assets/images/no1_pattern.png) no-repeat;
  background-size: auto 60%;
  background-position: 70% 90%;
}
.company-cover .company_cover_title {
  position: relative;
  display: block;
  width: 100%;
  max-width: 400px;
  margin-bottom: 10vh;
  height: auto;
  animation: title_move 0.7s 1 ease-out alternate;
}
@keyframes title_move {
  0% {
    transform: translate(-200px, 0);
  }
  100% {
    transform: translate(0, 0);
  }
}
.company-cover p {
  position: relative;
  color: #d31145;
  text-align: center;
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.3em;
  animation: cover_p 2s 1 ease-out alternate;
}
@keyframes cover_p {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.company-home {
  background: rgb(149, 30, 111);
  background: linear-gradient(
    3deg,
    rgba(149, 30, 111, 1) 7%,
    rgba(189, 12, 109, 1) 25%,
    rgba(215, 0, 107, 1) 37%,
    rgba(255, 255, 255, 1) 90%
  );
}
.company-home .pattern_bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url(../assets/images/company_home_bg.png) no-repeat;
  background-size: auto 80%;
  background-position: 50% 90%;
}
.company-home .header_1 {
  position: relative;
  font-size: 48px;
  color: #fff;
  font-weight: bold;
  margin-right: 100px;
}
.company-home .header_2 {
  position: relative;
  font-size: 32px;
  color: #fff;
  font-weight: bold;
  margin-bottom: 5vh;
  margin-left: 100px;
}
.company-home p {
  position: relative;
  font-size: 36px;
  color: #fff;
  font-weight: bold;
  margin-bottom: 30px;
}
.company-home .arrow {
  display: block;
  width: 48px;
  position: absolute;
  bottom: 30px;
  left: 50%;
  margin-left: -24px;
  height: auto;
  animation: arrow_move alternate infinite ease-in-out 1s;
}
@keyframes arrow_move {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(0, -50px);
  }
}

.ag-compant-img-page {
  position: relative;
}
.ag-compant-img-page img.bg {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}
.ag-compant-img-page img.overlay {
  position: absolute;
  display: block;
  width: 50%;
  top: 0;
  left: 50%;
  height: auto;
  transform: translate(-50%, 0);
  transition: all 0.5s ease-out;
}
.ag-compant-img-page .arrow {
  display: block;
  width: 6%;
  position: absolute;
  bottom: 30px;
  left: 50%;
  margin-left: -3%;
  height: auto;
  animation: arrow_move alternate infinite ease-in-out 1s;
}
