/**
 * Styles specific to Homepage (home.php)
 */

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 130px 32px;
    background: linear-gradient(135deg, #040711, #0b1120, #172554, #0b1120, #040711);
    box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    box-sizing: border-box;
    overflow: hidden;
}
.hero-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 14px;
    line-height: 1.25;
    animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-subtitle {
    font-size: clamp(16px, 2vw, 19px);
    color: #94a3b8;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.5;
    animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Latest Tools Section */
.latest-tools-section {
    padding: 10px 15px;
    margin-top: 40px;
}
.latest-tools-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}
.latest-tools-header::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 90px;
    height: 2px;
    background: linear-gradient(90deg, #1e40af 0%, #2563eb 50%, #60a5fa 100%);
    border-radius: 2px;
}
.section-heading {
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.25;
}
.section-heading.no-margin {
    margin: 0;
}
.view-all-link {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}
.view-all-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}
.tool-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
    border-color: #cbd5e1;
}
.tool-card-thumb {
    width: 100%;
    height: 155px;
    background: #f1f5f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tool-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.tool-card:hover .tool-card-thumb img {
    transform: scale(1.04);
}
.tool-card-thumb-placeholder {
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tool-card-body {
    padding: 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.tool-card-name {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.35;
    transition: color 0.2s;
}
.tool-card:hover .tool-card-name {
    color: #2563eb;
}
.tool-card-desc {
    margin: 0;
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Why Us Section */
.why-us-section {
    padding: 20px 15px 20px;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.why-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 34px 28px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.why-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}
.why-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.why-card-icon svg {
    width: 26px;
    height: 26px;
}
.why-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px;
}
.why-card-desc {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}
@media (max-width: 680px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
    .why-card {
        padding: 26px 20px;
    }
}

/* Story Section */
.story-section {
    padding: 10px 15px 20px;
}
.story-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 36px 32px;
    box-sizing: border-box;
}
.story-card p {
    margin-top: 0;
    line-height: 1.55;
}
.story-card p:last-of-type {
    margin-bottom: 0;
}
.story-text {
    font-size: 16px;
    color: #475569;
    line-height: 1.7;
    margin: 0 0 16px;
}
.story-text:last-child {
    margin-bottom: 0;
}
@media (max-width: 680px) {
    .story-card {
        padding: 26px 20px;
    }
}
