/* Base Styles & Variables */
:root {
    /* University / Institution Colors */
    --primary-color: #025B8D; /* Deep Institution Blue */
    --primary-dark: #013756;
    --secondary-color: #00887A; /* Deep Teal / Medical */
    --secondary-light: #E0F2F1;
    --accent-color: #F2A900; /* Subtle Gold Accent typical in Uni sites */
    
    --text-main: #2D3748;
    --text-light: #718096;
    --text-muted: #A0AEC0;
    
    --bg-main: #FFFFFF;
    --bg-light: #F7FAFC;
    --bg-alt: #EDF2F7;
    
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.4);
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --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 15px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --transition: all 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo-title {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

.text-white { color: #fff !important; }
.text-link { color: var(--primary-color); font-weight: 600; }
.text-link:hover { color: var(--accent-color); }

/* --- Top Bar --- */
.top-bar {
    background: var(--primary-dark);
    color: var(--bg-alt);
    font-size: 0.85rem;
    padding: 0.5rem 0;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left span {
    margin-right: 1.5rem;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-bar-right a:hover {
    color: var(--accent-color);
}

.top-bar-btn {
    background: var(--accent-color);
    color: var(--primary-dark) !important;
    padding: 0.2rem 1rem;
    border-radius: 4px;
    font-weight: 700;
}

/* --- Navbar --- */
.navbar {
    position: sticky;
    top: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

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

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

.logo-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links > li > a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-dark);
}

.nav-links > li > a:hover {
    color: var(--primary-color);
}

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

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-main);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 8px 8px;
    border-top: 3px solid var(--primary-color);
    overflow: hidden;
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    font-size: 0.9rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--bg-light);
}

.dropdown-content a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding-left: 25px; /* Interactive hover effect */
}

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

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(2, 91, 141, 0.9) 0%, rgba(0, 136, 122, 0.8) 100%), url('images/hero-bg.jpg') center/cover no-repeat;
    color: var(--bg-main);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 700px;
}

.badge {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-dark);
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    line-height: 1.1;
}

.hero h1 span {
    color: var(--accent-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--primary-dark);
    padding: 1rem 2rem;
    border-radius: 6px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: #fff; transform: translateY(-2px); }

.btn-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-weight: 700;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

.hero-news-highlight {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 2rem;
    border-radius: 12px;
    width: 350px;
}

.hero-news-highlight h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.highlight-item .date {
    display: block;
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.highlight-item p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0;
}
.highlight-item:hover p { text-decoration: underline; }

/* --- Statistics Section --- */
.stats-section {
    background: var(--bg-main);
    padding: 3rem 0;
    border-bottom: 1px solid var(--bg-alt);
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--bg-main);
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    padding: 2rem;
}

.stat-item {
    text-align: center;
    border-right: 1px solid var(--bg-alt);
}
.stat-item:last-child { border-right: none; }

.stat-number {
    display: block;
    font-size: 3rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
}

/* --- General Sections --- */
.section { padding: 6rem 0; }
.section-header { margin-bottom: 4rem; max-width: 700px; }
.section-header.center { text-align: center; margin: 0 auto 4rem auto; }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 60px; height: 4px;
    background: var(--secondary-color);
}
.section-header.center .section-title::after { left: 50%; transform: translateX(-50%); }

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* --- Detailed Research --- */
.detailed-research { background: var(--bg-light); }

.research-showcase {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.showcase-item {
    display: flex;
    background: var(--bg-main);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.showcase-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }

.showcase-item.reverse { flex-direction: row-reverse; }

.showcase-img {
    flex: 0 0 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-alt);
}

.showcase-img img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.showcase-item:hover .showcase-img img {
    transform: scale(1.06);
}

.showcase-text {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.showcase-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.showcase-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* --- News Grid --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.news-card {
    background: var(--bg-main);
    border: 1px solid var(--bg-alt);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }

.news-img {
    height: 210px;
    overflow: hidden;
    background: var(--bg-alt);
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.news-card:hover .news-img img {
    transform: scale(1.08);
}

.news-content { padding: 1.5rem; }

.news-category {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: var(--secondary-light);
    color: var(--secondary-color);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.news-content h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

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

/* --- Portal Section --- */
.portal-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    position: relative;
}

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

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 3.5rem 2rem;
    text-align: center;
    color: #fff;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.glass-card:hover { background: rgba(255,255,255,0.15); transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }

.glass-card h3 { color: #fff; font-size: 1.6rem; margin-bottom: 1rem; }
.glass-card p { opacity: 0.9; margin-bottom: 2.5rem; font-size: 1rem; line-height: 1.5; }

.portal-btn {
    padding: 0.8rem 1.8rem;
    border: 2px solid #fff;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-block;
}
.glass-card:hover .portal-btn { background: #fff; color: var(--primary-dark); }


/* --- Team Section --- */
.team-section { background: var(--bg-light); }

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.team-card {
    background: var(--bg-main);
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-bottom: 4px solid var(--primary-color);
}

.team-image {
    width: 120px; height: 120px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--bg-alt);
}
.team-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

.team-card h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.team-role { color: var(--text-light); font-size: 0.9rem; margin-bottom: 1.5rem; }
.team-link { font-size: 0.9rem; font-weight: 600; color: var(--secondary-color); }
.team-link:hover { text-decoration: underline; }

/* --- Mega Footer --- */
.mega-footer {
    background: #0B192C;
    color: #E2E8F0;
    padding-top: 5rem;
}

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

.footer-logo { font-size: 1.5rem; color: #fff; margin-bottom: 1rem; }
.footer-logo span { color: var(--accent-color); }
.brand-col p { color: #A0AEC0; font-size: 0.95rem; }
.footer-address { margin-top: 1rem; }

.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-col h4::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 30px; height: 2px; background: var(--accent-color);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul a { color: #A0AEC0; font-size: 0.95rem; }
.footer-col ul a:hover { color: #fff; padding-left: 5px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #718096;
}

.footer-legal a {
    color: #718096;
    margin-left: 1.5rem;
}
.footer-legal a:hover { color: #fff; }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .stats-container { grid-template-columns: repeat(2, 1fr); gap: 2rem; padding: 2rem; }
    .stat-item { border: none; }
    .team-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .hero-content-wrapper { flex-direction: column; text-align: center; }
    .hero-news-highlight { display: none; }
    .nav-links { display: none; }
    .showcase-item, .showcase-item.reverse { flex-direction: column; }
    .showcase-img { padding: 3rem 0; }
    .portal-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 1rem; }
}
