# style.css — Refactored Modern JDIH Theme

```css
/**
* Modernized JDIH Theme
* Refactored from legacy SoftLand template
* Optimized for:
* - Government portal UI
* - Responsive layout
* - Fixed header
* - Modern cards
* - News layout
* - Detail pages
*/

/* =====================================================
   RESET & GLOBAL
===================================================== */

html{
  overflow-x:hidden;
  scroll-behavior:smooth;
}

body{
  font-family:'Roboto',sans-serif;
  background:#f8fafc;
  color:#475569;
  line-height:1.7;
  overflow-x:hidden;
}

*{
  box-sizing:border-box;
}

a{
  text-decoration:none;
  transition:.3s ease;
}

a:hover{
  text-decoration:none;
}

img{
  max-width:100%;
  height:auto;
}

h1,h2,h3,h4,h5,h6{
  font-family:'Poppins',sans-serif;
  color:#0f172a;
  font-weight:700;
}

.container{
  position:relative;
  z-index:2;
}

section{
  overflow:hidden;
}

/* =====================================================
   HEADER
===================================================== */

#header{

  position:fixed;

  top:0;
  left:0;
  right:0;

  z-index:999;

  background:
    linear-gradient(
      135deg,
      rgba(30,64,175,.96),
      rgba(14,165,233,.94)
    );

  backdrop-filter:blur(10px);

  -webkit-backdrop-filter:blur(10px);

  padding:16px 0;

  transition:all .3s ease;

  box-shadow:
    0 10px 30px rgba(0,0,0,.08);
}

#header.header-scrolled{

  padding:10px 0;

  background:
    rgba(30,64,175,.96);

  box-shadow:
    0 10px 30px rgba(0,0,0,.12);
}

.header-container{

  display:flex;

  justify-content:space-between;

  align-items:center;

  min-height:80px;
}

.brand-wrap{

  display:flex;

  align-items:center;

  text-decoration:none;
}

.navbar-logo{


    width:46px;

    height:auto;

    margin-right:12px;
}

.brand-text h1{

  margin:0;

  color:#fff;

  font-size:1.7rem;

  font-weight:800;

  line-height:1.2;
}

.brand-text span{

  display:block;

  color:rgba(255,255,255,.88);

  font-size:13px;

  margin-top:4px;
}

/* =====================================================
   NAVBAR
===================================================== */

.navbar{
  display:flex;
  align-items:center;
}

.navbar ul{

  display:flex;

  align-items:center;

  list-style:none;

  margin:0;
  padding:0;
}

.navbar ul li{
  position:relative;
  margin-left:24px;
}

.navbar ul li a{

  color:#fff !important;

  font-size:15px;

  font-weight:600;

  transition:.3s ease;
}

.navbar ul li a:hover{
  color:#dbeafe !important;
}

.navbar .active > a{
  position:relative;
}

.navbar .active > a::after{

  content:'';

  position:absolute;

  left:0;
  bottom:-8px;

  width:100%;
  height:2px;

  background:#fff;

  border-radius:10px;
}

.dropdown-menu{

  border:none;

  border-radius:18px;

  padding:14px;

  min-width:240px;

  background:#fff;

  box-shadow:
    0 20px 40px rgba(0,0,0,.12);
}

.dropdown-menu li{
  margin:0;
}

.dropdown-menu a{

  display:block;

  padding:12px 16px;

  border-radius:12px;

  color:#0f172a !important;
}

.dropdown-menu a:hover{

  background:#eff6ff;

  color:#2563eb !important;
}

.mobile-nav-toggle{

  color:#fff !important;

  font-size:28px;

  cursor:pointer;

  display:none;
}

/* =====================================================
   HERO
===================================================== */

.hero-section{

  position:relative;

  background:
    linear-gradient(
      135deg,
      rgba(30,64,175,.95),
      rgba(14,165,233,.90)
    );

  padding:180px 0 100px;
}

.hero-content{
  position:relative;
  z-index:2;
}

.hero-badge{

  display:inline-block;

  padding:10px 18px;

  border-radius:50px;

  background:rgba(255,255,255,.12);

  color:#fff;

  font-size:14px;

  font-weight:600;

  margin-bottom:28px;
}

.hero-section h1{

  font-size:3.8rem;

  font-weight:800;

  line-height:1.15;

  color:#fff;

  margin-bottom:28px;

  letter-spacing:-2px;
}

.hero-description{

  font-size:18px;

  line-height:1.9;

  color:rgba(255,255,255,.92);

  max-width:620px;

  margin-bottom:40px;
}

.hero-buttons{

  display:flex;

  gap:16px;

  flex-wrap:wrap;
}

.hero-buttons .btn{

  padding:14px 28px !important;

  border-radius:14px;

  font-weight:700;
}

.hero-image img{

  max-width:85%;

  filter:
    drop-shadow(
      0 25px 50px rgba(0,0,0,.20)
    );
}

/* =====================================================
   BUTTON
===================================================== */

.btn{

  border:none;

  border-radius:14px;

  padding:14px 28px !important;

  font-weight:600;
}

.btn-primary{

  background:
    linear-gradient(
      135deg,
      #2563eb,
      #0ea5e9
    );

  color:#fff;

  box-shadow:
    0 10px 25px rgba(0,0,0,.08);
}

.btn-primary:hover{
  transform:translateY(-2px);
}

/* =====================================================
   FORM
===================================================== */

.form-control{

  height:52px;

  border-radius:14px;

  border:1px solid #dbe4ee;

  box-shadow:none;
}

.form-control:focus{

  border-color:#2563eb;

  box-shadow:
    0 0 0 4px rgba(37,99,235,.10);
}

/* =====================================================
   SECTION
===================================================== */

.section{
  padding:90px 0;
}

.section-sm{
  padding:70px 0;
}

.section-heading{

  font-size:2.8rem;

  font-weight:800;

  letter-spacing:-1px;

  margin-bottom:20px;
}

/* =====================================================
   SERVICES
===================================================== */

.services .icon-box{

  padding:28px 22px;

  border-radius:20px;

  background:#fff;

  border:1px solid #edf2f7;

  box-shadow:0 8px 25px rgba(0,0,0,.05);

  transition:all .3s ease;

  height:100%;
}

.services .icon-box:hover{

  transform:translateY(-6px);

  box-shadow:0 20px 35px rgba(0,0,0,.08);
}

.services .icon{

  width:72px;
  height:72px;

  margin:0 auto 20px;

  border-radius:18px;

  display:flex;
  align-items:center;
  justify-content:center;

  background:
    linear-gradient(
      135deg,
      rgba(37,99,235,.12),
      rgba(14,165,233,.12)
    );
}

.services .icon i{

  font-size:32px;

  color:#2563eb;
}

.services .title{

  font-size:20px;

  font-weight:700;

  margin-bottom:12px;
}

.services .description{

  font-size:14px;

  line-height:1.8;
}

/* =====================================================
   CARD
===================================================== */

.content-card,
.sidebar-card,
.news-list-wrapper,
.search-wrapper{

  background:#fff;

  border-radius:24px;

  border:1px solid #edf2f7;

  box-shadow:
    0 10px 30px rgba(0,0,0,.04);
}

.content-card,
.sidebar-card{
  padding:32px;
}

.search-wrapper{
  padding:30px;
}

/* =====================================================
   PAGE HERO
===================================================== */

.page-hero,
.page-hero-sm,
.detail-hero{

  padding:150px 0 90px;

  background:
    linear-gradient(
      135deg,
      rgba(30,64,175,.95),
      rgba(14,165,233,.90)
    );

  text-align:center;

  color:#fff;
}

.page-title,
.page-title-sm,
.detail-title{

  color:#fff;

  font-weight:800;
}

.page-title{
  font-size:3rem;
}

.page-title-sm,
.detail-title{
  font-size:2.5rem;
}

.page-description,
.page-description-sm,
.detail-description{

  max-width:700px;

  margin:auto;

  line-height:1.9;

  color:rgba(255,255,255,.92);
}

/* =====================================================
   BREADCRUMB
===================================================== */

.breadcrumb-modern{

  margin-bottom:22px;

  font-size:14px;
}

.breadcrumb-modern a{
  color:rgba(255,255,255,.85);
}

.breadcrumb-modern span{
  margin:0 8px;
}

/* =====================================================
   NEWS LIST
===================================================== */

.news-list-wrapper{
  padding:10px 30px;
}

.news-list-item{

  display:flex;

  gap:24px;

  padding:30px 0;

  border-bottom:1px solid #edf2f7;
}

.news-list-item:last-child{
  border-bottom:none;
}

.news-thumb{

  width:220px;

  flex-shrink:0;
}

.news-thumb img{

  width:100%;

  height:140px;

  object-fit:cover;

  border-radius:16px;
}

.news-title{

  font-size:22px;

  line-height:1.5;

  font-weight:700;

  margin-bottom:14px;
}

.news-title a{
  color:#0f172a;
}

.news-title a:hover{
  color:#2563eb;
}

.news-excerpt{

  line-height:1.8;

  color:#475569;

  margin-bottom:14px;
}

.news-readmore{

  font-weight:600;

  color:#2563eb;
}

/* =====================================================
   DETAIL PAGE
===================================================== */

.meta-grid{

  display:grid;

  grid-template-columns:
    repeat(auto-fit,minmax(220px,1fr));

  gap:20px;

  margin-bottom:40px;
}

.meta-item{

  background:#f8fafc;

  padding:20px;

  border-radius:18px;
}

.detail-section{
  margin-top:50px;
}

.subject-tags{

  display:flex;

  flex-wrap:wrap;

  gap:12px;
}

.subject-tag{

  padding:10px 16px;

  border-radius:50px;

  background:#eff6ff;

  color:#2563eb;

  font-size:14px;

  font-weight:600;
}

.attachment-list{

  display:flex;

  flex-direction:column;

  gap:14px;
}

.attachment-item{

  display:block;

  padding:14px 18px;

  border-radius:14px;

  background:#f8fafc;

  color:#0f172a;

  font-weight:500;
}

.attachment-item:hover{

  background:#2563eb;

  color:#fff;
}

/* =====================================================
   FOOTER
===================================================== */

.footer{

  background:
    linear-gradient(
      135deg,
      rgba(39,70,133,1),
      rgba(61,179,197,1)
    );

  color:rgba(255,255,255,.85);

  padding:80px 0 30px;

  margin-top:60px;
}

.footer h3{

  color:#fff;

  margin-bottom:25px;
}

.footer a{
  color:rgba(255,255,255,.9);
}

.footer a:hover{
  color:#fff;
}

.social a{

  display:inline-flex;

  align-items:center;

  justify-content:center;

  width:48px;

  height:48px;

  border-radius:50%;

  background:rgba(255,255,255,.15);

  color:#fff;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media(max-width:992px){

  #header{
    padding:12px 0;
  }

  .header-container{
    min-height:72px;
  }

  .navbar-logo{
    width:46px;
  }

  .brand-text h1{
    font-size:1.1rem;
  }

  .brand-text span{
    font-size:11px;
  }

  .mobile-nav-toggle{
    display:block;
  }

  .navbar ul{
    display:none;
  }

  .hero-section{
    padding:160px 0 80px;
    text-align:center;
  }

  .hero-section h1{
    font-size:2.4rem;
  }

  .hero-description{
    margin:auto;
  }

  .hero-buttons{
    justify-content:center;
  }

  .hero-image{
    margin-top:60px;
  }

  .news-list-item{
    flex-direction:column;
  }

  .news-thumb{
    width:100%;
  }

  .news-thumb img{
    height:220px;
  }

  .content-card,
  .sidebar-card{
    padding:24px;
  }

  .page-title,
  .page-title-sm,
  .detail-title{
    font-size:2rem;
  }

}
/* =====================================================
   FIX NAVBAR JDIH
===================================================== */

/* reset navbar lama */

.navbar ul,
.navbar li{

    margin:0;
    padding:0;

    list-style:none;
}

/* navbar wrapper */

#navbar{

    display:flex;

    align-items:center;
}

/* main menu */

#navbar > ul{

    display:flex;

    align-items:center;

    gap:28px;
}

/* menu item */

#navbar > ul > li{

    position:relative;
}

/* main link */

#navbar > ul > li > a{

    color:#fff !important;

    font-size:15px;

    font-weight:600;

    display:flex;

    align-items:center;

    gap:6px;

    padding:10px 0;

    position:relative;
}

/* active */

#navbar > ul > li.active > a::after{

    content:'';

    position:absolute;

    left:0;
    bottom:-6px;

    width:100%;
    height:2px;

    background:#fff;

    border-radius:10px;
}

/* dropdown */

#navbar .dropdown-menu,

#navbar ul ul{

    position:absolute;

    top:100%;

    left:0;

    min-width:220px;

    background:#fff;

    border-radius:14px;

    padding:8px;

    opacity:0;

    visibility:hidden;

    transition:.25s ease;

    box-shadow:
      0 15px 35px rgba(0,0,0,.10);

    z-index:999;

    margin-top:10px;

    display:block !important;
}

/* show dropdown */

#navbar li:hover > ul{

    opacity:1;

    visibility:visible;
}

/* dropdown item */

#navbar ul ul li{

    display:block !important;

    width:100%;

    margin:0;
}

/* dropdown link */

#navbar ul ul li a{

    display:block !important;

    width:100%;

    padding:10px 14px;

    border-radius:10px;

    color:#0f172a !important;

    font-size:13px;

    font-weight:500;

    line-height:1.5;
}

/* hover */

#navbar ul ul li a:hover{

    background:#eff6ff;

    color:#2563eb !important;
}

/* mobile */

.mobile-nav-toggle{

    color:#fff !important;

    font-size:28px;

    cursor:pointer;
}
