/* Base Styles */
:root {
    --primary-color: #4285f4;
    --secondary-color: #34a853;
    --accent-color: #ea4335;
    --light-color: #f8f9fa;
    --dark-color: #202124;
    --gray-color: #5f6368;
    --light-gray: #e8eaed;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--accent-color);
    font-size: 2rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

nav ul {
    display: flex;
    gap: 1.5rem;
}

nav a {
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

nav a:hover {
    color: var(--primary-color);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.file-upload {
    margin-top: 2rem;
}

.file-upload input[type="file"] {
    display: none;
}

.upload-btn {
    background-color: white;
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.upload-btn:hover {
    background-color: var(--light-gray);
}

.file-upload p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Tools Section */
.tools-section {
    padding: 3rem 2rem;
    background-color: white;
    margin: 2rem auto;
    max-width: 1200px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.tools-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--dark-color);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--light-gray);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.tool-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.tool-card h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.tool-card p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Features Section */
.features-section {
    padding: 3rem 2rem;
    background-color: #f9f9f9;
    margin: 2rem auto;
    max-width: 1200px;
    border-radius: 8px;
}

.features-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--dark-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* About Section */
.about-section {
    padding: 3rem 2rem;
    background-color: white;
    margin: 2rem auto;
    max-width: 1200px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.about-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--dark-color);
}

.about-section p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--gray-color);
}

.about-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.about-feature {
    text-align: center;
    max-width: 300px;
}

.about-feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-feature h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.about-feature p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-color);
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--dark-color);
}

#modal-title {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn.primary {
    background-color: var(--primary-color);
    color: white;
}

.btn.primary:hover {
    background-color: #3367d6;
}

.btn.secondary {
    background-color: var(--light-gray);
    color: var(--dark-color);
}

.btn.secondary:hover {
    background-color: #d2d3d5;
}

.btn.download {
    background-color: var(--secondary-color);
    color: white;
}

.btn.download:hover {
    background-color: #3367d6;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

.radio-group, .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-option, .checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radio-option input, .checkbox-option input {
    margin-right: 0.5rem;
}

.range-slider {
    width: 100%;
    margin: 1rem 0;
}

/* Preview Area */
.preview-area {
    border: 2px dashed var(--light-gray);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    background-color: #fafafa;
}

.preview-area i {
    font-size: 3rem;
    color: var(--gray-color);
    margin-bottom: 1rem;
}

.preview-area p {
    color: var(--gray-color);
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
  }

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    opacity: 0.8;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a:hover {
    opacity: 0.8;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    font-size: 1.2rem;
    opacity: 0.8;
    transition: var(--transition);
}

.social-icons a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }

    nav ul {
        margin-top: 1rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .about-features {
        flex-direction: column;
        align-items: center;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .modal-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* JPG to PDF Converter Styles */
.tool-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.tool-hero h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.tool-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.converter-section {
    padding: 2rem;
    background-color: white;
    margin: 2rem auto;
    max-width: 1000px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.converter-container {
    max-width: 800px;
    margin: 0 auto;
}

.drop-zone {
    border: 2px dashed var(--light-gray);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 2rem;
    background-color: #fafafa;
}

.drop-zone i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.drop-zone h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.drop-zone p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.drop-zone:hover, .drop-zone.active {
    border-color: var(--primary-color);
    background-color: rgba(66, 133, 244, 0.05);
}

.settings-panel {
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.settings-panel h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.setting-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.setting-item {
    flex: 1;
    min-width: 200px;
}

.setting-item label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.setting-item input[type="text"],
.setting-item input[type="number"],
.setting-item select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-size: 1rem;
}

.setting-item input[type="checkbox"] {
    margin-right: 0.5rem;
}


#imagePreviews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.image-preview {
    position: relative;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
    height: 150px;
    background-color: #f5f5f5;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.image-preview .remove-btn {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
}

.image-preview:hover .remove-btn {
    opacity: 1;
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

#loading {
    text-align: center;
    padding: 2rem;
}

#loading i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

#loading p {
    color: var(--gray-color);
}

#downloadSection {
    text-align: center;
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: 8px;
    margin-bottom: 2rem;
}

