/* assets/css/home-updates.css
 * Homepage-specific professional UI updates for ShantiGyan.
 */

/* ================================
   Announcement Bar
   ================================ */
.announcement-bar {
    background: linear-gradient(90deg, #1E293B 0%, #0F172A 100%);
    color: #fff;
    padding: 0.65rem 5%;
    font-size: 0.9rem;
    position: relative;
    z-index: 99;
}

.announcement-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    text-align: center;
}

.announcement-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    background: var(--primary-color);
    color: #fff;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.announcement-content a {
    color: #38BDF8;
    font-weight: 600;
    text-decoration: none;
}

.announcement-content a:hover {
    color: #7DD3FC;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .announcement-bar {
        font-size: 0.8rem;
        padding: 0.5rem 4%;
    }
}

/* ================================
   Section wrapper
   ================================ */
.section {
    margin-bottom: 3.5rem;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-header.center {
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    background: rgba(79, 70, 229, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 0.65rem;
}

.section-header h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-color);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0.6rem 0 0;
    line-height: 1.6;
}

/* ================================
   Hero improvements
   ================================ */
.hero-modern {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(4px);
}

.hero-tag::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #22C55E;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

.hero-modern h1 {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-search {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hero-search button {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.hero-stats {
    gap: 1.25rem;
}

.hero-stat {
    padding: 1.25rem 1rem;
}

.hero-stat strong {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.hero-stat span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ================================
   Hero Jobs Section (inside hero)
   ================================ */
.hero-jobs-section {
    max-width: 1280px;
    margin: 3rem auto 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 1;
}

.hero-jobs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.hero-jobs-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0.35rem 0 0;
}

.hero-jobs-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: rgba(34, 197, 94, 0.9);
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
}

.hero-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.hero-job-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 1rem 1.15rem;
    text-decoration: none;
    color: #fff;
    transition: var(--transition);
}

.hero-job-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.hero-job-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-job-content {
    flex-grow: 1;
    min-width: 0;
}

.hero-job-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-job-org {
    display: block;
    font-size: 0.78rem;
    opacity: 0.9;
    margin-bottom: 0.15rem;
}

.hero-job-date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    opacity: 0.85;
}

.hero-job-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.hero-job-card:hover .hero-job-arrow {
    background: #fff;
    color: var(--primary-color);
    transform: translateX(2px);
}

.hero-job-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    color: #fff;
}

.hero-jobs-footer {
    text-align: center;
}

/* ================================
   Services grid
   ================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--service-color, var(--primary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--service-color, var(--primary-color));
    color: var(--text-color);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-3deg);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.service-card p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--service-color, var(--primary-color));
    transition: var(--transition);
}

.service-link svg {
    transition: transform 0.2s ease;
}

.service-card:hover .service-link svg {
    transform: translateX(4px);
}

/* ================================
   Updates section
   ================================ */
.updates-section .home-grid {
    align-items: stretch;
}

.update-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--accent-color);
    padding: 1.5rem;
}

.update-card-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.update-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.update-card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    flex-grow: 1;
}

.update-card-header h3 a {
    color: var(--text-color);
    text-decoration: none;
}

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

.update-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex-grow: 1;
    margin: 0;
    padding: 0;
}

.update-item {
    padding: 0.85rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.update-item:hover {
    background: var(--surface);
    border-color: var(--accent-color);
    transform: translateX(4px);
}

.update-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
    display: block;
    margin-bottom: 0.35rem;
    line-height: 1.45;
}

.update-title:hover {
    color: var(--primary-color);
}

.update-meta {
    font-size: 0.78rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.update-meta svg {
    flex-shrink: 0;
}

.update-empty {
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 1rem;
    text-align: center;
    background: var(--background-color);
    border-radius: var(--radius-md);
}

.update-card-footer {
    margin-top: 1.25rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.update-card-footer .btn {
    width: 100%;
    font-size: 0.85rem;
}

/* ================================
   Trust / Why Choose Us
   ================================ */
.trust-section {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.trust-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--background-color);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.trust-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(79, 70, 229, 0.2);
}

.trust-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
}

.trust-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.trust-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.55;
    margin: 0;
}

/* ================================
   Social highlight
   ================================ */
.social-highlight {
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.social-highlight::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 0%, transparent 35%);
    pointer-events: none;
}

.social-highlight h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    position: relative;
}

.social-highlight p {
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.6;
}

.social-highlight-grid {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    position: relative;
}

.social-highlight-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1.75rem;
    border-radius: 9999px;
    background: #fff;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.social-highlight-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--shadow-xl);
}

.social-highlight-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.social-highlight-btn.whatsapp {
    color: #25D366;
}

.social-highlight-btn.whatsapp:hover {
    background: #25D366;
    color: #fff;
}

.social-highlight-btn.instagram {
    color: #E1306C;
}

.social-highlight-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
}

.social-highlight-btn.youtube {
    color: #FF0000;
}

.social-highlight-btn.youtube:hover {
    background: #FF0000;
    color: #fff;
}

/* ================================
   Mobile adjustments
   ================================ */
@media (max-width: 768px) {
    .section {
        margin-bottom: 2.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header.center {
        align-items: center;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .hero-modern {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .hero-tag {
        font-size: 0.75rem;
    }

    .hero-jobs-section {
        margin-top: 2rem;
        padding: 1.25rem;
    }

    .hero-jobs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .hero-jobs-header h2 {
        font-size: 1.25rem;
    }

    .hero-jobs-grid {
        grid-template-columns: 1fr;
    }

    .hero-job-card {
        padding: 0.9rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card {
        padding: 1.35rem;
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .service-icon svg {
        width: 24px;
        height: 24px;
    }

    .service-card h3 {
        font-size: 1.05rem;
    }

    .service-card p {
        margin-bottom: 0.5rem;
        font-size: 0.85rem;
    }

    .trust-section {
        padding: 1.75rem 1.25rem;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .social-highlight {
        padding: 2rem 1.25rem;
    }

    .social-highlight h2 {
        font-size: 1.5rem;
    }

    .social-highlight-btn {
        padding: 0.8rem 1.25rem;
        font-size: 0.9rem;
    }

    .update-card {
        padding: 1.25rem;
    }
}
