/*
Theme Name: ScholarshipDeadlines.com
Description: A custom child theme for www.scholarshipdeadlines.com with 12 scholarship-focused mini apps. Server-side first approach with minimal JavaScript usage.
Author: Scholarship Deadlines Team
Version: 1.0.0
Template: oceanwp
Text Domain: scholarshipdeadlines-com
Domain Path: /languages/
*/

/* =============================================================================
   CHILD THEME CORE STYLES
   ============================================================================= */

/* CSS Variables for Brand Colors */
:root {
    --primary-color: #0066CC;
    --secondary-color: #FF6B35;
    --accent-color: #28A745;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #DEE2E6;
    --success-color: #28A745;
    --warning-color: #FFC107;
    --error-color: #DC3545;
    --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 8px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* =============================================================================
   LAYOUT & TYPOGRAPHY
   ============================================================================= */

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

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* =============================================================================
   HEADER & BRANDING (Responsive Logo)
   ============================================================================= */

.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: var(--shadow-light);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    min-height: 70px;
}

/* Site Branding */
.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    max-width: 60%;
}

/* Custom Logo */
.site-logo {
    line-height: 0;
}

.site-logo img,
.custom-logo {
    height: auto;
    max-height: 50px;
    width: auto;
    max-width: 100%;
    transition: var(--transition);
}

.site-logo a:hover img,
.custom-logo:hover {
    opacity: 0.8;
}

/* Site Title (when no logo) */
.site-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.site-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.site-title a:hover {
    color: var(--secondary-color);
}

/* Site Description */
.site-description {
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
    line-height: 1.3;
}

/* Logo + Text Combination */
.site-branding .site-logo + .site-title {
    margin-left: 15px;
    font-size: 1.5rem;
}

/* Responsive Logo Behavior */
@media (max-width: 1024px) {
    .site-logo img,
    .custom-logo {
        max-height: 45px;
    }
    
    .site-title {
        font-size: 1.6rem;
    }
    
    .site-branding {
        max-width: 70%;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 12px 0;
        min-height: 60px;
    }
    
    .site-logo img,
    .custom-logo {
        max-height: 40px;
    }
    
    .site-title {
        font-size: 1.4rem;
    }
    
    .site-description {
        font-size: 0.8rem;
    }
    
    .site-branding {
        max-width: 75%;
    }
    
    /* Hide description on small mobile */
    .site-description {
        display: none;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 10px 0;
        min-height: 55px;
    }
    
    .site-logo img,
    .custom-logo {
        max-height: 35px;
    }
    
    .site-title {
        font-size: 1.2rem;
    }
    
    .site-branding {
        max-width: 80%;
    }
    
    /* For very long site names, allow text wrapping */
    .site-title {
        line-height: 1.1;
        word-break: break-word;
    }
}

@media (max-width: 360px) {
    .site-logo img,
    .custom-logo {
        max-height: 30px;
    }
    
    .site-title {
        font-size: 1.1rem;
    }
    
    .site-branding {
        max-width: 85%;
    }
}

/* High DPI / Retina Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .site-logo img,
    .custom-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support (if needed) */
@media (prefers-color-scheme: dark) {
    .site-header {
        background: var(--text-dark);
        border-bottom-color: #374151;
    }
    
    .site-title a {
        color: var(--bg-white);
    }
    
    .site-description {
        color: #9ca3af;
    }
}

/* Print Styles for Logo */
@media print {
    .site-header {
        background: white !important;
        box-shadow: none;
        border-bottom: 2px solid black;
        position: static;
    }
    
    .site-logo img,
    .custom-logo {
        max-height: 40px;
        filter: grayscale(100%);
    }
    
    .site-title a {
        color: black !important;
    }
}

/* =============================================================================
   HEADER & NAVIGATION (CSS-Only Mobile Menu)
   ============================================================================= */

/* Mobile Menu Toggle (CSS Checkbox Hack) */
.menu-toggle-checkbox {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
}

.hamburger {
    display: block;
    width: 25px;
    height: 18px;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    margin-bottom: 4px;
    transition: var(--transition);
    transform-origin: center;
}

