:root {
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --text-main: #2d3748;
    --text-muted: #64748b;
    --gradient-green: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(251, 207, 232, 0.35) 100%);
    --gradient-orange: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(251, 146, 60, 0.35) 100%);
    --gradient-blue: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(147, 197, 253, 0.3) 100%);
    --pastel-green-icon: #f43f5e;
    --pastel-green-bg: #fff1f2;
    --pastel-orange-icon: #ea580c;
    --pastel-orange-bg: #fff7ed;
    --pastel-blue-icon: #60a5fa;
    --pastel-blue-bg: #eff6ff;
    --text-highlight-orange: #fb923c;
    --bg-gradient: linear-gradient(135deg, #e8ebf0 0%, #c8d0d8 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { height: 100%; }

body {
    font-family: 'Noto Sans Thai', sans-serif;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 10px 20px 20px;
    background: var(--bg-gradient) no-repeat center center fixed;
    background-size: cover;
    overflow-x: hidden;
}

body::before, body::after {
    content: ''; position: fixed; width: 600px; height: 600px; border-radius: 50%;
    filter: blur(90px); z-index: -1; opacity: 0.5;
}
body::before { background: #ffffff; top: -150px; left: -150px; opacity: 0.4; }
body::after { background: #dce4f0; bottom: -150px; right: -150px; opacity: 0.6; }

.main-container {
    width: 100%; max-width: 1400px;
    padding: 10px 60px 40px;
    min-height: 85vh;
    position: relative; z-index: 1; display: flex; flex-direction: column;
}

nav {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 100px;
    box-shadow: var(--glass-shadow);
    position: relative; z-index: 100;
}

.logo img { height: 36px; width: auto; }

.nav-menu-group { display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
    text-decoration: none; color: var(--text-muted);
    padding: 8px 18px; border-radius: 40px; font-size: 0.9rem; font-weight: 500; transition: 0.3s;
}
.nav-links a:hover { color: var(--text-main); background: rgba(0,0,0,0.03); }
.nav-links a.active { background-color: rgba(255,255,255,0.8); color: var(--text-main); font-weight: 600; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

.btn-glass {
    background: #2d3748; color: #fff;
    padding: 6px 6px 6px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem; font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    white-space: nowrap;
    display: inline-flex; align-items: center; gap: 12px;
    transition: transform 0.2s ease;
}
.btn-glass:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,0,0,0.15); }

.admin-badge {
    background: #241f1f; color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem; font-weight: 400; text-transform: lowercase;
    padding: 2px 10px; border-radius: 20px; line-height: 1;
}

.hamburger { display: none; font-size: 1.8rem; color: var(--text-main); cursor: pointer; padding: 5px; }

.hero-section {
    display: grid; grid-template-columns: 1.5fr 1fr;
    align-items: center; margin-bottom: 50px; padding: 0 10px; gap: 40px;
}

.title-group { display: flex; flex-direction: column; gap: 8px; }

.hero-title {
    font-size: 3rem; font-weight: 700; line-height: 1.2;
    color: #1a202c; letter-spacing: -0.5px;
}

.text-orange-soft { color: var(--text-highlight-orange); display: inline-block; }
.subtitle-wrapper { margin-top: 5px; }
.hero-subtitle-en { font-size: 0.95rem; font-weight: 400; color: #64748b; white-space: nowrap; }

.right-group { display: flex; justify-content: flex-end; text-align: right; position: relative; }

.right-group::before {
    content: ''; position: absolute; top: 60%; right: -200px;
    transform: translateY(-50%) rotate(-2deg);
    width: 1500px; height: 120px;
    background-image: url("data:image/svg+xml,%3Csvg width='300' height='80' viewBox='0 0 300 80' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 50C50 20 150 70 295 30' stroke='%23fbbf24' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-size: 100% 100%;
    z-index: 0; opacity: 0.6; pointer-events: none;
}

.text-container-plain {
    position: relative; z-index: 1; display: flex; align-items: flex-start;
    gap: 15px; background: transparent;
}

.big-asterisk {
    font-size: 4rem; color: #f97316; line-height: 0.8; font-weight: bold;
    text-shadow: 2px 2px 4px rgba(249, 115, 22, 0.2); padding-top: 5px;
}

.text-content { text-align: left; }
.org-name { font-size: 0.95rem; font-weight: 500; color: #2d3748; margin-bottom: 4px; }
.org-slogan { font-size: 0.85rem; font-weight: 300; color: #4a5568; }

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px; justify-content: center; width: 100%;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 40px; padding: 30px;
    aspect-ratio: 1 / 1; min-height: 280px;
    position: relative; overflow: hidden;
    transition: all 0.4s ease; cursor: pointer;
    display: flex; flex-direction: column; justify-content: flex-start;
    box-shadow: var(--glass-shadow);
}
.card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.9); box-shadow: 0 15px 35px rgba(0,0,0,0.08); }

@keyframes iconPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.35); }
    50%      { box-shadow: 0 0 0 8px rgba(234, 179, 8, 0); }
}

