/*
Theme Name: AMPNews WP
Theme URI: https://demo-ampnews.blogspot.com/
Author: Converted
Description: Hybrid theme - Homepage from Sahabat AMP + Single Post from AMPNews. Mobile-first Android optimized.
Version: 1.1.0
Requires at least: 5.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ampnews-wp
Tags: blog, news, one-column, custom-menu, featured-images, mobile-first
*/

/* ==================================================
   FONTS
================================================== */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxK.woff2) format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmEU9fBBc4.woff2) format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfBBc4.woff2) format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v20/pxiEyp8kv8JHgFVrJJfecg.woff2) format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2) format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLCz7Z1xlFQ.woff2) format('woff2');
}
@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(https://fonts.gstatic.com/s/materialicons/v140/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2');
}
.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: inherit;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  vertical-align: middle;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* ==================================================
   RESET & BASE
================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; }
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f6fa;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #222;
  -webkit-text-size-adjust: 100%;
}
a { color: #4285f4; text-decoration: none; transition: all .3s; }
a:hover { color: #7b1fa2; }
img { max-width: 100%; height: auto; border: 0; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; color: #222; }
.clear { clear: both; }

/* ==================================================
   HEADER - Sahabat style
================================================== */
.header-atas { display:none !important; 
  position: relative;
  background: #fff;
  overflow: hidden;
  padding: 20px 15px 10px;
  text-align: center;
}
.header-batas {
  max-width: 768px;
  margin: 0 auto;
}
.site-branding {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}
.site-branding .site-logo-svg,
.site-branding img.site-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.site-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0;
  line-height: 1.2;
}
.site-title a { color: #222; }
.site-title a:hover { color: #4285f4; }

.social-iconic {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 0 18px;
}
.social-iconic a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  color: #fff;
}
.social-iconic a svg { width: 20px; height: 20px; fill: #fff; }
.social-iconic .fb { background: #3a579a; }
.social-iconic .ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-iconic .blogger { background: #ff5722; }
.social-iconic .yt { background: #ff0000; }
.social-iconic a:hover { opacity: 0.9; }

.main-nav {
  background: #4285f4;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -15px;
}
.main-nav ul {
  display: flex;
  white-space: nowrap;
  padding: 0 10px;
}
.main-nav li a {
  display: block;
  padding: 12px 16px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.main-nav li a:hover,
.main-nav li.current-menu-item a {
  background: rgba(0,0,0,0.12);
  color: #fff;
}

.search-atas {
  margin: 18px 0 10px;
  width: 100%;
}
.search-atas form {
  position: relative;
  display: flex;
}
.search-atas input[type="search"] {
  flex: 1;
  background: #fff;
  border: 0;
  padding: 12px 15px;
  border-radius: 6px 0 0 6px;
  outline: none;
  font-size: 14px;
  color: #333;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.search-atas button {
  background: #7f8fa6;
  color: #fff;
  border: 0;
  padding: 0 16px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.search-atas button .material-icons { font-size: 22px; }

/* ==================================================
   CONTENT
================================================== */
.amz-wrapper {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 12px 30px;
}
.main-wrapper { width: 100%; }

/* Homepage cards */
.blog-posts { padding-top: 5px; }
.post-card {
  background: #fff;
  margin: 0 0 18px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow .3s;
}
.post-card:hover { box-shadow: 0 8px 20px -8px rgba(0,0,0,0.15); }
.post-card .post-thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #e8eaf0;
}
.post-card .post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-card .post-inner { padding: 16px 16px 18px; }
.post-card .post-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
  color: #111;
}
.post-card .post-title a { color: #111; }
.post-card .post-title a:hover { color: #4285f4; }
.post-card .post-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #888;
  margin-bottom: 10px;
}
.post-card .post-meta .author-check {
  color: #4285f4;
  font-size: 16px;
}
.post-card .post-snippet {
  font-size: 14px;
  line-height: 1.55;
  color: #777;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==================================================
   SINGLE POST (AMPNews style kept)
================================================== */
/* Global AMPNews Header (homepage + single) */
.single-header-ampnews {
  display: block;
  background: #1a1a1a;
  width: 100%;
  height: 60px;
  position: relative;
  z-index: 999;
  overflow: hidden;
}
.single-header-ampnews .site-header-red {
  background: #FF4D3C;
  height: 60px;
  float: left;
  padding: 0 15px;
  display: flex;
  align-items: center;
}
.single-header-ampnews .site-header-red a {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
}
.single-header-ampnews .site-header-red img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.single-menu-bar-old { display:none; 
  background: #fff;
  height: 42px;
  border-top: 4px solid #FF4D3C;
  display: flex;
  align-items: center;
  padding: 0 15px;
  gap: 15px;
  overflow-x: auto;
}
.single-menu-bar > a {
  color: #111;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-family: 'Poppins', sans-serif;
}
.single-menu-bar .top-menu-links {
  display: flex;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.single-menu-bar .top-menu-links a {
  color: #333;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0 10px;
  white-space: nowrap;
}
.single-menu-bar .top-menu-links a:hover {
  color: #FF4D3C;
}



/* ==================================================
   FIXED / STICKY HEADER
================================================== */
.site-header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1a1a1a;
}
.admin-bar .site-header-fixed {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .site-header-fixed { top: 46px; }
}
.header-spacer {
  height: 102px; /* 60 + 42 */
}
.admin-bar .header-spacer {
  height: 134px;
}

.single-header-ampnews {
  display: block;
  background: #1a1a1a;
  width: 100%;
  height: 60px;
  position: relative;
  overflow: hidden;
}
.single-header-ampnews .site-header-red {
  background: #FF4D3C;
  height: 60px;
  float: left;
  padding: 0 15px;
  display: flex;
  align-items: center;
}
.single-header-ampnews .site-header-red a {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
}
.single-header-ampnews .site-header-red img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

/* ==================================================
   MENU BAR - Hamburger + Side by side links
================================================== */
#menu.ampnews-menu {
  background: #fff;
  height: 42px;
  border-top: 4px solid #FF4D3C;
  position: relative;
  z-index: 998;
  display: flex;
  align-items: center;
  padding: 0;
}
#menu.ampnews-menu input#menu-toggle {
  display: none;
}
#menu.ampnews-menu .menu-toggle-label {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 12px 0 15px;
  cursor: pointer;
  color: #111;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  flex-shrink: 0;
  border-right: 1px solid #eee;
}
#menu.ampnews-menu .menu-toggle-label .material-icons {
  font-size: 20px;
}

/* Side by side menu items */
#menu.ampnews-menu .menu-inline {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 5px;
  list-style: none;
  overflow-x: auto;
  flex: 1;
  height: 42px;
  -webkit-overflow-scrolling: touch;
}
#menu.ampnews-menu .menu-inline li {
  flex-shrink: 0;
}
#menu.ampnews-menu .menu-inline li a {
  display: block;
  padding: 0 12px;
  line-height: 42px;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
}
#menu.ampnews-menu .menu-inline li a:hover,
#menu.ampnews-menu .menu-inline li.current-menu-item a {
  color: #FF4D3C;
}

/* Dropdown full menu */
#menu.ampnews-menu .menu-list {
  display: none;
  position: absolute;
  top: 42px;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  z-index: 1000;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 70vh;
  overflow-y: auto;
}
#menu.ampnews-menu input#menu-toggle:checked ~ .menu-list {
  display: block;
}
#menu.ampnews-menu .menu-list li {
  border-bottom: 1px solid #eee;
}
#menu.ampnews-menu .menu-list li a {
  display: block;
  padding: 13px 18px;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: 'Poppins', sans-serif;
}
#menu.ampnews-menu .menu-list li a:hover {
  background: #FF4D3C;
  color: #fff;
}
#menu.ampnews-menu .menu-list .sub-menu {
  background: #FF4D3C;
  padding: 0;
}
#menu.ampnews-menu .menu-list .sub-menu a {
  color: #fff;
  padding-left: 30px;
  font-size: 13px;
  text-transform: none;
}
#menu.ampnews-menu .menu-list .sub-menu a:hover {
  background: #DF4E41;
}

