/*
Theme Name: DigiMarketPro
Theme URI: https://honeydew-llama-921937.hostingersite.com
Author: Bedi
Author URI: https://honeydew-llama-921937.hostingersite.com
Description: A professional, clean WordPress theme for digital marketing tutorial websites. Inspired by Guru99 with modern design, SEO-optimized structure, and built-in ad placements.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: digimarketpro
Tags: blog, education, one-column, two-columns, custom-menu, featured-images, translation-ready
*/

/* ========== GLOBAL RESET & VARIABLES ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #1B4F72;
  --primary-light: #2E86C1;
  --primary-dark: #154360;
  --accent: #27AE60;
  --accent-hover: #219A52;
  --dark: #1a1a2e;
  --gray: #6c757d;
  --gray-light: #adb5bd;
  --light: #f8f9fa;
  --lighter: #f0f2f5;
  --white: #ffffff;
  --shadow: 0 2px 15px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.25s ease;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #333;
  line-height: 1.7;
  background: var(--white);
}
a { text-decoration: none; color: var(--primary-light); transition: var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
section, .section { padding: 5rem 0; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); color: var(--white); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: var(--white); border-color: var(--white); }
.btn-secondary { background: var(--primary); color: var(--white); padding: 0.75rem 1.8rem; }
.btn-secondary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); }

/* ========== NAVIGATION ========== */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid #eee;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}
.site-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}
.site-logo span { color: var(--accent); }
.site-logo a { color: inherit; }
.site-logo a:hover { color: inherit; }

/* WordPress Menu Styling */
.main-navigation ul {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}
.main-navigation a {
  color: #555;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.3rem 0;
}
.main-navigation a:hover { color: var(--primary); }
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a { color: var(--primary); }

/* Dropdown */
.main-navigation li { position: relative; }
.main-navigation ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: -1rem;
  background: var(--white);
  border: 1px solid #eee;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  min-width: 200px;
  padding: 0.5rem 0;
  z-index: 100;
  flex-direction: column;
  gap: 0;
}
.main-navigation li:hover > ul { display: flex; }
.main-navigation ul ul a {
  display: block;
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
}
.main-navigation ul ul a:hover { background: var(--light); }
.nav-cta-btn a {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
}
.nav-cta-btn a:hover { background: var(--accent-hover) !important; }

