/* ========================================
   Academic Achievements Page Styles
   ======================================== */

/* Page Hero with Video Background */
.page-hero {
    position: relative;
    overflow: hidden;
}

.page-hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Video Overlay for better text readability - 10% less visible */
.page-hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 145, 178, 0.85);
    z-index: 1;
}

/* Ensure content is above video */
.page-hero .container {
    position: relative;
    z-index: 2;
}

/* Page Subtitle with Text Shadow */
.page-subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 1;
    text-align: center;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.page-title {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Academic Section */
.academic-section {
    padding: var(--section-padding);
    background: var(--lighter-bg);
    position: relative;
    overflow: hidden;
}

/* Academic Section with Video Background */
.academic-section-with-video {
    position: relative;
}

/* Academic Video Background Container */
.academic-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.academic-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Video Overlay for better text readability */
.academic-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.92);
    z-index: 1;
}

/* Ensure content is above video */
.academic-section-with-video .container {
    position: relative;
    z-index: 2;
}

.academic-section:nth-child(even) {
    background: white;
}

/* Scientific Publications Grid */
.academic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.academic-card-link {
    text-decoration: none;
    display: flex;
    color: inherit;
    height: 100%;
}

.academic-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.academic-card-link:hover .academic-card {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

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

.academic-card h3 {
    color: var(--text-dark);
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
}

.academic-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.2rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

.academic-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    pointer-events: none;
}

.academic-card-link:hover .academic-link {
    gap: 1rem;
    color: var(--primary-dark);
}

/* Patents Section */
.patents-section {
    background: white;
}

.patents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.patent-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    height: 100%;
}

.patent-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border-left: 5px solid var(--primary-color);
    position: relative;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.patent-card-link:hover .patent-card {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-left-color: #fbbf24;
}

.patent-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: white;
}

.patent-card h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-weight: 600;
    flex-grow: 1;
}

.patent-number {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
}

.patent-number i {
    font-size: 1.3rem;
}

.patent-link-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--primary-color);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    opacity: 0;
    transition: var(--transition);
}

.patent-card-link:hover .patent-link-icon {
    opacity: 1;
    background: #fbbf24;
}

/* Research Grants Section */
.grants-section {
    background: var(--lighter-bg);
}

.grants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.grant-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

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

.grant-card-link {
    cursor: pointer;
}

.grant-card-link:hover {
    border-top-color: var(--accent-color);
}

.grant-link-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(8, 145, 178, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.grant-card-link:hover .grant-link-icon {
    opacity: 1;
    transform: translateY(-2px);
}

.grant-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: white;
}

.grant-card h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.grant-org {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.grant-org strong {
    color: var(--primary-color);
    font-weight: 600;
}

.grant-details {
    background: var(--lighter-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
}

.grant-details p {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.grant-details p:last-child {
    margin-bottom: 0;
}

.grant-details strong {
    color: var(--primary-color);
    font-weight: 600;
}

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

@media (max-width: 968px) {
    .academic-grid {
        grid-template-columns: 1fr;
    }

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

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

    .academic-card,
    .patent-card,
    .grant-card {
        padding: 2rem;
    }
}

@media (max-width: 640px) {
    .academic-icon,
    .patent-icon,
    .grant-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .academic-card h3,
    .patent-card h3,
    .grant-card h3 {
        font-size: 1.2rem;
    }

    .patent-number {
        font-size: 0.95rem;
    }
}
