/**
 * App-specific styles for scholarship tools
 * Extends the main theme styles with app interface styling
 */

/* =============================================================================
   APP CONTAINER STYLES
   ============================================================================= */

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

.app-page-container {
    max-width: 1000px;
}

/* App Header */
.app-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: var(--border-radius);
}

.app-icon-large {
    font-size: 4rem;
    margin-bottom: 20px;
}

.app-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: white;
}

.app-description {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.6;
}

.app-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.app-meta span {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* =============================================================================
   FORM STYLES
   ============================================================================= */

.app-form {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 30px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* =============================================================================
   RESULTS STYLES
   ============================================================================= */

.results-box {
    background: var(--success-color);
    color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 30px 0;
}

.results-box h3 {
    margin-bottom: 20px;
    color: white;
    font-size: 1.5rem;
}

.results-box.warning {
    background: var(--warning-color);
    color: var(--text-dark);
}

.results-box.warning h3 {
    color: var(--text-dark);
}

.results-box.error {
    background: var(--error-color);
}

.results-section {
    background: var(--success-color);
    color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 30px 0;
}

.results-section h3 {
    color: white;
    margin-bottom: 20px;
}

/* Result grids */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.result-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
}

.result-item .label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    opacity: 0.9;
}

.result-item .value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
}

/* =============================================================================
   APP MESSAGES
   ============================================================================= */

.app-message {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-weight: 600;
}

.app-message.success {
    background: var(--success-color);
    color: white;
}

.app-message.error {
    background: var(--error-color);
    color: white;
}

.app-message.warning {
    background: var(--warning-color);
    color: var(--text-dark);
}

.app-message.info {
    background: var(--primary-color);
    color: white;
}

/* =============================================================================
   TABBED CONTENT (CSS ONLY)
   ============================================================================= */

.app-tabs {
    margin: 40px 0;
}

.app-tabs input[type="radio"] {
    display: none;
}

.app-tabs label {
    display: inline-block;
    padding: 15px 25px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    color: var(--text-light);
    font-weight: 600;
    transition: var(--transition);
    margin-right: 10px;
}

.app-tabs label:hover {
    color: var(--text-dark);
}

.app-tabs input[type="radio"]:checked + label {
    border-bottom-color: var(--primary-color);
    color: var(--text-dark);
}

.tab-content {
    display: none;
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-top: 10px;
}

.app-tabs input[type="radio"]:checked + label + .tab-content {
    display: block;
}

/* =============================================================================
   FAQ ACCORDION (CSS ONLY)
   ============================================================================= */

.app-faq {
    margin: 30px 0;
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

.faq-item summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
    list-style: none;
    position: relative;
    background: var(--bg-light);
    transition: var(--transition);
}

