
/* ========================================
   CCRAS Internship Portal - Modern Design
   ======================================== */

/* CSS Variables */
:root {
    /* Colors - Professional Government Theme */
    --primary: #1a365d;
    --primary-light: #2c5282;
    --primary-dark: #0f2744;
    --accent: #c53030;
    --accent-light: #e53e3e;
    --gold: #d69e2e;
    --success: #276749;
    --warning: #c05621;
    --info: #2b6cb0;

    /* Neutrals */
    --bg-primary: #f7fafc;
    --bg-secondary: #edf2f7;
    --bg-card: #ffffff;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border-color: #e2e8f0;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   Unified Header (Logo + Navigation Combined)
   ======================================== */
.unified-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-bottom: 3px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    padding: 0.75rem 0;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.gov-emblem img {
    height: 50px;
    width: auto;
}

.gov-titles h1 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    color: white;
}

.gov-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    color: var(--gold);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.header-nav a {
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.header-nav a:hover,
.header-nav a.active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

.header-nav .nav-highlight {
    color: #fbbf68;
}

.header-nav .nav-highlight:hover {
    background: rgba(251, 191, 104, 0.2);
}

.header-nav .nav-btn {
    color: white !important;
    padding: 0.5rem 1rem !important;
}

.header-nav .nav-btn:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
}

.header-nav .nav-btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white !important;
}

.header-nav .nav-btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

.header-nav .nav-highlight {
    color: white !important;
}

/* ========================================
   Navigation
   ======================================== */
.admin-nav {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-brand i {
    font-size: 1.25rem;
    color: var(--accent);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-item > a:hover,
.nav-item > a.active {
    color: var(--primary);
    background: var(--bg-secondary);
}

.nav-item > a.active {
    font-weight: 600;
}

.dropdown-icon {
    font-size: 0.75rem;
    transition: transform var(--transition-fast);
}

.has-dropdown.open .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 200px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
}

.has-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.625rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: var(--bg-secondary);
    color: var(--primary);
}

.dropdown-menu a i {
    width: 18px;
    text-align: center;
}

.dropdown-right {
    right: 0;
    left: auto;
}

/* User Menu */
.user-menu .user-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary-light);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.logout-link {
    color: var(--accent) !important;
}

.logout-link:hover {
    background: #fed7d7 !important;
}

/* Public Navigation */
.public-nav {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.public-nav .nav-brand a {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
}

.brand-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.brand-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.public-nav .nav-menu {
    gap: var(--space-sm);
}

.public-nav .nav-menu a {
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.public-nav .nav-menu a:hover,
.public-nav .nav-menu a.active {
    color: var(--primary);
    background: var(--bg-secondary);
}

.nav-highlight {
    color: var(--accent) !important;
}

.nav-highlight:hover {
    background: #fff5f5 !important;
}

.nav-btn {
    background: var(--primary) !important;
    color: white !important;
    padding: 0.5rem 1.25rem !important;
}

.nav-btn:hover {
    background: var(--primary-light) !important;
}

.nav-btn-outline {
    border: 2px solid var(--border-color);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--space-sm);
}

/* ========================================
   Main Content
   ======================================== */
.main-content {
    flex: 1;
    padding: var(--space-xl) 0;
}

/* Page Header */
.page-header {
    margin-bottom: var(--space-xl);
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.page-header p {
    color: var(--text-muted);
    margin: 0;
}

/* ========================================
   Cards
   ======================================== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.card-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.card-title i {
    color: var(--primary);
}

.card-body {
    padding: var(--space-lg);
}

/* ========================================
   Stats Grid
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.primary { background: #ebf8ff; color: var(--info); }
.stat-icon.success { background: #f0fff4; color: var(--success); }
.stat-icon.warning { background: #fffaf0; color: var(--warning); }
.stat-icon.danger { background: #fff5f5; color: var(--accent); }

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1;
}

.stat-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: var(--space-xs) 0 0 0;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.625rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-success:hover {
    background: #2f855a;
}

.btn-danger {
    background: var(--accent);
    color: white;
}

.btn-danger:hover {
    background: var(--accent-light);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

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

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* ========================================
   Forms
   ======================================== */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

select.form-control {
    cursor: pointer;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: var(--primary-dark);
    color: white;
    padding: var(--space-2xl) 0 var(--space-lg);
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: white;
}

.footer-col p {
    color: #a0aec0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: var(--space-sm);
}

.footer-col ul li a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--gold);
    transform: translateY(-2px);
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: #a0aec0;
    font-size: 0.9rem;
}

.contact-list i {
    color: var(--gold);
    width: 16px;
}

