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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.navbar {
    background: #2c3e50;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-tabs {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

.tab-link {
    padding: 0.5rem 1rem;
    cursor: pointer;
    margin: 0 0.25rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.tab-link:hover,
.tab-link.active {
    background: #34495e;
}

.main-content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-photo {
    width: 150px;
    height: 150px;
    background: #ecf0f1;
    border-radius: 8px;
    margin: 0 auto 1rem;
}

/* Projects */
.project-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.project-tab {
    padding: 0.5rem 1rem;
    background: #ecf0f1;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.project-tab.active {
    background: #3498db;
    color: white;
}

.project-details {
    display: none;
}

.project-details.active {
    display: block;
}

.subprojects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.subproject {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
}

.subproject-image {
    width: 100%;
    height: 150px;
    background: #ecf0f1;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-style: italic;
}

.download-btn {
    background: #27ae60;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
    text-decoration: none;
    display: inline-block;
}

.download-btn:hover {
    background: #219a52;
}

/* Publications */
.publications-list {
    margin-top: 2rem;
}

.publication-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-left: 4px solid #e74c3c;
}

.publication-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.publication-item a {
    color: #3498db;
    text-decoration: none;
}

.publication-item a:hover {
    text-decoration: underline;
}

/* ===== COLLABORATORS GRID ===== */
.collaborators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.collaborator-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid #2980b9;
}

.collaborator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.collaborator-card h3 {
    font-size: 1.2em;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.collaborator-card p {
    color: #555;
    margin: 0.25rem 0;
}

.collaborator-link {
    display: inline-block;
    margin-top: 0.8rem;
    color: #2980b9;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

.collaborator-link:hover {
    color: #1b4f72;
    text-decoration: underline;
}

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

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #7f8c8d;
}

.close:hover {
    color: #34495e;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-tabs {
        justify-content: center;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .subprojects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-tabs {
        flex-direction: column;
    }
}

/* Team Member Photos */
.member-photo {
    width: 150px;
    height: 150px;
    background: #ecf0f1;
    border-radius: 8px;
    margin: 0 auto 1rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Modal Team Member */
.modal-team-member {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.modal-photo {
    width: 200px;
    height: 200px;
    background: #ecf0f1;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.modal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.modal-info {
    flex: 1;
}

/* Responsive for modal */
@media (max-width: 768px) {
    .modal-team-member {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-photo {
        margin: 0 auto;
    }
}
/* ===== STYLES FOR PROJECT CARDS ===== */
.project-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  justify-content: center;
}
/* ===== PROJECTS LAYOUT ===== */
.project-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  justify-content: center;
}

.project-tab {
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background-color: #f8fafc;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  font-weight: 500;
  font-size: 15px;
}

.project-tab:hover {
  background-color: #e2e8f0;
}

.project-tab.active {
  background-color: #111827;
  color: #fff;
}

/* ===== PUBLICATION CARDS GRID ===== */
.publications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.pub-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pub-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-placeholder {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    #e5e7eb,
    #e5e7eb 10px,
    #f3f4f6 10px,
    #f3f4f6 20px
  );
}

.pub-info {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pub-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #111827;
}

.pub-abstract {
  flex-grow: 1;
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 14px;
}

.download-btn {
  align-self: start;
  background-color: #111827;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.download-btn:hover {
  background-color: #374151;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .project-tab {
    flex: 1 1 auto;
    font-size: 14px;
  }

  .pub-title {
    font-size: 15px;
  }

  .pub-abstract {
    font-size: 13px;
  }
}


/* ========================= NEW LINES ============================= */
/* ===== ABOUT SECTION STYLES ===== */
.about-intro {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 3rem;
    color: #555;
    line-height: 1.6;
}

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

.direction-block {
    margin: 4rem 0;
    padding: 2rem 0;
}

.direction-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.direction-block.reverse .direction-content {
    flex-direction: row-reverse;
}

.direction-text {
    flex: 1;
    padding: 1rem;
}

.direction-text h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.8em;
    border-left: 4px solid #3498db;
    padding-left: 1rem;
}

.direction-text p {
    line-height: 1.7;
    color: #555;
    font-size: 1.1em;
}

.direction-image {
    flex: 1;
    text-align: center;
    position: relative;
}