#downloadSection h3 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.tool-info {
    padding: 3rem 2rem;
    background-color: #f9f9f9;
    margin: 2rem auto;
    max-width: 1200px;
    border-radius: 8px;
}

.tool-info h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--dark-color);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: bold;
    font-size: 1.2rem;
}

.step-number2 {
    width: 40px;
    height: 40px;
    background-color: var(--gray-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: bold;
    font-size: 1.2rem;
}

.step-number3 {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: bold;
    font-size: 1.2rem;
}

.step-card h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.step-card p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Utility Classes */
.hidden {
    display: none;
}

/* updates*/
@media (max-width: 768px) {
    .tool-hero h2 {
        font-size: 1.8rem;
    }
    
    .tool-hero p {
        font-size: 1rem;
    }
    
    .setting-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .drop-zone {
        padding: 2rem 1rem;
    }
    
   
}

.drop-zone.has-files {
    padding: 1rem;
    align-items: flex-start;
}

#imagePreviews {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
    min-height: 150px;
}

.image-preview {
    position: relative;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
    height: 150px;
    width: 150px;
    background-color: #f5f5f5;
    cursor: move;
    transition: transform 0.2s;
}

.image-preview.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.image-preview img {
    pointer-events: none;
}

/* Add to drop zone styles */
.drop-zone .upload-text {
    text-align: center;
    width: 100%;
    margin: auto;
}

.has-files .upload-text {
    display: none;
}


/* Word to PDF Specific Styles */
.file-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    border: 1px solid var(--light-gray);
    margin: 1rem 0;
}

.file-preview i {
    font-size: 2.5rem;
    color: #2b579a; /* Microsoft Word blue */
}

.file-info h4 {
    margin-bottom: 0.25rem;
    color: var(--dark-color);
    word-break: break-all;
}

.file-info p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .file-preview {
        flex-direction: column;
        text-align: center;
    }
    
    .file-preview i {
        font-size: 2rem;
    }
}

/* Excel file preview */

.file-preview {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    display: flex;
    align-items: center;
}

.file-info {
    margin-left: 10px;
}

.file-name {
    font-weight: bold;
}

.file-size {
    color: #666;
    font-size: 0.8em;
}
.file-preview {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 5px;
    margin-top: 15px;
}

.file-preview i {
    font-size: 24px;
    color: #1d6f42; /* Excel green color */
    margin-right: 10px;
}

.file-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.file-name {
    font-weight: bold;
    margin-bottom: 3px;
}

.file-size {
    font-size: 0.8em;
    color: #666;
}

.remove-file {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
}

.remove-file:hover {
    color: #333;
}

/* Highlight for drop zone */
.drop-zone.highlight {
    border-color: #1d6f42;
    background-color: rgba(29, 111, 66, 0.1);
}

/* Excel icon in drop zone */
.drop-zone .fa-file-excel {
    color: #1d6f42;
}

/* ========== Edit PDF Tool Styles ========== */

/* ========== Edit PDF Tool Styles ========== */

