@font-face {
  font-family: "NunitoRegular";
  src: url("/ui/Nunito-Regular.ttf");
}

@font-face {
  font-family: "NunitoMedium";
  src: url("/ui/Nunito-Medium.ttf");
}
* {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: "NunitoRegular", serif;
      background: #ffdbe9;
      color: #222;
    }

    .page {
      margin: 0 auto;
      background: #ffdbe9;
    }

    /* HEADER */

    .header {
      position: relative;
      background: #ffdbe9;
    }
    
    .header img{
      width: 100%;
    }

    /* NAVIGATION AS DROPDOWN MENU */

    .nav {
  display: flex;
  margin-top: 10px;
  justify-content: center;
  position: relative;
  z-index: 50;
}

/* Container no longer has rounded corners or gradient */
.nav-inner {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: visible;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}


    .nav-item {
  width:10vw;
      position: relative;
      flex: 1;
    }


/* Each button gets the gradient and animation */
.nav-link {
  display: block;
  padding: 12px 40px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  text-align: center;
  border-left: 1px solid rgba(255,255,255,0.35);
  cursor: pointer;
  background: linear-gradient(#ff4ea3, #ff1b7b);
  border-radius: 0;
  transition: border-radius 0s ease;
}

/* First and last buttons have rounded corners by default */
.nav-item:first-child .nav-link {
  border-left: none;
  border-radius: 10px 0 0 10px;
}

.nav-item:last-child .nav-link {
  border-radius: 0 10px 10px 0;
}

/* On hover, flatten corners so dropdown connects cleanly */
.nav-item:first-child:hover .nav-link{
  border-radius: 10px 0 0 0px;
}

.nav-item:last-child:hover .nav-link {
  border-radius: 0 10px 0 0;
}
/* Optional hover background tweak */
.nav-item:hover .nav-link {
  background: linear-gradient(#ff5fbc, #ff2a88);
}


    .dropdown {
      position: absolute;
      left: 0;
      top: 100%;
      background: #ff4ea3;
      list-style: none;
      padding: 0;
      margin: 0;
      min-width: 10vw;
      box-shadow: 0 3px 6px rgba(0,0,0,0.25);
      display: none;
      z-index: 20;
    }

    .dropdown li a {
      display: block;
      padding: 8px 16px;
      color: #fff;
      text-decoration: none;
      font-size: 13px;
      text-align: left;
      border-top: 1px solid rgba(255,255,255,0.25);
      background: linear-gradient(#ff4ea3, #ff1b7b);
    }

    .dropdown li:first-child a {
      border-top: none;
    }

    .dropdown li a:hover {
      background: rgba(255,255,255,0.15);
    }

    .nav-item:hover .dropdown {
      display: block;
    }

    /* MAIN LAYOUT */

    .layout {
      display: flex;
      padding: 24px 40px 40px;
      align-items: flex-start;
    }

    /* LEFT SIDEBAR */

    .sidebar {
      display:block;
      position:relative;
      background: linear-gradient( to bottom, #eb0a76 0%, #ffdbe9 100% );
      width: 20vw;
      height: 55vh;
      padding: 20px 16px;
      border-radius: 4px;
      color: #fff;
      margin-top: -3.5%;
    }

    .social-buttons {
      display: flex;
      gap: 8px;
      margin-bottom: 18px;
      justify-content: center;
    }

    .social-circle {
      width: 26px;
      height: 26px;
      border-radius: 10px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: #001935;
      font-size: 13px;
      cursor: pointer;
    }
/**
    .social-circle:nth-child(2) { background: #0300e7; }
    .social-circle:nth-child(3) { background: #f25c06; }
    .social-circle:nth-child(4) { background: #418dff; }
    **/

    .sidebar-title {
  margin: 10px 0 8px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.newly-added-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.new-item {
  margin-bottom: 8px;
}

.new-item a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
}

.new-item a:hover {
  background: rgba(0, 0, 0, 0.28);
}

.new-item-thumb {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.new-item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.new-item-title {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.new-item-meta {
  font-size: 11px;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


    /* MAIN ARTICLE */

    .content {
      display: block;
      position:relative;
      background: #ffe6f1;
      padding: 18px 24px 24px;
      border-radius: 4px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.06);
      width:52vw;
      margin-left:2%;
    }

    .article-header {
      display: flex;
      align-items: center;
      margin-bottom: 14px;
      gap: 16px;
    }

    .date-badge {
      width: 60px;
      height: 60px;
      border-radius: 16px;
      background: #ff4ea3;
      color: #fff;
      text-align: center;
      font-weight: 700;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      text-transform: uppercase;
      line-height: 1.1;
    }

    .date-badge span:first-child {
      font-size: 20px;
    }

    .article-header h1 {
      font-size: 26px;
      margin: 0;
      font-weight: 600;
    }

    .article-image img {
      width: 100%;
      border-radius: 4px;
      display: block;
      margin-bottom: 16px;
      background: #ccc;
      object-fit: cover;
      max-height: 370px;
    }

    .article-body p {
      font-size: 15px;
      line-height: 1.6;
    }

    /* RIGHT SILHOUETTE */

    .right-figure {
      display: block;
      position: fixed;
      right:0;
      bottom:0;
    }

    .right-figure img {
      width:20vw;
      object-fit: contain;
    }
    

   /* Responsive: portrait mode */
@media (orientation: portrait) {

  /* NAV: turn into stacked vertical menu, dropdowns always visible */
  .nav {
    justify-content: stretch;
    margin-top: 8px;
  }

  .nav-inner {
    flex-direction: column;
    width: 100%;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
  }

  .nav-item {
    width: 100%;
    flex: 0 0 auto;
  }

  .nav-link {
    text-align: left;
    padding: 12px 16px;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.35);
    border-radius: 0 !important;
  }

  .nav-item:first-child .nav-link {
    border-top: none;
  }

  /* Dropdown menus: inline under each section */
  .dropdown {
    position: static;
    min-width: 100%;
    box-shadow: none;
    display: block;        /* always visible in portrait */
    background: #ff4ea3;
  }

  .dropdown li a {
    padding: 6px 24px;     /* indent subitems */
    font-size: 13px;
  }

  /* LAYOUT: stack sidebar above main content */
  .layout {
    flex-direction: column;
    padding: 16px;
  }

  .sidebar {
    width: 100%;
    height: auto;
    margin-top: 0;
    margin-bottom: 16px;
  }

  .content {
    width: 100%;
    margin-left: 0;
  }

  /* Hide figure in portrait */
  .right-figure {
    display: none;
  }

  .right-figure img {
    width: 0;
    height: 0;
  }
}
