@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


body {
    background-color: #011819;
    color: #fff;
    height: 100%;
    padding-bottom: 60px; 
    padding-top: 4.5rem;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeIn 1s ease-out forwards;
    
}
body.dark-gradient {
  background-color: #052124;
  background-image: url("https://www.transparenttextures.com/patterns/white-diamond-dark.png");

  /* background-color: #011819;
  background-image: linear-gradient(to right, #011819 , #042120); */
 /* background: #0D2628;
  background: linear-gradient(145deg,rgba(1, 24, 25, 100) 0%, rgba(1, 24, 25, 100) 50%, rgb(9, 54, 52) 100%); */
  /* background: #0D2628;
  background: radial-gradient(circle, rgba(13, 38, 40, 1) 0%, rgba(13, 38, 40, 1) 0%, rgba(1, 24, 25, 100) 50%); */
}

@keyframes fadeIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
}

html {
    height: 100%;
}

main {
    position: relative;
    min-height: 100vh;
}

.navbar {
    background-color: #011819;
}

.navbar-nav {
    display: flex;
    flex-wrap: nowrap;
}

.navbar-nav li a {
    color: #BCFCF8;
    font-family: "Nunito", sans-serif;
    font-weight: 300;
    font-size: clamp(16px, 1.4vw, 20px);
    font-style: normal;
    white-space: nowrap;
}

.navbar-nav li {
    margin: 0 8px;
}

.navbar-nav .nav-item {
    margin: 0 20px;
}

.btn-hc {
    background-color: #053029;
    border: 1px solid #05BBCC;
    font-family: "Nunito", sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: #fff !important;
    border-radius: 4px;
    padding: 6px 14px;
    display: inline-block;
}

.btn-hc:hover {
    background-color: #09463c;
}

.navbar-nav .btn-hc{
    width: auto;
}

@media (max-width: 991px){

    .hc-mobile{
        text-align: left;
        margin-top: 10px;
    }

    .navbar-nav .btn-hc{
        display: inline-block;
        width: auto;
        padding: 8px 22px;
    }
}

.navbar-nav .dropdown-menu{
    background-color: #03201b;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 200px;
    font-size: 30px;
}
.navbar-nav .dropdown-menu .dropdown-item:hover {
    background-color: #065444; /* warna hover opsional */
    color: white;
}

.profil-csirt-section h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
    font-size: 30px;
}

.profil-csirt-section .text-box {
   height: 150px;
   background-color: #021E1F;
   font-family: Arial, Helvetica, sans-serif;
   font-weight: lighter;
   font-size: 20px;
   display: flex;
   align-items: center;
   transition: all 0.4s ease;
   
}
.profil-csirt-section .text-box:hover{
   
    background-color: #033033; /* warna berubah saat hover */
    transform: scale(1.03); /* membesar sedikit */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* sedikit bayangan */
}

  .icon-box {
    width: 150px;
    height: 150px;
    background: #021E1F;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .icon-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
  }

  .text-box {
    background-color: #112d2d;
    font-size: 1rem;
    line-height: 1.6;
    color: #ffffff;
  }
  @media (max-width: 768px) {
  .icon-box {
    display: none !important;
  }
  .profil-csirt-section .text-box {
    min-height: max-content;
    font-size: 16px;
    text-align: center;
  }
}



#layanan {
    margin-top: -20px;
}

#layanan h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
    font-size: 30px;
}

.icon-layanan {
    margin-bottom: 10px;
    display: inline-block;
    background: linear-gradient(to bottom, #C3B82B, #09B9A4);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
    font-size:50px;
}

.card-layanan {
    border-radius: 20px;
    background-color: #011819;
    border-color: #23AFA7;
    color: white;
    padding: 30px;
    margin: 10px;
    transition: transform 0.3s ease;
}
.card-layanan h4 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-weight: bold;
    font-size: 25px; 
}
.card-layanan p {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 100;
    font-size: 18px; 
}
.card-layanan:hover{
    background-color: #033033;
    transform: scale(1.05);
}


.banner-section {
    /* margin-top: 150px; */
}

.banner-title h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
    font-size: 80px;
    background: linear-gradient(90deg, #FFFFFF, #42D4BD);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
}

