/*
Theme Name: WebsiteUtility
Theme URI: https://websiteutility.com
Author: WebsiteUtility Team
Author URI: https://websiteutility.com
Description: A modern, fast, and SEO-optimized WordPress theme for online tools and tech insights. Features responsive design, Bootstrap integration, and optimized performance.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: websiteutility
Tags: blog, custom-menu, featured-images, threaded-comments, translation-ready, responsive-layout, bootstrap, seo-optimized
*/

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

:root {
    --primary-color: #1e3a5f;
    --secondary-color: #2c5282;
    --accent-color: #3182ce;
    --text-dark: #1a202c;
    --text-light: #4a5568;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

/* ===================================
   Header & Navigation
   =================================== */
.site-header {
    background-color: var(--bg-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color);
}

.btn-contact {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-contact:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 4px;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary-custom:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-custom:hover {
    background-color: var(--primary-color);
    color: white;
}

.hero-image {
    position: relative;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ===================================
   Offerings Section
   =================================== */
.offerings-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-title .underline {
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0 auto;
}

.offering-card {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.offering-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.offering-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.offering-card h3 i {
    margin-right: 0.75rem;
    font-size: 1.75rem;
}

.tool-list {
    list-style: none;
    padding: 0;
}

.tool-list li {
    padding: 0.5rem 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.tool-list li:last-child {
    border-bottom: none;
}

/* ===================================
   Why Choose Us Section
   =================================== */
.why-choose-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.feature-box {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-white);
    border-radius: 8px;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-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 1.5rem;
    font-size: 1.5rem;
}

.feature-box h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-box p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===================================
   How It Works Section
   =================================== */
.how-it-works-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: white;
}

.how-it-works-section .section-title h2 {
    color: white;
}

.how-it-works-section .section-title .underline {
    background-color: white;
}

.step-box {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    font-weight: 700;
}

.step-box h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* ===================================
   Testimonial Section
   =================================== */
.testimonial-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.testimonial-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
}

.quote-icon {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
}

/* ===================================
   Footer
   =================================== */
.site-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about h3,
.footer-links h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        margin-right: 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .testimonial-text {
        font-size: 1.125rem;
    }
}

/* ===================================
   Performance Optimizations
   =================================== */
img {
    max-width: 100%;
    height: auto;
}

.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}


/* ===================================
   Page-Specific Styles
   =================================== */

/* About Page */
.about-page .mission-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.about-page .offer-card {
    transition: all 0.3s ease;
}

.about-page .offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

/* Contact Page */
.contact-page .contact-card {
    transition: all 0.3s ease;
}

.contact-page .contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

/* Legal Pages */
.legal-page .legal-content {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.blog-card .blog-image {
    overflow: hidden;
}

.blog-card .blog-image img {
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-card .blog-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card .blog-title a:hover {
    color: var(--accent-color);
}

.blog-meta {
    font-size: 0.875rem;
    color: var(--text-light);
}

.blog-meta span {
    margin-right: 1rem;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 0.5rem;
}

.pagination .page-numbers {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-lg {
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.shadow-xl {
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideInUp 0.6s ease-out;
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .back-to-top,
    .hero-buttons {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}


/* ===================================
   Blog Listing Page Styles
   =================================== */

.blog-listing-page .blog-hero {
    position: relative;
    overflow: hidden;
}

.blog-listing-page .blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.blog-listing-page .blog-search .search-form {
    display: flex;
    gap: 0.5rem;
}

.blog-listing-page .blog-search .search-form input[type="search"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
}

.blog-listing-page .blog-search .search-form button {
    padding: 0.75rem 1.5rem;
    background: #1e3a5f;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.blog-listing-page .blog-search .search-form button:hover {
    background: #2c5282;
}

/* Blog Card Animations */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    animation: cardFadeIn 0.5s ease-out;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }

/* Pagination Custom Styles */
.pagination-custom {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 0.5rem;
    justify-content: center;
}

.pagination-custom .page-numbers {
    padding: 0.75rem 1.25rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-custom .page-numbers:hover,
.pagination-custom .page-numbers.current {
    background: #1e3a5f;
    color: white;
    border-color: #1e3a5f;
    transform: translateY(-2px);
}

.pagination-custom .page-numbers.dots {
    border: none;
    background: transparent;
}

/* ===================================
   Blog Detail Page Styles
   =================================== */

.blog-detail-page .post-article {
    animation: fadeIn 0.6s ease-out;
}

.blog-detail-page .entry-content {
    font-family: Georgia, 'Times New Roman', serif;
}

.blog-detail-page .entry-content h2 {
    position: relative;
    padding-bottom: 0.5rem;
}

.blog-detail-page .entry-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3182ce 0%, transparent 100%);
}

.blog-detail-page .entry-content a {
    color: #3182ce;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.blog-detail-page .entry-content a:hover {
    color: #1e3a5f;
}

.blog-detail-page .entry-content code {
    background: #f7fafc;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #e53e3e;
    font-size: 0.9em;
}

.blog-detail-page .entry-content pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-detail-page .entry-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Sidebar Widgets */
.blog-sidebar .sidebar-widget {
    animation: slideInRight 0.5s ease-out;
}

.blog-sidebar .sidebar-widget:nth-child(1) { animation-delay: 0.1s; }
.blog-sidebar .sidebar-widget:nth-child(2) { animation-delay: 0.2s; }
.blog-sidebar .sidebar-widget:nth-child(3) { animation-delay: 0.3s; }
.blog-sidebar .sidebar-widget:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Comments Section Styling */
.comments-area {
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.comments-area .comments-title {
    color: #1e3a5f;
    font-weight: 700;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.comments-area .comment-list {
    list-style: none;
    padding: 0;
}

.comments-area .comment {
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.comments-area .comment-author {
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 0.5rem;
}

.comments-area .comment-meta {
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 1rem;
}

.comments-area .comment-content {
    color: #4a5568;
    line-height: 1.6;
}

.comments-area .comment-reply-link {
    color: #3182ce;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.comments-area .comment-form {
    margin-top: 2rem;
}

.comments-area .comment-form input[type="text"],
.comments-area .comment-form input[type="email"],
.comments-area .comment-form input[type="url"],
.comments-area .comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.comments-area .comment-form input:focus,
.comments-area .comment-form textarea:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.comments-area .comment-form .submit {
    background: #1e3a5f;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comments-area .comment-form .submit:hover {
    background: #2c5282;
    transform: translateY(-2px);
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Table of Contents */
.table-of-contents {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid #3182ce;
}

.table-of-contents h3 {
    color: #1e3a5f;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.table-of-contents ul {
    list-style: none;
    padding-left: 1rem;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.3s ease;
}

.table-of-contents a:hover {
    color: #3182ce;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .blog-sidebar {
        margin-top: 3rem;
    }
    
    .blog-sidebar .sidebar-widget {
        position: static !important;
    }
}

@media (max-width: 767px) {
    .blog-listing-page .blog-hero h1 {
        font-size: 2rem;
    }
    
    .blog-detail-page .post-hero h1 {
        font-size: 1.75rem;
    }
    
    .blog-detail-page .post-meta {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .blog-detail-page .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .blog-detail-page .post-share > div {
        flex-wrap: wrap;
    }
}

/* Print Styles for Blog Posts */
@media print {
    .blog-sidebar,
    .post-share,
    .post-navigation,
    .comments-area,
    .related-posts {
        display: none;
    }
    
    .blog-detail-page .entry-content {
        font-size: 12pt;
    }
}


.navbar a.custom-logo-link {
    max-width: 120px;
}