:root {
    --primary: #f4f7f6;
    --primary-light: #ffffff;
    --accent: #2563eb;
    --accent-gold: #d97706;
    --text-main: #334155;
    --text-heading: #0f172a;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: var(--accent-gold);
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-heading);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-heading);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        background-color: var(--primary-light);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 70%;
        gap: 2rem;
        transition: right 0.4s ease;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-links.nav-active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    /* Burger Animation */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .toggle .line2 {
        opacity: 0;
    }
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Header / Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Keeping the image but making the overlay lighter */
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4)), url('images/bg1.jpg') center/cover no-repeat fixed;
}

/* Fix background image bug on mobile (especially iOS) */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        background-position: center;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(255,255,255,0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeIn 1s ease-out;
}

.logo {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.logo-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
    color: #fff;
    font-weight: 800;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(217, 119, 6, 0.2);
    border: 4px solid #fff;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    background: linear-gradient(to right, var(--text-heading), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--accent-gold);
    margin-bottom: 40px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cta-button {
    display: inline-block;
    padding: 16px 36px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.cta-button:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

/* System Links Section */
.system-links {
    padding: 80px 20px 40px;
    background-color: var(--primary);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.system-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--primary-light);
    padding: 30px;
    border-radius: 16px;
    text-decoration: none;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.system-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -10px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.2);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.icon-wrapper svg {
    width: 32px;
    height: 32px;
}

.icon-wrapper.blue {
    background: rgba(37, 99, 235, 0.1);
    fill: var(--accent);
}

.icon-wrapper.orange {
    background: rgba(217, 119, 6, 0.1);
    fill: var(--accent-gold);
}

.system-card h3 {
    color: var(--text-heading);
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.system-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* News / Activities Section */
.news-section {
    padding: 80px 20px;
    background-color: #f8fafc;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
    }
    
    .news-card.featured {
        grid-column: span 2;
        grid-row: span 2;
        display: flex;
        flex-direction: column;
    }
    
    .news-card.featured .news-img-wrapper {
        flex-grow: 1;
        min-height: 300px;
    }
}

.news-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.news-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img-wrapper img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-category.solid {
    position: relative;
    display: inline-block;
    top: 0;
    left: 0;
    margin-bottom: 15px;
    background: var(--accent-gold);
}

.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.news-card h3 {
    color: var(--text-heading);
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-card.featured h3 {
    font-size: 1.75rem;
}

.news-card p {
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    align-self: flex-start;
}

.read-more:hover {
    color: #1d4ed8;
    transform: translateX(5px);
}

.news-card.text-only {
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

.news-card.text-only .news-content {
    padding: 30px;
}

.news-card.text-only h3 {
    color: #f8fafc;
}

.news-card.text-only p, .news-card.text-only .news-meta {
    color: #94a3b8;
}

.news-card.text-only .read-more {
    color: var(--accent-gold);
}

.news-card.text-only .read-more:hover {
    color: #f59e0b;
}

/* Main Section */
.main-section {
    padding: 60px 20px 100px;
    position: relative;
}

.main-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-heading);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Controls (Search & Filter) */
.controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
}

@media (min-width: 768px) {
    .controls {
        flex-direction: row;
        justify-content: space-between;
    }
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 14px 20px 14px 45px;
    background: var(--primary-light);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.1);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: var(--text-muted);
    transition: var(--transition);
}

.search-box input:focus + .search-icon {
    fill: var(--accent);
}

.filter-box {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: var(--primary-light);
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover {
    color: var(--text-heading);
    border-color: rgba(0,0,0,0.2);
}

.filter-btn.active {
    background: var(--accent-gold);
    color: #fff;
    border-color: var(--accent-gold);
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.2);
}

/* Glass Panel & Table */
.glass-panel {
    background: var(--primary-light);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 0; /* Remove padding to make table flush */
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap;
}

th, td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--glass-border);
}

th {
    color: var(--text-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #f8fafc;
}

td {
    color: var(--text-main);
    font-size: 1rem;
    transition: var(--transition);
}

tbody tr {
    transition: var(--transition);
}

tbody tr:hover {
    background: #f1f5f9;
}

tbody tr:hover td {
    color: var(--text-heading);
}

/* Role Badges */
.role-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.role-gk {
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.role-gs {
    background: rgba(217, 119, 6, 0.1);
    color: var(--accent-gold);
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.role-hdkt {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.no-results {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-style: italic;
}

.hidden {
    display: none;
}

/* Footer */
.site-footer {
    background: #ffffff;
    color: var(--text-main);
    padding: 60px 20px 20px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    width: 60px;
    height: 60px;
    font-size: 18px;
    margin-bottom: 16px;
    box-shadow: none;
    border: 3px solid #f59e0b;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
}

.footer-brand h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-heading);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links h4, .footer-contact h4 {
    color: var(--text-heading);
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact p {
    color: var(--text-main);
    margin-bottom: 10px;
}

.footer-contact strong {
    color: var(--text-heading);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--primary);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
