/*
Theme Name: IT Pulse News
Theme URI: https://example.com/it-pulse-news
Author: Angelina
Author URI: https://example.com
Description: A clean, minimal WordPress theme for an IT news and technology blog. Includes a homepage banner, a sidebar with search and recent posts, an About page, a Contacts page, and an Interesting Articles page.
Version: 1.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: it-pulse-news
Tags: blog, news, custom-menu, custom-logo, featured-images, translation-ready
*/

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700&display=swap');

/* =========================================================
   0. RESET / BASE
   ========================================================= */
:root{
  --bg: #dbe6ef;
  --bg-soft: #e7eff5;
  --card-bg: #ffffff;
  --text: #1f2933;
  --text-muted: #5b6b78;
  --accent: #2fa66b;
  --accent-blue: #2f7ba6;
  --link: #2f7ba6;
  --link-hover: #1f5c80;
  --border: #c3d2dd;
  --font-heading: 'Century Gothic', CenturyGothic, AppleGothic, 'Jost', 'Segoe UI', sans-serif;
  --font-body: 'Century Gothic', CenturyGothic, AppleGothic, 'Jost', 'Segoe UI', sans-serif;
  --radius: 10px;
  --max-width: 1200px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; height: auto; display: block; }

a{ color: var(--link); text-decoration: none; transition: color .15s ease; }
a:hover{ color: var(--link-hover); text-decoration: underline; }

h1, h2, h3, h4{
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 .6em;
}

p{ margin: 0 0 1.2em; }

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

