/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* ===============================
   SITE COLOR THEME: SKY BLUE, RED, WHITE
=============================== */

/* Hero Section */
.hero-section {
  background: #091b82; /* clean white background */
  padding: 60px 20px;
  text-align: center;
  color: #fff; /* default text dark gray for contrast */
  position: relative;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: ##091b82; /* sky blue headline */
}

.hero-section p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: ##091b82; /* subtle dark gray */
}

/* Hero Search */
#themeforge-hero-search {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 20px;
}

#themeforge-hero-search input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid #00bfff; /* sky blue border */
  border-radius: 8px;
  font-size: 16px;
  background: #ffffff;
  color: #1e1e1e;
  transition: all 0.3s ease;
}

#themeforge-hero-search input::placeholder {
  color: #a0a0a0;
}

#themeforge-hero-search button {
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  background: #ff4d4d; /* red button */
  color: #ffffff;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

#themeforge-hero-search button:hover {
  opacity: 0.9;
}

/* Search Results Cards */
.themeforge-search-card {
  border: 1px solid #00bfff; /* sky blue border for cards */
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff; /* white card */
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.themeforge-search-card img {
  width: 100%;
  height: auto;
}

.themeforge-search-card h4 {
  margin: 10px 0;
  color: #ff4d4d; /* red titles inside cards */
  font-size: 16px;
}

/* Buttons Site-wide */
.themeforge-buttons .btn {
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.themeforge-buttons .btn.whatsapp {
  background: #00bfff; /* sky blue */
  color: #ffffff;
}

.themeforge-buttons .btn.telegram {
  background: #ff4d4d; /* red */
  color: #ffffff;
}

.themeforge-buttons .btn:hover {
  opacity: 0.9;
}

/* Links */
a {
  color: #00bfff; /* sky blue links */
  text-decoration: none;
}

a:hover {
  color: #ff4d4d; /* hover red */
}


/* Hide download button on mobile */
@media (max-width: 789px) {
  .desktop-only {
    display: none !important;
  }
  .themeforge-card-title a {
    text-decoration: none;
    color: inherit;
    display: block; /* make the whole title clickable */
  }
}

/* Mobile: entire card is clickable */
@media (max-width: 789px) {
  .themeforge-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    width: 100%;
  }

  .themeforge-card {
    position: relative;
  }

  .themeforge-card-btn.desktop-only {
    display: none !important; /* hide download button on mobile */
  }

  .themeforge-card-title {
    cursor: pointer; /* hint clickable */
  }
}

/* ===== POPUP BASE ===== */
.themeforge-popup {
  display: none; 
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.themeforge-popup-content {
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  animation: popup-scale 0.4s ease;
}

@keyframes popup-scale {
  from {transform: scale(0.8); opacity: 0;}
  to   {transform: scale(1); opacity: 1;}
}

.themeforge-popup-close {
  float: right;
  font-size: 22px;
  cursor: pointer;
}

.themeforge-popup h2 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.themeforge-popup p {
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.themeforge-popup-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.popup-btn {
  display: block;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.popup-btn.yt { background: #ff0000; color: #fff; }
.popup-btn.tg { background: #0088cc; color: #fff; }
.popup-btn.wa { background: #25D366; color: #fff; }

.popup-btn:hover { opacity: 0.8; }





/* Full width layout for homepage, posts, and pages */
body.home .site,
body.single-post .site,
body.page .site,
.site,
.site-content,
.container,
.inside-article,
.inside-page,
.page .inside-article,
.single .inside-article {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  box-sizing: border-box;
}

.themeforge-download-box {
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  max-width: 400px;
  margin: 20px auto;
  background: #f9f9f9;
}
.themeforge-download-btn {
  background: #6f83f2;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}
.themeforge-download-btn:hover { background: #e60000; }



/* Center WordPress default post/page title and content */
.entry-title,
.entry-content {
  text-align: center;
}

/* Optional: Force centering on all headings inside content */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content p {
  text-align: center;
}


/* Optional inner padding for content readability */
.entry-content,
.inside-article {
  padding-left: 16px;
  padding-right: 16px;
}

/* Remove padding from GeneratePress structure */
.site.grid-container,
.site-content .content-area,
.site-main,
body .inside-article,
body .entry-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
}







/* Grid for action buttons */
.prokit-buttons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 20px 0;
}
.prokit-btn {
  display: block;
  padding: 10px;
  text-align: center;
  background: #6d34b8;
  color: #fff;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}
.prokit-btn:hover { background: #9f70ff; }

/* Modals */
.prokit-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
}
.prokit-modal-content {
  background: #fff;
  max-width: 400px;
  margin: 80px auto;
  padding: 20px;
  border-radius: 8px;
  position: relative;
}
.prokit-close {
  position: absolute;
  right: 20px; top: 10px;
  font-size: 24px;
  cursor: pointer;
}


/* ===============================
   ACTION BUTTONS WRAPPER
=============================== */
.themeforge-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

/* Each button style */
.themeforge-action-buttons a {
  flex: 1 1 auto;
  background: #6f83f2;
  color: #fff;
  padding: 10px;
  text-align: center;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.themeforge-action-buttons a:hover {
  background: #3340cc;
}


.themeforge-action-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.themeforge-action-buttons a {
  flex: 1 1 auto;
  text-align: center;
  padding: 12px;
  background: #6f83f2;
  color: #fff;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.themeforge-action-buttons a:hover {
  background: #e60000;
}

/* 2-column only on mobile */
@media (max-width: 789px) {
  .themeforge-action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .themeforge-action-buttons a {
    font-size: 0.85rem;
    padding: 10px;
  }
}


.themeforge-request-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr; /* always 2 side by side */
  gap: 8px;
  margin: 8px 0;
}

.themeforge-request-buttons .tf-btn {
  background: #6d34b8;
  color: #fff;
  padding: 8px 0;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background .3s ease;
}
.themeforge-request-buttons .tf-btn:hover {
  background: #9f70ff;
}


/* Download Button */
.themeforge-download-btn {
    display: inline-block;
    background: #d32f2f; /* red button */
    color: #fff !important;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none !important;
    font-weight: bold;
    transition: background 0.3s;
}
.themeforge-download-btn:hover {
    background: #b71c1c;
}



.themeforge-post-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* exactly 5 cards per row */
    gap: 20px;
    justify-items: stretch; /* ensure cards stretch evenly */
}

/* ===============================
   Desktop spacing for post grid
=============================== */
@media (min-width: 790px) {
  .themeforge-post-grid {
      margin-right: 70px; /* pushes cards away from right sidebar */
      margin-left: 70px;  /* optional left spacing */
      gap: 20px;          /* spacing between cards */
  }
}

.themeforge-card {
    border:1px solid #ddd;
    border-radius:6px;
    overflow:hidden;
    background:#fafafa;
    display:flex;
    flex-direction:column;
    text-align:center;
}

.themeforge-card-image img {
    width:100%;
    height:auto;
    object-fit:cover;
}

.themeforge-card-content {
    padding:10px;
}

.themeforge-card-btn {
    display:inline-block;
    padding:8px 12px;
    margin:10px 0;
    background:#1976d2;
    color:#fff;
    border-radius:4px;
    text-decoration:none;
}

.themeforge-card-btn.desktop-only {
    display:none;
}

@media(min-width: 790px) {
    .themeforge-card-btn.desktop-only {
        display:inline-block;
    }
}


/* Force 5-column grid for Daily Updates */
.themeforge-post-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important; /* exactly 5 per row */
  gap: 20px !important;
  max-width: 1600px;
  margin: 0 auto !important;  /* center the grid */
  padding: 20px;
}

/* Adjust for tablets */
@media (max-width: 1200px) {
  .themeforge-post-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Adjust for mobile landscape */
@media (max-width: 768px) {
  .themeforge-post-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Adjust for small phones */
@media (max-width: 480px) {
  .themeforge-post-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Make sure cards don’t stretch weirdly */
.themeforge-card {
  background: #fff;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.themeforge-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}




/* ===============================
   MOBILE (2-COLUMN GRID)
=============================== */
@media (max-width: 789px) {
  .themeforge-action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 per row */
    gap: 8px;
  }
  
  .themeforge-action-buttons a {
    font-size: 0.85rem;
    padding: 8px 0;
  }
}



/* ===============================
   AJAX SEARCH RESULTS
=============================== */
#search-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.themeforge-search-card {
  background: #1a1a1a;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 0 10px rgba(160,123,217,0.3);
  text-align: left;
  transition: transform 0.2s ease;
}
.themeforge-search-card:hover {
  transform: translateY(-4px);
}

.themeforge-search-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
}

.themeforge-search-card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #ffd700;
}

.themeforge-search-card .category {
  font-size: 0.85rem;
  color: #a07bd9;
  margin-top: 5px;
}

#search-results {
    display: none;
    background: #111;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(128, 0, 128, 0.3);
    margin-top: 12px;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.themeforge-search-card img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 6px;
}
.themeforge-search-card h4 {
    font-size: 0.9rem;
    color: #ffd700;
    margin: 0;
    text-align: center;
}


/* ===============================
   Social Buttons Grid (WhatsApp & Telegram)
=============================== */
.social-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Always 2 columns */
  gap: 12px;
  margin: 15px 0;
}

.social-buttons a {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s ease;
}

/* WhatsApp */
.social-buttons a.whatsapp-btn {
  background: #25d366;
}
.social-buttons a.whatsapp-btn:hover {
  background: #1ebe5c;
}

/* Telegram */
.social-buttons a.telegram-btn {
  background: #0088cc;
}
.social-buttons a.telegram-btn:hover {
  background: #006699;
}



/* === SOCIAL BUTTONS (Enhanced) === */
.themeforge-single-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin: 25px auto;
  max-width: 500px;  /* ✅ keeps them centered and neat */
}

.themeforge-single-buttons a {
  background: #222;
  color: gold;
  padding: 14px 18px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* subtle glow effect */
.themeforge-single-buttons a::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.4s ease;
}
.themeforge-single-buttons a:hover::after {
  left: 100%;
}

.themeforge-single-buttons a:hover {
  background: gold;
  color: #111;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.35);
}


/* === HOMEPAGE REQUEST BUTTONS (Fix) === */
.themeforge-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 500px;
  margin: 15px auto;
}

.themeforge-buttons a {
  background: #111;
  color: gold;
  padding: 12px;
  border-radius: 6px;
  text-align: center;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.themeforge-buttons a:hover { 
  background: gold; 
  color: #111; 
}


/* Read More Button */
.themeforge-card-content a.read-more {
  display: inline-block;
  background: #097307;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.3s ease;
}
.themeforge-card-content a.read-more:hover { background: #0a29c4; }

.themeforge-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  border-color: #ffcc00;
}

/* === SUPPORT BUTTON === */
#themeforge-support-button {
  position: fixed;
  top: 50%; /* vertically centered */
  right: 0;
  transform: translateY(-50%);
  background: #6d34b8;
  color: #fff; 
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 30px 0 0 30px; /* rounded left side */
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  z-index: 99999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  text-align: center;
  line-height: 1;
  transition: background 0.3s ease, transform 0.3s ease;
}

#themeforge-support-button:hover {
  background: #9f70ff;
  transform: translateY(-50%) scale(1.05);
}

/* === SUPPORT MODAL === */
#themeforge-support-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; 
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 99998;
  justify-content: center;
  align-items: center;
}

