/* ====================================
   KEMAHASISWAAN PORTAL - MAIN STYLES
   ==================================== */

:root {
    --primary-color: #1e40af;
    --secondary-color: #0369a1;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --dark: #1e293b;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    --border-color: #cbd5e1;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
}

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

/* ====================================
   NAVBAR / HEADER STYLES
   ==================================== */

.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.navbar-brand {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    text-decoration: none;
    color: var(--primary-color);
}

.navbar-brand .logo {
    font-size: 20px;
    font-weight: 700;
}

.navbar-brand .subtitle {
    font-size: 12px;
    color: var(--secondary-color);
    font-weight: 600;
}

.navbar-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

/* ====================================
   HERO SECTION
   ==================================== */

.hero {
    position: relative;
    padding: 100px 20px;
    overflow: hidden;
    text-align: center;
    color: var(--white);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    z-index: -1;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ====================================
   BUTTON STYLES
   ==================================== */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* ====================================
   FEATURES SECTION
   ==================================== */

.features {
    padding: 80px 20px;
    background-color: var(--light-bg);
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: var(--dark);
}

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

.feature-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* ====================================
   NEWS SECTION
   ==================================== */

.news {
    padding: 80px 20px;
}

.news h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: var(--dark);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-date {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.news-card h3 {
    font-size: 20px;
    margin: 20px 20px 10px;
    color: var(--dark);
}

.news-card p {
    color: var(--gray);
    padding: 0 20px;
    line-height: 1.6;
}

.news-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin: 15px 20px;
    transition: all 0.3s ease;
}

.news-link:hover {
    color: var(--secondary-color);
}

/* ====================================
   STATS SECTION
   ==================================== */

.stats {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 80px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

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

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* ====================================
   FOOTER
   ==================================== */

.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 20px 20px;
    margin-top: 80px;
}

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

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.footer-section p {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 14px;
}

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

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

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 14px;
}

/* ====================================
   BREADCRUMB
   ==================================== */

.breadcrumb {
    padding: 20px 0;
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--light-gray);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--gray);
}

/* ====================================
   CONTENT SECTION
   ==================================== */

.content-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section h1 {
    font-size: 42px;
    margin-bottom: 15px;
    color: var(--dark);
}

.intro-text {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 40px;
    line-height: 1.8;
}

.content-section h2 {
    font-size: 32px;
    margin: 40px 0 30px;
    color: var(--dark);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
}

/* ====================================
   ABOUT SECTION
   ==================================== */

.about-content {
    margin-bottom: 60px;
}

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

.about-card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.about-card h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 15px;
}

.about-card ul {
    list-style: none;
    padding-left: 0;
}

.about-card ul li {
    padding: 8px 0;
    color: var(--gray);
    position: relative;
    padding-left: 25px;
}

.about-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* ====================================
   ORG STRUCTURE
   ==================================== */

