/* AOU Center of Excellence - Custom Styles */
/* Matching AOU Main Website Design */

:root {
    --aou-primary: #002d58;
    --aou-secondary: #0066cc;
    --aou-light: #f5f5f5;
    --aou-dark: #1a1a1a;
    --aou-text: #333333;
    --aou-border: #e0e0e0;
}

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

/* Hero Section - larger */
.hero-section {
    background: linear-gradient(135deg, rgba(0, 45, 88, 0.85) 0%, rgba(0, 102, 204, 0.75) 100%),
                url('images/Gen-AI_0_Header.jpg') center center / cover no-repeat;
    color: #ffffff;
    padding: 140px 0;
    text-align: center;
    min-height: 380px;
    display: flex;
    align-items: center;
}

.hero-section .container {
    flex: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.75rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Section Styling */
.section-padding {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: var(--aou-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--aou-secondary);
    border-radius: 2px;
}

.bg-light {
    background-color: var(--aou-light) !important;
}

/* Info Cards */
.info-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.info-card h3 {
    color: var(--aou-primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card h3 i {
    color: var(--aou-secondary);
    font-size: 1.8rem;
}

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

.info-card ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

/* Arrows removed from About section info-cards per design */
.info-card ul li::before {
    content: none;
}

/* Target Beneficiaries: same width as others, smaller height */
.info-card-compact {
    padding: 20px 30px;
}

.info-card-compact h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.info-card-compact ul {
    margin-bottom: 0;
}

.info-card-compact ul li {
    padding: 2px 0;
    padding-left: 20px;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Welcome Card */
.welcome-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--aou-secondary);
}

.welcome-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--aou-text);
}

/* Executive Committee Cards */
.committee-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

.committee-card-clickable {
    cursor: pointer;
}

.committee-photo {
    margin-bottom: 20px;
}

