/* Enhanced Styling for Uday Mahavidyalaya */

:root {
  --primary-gradient: linear-gradient(135deg, #ff4f01 0%, #ff8a00 100%);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #ff4f01;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e64600;
}

/* Global Typography Polish */
body {
  font-family: 'Open Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  letter-spacing: -0.5px;
}

/* Header Enhancements */
.header {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.scrolled .header {
  padding: 10px 0;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1) !important;
}

/* Button Enhancements */
.btn-getstarted, .read-more {
  background: var(--primary-gradient) !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(255, 79, 1, 0.3);
  transition: all 0.3s ease !important;
}

.btn-getstarted:hover, .read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 79, 1, 0.4);
}

/* Card Enhancements */
.card, .member, .stats-item, .blog-item {
  border: none !important;
  border-radius: 12px !important;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
}

.card:hover, .member:hover, .blog-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Section Spacing */
section {
  padding: 80px 0;
}

/* Footer Polish */
.footer {
  background-color: #1a1e1b !important;
  color: #e9ecef !important;
}

.footer h4 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.footer h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: #ff4f01;
}

/* Animation for stats */
.stats-item i {
  transition: transform 0.3s ease;
}

.stats-item:hover i {
  transform: scale(1.2) rotate(10deg);
}

/* Better responsive table */
.table-container {
  overflow-x: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.course-table th {
  background: #ff4f01 !important;
}

/* Mobile Friendly Overrides */
@media (max-width: 768px) {
  section {
    padding: 40px 0 !important;
  }
  
  .about-hero h1 {
    font-size: 2.5rem !important;
  }
  
  #hero h2 {
    font-size: 1.8rem !important;
  }
  
  #hero p {
    font-size: 1rem !important;
  }

  .testimonial-card {
    padding: 20px !important;
    margin: 10px 0 !important;
  }

  .legacy-table th, .legacy-table td {
    padding: 8px 10px !important;
    font-size: 0.8rem !important;
  }

  .section-banner {
    font-size: 0.9rem !important;
    padding: 8px !important;
  }

  .chart-header h2 {
    font-size: 1.4rem !important;
  }

  .chart-header h3 {
    font-size: 1rem !important;
  }

  .footer-contact h3 {
    font-size: 1.2rem !important;
  }

  .contact-box {
    flex-direction: column !important;
  }

  .contact-item {
    margin-bottom: 20px;
    text-align: center;
  }

  .divider {
    display: none;
  }

  .mobile-nav-toggle {
    z-index: 9999 !important;
    position: relative;
    color: #37423b;
    margin-left: 15px;
  }

  /* Mobile Menu Redesign to match 2nd image */
  .mobile-nav-active .navmenu {
    background: rgba(0, 0, 0, 0.6) !important;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: fixed;
    inset: 0 10% 0 0 !important; /* Sidebar from top to bottom, 90% width */
    padding: 80px 0 20px 0 !important;
    margin: 0;
    border-radius: 0 !important;
    background-color: #ffffff !important;
    border: none !important;
    box-shadow: 10px 0 40px rgba(0,0,0,0.3) !important;
    z-index: 10000 !important;
    overflow-y: auto !important;
    height: 100vh !important;
  }

  .mobile-nav-active .navmenu ul {
    display: flex !important;
    flex-direction: column !important;
  }

  .navmenu ul li {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .navmenu ul a {
    color: #272828 !important;
    padding: 18px 30px !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    display: block !important;
    width: 100% !important;
    border-bottom: 1px solid #f0f0f0 !important;
    text-align: left !important;
  }

  .navmenu ul a:hover, .navmenu ul .active {
    color: #5fcf80 !important;
    background: #fdfdfd !important;
  }

  .navmenu ul li:last-child a {
    border-bottom: none !important;
  }

  .mobile-nav-active .mobile-nav-toggle {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    color: #fff !important;
    background: #000;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10001 !important;
  }
}

@media (max-width: 575px) {
  .about-hero h1 {
    font-size: 2rem !important;
  }
  
  .mv-card {
    padding: 20px !important;
  }

  .value-item {
    padding: 15px !important;
  }

  .value-icon {
    width: 45px !important;
    height: 45px !important;
    font-size: 1.2rem !important;
    margin-right: 15px !important;
  }
}
