/**
 * AICT Homepage Styles
 * Clean homepage rendered by plugin (bypasses wpautop-mangled page content)
 * @since 1.13.1
 */

/* Full-bleed homepage — remove all theme constraints */
body.home .entry-header,
body.home .entry-title { display: none !important; }

body.home #content,
body.home #primary,
body.home .site-main,
body.home .content-area,
body.home .site-content {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

body.home .entry-content,
body.home article.page {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.aict-homepage {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.aict-homepage section {
    width: 100%;
}

/* ====================== Hero Section ====================== */
.aict-homepage .hero {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%) !important;
    padding: 80px 20px !important;
    text-align: center !important;
    color: #fff !important;
    position: relative;
    overflow: hidden;
}

.aict-homepage .hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.aict-homepage .hero .container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.aict-homepage .hero-title {
    font-size: 3rem !important;
    font-weight: 800 !important;
    margin: 0 0 20px !important;
    line-height: 1.15 !important;
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.aict-homepage .hero-subtitle {
    font-size: 1.25rem !important;
    opacity: 0.92;
    margin: 0 0 32px !important;
    line-height: 1.5 !important;
    color: rgba(255,255,255,0.95) !important;
}

/* Search Bar */
.aict-homepage .hero-search {
    max-width: 500px;
    margin: 0 auto 28px;
    position: relative;
}

.aict-homepage .hero-search input {
    width: 100%;
    padding: 16px 20px 16px 48px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    backdrop-filter: blur(4px);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}

.aict-homepage .hero-search input::placeholder {
    color: rgba(255,255,255,0.7);
}

.aict-homepage .hero-search input:focus {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.22);
}

.aict-homepage .hero-search .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    opacity: 0.7;
}

/* Hero Buttons */
.aict-homepage .hero-buttons {
    display: flex !important;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.aict-homepage .hero-buttons a {
    padding: 14px 32px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: transform 0.15s, box-shadow 0.15s;
    display: inline-block;
}

.aict-homepage .hero-buttons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.aict-homepage .btn-hero-primary {
    background: #fff !important;
    color: #6366f1 !important;
}

.aict-homepage .btn-hero-secondary {
    background: rgba(255,255,255,0.18) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.3);
}

.aict-homepage .hero-stats-line {
    margin-top: 24px !important;
    font-size: 0.95rem !important;
    opacity: 0.85;
    color: rgba(255,255,255,0.9) !important;
}

/* ====================== Stats Section ====================== */
.aict-homepage .stats-section {
    background: #f8fafc !important;
    padding: 48px 20px !important;
}

.aict-homepage .stats-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px;
    text-align: center;
}

.aict-homepage .stat-item .stat-number {
    font-size: 2.75rem !important;
    font-weight: 700 !important;
    color: #6366f1 !important;
    line-height: 1.2;
}

.aict-homepage .stat-item .stat-label {
    font-size: 0.95rem;
    color: #64748b !important;
    margin-top: 4px;
}

/* ====================== Featured Section ====================== */
.aict-homepage .featured-section {
    padding: 60px 20px !important;
    background: #fff !important;
}

.aict-homepage .featured-section .section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.aict-homepage .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.aict-homepage .section-header h2 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin: 0 0 8px !important;
}

.aict-homepage .section-header p {
    font-size: 1.1rem;
    color: #64748b !important;
    margin: 0;
}

/* ====================== Categories Section ====================== */
.aict-homepage .categories-section {
    padding: 60px 20px !important;
    background: #f8fafc !important;
}

.aict-homepage .categories-section .section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.aict-homepage .categories-grid {
    display: flex !important;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.aict-homepage .cat-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #334155 !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.2s;
}

.aict-homepage .cat-badge:hover {
    background: #6366f1 !important;
    color: #fff !important;
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99,102,241,0.25);
}

.aict-homepage .cat-badge .cat-count {
    font-size: 0.8rem;
    opacity: 0.65;
}

/* ====================== CTA Section ====================== */
.aict-homepage .cta-section {
    padding: 60px 20px !important;
    text-align: center !important;
    background: #fff !important;
}

.aict-homepage .cta-section h2 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin: 0 0 12px !important;
}

.aict-homepage .cta-section p {
    font-size: 1.1rem;
    color: #64748b !important;
    margin: 0 0 28px !important;
}

.aict-homepage .cta-section .btn-cta {
    display: inline-block !important;
    padding: 16px 40px !important;
    background: linear-gradient(135deg, #6366f1, #818cf8) !important;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    transition: transform 0.15s, box-shadow 0.15s;
}

.aict-homepage .cta-section .btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,53,0.35);
}

/* ====================== Responsive ====================== */
@media (max-width: 768px) {
    .aict-homepage .hero { padding: 60px 16px !important; }
    .aict-homepage .hero-title { font-size: 2rem !important; }
    .aict-homepage .hero-subtitle { font-size: 1.05rem !important; }
    .aict-homepage .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
    }
    .aict-homepage .stat-item .stat-number { font-size: 2rem !important; }
    .aict-homepage .hero-buttons a { padding: 12px 24px !important; }
}

@media (max-width: 480px) {
    .aict-homepage .hero-title { font-size: 1.65rem !important; }
    .aict-homepage .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
