/* ===================================
   Academia360 - Main Stylesheet
   Academic & Professional Design
   =================================== */

/* ===================================
   Variables & Reset
   =================================== */
:root {
    --primary-color: #003d82;
    --primary-dark: #002856;
    --secondary-color: #d4af37;
    --accent-color: #0066cc;
    --text-dark: #333333;
    --text-medium: #666666;
    --text-light: #888888;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #dddddd;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 8px rgba(0,0,0,0.12);
    --transition: all 0.2s ease;
}

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

body {
    font-family: 'Segoe UI', 'Heebo', 'Assistant', Tahoma, sans-serif;
    direction: rtl;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===================================
   Header
   =================================== */
.site-header {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Site Notice */
.site-notice {
    background: #f0f4f8;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 0;
}

.notice-text {
    margin: 0;
    font-size: 14px;
    color: #555;
    text-align: center;
    line-height: 1.6;
}

.notice-text i.fa-info-circle {
    color: var(--primary-color);
    margin-left: 5px;
}

.notice-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-right: 8px;
    transition: var(--transition);
}

.notice-text a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.notice-text a i {
    font-size: 11px;
    margin-left: 4px;
}

.header-top {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

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

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

.logo-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.logo-text h1 {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0;
}

.tagline {
    font-size: 13px;
    opacity: 0.85;
    margin: 0;
    font-weight: 300;
}

.header-info {
    display: flex;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 3px;
    font-weight: 300;
}

.info-item i {
    font-size: 14px;
}

/* ===================================
   Navigation
   =================================== */
.main-nav {
    background: var(--primary-dark);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
}

.nav-menu > li {
    position: relative;
    border-left: 1px solid rgba(255,255,255,0.1);
}

.nav-menu > li:last-child {
    border-left: 1px solid rgba(255,255,255,0.1);
}

.nav-menu > li > a {
    display: block;
    padding: 12px 18px;
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    background: rgba(255, 255, 255, 0.08);
    border-bottom-color: var(--secondary-color);
    color: white;
}

.nav-menu > li > a i {
    margin-left: 6px;
    font-size: 13px;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    border-radius: 8px;
    overflow: hidden;
}

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

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-right: 25px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    background: linear-gradient(to left, #f8f9fa 0%, #e8eef3 100%);
    color: var(--text-dark);
    padding: 50px 0;
    border-bottom: 3px solid var(--primary-color);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none" stroke="rgba(0,61,130,0.03)" stroke-width="1"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 38px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-color);
    text-shadow: none;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 35px;
    color: var(--text-medium);
    font-weight: 300;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.stat-card {
    background: white;
    padding: 20px 35px;
    border-radius: 4px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.stat-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.stat-label {
    font-size: 13px;
    color: var(--text-medium);
    font-weight: 400;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
}

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

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

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

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

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

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

/* ===================================
   Main Content
   =================================== */
.main-content {
    background: white;
    padding: 40px 0;
}

.content-section {
    background: white;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: right;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.section-header h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 0;
    font-weight: 600;
}

.header-line {
    display: none;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text .lead {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-medium);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 10px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list i {
    color: var(--accent-color);
    font-size: 18px;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 64px;
}

.image-placeholder p {
    margin-top: 20px;
    font-size: 18px;
}

/* Goals Section */
.goals-section {
    background: #fafbfc;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.goal-card {
    background: white;
    padding: 25px;
    border-radius: 2px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.goal-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.goal-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 28px;
    color: var(--primary-color);
}

.goal-card h3 {
    color: var(--text-dark);
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.goal-card p {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 14px;
}

/* Institutions Section */
.institutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.institution-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.institution-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.institution-logo {
    width: 100px;
    height: 100px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    color: var(--primary-color);
}

.institution-card h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 20px;
}

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

.card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.card-link:hover {
    color: var(--secondary-color);
    gap: 12px;
}

/* Timeline Section */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    width: 4px;
    height: 100%;
    background: var(--border-color);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.timeline-marker {
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    z-index: 1;
}

.timeline-marker.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 8px rgba(230, 126, 34, 0.2);
}

.timeline-content {
    width: 45%;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: 0;
    margin-left: auto;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ===================================
   Footer
   =================================== */
.site-footer {
    background: #2c3e50;
    color: rgba(255,255,255,0.9);
    padding: 40px 0 20px;
    border-top: 3px solid var(--primary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.footer-section p {
    opacity: 0.85;
    margin-bottom: 8px;
    font-size: 13px;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
    font-size: 13px;
}

.footer-section ul li a:hover {
    color: white;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

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

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

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0.75;
    font-size: 12px;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        right: 20px;
    }
    
    .timeline-marker {
        right: 20px;
        transform: translateX(50%);
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-right: 0;
        margin-left: 80px;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 80px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .logo-text h1 {
        font-size: 24px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--primary-dark);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu > li > a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.2);
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-stats {
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px 25px;
    }
    
    .content-section {
        padding: 30px 20px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .goals-grid,
    .institutions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .logo-text h1 {
        font-size: 20px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
}

/* ===================================
   About Page Styles
   =================================== */

/* Page Header */
.page-header {
    background: linear-gradient(to left, #f5f8fa, #ffffff);
    padding: 60px 0 40px;
    border-bottom: 3px solid var(--primary-color);
}

.page-title {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-medium);
    font-weight: 300;
}

/* Main Content */
.main-content {
    padding: 60px 0;
}

.content-section {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.content-section:last-child {
    border-bottom: none;
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin-bottom: 20px;
    font-size: 24px;
}

.content-section h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.content-section h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin: 20px 0 15px;
}

.content-section p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-dark);
}

/* Feature List */
.feature-list {
    list-style: none;
    margin: 25px 0;
}

.feature-list li {
    padding: 12px 35px 12px 0;
    margin-right: 35px;
    position: relative;
    font-size: 16px;
    line-height: 1.6;
}

.feature-list li i {
    position: absolute;
    right: -35px;
    top: 12px;
    color: var(--secondary-color);
    font-size: 20px;
}

/* Info Box */
.info-box {
    background: #f0f4f8;
    border-right: 4px solid var(--primary-color);
    padding: 20px 25px;
    margin: 25px 0;
    display: flex;
    gap: 15px;
}

.info-box.warning {
    background: #fff3cd;
    border-right-color: #ff9800;
}

.info-box > i {
    font-size: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.info-box.warning > i {
    color: #ff9800;
}

.info-box strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
}

.info-box p {
    margin: 0;
    font-size: 15px;
}

.info-box h4 {
    font-size: 16px;
    font-weight: 600;
}

.info-box ol {
    font-size: 14px;
    line-height: 1.8;
}

.info-box ol li {
    margin-bottom: 5px;
}

/* External Link */
.external-link {
    text-align: center;
    margin-top: 30px;
}

.external-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 24px;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
}

.external-link a:hover {
    background: var(--primary-color);
    color: white;
}

/* Goals Grid */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.goal-item {
    background: white;
    border: 1px solid var(--border-color);
    padding: 25px;
    transition: var(--transition);
}

.goal-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.goal-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.goal-item h3 {
    font-size: 20px;
    margin: 0 0 10px 0;
}

.goal-item p {
    font-size: 15px;
    margin: 0;
    color: var(--text-medium);
}

/* Requirements Box */
.requirements-box {
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    padding: 30px;
    margin: 25px 0;
}

.requirements-box h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.requirements-box ul {
    list-style: none;
    margin: 0;
}

.requirements-box li {
    padding: 10px 0 10px 30px;
    position: relative;
    border-bottom: 1px solid #e0e0e0;
}

.requirements-box li:last-child {
    border-bottom: none;
}

.requirements-box li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 18px;
}

/* Criteria Grid */
.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.criteria-card {
    background: white;
    border: 1px solid var(--border-color);
    padding: 25px;
    text-align: center;
    transition: var(--transition);
}

.criteria-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.criteria-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
    border-radius: 50%;
}

.criteria-card h3 {
    font-size: 20px;
    margin: 0 0 15px 0;
    color: var(--primary-color);
}

.criteria-card p {
    font-size: 14px;
    margin: 0;
    text-align: right;
    color: var(--text-medium);
}

/* Budget Section */
.budget-overview {
    background: #f8f9fa;
    padding: 30px;
    margin: 25px 0;
}

.budget-stat {
    text-align: center;
    margin-bottom: 30px;
}

.budget-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
}

.budget-label {
    font-size: 18px;
    color: var(--text-medium);
    margin-top: 5px;
}

.budget-breakdown h3 {
    margin-bottom: 20px;
}

.budget-bar {
    display: flex;
    width: 100%;
    height: 60px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.budget-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 14px;
    padding: 10px;
}

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

/* Process Timeline */
.process-timeline {
    margin-top: 30px;
}

.process-step {
    background: white;
    border: 1px solid var(--border-color);
    border-right: 4px solid var(--primary-color);
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    right: 25px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    border-radius: 50%;
}

.process-step h3 {
    margin: 10px 0 15px 0;
    padding-right: 60px;
}

.process-step ul {
    list-style: none;
    margin: 0;
}

.process-step li {
    padding: 8px 0 8px 25px;
    position: relative;
}

.process-step li::before {
    content: "→";
    position: absolute;
    right: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* KPI Table */
.kpi-table {
    overflow-x: auto;
    margin-top: 25px;
}

.kpi-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.kpi-table th,
.kpi-table td {
    padding: 15px;
    text-align: right;
    border: 1px solid var(--border-color);
}

.kpi-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.kpi-table tbody tr:hover {
    background: #f8f9fa;
}

.kpi-table td i {
    margin-left: 8px;
    color: var(--secondary-color);
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: linear-gradient(to left, #f5f8fa, #ffffff);
    padding: 40px;
    border: 2px solid var(--primary-color);
}

.cta-section h2 {
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Institution Modal */
.institution-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.institution-modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-medium);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: 50%;
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 30px 30px 25px;
    border-radius: 8px 8px 0 0;
}

.modal-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: white;
}

.modal-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
    color: white;
}

.modal-body {
    padding: 30px;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.info-label {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-label i {
    color: var(--primary-color);
    width: 20px;
}

.info-value {
    flex: 1;
    color: var(--text-medium);
}

.info-value a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.info-value a:hover {
    text-decoration: underline;
}

/* Clickable institution list items */
.info-box ol li {
    cursor: pointer;
    padding: 8px;
    margin: -8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.info-box ol li:hover {
    background-color: #e3f2fd;
}

/* Enhanced Modal Sections */
.info-section {
    margin-bottom: 30px;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-section h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-section h3 i {
    font-size: 18px;
}

/* Status Cards */
.status-card {
    padding: 15px 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
}

.status-card i {
    font-size: 24px;
}

.status-submitted {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.status-not-submitted {
    background: #fff3e0;
    color: #e65100;
    border-left: 4px solid #ff9800;
}

.status-response {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid #2196f3;
}

/* Badges */
.badges-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.badge i {
    font-size: 12px;
}

.badge-success {
    background: #4caf50;
    color: white;
}

.badge-info {
    background: #2196f3;
    color: white;
}

.badge-warning {
    background: #ff9800;
    color: white;
}

/* Documents List */
.documents-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 6px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.document-item:hover {
    background: #e3f2fd;
    transform: translateX(-3px);
}

.document-item:last-child {
    margin-bottom: 0;
}

.file-icon {
    font-size: 28px;
    color: var(--primary-color);
    min-width: 30px;
    text-align: center;
}

.fa-file-pdf {
    color: #d32f2f;
}

.fa-file-excel {
    color: #388e3c;
}

.fa-file-word {
    color: #1976d2;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    word-break: break-word;
}

.file-type {
    font-size: 13px;
    color: var(--text-light);
}

.file-link {
    color: var(--primary-color);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: var(--transition);
}

.file-link:hover {
    background: var(--primary-color);
    color: white;
}

/* Info Grid */
.info-grid {
    display: grid;
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 6px;
}

.info-item i {
    color: var(--primary-color);
    margin-top: 3px;
    min-width: 20px;
}

.info-item code {
    background: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
    color: var(--text-medium);
}

/* Button in Modal */
.modal-body .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.modal-body .btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.modal-body .btn i {
    font-size: 16px;
}

/* Responsive for About Page */
@media (max-width: 768px) {
    .page-title {
        font-size: 28px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .content-section h2 {
        font-size: 26px;
    }
    
    .goals-grid,
    .criteria-grid {
        grid-template-columns: 1fr;
    }
    
    .budget-bar {
        flex-direction: column;
        height: auto;
    }
    
    .budget-segment {
        width: 100% !important;
        padding: 15px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 25px 20px 20px;
    }
    
    .modal-header h2 {
        font-size: 24px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .info-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .info-label {
        min-width: auto;
    }
    
    .info-section h3 {
        font-size: 18px;
    }
    
    .status-card {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .document-item {
        flex-wrap: wrap;
        padding: 12px;
    }
    
    .file-name {
        font-size: 14px;
    }
    
    .badges-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .badge {
        justify-content: center;
    }
}

/* ==========================================
   GUIDELINES PAGE STYLES
   ========================================== */

/* Principles Highlight Section */
.principles-highlight {
    margin: 40px 0;
}

.principles-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0051a8 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 61, 130, 0.2);
}

.principles-box h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    color: white;
}

.principles-box h2 i {
    margin-left: 12px;
    color: var(--gold-color);
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.principle-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.principle-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    border-color: var(--gold-color);
}

.principle-item i {
    font-size: 42px;
    color: var(--gold-color);
    margin-bottom: 15px;
    display: block;
}

.principle-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: white;
}

.principle-item p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Content Card */
.content-card {
    background: white;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.lead-text {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.intro-text {
    font-size: 17px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
}

.info-box {
    background: #f0f7ff;
    border-right: 5px solid var(--primary-color);
    padding: 25px;
    margin: 25px 0;
    border-radius: 8px;
}

.info-box h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.info-box h4 i {
    margin-left: 10px;
}

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

.info-box ul li {
    padding: 10px 0 10px 30px;
    position: relative;
    color: #444;
    line-height: 1.6;
}

.info-box ul li:before {
    content: "✓";
    position: absolute;
    right: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
}

/* Goal Cards (already exists but adding specific overrides for guidelines) */
.goal-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
    text-align: center;
}

.goal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #0051a8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(0, 61, 130, 0.25);
}

.goal-icon i {
    font-size: 36px;
    color: white;
}

/* Eligibility Section */
.eligibility-box {
    margin-bottom: 30px;
}

.eligibility-box h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 15px;
}

.eligibility-box h3 i {
    margin-left: 10px;
}

.requirement-highlight {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 25px;
    margin-top: 20px;
}

.requirement-highlight i {
    font-size: 32px;
    color: #ff9800;
    flex-shrink: 0;
}

.requirement-highlight strong {
    color: #e65100;
    font-size: 18px;
    display: block;
    margin-bottom: 8px;
}

.requirement-highlight p {
    margin: 0;
    color: #444;
    line-height: 1.6;
}

/* Budget Info */
.budget-info {
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    padding: 30px;
    border-radius: 10px;
    margin-top: 25px;
}

.budget-info h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 20px;
}

.budget-info h3 i {
    margin-left: 10px;
    color: var(--gold-color);
}

.budget-breakdown {
    display: grid;
    gap: 15px;
}

.budget-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 18px 25px;
    border-radius: 8px;
    border-right: 4px solid var(--gold-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.budget-label {
    font-weight: 600;
    color: #555;
    font-size: 16px;
}

.budget-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Criteria Table */
.criteria-table-wrapper {
    overflow-x: auto;
    margin: 25px 0;
}

.criteria-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.criteria-table thead {
    background: var(--primary-color);
    color: white;
}

.criteria-table th {
    padding: 18px 20px;
    text-align: right;
    font-weight: 600;
    font-size: 17px;
}

.criteria-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: var(--transition);
}

.criteria-table tbody tr:hover {
    background: #f5f9ff;
}

.criteria-table tbody tr:last-child {
    border-bottom: none;
}

.criteria-table td {
    padding: 18px 20px;
    color: #444;
    line-height: 1.6;
}

.criteria-table td strong {
    color: var(--primary-color);
    font-size: 16px;
}

/* Requirements List */
.requirements-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.requirement-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    border-right: 4px solid var(--primary-color);
    transition: var(--transition);
}

.requirement-item:hover {
    background: #e8f4f8;
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(0, 61, 130, 0.15);
}

.req-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0, 61, 130, 0.3);
}

