@import url('https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700,800,900&dispal=swap');
@import url('https://fonts.googleapis.com/css2?family=Rancho&display=swap');

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

#preloader{
    background: #fff url(/images/load.gif) no-repeat center;
    background-size: 20%;
    height: 100vh;
    width: 100%;
    position: fixed;
    z-index: 10000000;
}

#header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10000;
    background: linear-gradient(to right, #f0f8ff, #e6f3ff);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#header ul {
    display: flex;
    justify-content: center;
    align-items: center;
}

#header ul li {
    list-style: none;
    margin-left: 20px;
    position: relative;
}

#header ul li a {
    text-decoration: none;
    display: flex;
    padding: 6px 15px;
    color: #094b65;
    border-radius: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#header ul li .drop-down {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 350px;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1000;
}

#header ul li:hover .drop-down {
    display: block;
}

#header ul li:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-icon {
    font-size: 20px;
    position: relative;
    right: -5px;
    transform: rotate(0deg);
    transition: 0.1s ease-in-out all;
}

.drop-down li:hover {
    background: #094b65;
    color: #fff;
    border-radius: 0.5mm;
    transition: background-color 0.5s ease, color 0.5s ease;
}

#header ul li .drop-down li {
    margin: 0;
    padding: 0;
}

#header ul li .drop-down li a {
    padding: 10px 15px;
    color: #094b65;
    display: block;
    text-align: left;
    border-radius: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

#header ul li .drop-down li a:hover {
    background: #094b65;
    color: #fff;
}

#header ul li a:hover,
#header ul li a.active {
    background: #094b65;
    color: #fff;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 80px;
    padding:20px;
}

header.title {
    max-width: 700px;
    margin: 50px auto;
    margin-bottom: 20px;
    padding: 100px 0px 20px 0px;
    text-align: center;
    color: #094b65;
}

header.title h1 {
    font-size: 36px;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 600;
}

.search-container {
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-container,
.recent-posts {
    margin-bottom: 30px;
}

.recent-posts {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}


.recent-posts h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #0066ff;
    padding-bottom: 10px;
}

.recent-posts h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #094b65;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 10px;
}

#search-form {
    display: flex;
    gap: 10px;
}

#search-input {
    flex-grow: 1;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px;
    font-size: 14px;
}

#search-input,
#search-button {
    width: 100%;
    padding: 10px;
}


#search-input:focus {
    box-shadow: 0 0 5px rgba(9, 75, 101, 0.5);
}

#search-button {
    background-color: #0066ff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
}

#search-button:hover {
    background-color: #0a658b;
}

.btns ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin-bottom: 20px;
}

.btns ul li {
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 5px 10px;
    background-color: #f0f0f0;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.btns ul li:hover {
    transform: translateY(-2px);
}

.btns ul li:hover, 
.btns ul li.active {
    background-color: #094b65;
    color: #fff;
}

.blog-content {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    gap: 40px;
}

.blog-posts {
    flex: 1;
    max-width: calc(100% - 340px);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.blog-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 20px;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 15px;
}

.blog-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #094b65;
}

.blog-card .date {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.blog-card p {
    font-size: 14px;
    margin-bottom: 15px;
}

.read-more {
    color: #0a658b;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #094b65;
}

.sidebar-aside {
    width: 300px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0;
    flex-shrink: 0;
}

.sidebar-aside h2{
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 10px;
}

.recent-posts ul {
    list-style-type: none;
    padding: 0;
}

.recent-posts li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.recent-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-posts img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 4px;
}

.recent-posts a {
    color: #094b65;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    line-height: 1.4;
    display: block;
    margin-bottom: 5px;
}

.recent-posts a:hover {
    color: #0066ff;
}

.recent-posts .date {
    font-size: 14px;
    color: #666;
    display: block;
}


footer {
    background: #3586ff;
    width: 100%;
    min-height: 100px;
    margin-top: 100px;
    padding: 40px 50px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

footer .social-icon,
footer .menu {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    flex-wrap: wrap;
}

footer .social-icon li,
footer .menu li {
    list-style: none;
}

footer .social-icon li a {
    font-size: 2em;
    color: #fff;
    margin: 0 10px;
    display: inline-block;
    transition: 0.5s;
}

footer .social-icon li a:hover {
    transform: translateY(-10px);
}

footer .menu li a {
    font-size: 1.1em;
    color: #fff;
    margin: 0 10px;
    display: inline-block;
    text-decoration: none;
    opacity: 0.9;
}

footer .menu li a:hover {
    opacity: 1;
}

footer p {
    color: #fff;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 1em;
}

footer .wave {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('/images/wave.png');
    background-size: 1000px 100px;
    opacity: 0.7;
}

footer .wave#wave1 {
    z-index: 1000;
    opacity: 1;
    bottom: 0;
    animation: animateWave 4s linear infinite;
}