#themeforge-support-modal.show { 
  display: flex !important; 
}

.themeforge-support-content {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

#themeforge-support-close {
  position: absolute;
  top: 15px; 
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #000;
  cursor: pointer;
}

/* === FORM === */
#themeforge-support-form input,
#themeforge-support-form textarea {
  width: 100%;
  margin: 8px 0;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#themeforge-support-form button {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  background: #6d34b8;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

#themeforge-support-form button:hover { 
  background: #9f70ff; 
}


/* === CATEGORY GRID === */
.themeforge-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.themeforge-category-title {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.themeforge-category-desc {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #555;
}

.themeforge-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.themeforge-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.themeforge-card-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.themeforge-card-content {
  padding: 15px;
}

.themeforge-card-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.themeforge-card-title a {
  color: #222;
  text-decoration: none;
}

.themeforge-card-meta {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 12px;
}

.themeforge-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.themeforge-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.themeforge-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.themeforge-card-image img {
  width: 100%;
  height: auto;
  display: block;
}

.themeforge-card-content {
  padding: 15px;
}

.themeforge-card-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.themeforge-card-title a {
  color: #222;
  text-decoration: none;
}

.themeforge-card-date {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 8px;
}

.themeforge-card-btn {
  display: block;
  background: #0073e6;
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.themeforge-card-btn:hover {
  background: #005bb5;
}

.themeforge-daily-updates h2.themeforge-section-title {
  margin: 30px 0 15px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #222;
  border-bottom: 2px solid #eee;
  padding-bottom: 6px;
}


/* ===============================
   Post Grid – 5 Columns
=============================== */
.themeforge-post-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* exactly 5 cards per row */
    gap: 20px;
    justify-items: stretch;
}

/* Desktop spacing */
@media (min-width: 790px) {
  .themeforge-post-grid {
      margin-right: 70px;
      margin-left: 70px;
      gap: 20px;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .themeforge-post-grid {
      grid-template-columns: repeat(3, 1fr); /* 3 per row on tablets */
  }
}

/* Mobile */
@media (max-width: 768px) {
  .themeforge-post-grid {
      grid-template-columns: repeat(2, 1fr); /* 2 per row on mobile */
  }
}





/* === INFO BOX === */
.themeforge-info-box {
    background: #fff; /* clean white body */
    border: 2px solid #1976d2; /* main blue */
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    font-family: 'Segoe UI', sans-serif;
}

.themeforge-info-box h4 {
    background: #1976d2; /* blue header */
    color: #fff;
    padding: 10px 15px;
    margin: -20px -20px 15px -20px; /* full-width header */
    border-radius: 8px 8px 0 0;
    font-size: 18px;
}

.themeforge-info-box table {
    width: 100%;
    border-collapse: collapse;
}

.themeforge-info-box td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.themeforge-info-box td:first-child {
    font-weight: bold;
    color: #333;
    width: 40%;
}

.themeforge-info-box a {
    color: #1976d2;
    font-weight: 600;
    text-decoration: underline;
}

.themeforge-info-box a:hover {
    color: #0d47a1;
}

   margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 12px 15px;
    margin: 0 0 10px 0;
    border-left: 3px solid #1976d2;
    background: #fff;
    display: none;
    border-radius: 0 0 6px 6px;
}

.faq-toggle {
    font-size: 18px;
    color: #1976d2;
}


.btn-red {
    background:#d32f2f;
    color:#fff;
    padding:10px 20px;
    font-weight:bold;
    border-radius:6px;
    text-decoration:none;
}
.btn-red:hover { background:#b71c1c; }

.join-btn.green {
    background:#25d366;
    color:#fff;
    padding:8px 15px;
    border-radius:5px;
    text-decoration:none;
    font-weight:bold;
}
.join-btn.blue {
    background:#0088cc;
    color:#fff;
    padding:8px 15px;
    border-radius:5px;
    text-decoration:none;
    font-weight:bold;
}
.buy-box {
    background:#1976d2;
    padding:20px;
    color:#fff;
    text-align:center;
    border-radius:10px;
    margin:20px 0;
}
.buy-box .btn-blue {
    display:inline-block;
    margin-top:10px;
    background:#fff;
    color:#1976d2;
    padding:8px 15px;
    border-radius:5px;
    font-weight:bold;
    text-decoration:none;
}
.version-box {
    background:#f5f8ff;
    border:1px solid #1976d2;
    padding:15px;
    border-radius:8px;
    margin:20px 0;
}
.version-box h4 {
    background:#1976d2;
    color:#fff;
    padding:8px;
    border-radius:5px;
}
.version-box pre {
    background:#fff;
    padding:10px;
    border:1px solid #ccc;
    overflow-x:auto;
    border-radius:4px;
}


/* === ARCHIVE HEADER === */
.themeforge-archive-container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.themeforge-archive-header { text-align: center; margin-bottom: 30px; }
.themeforge-archive-header h1 { color: gold; }
.themeforge-archive-header p { color: #bbb; }



/* === SOCIAL POPUP === */
#themeforge-social-popup {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(145deg, #f0f9ff, #d0e7ff);
  color: #222;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  z-index: 9999;
  max-width: 320px;
  width: 90%;
  display: none;
  text-align: center;
}

.themeforge-social-links a {
  display: block;
  margin: 8px 0;
  padding: 10px;
  border-radius: 6px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.themeforge-social-links a:first-child { background: #25d366; }
.themeforge-social-links a:last-child { background: #0088cc; }

/* === SIDEBAR CARD === */
.themeforge-sidebar-card {
  background: #1a1a1a;
  color: #eee;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: sticky;
  top: 80px;
}

.themeforge-sidebar-card h4 { color: gold; }
.themeforge-sidebar-card img { border-radius: 8px; width: 100%; }

/* Sidebar Styles */
.themeforge-sidebar {
    background-color: #111;
    padding: 20px;
    color: #ffd700;
}

.themeforge-social-buttons {
    margin-bottom: 30px;
}

.social-buttons a {
    display: inline-block;
    padding: 10px;
    background-color: #333;
    margin-right: 10px;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.social-buttons a:hover {
    background-color: #555;
}



/* Mobile responsiveness */
@media (max-width: 768px) {
    #themeforge-fixed-widget {
        width: 200px;
        font-size: 14px;
    }

    #themeforge-reopen {
        font-size: 18px;
    }
}


/* === IMAGE FIX (Proportional & Centered) === */
.themeforge-card img {
  width: 100%;
  height: auto;            /* ✅ Keep aspect ratio, no distortion */
  max-height: 200px;       /* ✅ Optional: limit very tall images */
  object-fit: cover;       /* ✅ Crop to fit neatly */
  display: block;
  margin: 0 auto;
  border-bottom: 1px solid #eee;
}

/* === CONTENT CENTERING === */
.themeforge-card-content {
  padding: 12px;
  text-align: center;
}

.themeforge-card-title {
  font-size: 1rem;
  font-weight: bold;
  color: #097307;
  margin-bottom: 8px;
  line-height: 1.4em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === READ MORE BUTTON === */
.themeforge-card-content a.read-more {
  display: inline-block;
  background: #097307;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.3s ease;
}
.themeforge-card-content a.read-more:hover {
  background: #0a29c4;
}

/* === UNIVERSAL BUTTON FIX === */
.themeforge-card-btn,
.themeforge-card-content a.read-more,
.themeforge-hero-buttons a,
.themeforge-hero-buttons button,
.themeforge-buttons a,
.themeforge-single-buttons a,
.themeforge-modal form button,
#themeforge-support-form button {
  display: inline-block;
  padding: 10px 16px;
  background: #ffd700;      /* Gold default */
  color: #000;              /* Black text */
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.themeforge-card-btn:hover,
.themeforge-card-content a.read-more:hover,
.themeforge-hero-buttons a:hover,
.themeforge-hero-buttons button:hover,
.themeforge-buttons a:hover,
.themeforge-single-buttons a:hover,
.themeforge-modal form button:hover,
#themeforge-support-form button:hover {
  background: #f0c400;  /* Darker gold on hover */
  color: #111;
}

/* Green "Read More" buttons only */
.themeforge-card-content a.read-more {
  background: #097307;
  color: #fff;
}

.themeforge-card-content a.read-more:hover {
  background: #0a29c4; /* Blue hover */
  color: #fff;
}

/* Dark homepage request buttons */
.themeforge-buttons a {
  background: #111;
  color: gold;
}

.themeforge-buttons a:hover {
  background: gold;
  color: #111;
}

/* Modal submit buttons (purple) */
.themeforge-modal form button,
#themeforge-support-form button {
  background: #6B46C1;
  color: #fff;
}

.themeforge-modal form button:hover,
#themeforge-support-form button:hover {
  background: #4B2C91;
}

/* ============================
   THEMEFORGE SIDEBARS & MODALS
   ============================ */


/* === BUTTONS === */
.themeforge-button-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.themeforge-button {
  display: block;
  padding: 12px 14px;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  background: #fff;
  color: #111;
}
.themeforge-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Accent buttons */
.themeforge-button.support { background: #007bff; color: #fff; }
.themeforge-button.newsletter { background: #ff5733; color: #fff; }
.themeforge-button.offers { background: #ffc107; color: #000; }
.themeforge-button.downloads { background: #28a745; color: #fff; }
.themeforge-button.featured { background: #6c63ff; color: #fff; }
.themeforge-button.seo { background: #17a2b8; color: #fff; }
.themeforge-button.announce { background: #e83e8c; color: #fff; }
.themeforge-button.ads { background: #343a40; color: #fff; }
.themeforge-button.ads img {
  display: block;
  margin: 8px auto 0;
  border-radius: 4px;
  max-width: 100%;
}

/* === SIDEBARS === */
.themeforge-sticky-sidebar,
#themeforge-fixed-widget {
  position: absolute;  /* initial */
  top: auto;
  width: 300px;
  background: #111;
  color: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 9999;
  transition: all 0.3s ease;
}

.themeforge-sticky-sidebar { right: 40px; }
#themeforge-fixed-widget { left: 40px; }

/* Sticky state after hero */
.themeforge-sticky-sidebar.active-sticky {
  position: fixed;
  top: 120px;
  right: 40px;
}
#themeforge-fixed-widget.active-sticky {
  position: fixed;
  top: 120px;
  left: 40px;
}

#discounts-sidebar {
    position: fixed;
    top: 40%;
    right: 0;
    z-index: 9999;
}

#discounts-sidebar .btn-discount {
    background: #ff4d4d;
    color: #fff;
    padding: 12px 18px;
    border-radius: 6px 0 0 6px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    display: inline-block;
}
#discounts-sidebar .btn-discount:hover {
    background: #e60000;
}


/* === TOGGLE BUTTONS === */
.themeforge-toggle {
  display: none;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: #000;
  color: #fff;
  padding: 6px 10px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10000;
  font-size: 18px;
}
#themeforge-toggle-left { left: 5px; }
#themeforge-toggle-right { right: 5px; }

/* === MOBILE === */
@media (max-width: 1024px) {
  .themeforge-sticky-sidebar,
  #themeforge-fixed-widget {
    position: static !important;
    width: 100% !important;
    max-width: 95% !important;
    margin: 20px auto !important;
    text-align: center !important;
    display: block !important;
  }

  .themeforge-sticky-sidebar .themeforge-button-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .themeforge-sticky-sidebar .themeforge-button {
    width: 80% !important;
    max-width: 300px !important;
  }

  #themeforge-toggle-left,
  #themeforge-toggle-right,
  #themeforge-reopen {
    display: none !important;
  }
}


/* ===============================
   MODAL STYLES (FINAL MERGE + CENTERING)
=============================== */

/* Base modal container */
.themeforge-modal {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 10000;
  justify-content: center;   /* center horizontally */
  align-items: center;       /* center vertically */
  padding: 20px;
  display: none;             /* hidden by default */
}

/* When active, modal shows */
.themeforge-modal.active {
  display: flex;
}

/* Inner modal box */
.themeforge-modal-content {
  background: #fff;
  border-radius: 8px;
  padding: 25px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: slideDown 0.3s ease;
  overflow-y: auto;
  max-height: 90vh;

  /* ✅ Center contents inside */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  margin: auto;
}

/* Close button */
.themeforge-close {
  align-self: flex-end; /* ✅ stays on top-right */
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: #666;
}
.themeforge-close:hover { 
  color: red; 
}

/* Inputs and buttons inside modal */
.themeforge-modal input,
.themeforge-modal textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-align: center; /* ✅ center placeholder text */
}

.themeforge-modal button {
  background: #0d0d0d;
  color: #ffd700;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}

/* Ensure all text and forms are centered */
.themeforge-modal-content h2,
.themeforge-modal-content p,
.themeforge-modal-content form {
  text-align: center;
  margin: 0 auto 15px auto;
  width: 100%;
}

/* Animation */
@keyframes slideDown {
  from { transform: translateY(-30px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Mobile tweak */
@media (max-width: 768px) {
  .themeforge-hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
  .themeforge-hero-buttons a,
  .themeforge-hero-buttons button {
    flex: 1 1 auto;
    text-align: center;
  }
}





/* === FORCE CONTENT CENTERING === */
.single-post .site-main,
.page .site-main,
.inside-article,
.entry-content {
  max-width: 900px !important;  /* constrain width for readability */
  margin: 0 auto !important;    /* center horizontally */
  padding: 20px !important;
  text-align: center !important;
}

.entry-content img {
  display: block;
  margin: 15px auto;            /* center images inside posts */
}




