/* CSS Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #E60023;
    --primary-dark: #ad081b;
    --secondary-color: #0084ff;
    --bg-color: #ffffff;
    --bg-secondary: #f7f8fa;
    --text-color: #2c2c2c;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

body.dark-mode {
    --bg-color: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --text-color: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #404040;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

@media (min-width: 768px) {
    .nav-container {
        padding: 15px 20px;
    }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.logo i {
    font-size: 22px;
}

.logo:hover {
    transform: scale(1.05);
}

@media (min-width: 768px) {
    .logo {
        font-size: 22px;
        gap: 10px;
    }
    
    .logo i {
        font-size: 24px;
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
}

.nav-menu li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu li a:hover {
    color: var(--primary-color);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu li a:hover::after {
    width: 100%;
}
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: var(--bg-color);
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        padding: 30px;
        gap: 20px;
        box-shadow: var(--shadow);
        transition: var(--transition);
        align-items: flex-start;
    }

    .nav-menu.active {
        right: 0;
    }
.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    background: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
}

.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 0, 35, 0.1);
}

.input-group button {
    padding: 14px 25px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.input-group button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

@media (min-width: 500px) {
    .input-group {
        flex-direction: row;
    }
    
    .input-group input {
        flex: 1;
    }
    
    .input-group button {
        width: auto;
        min-width: 140px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Hero Section - Compact & Mobile-First */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    color: #fff;
    padding: 30px 20px 25px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.hero-logo i {
    font-size: 36px;
}

.hero-logo h1 {
    font-size: 32px;
    font-weight: bold;
}

.hero-title {
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 700;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 15px;
    margin-bottom: 0;
    opacity: 0.95;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .hero {
        padding: 40px 20px 35px;
    }
    
    .hero-logo i {
        font-size: 42px;
    }
    
    .hero-logo h1 {
        font-size: 38px;
    }
    
    .hero-title {
        font-size: 32px;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 17px;
    }
}
/* Tool Section - Moved Up, Compact */
.tool-section {
    padding: 25px 20px 30px;
    background: var(--bg-color);
    margin-top: -10px;
    border-radius: 20px 20px 0 0;
    position: relative;
    z-index: 10;
  min-height: 360px;
  padding-top: 24px;
}
@media (max-width: 768px) {
  .tool-section {
    min-height: 420px;
  }
}

.tool-header {
    text-align: center;
    margin-bottom: 20px;
}

.tool-header h2 {
    font-size: 22px;
    color: var(--text-color);
    margin-bottom: 6px;
}

.tool-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.tool-box {
    max-width: 650px;
    margin: 0 auto;
    background: var(--bg-secondary);
    padding: 25px 20px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}
.tool-shell {
  min-height: 520px; /* mobile worst case */
}

@media (min-width: 768px) {
  .tool-shell {
    min-height: 480px; /* desktop */
  }
}
@media (min-width: 768px) {
    .tool-section {
        padding: 35px 20px 40px;
    }
    
    .tool-header h2 {
        font-size: 28px;
        margin-bottom: 8px;
    }
    
    .tool-header p {
        font-size: 15px;
    }
    
    .tool-box {
        padding: 30px;
    }
}