.pdf-editor-container {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
  }
  
  .tool-sidebar {
    width: 160px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--light-gray);
    padding: 1rem 0.5rem;
    border-radius: 8px;
    align-items: flex-start;
    box-shadow: var(--shadow);
  }
  
  .tool-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    width: 100%;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark-color);
  }
  
  .tool-btn i {
    font-size: 1rem;
    min-width: 20px;
    text-align: center;
  }
  
  .tool-btn:hover {
    background: var(--light-color);
  }
  
  .tool-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
  }
  
  .editor-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .tool-properties {
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: var(--shadow);
  }
  
  .tool-properties input,
  .tool-properties select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-size: 1rem;
    min-width: 120px;
  }
  
  .pdf-canvas-wrapper {
    border: 1px solid var(--light-gray);
    background: white;
    border-radius: 8px;
    overflow: auto;
    text-align: center;
    box-shadow: var(--shadow);
    max-height: 800px;
  }
  
  #pdfCanvas {
    display: block;
    margin: auto;
    max-width: 100%;
    height: auto;
    background-color: white;
    border-radius: 6px;
  }
  
  .editor-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
  }
  
  .editor-controls button {
    min-width: 40px;
  }
  
  #pageIndicator {
    padding: 0.5rem 1rem;
    background-color: var(--light-gray);
    border-radius: 6px;
    font-weight: bold;
    color: var(--dark-color);
  }
  
  /* Done Section */
  #doneSection {
    text-align: center;
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-top: 2rem;
  }
  
  #doneSection h3 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
  }
  
  /* Responsive Styles */
  @media (max-width: 768px) {
    .pdf-editor-container {
      flex-direction: column;
    }
  
    .tool-sidebar {
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
      width: 100%;
      gap: 0.5rem;
    }
  
    .tool-btn {
      flex: 1 0 40%;
      justify-content: center;
    }
  
    .tool-properties {
      flex-direction: column;
    }
  }
  
  @media (max-width: 480px) {
    .editor-controls {
      flex-direction: column;
      align-items: center;
    }
  
    #pageIndicator {
      margin: 0.5rem 0;
    }
  
    .tool-properties input,
    .tool-properties select {
      width: 100%;
    }
  }
  
  /* === Font Preview for Dropdown === */
.tool-properties select option:nth-child(1) { font-family: Arial; }
.tool-properties select option:nth-child(2) { font-family: Calibri; }
.tool-properties select option:nth-child(3) { font-family: Roboto; }
.tool-properties select option:nth-child(4) { font-family: Helvetica; }
.tool-properties select option:nth-child(5) { font-family: "Times New Roman"; }
.tool-properties select option:nth-child(6) { font-family: Verdana; }
.tool-properties select option:nth-child(7) { font-family: Georgia; }
.tool-properties select option:nth-child(8) { font-family: Tahoma; }
.tool-properties select option:nth-child(9) { font-family: "Open Sans"; }
.tool-properties select option:nth-child(10) { font-family: "Courier New"; }

/* Optional: Enhance dropdown feel */
.tool-properties select {
  background-color: white;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%22292%22%20height%3D%22292%22%20..."); /* optional arrow icon */
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 1rem;
}

/* Optional: Font label style */
.tool-properties label[for="fontFamily"] {
  font-weight: bold;
  font-size: 0.95rem;
}
#pdfCanvas.eraser-mode {
    cursor: none !important;
}


/* Organize PDF - Thumbnail Grid Layout */
/* === Thumbnail Grid Layout === */
.thumbnail-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 20px 0;
  }
  
  /* === Thumbnail Card === */
  .page-thumb {
    width: 160px;
    text-align: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #dce3ef;
  }
  
  /* === Canvas Preview === */
  .page-thumb canvas {
    width: 100%;
    display: block;
    border-bottom: 1px solid #eee;
  }
  
  /* === Footer Bar (Rotate/Delete/Page Number) === */
  .page-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fc; /* modern soft gray-blue */
    padding: 6px 8px;
    width: 100%;
    font-size: 13px;
    border-top: 1px solid #e2e6ea;
  }
  
  /* === Footer Buttons (Rotate / Delete) === */
  .page-footer button {
    background-color: #e2e6f0; /* subtle button bg */
    color: #333;
    border: none;
    border-radius: 6px;
    padding: 6px 8px;
    margin-right: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
  }
  
  .page-footer button:hover {
    background-color: #d6dce9;
    color: #007bff;
  }
  
  /* === Page Number Text === */
  .page-footer .page-number {
    margin-left: auto;
    font-size: 13px;
    color: #6c757d;
  }
  
 /* =============== MODERN BLOG STYLE ========= */

.blog-post {
  max-width: 1000px;
  margin: 80px auto;
  margin-top: 0px;
  padding: 50px 40px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
  line-height: 1.9;
  transition: all 0.3s ease;
}

.blog-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.blog-date {
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 30px;
  display: block;
}

.blog-content h2 {
  font-size: 1.6rem;
  margin-top: 50px;
  color: #0e4da4;
  
  margin-bottom: 20px;
}

