/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7fa;
    color: #2c3e50;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navbar */
.navbar {
    background: linear-gradient(135deg, #00264d 0%, #003A70 50%, #0056A6 100%);
    color: #ffffff;
    padding: 18px 0;
    box-shadow: 0 4px 12px rgba(0, 58, 112, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #64B5F6;
    border: 1px solid rgba(255, 255, 255, 0.25);
    overflow: hidden;
}

.header-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text .univ-name {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #90CAF9;
    font-weight: 700;
    display: block;
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-top: -2px;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.status-indicator {
    width: 9px;
    height: 9px;
    background-color: #00E676;
    border-radius: 50%;
    box-shadow: 0 0 8px #00E676;
}

/* Banner */
.banner {
    background: #ffffff;
    border-bottom: 1px solid #e1e8ed;
    padding: 22px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.banner h2 {
    font-size: 23px;
    color: #003A70;
    font-weight: 700;
    margin-bottom: 0;
}

.banner p {
    color: #616161;
    font-size: 15px;
}

/* Main Content Section */
.main-content {
    padding: 35px 20px 60px 20px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #003A70;
}

.section-header h3 {
    font-size: 20px;
    color: #003A70;
    display: flex;
    align-items: center;
    gap: 10px;
}

.count-tag {
    background-color: #e3f2fd;
    color: #0288d1;
    font-weight: 700;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 12px;
}

/* Cards Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid #eaeff4;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 28px rgba(0, 58, 112, 0.15);
    border-color: #90caf9;
}

/* Thumbnail Wrap */
.card-thumb-wrap {
    position: relative;
    width: 100%;
    height: 190px;
    background-color: #00264d;
    overflow: hidden;
}

.card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-thumb {
    transform: scale(1.06);
}

.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #003A70;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.badge-ipsi { background-color: #1565C0; }
.badge-portal { background-color: #6A1B9A; }
.badge-competition { background-color: #E65100; }
.badge-interview { background-color: #2E7D32; }
.badge-attendance { background-color: #00838F; }

.thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 38, 77, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.card:hover .thumb-overlay {
    opacity: 1;
}

.btn-quick-detail {
    background: #ffffff;
    color: #003A70;
    border: none;
    padding: 10px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background-color 0.2s;
}

.btn-quick-detail:hover {
    transform: scale(1.05);
    background: #e3f2fd;
}

/* Card Body */
.card-body {
    padding: 20px;
    flex-grow: 1;
}

.card-category {
    font-size: 12px;
    color: #0288d1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a252f;
    margin-bottom: 6px;
}

.card-domain {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #546e7a;
    margin-bottom: 12px;
}

.domain-link {
    color: #0056A6;
    text-decoration: none;
    font-weight: 600;
}

.domain-link:hover {
    text-decoration: underline;
}

.card-desc {
    font-size: 14px;
    color: #555555;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Footer */
.card-footer {
    padding: 16px 20px;
    background-color: #f8fafc;
    border-top: 1px solid #edf2f7;
    display: flex;
    gap: 10px;
}

.btn {
    border: none;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.card-thumb-link {
    text-decoration: none;
    display: block;
}

.btn-full {
    width: 100%;
    text-align: center;
    font-size: 14px;
    padding: 11px 16px;
    border-radius: 8px;
}

.btn-primary {
    background-color: #003A70;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #00264d;
}

.btn-outline {
    background-color: #ffffff;
    color: #003A70;
    border: 1px solid #b0bec5;
}

.btn-outline:hover {
    background-color: #eceff1;
    border-color: #003A70;
}

/* Footer */
.footer {
    background-color: #001e3c;
    color: #90caf9;
    text-align: center;
    padding: 24px 0;
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Modal Window Styles */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 20, 40, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 20px;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background: #ffffff;
    border-radius: 20px;
    width: 95%;
    max-width: 960px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 38, 77, 0.25);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-backdrop.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #f0f4f8;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    color: #455a64;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: #e57373;
    color: #ffffff;
}

.modal-header {
    padding: 28px 28px 16px 28px;
    border-bottom: 1px solid #eef2f6;
}

.modal-category {
    font-size: 13px;
    font-weight: 700;
    color: #0288d1;
    text-transform: uppercase;
}

.modal-header h2 {
    font-size: 24px;
    color: #003A70;
    font-weight: 800;
    margin: 4px 0 10px 0;
}

.modal-domain-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #546e7a;
}

.modal-url {
    color: #0056A6;
    font-weight: 700;
    text-decoration: underline;
}

.status-badge {
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Modal Body */
.modal-body {
    padding: 24px 28px;
}

.modal-thumb-container {
    width: 100%;
    max-height: 260px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid #e0e0e0;
}

.modal-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-section {
    margin-bottom: 24px;
}

.modal-section h4 {
    font-size: 16px;
    color: #003A70;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-desc-text {
    font-size: 15px;
    color: #37474f;
    line-height: 1.7;
    background: #f8fafc;
    padding: 14px 16px;
    border-radius: 10px;
    border-left: 4px solid #003A70;
}

.modal-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-feature-list li {
    font-size: 14px;
    color: #455a64;
    padding-left: 24px;
    position: relative;
}

.modal-feature-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #00C853;
    font-size: 13px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background-color: #e3f2fd;
    color: #1565c0;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 16px;
    border: 1px solid #bbdefb;
}

/* Modal Footer */
.modal-footer {
    padding: 20px 28px;
    background-color: #f8fafc;
    border-top: 1px solid #eef2f6;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-close-large {
    background-color: #003A70;
    color: #ffffff;
    padding: 13px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 58, 112, 0.2);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-close-large:hover {
    background-color: #00264d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 58, 112, 0.3);
}

.modal-card-box {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 14px;
    padding: 22px 26px;
    margin-bottom: 22px;
    box-shadow: 0 4px 12px rgba(0, 58, 112, 0.04);
}

.modal-card-box h4 {
    font-size: 17.5px;
    margin-bottom: 14px;
}

.icon-purpose { color: #0056A6; }
.icon-users { color: #D97706; }
.icon-desc { color: #00838F; }
.icon-features { color: #2E7D32; }
.icon-effects { color: #1565C0; }
.icon-outcomes { color: #D84315; }

.target-users-box {
    font-size: 15px;
    color: #92400E;
    line-height: 1.6;
    background: #FEF3C7;
    padding: 12px 18px;
    border-radius: 8px;
    border-left: 4px solid #F59E0B;
    font-weight: 600;
}

.modal-highlight-box {
    font-size: 15.5px;
    color: #00264d;
    line-height: 1.7;
    background: #f0f7ff;
    padding: 16px 20px;
    border-radius: 10px;
    border-left: 5px solid #0056A6;
    font-weight: 600;
}

.modal-desc-text {
    font-size: 15.5px;
    color: #37474f;
    line-height: 1.75;
    background: #f8fafc;
    padding: 16px 20px;
    border-radius: 10px;
    border-left: 5px solid #00838F;
}

.modal-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-feature-list li {
    font-size: 15px;
    color: #2c3e50;
    padding-left: 26px;
    line-height: 1.6;
}

.modal-effect-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-effect-list li {
    font-size: 15px;
    color: #2c3e50;
    padding-left: 26px;
    position: relative;
    line-height: 1.6;
}

.modal-effect-list li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #0056A6;
    font-size: 15px;
}

.modal-outcome-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 14px;
}

.outcome-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px 18px;
    font-size: 14.5px;
    color: #1e293b;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    line-height: 1.55;
}

.outcome-star {
    color: #f59e0b;
    font-size: 15px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
    .modal-content {
        max-height: 95vh;
    }
    .modal-footer {
        flex-direction: column;
    }
    .btn-action-large, .btn-secondary-modal {
        width: 100%;
        text-align: center;
    }
}
