body {
    font-family: 'Nunito', sans-serif;
    margin: 0;
    background-color: #fff;
    color: #333;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-section {
    text-align: center;
    padding: 50px 0;
}

.hero-section h1 {
    font-family: "Nunito", Sans-serif;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 25px;
    color: #3AAEE1;
}

.hero-section p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    color: #333333;
}

main {
    flex-grow: 1; /* Mendorong footer ke bawah */
}

.logo img {
    height: 40px;
    display: block;
}

.header {
    background-color: #fff;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.09);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0.75rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navigasi Desktop */
.main-nav-desktop {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.5rem; /* Jarak antar menu */
    align-items: center;
}

.main-nav-desktop a {
    text-decoration: none;
    color: #3AAEE1; 
    font-weight: 600;
    font-size: 1rem;
    padding-bottom: 4px;
    transition: color 0.3s, border-color 0.3s;
    border-bottom: 2px solid transparent; 
}

.main-nav-desktop a:hover {
    color: #3AAEE1;
    border-bottom: 2px solid #3AAEE1;
}

.main-nav-desktop a.active {
    color: #00AAE2;
    border-bottom: 2px solid #00AAE2;
}

/* Tombol Hamburger */
.hamburger {
  cursor: pointer;
  width: 24px;
  height: 24px;
  transition: all 0.25s;
  position: relative;
  background: none;
  border: none;
}

.hamburger-top,
.hamburger-middle,
.hamburger-bottom {
  position: absolute;
  width: 24px;
  height: 2px;
  top: 0;
  left: 0;
  background: #333;
  transform: rotate(0);
  transition: all 0.5s;
}

.hamburger-middle {
  transform: translateY(7px);
}

.hamburger-bottom {
  transform: translateY(14px);
}

.hamburger.open {
  transform: rotate(90deg);
}

.hamburger.open .hamburger-top {
  transform: rotate(45deg) translateY(6px) translateX(6px);
}

.hamburger.open .hamburger-middle {
  display: none;
}

.hamburger.open .hamburger-bottom {
  transform: rotate(-45deg) translateY(6px) translateX(-6px);
}

.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px)
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 60px;
}


/* === Kartu Tes=== */
.test-card {
  background-color: #F1EFEF;
  border: 4px solid #83EAE3;
  border-radius: 39px;
  min-height: 270px;
  padding: 29px 25px;
  box-shadow: 10px 10px 9px rgba(0, 0, 0, 0.25);
  position: relative;
  transition: background-color 0.3s;

  /* Pengaturan untuk gambar latar */
  background-repeat: no-repeat;
  background-position: bottom -30px right -60px;
  background-size: 70% auto;
}

.test-card:hover {
  background-color: #A1DBF5;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.card-content h2 {
  font-family: "Nunito", Sans-serif;
  font-size: 25px;
  font-weight: 700;
  color: #086BA2;
  margin: 0 0 10px 0;
}

.card-content p {
  font-size: 13px;
  line-height: 1.6;
  color: #000000;
  margin-bottom: 15px;
  max-width: 210px;
}

.btn-test {
  display: inline-block;
  background-color: #9DD100;
  color: #FFFFFF;
  padding: 7px 15px;
  border-radius: 22px;
  font-weight: 700;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s ease;
  width: 141px;
  box-sizing: border-box;
}

.btn-test:hover {
  transform: scale(1.05);
}

.btn-test i {
    margin-left: 8px;
}


.test-card.burnout {
    background-image: url("images/burnout.png");
}
.test-card.depresi {
    background-image: url("images/depresi.png");
}
.test-card.kecemasan {
    background-image: url("images/kecemasan.png");
}
.test-card.trauma {
    background-image: url("images/trauma.png");
}
.test-card.gangguan-mood {
    background-image: url("images/gangguanmood.png");
}
.test-card.stress {
    background-image: url("images/stress.png");
}


.profile-section {
    padding-top: 20px;
    padding-bottom: 60px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: #3AAEE1;
    margin-bottom: 60px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 40px;
    justify-items: center;
}

.profile-card {
    position: relative;
    width: 320px;
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #E0E0E0;
    text-align: center;
}

.profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #f0f2f5;
    margin: -70px auto 1rem;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 96px;
    background-color: #83EAE3;
    border-radius: 20px 20px 0 0;
    z-index: 1;
}

.profile-info {
    text-align: center;
    padding-top: 40px; 
    margin-bottom: 1.5rem;
}
.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 1px 0;
}

.profile-title {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.profile-bio {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.5;
    min-height: 65px;
}


@media (max-width: 992px) {
  .test-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
    .mobile-contact {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        width: 100%;
        margin-top: 1rem;
        border-top: 1px solid #e2e8f0;
        padding-top: 1rem;
    }

    .mobile-contact a {
        background-color: #f0f0f0;
        padding: 0.5rem 1rem !important;
        color: #3AAEE1 !important;
        font-weight: bold;
    }

    .mobile-contact a:hover {
        background-color: #e2e8f0 !important;
        color: #00AAE2 !important;
    }
  
    .test-grid {
    grid-template-columns: 1fr;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .profile-card {
    width: 90%;
    max-width: 320px;
  }
  .test-card {
    min-height: auto;
    padding: 30px;
    background-position: bottom -20px right -50px;
  }

  .main-nav-desktop-wrapper {
        display: none;
    }

    /* Tampilkan tombol hamburger */
    .hamburger.md\:hidden {
        display: block;
    }
    
    #menu.hidden {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px)
    }
    
    #menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 68px; 
        left: 1.5rem;
        right: 1.5rem;
        background-color: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 2rem;
        font-weight: bold;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        gap: 1.5rem;
        z-index: 40;
        border-radius: 8px;
        transform: translateY(0);
        transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0.3s;
    }

    #menu a {
        display: block;
        width: 100%;
        padding: 0.75rem 1rem;
        text-align: center;
        border-radius: 8px;
        transition: background-color 0.3s ease, color 0.3s ease;
        text-decoration: none;
        color: #3AAEE1;
    }

    #menu a:hover, #menu a.active {
    background-color: #3AAEE1; /* Warna hijau dari tombol "Mulai Tes" */
    color: #ffffff !important;
    }
}

/* Aturan Tampilan Desktop (Layar besar) */
@media (min-width: 769px) {
    /* Tampilkan navigasi desktop */
    .main-nav-desktop-wrapper {
        display: block;
    }

    /* Sembunyikan tombol hamburger */
    .hamburger.md\:hidden {
        display: none;
    }

    /* Sembunyikan menu dropdown mobile */
    .md\:hidden {
      display: none;
    }
}

.site-footer {
    position: relative;
    background-color: #F7F7F7;
    padding-top: 100px;
    padding-bottom: 30px;
    margin-top: 50px;
    color: #7A7A7A;
    font-size: 14px;
}


.footer-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}
.footer-shape svg {
    position: relative;
    display: block;
    width: calc(100% + 2px);
    height: 100px;
}
.footer-shape-fill {
    fill: #FFFFFF;
}
.footer-shape-stroke {
    fill: none;
    stroke: #83EAE3;
    stroke-width: 10;
}


.footer-container {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    flex-wrap: wrap;
}


.footer-about {
    flex-basis: 30%;
}
.footer-logo {
    width: 150px;
    margin-bottom: -5px;
    margin-left: -1px;
}
.footer-about p {
    margin: 0 0 15px 0;
    line-height: 1.7;
}


.footer-links {
    flex-basis: 25%;
}
.footer-links h3 {
    font-size: 16px;
    font-weight: 800;
    color: #404040;
    margin-top: 0;
    margin-bottom: 15px;
}
.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    text-decoration: none;
    color: #7A7A7A;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: #00AAE2;
}


.footer-copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #E0E0E0;
    font-size: 12px;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-about, .footer-links {
        flex-basis: 100%;
    }
    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
}


.chatbot-launcher {
    position: fixed;
    bottom: 10px;
    right: 5px;
    width: 130px; 
    height: 130px; 
    background-color: transparent;
    border: none;
    border-radius: 0; 
    cursor: pointer;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    z-index: 999;
    pointer-events: none;
}

.chatbot-launcher:hover {
    transform: scale(1.1);
}

.chatbot-launcher img {
    width: 100%; 
    height: auto;
    pointer-events: auto;
}