footer .wave#wave2 {
    z-index: 999;
    opacity: 0.5;
    bottom: 10px;
    animation: animateWave_2 4s linear infinite;
}

footer .wave#wave3 {
    z-index: 1000;
    opacity: 0.2;
    bottom: 15px;
    animation: animateWave 3s linear infinite;
}

footer .wave#wave4 {
    z-index: 999;
    opacity: 0.7;
    bottom: 20px;
    animation: animateWave_2 3s linear infinite;
}

@keyframes animateWave {
    0% {
        background-position-x: 1000px;
    }
    100% {
        background-position-x: 0px;
    }
}

@keyframes animateWave_2 {
    0% {
        background-position-x: 0px;
    }
    100% {
        background-position-x: 1000px;
    }
}

.sidebar {
    position: fixed;
    top: 0;
    right: -100%; /* Start off-screen */
    height: 100vh;
    width: 80%; /* Make it responsive */
    max-width: 400px;
    z-index: 999;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    transition: right 0.3s ease-in-out;
    padding-top: 60px;
}

.sidebar .dropdown .drop-down {
    display: none;
    padding-left: 20px;
}

.sidebar .dropdown.active .drop-down {
    display: block;
}

.sidebar .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar .dropdown-icon {
    transition: transform 0.3s ease;
}

.sidebar .dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}

.sidebar.active {
    right: 0;
}

.sidebar li {
    width: 100%;
    padding: 10px 20px;
}

.sidebar a {
    width: 100%;
    display: block;
    color: #094b65;
    text-decoration: none;
    font-size: 1.1em;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

.menu-button{
    z-index: 10;
    display: none;
}

@media (max-width: 1920px) {
    #header {
        padding: 30px 100px;
    }
    #header img {
        width: 350px;
        height: 110px;
    }

    .slide-container {
        display: flex;
        justify-content: center;
    }

    .company-intro {
        max-width: 1200px;
        padding: 20px;
        gap: 40px;
    }

    .services-container {
        max-width: 1200px;
        padding: 40px 20px;
    }

    .infosingkat-container {
        max-width: 1000px;
        padding: 30px;
    }
}

@media (min-width: 1001px) and (max-width: 1328px) {
    #header {
        padding: 15px 2%;
    }

    #header ul {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    #header ul li {
        margin-left: 10px;
        margin-bottom: 5px;
    }

    #header ul li a {
        font-size: 14px;
        padding: 8px 12px;
    }

    #header img {
        max-width: 250px;
        max-height: 80px;
    }
    
    #header ul li .drop-down {
        width: 250px;
    }
  }
  
  /* Existing media query for screens larger than 901px */
  @media (min-width: 1001px) {
    #header {
      top: 0;
      left: 0;
      width: 100%;
      padding: 20px 5%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      z-index: 10000;
      background-color: #fff;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    #header .logo {
      margin-right: 20px;
    }
  
    #header ul {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      margin: 0;
      padding: 0;
      flex-wrap: nowrap; /* Prevent wrapping for consistent layout */
    }
  
    #header ul li {
      list-style: none;
      margin-left: 20px;
    }
  
    #header ul li a {
      text-decoration: none;
      color: #094b65;
      font-size: 18px;
      padding: 10px 20px;
      border-radius: 20px;
      transition: background-color 0.3s ease, color 0.3s ease;
    }
  
    #header ul li a:hover,
    #header ul li a.active {
      background: #094b65;
      color: #fff;
    }
  
    #header ul li .drop-down {
      width: 350px;
    }
  
    .menu-button {
      display: none;
    }
  
    main {
      padding-top: 120px; /* Adjust based on your navbar height */
    }
  }
  
  /* Desktop (1329px and above) */
@media (min-width: 1329px) {
    #header {
        padding: 20px 5%; /* Maintain balanced padding */
    }

    #header ul li {
        margin-left: 25px; /* Space out menu items slightly */
    }

    #header ul li a {
        font-size: 20px; /* Increase font size for better readability */
        padding: 12px 20px; /* Adjust padding for a cohesive look */
        color: #094b65; /* Consistent color for text */
    }

    #header img {
        max-width: 320px; /* Slightly larger logo for visibility */
        max-height: 105px;
        transition: transform 0.3s ease; /* Add a smooth scaling effect */
    }

    #header img:hover {
        transform: scale(1.05); /* Slightly enlarge logo on hover */
    }

    #header ul li .drop-down {
        width: 300px; /* Keep dropdown width consistent */
    }

    #header ul li .drop-down li a {
        padding: 10px 15px;
        font-size: 18px; /* Increase font size in dropdown for readability */
        color: #094b65;
    }
}


  @media (max-width: 1418px) {

    #header img {
      width: 250px;
      height: 70px;
  }
}

  @media (max-width: 1001px) {
    #header ul li a {
        font-size: 10px;
        padding: 6px 12px;
      }

      #header img {
        width: 250px;
        height: 90px;
    }
  }

  /* Tablet (1245px to 1001px) */
