/* UNCR University Website Styles */
/* Color Scheme: #009edb (blue), #000000 (black), #ffffff (white), #555555 (gray) */

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

:root {
    --primary-blue: #009edb;
    --black: #000000;
    --white: #ffffff;
    --gray: #555555;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-size: 1em;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
}

/* Typography - Based on CRN website style */
h1 {
    font-size: 2.074em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: var(--primary-blue);
}

h2 {
    font-size: 1.728em;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.6em;
    color: var(--primary-blue);
}

h3 {
    font-size: 1.44em;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.7em;
    color: var(--gray);
}

h4 {
    font-size: 1.2em;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.8em;
}

h5 {
    font-size: 1em;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 0.8em;
}

h6 {
    font-size: 0.833em;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 0.8em;
}

p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 1em;
    color: var(--gray);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--black);
}

/* Header and Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 1.5em;
    margin: 0;
    color: var(--primary-blue);
}

.logo-text p {
    font-size: 0.85em;
    margin: 0;
    color: var(--gray);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

nav ul li a {
    font-weight: 500;
    font-size: 1em;
    color: var(--black);
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-blue);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: var(--black);
}

/* Slideshow */
.slideshow-container {
    position: relative;
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.slide {
    display: none;
    width: 100%;
}

.slide.active {
    display: block;
    animation: fadeIn 1s;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slideshow-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--white);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slide-dot.active {
    background-color: var(--primary-blue);
}

.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

.slide-nav:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.slide-nav.prev {
    left: 20px;
}

.slide-nav.next {
    right: 20px;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.section {
    margin-bottom: 4rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-blue);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(0, 158, 219, 0.1) 0%, rgba(0, 158, 219, 0.05) 100%);
    margin-bottom: 3rem;
}

.hero h1 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2em;
    color: var(--gray);
    max-width: 800px;
    margin: 0 auto;
}

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

.card {
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.btn:hover {
    background-color: #0084b8;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--gray);
}

.btn-secondary:hover {
    background-color: #444444;
}

/* Forms */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--black);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

/* Lists */
ul.custom-list {
    list-style: none;
    padding-left: 0;
}

ul.custom-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--gray);
}

ul.custom-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

table th {
    background-color: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
}

table tr:hover {
    background-color: rgba(0, 158, 219, 0.05);
}

/* Footer */
footer {
    background-color: var(--black);
    color: var(--white);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: block;
    }

    nav {
        display: none;
        width: 100%;
    }

    nav.active {
        display: block;
    }

    h1 {
        font-size: 1.728em;
    }

    h2 {
        font-size: 1.44em;
    }

    h3 {
        font-size: 1.2em;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .slide-nav {
        padding: 10px 15px;
        font-size: 1em;
    }

    main {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .slideshow-container,
    .btn {
        display: none;
    }

    body {
        font-size: 12pt;
    }
}

