/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
/*
.logo-icon {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
*/

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.header-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    display: none;
}

/* Main Content */
.main {
    padding: 3rem 0;
    background: url(/hct/theme/sb-admin2.0.1/img/bg_mainpage.jpg)
}

.intro-section {
    text-align: center;
    margin-bottom: 3rem;
}

.main-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.main-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 32rem;
    margin: 0 auto;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 80rem;
    margin: 0 auto;
}

/* Organization Card */
.org-card {
    position: relative;
    cursor: pointer;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    overflow: hidden;
}

.org-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 25px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.org-card:focus {
    ring: 2px solid #3b82f6;
    ring-offset: 2px;
}

/* Card Background Pattern */
.card-background {
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    opacity: 0.05;
    background: linear-gradient(135deg, transparent 0%, #1f2937 100%);
}

/* Card Icon */
/*
.card-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: white;
}
*/

.card-icon {
    /*width: 11rem;*/
    /*height: 4rem;*/
	padding:5px 5px;
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    color: white;
}

.org-card:hover .card-icon {
    /*box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);*/
}

/* Card Content */
.card-content {
    position: relative;
    z-index: 10;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.org-card:hover .card-title {
    color: #374151;
}

.card-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.action-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    transition: color 0.3s ease;
}

.org-card:hover .action-text {
    color: #374151;
}

.action-arrow {
    color: #9ca3af;
    transition: all 0.3s ease;
}

.org-card:hover .action-arrow {
    color: #374151;
    transform: translateX(4px);
}

/* Card Overlay */
.card-overlay {
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;	
}

.org-card:hover .card-overlay {
    opacity: 0.05;
}

/* Organization-specific styles */
.hct-korea {
    background-color: #eff6ff;
}

.hct-korea:hover {
    background-color: #dbeafe;
}

.hct-korea .card-icon {
    /*background: linear-gradient(135deg, #3b82f6, #1d4ed8);*/
}

.hct-korea .card-overlay {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.hcta {
    background-color: #ecfdf5;
}

.hcta:hover {
    background-color: #d1fae5;
}

.hcta .card-icon {
    /*background: linear-gradient(135deg, #10b981, #059669);*/
}

.hcta .card-overlay {
    background: linear-gradient(135deg, #10b981, #059669);
}

.hctid {
    background-color: #f5f3ff;
}

.hctid:hover {
    background-color: #ede9fe;
}

.hctid .card-icon {
    /*background: linear-gradient(135deg, #8b5cf6, #7c3aed);*/
}

.hctid .card-overlay {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* Footer Information */
.footer-info {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.help-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.help-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.help-link {
    font-size: 0.875rem;
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.help-link:hover {
    color: #1d4ed8;
}

/* Responsive Design */
@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .header-subtitle {
        display: block;
    }
    
    .main-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main {
        padding: 4rem 0;
    }
}

@media (min-width: 1280px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .main {
        padding: 5rem 0;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}