.org-structure {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.org-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.org-box h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* ====================================
   TABLES
   ==================================== */

.services-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.services-table thead {
    background-color: var(--primary-color);
    color: var(--white);
}

.services-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.services-table td {
    padding: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.services-table tbody tr:nth-child(even) {
    background-color: var(--light-bg);
}

.services-table tbody tr:hover {
    background-color: #eff6ff;
}

/* ====================================
   SCHOLARSHIP CARDS
   ==================================== */

.scholarship-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.scholarship-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 5px solid var(--primary-color);
}

.scholarship-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.scholarship-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.scholarship-header h3 {
    color: var(--primary-color);
    font-size: 22px;
}

.badge {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.scholarship-benefits {
    list-style: none;
    margin: 20px 0;
}

.scholarship-benefits li {
    padding: 8px 0;
    color: var(--gray);
    border-bottom: 1px solid var(--light-gray);
}

.scholarship-benefits li:last-child {
    border-bottom: none;
}

.scholarship-amount {
    background-color: var(--light-bg);
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 15px 0;
}

.scholarship-requirement {
    font-size: 13px;
    color: var(--gray);
    padding: 10px 0;
    border-top: 1px solid var(--light-gray);
    margin-top: 15px;
}

/* ====================================
   PROCESS STEPS
   ==================================== */

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.step {
    text-align: center;
    padding: 30px;
    background-color: var(--light-bg);
    border-radius: 8px;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 15px;
}

.step h4 {
    color: var(--dark);
    font-size: 18px;
    margin-bottom: 10px;
}

.step p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
}

/* ====================================
   FAQ SECTION
   ==================================== */

.faq-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.faq-item {
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.faq-item h4 {
    color: var(--dark);
    font-size: 18px;
    margin-bottom: 12px;
    cursor: pointer;
}

.faq-item p {
    color: var(--gray);
    line-height: 1.6;
}

/* ====================================
   ACHIEVEMENTS SECTION
   ==================================== */

.filter-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--light-gray);
    background-color: var(--white);
    color: var(--dark);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.achievement-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.achievement-image {
    font-size: 48px;
    flex-shrink: 0;
}

.achievement-info h3 {
    color: var(--dark);
    font-size: 18px;
    margin-bottom: 8px;
}

.achievement-year {
    background-color: var(--primary-color);
    color: var(--white);
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.achievement-description {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.achievement-detail {
    font-size: 12px;
    color: var(--secondary-color);
    font-weight: 500;
}

/* ====================================
   ACHIEVEMENT STATS
   ==================================== */

.achievement-stats {
    background-color: var(--light-bg);
    padding: 60px 20px;
    border-radius: 10px;
    margin-bottom: 60px;
}

.achievement-stats h2 {
    text-align: center;
    border: none;
    margin-bottom: 40px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-box {
    text-align: center;
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-box p {
    color: var(--gray);
    font-size: 16px;
}

/* ====================================
   CATEGORY SECTION
   ==================================== */

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.category-item {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    border-top: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-item h3 {
    color: var(--dark);
    font-size: 18px;
    margin-bottom: 12px;
}

.category-item p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 14px;
}

/* ====================================
   CONTACT SECTION
   ==================================== */

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.contact-info h2 {
    border: none;
    margin-top: 0;
}

.info-item {
    margin-bottom: 30px;
}

.info-item h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 12px;
}

.info-item p {
    color: var(--gray);
    line-height: 1.8;
}

.social-media {
    margin-top: 40px;
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* ====================================
   CONTACT FORM
   ==================================== */

.contact-form-wrapper h2 {
    border: none;
    margin-top: 0;
}

.contact-form {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group.checkbox input {
    width: auto;
    margin: 0;
}

.form-group.checkbox label {
    margin: 0;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    display: none;
}

.form-message.success {
    background-color: #d1fae5;
    color: #065f46;
    display: block;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    display: block;
}

/* ====================================
   DEPARTMENTS SECTION
   ==================================== */

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.department-card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.department-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.department-card h3 {
    color: var(--dark);
    font-size: 18px;
    margin-bottom: 12px;
}

.department-card p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 14px;
}

.department-contact {
    margin-top: 12px;
    font-weight: 500;
    color: var(--primary-color);
}

/* ====================================
   MAP SECTION
   ==================================== */

.map-section {
    margin-bottom: 60px;
}

.map-placeholder {
    background-color: var(--light-bg);
    padding: 60px 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px dashed var(--border-color);
}

.map-placeholder p {
    color: var(--gray);
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }

    .navbar-nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        font-size: 14px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .content-section h1 {
        font-size: 32px;
    }

    .content-section h2 {
        font-size: 24px;
    }

    .features h2,
    .news h2 {
        font-size: 28px;
    }

    .hero-bg {
        width: 250px;
        height: 250px;
    }

    .filter-buttons {
        gap: 5px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 13px;
    }

    table {
        font-size: 14px;
    }

    table th,
    table td {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .navbar-nav {
        gap: 10px;
    }

    .nav-link {
        font-size: 12px;
    }

    .hero {
        padding: 60px 15px;
        min-height: 350px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 14px;
    }

    .content-section h1 {
        font-size: 24px;
    }

    .content-section h2 {
        font-size: 20px;
    }

    .features h2,
    .news h2 {
        font-size: 22px;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .achievement-card {
        flex-direction: column;
        text-align: center;
    }

    .achievement-image {
        margin: 0 auto;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

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

/* ====================================
   ANIMATION & TRANSITIONS
   ==================================== */

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    animation: slideUp 0.5s ease-out;
}

/* ====================================
   UTILITY CLASSES
   ==================================== */

.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 50px;
}

.mb-5 {
    margin-bottom: 50px;
}

.hidden {
    display: none;
}

/* Print Styles */
@media print {
    .navbar,
    .footer {
        display: none;
    }

    body {
        padding: 0;
    }
}