.chatbot-popup {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background-color: #fff;
    width: 400px;
    max-width: 90vw;
    height: 650px;
    max-height: 80vh;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    z-index: 1000;
}

.chatbot-popup.show {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

.chatbot-popup .chat-header {
    background: #3AAEE1;
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.chatbot-popup .chat-header h3 {
    margin: 0;
    font-weight: 700;
}

.chatbot-popup .chat-header #close-chatbot {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.8rem;
}

.chatbot-popup .chat-body {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-family: 'Roboto', sans-serif;
}

.chatbot-popup .chat-body::-webkit-scrollbar {
    width: 6px;
}

.chatbot-popup .chat-body::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.chatbot-popup .message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 85%;
}

.chatbot-popup .message-text {
    padding: 12px 18px;
    border-radius: 18px;
    line-height: 1.5;
    word-wrap: break-word;
}

.chatbot-popup .bot-avatar {
    width: 35px;
    height: 35px;
    fill: #3AAEE1;
    flex-shrink: 0;
}

.chatbot-popup .bot-message {
    align-self: flex-start;
}

.chatbot-popup .bot-message .message-text {
    background-color: #ECEFF1;
    color: #333;
    border-bottom-left-radius: 5px;
}

.chatbot-popup .user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chatbot-popup .user-message .message-text {
    background: #3AAEE1;
    color: white;
    border-bottom-right-radius: 5px;
}

.chatbot-popup .chat-image-preview {
    max-width: 100%;
    border-radius: 15px;
    margin-bottom: 8px;
    display: block;
}

.chatbot-popup .message.thinking .message-text {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 15px 18px;
}

.chatbot-popup .thinking-indicator .dot {
    width: 8px;
    height: 8px;
    background-color: #999;
    border-radius: 50%;
    animation: dotPulse 1.4s infinite ease-in-out;
}

.chatbot-popup .thinking-indicator {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.chatbot-popup .thinking-indicator .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.chatbot-popup .thinking-indicator .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.chatbot-popup .chat-footer {
    padding: 10px 20px;
    border-top: 1px solid #ddd;
    background-color: #fff;
    flex-shrink: 0;
}

.chatbot-popup #file-preview-container {
    display: none;
    align-items: center;
    background-color: #f1f1f1;
    padding: 8px 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    animation: fadeIn 0.3s;
}

.chatbot-popup #file-preview-container.visible {
    display: flex;
}

.chatbot-popup #file-name-display {
    flex-grow: 1;
    font-size: 0.9rem;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chatbot-popup #cancel-attachment-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 1.4rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chatbot-popup .chat-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-popup .message-input {
    flex-grow: 1;
    padding: 12px 18px;
    border: 1px solid #ccc;
    border-radius: 22px;
    font-size: 1rem;
    resize: none;
    max-height: 100px;
    outline: none;
    transition: border-color 0.2s;
}

.chatbot-popup .message-input:focus {
    border-color: #3AAEE1;
}

.chatbot-popup .chat-form button {
    background-color: #3AAEE1;
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.chatbot-popup .chat-form button:hover {
    background-color: #2a9ac8;
    transform: scale(1.1);
}

.chatbot-popup #send-btn {
    display: none;
}

.chatbot-popup .message-input:valid ~ #send-btn {
    display: flex;
}

.policy-item {
    display: flex;
    align-items: flex-start; 
    margin-top: 40px;
    gap: 15px; 
}

.policy-number {
    font-size: 24px;
    font-weight: 700;
    color: #086BA2;
    flex-shrink: 0; 
}

.policy-text {
    flex-grow: 1;
}

.policy-text h3 {
    font-size: 24px;
    font-weight: 700;
    color: #086BA2;
    margin-top: 0; 
    margin-bottom: 15px;
    border-bottom: 2px solid #83EAE3;
    padding-bottom: 5px;
}

.policy-text p, .policy-text ul {
    margin-top: 0;
}

.content-section h1 {
    text-align: center;
    color: #086BA2;
 }
.content-section .last-updated {
    text-align: center;
    margin-bottom: 40px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
}

.dropdown-menu a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: none !important;
}

.dropdown-menu a:hover {
    background-color: #f1f1f1;
    border-bottom: none !important;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-toggle::after {
    content: none;
}