.hamburger span:last-child {
    margin-bottom: 0;
}

/* Mobile Menu Animation */
.menu-toggle-checkbox:checked + .mobile-menu-toggle .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle-checkbox:checked + .mobile-menu-toggle .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-toggle-checkbox:checked + .mobile-menu-toggle .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation Styles */
.main-navigation {
    display: block;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        box-shadow: var(--shadow-medium);
        z-index: 1000;
    }
    
    .menu-toggle-checkbox:checked ~ .main-navigation {
        display: block;
    }
    
    .primary-menu {
        flex-direction: column;
        padding: 20px;
    }
    
    .primary-menu li {
        margin: 10px 0;
    }
}

/* =============================================================================
   HOMEPAGE STYLES
   ============================================================================= */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

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

.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
}

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

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

/* Apps Section */
.apps-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.apps-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-dark);
}

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

.app-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition);
}

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

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

.app-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.app-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.app-btn {
    background: var(--primary-color);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

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

/* Recent Posts Section */
.recent-posts {
    padding: 80px 0;
    background: var(--bg-white);
}

.recent-posts h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-dark);
}

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

.post-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

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

.post-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card h3 {
    padding: 20px 20px 10px;
    margin: 0;
}

.post-card h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.post-card h3 a:hover {
    color: var(--primary-color);
}

.post-card p {
    padding: 0 20px 10px;
    color: var(--text-light);
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    padding: 0 20px 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary-color);
}

.view-all {
    text-align: center;
    margin-top: 40px;
}

/* =============================================================================
   BLOG PAGE STYLES
   ============================================================================= */

.category-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 2px solid transparent;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

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

.blog-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

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

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

/* =============================================================================
   APP INTERFACE STYLES
   ============================================================================= */

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

.app-container h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--text-dark);
}

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

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

.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);
}

.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: 120px;
}

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

/* Results Box */
.results-box {
    background: var(--success-color);
    color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    text-align: center;
}

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

.result-value {
    font-size: 1.25rem;
    font-weight: 600;
}

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

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

/* Instructions & FAQ */
.app-instructions,
.app-faq {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.app-instructions h3,
.app-faq h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* FAQ Accordion (CSS Only) */
.faq-item {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow-light);
}

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

.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[open] summary::after {
    content: '−';
}

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

/* Tabbed Content (CSS Radio Buttons) */
.tabs {
    margin-bottom: 30px;
}

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

.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);
}

.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);
}

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

/* =============================================================================
   FOOTER STYLES
   ============================================================================= */

.site-footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

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

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Newsletter Form */
.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.newsletter-form button {
    background: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--secondary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    opacity: 0;
    transition: var(--transition);
    z-index: 1000;
}

/* Show back to top when scrolled */
body:not(:target) .back-to-top {
    opacity: 1;
}

.back-to-top:hover {
    background: var(--secondary-color);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

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

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .apps-grid,
    .posts-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .category-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input[type="email"] {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .apps-section,
    .recent-posts {
        padding: 60px 0;
    }
    
    .app-form {
        padding: 25px;
    }
    
    .app-container {
        padding: 20px 15px;
    }
}

/* =============================================================================
   SMOOTH SCROLLING & PERFORMANCE
   ============================================================================= */

html {
    scroll-behavior: smooth;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Print Styles */
@media print {
    .hero-section,
    .site-footer,
    .back-to-top,
    .mobile-menu-toggle {
        display: none;
    }
    
    .app-form,
    .results-box {
        border: 1px solid #000;
        box-shadow: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

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

/* Focus States */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip Links */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 999999;
}

.skip-link:focus {
    top: 6px;
}

/* Screen Reader Text */
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    word-wrap: normal !important;
    border: 0;
    overflow: hidden;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000FF;
        --secondary-color: #FF0000;
        --text-dark: #000000;
        --bg-white: #FFFFFF;
        --border-color: #000000;
    }
}

/* =============================================================================
   WHY CHOOSE SECTION (Homepage specific)
   ============================================================================= */

.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;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}