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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #4a6fa5;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-light-blue: #e8f4f8;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --gradient-hero: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(52, 73, 94, 0.9) 100%);
}

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

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--text-dark);
}

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

/* Top Contact Bar */
.top-contact-bar {
    background-color: #2c3e50;
    color: white;
    padding: 12px 0;
    width: 100%;
    font-size: 0.9rem;
}

.contact-info-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-item-top {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

.contact-item-top svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    fill: white;
}

.contact-item-top a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-item-top a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Navigation */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 48px;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-brand-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.nav-brand-link:hover {
    opacity: 0.8;
}

.logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-container {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(44, 62, 80, 0.2));
}

.nav-brand-link:hover .logo-icon {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(44, 62, 80, 0.3));
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    max-width: 350px;
    word-wrap: break-word;
}

.university-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
    line-height: 1.3;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    font-size: 0.85rem;
    white-space: nowrap;
    padding: 3px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Navigation Dropdown */
.nav-item-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown-icon {
    font-size: 0.7rem;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 210px;
    background-color: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    padding: 8px 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1500;
}

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

.nav-dropdown-menu li {
    padding: 0;
}

.nav-dropdown-link {
    display: block;
    padding: 8px 18px;
    font-size: 0.85rem;
    color: var(--text-dark);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-dropdown-link:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* Language Switcher */
.language-switcher {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 2px solid var(--text-dark);
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 90px;
    justify-content: space-between;
}

.lang-selector:hover {
    border-color: var(--primary-color);
    background-color: var(--bg-light);
}

.lang-flag {
    font-size: 1.2rem;
    line-height: 1;
}

.lang-code {
    font-weight: 600;
    flex: 1;
    text-align: left;
}

.lang-caret {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: var(--text-dark);
}

.language-switcher.active .lang-caret {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background-color: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.language-switcher.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.lang-option:hover {
    background-color: var(--bg-light);
}

.lang-option:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.lang-option:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    margin-top: 106px;
    padding: 100px 0;
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: #e8f4f8;
    color: var(--text-dark);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    opacity: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    text-shadow: none;
    animation: fadeInUp 1s ease;
    line-height: 1.2;
    word-wrap: break-word;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--text-dark);
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #34495e;
    color: white;
    border-color: #34495e;
}

.btn-primary:hover {
    background-color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: white;
    color: #34495e;
    border: 2px solid #34495e;
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* About Section */
.about {
    background-color: var(--bg-light-blue);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-light);
}

.about-text p {
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Departments Section */
.departments {
    background-color: var(--bg-light-blue);
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.department-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.department-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.department-card:hover::before {
    transform: scaleX(1);
}

.department-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.1) 0%, rgba(52, 73, 94, 0.1) 100%);
    border-radius: 50%;
    color: var(--primary-color);
}

.department-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
    line-height: 1.3;
}

.department-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: center;
}

.department-features {
    list-style: none;
    padding: 0;
}

.department-features li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
    line-height: 1.6;
}

.department-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Team Section */
.team {
    background-color: var(--bg-white);
    padding: 100px 0;
}

.team-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
    align-items: stretch;
}

.team-member {
    background-color: var(--bg-white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 350px;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.team-member-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.1) 0%, rgba(52, 73, 94, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-member-image svg {
    width: 100px;
    height: 100px;
    color: var(--primary-color);
    opacity: 0.7;
}

.team-member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 50%;
}

.nizomiddin-photo {
    object-position: center 10%;
}

.team-member h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--primary-color);
}