.req-content h4 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 8px;
}

.req-content p {
    margin: 0;
    color: #555;
    line-height: 1.7;
}

/* Process Timeline (enhanced version) */
.process-timeline {
    position: relative;
    padding: 40px 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    right: 25px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--gold-color));
}

.process-step {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-marker {
    position: relative;
    flex-shrink: 0;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 61, 130, 0.3);
    position: relative;
    z-index: 2;
}

.step-content {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    border-right: 4px solid var(--primary-color);
}

.step-content h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 15px;
}

.step-content ul {
    list-style: none;
    padding: 0;
}

.step-content ul li {
    padding: 8px 0 8px 30px;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.step-content ul li:before {
    content: "→";
    position: absolute;
    right: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
}

.step-content > p {
    color: #555;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Assessment Phases */
.assessment-phases {
    display: grid;
    gap: 25px;
    margin-top: 25px;
}

.assessment-phase {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    border-right: 5px solid var(--primary-color);
    transition: var(--transition);
}

.assessment-phase:hover {
    background: #e8f4f8;
    box-shadow: 0 4px 12px rgba(0, 61, 130, 0.15);
}

.assessment-phase h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 15px;
}

.assessment-phase h3 i {
    margin-left: 10px;
}

.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    padding: 12px 0 12px 35px;
    position: relative;
    color: #444;
    line-height: 1.7;
    border-bottom: 1px solid #e0e0e0;
}

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