.notice-list p {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    font-size: 0.9rem;
}

.notice-list i {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-lg);
    text-align: center;
}

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

.govt-line {
    color: var(--gold) !important;
    margin-top: var(--space-xs) !important;
}

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .header-content {
        flex-wrap: wrap;
    }

    .header-brand {
        flex: 1;
    }

    .header-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: var(--space-md) 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: var(--space-md);
    }

    .header-nav.mobile-open {
        display: flex;
    }

    .header-nav a {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .gov-titles h1 {
        font-size: 0.9rem;
    }

    .gov-subtitle {
        font-size: 0.75rem;
        display: none;
    }

    .gov-emblem img {
        height: 40px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: var(--space-md);
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.mobile-open {
        display: flex;
    }

    .mobile-toggle {
        display: block;
        color: white !important;
        margin-left: var(--space-sm);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: var(--space-md);
    }

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

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

/* ========================================
   Flash Messages (Popup Notifications)
   ======================================== */
.flash-messages {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 500px;
    width: 90%;
    pointer-events: none;
}

.flash-message {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
    pointer-events: auto;
}

.flash-message i {
    font-size: 1.25rem;
}

.flash-message span {
    flex: 1;
    font-weight: 500;
}

.flash-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    color: inherit;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.flash-close:hover {
    opacity: 1;
}

.flash-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.flash-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.flash-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.flash-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auto-hide flash messages after 5 seconds */
.flash-message {
    animation: slideDown 0.3s ease, fadeOut 0.3s ease 4.7s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }

/* Flash Messages */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.alert-success {
    background: #f0fff4;
    color: var(--success);
    border: 1px solid #9ae6b4;
}

.alert-error {
    background: #fff5f5;
    color: var(--accent);
    border: 1px solid #fc8181;
}

.alert-warning {
    background: #fffaf0;
    color: var(--warning);
    border: 1px solid #f6ad55;
}

.alert-info {
    background: #ebf8ff;
    color: var(--info);
    border: 1px solid #63b3ed;
}

/* ========================================
   PUBLIC PAGES - HOME, LOGIN, STUDENT
   ======================================== */

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    max-width: 500px;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* Features Container */
.features-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Research Grid Section */
.research-grid-section {
    padding: 60px 20px;
    background: var(--bg-secondary);
}

.research-header {
    max-width: 1200px;
    margin: 0 auto 40px;
}

.main-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text-primary);
    text-align: center;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.research-item {
    height: 280px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast);
}

.research-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    z-index: 1;
}

.research-item:hover {
    transform: translateY(-5px);
}

.research-heading {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 10px;
    z-index: 2;
    position: relative;
}

.research-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    z-index: 2;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap var(--transition-fast);
}

.research-link:hover {
    gap: 10px;
}

/* Info Section */
.info-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.about-ccras {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.about-ccras h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.about-ccras p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.about-ccras .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.about-ccras .stat-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.important-notice {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    padding: 40px;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--accent);
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.notice-header i {
    color: var(--accent);
    font-size: 1.5rem;
}

.notice-header h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
}

.notice-list {
    list-style: none;
    margin-bottom: 30px;
}

.notice-list li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-secondary);
}

.notice-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Login & Register Pages */
.auth-container {
    max-width: 450px;
    margin: 60px auto;
    padding: 0 20px;
}

.auth-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-muted);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

.auth-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.auth-form .btn {
    width: 100%;
    margin-top: 10px;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-muted);
    margin: 0;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.auth-alert.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Student Dashboard */
.dashboard-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.dashboard-header h1 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.dashboard-header p {
    color: var(--text-muted);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.dashboard-stats .stat-box {
    background: var(--bg-card);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    text-align: center;
}

.dashboard-stats .stat-box span {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.dashboard-stats .stat-box h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin: 0;
}

.dashboard-panels {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.dashboard-panels .panel {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.dashboard-panels .panel h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.dashboard-panels .app-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
}

.dashboard-panels .app-item:last-child {
    margin-bottom: 0;
}

.dashboard-panels .app-position {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.dashboard-panels .app-company {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.dashboard-panels .app-date {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.approved {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.rejected {
    background: #fee2e2;
    color: #991b1b;
}

.panel button.primary {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.panel button.primary:hover {
    background: var(--primary-light);
}

/* Responsive Public Pages */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        max-width: 100%;
    }

    .features-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-section {
        grid-template-columns: 1fr;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-panels {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .features-container {
        grid-template-columns: 1fr;
    }

    .about-ccras .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

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

    .hero-buttons {
        justify-content: center;
    }
}

/* Additional button styles for public pages */
.btn-outline {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
}

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