@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@400;600;800&family=Outfit:wght@500;800&display=swap');

:root {
    --primary: #4e73df;
    --primary-rgb: 78, 115, 223;
    --secondary: #1cc88a;
    --accent: #f6c23e;
    --dark: #1a202c;
    --light: #f8fafc;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Pretendard', sans-serif;
    background-color: #f7f9fc;
    color: var(--dark);
    overflow-x: hidden;
}

/* 💎 Premium Portal Layout */
#amen-portal-home {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 🧭 Premium Navigation (GNB) - Professional SaaS Style */
#hd {
    background: #fff;
    border-bottom: 1px solid #edf2f7;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

#hd_wrapper {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 70px;
}

#logo {
    flex-shrink: 0;
    margin-right: 50px;
}

#gnb {
    flex-grow: 1;
}

#gnb_1dul {
    list-style: none;
    display: flex;
    gap: 35px;
    margin: 0;
    padding: 0;
}

.gnb_1dli {
    position: relative;
}

.gnb_1da {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    text-decoration: none;
    padding: 25px 0;
    display: block;
    transition: color 0.2s;
}

.gnb_1da:hover,
.gnb_1dli:hover .gnb_1da {
    color: var(--primary);
}

/* 2-Depth Dropdown */
.gnb_2dul {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    min-width: 200px;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    display: none;
    opacity: 0;
    transition: all 0.3s;
    z-index: 1001;
}

.gnb_1dli:hover .gnb_2dul {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.gnb_2dli {
    list-style: none;
    margin-bottom: 5px;
}

.gnb_2da {
    font-size: 14px;
    font-weight: 600;
    color: #718096;
    text-decoration: none;
    display: block;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.2s;
}

.gnb_2da:hover {
    background: #f7fafc;
    color: var(--primary);
}

/* 🚀 Hero Section - Dashboard Transition */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #224abe 100%);
    border-radius: 24px;
    padding: 60px;
    color: #fff;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(var(--primary-rgb), 0.3);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(80px);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 58px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.hero-desc {
    font-size: 20px;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: left;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    display: block;
}

.stat-label {
    font-size: 14px;
    opacity: 0.7;
}

/* 📱 Responsive Grid Items */
.section-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--primary);
}

/* 🧭 Premium Navigation (GNB) */
#hd {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

#gnb_1dul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.gnb_1dli {
    position: relative;
}

.gnb_1da {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    padding: 10px 0;
    transition: color 0.3s;
}

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

.gnb_2dul {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    display: none;
    min-width: 180px;
    border: 1px solid #f1f5f9;
    z-index: 1001;
}

.gnb_1dli:hover .gnb_2dul {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.gnb_2dli {
    list-style: none;
    margin-bottom: 8px;
}

.gnb_2dli:last-child {
    margin: 0;
}

.gnb_2da {
    font-size: 14px;
    font-weight: 600;
    color: #718096;
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.gnb_2da:hover {
    background: #f8fafc;
    color: var(--primary);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(10px);
    }
}

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

/* ⛪ Ministry Card */
.ministry-card {
    background: #fff;
    padding: 35px;
    border-radius: 32px;
    box-shadow: var(--shadow);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ministry-card:hover {
    transform: translateY(-10px);
}

.log-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.log-item:last-child {
    border: none;
    margin: 0;
}

.log-icon {
    width: 45px;
    height: 45px;
    background: #eef2ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.log-info h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.log-info p {
    font-size: 14px;
    color: #718096;
}

/* 🛒 Creator/Shop Cards */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.service-item {
    background: #fff;
    padding: 30px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid #f1f5f9;
    transition: all 0.3s;
}

.service-item:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.service-item i {
    font-size: 32px;
    margin-bottom: 15px;
    display: block;
}

.service-item h4 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
}

/* 🔔 Mobile Optimized Navigation (GNB) */
/* 📸 SNS Feed Section */
.sns-feed-section {
    margin-top: 40px;
}

.sns-latest-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* 📱 Responsive Grid Items (Mobile) */
@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    #amen-portal-home {
        padding: 20px;
    }

    .hero-section {
        padding: 40px 20px;
        border-radius: 20px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }

    #gnb_1dul {
        gap: 15px;
        font-size: 13px;
    }

    .service-grid {
        grid-template-columns: 1fr 1fr;
    }
}