/*
Theme Name: HRMex Corporate Blog
Theme URI: https://hrmex.in/
Author: HRMex
Author URI: https://hrmex.in/
Description: A clean, professional corporate blog theme tailored for HRMex Attendance & Payroll Software.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: hrmex-corporate
*/

/* Base styles: corporate blue/grey palette */
:root {
  --brand-bg: #0b1a2c; /* dark navy */
  --brand-accent: #1e73be; /* corporate blue */
  --brand-accent-2: #00a3a3; /* teal accent */
  --text: #222;
  --muted: #666;
  --border: #e5e7eb;
  --bg: #ffffff;
  /* Layout variables */
  --container-max: 1100px;
  --container-pad: 24px;
}
html { scroll-behavior: smooth; }

html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--brand-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  background: linear-gradient(90deg, var(--brand-bg), #14263d);
  color: #fff;
}
.site-header .inner { max-width: 1100px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand .title { font-weight: 700; font-size: 22px; letter-spacing: 0.3px; }
.brand .tagline { color: #cbd5e1; font-size: 13px; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.primary-nav a { color: #e6eef8; font-weight: 500; }
.primary-nav a:hover { color: #fff; }

.hero {
  background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-accent-2) 100%);
  color: #fff;
}
.hero .inner { max-width: 1100px; margin: 0 auto; padding: 28px 24px; }
.hero h1 { margin: 0 0 10px; font-size: 28px; }
.hero p { margin: 0; color: #e6eef8; }

.container { max-width: 1100px; margin: 0 auto; padding: 24px; }

/* Homepage hero */
.home-hero { background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-2)); color:#fff; }
.home-hero .inner { max-width: 1100px; margin:0 auto; padding: 40px 24px; }
.home-top { position: relative; }
.home-top .home-top-grid { position: relative; display: block; }
/* Mobile/tablet: normal flow stacking */
@media (max-width: 1199px) { .home-top .home-top-grid { display: block; } }
.hero-main { align-self: start; }
.home-hero h1 { margin:0; font-size: 34px; }
.home-hero .sub { margin-top:8px; color:#e6eef8; }
.home-hero .cta { margin-top: 16px; }
.btn { display:inline-block; padding:10px 14px; border-radius:8px; background:#fff; color:#0b1a2c; font-weight:600; box-shadow:0 1px 2px rgba(0,0,0,0.08); }
.btn:hover { transform: translateY(-1px); box-shadow:0 4px 14px rgba(0,0,0,0.12); }
.btn-secondary { background:#0b1a2c; color:#fff; }
.btn-secondary:hover { background:#14263d; }

/* Blog icons row */
.blog-icons { margin-top: 16px; display: flex; gap: 16px; flex-wrap: wrap; }
.blog-icons .icon-item { display: flex; align-items: center; gap: 8px; color: #fff; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.26); padding: 8px 12px; border-radius: 999px; backdrop-filter: blur(6px); transition: transform .2s ease, box-shadow .2s ease; }
.blog-icons .icon-item:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(79,209,255,0.35); }
.blog-icons svg { color: #fff; }
.blog-icons span { font-weight: 600; letter-spacing: 0.2px; }

/* Features strip */
.features { max-width:1100px; margin: 0 auto; padding: 24px; display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap:14px; }
.feature { position: relative; border-radius:12px; padding:16px; background: linear-gradient(0deg, rgba(255,255,255,0.92), rgba(255,255,255,0.92)) padding-box, linear-gradient(135deg, var(--brand-accent), var(--brand-accent-2)) border-box; border:1px solid transparent; box-shadow:0 6px 16px rgba(0,0,0,0.06); transition: transform .25s ease, box-shadow .25s ease; }
.feature::before { content:""; position:absolute; inset:0; border-radius:inherit; background: radial-gradient(600px 220px at 10% -20%, rgba(79,209,255,0.18), transparent), radial-gradient(600px 220px at 90% 120%, rgba(0,163,163,0.18), transparent); pointer-events:none; opacity:0.7; transition: opacity .25s ease; }
.feature:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 10px 24px rgba(79,209,255,0.28), 0 8px 18px rgba(0,0,0,0.10); }
.feature:hover::before { opacity: 1; }
.feature h3 { margin:0 0 6px; font-size:18px; }
.feature p { margin:0; color:var(--muted); font-size:14px; }

/* Modern cards */
/* Blog carousel */
.blog-section { position: relative; margin-top: 8px; }
/* Fixed 3-column grid for blog cards */
.cards-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1024px) { .cards-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards-grid-3 { grid-template-columns: 1fr; } }
.card { position:relative; border-radius:14px; overflow:hidden; background: linear-gradient(#ffffff, #ffffff) padding-box, linear-gradient(135deg, var(--brand-accent), var(--brand-accent-2)) border-box; border:1px solid transparent; box-shadow: 0 10px 20px rgba(0,0,0,0.06); transition: transform .25s ease, box-shadow .25s ease, filter .25s ease; }
.card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 8px 32px rgba(79,209,255,0.35), 0 6px 18px rgba(0,0,0,0.12); }
.card-media { position:relative; display:block; overflow:hidden; }
.card-media img { width:100%; height:auto; display:block; transition: transform .5s ease; }
.fallback-thumb { height:180px; background: linear-gradient(135deg, #243b55, #141e30); transition: transform .5s ease; }
.card:hover .card-media img, .card:hover .fallback-thumb { transform: scale(1.06); }
.card-overlay { position:absolute; inset:0; background: linear-gradient(to bottom, rgba(0,0,0,0.03), rgba(0,0,0,0.28)); transition: opacity .3s ease; }
.card:hover .card-overlay { opacity: 0.9; }
.card-badges { position:absolute; top:10px; left:10px; right:10px; display:flex; gap:8px; flex-wrap:wrap; }
.badge { background: rgba(30,115,190,0.35); color:#fff; padding:4px 8px; border-radius:999px; font-size:12px; backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.18); }
.chip { background: rgba(11,26,44,0.55); color:#fff; padding:4px 8px; border-radius:999px; font-size:12px; margin-left:auto; backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.18); }
.card-content { padding:16px; }
.card-title { margin:0 0 8px; font-size:20px; }
.card-title a { color: var(--text); }
.card:hover .card-title a { color: var(--brand-accent); }
.card-excerpt { color:var(--muted); font-size:14px; }
.card-footer { margin-top:12px; display:flex; align-items:center; justify-content:space-between; }
.author { color:var(--muted); font-size:13px; }

.content { max-width: 760px; margin: 0 auto; }
.content h1 { margin-top: 0; }

.site-footer { border-top: 1px solid var(--border); background: #f8fafc; }
.site-footer .inner { max-width: 1100px; margin: 0 auto; padding: 20px 24px; color: var(--muted); font-size: 13px; }

/* Responsive tweaks */
@media (max-width: 640px) {
  .site-header .inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}
/* Futuristic landing styles */
:root {
  --neon: #4fd1ff; /* neon cyan */
  --glass-bg: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.18);
}

.landing { position: relative; padding: 24px 0; background: radial-gradient(1200px 300px at 10% -20%, rgba(79,209,255,0.25), transparent), radial-gradient(900px 300px at 90% -20%, rgba(30,115,190,0.25), transparent); }
.panel { position: relative; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px; padding: 18px; backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(11,26,44,0.25); color: #0b1a2c; transition: transform .25s ease, box-shadow .25s ease; }
.panel::before { content:""; position:absolute; inset:0; border-radius:inherit; background: linear-gradient(135deg, rgba(30,115,190,0.20), rgba(0,163,163,0.20)); opacity:0.25; pointer-events:none; transition: opacity .25s ease; }
.panel:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(79,209,255,0.35), 0 8px 24px rgba(0,0,0,0.12); }
.panel:hover::before { opacity: 0.40; }
.panel h3, .panel h2 { margin: 0 0 8px; }
.panel .lead { color: #0b1a2c; font-size: 18px; font-weight: 600; }
.muted { color: var(--muted); }

/* Blog layout with right sidebar */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 1024px) { .blog-layout { grid-template-columns: 1fr; } }
.sidebar-latest { align-self: start; }
@media (min-width: 1200px) {
  /* Place Latest Posts in the right margin without compressing the hero */
  .sidebar-latest.flush-right {
    position: absolute;
    top: 0;
    right: calc((100vw - var(--container-max)) / 2 - var(--container-pad));
    width: 360px;
    transform: none;
  }
}
@media (max-width: 1199px) {
  .sidebar-latest.flush-right { position: static; width: auto; }
}
.sidebar-latest h3 { margin: 0 0 12px; font-size: 18px; }
.latest-list { display: grid; gap: 12px; }
.latest-card { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 10px; border-radius: 12px; background: linear-gradient(0deg, rgba(255,255,255,0.72), rgba(255,255,255,0.72)) padding-box, linear-gradient(135deg, var(--brand-accent), var(--brand-accent-2)) border-box; border: 1px solid transparent; box-shadow: 0 6px 14px rgba(0,0,0,0.06); transition: transform .2s ease, box-shadow .2s ease; }
.latest-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(79,209,255,0.28), 0 8px 18px rgba(0,0,0,0.10); }
.latest-thumb img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; display: block; }
.latest-fallback { width: 72px; height: 72px; border-radius: 10px; background: linear-gradient(135deg, #243b55, #141e30); }
.latest-title { display: inline-block; font-size: 14px; font-weight: 600; color: inherit; text-decoration: none; line-height: 1.3; }
.latest-title:hover { text-decoration: underline; }
.latest-meta { margin-top: 6px; font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.latest-excerpt { margin: 6px 0 0; font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.grid-3 { display:grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap:16px; margin-top:16px; }
.grid-2 { display:grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap:16px; margin-top:16px; }
.cta-buttons { display:flex; gap:10px; margin-top: 12px; }
.btn-primary { background: linear-gradient(135deg, #1e73be, #00a3a3); color:#fff; }
.btn-primary:hover { filter: brightness(1.05); }
.quote { font-style: italic; }
.quote .cite { display:block; margin-top:8px; color: var(--muted); font-style: normal; }
.subscribe-form { display:flex; gap:10px; align-items:center; }
.subscribe-form input { flex:1; padding:10px 12px; border:1px solid var(--border); border-radius:10px; }
.contact-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap:8px; }
.feature { position: relative; background: linear-gradient(#ffffff, #ffffff) padding-box, linear-gradient(135deg, var(--brand-accent), var(--brand-accent-2)) border-box; border:1px solid transparent; transition: transform .25s ease, box-shadow .25s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(79,209,255,0.28), 0 8px 18px rgba(0,0,0,0.10); }