h1 {
    color: grey
}

img {
    width: 250px
}

body {
  color: #333333;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  max-width: none !important;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
    flex-grow: 1;
    width: min(1200px, 94vw);        
    margin: 0 auto;
}

footer {
    color: #888888;
    border-top: 1px solid #eeeeee;
    margin-top: 16px;
    padding: 16px 0;
}

header {
    margin-top: 16px;
    margin-bottom: 16px;
}

h1 {
    font-size: 64px;
    margin-bottom: 16px;
}

header a {
    color: #888888;
    margin-right: 16px;
    text-decoration: none;
}

.portrait {
    width: 180px;
}

input {
    border: 2px solid #cccccc;
    padding: 8px;
}

button {
    cursor: pointer;
    border: 0px solid #cccccc;
    background: #888888;
    color: white;
    padding: 9px;
}

:root{
  --ink:#2D2A26;
  --line:#F4E8C8;
}

.about-hero{
  background: var(--brand);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

/* Grid about: baris 1 tetap 2 kolom, baris 2 span full */
.about-grid{
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: start;
}

.features{ grid-column:1; grid-row:1; }
.about-profile{ 
  grid-column:2; 
  grid-row:1; 
  display:flex; 
  flex-direction:column;
  gap: 12px;  /* jarak antar elemen dalam kartu */
}

.privacy-block-full{ 
  grid-column: 1 / -1;  /* span 2 kolom */
  grid-row:2; 
}

/* Tombol GitHub di dalam kartu profil */
.about-profile .btn-gh{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fff;
  color: #2D2A26;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 8px;  /* jarak dari paragraf */
}
.about-profile .btn-gh:hover{ background:#FFF8EA; }
.gh-icon{ color:#000; }

.faq-layout{
  display:grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
  align-items: start;
}

.faq-heading{
  margin: 0 0 10px 0;
}

.faq-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px; 
}

.faq-item{
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: default;          
  user-select: text;
}

.faq-item .dot{
  width: 10px; height: 10px; border-radius: 50%;
  background: #6C63FF;
  margin-top: 6px;
}

.faq-body{ display: grid; gap: 6px; }
.faq-q{ font-weight: 700; }
.faq-a{
  color: #444;
  text-align: justify;
  text-justify: inter-word;
  margin: 0;               
}

.about-grid .card/*, .about-grid .privacy-block, .about-grid .social-block */{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.about-profile{
  padding: 16px;                
}
.about-profile,
.about-profile p,
.about-profile li{
  text-align: left !important; 
  text-justify: auto;
  letter-spacing: normal;
  word-spacing: normal;
  white-space: normal;
}
.about-profile p{ line-height: 1.55; margin: 6px 0 0; }

.faq-a .faq-diagram{
  display: block;
  width: clamp(600px, 92%, 1000px); 
  height: auto;
  margin: 12px auto 6px;            
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.site-header{
  text-align: center;
  margin-bottom: 16px;
}
.site-header h1{
  margin: 0 0 8px 0;
}
.site-nav{
  display: inline-flex;
  gap: 12px;
}
.site-nav a{
  text-decoration: none;
  color: var(--ink);
  padding: 4px 6px;
  border-radius: 6px;
}
.site-nav a:hover{ background: #FFF8EA; }

.news-header h2{ margin:0 0 8px 0; }
.news-toolbar{
  display:flex; gap:10px; flex-wrap:wrap; align-items:center;
  margin: 6px 0 8px 0;
}
.news-toolbar input, .news-toolbar select{
  border:1px solid var(--line);
  padding:8px 10px; border-radius:10px; flex:1 1 220px;
}
.news-toolbar button{
  padding: 9px 14px; border-radius:10px; background:#2D2A26; color:#fff; border:none; cursor:pointer;
}

.news-grid{
  display:grid; gap:14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px){
  .news-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px){
  .news-grid{ grid-template-columns: 1fr; }
}
.news-card{
  background:#fff; border:1px solid var(--line); border-radius:12px; overflow:hidden; display:flex; flex-direction:column;
}
.news-card .cover{ display:block; aspect-ratio:16/9; overflow:hidden; background:#f7f3ea; }
.news-card img{ width:100%; height:100%; object-fit:cover; display:block; }
.news-content{ padding:12px; display:grid; gap:6px; }
.news-content .title{ margin:0; font-size:18px; }
.news-content .title a{ color:var(--ink); text-decoration:none; }
.news-content .desc{ margin:0; color:#444; text-align:justify; text-justify:inter-word; }
.news-content .meta{ display:flex; justify-content:space-between; gap:8px; color:#777; font-size:12px; }

/* Hero pencarian cuaca: center & elegan */
.hero-search{
  max-width: 580px;
  margin: 60px auto 40px;
  text-align: center;
  display: flex; flex-direction: column; gap: 16px;
}
.hero-title{
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}

.search-form{
  display: flex; gap: 10px;
  align-items: stretch;
}
.search-form input{
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 16px;
  outline: none;
}
.search-form input:focus{
  border-color: var(--ink);
}
.search-form button{
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}
.search-form button:hover{
  background: #0e1d30;
}

.msg{
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: left;
}
.msg:empty{ display: none; }
.msg-1{ font-weight: 600; color: var(--ink); }
.msg-2{ color: #444; }

/* Judul halaman (dari {{judul}}) */
.main-content h1,
.page-title h1,
.hero-title,
h1 {
  color: #003161;
}

@media (min-width: 1400px){
  .main-content{ width: min(1280px, 92vw); }
  .news-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* CV Section */
.cv-section{
  margin-top: 40px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.cv-heading{
  margin: 0 0 20px 0;
  color: #003161;
  font-size: 32px;
  font-weight: 800;
}

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

.cv-card{
  background: #FAFAFA;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cv-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.cv-icon{
  font-size: 48px;
  margin-bottom: 8px;
}

.cv-card h3{
  margin: 0;
  font-size: 20px;
  color: #003161;
  font-weight: 700;
}

.cv-role{
  margin: 0;
  font-size: 14px;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cv-desc{
  margin: 6px 0 0 0;
  color: #444;
  line-height: 1.5;
  text-align: justify;
  text-justify: inter-word;
}

.cv-tech{
  list-style: none;
  margin: 8px 0 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cv-tech li{
  background: #003161;
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 720px){
  .cv-grid{ grid-template-columns: 1fr; }
  .about-grid{ grid-template-columns:1fr; }
  .features, .about-profile, .privacy-block-full{ grid-column:1; grid-row:auto; }
}