/*
Theme Name: TechnoPress Light
Theme URI: https://www.tipsnsolution.in/
Author: Tips N Solution
Author URI: https://www.tipsnsolution.in/
Description: TechnoPress is a clean, professional, LIGHT and responsive business/marketing WordPress theme inspired by chieftechno.com. Restricted black and dark-blue palette, top contact bar, sticky header with a call-to-action button, hero section, six service cards, stats band, text-first post cards (posts render without images) and a light widgetised footer. Ships with a one-click demo importer (10 pages + 20 unique high-CTR posts with Rank Math meta) so everything is managed inside the theme. All colours, contact details, social links, hero, services, stats, CTA and footer content are editable from the Customizer. No page builder required.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: technopress
Tags: blog, business, custom-logo, custom-menu, custom-colors, translation-ready, responsive-layout, two-columns, right-sidebar
*/

/* ==========================================================================
   1. Variables
   ========================================================================== */
:root {
  --primary: #0a2540;
  --primary-dark: #061829;
  --primary-light: #143f6b;
  --accent: #0b3d75;
  --accent-dark: #071f3d;
  --ink: #0b0f14;
  --dark: #0b0f14;
  --body: #3d4753;
  --muted: #6b7684;
  --light: #f5f7f9;
  --border: #e2e6eb;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(11,15,20,.04), 0 8px 24px rgba(11,15,20,.05);
  --shadow-hover: 0 10px 30px rgba(10,37,64,.14);
  --container: 1180px;
  --font-heading: "Poppins", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Open Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover, a:focus { color: var(--accent); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  line-height: 1.3;
  margin: 0 0 16px;
  font-weight: 700;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
blockquote {
  margin: 24px 0;
  padding: 18px 24px;
  border-left: 4px solid var(--accent);
  background: var(--light);
  font-style: italic;
}
blockquote p:last-child { margin-bottom: 0; }
code, pre, kbd { font-family: Consolas, Monaco, monospace; font-size: .9em; }
pre {
  background: #0f172a; color: #e2e8f0;
  padding: 16px 18px; border-radius: var(--radius);
  overflow-x: auto; margin: 22px 0;
}
code { background: var(--light); padding: 2px 6px; border-radius: 4px; }
pre code { background: none; padding: 0; color: inherit; }
table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .95rem; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
th { background: var(--light); color: var(--dark); }
hr { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }
input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); font-family: inherit; font-size: 1rem; background: var(--white);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); }
button, input[type="submit"], .btn {
  display: inline-block; padding: 13px 28px; border: 0; border-radius: 50px;
  background: var(--primary); color: var(--white); font-family: var(--font-heading);
  font-size: .95rem; font-weight: 600; cursor: pointer; transition: all .25s ease;
}
button:hover, input[type="submit"]:hover, .btn:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); }
.btn-accent { background: var(--primary); }
.btn-accent:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: static; width: auto; height: auto; clip: auto;
  display: block; padding: 12px 20px; background: var(--primary); color: #fff; z-index: 9999;
}
.alignleft { float: left; margin: 6px 24px 18px 0; }
.alignright { float: right; margin: 6px 0 18px 24px; }
.aligncenter { display: block; margin: 20px auto; }
.alignwide { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: none; }
.wp-caption-text, .wp-block-image figcaption {
  text-align: center; font-size: .85rem; color: var(--muted); margin-top: 8px;
}
.sticky { position: relative; }
.bypostauthor { display: block; }

/* ==========================================================================
   3. Layout helpers
   ========================================================================== */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.col { padding: 0 15px; flex: 1 1 0; min-width: 0; }
.col-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
.section { padding: 76px 0; }
.section-light { background: var(--light); }
.section-title { text-align: center; margin-bottom: 12px; }
.section-subtitle {
  text-align: center; max-width: 680px; margin: 0 auto 46px; color: var(--muted);
}
.section-title::after {
  content: ""; display: block; width: 60px; height: 4px; border-radius: 4px;
  background: var(--primary); margin: 16px auto 0;
}

/* ==========================================================================
   4. Top bar
   ========================================================================== */