/* Hamburger */
.menu-toggle {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}
.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  display: block;
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--dark) 100%);
  color: var(--white);
  padding: 6rem 2rem 5rem;
  text-align: center;
}
.hero-content { max-width: 800px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: rgba(39,174,96,0.2);
  color: #5DADE2;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(93,173,226,0.3);
}
.hero h1 { font-size: 3.2rem; font-weight: 800; line-height: 1.15; margin-bottom: 1.2rem; }
.hero h1 span { color: #5DADE2; }
.hero > p, .hero-content > p { font-size: 1.15rem; opacity: 0.9; margin-bottom: 2rem; line-height: 1.8; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stat { text-align: center; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: #5DADE2; }
.stat-label { font-size: 0.85rem; opacity: 0.7; margin-top: 0.2rem; }

/* ========== SECTION HEADINGS ========== */
.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.section-sub {
  text-align: center;
  color: var(--gray);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* ========== GRIDS ========== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

/* ========== CARDS ========== */
.card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid #f0f0f0;
  color: #333;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); color: #333; }
.card-icon {
  width: 55px;
  height: 55px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}
.card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--dark); }
.card p { color: var(--gray); font-size: 0.92rem; margin-bottom: 1rem; line-height: 1.6; }
.card-count {
  display: inline-block;
  background: var(--light);
  color: var(--primary);
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ========== TUTORIAL/POST CARDS ========== */
.post-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid #f0f0f0;
  color: #333;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); color: #333; }
.post-card-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-card-body { padding: 1.5rem; }
.tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 0.7rem;
}
.tag-blue { background: #EBF5FB; color: #2E86C1; }
.tag-green { background: #EAFAF1; color: #27AE60; }
.tag-yellow { background: #FEF9E7; color: #B7950B; }
.tag-purple { background: #F4ECF7; color: #8E44AD; }
.tag-orange { background: #FDF2E9; color: #E67E22; }
.tag-red { background: #FDEDEC; color: #E74C3C; }
.post-card-body h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--dark); line-height: 1.4; }
.post-card-body p { color: var(--gray); font-size: 0.88rem; margin-bottom: 0.8rem; }
.post-meta {
  display: flex;
  gap: 1.2rem;
  color: var(--gray-light);
  font-size: 0.8rem;
}

/* ========== WHY US ========== */
.why-card { text-align: center; padding: 2rem 1.5rem; }
.why-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.why-card h4 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--dark); }
.why-card p { color: var(--gray); font-size: 0.9rem; }

/* ========== NEWSLETTER ========== */
.newsletter {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 5rem 0;
}
.newsletter-inner { text-align: center; max-width: 600px; margin: 0 auto; }
.newsletter-icon { font-size: 3rem; margin-bottom: 1rem; }
.newsletter h2 { font-size: 2rem; margin-bottom: 0.5rem; color: var(--white); }
.newsletter p { opacity: 0.9; margin-bottom: 2rem; }
.email-form { display: flex; gap: 0.5rem; max-width: 500px; margin: 0 auto; }
.email-form input {
  flex: 1;
  padding: 0.9rem 1.2rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  outline: none;
}
.email-form input:focus { box-shadow: 0 0 0 3px rgba(39,174,96,0.3); }
.email-form button {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.email-form button:hover { background: var(--accent-hover); }
.newsletter-trust { margin-top: 0.8rem; font-size: 0.8rem; opacity: 0.6; }

/* ========== SINGLE POST ========== */
.article-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 4rem 2rem 3rem;
}
.article-hero .container { max-width: 800px; }
.breadcrumb { font-size: 0.85rem; opacity: 0.7; margin-bottom: 1rem; }
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: var(--white); }
.article-hero h1 { font-size: 2.4rem; font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.article-meta-bar {
  display: flex;
  gap: 1.5rem;
  font-size: 0.88rem;
  opacity: 0.8;
  flex-wrap: wrap;
}
.article-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
}
.article-content h2 {
  font-size: 1.6rem;
  color: var(--primary);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--light);
}
.article-content h3 { font-size: 1.25rem; color: var(--dark); margin: 2rem 0 0.8rem; }
.article-content p { margin-bottom: 1.2rem; line-height: 1.8; }
.article-content ul, .article-content ol { margin: 1rem 0 1.5rem 1.5rem; line-height: 2; }
.article-content img { border-radius: var(--radius-sm); margin: 1.5rem 0; }

/* Sidebar */
.sidebar-widget {
  background: var(--light);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--dark);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}
.sidebar-widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar-widget li { margin-bottom: 0.5rem; }
.sidebar-widget li a { color: #555; font-size: 0.9rem; }
.sidebar-widget li a:hover { color: var(--primary); }
.sidebar-ad {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.sidebar-ad h4 { color: var(--white); border: none; font-size: 1rem; margin-bottom: 0.5rem; }
.sidebar-ad p { font-size: 0.85rem; opacity: 0.9; margin-bottom: 1rem; }
.ad-placeholder {
  background: var(--white);
  border: 2px dashed #ddd;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  color: var(--gray);
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

/* ========== PAGE HERO ========== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
}
.page-hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.page-hero p { font-size: 1.1rem; opacity: 0.9; max-width: 600px; margin: 0 auto; }

/* ========== CONTACT FORM ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; color: var(--dark); font-size: 0.95rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(46,134,193,0.15);
}
.form-group textarea { resize: vertical; min-height: 150px; }
.contact-info-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-info-card h4 { font-size: 0.95rem; margin-bottom: 0.2rem; color: var(--dark); }
.contact-info-card p { font-size: 0.9rem; color: var(--gray); margin: 0; }

/* ========== TOOLS PAGE ========== */
.tools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.tool-review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid #f0f0f0;
  transition: var(--transition);
}
.tool-review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.tool-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.tool-rating { color: #F1C40F; font-size: 1rem; }
.tool-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}
.tool-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tool-tag { background: var(--light); color: var(--gray); padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.75rem; }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--dark);
  color: #ccc;
  padding: 4rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand .site-logo { color: var(--white); font-size: 1.3rem; }
.footer-brand p { margin-top: 0.8rem; font-size: 0.88rem; color: #888; line-height: 1.6; }
.social-links { margin-top: 1rem; display: flex; gap: 0.8rem; }
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.social-links a:hover { background: var(--accent); color: var(--white); }
.site-footer h4 { color: var(--white); margin-bottom: 1rem; font-size: 0.95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer li a { color: #888; font-size: 0.88rem; }
.site-footer li a:hover { color: var(--white); }
.site-footer .menu { list-style: none; margin: 0; padding: 0; }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  color: #555;
  font-size: 0.85rem;
}

/* ========== ARCHIVE / BLOG ========== */
.archive-header { margin-bottom: 2rem; }
.archive-header h1 { font-size: 2rem; color: var(--primary); }
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}
.pagination a, .pagination span {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
}
.pagination a { background: var(--light); color: var(--primary); }
.pagination a:hover { background: var(--primary); color: var(--white); }
.pagination .current { background: var(--primary); color: var(--white); }

/* Info/Tip Boxes for content */
.info-box {
  background: #EBF5FB;
  border-left: 4px solid var(--primary-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}
.info-box.tip { background: #EAFAF1; border-color: var(--accent); }
.info-box.warning { background: #FDF2E9; border-color: #E67E22; }

/* Value cards (about page) */
.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.value-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.value-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--dark); }
.value-card p { font-size: 0.9rem; color: var(--gray); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .stat-num { font-size: 1.3rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .main-navigation ul {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 2rem;
    box-shadow: var(--shadow-hover);
    gap: 0.5rem;
  }
  .main-navigation.toggled ul { display: flex; }
  .menu-toggle { display: flex; }
  .main-navigation ul ul { position: static; box-shadow: none; border: none; padding-left: 1rem; }
  .email-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 4rem 1.5rem 3rem; }
  .section-title { font-size: 1.8rem; }
  .article-hero h1 { font-size: 1.8rem; }
  .page-hero h1 { font-size: 2rem; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  section, .section { padding: 3rem 0; }
}
