:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #3f37c9;
    --accent: #4895ef;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --success: #4cc9f0;
    --warning: #f72585;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    --card-hover: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: #f5f7fb;
    color: var(--dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}


/* Navigation */
nav {
    background-color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    z-index: 101;
}

.logo img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-group {
    display: flex;
    align-items: center;
}

.nav-link, .dropdown-toggle {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}

.nav-link:hover, .dropdown-toggle:hover {
    color: var(--primary);
}

.nav-link::after, .dropdown-toggle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

.nav-link:hover::after, .dropdown-toggle:hover::after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    box-shadow: var(--card-shadow);
    border-radius: 8px;
    min-width: 200px;
    padding: 0.5rem 0;
    z-index: 1000;
    flex-direction: column;
    gap: 0.25rem;
}

.dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-align: center;
}

.dropdown-menu a:hover {
    color: var(--primary);
    background-color: var(--light-gray);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--dark);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 101;
}

/* Mobile styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        background-color: white;
        flex-direction: column;
        gap: 1rem;
        padding: 5rem 2rem 2rem;
        box-sizing: border-box;
        z-index: 100;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-group {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-link, .dropdown-toggle {
        padding: 1rem 0;
        width: 100%;
        text-align: left;
    }

    .mobile-menu-btn {
        display: block;
    }

    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background-color: transparent;
        padding: 0;
        transform: none;
        width: 100%;
    }

    .dropdown:hover .dropdown-menu,
    .dropdown.active .dropdown-menu {
        display: flex;
    }

    .dropdown-menu a {
        padding: 0.75rem 1rem;
        text-align: left;
    }
}


/* Main Content */
main {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero {
    text-align: center;
    padding: 3rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero p {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--light-gray);
    text-align: center;
}

.input-container input,
.input-container textarea {
    width: 100%;
    margin: 0 auto;
}

.input-container .btn {
    width: fit-content;
    margin: 0 auto;
}

.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    gap: 1rem;
}

.upload-area .btn {
    width: fit-content;
    margin: 0 auto;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: rgba(67, 97, 238, 0.1);
}

.result-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-top: 2rem;
    padding: 2rem; 
    max-width: 800px; 
    margin-left: auto; 
    margin-right: auto;
    transition: all 0.3s ease; 
}

.result-container h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--light-gray); 
    text-align: center;
}

.content-section {
    line-height: 1.7;
    color: var(--dark);
    font-size: 1rem;
    word-wrap: break-word; 
}

.result-container:hover {
    box-shadow: var(--card-hover); 
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .result-container {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }

    .result-container h2 {
        font-size: 1.3rem;
    }
}

.content-tabs {
    display: flex;
    border-bottom: 1px solid var(--light-gray);
}

.tab {
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray);
    position: relative;
    transition: all 0.2s ease;
}

.tab.active {
    color: var(--primary);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.tab-content {
    padding: 2rem;
    min-height: 400px;
}

.summary-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark);
    font-weight: 600;
}

.summary-text {
    line-height: 1.7;
    color: var(--dark);
}

.loading-container {
    display: none;
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 4px solid rgba(67, 97, 238, 0.1);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.media-section {
    margin-top: 2rem;
}

.media-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.media-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    background: white;
}

.media-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover);
}

.media-thumbnail {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background-color: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
}

.media-info {
    padding: 1rem;
    background-color: white;
}

.media-title {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.media-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

.media-type {
    font-size: 0.75rem;
    background-color: var(--light-gray);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: var(--gray);
}

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: white;
    margin-top: 3rem;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.features-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #f9fafc;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-desc {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 3rem 2rem 1.5rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 24px;
    width: auto;
}

.footer-logo-text {
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-about {
    max-width: 300px;
}

.footer-about p {
    color: #adb5bd;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--accent);
}

.footer-heading {
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #495057;
    color: #adb5bd;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-links {
        gap: 1rem;
    }
    
    .media-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .nav-links a {
        padding: 0.75rem 2rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .input-container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .input-container input,
    .input-container button {
        width: 100%;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .media-container {
        grid-template-columns: 1fr;
    }
    
    .tab {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .tab-content {
        padding: 1.5rem;
    }
}



/* Text Input Area */

.divider {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    color: #666;
    font-weight: 500;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ddd;
    margin: 0 1rem;
}

textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    min-height: 100px;
}
/* Range Slider */
/* Summary Controls */
.summary-controls {
    margin: 1rem 0;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#summary-length {
    flex: 1;
    height: 8px;
    -webkit-appearance: none;
    background: var(--light-gray);
    border-radius: 4px;
    outline: none;
}

#summary-length::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}

#length-value {
    font-weight: 500;
    color: var(--primary);
    min-width: 40px;
    text-align: right;
}




/* Improved Input Container */
.input-container {
    display: flex;
    gap: 1rem;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--light-gray);
    transition: all 0.3s ease;
}