.committee-photo img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--aou-secondary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.committee-info h4 {
    color: var(--aou-primary);
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.committee-role {
    color: var(--aou-secondary);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1rem;
}

.committee-bio {
    color: var(--aou-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 10px;
    display: none; /* Shown only in popup when card is clicked */
}

/* Faculty Cards */
.faculty-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    cursor: pointer;
}

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

.faculty-icon {
    margin-bottom: 20px;
}

.faculty-icon i {
    font-size: 3rem;
    color: var(--aou-secondary);
}

.faculty-card h4 {
    color: var(--aou-primary);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.faculty-card p {
    color: var(--aou-text);
    margin-bottom: 20px;
}

.faculty-card .btn {
    background-color: var(--aou-primary);
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.faculty-card .btn:hover {
    background-color: var(--aou-secondary);
}

/* Faculty Details */
.faculty-details-section {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.faculty-detail-content h3 {
    color: var(--aou-primary);
    margin-bottom: 20px;
    font-size: 2rem;
}

.faculty-detail-content h4 {
    color: var(--aou-secondary);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.faculty-detail-content ul {
    list-style: none;
    padding-left: 0;
}

.faculty-detail-content ul li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
}

.faculty-detail-content ul li::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--aou-secondary);
}

.faculty-modal-img {
    max-height: 180px;
    object-fit: contain;
}

/* Program Cards */
.program-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.program-icon {
    margin-bottom: 20px;
}

.program-icon i {
    font-size: 2.5rem;
    color: var(--aou-secondary);
}

.program-card h4 {
    color: var(--aou-primary);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.program-card p {
    color: var(--aou-text);
    line-height: 1.7;
}

.program-card .small {
    font-size: 0.9rem;
    color: #666;
    margin-top: 15px;
}

.program-card-img {
    max-height: 160px;
    object-fit: contain;
}

/* Program cards: image + title only, clickable for popup */
.program-card-clickable {
    cursor: pointer;
    text-align: center;
}

.program-card-clickable .program-card-image-wrap {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 8px;
}

.program-card-clickable .program-card-image-wrap img {
    transition: transform 0.3s ease;
}

.program-card-clickable:hover .program-card-image-wrap img {
    transform: scale(1.05);
}

/* Activity Cards */
.activity-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.activity-card h4 {
    color: var(--aou-primary);
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.activity-card h4 i {
    color: var(--aou-secondary);
    font-size: 1.6rem;
}

.activity-list h5 {
    color: var(--aou-secondary);
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.activity-list ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.activity-list ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.activity-list ul li::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--aou-secondary);
}

/* Subsection Title */
.subsection-title {
    color: var(--aou-primary);
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Buttons */
.btn-primary {
    background-color: var(--aou-primary);
    border-color: var(--aou-primary);
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--aou-secondary);
    border-color: var(--aou-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
        min-height: 280px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .committee-photo img {
        width: 150px;
        height: 150px;
    }
    
    .section-padding {
        padding: 40px 0;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0;
        min-height: 240px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .info-card,
    .committee-card,
    .faculty-card,
    .program-card,
    .activity-card {
        margin-bottom: 20px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-card,
.committee-card,
.faculty-card,
.program-card,
.activity-card {
    animation: fadeIn 0.6s ease-out;
}

/* Modal Styling */
.modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background-color: var(--aou-primary);
    color: #ffffff;
    border-radius: 8px 8px 0 0;
    padding: 20px 30px;
}

.modal-header .close {
    color: #ffffff;
    opacity: 0.9;
    font-size: 1.5rem;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-title {
    font-weight: 600;
    font-size: 1.5rem;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    border-top: 1px solid var(--aou-border);
    padding: 15px 30px;
}

.modal-footer .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.modal-footer .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* Committee bio formatted (e.g. Dr. Dalia El Khaled): title + paragraphs */
.committee-bio-text .bio-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--aou-dark);
    margin-bottom: 1rem;
}

.committee-bio-text p {
    margin-bottom: 1rem;
    line-height: 1.7;
    text-align: left;
}

.committee-bio-text p:last-child {
    margin-bottom: 0;
}

.bio-highlight {
    font-style: italic;
    border-bottom: 2px solid #28a745;
    padding-bottom: 1px;
}

/* Contact Section */
.contact-card {
    padding: 40px 30px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--aou-light);
    border: 1px solid var(--aou-border);
    border-radius: 40px;
    padding: 14px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--aou-primary);
    transition: all 0.25s ease;
}

.contact-email:hover {
    background: var(--aou-primary);
    border-color: var(--aou-primary);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 45, 88, 0.18);
}

.contact-email i {
    color: var(--aou-secondary);
    font-size: 1.15rem;
    transition: color 0.25s ease;
}

.contact-email:hover i {
    color: #ffffff;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.contact-actions .btn-outline-primary {
    border-color: var(--aou-primary);
    color: var(--aou-primary);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
}

.contact-actions .btn-outline-primary:hover {
    background-color: var(--aou-primary);
    color: #ffffff;
}

@media (max-width: 575px) {
    .contact-email {
        font-size: 0.95rem;
        padding: 12px 20px;
        word-break: break-all;
    }
}

/* Hero logo */
.hero-logo {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 0 auto 28px;
}

/* AI Core Hub intro with lab image */
.core-hub-intro {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.core-hub-intro-media {
    flex: 0 0 34%;
    max-width: 34%;
    position: relative;
}

.core-hub-intro-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.core-hub-intro-body {
    flex: 1;
    padding: 32px 34px;
}

.core-hub-intro-body p {
    margin-bottom: 0;
}

/* Propose a Workshop banner */
.propose-banner {
    display: flex;
    align-items: stretch;
    background: linear-gradient(135deg, #002d58 0%, #013a72 55%, #0066cc 100%);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 45, 88, 0.25);
    color: #ffffff;
}

.propose-banner-media {
    flex: 0 0 40%;
    max-width: 40%;
    position: relative;
    overflow: hidden;
}

.propose-banner-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.propose-banner:hover .propose-banner-media img {
    transform: scale(1.04);
}

.propose-banner-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 45, 88, 0.25) 0%, rgba(0, 45, 88, 0.85) 100%);
}

.propose-banner-body {
    flex: 1;
    padding: 40px 45px;
}

.propose-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 5px 16px;
    margin-bottom: 16px;
}