.banner-title h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: light;
    font-size: 50px;
    color: #fff;
}
.banner-title P {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: light;
    font-size: 30px;
    font-style: italic;
    color: #fff;
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.banner-logo img {
  width: 400px;
  height: auto;
}

/* .hero-img {
  width: 100px;
  filter: drop-shadow(0 0 8px rgba(5, 199, 174, 0.4));
  transition: transform 0.5s ease;
} */

.btn-detil-ps {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 25px;
    color: white;
    background-color: #00a99d;
    border: none;
    border-radius: 0;
    margin: 10px 10px 10px 10px;
}
.btn-detil-ps:hover {
    background-color: rgb(5, 78, 70);
    color: white;
}

.header-overlay {
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
#artikel h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
    font-size: 30px;
    text-transform: uppercase;
}
.artikel-card {
    flex: 0 0 calc(33.333% - 20px);
    margin: 10px;
    background-color: #011819;
    border-color: #23AFA7;
    overflow: hidden;
    color: white;
}
.artikel-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: top;
}
.artikel-card .card-body {
    padding: 15px;
}
.artikel-card .card-text {
    height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: justify;
}
.card-text-title{
    
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.slider-container {
    position: relative;
    overflow: hidden;
}
.artikel-wrapper {
    display: flex;
    transition: transform 1.2s ease-in-out; /* sebelumnya 0.5s */
    width: 100%;
}

.slider-controls {
    text-align: center;
    margin-top: 15px;
}
.slider-controls button {
    background-color: #00a99d;
    border: none;
    color: #fff;
    padding: 10px 15px;
    margin: 0 5px;
    cursor: pointer;
}

.btn-artikel {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: white;
    background-color: #00a99d;
    border: none;
    border-radius: 0;
    margin: 10px 10px 10px 10px;
    float: right;
}
.btn-artikel:hover {
    background-color: rgb(5, 78, 70);
    color: white;    
}

#contact h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
    font-size: 30px;
    text-transform: uppercase;
}

.contact-section iframe {
    width: 100%;
    height: 300px;
    border: none;
}
.contact-info {
    /* background-color: #112d3b; */
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px;
}
.contact-info i {
    font-size: 30px;
    margin-right: 20px;
    background: linear-gradient(to bottom, #C3B82B, #09B9A4);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
}
.title-contact h4 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-weight: bold;
    font-size: 25px; 
}
.title-contact p {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 200;
    font-size: 16px; 
}

.footer {
    background-color: #022628;
    padding: 20px 0;
    color: #fff;
    font-size: 18px;
    bottom: 0;
    font-family: Arial, Helvetica, sans-serif;
}
.footer a {
    color: #00a99d;
    text-decoration: none;
    
}
.footer a:hover {
    text-decoration: underline;
}

/* css-informasi */
.page-informasi h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
    font-size: 30px;
    color: #ffffff;
}

  .card-article {
    background: #011B1C;
    max-height:max-content;
  }
  .card-article h4{
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 20px; 
    text-transform: uppercase;
  }
  .card-article .text-info {
    color: #40F4EB;
    font-size: 16px;
  }

  .caption-acticle {
    background-color: #011F21;
  }
  .card-article p {
    font-family: Arial, Helvetica, sans-serif;
    text-align: justify;
    font-size: 14px;
  }

  .img-article {
    width: 200px;
    height: 300px;
    object-fit: cover;
    object-position: top;
  }

  .title-news {
    background-color: #011F21;
  }
  .title-news .text-info {
    font-size: 16px;
  }
  .scrollable-news {
    /* background-color: #011819; */
    padding-right: 10px;
  }
  .scrollable-news h6{
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 18px; 
    text-transform: uppercase;
  }
  .scrollable-news p{
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    text-align: justify;
  }
  .scrollable-news .card {
    background-color: #011B1C;
  }

  .scrollable-news::-webkit-scrollbar {
    width: 6px;
  }
  .scrollable-news::-webkit-scrollbar-thumb {
    background: #05C7AE;
    border-radius: 10px;
  }
  .scrollable-news::-webkit-scrollbar-track {
    background: #021918;
  }
  .scrollable-news a {
    text-decoration: none;
  }

  /* Responsive tweaks */
  @media (max-width: 768px) {
    .img-article {
      width: 100%;
      height: auto;
    }
    .card-article {
      flex-direction: column;
    }
    .scrollable-news {
      height: auto;
      max-height: 400px;
      overflow-y: auto;
      margin-top: 2rem;
    }
  }