.input-container:focus-within {
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
    border-color: var(--primary);
}

.input-container input,
.input-container textarea {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.input-container textarea {
    min-height: 120px;
    resize: vertical;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.input-container input:focus,
.input-container textarea:focus {
    background: white;
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

/* Improved Result Container */
.result-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin: 2rem auto 0;
    width: 100%;
    max-width: 800px;
    display: none;
}

/* Improved Key Points Styling */
.key-points {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.key-points li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1.7;
    text-align: left;
    color: var(--dark);
}

.key-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
}

/* Improved Summary Text */
.summary-text {
    line-height: 1.8;
    color: var(--dark);
    text-align: left;
    font-size: 1.05rem;
}

/* Better Section Spacing */
.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
    font-weight: 600;
    text-align: left;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--light-gray);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .input-container {
        flex-direction: column;
        padding: 1rem;
    }
    
    .input-container button {
        width: 100%;
    }
    
    .result-container {
        margin-top: 1.5rem;
        border-radius: 8px;
    }
    
    .tab-content {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .input-container {
        padding: 0.75rem;
    }
    
    .input-container input,
    .input-container textarea {
        padding: 0.75rem;
    }
    
    .tab {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .summary-text,
    .key-points li {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .key-points li {
        padding-left: 1.5rem;
        margin-bottom: 0.75rem;
    }
}

/* Additional improvements for the summary controls */
.summary-controls {
    margin: 1.5rem auto;
    padding: 1.25rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    width: 100%;
    max-width: 800px;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.slider-container label {
    font-weight: 500;
    color: var(--dark);
    min-width: 120px;
}

#summary-length {
    flex: 1;
    min-width: 200px;
}

#length-value {
    font-weight: 600;
    color: var(--primary);
    min-width: 40px;
    text-align: center;
}

/* Word count styles */
.word-count {
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 0.8rem;
    color: #666;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 2px 6px;
    border-radius: 3px;
}

/* For textarea container */
.input-container {
    position: relative;
    margin-bottom: 15px;
}

/* Adjust textarea padding to accommodate word count */
#article-text {
    padding-bottom: 30px;
}

/* Alternative: Position word count below textarea */
/*
.word-count {
    position: static;
    text-align: right;
    margin-top: 5px;
    padding-right: 5px;
}
*/



/* Tab Styles */
.content-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab.active {
    border-bottom-color: #4a6bff;
    color: #4a6bff;
    font-weight: 600;
}

.tab-pane {
    display: none;
    padding: 15px 0;
}

.tab-pane.active {
    display: block;
}

/* Generated Media Styles */
.media-section {
    margin-top: 20px;
}

.media-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.media-card {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s ease;
}

.media-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.media-icon {
    font-size: 24px;
    color: #4a6bff;
    margin-bottom: 10px;
}

.media-card h4 {
    margin: 0 0 8px 0;
    color: #333;
}

.media-card p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}



/* Clear button styles */
.btn-clear {
    display: none; /* Hidden by default */
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    max-width: 800px;
    width: 100%;
}

.btn-clear:hover {
    background-color: #e9ecef;
    color: #495057;
}

.btn-clear i {
    margin-right: 8px;
}

/* Enhanced Tool Cards for Modern Look */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3x3 base layout, but auto-rows for more items */
    gap: 2rem; /* Increased separation for better spacing */
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
    }
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}

.tool-card {
    background: white;
    border-radius: 16px; /* Softer, modern corners */
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05); /* Subtle separation border */
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent)); /* Modern gradient top bar */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card:hover {
    transform: translateY(-8px) scale(1.02); /* Interactive lift and slight zoom */
    box-shadow: var(--card-hover);
}

.tool-card i {
    font-size: 2.5rem; /* Larger icons for impact */
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
    transition: color 0.3s ease;
}

.tool-card:hover i {
    color: var(--accent); /* Color shift on hover */
}

.tool-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.tool-card p {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.5;
}

/* Update Features Section to Match (3x3 layout, modern cards) */
.why-section .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .why-section .grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: linear-gradient(145deg, white, #f8f9fa); /* Subtle gradient for depth */
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 1rem;
    color: var(--gray);
}

