/* ===========================
   CSS Reset and Base Styles
   =========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1a3a52;
  --secondary-color: #2c5f7f;
  --accent-color: #4a90b8;
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --background-light: #f8f9fa;
  --background-white: #ffffff;
  --border-color: #e0e0e0;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background-white);
  overflow-x: hidden;
}

/* ===========================
   Typography
   =========================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-color);
}

/* ===========================
   Layout Utilities
   =========================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--primary-color);
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
}

/* ===========================
   Header & Navigation
   =========================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--background-white);
  box-shadow: var(--shadow-md);
  z-index: 1000;
  transition: var(--transition);
}

.navbar {
  padding: 0;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.logo-image {
  height: 50px;
  width: auto;
  transition: var(--transition);
}

.logo-image:hover {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
  margin: 0 auto; /* ← CENTER THE MENU */
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-color);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 3px 0;
  transition: var(--transition);
}

/* Hamburger Animation */
.hamburger.active .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* ===========================
   Home Section
   =========================== */

.home-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.home-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(
    circle,
    rgba(74, 144, 184, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Floating Logo - Hanging Outside Card */
.hero-logo {
  position: absolute;
  top: -15px;
  right: 10px;
  z-index: 100;
  animation: floatLogo 3s ease-in-out infinite;
}

.floating-logo {
  width: 100px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.floating-logo:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Floating Animation */
@keyframes floatLogo {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Hero Image */
.hero-image-container {
  position: relative;
  z-index: 1;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: fadeInLeft 0.8s ease-out;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(26, 58, 82, 0.7), transparent);
  pointer-events: none;
}

/* Hero Card - Overlapping */
.hero-card {
  position: relative;
  background: var(--background-white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  z-index: 2;
  margin-left: -100px;
  animation: fadeInRight 0.8s ease-out;
  border-left: 5px solid var(--accent-color);
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--primary-color)
  );
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.hero-institution {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), transparent);
  margin: 1.5rem 0;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* Stats Section */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.25rem;
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}

.btn svg {
  transition: transform 0.3s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--background-white);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74, 144, 184, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--background-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 58, 82, 0.3);
}

/* Hero Social Icons */
.hero-social {
  display: flex;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--background-light);
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--primary-color);
  color: var(--background-white);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(26, 58, 82, 0.3);
}

/* Animations */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
  .hero-card {
    margin-left: -50px;
  }

  .hero-logo {
    top: -40px;
    right: 15px;
  }

  .floating-logo {
    width: 90px;
  }
}

@media screen and (max-width: 968px) {
  .home-hero {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-card {
    margin-left: 0;
    margin-top: -80px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-logo {
    top: -40px;
    right: 15px;
  }

  .floating-logo {
    width: 80px;
  }
}

@media screen and (max-width: 768px) {
  .home-section {
    padding: 100px 0 60px;
  }

  .hero-card {
    padding: 2rem;
    margin-top: -60px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    gap: 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .hero-logo {
    top: 32px;
    right: 10px;
  }

  .floating-logo {
    width: 70px;
  }
}

@media screen and (max-width: 480px) {
  .hero-card {
    padding: 1.5rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-social {
    justify-content: center;
  }

  .hero-logo {
    top: 32px;
    right: 5px;
  }

  .floating-logo {
    width: 60px;
  }
}

/* ===========================
   Buttons
   =========================== */

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 4px;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--background-white);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--background-white);
}

/* ===========================
   About Section
   =========================== */

.about-section {
  background-color: var(--background-white);
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-text h3 {
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.about-text h3:first-child {
  margin-top: 0;
}

.about-text p {
  text-align: justify;
  line-height: 1.8;
}

.subsection-title {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-top: 2.5rem;
}

.research-list {
  list-style: none;
  padding: 0;
}

.research-list li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--text-secondary);
}

.research-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.education-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.education-item:last-child {
  border-bottom: none;
}

.education-item h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.education-item p {
  margin-bottom: 0.25rem;
}

/* Biography paragraph styling */
.about-text > p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  text-align: justify;
}

.subsection-title:first-of-type {
  margin-top: 0;
}

/* Experience Items Styling */
.experience-item {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background-color: var(--background-light);
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.experience-header h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.experience-date {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  background-color: var(--background-white);
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  white-space: nowrap;
}

.experience-company {
  color: var(--secondary-color);
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.experience-category {
  margin-bottom: 1.5rem;
}

.experience-category h5 {
  color: var(--secondary-color);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.experience-list {
  list-style: none;
  padding: 0;
  margin-left: 0;
}

.experience-list li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.6;
}

.experience-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
  font-size: 1.1rem;
}

/* Education Items Styling */
.education-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--background-light);
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
}

.education-item:last-child {
  margin-bottom: 0;
}

