@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700&display=swap');
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* European Society of Medicine Member Portal Styles */
/* Colors: #12649E (blue), #E0841F (orange) */

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

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* Dashboard and other pages with different background */
.main-content {
    background-color: #f5f5f5;
    min-height: 100vh;
}

/* Navigation */
.main-nav {
    background-color: #12649E;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

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

.nav-logo-img {
    height: 40px;
    width: auto;
}

.nav-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border-radius: 4px;
    z-index: 1;
}

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

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

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

/* Header logo styling */
.header-logo {
    height: 68px; /* 1.7x larger than 40px */
    width: auto;
    margin-right: 1rem;
    background: white;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-section {
    display: flex;
    align-items: center;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 120px);
    padding: 1rem 0;
}

/* Login page specific - remove padding from main-content */
body.login-page .main-content {
    padding: 0 !important;
}

/* Hide footer on login page */
body.login-page .main-footer {
    display: none !important;
}

/* Help Text */
.help-text {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.help-text p {
    margin: 0.5rem 0;
    color: #666;
    font-size: 0.9rem;
}

.help-text a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.help-text a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #4E81EE;
}

.login-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 450px;
}

.logo-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

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

.login-box h1 {
    color: #12649E;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.login-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.tab-button {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.tab-button.active {
    color: #12649E;
    border-bottom-color: #12649E;
}

.tab-button:hover {
    color: #12649E;
}

.form-container {
    margin-top: 1rem;
}

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

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

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #12649E;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.45rem 1.2rem !important;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background-color: #4E81EE;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background-color: #3d6bd7;
}