.container{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.screen-reader-text{
  position: absolute !important;
  clip: rect(1px,1px,1px,1px);
  width: 1px; height: 1px; overflow: hidden;
}

/* =========================================================
   1. TOP BAR / MOBILE TOGGLE
   ========================================================= */
.topbar{
  background: #101820;
  height: 6px;
}

.menu-toggle{
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 18px 24px 0;
}
.menu-toggle span{
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
}

/* =========================================================
   2. HEADER
   ========================================================= */
.site-header{
  padding: 34px 0 24px;
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.site-branding{
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-branding img.custom-logo{
  height: 60px;
  width: auto;
}

.brand-text .site-title{
  margin: 0;
  font-size: 22px;
  letter-spacing: .2px;
}
.brand-text .site-title a{
  color: var(--accent-blue);
  font-style: italic;
  font-weight: 700;
}
.brand-text .site-description{
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.primary-navigation ul{
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}
.primary-navigation a{
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}
.primary-navigation a:hover{
  color: var(--accent-blue);
  text-decoration: none;
}
.primary-navigation .current-menu-item > a{
  color: var(--accent-blue);
  border-bottom: 2px solid var(--accent-blue);
  padding-bottom: 4px;
}

/* =========================================================
   3. HERO / BANNER (front page)
   ========================================================= */
.site-banner{
  position: relative;
  margin: 10px 0 46px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #12314a 0%, #163a52 45%, #0f5132 100%);
  min-height: 260px;
  display: flex;
  align-items: center;
}
.site-banner .banner-media{
  position: absolute;
  inset: 0;
  opacity: 0.16;
}
.site-banner .banner-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.site-banner .banner-content{
  position: relative;
  z-index: 2;
  padding: 54px 48px;
  color: #fff;
  max-width: 720px;
}
.site-banner .banner-eyebrow{
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: #9fe3c0;
  font-weight: 700;
  margin-bottom: 14px;
}
.site-banner h1{
  color: #fff;
  font-size: 34px;
  margin-bottom: 14px;
}
.site-banner p{
  color: #dbe9e2;
  font-size: 16px;
  margin-bottom: 0;
}

/* =========================================================
   4. LAYOUT: content + sidebar
   ========================================================= */
.content-area-wrap{
  display: flex;
  gap: 44px;
  align-items: flex-start;
  padding-bottom: 60px;
}

.primary{ flex: 1 1 0; min-width: 0; }
.widget-area{ width: 320px; flex-shrink: 0; }

@media (max-width: 900px){
  .content-area-wrap{ flex-direction: column; }
  .widget-area{ width: 100%; }
  .primary-navigation{ display: none; }
  .menu-toggle{ display: block; }
  .primary-navigation.is-open{ display: block; width: 100%; }
  .primary-navigation.is-open ul{ flex-direction: column; gap: 14px; padding: 14px 0; }
}

/* =========================================================
   5. ARTICLES / CARDS
   ========================================================= */
.post-card{
  background: transparent;
  margin-bottom: 46px;
  padding-bottom: 46px;
  border-bottom: 1px solid var(--border);
}
.post-card:last-child{ border-bottom: none; }

.post-card .post-thumb{
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 22px;
}
.post-card .post-thumb img{
  width: 100%;
  transition: transform .3s ease;
}
.post-card:hover .post-thumb img{ transform: scale(1.02); }

.post-card .entry-title{
  font-size: 26px;
  margin-bottom: 10px;
}
.post-card .entry-title a{ color: var(--text); }
.post-card .entry-title a:hover{ color: var(--accent-blue); text-decoration: none; }

.post-meta{
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.post-meta a{ color: var(--accent); }

.entry-summary p{ color: #33414c; }

.read-more{
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
}
.read-more::after{ content: " \2192"; }

/* =========================================================
   6. SIDEBAR
   ========================================================= */
.widget{
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 26px;
  border: 1px solid var(--border);
}

.widget-title{
  font-size: 18px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.search-form{
  display: flex;
  gap: 0;
}
.search-form input[type="search"]{
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px 0 0 6px;
  font-size: 14px;
  background: #f4f8fb;
}
.search-form button{
  border: none;
  background: var(--accent-blue);
  color: #fff;
  padding: 0 18px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  font-size: 15px;
}
.search-form button:hover{ background: var(--link-hover); }

.widget ul.recent-posts li,
.widget ul.recent-comments li{
  padding: 10px 0;
  border-bottom: 1px solid var(--bg-soft);
  font-size: 14.5px;
}
.widget ul li:last-child{ border-bottom: none; }
.widget ul.recent-posts li a{ color: var(--text); font-weight: 600; }
.widget ul.recent-posts li a:hover{ color: var(--accent-blue); text-decoration: none; }

.widget-icon-list li{ position: relative; padding-left: 18px; }
.widget-icon-list li::before{
  content: "\25C6";
  color: var(--accent-blue);
  position: absolute;
  left: 0;
  font-size: 11px;
  top: 12px;
}

/* Author widget */
.widget-author{ text-align: center; }
.widget-author img{
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 14px;
  border: 3px solid var(--bg);
}
.widget-author .author-name{
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 6px;
}
.widget-author .author-role{
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
}
.widget-author p{ font-size: 14px; color: #445; margin-bottom: 0;}

/* =========================================================
   7. PAGES: About / Contacts / Articles index
   ========================================================= */
.page-header{
  margin-bottom: 34px;
}
.page-header h1{ font-size: 32px; }
.page-header .page-subtitle{ color: var(--text-muted); font-size: 16px; }

.about-hero{
  display: flex;
  gap: 34px;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 34px;
}
.about-hero img{
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.about-hero h2{ margin-bottom: 8px; }

.info-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin: 30px 0;
}
@media (max-width: 700px){ .info-grid{ grid-template-columns: 1fr; } }

.info-card{
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.info-card h3{ font-size: 18px; color: var(--accent-blue); margin-bottom: 8px; }

/* Contact form */
.contact-form-wrap{
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  margin-top: 20px;
}
.contact-form-wrap label{
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}
.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap textarea{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-size: 14.5px;
  background: #f4f8fb;
}
.contact-form-wrap textarea{ min-height: 140px; resize: vertical; }
.contact-form-wrap button{
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 13px 30px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.contact-form-wrap button:hover{ background: #1f7f52; }

.contact-details{ display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 10px; }
.contact-details .contact-item{ font-size: 14.5px; }
.contact-details .contact-item strong{ display:block; color: var(--accent-blue); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px;}

/* Articles list page (interesting articles / archive style) */
.articles-list .post-card{
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}
.articles-list .post-thumb{ width: 260px; flex-shrink: 0; margin-bottom: 0; }
.articles-list .post-body{ flex: 1; }
@media (max-width: 700px){
  .articles-list .post-card{ flex-direction: column; }
  .articles-list .post-thumb{ width: 100%; }
}

/* Pagination */
.pagination{
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.pagination a, .pagination span{
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
}
.pagination .current{ background: var(--accent-blue); color: #fff; border-color: var(--accent-blue); }
.pagination a:hover{ background: var(--bg-soft); text-decoration: none; }

/* =========================================================
   8. SINGLE POST
   ========================================================= */
.single .entry-header{ margin-bottom: 24px; }
.single .entry-title{ font-size: 34px; }
.single .post-thumb{ border-radius: var(--radius); overflow: hidden; margin-bottom: 26px; }
.single .entry-content h2{ font-size: 24px; margin-top: 1.6em; }
.single .entry-content h3{ font-size: 20px; margin-top: 1.4em; }
.single .entry-content ul, .single .entry-content ol{ margin: 0 0 1.2em 1.4em; list-style: revert; }
.single .entry-content blockquote{
  border-left: 4px solid var(--accent);
  margin: 1.6em 0;
  padding: 4px 22px;
  color: var(--text-muted);
  font-style: italic;
}

/* =========================================================
   9. FOOTER
   ========================================================= */
.site-footer{
  background: #101820;
  color: #b9c6d0;
  padding: 46px 0 26px;
  margin-top: 30px;
}
.footer-inner{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid #263341;
}
.footer-col h4{ color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col ul li{ margin-bottom: 8px; }
.footer-col a{ color: #b9c6d0; font-size: 14px; }
.footer-col a:hover{ color: #9fe3c0; }
.footer-bottom{
  padding-top: 20px;
  font-size: 13px;
  text-align: center;
  color: #7a8996;
}

/* =========================================================
   10. WORDPRESS CORE ALIGN CLASSES
   ========================================================= */
.alignleft{ float:left; margin: 0 20px 12px 0; }
.alignright{ float:right; margin: 0 0 12px 20px; }
.aligncenter{ display:block; margin: 0 auto 12px; }