.card-green { background: var(--gradient-green); }
.card-orange { background: var(--gradient-orange); }
.card-blue { background: var(--gradient-blue); }
.card-blue .icon-box { animation: iconPulse 2.5s ease-in-out infinite; }

.card-header { display: flex; justify-content: space-between; align-items: flex-start; }

.icon-box {
    width: 60px; height: 60px; font-size: 1.8rem;
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); transition: 0.3s;
}

.card-green .icon-box { color: var(--pastel-green-icon); background-color: var(--pastel-green-bg); }
.card-orange .icon-box { color: var(--pastel-orange-icon); background-color: var(--pastel-orange-bg); }
.card-blue .icon-box { color: var(--pastel-blue-icon); background-color: var(--pastel-blue-bg); }

.arrow-icon-plain { font-size: 1.5rem; color: #9ca3af; transition: 0.3s; background: transparent; }
.card:hover .arrow-icon-plain { transform: translateX(5px); color: var(--text-main); }

.card-content { position: relative; z-index: 10; margin-top: 20px; margin-bottom: 0; }
.card-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 12px; color: var(--text-main); }
.card-sub { font-size: 1.05rem; color: var(--text-muted); font-weight: 400; max-width: 85%; }

.card-img { position: absolute; bottom: -40px; right: -40px; width: 200px; height: 200px; object-fit: cover; border-radius: 50%; border: 8px solid rgba(255,255,255,0.5); transition: 0.6s; z-index: 1; }
.card:hover .card-img { transform: scale(1.1) rotate(5deg); border-color: rgba(255,255,255,0.9); }

.img-1 { background: url('/images/placeholders/content-placeholder.svg') center/cover; }
.img-2 { background: url('/images/alumni/JobsStatus.jpg') center/cover; }
.img-3 { background: url('/images/alumni/PSUPassportAlumniCard.jpg') center/cover; }

/* ─── Featured Alumni Card ─── */
.card-featured {
    padding: 0;
}
.card-featured .card-photo {
    position: absolute;
    inset: 0;
    background: url('/econAlumni/images/din.jpg') center top / cover no-repeat;
    border-radius: inherit;
    z-index: 0;
}
.card-featured .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(0,0,0,0.50) 0%,
        rgba(0,0,0,0.15) 45%,
        rgba(0,0,0,0.00) 100%);
    border-radius: inherit;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px 18px;
    z-index: 10;
    transition: background 0.5s ease;
}
.card-featured:hover .card-overlay {
    background: linear-gradient(to top,
        rgba(0,0,0,0.08) 0%,
        rgba(0,0,0,0.00) 40%,
        rgba(0,0,0,0.00) 100%);
}
.featured-body {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.featured-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.25;
}
.featured-position {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.60);
    margin: 0;
    line-height: 1.35;
}
.featured-quote {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    margin: 5px 0 0;
}

.main-footer { margin-top: 40px; text-align: center; color: #718096; font-size: 0.85rem; font-weight: 400; }
.footer-credit { font-weight: 200; margin-top: 5px; font-size: 0.8rem; color: #94a3b8; }

@media (max-width: 1366px) {
    .main-container { padding: 10px 30px; }
    .hero-section { gap: 20px; }
    .hero-title { font-size: 2.5rem; }
    .cards-container { grid-template-columns: repeat(3, 1fr); gap: 15px; }
    .card { padding: 20px; min-height: 240px; border-radius: 30px; }
    .card-title { font-size: 1.35rem; margin-bottom: 8px; }
    .card-sub { font-size: 0.9rem; max-width: 90%; }
    .icon-box { width: 50px; height: 50px; font-size: 1.5rem; }
    .card-img { width: 140px; height: 140px; right: -30px; bottom: -30px; }
    .hamburger { display: block; }
    .nav-menu-group {
        position: absolute; top: 70px; left: 0; width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column; align-items: center; gap: 15px; padding: 30px;
        border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        border: 1px solid rgba(255,255,255,0.8);
        opacity: 0; transform: translateY(-20px); pointer-events: none;
        transition: all 0.3s ease;
    }
    .nav-menu-group.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
    .nav-links { flex-direction: column; width: 100%; text-align: center; gap: 10px; }
    .nav-links a { display: block; width: 100%; }
    .btn-glass { width: 100%; justify-content: center; }
}

@media (max-width: 767px) {
    .cards-container { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto; gap: 20px; }
    .card { aspect-ratio: auto; min-height: 300px; }
    .card-img { width: 200px; height: 200px; right: -40px; bottom: -40px; }
    .card-title { font-size: 1.75rem; }
    .hero-section { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .right-group { justify-content: center; }
    .text-container-plain { text-align: left; }
    .hero-title { font-size: 2.2rem; }
    .subtitle-wrapper { justify-content: center; }
    .hero-subtitle-en { white-space: normal; }
    .right-group::before { width: 100%; right: 0; }
    .main-container { padding: 10px 20px; }
}