.education-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.education-header h4 {
  color: var(--primary-color);
  margin-bottom: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.education-date {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  background-color: var(--background-white);
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  white-space: nowrap;
}

.education-institution {
  color: var(--secondary-color);
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.education-distinction {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.95rem;
  font-style: italic;
  margin: 0;
}

/* Responsive adjustments for education section */
@media screen and (max-width: 768px) {
  .education-header {
    flex-direction: column;
  }

  .education-date {
    align-self: flex-start;
  }

  .education-item {
    padding: 1.25rem;
  }
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .experience-header {
    flex-direction: column;
  }

  .experience-date {
    align-self: flex-start;
  }

  .experience-item {
    padding: 1.25rem;
  }
}

/* ===========================
   Awards Section
   =========================== */

.awards-section {
  background-color: var(--background-light);
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.award-card {
  background-color: var(--background-white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.award-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--accent-color);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.award-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.award-card:hover::before {
  transform: scaleY(1);
}

/* Award Image Container */
.award-image-container {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  cursor: pointer;
}

.award-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.award-image-container:hover .award-image {
  transform: scale(1.05);
}

/* Zoom Overlay Icon */
.zoom-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.award-image-container:hover .zoom-overlay {
  opacity: 1;
}

/* Award Content */
.award-content {
  padding: 1.5rem;
  flex-grow: 1;
}

.award-title {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.15rem;
  line-height: 1.4;
}

.award-description {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Award Year Badge - Bottom Right */
.award-year {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background-color: var(--primary-color);
  color: var(--background-white);
  padding: 0.375rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* Image Modal for Full Size View */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
  cursor: zoom-out;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  animation: zoom 0.3s;
}

@keyframes zoom {
  from {
    transform: scale(0.8);
  }
  to {
    transform: scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
  color: #bbb;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .awards-grid {
    grid-template-columns: 1fr;
  }

  .award-image-container {
    height: 200px;
  }

  .award-content {
    padding: 1.25rem;
  }

  .modal-content {
    max-width: 95%;
  }
}

/* ===========================
   Media Section - Optimized for Interview Photo
   =========================== */

.media-section {
  background-color: var(--background-white);
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.media-card {
  background-color: var(--background-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: grid;
  grid-template-columns: 500px 1fr; /* Fixed width for image, flexible for text */
  gap: 0;
}

.media-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Media Image Container - Optimized Size */
.media-image-container {
  position: relative;
  width: 500px; /* Fixed width */
  height: 100%;
  min-height: 450px; /* Comfortable height */
  overflow: hidden;
  cursor: pointer;
  background-color: #2c3e50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crop nicely */
  object-position: center;
  transition: transform 0.4s ease;
}

.media-image-container:hover .media-image {
  transform: scale(1.05);
}

/* Zoom Overlay Icon */
.media-image-container .zoom-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.media-image-container:hover .zoom-overlay {
  opacity: 1;
}

/* Media Badge */
.media-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem; /* Changed to left for better visibility */
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--primary-color)
  );
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.media-badge svg {
  width: 18px;
  height: 18px;
}

/* Media Content */
.media-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.media-title {
  color: var(--primary-color);
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 700;
}

.media-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
}

.media-event,
.media-location {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.media-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

/* Media Tags */
.media-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}

.tag {
  background-color: var(--background-white);
  color: var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1.5px solid var(--accent-color);
  transition: all 0.3s ease;
}

.tag:hover {
  background-color: var(--accent-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(74, 144, 184, 0.3);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .media-card {
    grid-template-columns: 400px 1fr;
  }

  .media-image-container {
    width: 400px;
    min-height: 400px;
  }

  .media-content {
    padding: 2.5rem;
  }
}

@media screen and (max-width: 868px) {
  .media-card {
    grid-template-columns: 1fr;
  }

  .media-image-container {
    width: 100%;
    min-height: 350px;
    max-height: 450px;
  }

  .media-content {
    padding: 2rem;
  }
}

@media screen and (max-width: 480px) {
  .media-image-container {
    min-height: 280px;
    max-height: 350px;
  }

  .media-content {
    padding: 1.5rem;
  }

  .media-title {
    font-size: 1.25rem;
  }

  .media-badge {
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* ===========================
   Articles Section
   =========================== */

.articles-section {
  background-color: var(--background-white);
}

.articles-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.625rem 1.5rem;
  background-color: var(--background-light);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color);
  color: var(--background-white);
  border-color: var(--primary-color);
}

.articles-list {
  display: grid;
  gap: 2rem;
}

.article-card {
  background-color: var(--background-white);
  padding: 2rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: var(--transition);
  display: block;
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(5px);
}

.article-type {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--background-white);
  padding: 0.25rem 0.875rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.article-title {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.article-authors {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.article-venue {
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.article-abstract {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.article-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-link {
  padding: 0.5rem 1.25rem;
  background-color: var(--background-light);
  color: var(--primary-color);
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.article-link:hover {
  background-color: var(--primary-color);
  color: var(--background-white);
  border-color: var(--primary-color);
}

/* ===========================
   Contact Section
   =========================== */

.contact-section {
  background-color: var(--background-light);
}

.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact-info p {
  line-height: 1.8;
}

.info-item {
  margin-bottom: 2rem;
}

.info-item h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.info-item p,
.info-item a {
  color: var(--text-secondary);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: var(--primary-color);
  color: var(--background-white);
  border-radius: 50%;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

/* ===========================
   Contact Form
   =========================== */

.contact-form-container {
  background-color: var(--background-white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  padding: 0.875rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background-color: var(--background-white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(74, 144, 184, 0.1);
}

.form-group textarea {
  resize: vertical;
}

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
  font-weight: 500;
  display: none;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

/* ===========================
   Footer
   =========================== */

.footer {
  background-color: var(--primary-color);
  color: var(--background-white);
  text-align: center;
  padding: 2rem 0;
}

.footer p {
  color: var(--background-white);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* ===========================
   Animations
   =========================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   Responsive Design
   =========================== */

/* Tablet (768px and below) */
@media screen and (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    flex-direction: column;
    background-color: var(--background-white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-lg);
    padding: 2rem 0;
    gap: 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 1rem 0;
  }

  .hamburger {
    display: flex;
  }

  .section {
    padding: 3rem 0;
  }

  .container {
    padding: 0 1.5rem;
  }

  .home-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .awards-grid {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .articles-filter {
    gap: 0.5rem;
  }

  .filter-btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
}

/* Mobile (480px and below) */
@media screen and (max-width: 480px) {
  .nav-container {
    padding: 0 1rem;
    height: 70px;
  }

  .logo-image {
    height: 40px;
  }

  .nav-menu {
    top: 70px;
  }

  .section {
    padding: 2.5rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  .section-title {
    margin-bottom: 2rem;
  }

  .award-card,
  .article-card,
  .contact-form-container {
    padding: 1.5rem;
  }

  .home-section {
    min-height: calc(100vh - 70px);
  }

  .social-links {
    flex-wrap: wrap;
  }
}

/* Large Desktop (1400px and above) */
@media screen and (min-width: 1400px) {
  .container {
    padding: 0 3rem;
  }

  .section {
    padding: 6rem 0;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Print Styles */
@media print {
  .header,
  .hamburger,
  .home-buttons,
  .contact-form,
  .footer {
    display: none;
  }

  .section {
    page-break-inside: avoid;
  }

  body {
    font-size: 12pt;
  }

  a {
    text-decoration: underline;
  }
}

/* reCAPTCHA Notice */
.recaptcha-notice {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
}

.recaptcha-notice a {
  color: var(--accent-color);
  text-decoration: underline;
}

.recaptcha-notice a:hover {
  color: var(--primary-color);
}

.grecaptcha-badge {
  visibility: hidden;
}

/* Button Loading State */
.button-loader {
  display: inline-block;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===========================
   Campus Map Section
   =========================== */

.campus-map-compact {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.btn-map-compact {
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--primary-color)
  );
  color: white;
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(74, 144, 184, 0.3);
  width: 100%;
  justify-content: center;
}

.btn-map-compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 144, 184, 0.4);
}

.btn-map-compact svg {
  flex-shrink: 0;
}

/* ===========================
   Campus Map Modal
   =========================== */

.map-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  animation: fadeIn 0.3s ease;
  overflow: auto;
}

.map-modal-content {
  position: relative;
  background-color: var(--background-white);
  margin: 2% auto;
  width: 90%;
  max-width: 1200px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideDown 0.4s ease;
}

.map-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: white;
  border-radius: 12px 12px 0 0;
}

.map-modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.map-close {
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  font-weight: 300;
  cursor: pointer;
  transition: transform 0.3s ease;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.map-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.map-modal-body {
  padding: 2rem;
}

.map-modal-body img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  cursor: zoom-in;
}

.map-info {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background-color: var(--background-light);
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
}

.map-info p {
  margin: 0.75rem 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

.map-info strong {
  color: var(--primary-color);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive */
@media screen and (max-width: 768px) {
  .map-modal-content {
    width: 95%;
    margin: 5% auto;
  }

  .map-modal-header {
    padding: 1rem 1.5rem;
  }

  .map-modal-header h3 {
    font-size: 1.2rem;
  }

  .map-modal-body {
    padding: 1.5rem;
  }

  .btn-map-compact {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
}

@media screen and (max-width: 480px) {
  .map-modal-content {
    width: 98%;
    margin: 2% auto;
  }

  .map-modal-header h3 {
    font-size: 1rem;
  }

  .map-close {
    font-size: 2rem;
  }
}
