/*
Theme Name: Arisha PVT Auto Child
Theme URI: https://arishapvt.com/
Description: DetectResult-inspired premium automotive child theme layout for Arisha PVT.
Author: Arisha PVT
Template: news-magazine-x
Version: 1.0.0
Text Domain: arisha-pvt-auto-child
*/

:root{
  --ap-blue:#071d46;
  --ap-blue-2:#0b4aa2;
  --ap-red:#d71920;
  --ap-bg:#f4f7fb;
  --ap-text:#172033;
  --ap-muted:#6a7890;
  --ap-border:#e7edf6;
  --ap-card:#ffffff;
}

*{box-sizing:border-box}

body{
  margin:0;
  background:var(--ap-bg);
  color:var(--ap-text);
  font-family:Arial,Helvetica,sans-serif;
}

a{
  color:var(--ap-blue-2);
  text-decoration:none;
}

a:hover{color:var(--ap-red)}

.ap-container{
  width:min(1180px, calc(100% - 32px));
  margin:0 auto;
}

.ap-topbar{
  background:var(--ap-blue);
  color:#d9e4f5;
  font-size:13px;
  padding:8px 0;
}

.ap-topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.ap-topbar a{color:#fff}

.ap-header{
  position:sticky;
  top:0;
  z-index:9999;
  background:#fff;
  box-shadow:0 3px 18px rgba(10,35,80,.10);
}

.ap-brand-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  padding:18px 0;
}

.ap-logo{
  display:flex;
  align-items:center;
  gap:12px;
}

.ap-logo-mark{
  width:44px;
  height:44px;
  border-radius:14px;
  background:linear-gradient(135deg,var(--ap-blue-2),var(--ap-red));
  display:grid;
  place-items:center;
  color:#fff;
  font-weight:900;
  letter-spacing:-1px;
}

.ap-site-title{
  margin:0;
  font-size:28px;
  line-height:1;
  font-weight:900;
  letter-spacing:-.8px;
}

.ap-site-title a{color:var(--ap-blue)}

.ap-tagline{
  margin:5px 0 0;
  color:var(--ap-muted);
  font-size:13px;
}

.ap-search{
  width:min(460px,100%);
}

.ap-search form{
  display:flex;
  background:#f7faff;
  border:1px solid #d9e2f1;
  border-radius:16px;
  overflow:hidden;
}

.ap-search input[type="search"]{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  padding:13px 14px;
  font-size:14px;
}

.ap-search button,
.ap-search input[type="submit"]{
  border:0;
  background:var(--ap-red);
  color:#fff;
  padding:0 18px;
  font-weight:800;
  cursor:pointer;
}

.ap-nav-wrap{
  background:var(--ap-blue);
  border-radius:0 0 16px 16px;
}

.ap-nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.ap-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
}

.ap-nav li{position:relative}

.ap-nav a{
  display:block;
  padding:15px 13px;
  color:#fff;
  font-weight:800;
  font-size:14px;
}

.ap-nav a:hover{
  background:var(--ap-red);
  color:#fff;
}

.ap-nav ul ul{
  position:absolute;
  top:100%;
  left:0;
  min-width:220px;
  background:#fff;
  box-shadow:0 10px 30px rgba(0,0,0,.14);
  border-radius:12px;
  display:none;
  z-index:99999;
  overflow:hidden;
}

.ap-nav li:hover > ul{display:block}

.ap-nav ul ul a{
  color:var(--ap-blue);
  padding:12px 14px;
}

.ap-nav ul ul a:hover{
  background:#f1f5fb;
  color:var(--ap-red);
}

.ap-menu-toggle{
  display:none;
  border:0;
  background:var(--ap-red);
  color:#fff;
  padding:10px 14px;
  border-radius:10px;
  font-weight:800;
}

.ap-main{
  padding:26px 0 0;
}

.ap-section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:14px;
  margin-bottom:16px;
}

.ap-section-title{
  margin:0;
  color:var(--ap-blue);
  font-size:26px;
  font-weight:900;
  letter-spacing:-.5px;
}

.ap-section-sub{
  margin:5px 0 0;
  color:var(--ap-muted);
  font-size:14px;
}

.ap-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}

.ap-card{
  background:var(--ap-card);
  border:1px solid var(--ap-border);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 6px 22px rgba(8,43,102,.08);
  transition:.25s ease;
}

.ap-card:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 32px rgba(8,43,102,.14);
}

.ap-thumb{
  aspect-ratio:16/10;
  background:#dfe7f3;
  overflow:hidden;
}

.ap-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.ap-card-body{padding:15px 16px 17px}

.ap-cat{
  display:inline-block;
  background:#eef4ff;
  color:var(--ap-blue-2);
  font-size:12px;
  font-weight:900;
  padding:6px 9px;
  border-radius:999px;
  margin-bottom:9px;
}

