/* UTCSSA Member Website Styles */
@import url(./departments.css);
@import url(./home.css);
@import url(./events.css);
@import url(./jobs.css);


:root {
    --primary-color: #dc3545;  /* Bootstrap danger / CSSA red */
    --primary-dark: #bb2d3b;
    --primary-light: #dc354530;
    --text-primary: #333333;
    --text-secondary: #6c757d;
    --text-light: #d5d5d5;
    --bg-light: #f8f9fa;
    --bg-light-hover: #d5d5d5;
    --shadow-dark: #00000016;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: var(--text-primary);
    line-height: 1.6;
}

main {
    min-height: calc(100vh - 13rem);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.text-normal {
    color: var(--text-primary);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 4px var(--shadow-dark);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s ease;
    color: var(--text-light);
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.5);
    border-radius: 4px;
}

@media (max-width: 845px) {
    .nav-link {
        font-size: 12px;
    }
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 6px var(--shadow-dark);
    border-radius: 8px;
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 4px;
    padding: 0.5rem 1rem;
}

.dropdown-item:hover {
    background-color: var(--bg-light-hover);
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 768px) {
    .user-menu {
        margin-top: 1rem;
        margin-left: 1rem;
    }
}

@media (max-width: 1095px) {
    .user-menu span {
        font-size: 12px;
    }
}
@media (max-width: 1025px) {
    .user-menu span {
        display: none;
    }
}

.profile-link {
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-link:hover {
    color: var(--bg-light);
}

.btn-logout {
    background-color: transparent;
    color: var(--text-light);
    padding: 0.375rem 1rem;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    color: var(--bg-light);
}

/* Form Elements */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group label {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

/* Form Card Styles */
.card {
    border-radius: 10px;
}
.card-header {
    background-color: var(--primary-light) !important; 
}

/* Text danger color class to ensure it's always red */
.text-danger {
    color: var(--primary-color) !important;
}

/* Vertical red border for content sections */
.border-danger {
    border-color: var(--primary-color) !important;
}

.border-start.border-danger {
    border-left: 3px solid var(--primary-color) !important;
    padding-left: 15px;
}

.card-body {
    padding: 20px;
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--bg-light);
}

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

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-dark);
}

/* Cards */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px var(--shadow-dark);
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

/* Alert styles for consistency */
.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-danger.bg-danger.bg-opacity-10 {
    background-color: rgba(220, 53, 69, 0.1) !important;
    border-color: var(--primary-color);
}

/* Container */
.container {
    max-width: 1200px;
    padding: 0 1rem;
}

/* Responsive Images */
.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Custom Class Improvements */
.center {
    max-width: 100%;
    width: auto;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .center {
        width: 510px;
    }
}

/* Utilities */
.section-padding {
    padding: 4rem 0;
}

.text-muted {
    color: var(--text-secondary) !important;
}

/* Description containers for cards - used in event and job listings */
.description-container {
    max-height: 45px;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.card:hover .description-container {
    max-height: 500px;
    transition: max-height 0.6s ease-in;
}

.description-fade {
    position: relative;
}

.description-fade::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.card:hover .description-fade::after {
    opacity: 0;
}

/* Footer */
footer {
    background-color: var(--bg-light);
    padding: 2rem 0;
}

/* forms */
.form-check-input:checked {
    border: var(--primary-color) !important;
    background-color: var(--primary-color) !important;
}

/* alert */
body>.alert {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 2rem;
    z-index: 11;
}