:root {
  --primary: #097b3e;
  --secondary: #e67e22;
  --accent: #d35400;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border: #e0e6ed;
  --shadow: rgba(26, 77, 122, 0.08);
  --gradient: linear-gradient(135deg, #1a4d7a 0%, #2980b9 100%);
}

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

body {
  font-family: "DM Sans", sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Crimson Pro", serif;
  font-weight: 600;
  line-height: 1.3;
}

/* Header & Navigation */
header {
  background: var(--bg-white);
  box-shadow: 0 2px 20px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Crimson Pro", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--secondary);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--secondary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background: var(--gradient);
  color: #d89837;
  padding: 15rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out;
}

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

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;

  font-weight: 700;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Main Container */
.container {
  max-width: 1400px;
  margin: -8rem auto;
  padding: 4rem 2rem;
}

section {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

/* Image Container */
.hero-image {
  max-width: 100%;
  height: 400px;
  background: var(--bg-light);
  border-radius: 12px;
  margin: 2rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 10px 40px var(--shadow);
  position: relative;
}

.hero-image::before {
  content: "Institute of ODeL - Customer Care Building";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
}

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

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border-top: 4px solid var(--secondary);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--shadow);
}

.value-card h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.value-card h3::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
}

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

/* About Section */
.about-content {
  background: var(--bg-light);
  padding: 3rem;
  border-radius: 12px;
  border-left: 5px solid var(--secondary);
}

.about-content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

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

.mv-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow);
}

.mv-card h3 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.core-values {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.core-value-tag {
  background: var(--primary);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Programmes */
.programme-category {
  margin-bottom: 3rem;
}

.programme-category h3 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.programme-list {
  display: grid;
  gap: 1rem;
}

.programme-item {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--secondary);
  box-shadow: 0 2px 10px var(--shadow);
  transition: transform 0.3s ease;
}

.programme-item:hover {
  transform: translateX(5px);
}

.programme-item h4 {
  color: var(--text-dark);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.coming-soon {
  display: inline-block;
  background: var(--secondary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

/* Library Section */
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.library-item {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow);
  text-align: center;
  transition: transform 0.3s ease;
}

.library-item:hover {
  transform: scale(1.05);
}

.library-item::before {
  content: "📚";
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.library-item h4 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Student Life */
.student-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow);
}

.service-card h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.service-card ul {
  list-style: none;
  padding: 0;
}

.service-card li {
  padding: 0.75rem 0;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
  position: relative;
  padding-left: 1.5rem;
}

.service-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

.service-card li:last-child {
  border-bottom: none;
}

/* Director Message */
.director-message {
  background: var(--gradient);
  color: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px var(--shadow);
  position: relative;
  overflow: hidden;
}

.director-message::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 150px;
  opacity: 0.1;
  font-family: Georgia, serif;
}

.director-message p {
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.director-info {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.director-info h4 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.director-info p {
  opacity: 0.9;
  font-size: 0.95rem;
  margin: 0;
}

/* FAQ Section */
.faq-item {
  background: var(--bg-white);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--shadow);
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 20px var(--shadow);
}

.faq-item h4 {
  color: var(--primary);
  font-size: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.contact-item {
  text-align: center;
  padding: 2rem;
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow);
}

.contact-item h4 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.contact-item a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
}

/* Footer */
footer {
  background: var(--text-dark);
  color: white;
  padding: 3rem 2rem 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--secondary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-white);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    box-shadow: 0 10px 40px var(--shadow);
    transition: left 0.3s ease;
  }

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

  .menu-toggle {
    display: flex;
  }

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

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

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

  .hero h1 {
    font-size: 2rem;
  }

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

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

  .values-grid,
  .mission-vision,
  .student-services,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    height: 250px;
  }

  nav {
    padding: 1rem;
  }

  .container {
    padding: 2rem 1rem;
  }

  .about-content,
  .director-message {
    padding: 1.5rem;
  }
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

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

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

/* Staff Grid */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.staff-card {
  background: var(--bg-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
}

.staff-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px rgba(26, 77, 122, 0.15);
}

.staff-card.director {
  grid-column: 1 / -1;
  max-width: 100%;
  margin: 0 auto;
}

.staff-card.director .staff-content {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  padding: 2rem;
}

.staff-image {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, #097b3e 100%, #d89837 0%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.staff-image img {
  width: 275px;
  height: 278px;
  border-radius: 50%;
  border: 4px solid #d89837;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.staff-card.director .staff-image {
  height: 100%;
  min-height: 320px;
}

.staff-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
}

.staff-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 4px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.staff-card.director .staff-avatar {
  width: 150px;
  height: 150px;
  font-size: 4rem;
}

.staff-info {
  padding: 2rem;
  text-align: center;
}

.staff-card.director .staff-info {
  text-align: left;
  padding: 2rem 2rem 2rem 0;
}

.staff-name {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.staff-card.director .staff-name {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.staff-title {
  color: var(--secondary);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
  display: block;
}

.staff-card.director .staff-title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.staff-description {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-top: 1rem;
}

.staff-badge {
  display: inline-block;
  background: rgba(230, 126, 34, 0.1);
  color: var(--secondary);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 1rem;
}

.staff-contact {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.staff-card.director .staff-contact {
  justify-content: flex-start;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--bg-light);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background: var(--secondary);
  color: white;
  transform: translateY(-2px);
}

/* Decorative corner accent */
.staff-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: var(--secondary);
  opacity: 0.1;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

/* Animation on load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.staff-card {
  animation: fadeInUp 0.6s ease-out backwards;
}

.staff-card:nth-child(1) {
  animation-delay: 0.1s;
}
.staff-card:nth-child(2) {
  animation-delay: 0.2s;
}
.staff-card:nth-child(3) {
  animation-delay: 0.3s;
}
.staff-card:nth-child(4) {
  animation-delay: 0.4s;
}
.staff-card:nth-child(5) {
  animation-delay: 0.5s;
}

/* Responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .staff-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .staff-card.director .staff-content {
    grid-template-columns: 1fr;
  }

  .staff-card.director .staff-image {
    height: 280px;
    min-height: auto;
  }

  .staff-card.director .staff-info {
    text-align: center;
    padding: 2rem;
  }

  .staff-card.director .staff-contact {
    justify-content: center;
  }

  .staff-name {
    font-size: 1.3rem;
  }

  .staff-card.director .staff-name {
    font-size: 1.6rem;
  }
}

/* Department label */
.department-label {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  font-weight: 500;
}