/* General Modern Tweaks */
body {
    background: linear-gradient(to bottom, #f5f7fb, #e9ecef); /* Subtle body gradient */
}

h1, h2, h3 {
    font-weight: 700; /* Bolder headings for modern feel */
    letter-spacing: -0.025em;
}

a {
    transition: color 0.2s ease;
}

.error-message {
    text-align: center;
    padding: 2rem;
    color: #e53e3e;
    background: #fef2f2;
    border-radius: 8px;
    margin: 1rem;
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-message p {
    font-size: 1.1rem;
}

/* About */
.hero-about {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    padding: 4rem 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-section h1 {
    text-align: center;
    font-size: 2.5rem;
    color: #3c99f5;
    margin-bottom: 0.5rem;
}

.subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #56a6e7;
    margin-bottom: 3rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.tool-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.tool-icon {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.tool-card h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.tool-card > p:not(.tool-hover p) {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    text-align: center;
}

.tool-card ul {
    padding-left: 1.2rem;
}

.tool-card ul li {
    margin-bottom: 0.5rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-stack span {
    background: #e0e6ed;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #2c3e50;
}

.tool-hover {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: #c0e3fa;
    color: white;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border-radius: 0 0 10px 10px;
}

.tool-card:hover .tool-hover {
    bottom: 0;
}

.centered-list {
    text-align: center;
    margin: 1.5rem 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.centered-list p {
    margin: 0.5rem 0;
    color: #7f8c8d;
    line-height: 1.4;
}



@media (max-width: 992px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog */
.hero-blog {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    padding: 4rem 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-container h1 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 3rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.post-image {
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .post-image img {
    transform: scale(1.05);
}

.post-category {
    display: inline-block;
    background: #e0e6ed;
    color: #3498db;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

.blog-card h2, .blog-card h3 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.post-meta {
    color: #95a5a6;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-excerpt {
    color: #7f8c8d;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.post-hover {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: #3498db;
    color: white;
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-align: center;
}

.blog-card:hover .post-hover {
    bottom: 0;
}

.btn-primary, .read-more {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
}

/* Featured Card */
.featured-card {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
}

.featured-card .post-image {
    height: 250px;
}

.featured-card h2 {
    font-size: 1.5rem;
}

/* Subscribe Card */
.subscribe-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
}

.post-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.newsletter-form {
    width: 100%;
    margin-top: 1rem;
}

.newsletter-form input {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.btn-subscribe {
    background: white;
    color: #3498db;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-subscribe:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.subscribe-hover {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.subscribe-card:hover .subscribe-hover {
    bottom: 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
}

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .featured-card {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .featured-card {
        grid-column: span 1;
    }
}

/* Posts */
.modern-article {
    max-width: 800px;
    margin: 0 auto 4rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.article-header {
    position: relative;
}

.article-hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.article-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}

.category-badge {
    background: #3498db;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.article-meta h1 {
    font-size: 2.2rem;
    margin: 1rem 0 0.5rem;
    line-height: 1.3;
}

.meta-info {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.article-content {
    padding: 3rem;
}

.article-content h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 2.5rem 0 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.article-content h2:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.4em;
    height: 1em;
    width: 5px;
    background: #3498db;
    border-radius: 3px;
}

.image-container {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    text-align: center;
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 0.5rem;
}

.stats-box {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #3498db;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.tool-guide .article-content {
    padding: 2rem;
}

.tool-section {
    margin-bottom: 3rem;
}

.tool-section h2 {
    color: #3498db;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-left: 0;
}

.tool-section h2:before {
    display: none;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.feature-list li {
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    position: relative;
    padding-left: 2.5rem;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 1rem;
    color: #27ae60;
    font-weight: bold;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    overflow-x: auto; /* Add horizontal scroll for tables on mobile */
    display: block; /* Allow table to be block for scrolling */
}

.table-row {
    display: flex;
    border-bottom: 1px solid #eee;
}

.table-row.header {
    font-weight: 600;
    background: #f1f5f9;
}

.table-cell {
    flex: 1;
    padding: 1rem;
    text-align: left;
    min-width: 150px; /* Ensure minimum width for cells to prevent squishing */
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.tags {
    display: flex;
    gap: 0.8rem;
}

.tags span {
    font-size: 0.8rem;
    background: #f1f5f9;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    color: #7f8c8d;
}

.share-button, .try-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-button:hover, .try-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.try-button {
    background: #27ae60;
}

@media (max-width: 768px) {
    .modern-article {
        margin: 0 1rem 3rem; /* Reduce side margins on mobile */
        border-radius: 8px; /* Slightly smaller radius */
    }

    .article-hero-image {
        height: 250px; /* Further reduce hero image height */
    }
    
    .article-meta {
        padding: 1.5rem; /* Reduce padding */
    }

    .article-meta h1 {
        font-size: 1.8rem; /* Smaller title */
    }

    .meta-info {
        flex-direction: column; /* Stack meta info */
        gap: 0.5rem;
    }

    .article-content {
        padding: 1.5rem; /* Reduce padding */
    }

    .article-content h2 {
        font-size: 1.3rem; /* Smaller headings */
        padding-left: 1rem;
    }

    .article-content h2:before {
        top: 0.3em;
        height: 0.8em;
        width: 4px;
    }

    .stats-box {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .stat-number {
        font-size: 2rem; /* Slightly smaller stats */
    }

    .feature-list li {
        padding: 0.6rem 0.8rem 0.6rem 2rem; /* Adjust list padding */
        font-size: 0.95rem;
    }

    .comparison-table {
        overflow-x: auto; /* Already added, but emphasize */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }

    .table-row {
        min-width: 600px; /* Set min-width to force scroll if needed */
    }

    .article-footer {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .share-button, .try-button {
        width: 100%; /* Full width buttons on mobile */
        text-align: center;
    }

    .tags {
        flex-wrap: wrap; /* Allow tags to wrap */
    }
}


/* Enhanced Technical Article Styles */
.technical-article .model-card {
    position: relative;
    padding-bottom: 2rem;
}

.model-footnote {
    position: absolute;
    bottom: 0.5rem;
    font-size: 0.7rem;
    color: #7f8c8d;
}

.performance-chart {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.chart-placeholder {
    margin-top: 1rem;
    border-radius: 6px;
    overflow: hidden;
}

.chart-placeholder img {
    width: 100%;
    height: auto;
    display: block;
}

.chart-caption {
    text-align: center;
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-top: 0.5rem;
}

.domain-list li {
    background: #f8f9fa;
    margin-bottom: 0.8rem;
    padding: 1.2rem;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.model-meta {
    display: block;
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-top: 0.5rem;
    font-family: monospace;
}

@media (max-width: 768px) {
    .performance-chart {
        padding: 1rem; /* Reduce padding on mobile */
    }

    .chart-caption {
        font-size: 0.75rem; /* Smaller caption */
    }

    .domain-list li {
        padding: 1rem; /* Adjust list padding */
        font-size: 0.95rem;
    }

    .model-meta {
        font-size: 0.75rem; /* Smaller meta text */
    }
}

/* Privacy */
.hero-privacy {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 4rem 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #334155;
}

.privacy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}


.last-updated {
    text-align: center;
    color: #64748b;
    margin-bottom: 3rem;
    font-size: 0.95rem;
}

.privacy-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.privacy-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
}

h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}




ul {
    padding-left: 1.5rem;
    margin: 1.5rem 0;
}



strong {
    color: #1e293b;
    font-weight: 600;
}

address {
    font-style: normal;
    margin-top: 1rem;
}

address p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .privacy-container {
        padding: 0 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .privacy-section {
        padding: 1.5rem;
    }
}

/* Animation for section headers */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.privacy-section {
    animation: fadeIn 0.4s ease forwards;
}

.privacy-section:nth-child(1) { animation-delay: 0.1s; }
.privacy-section:nth-child(2) { animation-delay: 0.2s; }
.privacy-section:nth-child(3) { animation-delay: 0.3s; }
.privacy-section:nth-child(4) { animation-delay: 0.4s; }
.privacy-section:nth-child(5) { animation-delay: 0.5s; }
.privacy-section:nth-child(6) { animation-delay: 0.6s; }
.privacy-section:nth-child(7) { animation-delay: 0.7s; }
.privacy-section:nth-child(8) { animation-delay: 0.8s; }
.privacy-section:nth-child(9) { animation-delay: 0.9s; }
.privacy-section:nth-child(10) { animation-delay: 1s; }

/* Scroll behavior */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Support */
/* Base Styles */
.hero-support {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 4rem 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #334155;
}

.support-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}


.subtitle {
    text-align: center;
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

/* Support Options Cards */
.support-options {
    display: grid;
    gap: 1.5rem;
}

.option-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.option-icon {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.option-card h3 {
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.option-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-outline {
    border: 2px solid #3b82f6;
    color: #3b82f6;
    background: transparent;
}

.btn-outline:hover {
    background: #3b82f6;
    color: white;
}

.btn-primary {
    background: #3b82f6;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* FAQ Section */
.faq-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.faq-section h2 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background: #f8fafc;
    padding: 1.25rem;
    font-size: 1.1rem;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.faq-question:hover {
    background: #f1f5f9;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.25rem;
    max-height: 500px;
}

.faq-answer p {
    color: #475569;
    line-height: 1.7;
}

.faq-answer a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.contact-section h2 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.contact-section p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.support-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .support-grid {
        grid-template-columns: 1fr;
    }
    
    .support-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .support-options {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .option-card,
    .faq-section,
    .contact-section {
        padding: 1.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.option-card {
    animation: fadeIn 0.4s ease forwards;
}

.option-card:nth-child(1) { animation-delay: 0.1s; }
.option-card:nth-child(2) { animation-delay: 0.2s; }
.option-card:nth-child(3) { animation-delay: 0.3s; }

#blocked-banner .btn { padding:6px 10px; border-radius:6px; cursor:pointer; }
#blocked-banner .btn.btn-primary { background:#2563eb; color:#fff; border:none; }
#blocked-banner .btn.btn-outline { background:transparent; border:1px solid #ccc; }
