/* =============================================================
   AlopeciaDB — Home / Landing Page
   ============================================================= */

.landing-page {
    font-family: var(--font-body);
    color: var(--text);
}

/* ---------- Hero / Intro ---------- */
.intro {
    text-align: center;
    padding: 56px 6% 40px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin-bottom: 40px;
}

.intro h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}

.intro p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
}

.intro-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: transform var(--transition), box-shadow var(--transition);
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.35);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn:hover {
    transform: translateY(-3px);
}

/* ---------- Main content (slider + side) ---------- */
.main-content {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 24px;
    padding: 0 6%;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.image-slider {
    width: 60%;
    min-width: 300px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    aspect-ratio: 16/9;
    background: #dce8f5;
}

.slides {
    width: 100%;
    height: 100%;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
}

.slides img.active {
    display: block;
    opacity: 1;
    position: relative;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 14px;
    z-index: 5;
}

.slider-controls button {
    background-color: rgba(7, 27, 48, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    transition: background var(--transition);
}

.slider-controls button:hover {
    background-color: var(--primary);
}

.side-content {
    width: 36%;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight, .get-started {
    flex: 1;
    background-color: var(--surface);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent);
    transition: box-shadow var(--transition), transform var(--transition);
}

.highlight h2, .get-started h2 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.highlight p, .get-started p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.highlight:hover, .get-started:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.get-started a {
    color: var(--primary);
    font-weight: 600;
}

/* ---------- Database Groups Section ---------- */
.db-groups {
    padding: 10px 6% 60px;
    text-align: center;
}

.db-groups h2 {
    font-size: 1.9rem;
    color: var(--primary-dark);
    margin-bottom: 6px;
    font-weight: 700;
}

.db-groups > p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.db-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    justify-content: center;
}

.db-group-card {
    display: flex;
    flex-direction: column;
    background-color: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    text-align: left;
}

.db-group-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.db-group-card .img-wrap {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.db-group-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.db-group-card:hover img {
    transform: scale(1.08);
}

.db-group-info {
    padding: 18px;
    position: relative;
}

.db-group-info h3 {
    margin: 0 0 8px 0;
    color: var(--primary-dark);
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.db-group-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.db-group-arrow {
    display: inline-block;
    margin-top: 10px;
    color: var(--accent-dark);
    font-weight: 600;
    font-size: 0.85rem;
}

/* ---------- Stats strip ---------- */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    padding: 0 6%;
    margin-bottom: 50px;
}

.stat-box {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 22px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-box .stat-num {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.stat-box .stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

/* ---------- Generic link ---------- */
.landing-page a {
    color: var(--primary);
    text-decoration: none;
}

.landing-page a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    .image-slider {
        width: 100%;
    }
    .side-content {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .highlight, .get-started {
        min-width: 220px;
    }
    .intro h1 {
        font-size: 1.8rem;
    }
}