@media (min-width: 1001px) and (max-width: 1245px) {
    #header {
        padding: 15px 2%;
        width: 100%; /* Ensure the header width is within the screen */
        box-sizing: border-box; /* Include padding in the element's width */
    }

    #header ul {
        flex-wrap: wrap; /* Allow items to wrap within the container */
        justify-content: flex-end; /* Align items to the right */
    }

    #header ul li {
        margin-left: 10px;
        margin-bottom: 5px;
    }

    #header ul li a {
        font-size: 14px; /* Reduce font size for better fit */
        padding: 8px 12px; /* Adjust padding for links */
    }

    #header img {
        max-width: 250px;
        max-height: 80px;
    }
    
    /* Ensure dropdown menu doesn't overflow */
    #header ul li .drop-down {
        width: 250px; /* Adjust width to fit smaller screens */
    }
}
/* Responsive styles for 900px width */
@media (max-width: 1000px) {
    #header {
        padding: 12px;
    }

    .hideOnMobile {
        display: none;
    }

    .menu-button {
        display: block !important;
    }

    .blog-container {
        padding: 10px;
        margin-top: 30px;
    }

    header.title {
        padding: 80px 0px 20px 0px;
    }

    header.title h1 {
        font-size: 28px;
    }

    .search-container {
        order: 1;
        margin-bottom: 20px;
    }

    #search-input {
        width: 70%;
    }

    #search-button {
        width: 30%;
    }

    .blog-content {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .blog-posts {
        order: 3;
        max-width: 100%;
    }

    .sidebar-aside {
        order: 1;
        width: 100%;
    }

    .sidebar-aside .recent-posts {
        order: 5;
        width: 100%;
    }

    .blog-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .blog-card {
        font-size: 14px;
    }

    .blog-card h3 {
        font-size: 16px;
    }

    .btns {
        order: 2;
        margin: 0 0 20px 0;
    }

    .btns ul {
        flex-wrap: wrap;
        display: flex;
        justify-content: center;
        gap: 10px;
    }

    .btns ul li {
        font-size: 14px;
        padding: 8px 15px;
        background-color: #f0f0f0;
        border-radius: 20px;
        cursor: pointer;
    }

    .btns ul li.active {
        background-color: #094b65;
        color: white;
    }

}

/* Responsive styles for 400px width */
@media (max-width: 500px) {
    #preloader{
        background-size: 40%;
    }
    
    #header {
        padding: 7px;
    }

    #header img{
        width: 250px;
        height: 75px;
    }

    .sidebar {
        width: 100%;
        max-width: none;
        padding-top: 50px;
    }

    .sidebar li {
        padding: 8px 15px;
    }

    .close-btn {
        top: 10px;
        right: 15px;
    }

    .logo img {
        width: 180px;
        height: auto;
    }

    header.title h1 {
        font-size: 24px;
    }

    .search-container {
        max-width: 100%;
        order: 1;
        margin-bottom: 20px;
    }

    #search-input {
        width: 65%;
    }

    #search-button {
        width: 35%;
    }

    .blog-content {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .blog-posts {
        order: 3;
        max-width: 100%;
    }

    .sidebar-aside {
        order: 3;
        width: 100%;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;        
    }

    .blog-card {
        padding: 10px;
    }

    .blog-card h3 {
        font-size: 16px;
    }

    .blog-card .date,
    .blog-card p {
        font-size: 12px;
    }

    .btns {
        order: 2;
        margin: 0 0 20px 0;
    }

    .btns ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .btns ul li {
        font-size: 12px;
        padding: 8px 12px;
        background-color: #f0f0f0;
        border-radius: 20px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .btns ul li:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    }

    .btns ul li.active {
        background-color: #094b65;
        color: white;
        box-shadow: 0 2px 4px rgba(9,75,101,0.3);
    }

    footer .social-icon{
        margin-top: -10px;
        margin-right: 10px;
    }

    footer .menu li{
        margin-right: 3px;
    }

    footer .menu li a {
        font-size: 0.7em;
        margin: 0 5px;
    }

    footer p {
        font-size: 0.5em;
        margin-left: 30px;
    }
}
