/* Global Styles */
:root {
    --primary-color: #8b0000;
    --secondary-color: #333;
    --text-color: #333;
    --light-color: #fff;
    --accent-color: #f0f0f0;
    --border-color: #ddd;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --font-main: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-main);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--light-color);
    font-size: 16px;
}

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

a:hover {
    color: #6b0000;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; text-align: center; margin-top: 3rem; margin-bottom: 2rem; color: var(--primary-color); }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }

p {
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

section {
    padding: 3rem 5%;
}

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

.btn {
    cursor: pointer;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 4px;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    background-color: #6b0000;
}

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

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

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--light-color);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.logo-container img {
    height: 50px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
}

.get-involved-btn {
    margin-left: 0.5rem;
}

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

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

.user-menu {
    position: relative;
}

.user-menu-toggle {
    cursor: pointer;
    padding: 0.5rem 1rem;
    background-color: var(--accent-color);
    border-radius: 4px;
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 4px;
    min-width: 200px;
    margin-top: 0.5rem;
}

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

.user-menu-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
}

.user-menu-dropdown a:hover {
    background-color: var(--accent-color);
}

/* Hero Section */
.hero {
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    text-align: center;
    padding: 3rem 5%;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    color: var(--light-color);
    text-transform: uppercase;
}

.hero .subheadline {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--light-color);
    font-weight: 400;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-preview {
    background-color: var(--warning-color);
    color: var(--secondary-color);
}

.badge-members {
    background-color: var(--info-color);
    color: white;
}

.badge-annual {
    background-color: var(--primary-color);
    color: white;
}

/* Login Page */
.login-container {
    max-width: 500px;
    margin: 4rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
}

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

/* Join/Pricing Page */
.pricing-section {
    background-color: var(--light-color);
    padding: 4rem 5%;
}

.currency-switcher {
    text-align: center;
    margin-bottom: 2rem;
}

.currency-switcher select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

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

.pricing-card {
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.pricing-card.featured {
    border-color: var(--primary-color);
    position: relative;
}

.pricing-card.featured::before {
    content: 'POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

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

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 1rem 0;
}

.pricing-card .price-currency {
    font-size: 1.2rem;
    vertical-align: super;
}

.pricing-card .price-period {
    font-size: 1rem;
    color: #666;
}

.pricing-card .features {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
    flex-grow: 1;
    min-height: 180px;
}

.pricing-card .features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--accent-color);
}

.pricing-card .features li:before {
    content: '✓ ';
    color: var(--success-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

.pricing-toggle {
    text-align: center;
    margin-bottom: 2rem;
}

.toggle-switch {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.toggle-switch input[type="checkbox"] {
    width: 50px;
    height: 25px;
}

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

.event-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.event-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-card-content {
    padding: 1.5rem;
}

.event-card-date {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.event-card-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.event-card-location {
    color: #666;
    margin-bottom: 1rem;
}

.event-card-pricing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.price-original {
    text-decoration: line-through;
    color: #999;
}

.price-member {
    font-weight: 700;
    color: var(--success-color);
    font-size: 1.2rem;
}

/* Paper Cards */
.papers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

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

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

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

.paper-authors {
    font-style: italic;
    color: #666;
    margin-bottom: 0.5rem;
}

.paper-date {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 1rem;
}

.paper-abstract {
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

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

.dashboard-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
}

.dashboard-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.membership-status {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--accent-color);
}

.status-label {
    font-weight: 600;
}

.tier-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Student Verification Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal.show {
    display: block;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-close {
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.modal-close:hover {
    color: var(--secondary-color);
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

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

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

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Loading Spinner */
.spinner {
    border: 4px solid var(--accent-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

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

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: #ccc;
    padding: 2.5rem 5% 1.5rem;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    margin: 0 0.75rem;
    color: #ccc;
}

.footer-links a:hover {
    color: var(--light-color);
}

.social-links a {
    margin: 0 0.75rem;
    font-size: 1.3rem;
    color: #ccc;
}

.social-links a:hover {
    color: var(--light-color);
}

.copyright {
    padding-top: 1.5rem;
    border-top: 1px solid #444;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    .hero h1 { font-size: 2.2rem; }
    
    /* Mobile navigation - hamburger menu */
    header {
        flex-direction: row;
        padding: 1rem;
        flex-wrap: nowrap;
        justify-content: center;
        position: sticky;
        top: 0;
        z-index: 1000;
        background-color: var(--light-color);
    }
    
    /* Center logo on mobile */
    .logo-container {
        position: static;
        margin: 0 auto;
    }
    
    .mobile-menu-toggle {
        display: block !important;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: white;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    nav.mobile-menu-open {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        margin-top: 4rem;
        padding: 1rem;
    }
    
    nav ul li {
        margin: 0;
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 4px;
        transition: background-color 0.2s;
    }
    
    nav ul li a:hover {
        background-color: #f5f5f5;
    }
    
    nav ul li a.btn,
    nav ul li button.btn {
        width: 100%;
        text-align: center;
        margin: 0.25rem 0;
    }
    
    .get-involved-btn {
        margin-left: 0;
        width: 100%;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    /* Account Actions buttons - stack on mobile */
    section > div > div {
        flex-direction: column !important;
    }
    
    section > div > div > a,
    section > div > div > button {
        width: 100% !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Account page specific mobile optimizations */
    section > div {
        padding: 1rem !important;
    }
    
    section h2 {
        font-size: 1.5rem !important;
    }
    
    /* Event cards on mobile */
    .events-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Papers page mobile */
    .papers-container {
        padding: 1rem !important;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 14px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero .subheadline {
        font-size: 1rem;
    }
}



/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.event-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.event-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-card-content {
    padding: 1.5rem;
}

.event-card-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.event-card-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.event-card-location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.event-card-venue {
    color: #666;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Papers Grid */
.papers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.paper-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.paper-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.paper-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.paper-authors {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.paper-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.paper-abstract {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #444;
}

/* Badge styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.badge-preview {
    background-color: #e3f2fd;
    color: #1976d2;
}

.badge-members {
    background-color: #fff3e0;
    color: #f57c00;
}

.badge-featured {
    background-color: #e8f5e9;
    color: #388e3c;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
}

/* Visual Journey / Gallery Section */
.visual-journey {
    background-color: var(--accent-color);
}

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

.gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Partners Section - Ensuring horizontal alignment and proper sizing */
.partners-section {
    background-color: var(--light-color);
}

.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    padding: 2rem 0;
}

.partners-logos img {
    height: 60px;
    max-width: 180px;
    object-fit: contain;
}

/* Support Our Work Section */
.support-work {
    text-align: center;
    background-color: var(--accent-color);
    padding-bottom: 3rem;
}

.support-work .btn {
    margin: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .events-grid,
    .papers-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-logos img {
        height: 40px;
    }
}