.checklist li:before {
    content: "✓";
    position: absolute;
    right: 0;
    color: #4caf50;
    font-weight: bold;
    font-size: 20px;
}

/* KPI Table */
.kpi-table-wrapper {
    overflow-x: auto;
    margin: 25px 0;
}

.kpi-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.kpi-table thead {
    background: linear-gradient(135deg, var(--primary-color), #0051a8);
    color: white;
}

.kpi-table th {
    padding: 18px 20px;
    text-align: right;
    font-weight: 600;
    font-size: 17px;
}

.kpi-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: var(--transition);
}

.kpi-table tbody tr:hover {
    background: #f0f7ff;
}

.kpi-table tbody tr:last-child {
    border-bottom: none;
}

.kpi-table td {
    padding: 18px 20px;
    color: #444;
    line-height: 1.6;
}

.kpi-table td strong {
    color: var(--primary-color);
    font-size: 16px;
}

/* Documents Section */
.documents-section {
    margin-top: 30px;
}

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

.document-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 61, 130, 0.2);
}

.doc-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #0051a8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(0, 61, 130, 0.25);
}

.doc-icon i {
    font-size: 36px;
    color: white;
}

.document-card h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 12px;
}

.document-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 48px;
}

.doc-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
    font-weight: 600;
}

.doc-link:hover {
    background: #00265a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 61, 130, 0.3);
}