.topbar { background: var(--primary-dark); color: #d6e6f5; font-size: .875rem; }
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px; min-height: 44px;
}
.topbar a { color: #d6e6f5; }
.topbar a:hover { color: var(--white); }
.topbar-contact { display: flex; flex-wrap: wrap; gap: 22px; }
.topbar-contact span { display: inline-flex; align-items: center; gap: 7px; }
.topbar-contact svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.topbar-social { display: flex; gap: 14px; align-items: center; }
.topbar-social a {
  width: 26px; height: 26px; display: inline-flex; align-items: center;
  justify-content: center; border-radius: 50%; background: rgba(255,255,255,.12);
}
.topbar-social a:hover { background: var(--accent); }
.topbar-social svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ==========================================================================
   5. Header
   ========================================================================== */
.site-header {
  background: var(--white); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 900;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 82px;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding img { max-height: 54px; width: auto; }
.site-title {
  font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800;
  margin: 0; line-height: 1.1; color: var(--dark);
}
.site-title a { color: var(--dark); }
.site-title a:hover { color: var(--primary); }
.site-tagline { margin: 0; font-size: .78rem; color: var(--muted); letter-spacing: .04em; }

.main-navigation ul {
  list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 26px;
}
.main-navigation li { position: relative; }
.main-navigation a {
  font-family: var(--font-heading); font-size: .95rem; font-weight: 500;
  color: var(--dark); padding: 8px 0; display: block; position: relative;
}
.main-navigation a:hover, .main-navigation .current-menu-item > a { color: var(--primary); }
.main-navigation .current-menu-item > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent);
}
.main-navigation .sub-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 240px;
  background: var(--white); box-shadow: var(--shadow); border-radius: var(--radius);
  padding: 8px 0; z-index: 950;
}
.main-navigation li:hover > .sub-menu { display: block; }
.main-navigation .sub-menu li { display: block; }
.main-navigation .sub-menu a { padding: 9px 18px; font-weight: 400; }
.main-navigation .sub-menu a:hover { background: var(--light); }

.header-cta { display: flex; align-items: center; gap: 16px; }
.btn-header {
  background: var(--accent); color: var(--white); padding: 12px 26px;
  border-radius: 50px; font-family: var(--font-heading); font-weight: 600; font-size: .9rem;
  white-space: nowrap;
}
.btn-header:hover { background: var(--primary-dark); color: var(--white); }

.menu-toggle {
  display: none; background: var(--primary); color: #fff; border: 0; padding: 10px 14px;
  border-radius: var(--radius); font-size: 1.1rem; line-height: 1; cursor: pointer;
}
.menu-toggle:hover { background: var(--primary-dark); }

/* mobile panel */
.mobile-panel {
  display: none; background: var(--white); border-top: 1px solid var(--border);
  padding: 10px 0 20px;
}
.mobile-panel.open { display: block; }
.mobile-panel ul { list-style: none; margin: 0; padding: 0; }
.mobile-panel li { border-bottom: 1px solid var(--light); }
.mobile-panel a {
  display: block; padding: 12px 4px; color: var(--dark);
  font-family: var(--font-heading); font-weight: 500;
}
.mobile-panel .sub-menu { padding-left: 16px; }
.mobile-panel .sub-menu a { font-weight: 400; font-size: .92rem; }

/* ==========================================================================
   6. Hero
   ========================================================================== */