.faq-item summary:hover {
    background: var(--primary-color);
    color: white;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item summary:hover::after {
    color: white;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-answer {
    padding: 20px;
    color: var(--text-light);
    line-height: 1.6;
}

/* =============================================================================
   BUTTONS
   ============================================================================= */

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-danger {
    background: var(--error-color);
    border-color: var(--error-color);
}

.btn-danger:hover {
    background: #c62828;
    border-color: #c62828;
}

/* =============================================================================
   CARDS & LISTS
   ============================================================================= */

.card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    padding: 25px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 0;
}

.card-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.card-badge {
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* =============================================================================
   SHARING
   ============================================================================= */

.app-sharing {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 40px 0;
    text-align: center;
}

.share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.share-btn {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.9rem;
}

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

.share-btn.twitter:hover {
    background: #1DA1F2;
}

.share-btn.facebook:hover {
    background: #4267B2;
}

.share-btn.email:hover {
    background: #34495e;
}

/* =============================================================================
   NAVIGATION
   ============================================================================= */

.app-navigation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.nav-section {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
}

.nav-section h4 {
    color: var(--text-dark);
    margin-bottom: 15px;
}

/* =============================================================================
   SPECIFIC APP STYLES
   ============================================================================= */

/* Deadline Tracker */
.deadline-tracker .deadline-card {
    border-left: 4px solid var(--primary-color);
}

.deadline-tracker .deadline-card.urgent {
    border-left-color: var(--error-color);
    background: #fff5f5;
}

.deadline-tracker .deadline-card.soon {
    border-left-color: var(--warning-color);
    background: #fffbf0;
}

/* Status badges */
.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-not_started {
    background: #f8f9fa;
    color: #6c757d;
}

.status-in_progress {
    background: #e3f2fd;
    color: #1976d2;
}

.status-submitted {
    background: #e8f5e8;
    color: #2e7d32;
}

.status-awarded {
    background: var(--success-color);
    color: white;
}

.status-rejected {
    background: var(--error-color);
    color: white;
}

/* Word Counter */
.word-counter-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.stat-box {
    text-align: center;
    padding: 15px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* Progress bars */
.progress-bar {
    width: 100%;
    height: 20px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color) 0%, var(--warning-color) 50%, var(--error-color) 100%);
    transition: width 0.5s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

@media (max-width: 768px) {
    .app-container {
        padding: 20px 15px;
    }
    
    .app-header {
        padding: 20px;
    }
    
    .app-title {
        font-size: 2rem;
    }
    
    .app-icon-large {
        font-size: 3rem;
    }
    
    .app-form {
        padding: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .app-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .app-navigation {
        grid-template-columns: 1fr;
    }
    
    .app-tabs label {
        display: block;
        text-align: center;
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .word-counter-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .app-header {
        padding: 15px;
    }
    
    .app-title {
        font-size: 1.8rem;
    }
    
    .app-form {
        padding: 20px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .share-buttons .share-btn {
        width: 100%;
        text-align: center;
    }
    
    .word-counter-stats {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   BLOG SECTION STYLES
   ============================================================================= */

/* Blog Hero Section */
.blog-hero {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.1) 0%, transparent 50%);
    background-size: 100px 100px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.blog-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.title-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 20px;
}

.blog-description {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.blog-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.blog-stats .stat-item {
    text-align: center;
}

.blog-stats .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.blog-stats .stat-label {
    font-size: 1rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Blog Layout */
.blog-container {
    padding: 60px 0;
    background: #f8f9fa;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: start;
}

.blog-main {
    min-width: 0; /* Prevent grid overflow */
}

/* Category Filter Section */
.category-filter-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.filter-header {
    text-align: center;
    margin-bottom: 30px;
}

.filter-header h2 {
    font-size: 2rem;
    color: #1a202c;
    margin-bottom: 10px;
}

.filter-header p {
    color: #64748b;
    font-size: 1.1rem;
}

.category-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.filter-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: #2563eb;
}

.filter-icon {
    font-size: 1.1rem;
}

.count {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-left: 4px;
}

/* Featured Post */
.featured-post {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    margin-bottom: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 400px;
}

.featured-image {
    position: relative;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-post:hover .featured-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #64748b;
}

.meta-date, .meta-category {
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-title {
    font-size: 2rem;
    color: #1a202c;
    margin-bottom: 20px;
    line-height: 1.3;
}

.featured-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-title a:hover {
    color: #3b82f6;
}

.featured-excerpt {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 30px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.arrow {
    transition: transform 0.3s ease;
}

.read-more-btn:hover .arrow {
    transform: translateX(4px);
}

/* Posts Section */
.posts-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.2rem;
    color: #1a202c;
    margin-bottom: 40px;
    text-align: center;
}

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

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.post-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.post-content {
    padding: 25px;
}

.post-content .post-meta {
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.meta-reading-time {
    color: #059669;
    font-weight: 600;
}

.post-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #3b82f6;
}

.post-excerpt {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #2563eb;
}

.read-more .arrow {
    transition: transform 0.3s ease;
}

.read-more:hover .arrow {
    transform: translateX(3px);
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    color: #1a202c;
    margin-bottom: 20px;
    font-weight: 600;
}

.widget-icon {
    font-size: 1.5rem;
}

/* Search Widget */
.search-form {
    display: flex;
    gap: 0;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.search-form:focus-within {
    border-color: #3b82f6;
}

.search-field {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 1rem;
}

.search-submit {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-submit:hover {
    background: #2563eb;
}

/* Newsletter Widget */
.newsletter-widget p {
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-form input[type="email"] {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Popular Posts Widget */
.popular-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-posts-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.post-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.post-info a {
    color: #1a202c;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.post-info a:hover {
    color: #3b82f6;
}

.post-date {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

/* Quick Tools Widget */
.quick-tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.tool-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 15px;
    background: #f8fafc;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tool-link:hover {
    background: #e2e8f0;
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.tool-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.tool-name {
    color: #1a202c;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Blog Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    margin: 0 5px;
    background: white;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.no-posts-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-posts h3 {
    font-size: 1.8rem;
    color: #1a202c;
    margin-bottom: 15px;
}

.no-posts p {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Blog CTA Section */
.blog-cta-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.blog-cta-section h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
}

.blog-cta-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.cta-buttons .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: 2px solid transparent;
}

.cta-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.cta-buttons .btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta-buttons .btn-secondary:hover {
    background: white;
    color: #1e293b;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .blog-sidebar {
        position: static;
    }
    
    .featured-post {
        grid-template-columns: 1fr;
    }
    
    .featured-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .blog-title {
        font-size: 2.5rem;
    }
    
    .title-icon {
        font-size: 3rem;
    }
    
    .blog-stats {
        gap: 20px;
    }
    
    .blog-stats .stat-number {
        font-size: 2rem;
    }
    
    .category-filters {
        justify-content: flex-start;
    }
    
    .featured-title {
        font-size: 1.6rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 60px 0;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .category-filter-section {
        padding: 25px;
    }
    
    .featured-content {
        padding: 20px;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
}

/* =============================================================================
   WHY CHOOSE SECTION STYLES
   ============================================================================= */

.why-choose-section {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.why-choose-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: #1a202c;
}

.why-choose-section .section-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Grid */
.why-choose-section .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.why-choose-section .feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.why-choose-section .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.why-choose-section .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.why-choose-section .feature-card:hover::before {
    transform: translateX(0);
}

.why-choose-section .feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
}

.why-choose-section .feature-icon svg {
    width: 40px;
    height: 40px;
}

.why-choose-section .feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a202c;
}

.why-choose-section .feature-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

/* Tools by Category */
.why-choose-section .tools-category-section {
    margin-top: 80px;
}

.why-choose-section .category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.why-choose-section .category-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.why-choose-section .category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

.why-choose-section .category-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: inline-block;
}

.why-choose-section .category-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a202c;
}

.why-choose-section .category-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.why-choose-section .category-card li {
    margin-bottom: 12px;
}

.why-choose-section .category-card a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    position: relative;
    padding-left: 20px;
}

.why-choose-section .category-card a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.2s ease;
}

.why-choose-section .category-card a:hover {
    color: #3b82f6;
    padding-left: 25px;
}

.why-choose-section .category-card a:hover::before {
    opacity: 1;
    left: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .why-choose-section .section-title {
        font-size: 2rem;
    }
    
    .why-choose-section .section-subtitle {
        font-size: 1.1rem;
    }
    
    .why-choose-section .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .why-choose-section .feature-card {
        padding: 30px 20px;
    }
    
    .why-choose-section .category-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation for icons */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.why-choose-section .feature-card:hover .feature-icon {
    animation: pulse 1s ease-in-out infinite;
}

/* =============================================================================
   PRINT STYLES
   ============================================================================= */

@media print {
    .app-sharing,
    .app-navigation,
    .share-buttons,
    .btn {
        display: none;
    }
    
    .app-header {
        background: none !important;
        color: var(--text-dark) !important;
        border: 2px solid var(--text-dark);
    }
    
    .app-title {
        color: var(--text-dark) !important;
    }
    
    .results-box,
    .results-section {
        background: none !important;
        color: var(--text-dark) !important;
        border: 2px solid var(--text-dark);
    }
    
    .results-box h3,
    .results-section h3 {
        color: var(--text-dark) !important;
    }
    
    .card {
        border: 1px solid var(--text-dark);
        box-shadow: none;
    }
}

/* =============================================================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================================================= */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .results-box,
    .results-section {
        border: 2px solid;
    }
    
    .btn {
        border-width: 3px;
    }
    
    .card {
        border: 2px solid var(--text-dark);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .card,
    .btn,
    .form-group input,
    .form-group select,
    .form-group textarea {
        transition: none;
    }
    
    .progress-fill {
        transition: none;
    }
}

/* Focus indicators */
.btn:focus,
.share-btn:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.faq-item summary:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Screen reader improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}