.propose-banner-body h3 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.propose-banner-body > p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 22px;
    max-width: 560px;
}

.propose-points {
    list-style: none;
    padding-left: 0;
    margin-bottom: 28px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
}

.propose-points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
}

.propose-points li i {
    color: #7ec2ff;
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
}

.btn-propose {
    background: #ffffff;
    color: var(--aou-primary);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 14px 34px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-propose:hover,
.btn-propose:focus {
    background: #7ec2ff;
    color: var(--aou-primary);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.btn-propose i {
    transition: transform 0.3s ease;
}

.btn-propose:hover i {
    transform: translateX(4px);
}

@media (max-width: 991px) {
    .core-hub-intro,
    .propose-banner {
        flex-direction: column;
    }
    
    .core-hub-intro-media,
    .propose-banner-media {
        flex: 0 0 auto;
        max-width: 100%;
        height: 220px;
    }
    
    .core-hub-intro-media img,
    .propose-banner-media img {
        position: static;
        height: 220px;
    }
    
    .propose-banner-body {
        padding: 32px 26px;
    }
    
    .propose-banner-body h3 {
        font-size: 1.6rem;
    }
    
    .propose-points {
        grid-template-columns: 1fr;
    }
    
    .btn-propose {
        width: 100%;
        justify-content: center;
    }
    
    .hero-logo {
        max-width: 300px;
        margin-bottom: 20px;
    }
}

/* Compact hero for inner pages */
.hero-section-sm {
    padding: 80px 0;
    min-height: 260px;
}

.hero-section-sm .hero-title {
    font-size: 2.75rem;
}

.hero-section-sm .hero-subtitle {
    font-size: 1.35rem;
}

.hero-logo-sm {
    max-width: 320px;
    margin-bottom: 22px;
}

/* Proposal page intro panel */
.proposal-intro {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.proposal-intro-media {
    flex: 0 0 36%;
    max-width: 36%;
    position: relative;
}

.proposal-intro-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.proposal-intro-body {
    flex: 1;
    padding: 32px 36px;
}

.proposal-intro-body h3 {
    color: var(--aou-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.proposal-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 18px;
}

.proposal-step {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--aou-light);
    border-radius: 30px;
    padding: 6px 14px 6px 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--aou-primary);
    white-space: nowrap;
}

.proposal-step span {
    background: var(--aou-secondary);
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .proposal-intro {
        flex-direction: column;
    }
    
    .proposal-intro-media {
        flex: 0 0 auto;
        max-width: 100%;
        height: 200px;
    }
    
    .proposal-intro-media img {
        position: static;
        height: 200px;
    }
    
    .proposal-intro-body {
        padding: 28px 22px;
    }
}

/* Proposal Form */
.proposal-form .form-section {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 25px;
}

.proposal-form .form-section-title {
    color: var(--aou-primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--aou-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.proposal-form .form-section-number {
    background-color: var(--aou-primary);
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.proposal-form label {
    color: var(--aou-primary);
    font-weight: 600;
    margin-bottom: 6px;
}

.proposal-form .form-control {
    border: 1px solid var(--aou-border);
    border-radius: 5px;
    padding: 10px 14px;
    height: auto;
    color: var(--aou-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.proposal-form .form-control:focus {
    border-color: var(--aou-secondary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
    outline: none;
}

.proposal-form textarea.form-control {
    line-height: 1.6;
    resize: vertical;
}

.proposal-form .agenda-input {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.95rem;
}

.required-mark {
    color: #c0392b;
    font-weight: 700;
}

/* Checkbox groups */
.proposal-form .checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
    margin-top: 8px;
}

.proposal-form .check-item,
.check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    color: var(--aou-text);
    margin-bottom: 0;
    cursor: pointer;
    line-height: 1.5;
}

.proposal-form .check-item input[type="checkbox"],
.check-item input[type="checkbox"] {
    margin-top: 4px;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    accent-color: var(--aou-secondary);
    cursor: pointer;
}

.proposal-form .check-item-block,
.check-item-block {
    background: var(--aou-light);
    border-radius: 5px;
    padding: 15px 18px;
}

/* Validation feedback */
.invalid-note {
    display: none;
    color: #c0392b;
    font-size: 0.875rem;
    margin-top: 8px;
}

.group-invalid .invalid-note {
    display: block;
}

.group-invalid > label:first-child,
.group-invalid .check-item span {
    color: #c0392b;
}

.proposal-form.was-validated .form-control:invalid {
    border-color: #c0392b;
    background-color: #fdf6f5;
}

/* Only flag problems: no green ticks on fields that are simply filled in */
.proposal-form.was-validated .form-control:valid,
.proposal-form.was-validated .custom-select:valid {
    border-color: var(--aou-border);
    background-image: none;
    box-shadow: none;
}

.proposal-form.was-validated .form-control:valid:focus {
    border-color: var(--aou-secondary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.proposal-form [data-group] {
    margin-bottom: 28px;
}

/* Submit */
.form-section-submit {
    text-align: center;
}

.btn-submit-approval {
    font-size: 1.1rem;
    padding: 14px 45px;
}

.btn-clear-form {
    color: #6c757d;
    margin-left: 10px;
}

.btn-clear-form:hover {
    color: var(--aou-primary);
}

/* Confirmation panel */
.proposal-confirmation {
    background: #ffffff;
    border-radius: 8px;
    border-top: 4px solid #28a745;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 45px 35px;
    text-align: center;
}

.confirmation-icon i {
    color: #28a745;
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.proposal-confirmation h3 {
    color: var(--aou-primary);
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.proposal-confirmation > p {
    max-width: 620px;
    margin: 0 auto 25px;
}

.confirmation-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
}

.proposal-summary-wrap {
    text-align: left;
    max-width: 720px;
    margin: 0 auto;
}

.proposal-summary-wrap summary {
    color: var(--aou-secondary);
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.proposal-summary {
    background: var(--aou-light);
    border: 1px solid var(--aou-border);
    border-radius: 5px;
    padding: 20px;
    margin-top: 15px;
    max-height: 380px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.9rem;
    color: var(--aou-text);
}

@media (max-width: 768px) {
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .proposal-form .form-section {
        padding: 22px 18px;
    }
    
    .hero-section-sm .hero-title {
        font-size: 1.9rem;
    }
    
    .hero-section-sm .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .btn-submit-approval {
        width: 100%;
    }
    
    .btn-clear-form {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* ==================================================
   Workshops open for enrollment
   ================================================== */
.enroll-block {
    background: #ffffff;
    border-radius: 10px;
    border-top: 4px solid var(--aou-secondary);
    box-shadow: 0 4px 20px rgba(0, 45, 88, 0.1);
    padding: 36px 38px 40px;
}

.enroll-block-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.enroll-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1e8449;
    margin-bottom: 10px;
}

.enroll-live-dot {
    font-size: 0.5rem;
    animation: enrollPulse 2s ease-in-out infinite;
}

@keyframes enrollPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

.enroll-block-head h3 {
    color: var(--aou-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.enroll-block-head p {
    margin-bottom: 0;
    max-width: 520px;
}

.enroll-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    background: var(--aou-light);
    border: 1px solid var(--aou-border);
    color: var(--aou-text);
    border-radius: 30px;
    padding: 7px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    border-color: var(--aou-secondary);
    color: var(--aou-secondary);
}

.filter-chip.is-active {
    background: var(--aou-primary);
    border-color: var(--aou-primary);
    color: #ffffff;
}


/* Upcoming workshop category tiles */
.workshop-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.workshop-category-tile {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--aou-border);
    border-radius: 14px;
    background: #fff;
    color: var(--aou-primary);
    text-align: left;
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.workshop-category-tile:hover,
.workshop-category-tile:focus-visible {
    transform: translateY(-4px);
    border-color: var(--aou-primary);
    box-shadow: 0 12px 28px rgba(0, 45, 88, .13);
    outline: none;
}

.workshop-category-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #edf3f8, #dce7f0);
    color: var(--aou-primary);
    font-size: 3rem;
}

.workshop-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.workshop-category-name {
    display: block;
    padding: 17px 18px 19px;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.4;
}

.workshop-category-detail {
    margin-top: 8px;
}

.workshop-category-detail h3 {
    margin: 20px 0 22px;
    color: var(--aou-primary);
}

.workshop-back-button {
    margin-top: 12px;
}

@media (max-width: 767px) {
    .workshop-category-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .workshop-category-image {
        aspect-ratio: 16 / 7;
    }
}

.workshop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}

.workshop-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--aou-border);
    border-radius: 10px;
    padding: 22px 24px 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.workshop-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 102, 204, 0.4);
    box-shadow: 0 10px 26px rgba(0, 45, 88, 0.12);
}

.workshop-card.is-mine {
    border-color: #28a745;
    background: #f7fdf9;
}

.workshop-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.workshop-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: linear-gradient(140deg, var(--aou-primary) 0%, #0066cc 100%);
    color: #ffffff;
    line-height: 1;
    flex-shrink: 0;
}

.workshop-date .wd-month {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    opacity: 0.85;
}

.workshop-date .wd-day {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2px;
}

.workshop-status {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
}

.status-open {
    background: #e8f6ed;
    color: #1e8449;
}

.status-low {
    background: #fdf3e3;
    color: #b9770e;
}

.status-full {
    background: #f1f2f3;
    color: #6c757d;
}

.workshop-card h4 {
    color: var(--aou-primary);
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
}

.workshop-presenter {
    color: var(--aou-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.workshop-summary {
    font-size: 0.93rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.workshop-meta {
    list-style: none;
    padding-left: 0;
    margin-bottom: 18px;
}

.workshop-meta li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.87rem;
    color: #555;
    padding: 4px 0;
    line-height: 1.5;
}

.workshop-meta li i {
    color: var(--aou-secondary);
    width: 16px;
    margin-top: 3px;
    flex-shrink: 0;
}

.seats {
    margin-top: auto;
    margin-bottom: 18px;
}

.seats-bar {
    height: 6px;
    background: #eceff2;
    border-radius: 3px;
    overflow: hidden;
}

.seats-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #0066cc 0%, #1e8449 100%);
    border-radius: 3px;
    transition: width 0.6s ease;
}

.seats-text {
    font-size: 0.8rem;
    color: #777;
    margin: 7px 0 0;
}

.btn-enroll {
    width: 100%;
    background: var(--aou-primary);
    color: #ffffff;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    padding: 12px 18px;
    transition: all 0.25s ease;
}

.btn-enroll:hover:not(:disabled) {
    background: var(--aou-secondary);
    color: #ffffff;
}

.btn-enroll i {
    transition: transform 0.25s ease;
}

.btn-enroll:hover:not(:disabled) i {
    transform: translateX(4px);
}

.btn-enroll.is-enrolled,
.btn-enroll:disabled {
    background: #e8f6ed;
    color: #1e8449;
    cursor: default;
}

.enroll-empty {
    text-align: center;
    color: #777;
    margin: 30px 0 0;
}

/* Enrollment modal */
.enroll-modal .modal-body {
    padding: 28px 30px 30px;
}

.enroll-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--aou-light);
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 26px;
}

.enroll-summary-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: linear-gradient(140deg, var(--aou-primary) 0%, #0066cc 100%);
    color: #ffffff;
    line-height: 1;
    flex-shrink: 0;
}

.enroll-summary-date span {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}

.enroll-summary-date strong {
    font-size: 1.4rem;
    margin-top: 2px;
}

.enroll-summary h4 {
    color: var(--aou-primary);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.4;
}

.enroll-summary p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0;
}

.enroll-label {
    display: block;
    color: var(--aou-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.student-id-field {
    position: relative;
}

.student-id-field i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--aou-secondary);
    font-size: 1.1rem;
    pointer-events: none;
}

.student-id-field input {
    height: auto;
    padding: 16px 18px 16px 52px;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--aou-primary);
    border: 2px solid var(--aou-border);
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.student-id-field input::placeholder {
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #b9bfc6;
}

.student-id-field input:focus {
    border-color: var(--aou-secondary);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.12);
    outline: none;
}

.student-id-field input.is-wrong {
    border-color: #c0392b;
    background: #fdf6f5;
}

.enroll-error {
    color: #c0392b;
    font-size: 0.88rem;
    margin-top: 10px;
}

.btn-enroll-confirm {
    width: 100%;
    background: var(--aou-primary);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    margin-top: 22px;
    transition: all 0.25s ease;
}

.btn-enroll-confirm:hover:not(:disabled),
.btn-enroll-confirm:focus {
    background: var(--aou-secondary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 45, 88, 0.2);
}

.btn-enroll-confirm i {
    transition: transform 0.25s ease;
}

.btn-enroll-confirm:hover:not(:disabled) i {
    transform: translateX(4px);
}

.enroll-privacy {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    margin: 14px 0 0;
}

/* Confirmation step */
.enroll-done {
    text-align: center;
    padding: 8px 0 4px;
}

.enroll-tick {
    width: 66px;
    height: 66px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #e8f6ed;
    color: #1e8449;
    font-size: 1.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: tickPop 0.4s ease-out;
}

@keyframes tickPop {
    from { transform: scale(0.6); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.enroll-done h4 {
    color: var(--aou-primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.enroll-done > p {
    color: var(--aou-text);
    line-height: 1.7;
    margin-bottom: 22px;
}

.enroll-ref {
    background: var(--aou-light);
    border: 1px dashed var(--aou-border);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 22px;
}

.enroll-ref span {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 5px;
}

.enroll-ref strong {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--aou-primary);
}

.enroll-done-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .enroll-block {
        padding: 26px 20px 30px;
    }
    
    .enroll-block-head h3 {
        font-size: 1.6rem;
    }
    
    .workshop-grid {
        grid-template-columns: 1fr;
    }
    
    .enroll-modal .modal-body {
        padding: 22px 20px 26px;
    }
    
    .student-id-field input {
        font-size: 1.15rem;
    }
}

/* On-page subnav for inner pages */
.page-subnav {
    background: #ffffff;
    border-bottom: 1px solid var(--aou-border);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.page-subnav .container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.page-subnav a {
    color: var(--aou-primary);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 30px;
    transition: all 0.2s ease;
}

.page-subnav a:hover {
    background: var(--aou-light);
    color: var(--aou-secondary);
    text-decoration: none;
}

@media (max-width: 767px) {
    .page-subnav .container {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .page-subnav a {
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 7px 12px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--aou-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--aou-secondary);
}

/* Attendance-mode filters shown inside each workshop category */
.workshop-mode-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 28px;
}
.workshop-mode-filter {
    appearance: none;
    border: 1px solid #e3e8f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #263449;
    padding: 13px 25px;
    min-width: 105px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.workshop-mode-filter:hover,
.workshop-mode-filter:focus-visible {
    border-color: var(--aou-primary, #174ea6);
    outline: none;
    box-shadow: 0 0 0 3px rgba(23, 78, 166, .12);
}
.workshop-mode-filter.active {
    color: #fff;
    background: var(--aou-primary, #174ea6);
    border-color: var(--aou-primary, #174ea6);
}
@media (max-width: 575px) {
    .workshop-mode-filters { gap: 8px; }
    .workshop-mode-filter { padding: 10px 16px; min-width: auto; }
}