.doc-link i {
    font-size: 14px;
}

/* Footer Notice */
.footer-notice {
    background: #f5f5f5;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.footer-notice i {
    font-size: 24px;
    color: var(--primary-color);
}

.footer-notice p {
    margin: 0;
    color: #666;
    font-size: 15px;
}

/* Responsive Design for Guidelines Page */
@media (max-width: 768px) {
    .principles-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .principle-item {
        padding: 20px;
    }
    
    .content-card {
        padding: 25px 20px;
    }
    
    .requirement-item {
        flex-direction: column;
        padding: 20px;
    }
    
    .req-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .process-timeline::before {
        right: 20px;
    }
    
    .process-step {
        gap: 20px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .step-content {
        padding: 20px;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .budget-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .criteria-table,
    .kpi-table {
        font-size: 14px;
    }
    
    .criteria-table th,
    .criteria-table td,
    .kpi-table th,
    .kpi-table td {
        padding: 12px 10px;
    }
}

/* ===================================
   Program Alignment Styles
   =================================== */
.program-alignment {
    margin-top: 20px;
}

.alignment-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-right: 4px solid var(--primary-color);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.alignment-summary h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.alignment-summary p {
    line-height: 1.8;
    color: var(--text-dark);
    text-align: justify;
}

.alignment-criteria {
    margin-bottom: 30px;
}

.alignment-criteria h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2em;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

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

.criterion-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.criterion-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.criterion-card h5 {
    color: var(--accent-color);
    margin-bottom: 12px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.criterion-card h5 i {
    color: var(--secondary-color);
}

.criterion-card p {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 0.95em;
    text-align: justify;
}

.alignment-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.strengths,
.challenges {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.strengths h4 {
    color: #28a745;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.challenges h4 {
    color: #dc3545;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.strengths ul,
.challenges ul {
    list-style: none;
    padding: 0;
}

.strengths ul li,
.challenges ul li {
    padding: 10px 0 10px 25px;
    position: relative;
    line-height: 1.6;
    border-bottom: 1px solid #f0f0f0;
}

.strengths ul li:last-child,
.challenges ul li:last-child {
    border-bottom: none;
}

.strengths ul li:before {
    content: "✓";
    position: absolute;
    right: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 1.2em;
}

.challenges ul li:before {
    content: "!";
    position: absolute;
    right: 0;
    color: #dc3545;
    font-weight: bold;
    font-size: 1.2em;
}

/* Detailed Research Links */
.research-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.research-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.research-link:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.research-link i {
    font-size: 32px;
    color: var(--primary-color);
    min-width: 40px;
}

.research-link div {
    flex: 1;
    text-align: right;
}

.research-link strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.research-link small {
    display: block;
    color: var(--text-medium);
    font-size: 13px;
}

.research-overview:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #2196F3;
}

.research-overview:hover i {
    color: #2196F3;
}

.research-researchers:hover {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border-color: #9c27b0;
}

.research-researchers:hover i {
    color: #9c27b0;
}

/* Mobile responsiveness for program alignment */
@media (max-width: 768px) {
    .criteria-grid {
        grid-template-columns: 1fr;
    }
    
    .alignment-details {
        grid-template-columns: 1fr;
    }
    
    .alignment-summary {
        padding: 15px;
    }
    
    .criterion-card {
        padding: 15px;
    }
}

/* ========================================
   Institutions Page Styles
   ======================================== */

/* Filter Section */
.filter-section {
    background: #f8f9fa;
    padding: 30px 0;
    border-bottom: 2px solid var(--border-color);
}

.filter-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: #ffffff;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.2);
}

.filter-btn.active {
    background: var(--primary-color);
    color: #ffffff;
}

/* Institutions Grid */
.institutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

/* Institution Card */
.institution-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

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

.institution-card .card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.institution-card .institution-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.institution-card .institution-icon i {
    font-size: 1.5rem;
    color: #ffffff;
}

.proposal-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.proposal-badge.submitted {
    background: rgba(40, 167, 69, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.proposal-badge.not-submitted {
    background: rgba(220, 53, 69, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.institution-card .card-body {
    padding: 25px 20px;
    flex-grow: 1;
}

.institution-card .institution-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.institution-card .institution-type {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.institution-card .institution-location {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.institution-card .institution-location i {
    color: var(--secondary-color);
}

.institution-card .card-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid var(--border-color);
}

.btn-view-details {
    width: 100%;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-view-details:hover {
    background: var(--secondary-color);
    transform: scale(1.02);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .institutions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn {
        width: 100%;
    }

    .institution-card .institution-name {
        font-size: 1.1rem;
    }
}



/* ===================================
   Institution Contact Information
   =================================== */
.institution-contact {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border-right: 4px solid var(--primary-color);
}

.institution-contact h4 {
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.institution-contact p {
    margin: 8px 0;
    font-size: 14px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.institution-contact p i {
    color: var(--primary-color);
    min-width: 18px;
}

.institution-contact strong {
    color: var(--text-dark);
    font-weight: 600;
}

.institution-contact a {
    color: var(--accent-color);
    text-decoration: none;
}

.institution-contact a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.institution-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.institution-details {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.institution-details span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-medium);
}

.institution-details i {
    color: var(--primary-color);
}

.institution-type {
    background: #e3f2fd;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.institution-location {
    padding: 4px 12px;
}

.institution-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.institution-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    flex-shrink: 0;
}

.institution-info {
    flex: 1;
    text-align: right;
}

.institution-name-he {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 5px 0;
}

.institution-name-en {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

.institution-body {
    text-align: right;
}

@media (max-width: 768px) {
    .institution-header {
        flex-direction: column;
        text-align: center;
    }
    
    .institution-info {
        text-align: center;
    }
    
    .institution-body {
        text-align: center;
    }
    
    .institution-contact p {
        flex-direction: column;
        gap: 4px;
    }
    
    .institution-details {
        align-items: center;
    }
}
