/* =======================================
   OneKit WebTools - Modern SEOStudio Design
   ======================================= */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #0f172a;
    background: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Container */
.container {
    max-width: 1420px !important;
    width: 100%;
    margin: 0 auto;
    padding-left: 15px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #344767;
    max-width: 200px;
}

.navbar-brand img {
    max-width: 100%;
    height: auto;
}

.nav-link {
    font-weight: 600;
    font-size: 0.875rem;
    color: #344767 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Hero Section */
#parallax {
    position: relative;
    padding: 3rem 0;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    margin-bottom: 2rem;
}

#parallax h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
}

#parallax h2 {
    font-size: 1.25rem;
    color: #64748b;
    font-weight: 400;
}

.mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
}

.parallax-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Featured Logos Section */
.featured-logo {
    transition: transform 0.3s ease;
    max-width: 200px;
    max-height: 55px;
    margin-right: 20px;
}

.featured-logo:hover {
    transform: scale(1.1);
}

/* Stats Counter Section */
.counter {
    transition: transform 0.3s ease;
}

.counter:hover {
    transform: scale(1.1);
}

.counter .number {
    font-weight: 700;
    color: #172b4c;
    margin-bottom: 0.5rem;
}

.counter .text {
    font-size: 0.9rem;
    color: #64748b;
}

/* Cards & Tools */
.card {
    border: 1px solid #e6e6e6;
    box-shadow: none;
    border-radius: 10px;
    background: #fff;
    margin-bottom: 1.5rem !important;
}

.card-header {
    background: transparent !important;
    border-bottom: 1px solid #e6e6e6;
    padding: 1.5rem;
}

.card-body {
    padding: 1.0rem !important;
}

/* Item Box - Tool Cards */
.item-box {
    display: block;
    transition: all 0.3s ease;
    border: 1px solid #e6e6e6;
    height: 100%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 0px 4px rgba(23, 43, 76, 0.3);
    overflow: hidden;
}

.item-box:hover {
    transform: translateY(-2px);
    box-shadow: 0px 0px 8px 4px rgba(23, 43, 76, 0.3);
    text-decoration: none;
}

/* Avatar - Circular Icons */
.avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    object-fit: contain;
    padding: 8px;
    background: transparent;
    border: 2px solid #172b4c !important;
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Modern Tool Cards */
.tool-card-link {
    display: block;
    text-decoration: none !important;
}

.tool-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    max-width: 100%;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12) !important;
    border-color: #cbd5e1 !important;
}

.tool-card .tool-icon img {
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-icon img {
    transform: scale(1.1);
}

.tool-card .icon-placeholder {
    transition: all 0.3s ease;
}

.tool-card:hover .icon-placeholder {
    transform: rotate(5deg) scale(1.1);
}

.tool-card .tool-title span {
    transition: color 0.3s ease;
}

.tool-card:hover .tool-title span {
    color: #172b4c !important;
}

/* Modern Box Design */
.modern-box {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    word-wrap: break-word;
}

/* Category Headers */
.category-section .category-header h3 a {
    transition: color 0.3s ease;
    position: relative;
}

.category-section .category-header h3 a:hover {
    color: #172b4c !important;
}

/* Row Gap Utility */
.row.g-3 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.row.g-3>* {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-bottom: var(--bs-gutter-y);
}

/* General Row Styles */
.row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.row>[class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Footer */
.footer {
    background: #fff;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid #e9ecef;
}

.footer-links a {
    color: #6c757d;
    margin: 0 10px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #344767;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-weight: 600;
    color: #344767;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.text-muted {
    color: #6c757d !important;
}

.fw-medium {
    font-weight: 500;
    font-size: 0.95rem;
    color: #0f172a;
}

/* Utilities */
.text-primary {
    color: #cb0c9f !important;
}

.bg-gradient-info {
    background: #172b4c;
    color: #fff;
}

.bg-gradient-info:hover {
    background: #172b4c !important;
}

.btn-primary {
    background-image: linear-gradient(310deg, #7928ca 0%, #ff0080 100%);
    border: 0;
}

/* Links */
a:hover {
    text-decoration: underline;
}

a.card:hover {
    text-decoration: none;
}

/* Prevent Image Overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Form Elements */
input,
textarea,
select {
    max-width: 100%;
}

.form-control {
    max-width: 100%;
}

/* Table Responsive */
table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

/* Flex Utilities */
.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* Border Utilities */
.border {
    border: 1px solid #e2e8f0 !important;
}

.rounded {
    border-radius: 10px !important;
}

.border-bottom {
    border-bottom: 2px solid #e2e8f0 !important;
}

/* Display Utilities */
.display-6 {
    font-size: 2rem;
    font-weight: 600;
}

/* Spacing Utilities */
.p-2 {
    padding: 0.5rem;
}

.m-3 {
    margin: 1rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

/* Width Utilities */
.w-100 {
    width: 100%;
}

/* Background */
.bg-transparent {
    background: transparent !important;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .row {
        margin-left: -10px;
        margin-right: -10px;
    }

    .row>* {
        padding-left: 10px;
        padding-right: 10px;
    }

    .featured-logo {
        max-width: 150px;
        margin: 10px;
    }

    .col-12 {
        margin-bottom: 1rem;
    }

    .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* =======================================
   Tool Preview Box - Modern Design
   ======================================= */
.tool-preview-box {
    transition: all 0.3s ease;
}

.tool-preview-box:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px);
}

.tool-preview-header {
    position: relative;
    overflow: hidden;
}

.tool-preview-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translate(-100%, -100%) rotate(0deg);
    }

    100% {
        transform: translate(100%, 100%) rotate(360deg);
    }
}

.tool-preview-content {
    position: relative;
    max-width: 100%;
    overflow-x: auto;
    word-wrap: break-word;
}

/* Description Box Icon Animation */
.modern-box .fa-info-circle {
    transition: transform 0.3s ease;
}

.modern-box:hover .fa-info-circle {
    transform: scale(1.1) rotate(5deg);
}

/* Related Tools Icon */
.fa-layer-group {
    transition: transform 0.3s ease;
}

.section-header:hover .fa-layer-group {
    transform: translateY(-2px);
}

/* Responsive Tool Preview */
@media (max-width: 768px) {
    .tool-preview-header {
        padding: 15px 20px !important;
    }

    .tool-preview-header h2 {
        font-size: 16px !important;
    }

    .tool-preview-content {
        padding: 25px 20px !important;
    }

    .modern-box {
        padding: 20px !important;
    }
}

/* =======================================
   Article / Prose Styling
   ======================================= */
.prose {
    max-width: 100%;
    color: #334155;
    font-size: 1.125rem;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    color: #0f172a;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 0.8em;
    line-height: 1.3;
}

.prose h1 {
    font-size: 2.25em;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.3em;
    margin-top: 0;
}

.prose h2 {
    font-size: 1.75em;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.3em;
}

.prose h3 {
    font-size: 1.5em;
}

.prose h4 {
    font-size: 1.25em;
}

.prose p {
    margin-bottom: 1.5em;
    text-align: justify;
}

.prose ul,
.prose ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.prose li {
    margin-bottom: 0.5em;
    position: relative;
}

.prose ul li::marker {
    color: #6366f1;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    margin: 2em auto;
    display: block;
}

.prose blockquote {
    border-left: 4px solid #6366f1;
    background: #f8fafc;
    padding: 1.25em 1.5em;
    margin: 2em 0;
    font-style: italic;
    color: #475569;
    border-radius: 0 0.5rem 0.5rem 0;
    position: relative;
}

.prose a {
    color: #4f46e5;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
    font-weight: 500;
}

.prose a:hover {
    color: #4338ca;
    border-bottom-color: #4338ca;
}

.prose pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.25em;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1.5em 0;
    font-size: 0.95em;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.prose code {
    background: #f1f5f9;
    color: #0f172a;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-weight: 500;
}

.prose pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: 1em;
    font-weight: 400;
}