.ap-card h2{
  margin:0 0 8px;
  font-size:19px;
  line-height:1.35;
  font-weight:900;
}

.ap-card h2 a{color:#10213f}

.ap-card h2 a:hover{color:var(--ap-red)}

.ap-meta{
  color:var(--ap-muted);
  font-size:13px;
  margin-bottom:8px;
}

.ap-excerpt{
  color:#41506a;
  font-size:14px;
  line-height:1.65;
  margin:0 0 12px;
}

.ap-read{
  display:inline-block;
  background:var(--ap-blue);
  color:#fff!important;
  border-radius:10px;
  padding:9px 13px;
  font-size:13px;
  font-weight:900;
}

.ap-read:hover{background:var(--ap-red)}

.ap-chip-box{
  margin:30px 0;
  background:#fff;
  border:1px solid var(--ap-border);
  border-radius:20px;
  padding:22px;
  box-shadow:0 6px 22px rgba(8,43,102,.07);
  text-align:center;
}

.ap-chip-title{
  margin:0 0 14px;
  color:var(--ap-blue);
  font-size:22px;
  font-weight:900;
}

.ap-chips{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
}

.ap-chip{
  background:#f1f5fb;
  color:var(--ap-blue)!important;
  border:1px solid #d9e2f1;
  padding:10px 13px;
  border-radius:999px;
  font-weight:800;
  font-size:13px;
}

.ap-chip:hover{
  background:var(--ap-red);
  color:#fff!important;
}

.ap-pagination{
  margin:26px 0;
  text-align:center;
}

.ap-footer{
  margin-top:42px;
  background:var(--ap-blue);
  color:#d9e4f5;
  padding:38px 0 18px;
}

.ap-footer-grid{
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr 1.2fr;
  gap:28px;
}

.ap-footer h3{
  margin:0 0 14px;
  color:#fff;
  font-size:18px;
  border-left:4px solid var(--ap-red);
  padding-left:10px;
}

.ap-footer p,
.ap-footer li{
  font-size:14px;
  line-height:1.7;
  color:#d9e4f5;
}

.ap-footer ul{
  list-style:none;
  margin:0;
  padding:0;
}

.ap-footer a{color:#fff}

.ap-footer a:hover{color:#ff4b50}

.ap-copy{
  margin-top:28px;
  border-top:1px solid rgba(255,255,255,.14);
  padding-top:16px;
  font-size:13px;
  color:#bfd0ea;
  text-align:center;
}

@media(max-width:1024px){
  .ap-grid{grid-template-columns:repeat(2,1fr)}
  .ap-footer-grid{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:760px){
  .ap-topbar-inner,
  .ap-brand-row{
    flex-direction:column;
    align-items:stretch;
  }

  .ap-logo{justify-content:center;text-align:center}
  .ap-search{width:100%}

  .ap-menu-toggle{display:block;margin:10px 0}

  .ap-nav{
    display:block;
  }

  .ap-nav ul{
    display:none;
    width:100%;
    flex-direction:column;
  }

  .ap-nav ul.ap-open{display:flex}

  .ap-nav ul ul{
    position:static;
    display:block;
    box-shadow:none;
    border-radius:0;
    background:#0b2c66;
  }

  .ap-nav ul ul a{color:#fff}

  .ap-grid{grid-template-columns:1fr}
  .ap-footer-grid{grid-template-columns:1fr}
  .ap-section-title{font-size:23px}
}


/* ===============================
 v2 Fix: Thumbnail + Real Title Visible
================================ */
.ap-grid{
  align-items:start;
}

.ap-card{
  display:flex;
  flex-direction:column;
}

.ap-thumb{
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 185px;
}

.ap-card-body{
  display:block;
  background:#fff;
  min-height:145px;
}

.ap-card h2{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:52px;
}

.ap-excerpt{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

@media(max-width:760px){
  .ap-thumb{
    max-height:210px;
  }
}


/* ===============================
 v3 Single Post + Page Design
================================ */

.ap-single-wrap{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 330px;
  gap:26px;
  align-items:start;
}

.ap-single-main,
.ap-page-main{
  min-width:0;
}

.ap-single-article,
.ap-page-article{
  background:#fff;
  border:1px solid var(--ap-border);
  border-radius:22px;
  padding:26px;
  box-shadow:0 8px 28px rgba(8,43,102,.08);
}

.ap-single-title,
.ap-page-title{
  margin:10px 0 10px;
  color:#10213f;
  font-size:38px;
  line-height:1.18;
  font-weight:900;
  letter-spacing:-.8px;
}

.ap-single-meta{
  color:var(--ap-muted);
  font-size:14px;
  margin-bottom:18px;
}

.ap-single-thumb{
  margin:20px 0 22px;
  border-radius:20px;
  overflow:hidden;
  background:#e8eef8;
}

.ap-single-thumb img{
  width:100%;
  height:auto;
  display:block;
}

.ap-single-content{
  color:#22304a;
  font-size:18px;
  line-height:1.85;
}

.ap-single-content p{
  margin:0 0 20px;
}

.ap-single-content h2{
  color:var(--ap-blue);
  font-size:30px;
  line-height:1.25;
  margin:34px 0 14px;
  font-weight:900;
}

.ap-single-content h3{
  color:#10213f;
  font-size:24px;
  line-height:1.3;
  margin:28px 0 12px;
  font-weight:900;
}

.ap-single-content ul,
.ap-single-content ol{
  padding-left:24px;
  margin-bottom:22px;
}

.ap-single-content li{
  margin-bottom:10px;
}

.ap-single-content table{
  width:100%;
  border-collapse:collapse;
  margin:24px 0;
  font-size:15px;
  overflow:hidden;
  border-radius:14px;
}

.ap-single-content th{
  background:var(--ap-blue);
  color:#fff;
}

.ap-single-content th,
.ap-single-content td{
  border:1px solid #dfe7f3;
  padding:12px;
  text-align:left;
}

.ap-single-content blockquote{
  border-left:5px solid var(--ap-red);
  background:#f6f9ff;
  padding:16px 18px;
  margin:24px 0;
  border-radius:0 14px 14px 0;
  color:#34445f;
}

.ap-post-tags{
  margin-top:26px;
  padding-top:18px;
  border-top:1px solid var(--ap-border);
  font-size:14px;
}

.ap-post-tags span{
  font-weight:900;
  color:var(--ap-blue);
}

.ap-post-tags a{
  display:inline-block;
  margin:5px;
  background:#eef4ff;
  border:1px solid #d9e2f1;
  border-radius:999px;
  padding:7px 10px;
  font-weight:800;
  font-size:13px;
}

.ap-post-tags a:hover{
  background:var(--ap-red);
  color:#fff;
}

.ap-post-nav{
  display:flex;
  justify-content:space-between;
  gap:14px;
  margin-top:24px;
}

.ap-post-nav a{
  display:inline-block;
  background:var(--ap-blue);
  color:#fff!important;
  padding:10px 14px;
  border-radius:12px;
  font-weight:900;
  font-size:14px;
}

.ap-post-nav a:hover{
  background:var(--ap-red);
}

.ap-single-sidebar{
  position:sticky;
  top:145px;
}

.ap-side-box{
  background:#fff;
  border:1px solid var(--ap-border);
  border-radius:18px;
  padding:18px;
  margin-bottom:20px;
  box-shadow:0 6px 22px rgba(8,43,102,.07);
}

.ap-side-box h3{
  margin:0 0 14px;
  color:var(--ap-blue);
  font-size:18px;
  font-weight:900;
  border-left:4px solid var(--ap-red);
  padding-left:10px;
}

.ap-side-box form{
  display:flex;
  gap:8px;
}

.ap-side-box input[type="search"]{
  width:100%;
  border:1px solid #d9e2f1;
  border-radius:12px;
  padding:11px;
  outline:0;
}

.ap-side-box button{
  border:0;
  background:var(--ap-red);
  color:#fff;
  border-radius:12px;
  padding:0 13px;
  font-weight:900;
  cursor:pointer;
}

.ap-side-list{
  list-style:none;
  margin:0;
  padding:0;
}

.ap-side-list li{
  border-bottom:1px solid #edf2fa;
  padding:10px 0;
}

.ap-side-list li:last-child{
  border-bottom:0;
}

.ap-side-list a{
  color:#10213f;
  font-weight:800;
  line-height:1.45;
}

.ap-side-list a:hover{
  color:var(--ap-red);
}

.ap-side-chips{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
}

.ap-side-chips a{
  background:#f1f5fb;
  border:1px solid #d9e2f1;
  border-radius:999px;
  padding:8px 10px;
  color:var(--ap-blue)!important;
  font-weight:800;
  font-size:13px;
}

.ap-side-chips a:hover{
  background:var(--ap-red);
  color:#fff!important;
}

@media(max-width:980px){
  .ap-single-wrap{
    grid-template-columns:1fr;
  }

  .ap-single-sidebar{
    position:static;
  }

  .ap-single-title,
  .ap-page-title{
    font-size:31px;
  }

  .ap-single-content{
    font-size:17px;
  }
}

@media(max-width:640px){
  .ap-single-article,
  .ap-page-article{
    padding:18px;
    border-radius:18px;
  }

  .ap-single-title,
  .ap-page-title{
    font-size:27px;
  }

  .ap-single-content h2{
    font-size:25px;
  }

  .ap-post-nav{
    flex-direction:column;
  }
}