.blog-content p {
  margin-bottom: 25px;
  font-size: 1.05rem;
  color: #333;
}

.blog-content ul,
.blog-content ol {
  padding-left: 25px;
  margin-bottom: 25px;
}

.blog-content ul li,
.blog-content ol li {
  margin-bottom: 12px;
  font-size: 1.02rem;
}

.blog-content a {
  color: #0074cc;
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.blog-content a:hover {
  color: #003975;
  text-decoration: none;
}

.blog-content strong {
  color: #111;
  font-weight: 600;
}

.blog-content em {
  color: #555;
  font-style: italic;
}

.blog-tags {
  margin: 30px 0;
}

.blog-tags a {
  display: inline-block;
  background: #0e4da4;
  color: #fff;
  padding: 8px 16px;
  margin: 5px 8px;
  font-size: 0.9rem;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.blog-tags a:hover {
  background: #083575;
}

.tool-category {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  color: #0e4da4;
  font-weight: bold;
}

.category-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 40px 0;
}

.cat-card {
  background: #34a853;
  color: white;
  padding: 16px 24px;
  border-radius: 10px;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background 0.3s ease;
}

.cat-card:hover {
  background: #3367d6;
}

.cat-card i {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.blog-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}

.blog-post-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
  row-gap: 48px; /* vertical spacing */
}

.blog-post-card {
  background: var(--light-color);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--light-gray);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  width: 100%;
  max-width: 400px;
  flex: 1 1 300px;
}

.blog-post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.blog-post-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-post-card h3 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin: 15px;
}

.blog-post-card p {
  font-size: 0.95rem;
  color: #444;
  margin: 0 15px 15px;
}

.blog-tag {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 12px;
  margin: 0 15px 15px;
}

.blog-featured-image {
  margin-left: -40px;
  margin-right: -40px;
  margin-top: -50px;
  margin-bottom: 30px;
}

.blog-featured-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* === MODERN BLOCK STYLES FOR INDIVIDUAL BLOG POSTS === */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 30px 0;
}
.feature-card {
  background: #f5f7fb;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  animation: fadeInUp 0.4s ease both;
}
.feature-card i {
  font-size: 24px;
  color: #0e4da4;
  margin-bottom: 10px;
}

/* Vertical Timeline Steps */
.step-timeline {
  margin: 50px 0;
  margin-left: 30px;
  border-left: 3px solid #0e4da4;
  padding-left: 20px;
  position: relative;
}
.step-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 30px;
  animation: fadeInUp 0.4s ease both;
}
.step-circle {
  position: absolute;
  left: -35px;
  top: 0;
  background: #0e4da4;
  color: #fff;
  width: 32px;
  height: 32px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-details h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: #0e4da4;
}
.step-details p {
  margin: 0;
  font-size: 1.02rem;
  color: #333;
}


.option-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.option-chip {
  background: #f1f5ff;
  color: #000000;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid #d0e1fb;
}


/* Call-to-Action Box */
.cta-box {
  background: #e8f0fe;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  margin: 40px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.cta-box h2 {
  margin-bottom: 10px;
  color: #0e4da4;
}
.cta-button {
  display: inline-block;
  background: #0e4da4;
  color: #ffffff !important;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none !important;
  margin-top: 10px;
  border: 2px solid #0e4da4;
  transition: all 0.3s ease;
}
.cta-button:hover {
  background: #ffffff;
  color: #0e4da4 !important;
  font-weight: bold;
  text-decoration: none !important;
}




/* Animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Mobile Adjustments for Blocks === */
@media (max-width: 768px) {
  .step-timeline {
    padding-left: 15px;
    margin-left: 15px;
  }
  .step-circle {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
    left: -30px;
  }
  .step-item {
    padding-left: 25px;
    margin-bottom: 30px;
  }
  .blog-post {
    padding: 30px 20px;
    margin: 40px 15px;
  }
  .blog-header h1 {
    font-size: 1.8rem;
  }
  .blog-content h2 {
    font-size: 1.3rem;
  }
}
