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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background-color: white;
}

.header-logo {
    height: 60px;
    width: auto;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #7a003c;
    letter-spacing: 0.5px;
    margin: 0;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-top: 3px solid #fdb913;
    padding: 0;
    flex-wrap: wrap;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-link:hover {
    background-color: #e8e8e8;
    border-bottom-color: #7a003c;
}

.nav-icon {
    font-size: 1.1rem;
}

main {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    flex: 1;
    gap: 2rem;
    flex-wrap: wrap;
}

.section-box {
    width: 100%;
    max-width: 500px;
    background-color: white;
    border: 4px solid #333;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-box:first-of-type {
    border-color: #7c0041;
}

.section-box:last-of-type {
    border-color: #023c5b;
}

.section-logo {
    display: block;
    margin: 0 auto 0.5rem auto;
    max-width: 80px;
    height: auto;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 3px solid #ddd;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.action-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.5s ease;
}

.action-button:hover::before {
    left: 100%;
}

.action-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    border-color: #999;
}

.action-button:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.icon {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #ddd;
    padding: 0.4rem;
    border-radius: 8px;
    min-width: 32px;
    height: 32px;
}

.button-text {
    flex: 1;
}

/* First section buttons (Internal Staff) */
.section-box:first-of-type .action-button:nth-child(1) {
    border-color: #7c0041;
    background: linear-gradient(135deg, #fff5f8 0%, #ffffff 100%);
}

.section-box:first-of-type .action-button:nth-child(1):hover {
    border-color: #7c0041;
    box-shadow: 0 6px 16px rgba(124, 0, 65, 0.25);
}

.section-box:first-of-type .action-button:nth-child(1) .icon {
    background: white;
    border-color: #7c0041;
    color: #7c0041;
}

.section-box:first-of-type .action-button:nth-child(2) {
    border-color: #7c0041;
    background: linear-gradient(135deg, #fff5f8 0%, #ffffff 100%);
}

.section-box:first-of-type .action-button:nth-child(2):hover {
    border-color: #7c0041;
    box-shadow: 0 6px 16px rgba(124, 0, 65, 0.25);
}

.section-box:first-of-type .action-button:nth-child(2) .icon {
    background: white;
    border-color: #7c0041;
    color: #7c0041;
    font-weight: bold;
}

.section-box:first-of-type .action-button:nth-child(3) {
    border-color: #7c0041;
    background: linear-gradient(135deg, #fff5f8 0%, #ffffff 100%);
}

.section-box:first-of-type .action-button:nth-child(3):hover {
    border-color: #7c0041;
    box-shadow: 0 6px 16px rgba(124, 0, 65, 0.25);
}

.section-box:first-of-type .action-button:nth-child(3) .icon {
    background: white;
    border-color: #7c0041;
    color: #7c0041;
}

/* Second section buttons (Students & Public) */
.section-box:last-of-type .action-button:nth-child(1) {
    background: linear-gradient(135deg, #f0f8fc 0%, #ffffff 100%);
}

.section-box:last-of-type .action-button:nth-child(1):hover {
    box-shadow: 0 6px 16px rgba(2, 60, 91, 0.25);
}

.section-box:last-of-type .action-button:nth-child(1) .hotspot-icon {
    background: white;
    border: 2px solid #023c5b;
    padding: 0.4rem;
    border-radius: 8px;
}

.hotspot-button {
    border-color: #fdba31;
    background: linear-gradient(135deg, #fffbf0 0%, #ffffff 100%);
}

.hotspot-button:hover {
    border-color: #fdba31;
    box-shadow: 0 6px 16px rgba(253, 186, 49, 0.35);
}

.hotspot-button .icon {
    background: white;
    border-color: #fdba31;
    color: #fdba31;
}

.hotspot-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Footer Styles */
footer {
    background-color: #7a003c;
    color: white;
    padding: 2.5rem 2rem;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
    flex-wrap: wrap;
}

.footer-section {
    min-width: 200px;
}

.footer-section:first-child {
    flex: 0 0 auto;
}

.footer-section:nth-child(2) {
    flex: 0 0 auto;
}

.footer-contact {
    max-width: 200px;
    min-width: 200px;
}

.footer-contact p {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    margin: 0.3rem 0 !important;
}

.footer-contact a {
    display: inline !important;
    margin: 0 !important;
    font-size: 0.9rem !important;
}

.footer-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.footer-section p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section a {
    display: block;
    color: white;
    text-decoration: none;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: transparent;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 2px solid white;
    flex-shrink: 0;
    padding: 0;
    position: relative;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.social-link svg {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
    main {
        flex-direction: column;
        align-items: center;
    }

    .header-top {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    h1 {
        font-size: 1.25rem;
        text-align: center;
    }

    .header-logo {
        height: 50px;
    }

    .header-nav {
        flex-direction: column;
        width: 100%;
    }

    .nav-link {
        width: 100%;
        justify-content: center;
        padding: 0.875rem;
        border-bottom: 1px solid #ddd;
    }

    .button-container {
        max-width: 100%;
    }

    .action-button {
        font-size: 0.9rem;
        padding: 0.875rem 1.25rem;
    }

    .section-box {
        max-width: 100%;
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .section-logo {
        max-width: 100px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        width: 100%;
    }

    .social-links {
        justify-content: center;
    }
}