/* Result Box - Proper Video/Image Size */
.result-box {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.media-preview {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

.media-preview video,
.media-preview img {
    width: 100%;
    max-width: 500px;
    max-height: 280px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .media-preview video,
    .media-preview img {
        max-height: 350px;
    }
}

.download-btn {
    display: block;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 14px;
    background: var(--secondary-color);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 15px;
    transition: var(--transition);
}

.download-btn:hover {
    background: #0066cc;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.download-btn i {
    margin-right: 8px;
}

.error-box {
    margin-top: 15px;
    padding: 14px;
    background: #fff5f5;
    border: 1px solid #ffcccc;
    border-radius: 10px;
    color: #d63031;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.error-box i {
    font-size: 18px;
    flex-shrink: 0;
}
/* Features Section - Compact */
.features {
    padding: 40px 20px;
    background: var(--bg-secondary);
}

.section-title {
    text-align: center;
    font-size: 26px;
    margin-bottom: 30px;
    color: var(--text-color);
}

@media (min-width: 768px) {
    .features {
        padding: 50px 20px;
    }
    
    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-color);
    padding: 25px 20px;
    border-radius: 14px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 15px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 14px;
}

@media (min-width: 768px) {
    .feature-card {
        padding: 30px;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 30px;
        margin-bottom: 20px;
    }
    
    .feature-card h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .feature-card p {
        font-size: 15px;
    }
}

/* Content Section - Compact */
.content-section {
    padding: 40px 20px;
    background: var(--bg-color);
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-wrapper h2 {
    font-size: 26px;
    margin-bottom: 16px;
    color: var(--text-color);
}

.content-wrapper h3 {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.content-wrapper p {
    margin-bottom: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 15px;
}

@media (min-width: 768px) {
    .content-section {
        padding: 50px 20px;
    }
    
    .content-wrapper h2 {
        font-size: 30px;
        margin-bottom: 20px;
    }
    
    .content-wrapper h3 {
        font-size: 22px;
        margin-top: 30px;
    }
    
    .content-wrapper p {
        font-size: 16px;
        margin-bottom: 20px;
    }
}

/* FAQ SECTION FIX */
.faq-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 15px;
}

.faq-item {
  background: transparent;
  padding: 12px 0;
  margin-bottom: 14px;
  border-bottom: 1px solid #eee;
}

.faq-item h3 {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 6px;
  font-weight: 600;
}

.faq-item p {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

/* Mobile fix */
@media (max-width: 600px) {
  .faq-item h3 {
    font-size: 16px;
  }
  .faq-item p {
    font-size: 14px;
  }
}

/* Footer - Compact */
.footer {
    background: var(--bg-secondary);
    padding: 40px 20px 20px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .footer {
        padding: 50px 20px 20px;
    }
    
    .footer-grid {
        gap: 40px;
        margin-bottom: 40px;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.footer-logo i {
    font-size: 22px;
}

.footer-col p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-color);
}

@media (min-width: 768px) {
    .footer-logo {
        font-size: 22px;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .footer-logo i {
        font-size: 24px;
    }
    
    .footer-col p {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .footer-col h4 {
        font-size: 17px;
        margin-bottom: 18px;
    }
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
    font-size: 14px;
}

@media (min-width: 768px) {
    .footer-col ul li {
        margin-bottom: 12px;
        font-size: 15px;
    }
}

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-logo h1 {
        font-size: 36px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .input-group {
        flex-direction: column;
    }

    .input-group button {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 28px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .tool-box {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 25px 15px 20px;
    }

    .hero-logo i {
        font-size: 32px;
    }

    .hero-logo h1 {
        font-size: 28px;
    }

    .hero-title {
        font-size: 20px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }

    .tool-header h2 {
        font-size: 20px;
    }
    
    .tool-section {
        padding: 20px 15px 25px;
    }

    .content-wrapper h2 {
        font-size: 22px;
    }

    .content-wrapper h3 {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 22px;
    }
}
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 10px;
    }

    .nav-menu {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        box-shadow: none;
        height: auto;
        padding: 0;
    }
}
/* Hide top navigation completely on mobile */
@media (max-width: 768px) {
  header,
  .navbar,
  .nav-menu,
  .menu,
  .mobile-menu {
    display: none !important;
  }
}
/* Pinterest Tools links fix */
.content-section h4 {
  color: #111;
  margin-bottom: 10px;
}

.content-section ul {
  list-style: disc;
  padding-left: 20px;
}

.content-section ul li {
  margin-bottom: 8px;
}

.content-section ul li a {
  color: #6b21a8; /* purple */
  text-decoration: none;
  font-weight: 500;
}

.content-section ul li a:hover {
  color: #4c1d95;
  text-decoration: underline;
}
/* FORCE FIX for Pinterest Tools links */
.content-section a,
.content-section a:visited {
  color: #6b21a8 !important;
  text-decoration: none !important;
  font-weight: 500;
}

.content-section a:hover {
  color: #4c1d95 !important;
  text-decoration: underline !important;
}
.content-section {
  min-height: auto;
  contain: layout;
}
/* FIX: Section title single line */
.section-title,
.section-title span {
  display: inline;
  white-space: nowrap;
}
/* Make Pinterest Tools heading same size as main tools heading */
h3,
.pinterest-tools-title {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  margin-top: 40px;
  margin-bottom: 16px;
}
/* ===== FINAL CLS SAFE FIX ===== */
#result {
  min-height: 220px;
  background-color: #ffffff; /* ya body ka bg color */
}

#result:empty {
  visibility: hidden;
}
/* ===== AUTO ADS CLS SAFE FIX ===== */
body {
  overflow-x: hidden;
}

ins.adsbygoogle {
  display: block;
  min-height: 250px;
}
/* ===== TEXT CLS STABILITY FIX ===== */
h1, h2, h3, p {
  line-height: 1.4;
}
/* FORCE FAQ TO SIMPLE LIST – OVERRIDE ALL OLD STYLES */
.faq-section,
.faq-section * {
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.faq-item {
  padding: 14px 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid #eaeaea !important;
}

.faq-item:last-child {
  border-bottom: none;
}
/* ===== FAQ FINAL FIX ===== */

.faq-section {
  margin-top: 40px;
}

.faq-section h2 {
  font-size: 22px;
  margin-bottom: 20px;
}

.faq-item {
  margin-bottom: 22px;
}

.faq-item h4 {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 6px;
  font-weight: 600;
}

.faq-item p {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  margin: 0;
}
/* ===== GLOBAL TYPOGRAPHY RESET ===== */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #222;
}

p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

ul, ol {
  padding-left: 20px;
  margin-bottom: 18px;
}

li {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 8px;
}

a {
  color: #6a2cff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
/* CONTENT SECTION */
.content-section {
  padding: 30px 15px;
}

.content-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.content-wrap h1 {
  font-size: 26px;
  margin-bottom: 14px;
}

.content-wrap h2 {
  font-size: 20px;
  margin: 22px 0 10px;
}

.content-wrap p,
.content-wrap li {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

.content-wrap ul,
.content-wrap ol {
  padding-left: 20px;
}

/* FAQ */
.faq-section {
  padding: 30px 15px;
}

.faq-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 18px;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}

.faq-item h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.faq-item p {
  font-size: 15px;
  line-height: 1.6;
}

/* MOBILE FIX */
@media (max-width: 600px) {
  .content-wrap h1 {
    font-size: 22px;
  }
  .content-wrap h2 {
    font-size: 18px;
  }
}
body{
  font-family: Arial, sans-serif;
  background:#f7f8fa;
  margin:0;
  padding:0;
  line-height:1.7;
}

.blog-container{
  max-width:900px;
  margin:40px auto;
  padding:20px;
}

.blog-content{
  background:#ffffff;
  padding:30px;
  border-radius:8px;
}

.blog-content h1,
.blog-content h2{
  color:#222;
  margin-top:30px;
}

.blog-content p{
  font-size:16px;
  color:#333;
  margin-bottom:18px;
}

.blog-content ol{
  padding-left:20px;
}

.blog-content li{
  margin-bottom:10px;
}