.direction-image img {
    width: 100%;
    max-width: 400px;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.direction-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.image-placeholder {
    width: 100%;
    max-width: 400px;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Alternating background colors for direction blocks */
.direction-block:nth-child(odd) {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 15px;
    margin: 3rem -2rem;
    padding: 2rem;
}

.direction-block:nth-child(even) {
    background: white;
}

/* Responsive design for about section */
@media (max-width: 768px) {
    .direction-content {
        flex-direction: column !important;
        gap: 2rem;
        text-align: center;
    }
    
    .direction-block.reverse .direction-content {
        flex-direction: column !important;
    }
    
    .direction-text h2 {
        border-left: none;
        border-top: 4px solid #3498db;
        padding-left: 0;
        padding-top: 1rem;
    }
    
    .direction-block:nth-child(odd) {
        margin: 2rem -1rem;
        padding: 1.5rem;
    }
    
    .direction-image img,
    .image-placeholder {
        max-width: 100%;
        height: 200px;
    }
    
    .about-intro {
        font-size: 1.1em;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .direction-text h2 {
        font-size: 1.5em;
    }
    
    .direction-text p {
        font-size: 1em;
    }
    
    .image-placeholder {
        height: 180px;
        font-size: 1.1em;
    }
}

/* ========================= NEW LINES ============================= */
/* ===== VIDEO GRID ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 25px;
    margin-top: 2rem;
}

.video-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform .2s ease, box-shadow .2s ease;
}

.video-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.video-preview {
    position: relative;
}

.video-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: .85;
    transition: transform .2s;
}

.video-preview:hover .video-play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 16px;
}

.video-description {
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
}

.video-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.watch-btn {
    display: inline-block;
    background: #111827;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: background .2s;
}

.watch-btn:hover {
    background: #374151;
}

/* Footer Styles */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 2rem 0 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-info h3 {
    color: #3498db;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item strong {
    min-width: 60px;
    color: #bdc3c7;
}

.contact-item a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #3498db;
    text-decoration: underline;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    margin-top: 2rem;
    padding: 1rem 0;
    text-align: center;
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .footer-links {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
}
.team-btn {
    display: inline-block;
    background: #2c3e50;
    color: #ffffff;
    padding: 10px 18px;
    margin: 6px 0;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: 0.25s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.team-btn:hover {
    background: #1f2d3a;
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.team-btn:active {
    transform: translateY(0px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
/* Contact Page */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    font-size: 15px;
    color: #2c3e50;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    margin-top: 0.5rem;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 15px;
    background: #f8fafc;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 4px rgba(52,152,219,0.4);
    outline: none;
}

.contact-btn {
    background: #111827;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.25s;
}

.contact-btn:hover {
    background: #1f2937;
}

.contact-note {
    text-align: center;
    color: #555;
    font-size: 14px;
    margin-top: 1rem;
    font-style: italic;
}
/* Centered Contact Header */
.contact-container {
    text-align: center;
}

.contact-header {
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.contact-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.contact-header p {
    color: #555;
    font-size: 1.1rem;
}

/* Courses Section Styles */
.course-section {
    margin: 30px 0;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.course-header {
    display: flex;
    cursor: pointer;
    padding: 25px;
    background: #f9f9f9;
    transition: background 0.3s ease;
    align-items: center;
    justify-content: space-between;
}

.course-header:hover {
    background: #f0f0f0;
}

.course-content {
    flex: 1;
    padding-right: 30px;
}

.course-content h2 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.course-content p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.course-image {
    width: 200px;
    height: 120px;
    flex-shrink: 0;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.course-details {
    display: none;
    padding: 30px;
    background: white;
    border-top: 1px solid #eee;
}

.course-details.active {
    display: block;
}

.course-description {
    margin-bottom: 25px;
}

.course-description h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.course-description p {
    line-height: 1.7;
    color: #555;
}

.course-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.course-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 60px;
}

.course-link-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}
/* ===== REVIEWS GRID ===== */
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 2rem;
}

.review-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: white;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.1);
}

.review-image {
    flex: 0 0 300px;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
}

.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.review-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111827;
}

.review-authors {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 14px;
}

.review-abstract {
    font-size: 15px;
    color: #4b5563;
    margin-bottom: 20px;
}

.review-buttons {
    margin-top: auto;
    display: flex;
    gap: 14px;
}

.review-btn {
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    color: white;
    background: #111827;
    transition: background .2s;
}

.review-btn:hover {
    background: #374151;
}

.review-btn.pdf {
    background: #2563eb;
}
.review-btn.pdf:hover {
    background: #1d4ed8;
}

@media (max-width: 768px) {
    .review-card {
        flex-direction: column;
    }
    .review-image {
        width: 100%;
        height: 200px;
    }
}