.single-menu-bar { display: none !important; }

body.single-post {
  background: #E9E9E9;
  font-family: 'Poppins', sans-serif;
  font-size: 13.6px;
  line-height: 22px;
}
body.single-post .header-atas { display:none !important;  display: none; }


body.single-post .amz-wrapper {
  max-width: 1024px;
  padding: 0;
}
.single-article {
  background: #fff;
  margin: 0 0 20px;
}
.single-featured {
  width: 100%;
  height: 240px;
  overflow: hidden;
}
.single-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.single-post-header { padding: 18px 16px 10px; }
.single-post-header h1 {
  font-size: 22px;
  line-height: 1.3;
  color: #222;
  font-weight: 700;
  margin: 0 0 12px;
  text-transform: capitalize;
  font-family: 'Poppins', sans-serif;
}
.single-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}
.single-meta .post-date { font-size: 12px; color: #888; }
.social-share { display: flex; gap: 6px; }
.social-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  color: #fff;
}
.social-share .share-twitter { background: #1DA1F2; }
.social-share .share-facebook { background: #3b5998; }
.social-share .share-pinterest { background: #bd081c; }
.social-share .share-linkedin { background: #0077b5; }
.social-share a:hover { opacity: 0.85; color: #fff; }

.entry-content {
  padding: 0 16px 30px;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  font-family: 'Poppins', sans-serif;
}
.entry-content p { margin: 0 0 1.2em; }
.entry-content h2, .entry-content h3 {
  margin: 1.4em 0 0.6em;
  font-weight: 600;
  color: #222;
}
.entry-content img { margin: 1em 0; border-radius: 4px; }
.entry-content a { color: #FF4D3C; }
.entry-content a:hover { border-bottom: 1px solid #FF4D3C; }

.single-tags {
  padding: 15px 16px;
  background: #fff;
  border-top: 1px solid #eee;
}
.single-tags a {
  display: inline-block;
  margin: 0 6px 8px 0;
  padding: 4px 10px;
  background: #FF4D3C;
  color: #fff;
  font-size: 11px;
  border-radius: 3px;
  text-transform: uppercase;
  font-weight: 500;
}
.single-tags a:hover { background: #DF4E41; color: #fff; }

.related-posts {
  background: #fff;
  padding: 20px 16px;
  margin-top: 15px;
}
.related-posts h3 {
  font-size: 16px;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #FF4D3C;
  color: #222;
  text-transform: uppercase;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}
.related-item {
  display: flex;
  margin-bottom: 12px;
  gap: 12px;
}
.related-item img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}
.related-item h4 {
  font-size: 13px;
  line-height: 1.35;
  margin: 0;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
}
.related-item h4 a { color: #333; }
.related-item h4 a:hover { color: #FF4D3C; }

/* Footer */
.site-footer {
  background: #1a1a1a;
  color: #aaa;
  text-align: center;
  padding: 25px 15px;
  font-size: 12px;
  margin-top: 10px;
}
.site-footer a { color: #4285f4; }
.site-footer a:hover { color: #fff; }
body.single-post .site-footer a { color: #FF4D3C; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 15px 0 25px;
}
.pagination a, .pagination span {
  display: inline-block;
  padding: 8px 14px;
  background: #fff;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.pagination a:hover { background: #4285f4; color: #fff; }
.pagination .current { background: #4285f4; color: #fff; }
body.single-post .pagination a:hover,
body.single-post .pagination .current { background: #FF4D3C; }

/* Comments */
.comments-area {
  background: #fff;
  padding: 20px 16px;
  margin-top: 15px;
}
.comments-title {
  font-size: 16px;
  margin-bottom: 15px;
  text-transform: uppercase;
  border-bottom: 2px solid #4285f4;
  padding-bottom: 8px;
  font-family: 'Poppins', sans-serif;
}
body.single-post .comments-title { border-bottom-color: #FF4D3C; }

.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;
}
.no-posts {
  background: #fff; padding: 40px 20px; text-align: center; color: #666; border-radius: 8px;
}

@media (min-width: 600px) {
  .post-card .post-thumb { height: 240px; }
  .post-card .post-title { font-size: 20px; }
  .single-featured { height: 320px; }
  .single-post-header h1 { font-size: 26px; }
}
@media (min-width: 768px) {
  .amz-wrapper { padding: 0 0 40px; }
  .header-atas { display:none !important;  padding: 25px 20px 15px; }
  .main-nav { margin: 0; }
}

/* ==================================================
   ALSO READ BOX (exact myenterprise style)
================================================== */
.Teckshop-related-posts {
  display: flex;
  border: 1px dashed #9b1717;
  border-radius: 5px;
  position: relative;
  padding: 12px 10px 10px;
  height: auto;
  margin: 18px 0 14px;
  background-color: #fffdf9;
}
.Teckshop-related-posts:before {
  content: "Also read";
  position: absolute;
  top: -11px;
  font-size: 13px;
  color: #cb0000;
  left: 12px;
  background: #fff;
  padding: 0 6px;
  font-weight: 500;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
}
.Teckshop-related-post {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}
.Teckshop-related-postimage {
  flex-shrink: 0;
}
.Teckshop-rp-image {
  width: 100px !important;
  height: 70px !important;
  object-fit: cover;
  border-radius: 4px !important;
  display: block;
}
.Teckshop-related-posttitle,
.Teckshop-rp-link {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  margin-top: 2px;
  text-decoration: underline;
  color: #222;
  font-family: 'Poppins', sans-serif;
}
.Teckshop-related-posttitle:hover,
.Teckshop-rp-link:hover {
  color: #cb0000;
}

/* ==================================================
   WHATSAPP JOIN NOW CARD
================================================== */
.group-card {
  margin: 16px 0 20px;
  position: relative;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #f0f8ff;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  justify-content: space-between;
  overflow: hidden;
}
.whatsapp-card {
  animation: whatsapp-border-animation 1.2s infinite;
}
@keyframes whatsapp-border-animation {
  0%   { border-color: transparent; }
  50%  { border-color: #25d366; }
  100% { border-color: transparent; }
}
.wa-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wa-label {
  font-weight: 700;
  font-size: 14px;
  color: #222;
  font-family: 'Poppins', sans-serif;
}
.wa-join-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25d366;
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none !important;
  font-family: 'Poppins', sans-serif;
}
.wa-join-btn:hover {
  background: #1ebe57;
  color: #fff !important;
}

/* ==================================================
   RELATED + POPULAR SECTIONS (bottom)
================================================== */
.related-posts-section,
.popular-posts-section {
  background: #fff;
  padding: 18px 14px;
  margin: 15px 0 0;
  border-radius: 0;
}
.related-posts-section h3,
.popular-posts-section h3 {
  font-size: 16px;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #FF4D3C;
  color: #222;
  text-transform: uppercase;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}
.rp-item {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: center;
}
.rp-item:last-child { margin-bottom: 0; }
.rp-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  overflow: hidden;
  border-radius: 3px;
}
.rp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rp-title {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  color: #333;
  font-family: 'Poppins', sans-serif;
}
.rp-title:hover {
  color: #FF4D3C;
}

.home-bottom-sections {
  margin-top: 10px;
}

@media (min-width: 600px) {
  .Teckshop-rp-image {
    width: 120px !important;
    height: 80px !important;
  }
  .Teckshop-related-posttitle {
    font-size: 16px;
  }
}
