/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease-out;
}

.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #a777e3;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navigation */
header {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 1rem;
}

nav ul li {
    margin: 0 1rem;
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 1;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    min-height: calc(100vh - 300px);
}

.page {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.page.active {
    display: block;
}

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

h1, h2, h3 {
    color: #4a4a4a;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin: 2rem 0;
    color: #6e8efb;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

/* Home Page */
#home {
    text-align: center;
    padding: 2rem 0;
}

#home p {
    font-size: 1.2rem;
    color: #666;
}

/* Rules Page */
.rules-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.rules-container ol,
.rules-container ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.rules-container li {
    margin-bottom: 0.5rem;
}

/* Information Page */
.info-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.info-card ul,
.info-card ol {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.info-card li {
    margin-bottom: 0.5rem;
}

/* Links Page */
.links-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.link-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding: 1.5rem;
}

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

.link-card h3 {
    color: #6e8efb;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Tickets Page */
.tickets-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.ticket-category {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ticket-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ticket-category h3 {
    color: #6e8efb;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.ticket-response-info {
    grid-column: 1 / -1;
    background: #f8f9ff;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #6e8efb;
}

.ticket-response-info h3 {
    color: #6e8efb;
    margin-bottom: 1rem;
}

.ticket-response-info ol {
    margin-left: 1.5rem;
}

.ticket-response-info li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Applications Page */
.applications-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.application-info {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.application-info h3 {
    color: #6e8efb;
    margin-bottom: 1rem;
}

.application-info h4 {
    margin: 1.5rem 0 0.5rem;
    color: #444;
    font-size: 1.1rem;
}

.application-info ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.application-info li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.position-selector {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.position-btn {
    background: #f0f4ff;
    border: 2px solid #d6e0ff;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #4a6bdf;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.position-btn:hover {
    background: #e1e9ff;
    border-color: #b3c3ff;
}

.position-btn.active {
    background: #6e8efb;
    border-color: #6e8efb;
    color: white;
}

.application-forms {
    position: relative;
    min-height: 100%;
}

.application-form {
    display: none;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.application-form.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.application-form h3 {
    color: #6e8efb;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.application-form h4 {
    color: #555;
    margin: 2rem 0 1rem;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #444;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input[type="text"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6e8efb;
    box-shadow: 0 0 0 2px rgba(110, 142, 251, 0.2);
}

.submit-btn {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 2rem auto 0;
    width: 100%;
    max-width: 300px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(110, 142, 251, 0.3);
}

/* TOS Pages */
.tos-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tos-content {
    max-width: 800px;
    margin: 0 auto;
}

.tos-content h3 {
    color: #6e8efb;
    margin-top: 2rem;
}

.tos-content p,
.tos-content ul {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.tos-content ul {
    margin-left: 2rem;
}

.note {
    font-style: italic;
    color: #666;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.note a {
    color: #6e8efb;
    text-decoration: none;
}

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

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
}

footer p {
    margin: 0.5rem 0;
    color: #ccc;
    font-size: 0.9rem;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
/* Responsive adjustments for Applications */
@media (max-width: 1024px) {
    .applications-container {
        grid-template-columns: 1fr;
    }
    
    .application-info {
        position: static;
        margin-bottom: 2rem;
    }
    
    .position-selector {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .position-btn {
        flex: 1;
        min-width: 150px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .dropdown:hover .dropdown-content {
        display: block;
    }
    
    .info-container,
    .links-container {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
}