/* detil-artikel-informasi */
.breadcrumb {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: lighter;
}
.breadcrumb a {
    color: white;
    
  }

  .breadcrumb .breadcrumb-item.active {
    color: #40F4EB;
  }
  .breadcrumb-item + .breadcrumb-item::before {
    color: white;
  }
.title-artikel h2{
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 35px; 
    text-transform: uppercase;
}
.detail-create{
  color: #5b8e8b;
}
.title-artikel p {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: lighter;
    font-size: 16px; 
    text-align: justify;
}
.pagination {
    border-radius: 0.25rem; /* Rounded corners */
  }

  .page-item {
    margin: 0 5px; /* Space between items */
  }

  .page-link {
    padding: 8px 16px; 
    background-color: #011F21; 
    color: white; 
    border: 1px solid #40F4EB; 
    border-radius: 0.25rem;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
  }

  .page-link:hover {
    background-color: #168a85;
    color: #fff; 
  }

  .page-item.active .page-link {
    background-color: #168a85; 
    border: 1px solid #40F4EB; 
  }

  .page-item.active .page-link:hover {
    background-color: #168a85; 
  }

  .page-item .page-link:focus {
    box-shadow: none; 
  }
  .page-item a {
    font-weight: bold; 
  }

  .page-item a:hover {
    text-decoration: none; 
  }


/* detail-news-css */ 
.detail-news h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 35px; 
    text-transform: uppercase;
}
.detail-news p {
    text-align: justify;
    font-weight: lighter;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px; 
    color: #f8f8f8;
}


/* css-profil */
.struktur-organisasi h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
    font-size: 30px;
    color: white;
}

.struktur-img {
    max-width: 100%;
    height: auto;
    border: 2px solid #23AFA7;
    border-radius: 10px;
}

.sumber {
    font-size: 14px;
    font-style: italic;
}

/* hubungi-kami */
.hubungi-section {
    width: 100%;
    min-height: 100vh;
    padding: 60px;
    display: flex;
    justify-content: center;
    align-items: stretch; 
    align-items: flex-start;
    gap: 80px;
    
}

.form-container {
    width: 40%;
}

.form-container h2 {
    font-size: 32px;
    margin-bottom: 40px;
}

form label {
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
}