.team-member-role {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.team-member-bio {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.team-member-contact {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.team-contact-item svg {
    flex-shrink: 0;
    color: var(--primary-color);
    width: 16px;
    height: 16px;
}

.team-contact-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Research Section */
.research {
    background-color: var(--bg-light-blue);
}

.research-content {
    max-width: 1000px;
    margin: 0 auto;
}

.research-intro {
    text-align: center;
    margin-bottom: 50px;
}

.research-intro p {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.9;
}

.research-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.research-area {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.research-area h3 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.research-area ul {
    list-style: none;
    padding: 0;
}

.research-area li {
    padding: 15px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-light);
    line-height: 1.8;
    border-bottom: 1px solid var(--border-color);
}

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

.research-area li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Contact Section */
.contact {
    background-color: var(--bg-light-blue);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-details strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.contact-details p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
}

.contact-details a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.contact-form-wrapper {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-form-wrapper h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

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

.contact-form .btn {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

/* News & Events Section */
.news-events {
    background-color: var(--bg-light-blue);
}

.news-content {
    max-width: 1200px;
    margin: 0 auto;
}

.news-intro {
    text-align: center;
    margin-bottom: 50px;
}

.news-intro p {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.9;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.news-image {
    height: 200px;
    background: var(--gradient-primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.news-image[style*="background-image"] {
    background-color: #003d82;
}

.news-image img {
    width: auto;
    height: auto;
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.date-day {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    margin-top: 5px;
}

.news-body {
    padding: 25px;
}

.news-body h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    line-height: 1.4;
}

.news-body p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
}

.news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: var(--accent-color);
}

/* International Section */
.international {
    background-color: var(--bg-light-blue);
}

.international-content {
    max-width: 1200px;
    margin: 0 auto;
}

.international-intro {
    text-align: center;
    margin-bottom: 50px;
}

.international-intro p {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.9;
}

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

.international-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.international-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.1) 0%, rgba(52, 73, 94, 0.1) 100%);
    border-radius: 50%;
    color: var(--primary-color);
}

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

.international-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Map Section */
.map-wrapper {
    margin-top: 60px;
    width: 100%;
}

.map-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-align: center;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: rgba(255, 255, 255, 0.9);
    padding: 60px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
}

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

.footer-logo-column {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-logo-main {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    line-height: 1.3;
}

.footer-logo-sub {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.footer-column-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.footer-column-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column-list li {
    margin-bottom: 12px;
}

.footer-column-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    line-height: 1.5;
}

.footer-column-list a:hover {
    color: white;
    text-decoration: underline;
}

.footer-contact-info {
    margin-bottom: 20px;
}

.footer-contact-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-contact-info a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-info a:hover {
    color: white;
    text-decoration: underline;
}

.footer-contact-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.footer-contact-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-contact-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0;
}

.footer-bottom {
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.footer-bottom-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-bottom-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

.footer-bottom-text a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer-bottom-text a:hover {
    color: white;
}

.back-to-top {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    white-space: nowrap;
    padding: 5px 0;
}

.back-to-top:hover {
    color: white;
    text-decoration: underline;
}

/* Chat Bot Styles */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(44, 62, 80, 0.5);
}

.chatbot-toggle.hidden {
    display: none !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.chatbot-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 12px;
    height: 12px;
    background: #ff4444;
    border-radius: 50%;
    border: 2px solid white;
    animation: bounce 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(44, 62, 80, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(44, 62, 80, 0.6);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 600px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 9998;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.chatbot-container.active {
    display: flex !important;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

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

.chatbot-header {
    background: var(--gradient-primary);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.1rem;
}

.chatbot-close {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.chatbot-close:hover {
    transform: rotate(90deg);
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-message {
    justify-content: flex-start;
}

.user-message {
    justify-content: flex-end;
}

.message-content {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
}

.bot-message .message-content {
    background: white;
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.user-message .message-content {
    background: var(--gradient-primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-content p {
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.chatbot-quick-questions {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-question-btn {
    padding: 8px 14px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.quick-question-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.chatbot-input-area {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    align-items: center;
}

.chatbot-input-area input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}

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

.chatbot-input-area input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.chatbot-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.chatbot-send {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.chatbot-send:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.chatbot-send:active {
    transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .brand-name {
        font-size: 0.9rem;
        max-width: 350px;
    }

    .nav-menu {
        gap: 20px;
    }

    .nav-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 1024px) {
    .nav-menu {
        gap: 18px;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .brand-name {
        font-size: 0.85rem;
        max-width: 300px;
    }
}

@media (max-width: 968px) {
    .top-contact-bar {
        padding: 5px 0;
    }

    .contact-info-top {
        gap: 20px;
        font-size: 0.85rem;
    }

    .language-switcher {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    .lang-dropdown {
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }

    .language-switcher.active .lang-dropdown {
        transform: translateX(-50%) translateY(0);
    }

    .navbar {
        top: 40px;
    }

    .hero {
        margin-top: 100px;
        padding: 60px 0;
        min-height: auto;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 116px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 30px 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 15px 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }

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

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

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

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

    .contact-content {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 350px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-logo-column {
        grid-column: 1 / -1;
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }

    .back-to-top {
        align-self: flex-start;
    }

    .logo-icon {
        width: 50px;
        height: 50px;
    }

    .footer-logo-icon {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 568px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .about-stats {
        flex-direction: column;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .brand-name {
        font-size: 0.75rem;
        max-width: 200px;
    }

    .university-name {
        font-size: 0.75rem;
    }

    .map-container {
        height: 300px;
    }

    .map-title {
        font-size: 1.5rem;
    }

    .logo-icon {
        width: 45px;
        height: 45px;
    }

    .footer-logo-icon {
        width: 60px;
        height: 60px;
    }

    .chatbot-container {
        width: 100%;
        height: 100vh;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }

    .chatbot-toggle {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