.btn-secondary {
    background-color: #E0841F;
    color: white;
}

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

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Dashboard */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.dashboard-header {
    background: linear-gradient(135deg, #12649E 0%, #1a7bb8 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 10px;
    margin-bottom: 2.25rem;
    text-align: center;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.dashboard-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
}

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

.dashboard-card.admin-card {
    border-left: 4px solid #E0841F;
    background: linear-gradient(135deg, #fff 0%, #fef8f4 100%);
}

.dashboard-card.admin-card .card-icon {
    background: linear-gradient(135deg, #E0841F 0%, #f29d42 100%);
}

.dashboard-card.admin-card:hover {
    box-shadow: 0 8px 25px rgba(224, 132, 31, 0.2);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #12649E, #1a7bb8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.card-title {
    color: #12649E;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.card-description {
    color: #666;
    line-height: 1.6;
}

/* Newest Members Section */
.newest-members-section {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}

.newest-members-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #12649E 0%, #E0841F 100%);
    border-radius: 10px 10px 0 0;
}

.newest-members-section h2,
.newest-members-section h3 {
    color: #12649E;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.member-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e9ecef;
}

.member-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.member-photo {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.member-card h4 {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    margin-top: 0;
}

.member-card p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

/* Responsive design for newest members section */
@media (max-width: 1024px) {
    .members-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .newest-members-section {
        padding: 1.5rem;
    }
    
    .newest-members-section h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .member-card {
        padding: 1.25rem;
    }
    
    .member-photo {
        width: 91px;
        height: 91px;
    }
    
    .member-card h4 {
        font-size: 0.95rem;
    }
    
    .member-card p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .newest-members-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .newest-members-section h3 {
        font-size: 1.3rem;
    }
    
    .member-card {
        padding: 1rem;
    }
    
    .member-photo {
        width: 78px;
        height: 78px;
        margin-bottom: 0.75rem;
    }
    
    .member-card h4 {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .member-card p {
        font-size: 0.75rem;
    }
}

.member-card p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

/* Messages */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    border: 1px solid #f5c6cb;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    border: 1px solid #c3e6cb;
}

.info-message {
    background-color: #d1ecf1;
    color: #0c5460;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    border: 1px solid #bee5eb;
}

.validation-message {
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    font-weight: 500;
}

/* 2-Step Registration Styles */
.step-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #12649E;
}

.step-header h3 {
    color: #12649E;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.step-header p {
    color: #666;
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-actions .btn {
    flex: 1;
}

#verify-membership-btn {
    position: relative;
    min-height: 45px;
}

#verify-loading {
    display: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Footer */
.main-footer {
    background-color: #ffffff;
    color: #333;
    padding: 2.5rem 0 1.5rem 0;
    margin-top: auto;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 300px 1fr 1fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 2rem;
}

.footer-logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo {
    max-height: 180px;
    width: auto;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: #333;
    text-transform: none;
    text-align: left !important;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.7rem;
    text-align: left !important;
}

.footer-column a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #4E81EE;
}

.footer-column li:not(:has(a)) {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-join-btn {
    margin-top: 1.2rem;
    padding: 12px 24px !important;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    width: auto !important;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #12649E !important;
    color: white !important;
    border: 2px solid #12649E;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-join-btn:hover {
    background: #0e5082 !important;
    border-color: #0e5082;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(18, 100, 158, 0.3);
}

.footer-mission {
    text-align: center;
    margin: 1.5rem 0 1rem 0;
    padding: 1.2rem 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.footer-mission p {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    margin: 0;
    font-style: italic;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
}

.footer-bottom p {
    color: #888;
    font-size: 0.85rem;
    margin: 0;
}

/* Responsive footer */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-logo-section {
        text-align: center;
    }
    
    .footer-column {
        text-align: left;
    }
    
    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        padding: 0 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-logo {
        max-height: 160px;
    }
    
    .footer-column {
        text-align: left;
    }
    
    .main-footer {
        padding: 3rem 0 1.5rem 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .login-box {
        margin: 1rem;
        padding: 2rem;
    }
    
    .dashboard-container {
        padding: 0 1rem;
    }
    
    .dashboard-header {
        padding: 2rem 1rem;
    }
    
    .dashboard-header h1 {
        font-size: 2rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 1.5rem;
    }
    
    .dashboard-header h1 {
        font-size: 1.8rem;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
}

/* Dashboard Specific Styles */
.main-header {
    background: linear-gradient(135deg, #12649E 0%, #1a7bb8 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

header.main-header .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    box-sizing: border-box;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.logo {
    height: 70px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
}

.site-title h1 {
    font-size: 1.5rem;
    margin: 0;
    color: white;
}

.site-title p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
    color: white;
}

.user-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

.welcome-text {
    font-weight: 500;
    font-size: 1rem;
}

.membership-number {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Quick Stats */
.quick-stats {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.quick-stats h2 {
    color: #12649E;
    margin-bottom: 1.5rem;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border-left: 4px solid #E0841F;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #12649E;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Profile Page Styles */
.profile-header {
    background: linear-gradient(135deg, #12649E 0%, #1a7bb8 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    text-align: center;
}

.profile-header h1 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.profile-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.profile-status {
    background: #e8f4fd;
    border: 1px solid #12649E;
    border-radius: 8px;
    padding: 1rem;
    margin: 0.5rem 0 2rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.profile-status i {
    color: #12649E;
}

.profile-status span {
    color: #000000;
}

.profile-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h2 {
    color: #12649E;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #E0841F;
    display: inline-block;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.current-photo {
    margin-top: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

.current-photo p {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.current-photo img {
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

/* Profile Form Textarea Improvements */
.profile-form textarea,
.form-group textarea {
    width: 100% !important;
    min-height: 150px !important;
    resize: vertical;
    box-sizing: border-box;
    padding: 12px !important;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.3s;
}

.profile-form textarea:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #12649E;
}

.profile-form textarea#biography,
.form-group textarea#biography {
    min-height: 200px !important;
}

.profile-form textarea#research_interests,
.form-group textarea#research_interests {
    min-height: 160px !important;
}

.profile-form textarea#key_publications,
.form-group textarea#key_publications {
    min-height: 180px !important;
}

/* Ensure form inputs are also full width */
.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form input[type="url"] {
    width: 100%;
    box-sizing: border-box;
    color: #721c24;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .profile-status {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .profile-header {
        padding: 2rem 1rem;
    }
    
    .profile-header h1 {
        font-size: 2rem;
    }
}

/* Recent Announcements */
.recent-announcements {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.recent-announcements h2 {
    color: #12649E;
    margin-bottom: 1.5rem;
}

.announcement-preview {
    margin-bottom: 2rem;
}

.announcement-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.announcement-item:hover {
    background-color: #f8f9fa;
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-date {
    text-align: center;
    background: linear-gradient(135deg, #12649E, #1a7bb8);
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    min-width: 60px;
    height: fit-content;
}

.date-day {
    font-size: 1.2rem;
    font-weight: bold;
}

.date-month {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.announcement-content h4 {
    color: #12649E;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.announcement-content p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.btn-outline {
    background: transparent;
    border: 2px solid #12649E;
    color: #12649E;
}

.btn-outline:hover {
    background: #4E81EE;
    color: white;
}

/* Dashboard Card Animations */
.dashboard-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

/* Dashboard Responsive Updates */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .logo-section {
        flex-direction: column;
        align-items: center;
    }
    
    .user-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .user-info {
        align-items: center;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .announcement-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .announcement-date {
        align-self: flex-start;
        width: fit-content;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header h1 {
        font-size: 2rem;
    }
    
    .dashboard-header p {
        font-size: 1rem;
    }
}

/* Footer Styles */
.main-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    margin-top: 3rem;
    padding: 2rem 0;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

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

.footer-logo p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Header Updates - Remove logo section styling */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Removed conflicting site-title styles - using the white color styles from lines 708-719 instead */

/* =================================================================
   STANDARDIZED STYLING SYSTEM - Phase 1: Consistent Page Headers
   ================================================================= */

/* Universal Page Header - Replaces all inconsistent header styles */
.page-header {
    background: linear-gradient(135deg, #12649E 0%, #1a7bb8 100%);
    color: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 8px 30px rgba(18, 100, 158, 0.3);
}

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.page-header .btn {
    margin-top: 1.5rem;
    display: inline-block;
    width: auto;
    min-width: 180px;
}

/* Status Cards - Standardized for all pages */
.status-card {
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-card.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 5px solid #28a745;
}

.status-card.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 5px solid #dc3545;
}

.status-card.info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left: 5px solid #17a2b8;
}

.status-card i {
    font-size: 1.5rem;
}

/* Standardized Content Containers */
.content-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
}

/* Add padding to content inside content-section for sections without their own padding */
.content-section:not(.submit-step) > * {
    padding: 2rem;
}

/* Reset padding for specific nested elements that shouldn't have it */
.content-section:not(.submit-step) > .section-header {
    padding: 2rem;
    padding-bottom: 1rem;
}

.content-section:not(.submit-step) > .section-header + * {
    padding-top: 1rem;
}

.section-header {
    padding: 2rem;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-header h2 {
    color: #12649E;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.section-header p {
    color: #6c757d;
    margin: 0;
    font-size: 1rem;
}

.section-content {
    padding: 2rem;
}

/* Standardized Form Sections */
.form-section-std {
    padding: 2.5rem;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.form-section-std:last-of-type {
    border-bottom: none;
}

.form-section-std::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #12649E 0%, #E0841F 100%);
}

.form-section-std h3 {
    color: #12649E;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Responsive adjustments for standardized components */
@media (max-width: 768px) {
    .page-header {
        padding: 2rem 1.5rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .section-header,
    .section-content,
    .form-section-std {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 1.5rem 1rem;
    }
    
    .page-header h1 {
        font-size: 1.6rem;
    }
    
    .section-header,
    .section-content,
    .form-section-std {
        padding: 1rem;
    }
}

/* =================================================================
   SUBMIT PAGE SPECIFIC STYLES
   ================================================================= */

/* Submit workflow cards - extends content-section with centered content */
.content-section.submit-step {
    padding: 3rem;
    text-align: center;
    position: relative;
}

.content-section.submit-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #12649E 0%, #E0841F 100%);
}

/* Submit workflow elements */
.submit-question {
    font-size: 1.4rem;
    color: #12649E;
    margin-bottom: 2rem;
    font-weight: 600;
    line-height: 1.5;
}

.submit-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.submit-btn {
    background: #4E81EE;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    min-width: 200px;
    display: inline-block;
    text-align: center;
}

.submit-btn:hover {
    background: #3d6bd7;
    transform: translateY(-2px);
}

/* =================================================================
   PRESENTATION MANAGEMENT SPECIFIC STYLES
   ================================================================= */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    border-left: 4px solid #28a745;
    color: #155724;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4E81EE, #6B73FF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-content h3 {
    margin: 0;
    font-size: 2rem;
    color: #2c3e50;
}

.stat-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

/* Fix button layout to keep icon and text side by side */
.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.empty-state i {
    font-size: 5rem;
    color: #dee2e6;
    margin-bottom: 1.5rem;
    display: block;
}

.empty-state h3 {
    color: #495057;
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.presentations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.presentation-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.presentation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-color: #ddd;
}

.card-header {
    background: #f8f9fa;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.file-type-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-type-pdf { background: #dc3545; color: white; }
.file-type-ppt, .file-type-pptx { background: #d04427; color: white; }
.file-type-mp4 { background: #6f42c1; color: white; }
.file-type-jpg, .file-type-jpeg, .file-type-png, .file-type-gif { background: #28a745; color: white; }

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-published { background: #d4edda; color: #155724; }
.status-unpublished { background: #f8d7da; color: #721c24; }

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.card-content h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.abstract {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.presentation-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: #666;
}

.presentation-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.card-actions {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.dropdown {
    position: relative;
    margin-left: auto;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    min-width: 120px;
    z-index: 1000;
    display: none;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    text-align: left;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: #f8f9fa;
}

.dropdown-item.text-danger {
    color: #dc3545;
}

@media (max-width: 768px) {
    .actions-bar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .presentations-grid {
        grid-template-columns: 1fr;
    }
    
    .presentation-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* =================================================================
   UPLOAD PRESENTATION SPECIFIC STYLES
   ================================================================= */

.upload-form {
    margin-bottom: 2rem;
}

.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #666;
}

.file-upload-area {
    border: 3px dashed #bdc3c7;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.file-upload-area:hover {
    border-color: #3498db;
    background: #e3f2fd;
}

.file-upload-area.drag-over {
    border-color: #2ecc71;
    background: #e8f5e8;
    transform: scale(1.02);
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder i {
    font-size: 3rem;
    color: #bdc3c7;
    margin-bottom: 1rem;
}

.upload-placeholder p {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.upload-placeholder small {
    display: block;
    color: #666;
    margin-bottom: 0.25rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #e8f5e8;
    border: 2px solid #2ecc71;
    border-radius: 8px;
    margin-top: 1rem;
}

.file-info i {
    font-size: 1.5rem;
    color: #2ecc71;
}

.btn-remove {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-weight: bold;
    margin-left: auto;
}

.btn-remove:hover {
    background: #c0392b;
}

.upload-progress {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e1e8ed;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: #2c3e50;
}

.guidelines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.guideline-card {
    background: #fff;
    border-radius: 6px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.guideline-card:hover {
    transform: translateY(-1px);
}

.guideline-card .guideline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #e3f2fd;
    border-radius: 50%;
    margin-right: 0.75rem;
    margin-bottom: 0.5rem;
    float: left;
}

.guideline-card .guideline-icon i {
    font-size: 1.125rem;
    color: #3498db;
}

.guideline-card h4 {
    color: #2c3e50;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.guideline-card p {
    color: #666;
    line-height: 1.4;
    margin: 0;
    font-size: 0.875rem;
}

.upload-tips {
    background: #fff;
    border-radius: 6px;
    padding: 1rem;
    border-left: 3px solid #2ecc71;
}

.upload-tips h4 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.upload-tips h4 i {
    color: #2ecc71;
}

.tips-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

.tip-item i {
    color: #2ecc71;
    margin-top: 0.1rem;
    flex-shrink: 0;
    font-size: 0.875rem;
}

.tip-item span {
    color: #555;
    line-height: 1.3;
    font-size: 0.875rem;
}

/* Upload page responsive styles */
@media (max-width: 768px) {
    .file-upload-area {
        padding: 2rem 1rem;
    }
}

.submit-btn.secondary {
    background: #E0841F;
}

.submit-btn.secondary:hover {
    background: #c6711a;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: #12649E;
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

.progress-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.progress-step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
}

.progress-step.active {
    background: #4E81EE;
    color: white;
}

.progress-step.completed {
    background: #28a745;
    color: white;
}

/* Responsive adjustments for submit page */
@media (max-width: 768px) {
    .submit-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .submit-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .content-section.submit-step {
        padding: 2rem;
    }
}

/* ========================================
   FUNDING PAGE STYLES
   ======================================== */

/* Main funding page container */
.funding-page {
    padding: 1rem 0;
}

/* Region selector styling */
.region-selector {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    position: relative;
}

.region-selector::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #12649E 0%, #E0841F 100%);
    border-radius: 12px 12px 0 0;
}

.region-selector h2 {
    color: #12649E;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.region-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.region-btn {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    color: #495057;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    font-size: 1rem;
}

.region-btn:hover {
    border-color: #12649E;
    background: #e7f1ff;
    color: #12649E;
}

.region-btn.active {
    background: #12649E;
    border-color: #12649E;
    color: white;
}

.region-btn i {
    margin-right: 0.5rem;
}

/* =================================================================
   JOB BOARD SPECIFIC STYLES
   ================================================================= */

/* Jobs page uses standardized page-header - no additional styling needed */

/* Jobs actions section with gradient bar */
.jobs-actions {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
}

.jobs-actions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #12649E 0%, #E0841F 100%);
    border-radius: 10px 10px 0 0;
}

.filters-section {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filter-group label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.filter-group select,
.filter-group input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
}

/* Jobs grid */
.jobs-grid {
    display: grid;
    gap: 2rem;
}

.job-post {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.job-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.job-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.job-title {
    color: #12649E;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.company-name {
    color: #E0841F;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.job-content {
    padding: 0 1.5rem 1.5rem;
}

.job-description {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: #f0f7ff;
    color: #12649E;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tag.salary {
    background: #e8f5e8;
    color: #2d5a2d;
}

.tag.remote {
    background: #fff0e6;
    color: #cc6600;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.job-author {
    font-size: 0.9rem;
    color: #666;
}

.job-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.job-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.application-count {
    background: #12649E;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.empty-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty-state .btn i {
    font-size: 1rem;
    color: inherit;
    margin-bottom: 0;
}

/* Cross-promotion section with gradient bar */
.cross-promotion {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
    position: relative;
}

.cross-promotion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #12649E 0%, #E0841F 100%);
    border-radius: 10px 10px 0 0;
}

.cross-promotion h3 {
    color: #12649E;
    margin-bottom: 1rem;
}

.cross-promotion p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.cross-promotion .btn-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cross-promotion .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
}

@media (max-width: 768px) {
    .jobs-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .job-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .job-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .cross-promotion .btn-group {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Funding opportunities grid */
.funding-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.funding-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #12649E;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.funding-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.funding-card h3 {
    color: #12649E;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.funding-card .organization {
    color: #E0841F;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.country-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    flex-shrink: 0;
}

.funding-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.meta-item {
    text-align: center;
}

.meta-item .label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.meta-item .value {
    font-weight: 600;
    color: #495057;
}

.meta-item .value.amount {
    color: #28a745;
    font-size: 1.1rem;
}

.meta-item .value.deadline {
    color: #dc3545;
}

.funding-description {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.funding-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.funding-tags .tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.funding-actions {
    display: flex;
    gap: 1rem;
}

.funding-actions .btn-primary {
    background: #12649E;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
    text-align: center;
}

.funding-actions .btn-primary:hover {
    background: #0d4973;
    color: white;
}

/* States for funding opportunities */
.no-opportunities {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.no-opportunities i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.loading-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.stats-bar {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stats-bar .count {
    font-size: 1.5rem;
    font-weight: 700;
    color: #12649E;
}

.stats-bar .label {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Responsive design for funding page */
@media (max-width: 1024px) {
    .funding-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .funding-grid {
        grid-template-columns: 1fr;
    }
    
    .region-buttons {
        grid-template-columns: 1fr;
    }
    
    .funding-meta {
        grid-template-columns: 1fr;
    }
}

/* =================================================================
   SUPPORT PAGE SPECIFIC STYLES
   ================================================================= */

.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.faq-section,
.contact-section {
    position: relative;
}

.faq-section::before,
.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #12649E 0%, #E0841F 100%);
    border-radius: 15px 15px 0 0;
}

.section-header {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #12649E;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

/* Override the general content-section padding for FAQ items */
.faq-section > * {
    padding: 1rem !important;
}

.faq-item {
    margin-bottom: 0.25rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.25rem;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-question {
    font-weight: 600;
    color: #444;
    margin-bottom: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #E0841F;
}

.faq-answer {
    color: #666;
    line-height: 1.6;
    margin-left: 1.5rem;
}

.support-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.support-form .form-group {
    display: flex;
    flex-direction: column;
}

.support-form .form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.support-form .form-group input,
.support-form .form-group select,
.support-form .form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.support-form .form-group input:focus,
.support-form .form-group select:focus,
.support-form .form-group textarea:focus {
    outline: none;
    border-color: #E0841F;
    box-shadow: 0 0 0 3px rgba(224, 132, 31, 0.1);
}

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

.emergency-contact {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    text-align: center;
}

.emergency-contact h3 {
    color: #856404;
    margin-bottom: 0.5rem;
}

.emergency-contact p {
    color: #856404;
    margin: 0;
}

/* Responsive design for support page */
@media (max-width: 768px) {
    .support-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .content-section {
        padding: 1.5rem;
    }
    
    .section-header {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .support-grid {
        gap: 1rem;
    }
    
    .content-section {
        padding: 1rem;
    }
    
    .section-header {
        font-size: 1.2rem;
    }
    
    .faq-answer {
        margin-left: 1rem;
    }
}

/* =================================================================
   PRESENTATION VIEW PAGE STYLES
   ================================================================= */

.presentation-header {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}

.presentation-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #12649E 0%, #E0841F 100%);
    border-radius: 10px 10px 0 0;
}

.presentation-abstract {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}

.presentation-abstract::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #12649E 0%, #E0841F 100%);
    border-radius: 10px 10px 0 0;
}

.presentation-abstract h3 {
    color: #12649E;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.presentation-abstract p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* =================================================================
   PASSWORD RESET MODAL STYLES
   ================================================================= */

/* Password Reset Link */
.password-reset-link {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

.password-reset-link a {
    color: #4E81EE;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.password-reset-link a:hover {
    color: #3d6bd7;
    text-decoration: underline;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 0;
    border: none;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

.modal-body {
    padding: 2rem;
}

.reset-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
}

/* Job Posting Form Specific Styles */
.form-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    position: relative;
}

.form-card::before,
.mentor-application::before,
.membership-info-section::before,
.membership-actions-section::before,
.error-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #12649E 0%, #E0841F 100%);
    border-radius: 10px 10px 0 0;
}

.button-group {
    display: flex;
    gap: 1rem;
}

.salary-input-group {
    display: flex;
    gap: 0.5rem;
}

.currency-select {
    width: 140px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
}

.salary-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.info-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.info-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.guidelines-list {
    line-height: 1.6;
    color: #666;
    padding-left: 1.5rem;
}

.guidelines-list li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .button-group {
        flex-direction: column;
    }
    
    .salary-input-group {
        flex-direction: column;
    }
    
    .currency-select {
        width: 100%;
    }
}

/* Mentorship Page Styles */
.mentorship-header {
    background: linear-gradient(135deg, #12649E 0%, #1a7bb8 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
}

.mentorship-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.mentorship-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.mentors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.mentor-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

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

.mentor-content {
    flex-grow: 1;
    text-align: center;
}

.mentor-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #12649E 0%, #1a7bb8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 4px solid #f8f9fa;
}

.mentor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.mentor-photo i {
    font-size: 3rem;
    color: white;
}

.mentor-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.mentor-title {
    font-size: 1rem;
    color: #12649E;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.mentor-specialization {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
}

.mentor-bio {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.contact-mentor-btn {
    background: linear-gradient(135deg, #12649E 0%, #1a7bb8 100%);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    justify-content: center;
}

.contact-mentor-btn:hover {
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.program-info {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.program-info h2 {
    color: #12649E;
    margin-bottom: 1rem;
}

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

.program-info li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.program-info li:last-child {
    border-bottom: none;
}

.program-info li i {
    color: #12649E;
    width: 20px;
}

.mentor-application {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
}

.mentor-application h2 {
    color: #12649E;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #12649E;
}

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

.form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-primary {
    background: #12649E;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #0e5282;
    transform: translateY(-2px);
}

.status-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.status-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-message.pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.application-status {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.mentor-form-toggle {
    background: #12649E;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto 1rem;
}

.mentor-form-toggle:hover {
    background: #0e5282;
    transform: translateY(-2px);
}

.mentor-form-toggle i {
    transition: transform 0.3s;
}

.mentor-form-toggle.expanded i {
    transform: rotate(180deg);
}

.mentor-form-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mentor-form-content.expanded {
    max-height: 1000px;
}

@media (max-width: 768px) {
    .mentors-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .mentorship-header {
        padding: 2rem 1rem;
    }
    
    .mentorship-header h1 {
        font-size: 2rem;
    }
    
    .mentor-card {
        padding: 1.5rem;
    }
}

/* =================================================================
   PASSWORD STRENGTH INDICATOR - Registration Form
   ================================================================= */

.password-requirements {
    margin-top: 0.75rem;
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.85rem;
}

.password-requirements .requirements-title {
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem 0;
}

.password-requirements li {
    padding: 0.2rem 0;
    color: #999;
    transition: color 0.2s ease;
    font-size: 0.82rem;
}

.password-requirements li .req-icon {
    display: inline-block;
    width: 1.2em;
    text-align: center;
    margin-right: 0.35rem;
    font-weight: 700;
}

.password-requirements li.unmet {
    color: #dc3545;
}

.password-requirements li.unmet .req-icon {
    color: #dc3545;
}

.password-requirements li.met {
    color: #28a745;
}

.password-requirements li.met .req-icon {
    color: #28a745;
}

/* Strength bar */
.password-strength-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.35rem;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-fill.strength-weak   { background-color: #dc3545; }
.strength-fill.strength-fair    { background-color: #fd7e14; }
.strength-fill.strength-good    { background-color: #ffc107; }
.strength-fill.strength-strong  { background-color: #20c997; }
.strength-fill.strength-excellent { background-color: #28a745; }

.strength-text {
    font-size: 0.78rem;
    font-weight: 600;
    margin: 0;
    text-align: right;
}

.strength-text.strength-weak    { color: #dc3545; }
.strength-text.strength-fair    { color: #fd7e14; }
.strength-text.strength-good    { color: #ffc107; }
.strength-text.strength-strong  { color: #20c997; }
.strength-text.strength-excellent { color: #28a745; }

/* Confirm password match messages */
.confirm-match-msg {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.82rem;
    font-weight: 500;
}

.confirm-match-msg.match-success {
    color: #28a745;
}

.confirm-match-msg.match-error {
    color: #dc3545;
}

/* Shake animation for failed submit */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.password-requirements.shake {
    animation: shake 0.5s ease-in-out;
}