/* Table Styling within Prose */
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    font-size: 0.95em;
}

.prose th,
.prose td {
    border: 1px solid #e2e8f0;
    padding: 0.75em 1em;
    text-align: left;
}

.prose th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #1e293b;
}

.prose tr:nth-child(even) {
    background-color: #fcfcfc;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .prose {
        font-size: 1rem;
        line-height: 1.7;
    }

    .prose h1 {
        font-size: 1.75em;
    }

    .prose h2 {
        font-size: 1.5em;
    }

    .prose h3 {
        font-size: 1.25em;
    }

    .prose p {
        text-align: left;
        /* Better readability on small screens */
    }

    .prose img {
        margin: 1.5em 0;
    }
}

/* =======================================
   Homepage About / Article Section
   ======================================= */
.home-about-container {
    padding-top: 40px;
    padding-bottom: 60px;
}

.home-about-header {
    text-align: center;
    margin-bottom: 50px;
}

.home-about-title {
    font-size: 42px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.home-about-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    margin: 0 auto;
    border-radius: 2px;
}

.home-about-content-box {
    width: 100%;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.home-article-item {
    margin-bottom: 40px;
}

.home-article-item:last-child {
    margin-bottom: 0;
}

.home-article-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-article-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ede9fe 0%, #f3e8ff 100%);
    color: #7c3aed;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.home-article-text {
    font-size: 17px;
    line-height: 1.8;
    color: #475569;
    text-align: justify;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.home-article-text p {
    margin-bottom: 16px;
}

.home-article-separator {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 40px 0;
}

/* Responsive Adjustments for Homepage About */
@media (max-width: 768px) {
    .home-about-title {
        font-size: 32px;
    }

    .home-about-content-box {
        padding: 30px 20px;
    }

    .home-article-title {
        font-size: 24px;
    }

    .home-article-text {
        font-size: 16px;
        text-align: left;
        /* Better for mobile */
    }
}

/* =======================================
   Header / Navbar Styles
   ======================================= */
/* Fixed Header Styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: #1e293b !important;
}

.navbar-brand img {
    max-height: 45px;
    width: auto;
    object-fit: contain;
}

/* Search Bar Responsive */
.header-search {
    max-width: 400px;
    width: 100%;
}

.header-search input {
    font-size: 14px;
}

/* Nav Items */
.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover {
    color: #4f46e5;
}

.navbar-nav .nav-link.active {
    color: #4f46e5 !important;
}

/* Dropdown */
.dropdown-menu {
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 200px;
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 14px;
}

.dropdown-item:hover {
    background: #f1f5f9;
    color: #4f46e5;
}

.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f5f9;
}

/* Responsive */
@media (max-width: 991px) {
    .header-search {
        max-width: 100%;
        margin: 1rem 0;
    }

    .navbar-nav {
        margin-top: 1rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-brand img {
        max-height: 35px;
    }
}