.hero {
  position: relative; color: #fff; padding: 110px 0; text-align: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
  overflow: hidden;
}
.hero.has-image { background-size: cover; background-position: center; }
.hero.has-image::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(6, 24, 41, .93) 0%, rgba(10, 37, 64, .88) 60%, rgba(20, 63, 107, .86) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: 3rem; font-weight: 800; margin-bottom: 20px; max-width: 900px; margin-left: auto; margin-right: auto; }
.hero p.lead { font-size: 1.15rem; color: #e4eff9; max-width: 720px; margin: 0 auto 34px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-badges {
  display: flex; gap: 34px; justify-content: center; flex-wrap: wrap;
  margin-top: 54px; padding-top: 34px; border-top: 1px solid rgba(255,255,255,.22);
}
.hero-badge strong { display: block; font-family: var(--font-heading); font-size: 1.9rem; font-weight: 800; color: #fff; }
.hero-badge span { font-size: .85rem; color: #cfe2f3; letter-spacing: .04em; text-transform: uppercase; }

/* ==========================================================================
   7. Service / feature cards
   ========================================================================== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 28px; text-align: center; transition: all .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.card-icon {
  width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 37, 64, .08); color: var(--primary);
}
.card-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { font-size: .94rem; color: var(--muted); margin: 0; }
.card:hover .card-icon { background: var(--primary); color: #fff; }

/* ==========================================================================
   8. Stats band
   ========================================================================== */
.stats { background: var(--primary); color: #fff; padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong {
  display: block; font-family: var(--font-heading); font-size: 2.6rem; font-weight: 800; line-height: 1.1;
}
.stat span { display: block; font-size: .9rem; letter-spacing: .05em; text-transform: uppercase; color: #cfe2f3; }

/* ==========================================================================
   9. CTA band
   ========================================================================== */
.cta-band {
  background: linear-gradient(120deg, #0a2540 0%, #143f6b 100%);
  color: #fff; text-align: center; padding: 68px 0;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #fff; opacity: .95; max-width: 640px; margin: 0 auto 26px; }
.cta-band .btn { background: var(--white); color: var(--accent-dark); }
.cta-band .btn:hover { background: var(--dark); color: #fff; }

/* ==========================================================================
   10. Blog / posts  (text-first — looks complete WITHOUT images)
   ========================================================================== */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  border-top: 3px solid var(--primary);
  padding: 30px 28px; display: flex; flex-direction: column; transition: all .25s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: #cfd8e3; border-top-color: var(--primary); }
.post-cat {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--primary); background: rgba(10,37,64,.07);
  padding: 4px 10px; border-radius: 3px; margin-bottom: 14px; align-self: flex-start;
}
.post-meta {
  font-size: .78rem; color: var(--muted); margin-bottom: 12px;
  display: flex; flex-wrap: wrap; gap: 14px; text-transform: uppercase; letter-spacing: .05em;
}
.post-meta a { color: var(--muted); }
.post-meta a:hover { color: var(--primary); }
.post-card-title { font-size: 1.2rem; line-height: 1.4; margin-bottom: 12px; letter-spacing: -.01em; }
.post-card-title a { color: var(--ink); }
.post-card-title a:hover { color: var(--primary); }
.post-card-excerpt { font-size: .94rem; color: var(--body); margin-bottom: 20px; }
.read-more {
  margin-top: auto; font-family: var(--font-heading); font-weight: 600; font-size: .88rem;
  display: inline-flex; align-items: center; gap: 8px; color: var(--primary);
}
.read-more svg { transition: transform .2s ease; }
.post-card:hover .read-more svg { transform: translateX(4px); }

/* optional featured image (only shown when a post has one) */
.post-card-thumb { display: block; overflow: hidden; border-radius: 4px; margin-bottom: 20px; }
.post-card-thumb img { width: 100%; height: 190px; object-fit: cover; }

/* ==========================================================================
   11. Sidebar & widgets
   ========================================================================== */
.content-area { display: flex; gap: 40px; align-items: flex-start; }
.content-area main { flex: 1 1 auto; min-width: 0; }
.sidebar { flex: 0 0 320px; max-width: 320px; }
.widget {
  background: var(--light); padding: 26px; border-radius: var(--radius); margin-bottom: 28px;
  border: 1px solid var(--border);
}
.widget:last-child { margin-bottom: 0; }
.widget-title {
  font-size: 1.05rem; margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--primary); display: inline-block;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: .93rem; }
.widget ul li:last-child { border-bottom: 0; }
.widget select, .widget input[type="search"] { width: 100%; }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-form .search-submit { padding: 12px 20px; border-radius: var(--radius); }

/* ==========================================================================
   12. Footer (light)
   ========================================================================== */
.site-footer { background: #f4f7fa; color: var(--body); font-size: .94rem; border-top: 1px solid var(--border); }
.footer-widgets { padding: 62px 0 44px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.site-footer h3, .site-footer .widget-title {
  color: var(--dark); font-size: 1.05rem; margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 2px solid var(--accent); display: inline-block;
}
.site-footer a { color: var(--body); }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { padding: 6px 0; }
.site-footer .widget { background: none; border: 0; padding: 0; margin: 0; }
.site-footer .widget ul li { border-bottom: 0; }
.footer-about img { max-height: 48px; margin-bottom: 16px; }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; }
.footer-contact-item svg { width: 15px; height: 15px; fill: none; stroke: var(--primary); stroke-width: 2; margin-top: 5px; flex: 0 0 15px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; background: var(--white); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center; color: var(--primary);
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-social svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 20px 0; font-size: .87rem; background: var(--white);
}
.footer-bottom .container {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: var(--primary); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--body); }
.footer-links a:hover { color: var(--accent); }

/* ---- optional dark footer (Customizer: Footer style = Dark) ---- */
.footer-dark .site-footer { background: #1f2937; color: #b9c4d0; border-top: 0; }
.footer-dark .site-footer h3, .footer-dark .site-footer .widget-title { color: #fff; }
.footer-dark .site-footer a { color: #b9c4d0; }
.footer-dark .site-footer a:hover { color: var(--accent); }
.footer-dark .footer-contact-item svg { fill: none; stroke: #9dc4e8; }
.footer-dark .footer-social a { background: rgba(255,255,255,.09); border-color: transparent; color: #fff; }
.footer-dark .footer-bottom { border-top: 1px solid rgba(255,255,255,.12); background: #1a232f; }
.footer-dark .footer-bottom a, .footer-dark .footer-links a { color: #cfd8e3; }

/* ==========================================================================
   13. Pages, 404, search
   ========================================================================== */
.page-header { background: var(--light); padding: 44px 0; border-bottom: 1px solid var(--border); text-align: center; }
.page-header h1 { margin: 0; font-size: 2rem; }
.page-header .archive-description { color: var(--muted); margin-top: 10px; }
.error-404 { text-align: center; padding: 60px 0; }
.error-404 .code { font-size: 6rem; font-weight: 800; color: var(--primary); line-height: 1; }
.no-results { text-align: center; padding: 40px 0; }

/* ==========================================================================
   14. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .cards, .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .sidebar { flex: 0 0 280px; max-width: 280px; }
}
@media (max-width: 860px) {
  .main-navigation, .header-cta .btn-header { display: none; }
  .menu-toggle { display: inline-block; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero { padding: 76px 0; }
  .hero h1 { font-size: 2.1rem; }
  .content-area { flex-direction: column; }
  .sidebar { flex: 1 1 auto; max-width: 100%; }
  .section { padding: 56px 0; }
}
@media (max-width: 640px) {
  .cards, .posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .container { justify-content: center; text-align: center; }
  .topbar-contact { justify-content: center; gap: 14px; font-size: .8rem; }
  .hero-badges { gap: 22px; }
  .site-title { font-size: 1.3rem; }
  .footer-bottom .container { justify-content: center; text-align: center; }
  .post-navigation { flex-direction: column; }
}

/* ==========================================================================
   15. Light style (default) — soft backgrounds, dark text
   ========================================================================== */
.technopress-light .hero {
  background: #eef4fa;
  color: var(--dark);
  border-bottom: 1px solid var(--border);
}
.technopress-light .hero::before { display: none; }
.technopress-light .hero h1 { color: var(--dark); }
.technopress-light .hero p.lead { color: var(--body); }
.technopress-light .hero-badges { border-top: 1px solid var(--border); }
.technopress-light .hero-badge strong { color: var(--primary); }
.technopress-light .hero-badge span { color: var(--muted); }
.technopress-light .hero .btn-outline {
  border-color: var(--primary); color: var(--primary); background: transparent;
}
.technopress-light .hero .btn-outline:hover { background: var(--primary); color: #fff; }

.technopress-light .stats {
  background: var(--white); color: var(--dark);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.technopress-light .stat strong { color: var(--primary); }
.technopress-light .stat span { color: var(--muted); }

.technopress-light .cta-band {
  background: #eef2f7; color: var(--dark);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.technopress-light .cta-band h2 { color: var(--dark); }
.technopress-light .cta-band p { color: var(--body); opacity: 1; }
.technopress-light .cta-band .btn { background: var(--accent); color: #fff; }
.technopress-light .cta-band .btn:hover { background: var(--accent-dark); color: #fff; }

.technopress-light .topbar { background: var(--white); color: var(--body); border-bottom: 1px solid var(--border); }
.technopress-light .topbar a { color: var(--body); }
.technopress-light .topbar a:hover { color: var(--primary); }
.technopress-light .topbar-contact svg { fill: none; stroke: var(--primary); }
.technopress-light .topbar-social a { background: var(--light); color: var(--primary); }
.technopress-light .topbar-social a:hover { background: var(--accent); color: #fff; }