form input,
form textarea {
    width: 100%;
    padding: 10px;
    background: transparent;

    border: 1px solid transparent; /* border transparan */
    border-radius: 6px;

    margin-bottom: 18px;
    color: white;

    background-image:
        linear-gradient(#011819, #011819),  /* warna background input */
        linear-gradient(90deg, #22AFA8, #8f951e); /* border gradient */
    
    background-origin: border-box;
    background-clip: padding-box, border-box;

    transition: all 0.3s ease;
}

/* Hover & Focus — berubah warna #011819 */
form input:hover,
form input:focus,
form textarea:hover,
form textarea:focus {
    background-image:
        linear-gradient(#011819, #011819),
        linear-gradient(90deg, #22AFA8, #D2DB2F);

    border-color: transparent;
    outline: none;
}

input:-webkit-autofill {
  background-color: #011819 !important;
  -webkit-text-fill-color: white !important;
  transition: background-color 9999s ease-in-out 0s;
}

input:-webkit-autofill:focus {
  background-color: #011819 !important;
  -webkit-text-fill-color: white !important;
}

input:-webkit-autofill:hover {
  background-color: #011819 !important;
  -webkit-text-fill-color: white !important;
}

.bottom-row {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-kirim {
    background: #27b2a4;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.map-container {
    flex: 1;
    display: flex;
}

.map-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 26px;
    object-fit: cover;
    min-height: 520px; 
}

/* registrasi ttis */

 .subtitle {
      text-align: center;
      font-style: italic;
      font-weight: 300;
      margin-bottom: 40px;
      color: #cfdedb;
    }

    .section-ttis {
      margin-bottom: 40px;
    }

    .section-title {
      font-weight: 500;
      margin-bottom: 20px;
      position: relative;
      padding-bottom: 8px;
    }

    .section-title::after {
      content: "";
      width: 40px;
      height: 2px;
      background-color: #2fbf9f;
      position: absolute;
      left: 0;
      bottom: 0;
    }

    .card-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
    }

    .card-ttis {
      /* background-color: rgba(255, 255, 255, 0.04); */
      border-radius: 12px;
      padding: 20px;
      display: flex;
      gap: 16px;
      align-items: center;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .card-ttis:hover {
      background-color: rgba(47, 191, 159, 0.15);
      transform: translateY(-3px);
    }

    .icon-ttis {
      width: 50px;
      height: 50px;
      background-color: rgba(47, 191, 159, 0.15);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #2fbf9f;
      font-size: 30px;
      flex-shrink: 0;
    }

    .icon-ttis i {
     
        background: linear-gradient(to bottom, #C3B82B, #09B9A4);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
    }
    
    .card-content-ttis h4 {
      font-weight: 500;
      margin-bottom: 4px;
      font-size: 15px;
    }

    .card-content-ttis span {
      font-size: 13px;
      color: #a7c6c0;
      font-weight: 300;
    }

    .password {
      margin: 20px 0 10px;
      font-weight: 400;
      color: #ffffff;
    }

    .password span {
      color: #2fbf9f;
      font-weight: 500;
    }

    .link-dokumen {
      display: inline-block;
      font-size: 13px;
      color: #a7c6c0;
      text-decoration: none;
      cursor: pointer;
    }

    .link-dokumen:hover {
      text-decoration: underline;
    }

    /* Responsive spacing */
    @media (max-width: 600px) {
      h1 {
        font-size: 22px;
      }

      .subtitle {
        font-size: 14px;
      }

      .card-ttis {
        padding: 16px;
      }
    }

/* ==== */

/* modal */

.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
 
}

.modal-ttis {
  /* background-color: #011314; */
  background: linear-gradient(145deg, #052022, #032c2a);
  border-radius: 28px;
  padding: 28px 32px 32px;
  width: 90%;
  max-width: 900px;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;  
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay.active .modal-ttis {
  transform: scale(1);
  opacity: 1;
}


.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-header h2 {
  font-size: 22px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

.modal-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
  cursor: pointer;
}

.modal-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.periode-dash {
  width: 100%;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
  margin: 12px 0 18px;
}

.periode-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  margin-bottom: 18px;
}

.periode-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
}
.periode span {
  font-family: "Montserrat", sans-serif;
}

.badge {
  border: 1px solid #056167;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-family: "Montserrat", sans-serif;
  white-space: nowrap;
}

.grad-icon {
  font-size: 28px;
  background: linear-gradient(180deg, #D2DB2F, #22AFA8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* MODAL KONTAK */
.modal-kontak {
  max-width: 980px;
  background: linear-gradient(145deg, #052022, #032c2a);
  font-family: "Montserrat", sans-serif;
}


.kontak-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 500;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 10px;
}

.kontak-title-text {
  display: flex;
  flex-direction: column;
}
.kontak-title-text small {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.75;
  margin-top: 2px;
}

.kontak-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 18px;
}

.kontak-row {
  margin-bottom: 18px;
}

.kontak-row label {
  display: block;
  font-size: 14px;
  opacity: 0.8;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 6px;
}

.kontak-box {
  border: 1px solid #056167;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  line-height: 1.5;
  
  max-width: 100%;
}

.kontak-box a{
  text-decoration: none;
  color: white;
}

.kontak-box.small {
  font-size: 13px;
  font-family: "Montserrat", sans-serif;
  opacity: 0.85;
}

/* ========= */

/* alert */
.alert-area {
    /* margin-bottom: 20px; */
    width: auto;            /* otomatis menyesuaikan isi */
    max-width: 80%;         /* tidak lebih dari 80% layar */
    display: inline-block; 
}

.alert.success {
    background: #0f5132;
    color: #d1e7dd;
    padding: 10px;
    border-radius: 5px;
}

.alert.error {
    background: #842029;
    color: #f8d7da;
    padding: 10px;
    border-radius: 5px;
}

@media (max-width: 900px) {
    .hubungi-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-container {
        width: 100%;
    }

    .map-container img {
        width: 100%;
        height: auto;
    }
}


@media (max-width: 768px) {
    .section-artikel .col-md-6 {
      flex: 0 0 100%;
      max-width: 100%;
    }
    .container .row {
        flex-direction: column;
      }
      .banner-content {
    flex-direction: column;
    text-align: center;
  }

  .banner-logo img {
    display: none;
    width: 180px;
  }

  .hero-section {
    padding: 2rem;
  }
 
}
