/* CSS Variables */
:root {
  --primary: #0491c8;
  --secondary: #f35625;
  --background: #f9f9f9;
  --light: #fff;
  --dark: #222;
  --accent: #246075;
  --border-color: #e0e0e0;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: var(--background);
  color: var(--dark);
  line-height: 1.6;
}

/* Header Styles */
header {
  background: var(--light);
  padding: 15px 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
  z-index: 100;
}

.logo {
  height: 100px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.institute-name {
  font-weight: 700;
  font-size: 24px;
  color: var(--primary);
  text-align: center;
  flex-grow: 1;
  padding: 0 20px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
  position: relative;
}

.institute-name::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 25%;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.skip-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 15px;
  border: 2px solid var(--primary);
  border-radius: 30px;
  transition: all 0.3s ease;
}

.skip-link:hover {
  background-color: var(--primary);
  color: white;
}

/* Navigation Styles */
nav {
  background-color: var(--primary);
  width: 100%;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  color: white;
  padding: 15px 20px;
  display: block;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--light);
  z-index: 999;
  min-width: 200px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 0 0 5px 5px;
}

.submenu li a {
  color: var(--dark);
  padding: 10px 15px;
}

.submenu li a:hover {
  background: var(--background);
}

.haschildren:hover .submenu {
  display: block;
}

/* Slider/Swiper Styles */
.swiper {
  width: 100%;
  height: 350px;
  margin-top: 0;
  z-index: 1;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.alert-bar {
  background-color: var(--primary);
  color: white;
  padding: 10px;
  text-align: center;
  font-weight: 500;
  margin: 0;
}

.marquee {
  display: inline-block;
  padding-left: 10px;
}

/* Main Content Layout */
.container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  gap: 20px;
  padding: 30px 15px;
  flex-wrap: wrap;
}

.main-content {
  flex: 3;
  min-width: 300px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Sidebar Styles */
.sidebar {
  width: 260px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sidebar-menu {
  background-color: var(--light);
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  overflow: hidden;
}

.sidebar-item {
  border-bottom: 1px solid var(--border-color);
}

.sidebar-item:last-child {
  border-bottom: none;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  color: var(--dark);
  text-decoration: none;
  transition: all 0.3s ease;
}

.sidebar-link:hover {
  background-color: var(--primary);
  color: white;
}

.sidebar-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  object-fit: contain;
}

.sidebar-card {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.sidebar-card:hover {
  transform: translateY(-3px);
}

.sidebar-card img {
  width: 100%;
  display: block;
}

/* Why NSJS Section */
.why-nsjs {
  background-color: var(--light);
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.why-nsjs h3 {
  color: var(--primary);
  margin-top: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.why-nsjs ul {
  list-style-type: none;
  padding-left: 0;
}

.why-nsjs li {
  padding: 8px 0;
  display: flex;
  align-items: flex-start;
}

.why-nsjs li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* Content Elements */
.director-section {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.director-image {
  border-radius: 8px;
  flex-shrink: 0;
}

.read-more {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
}

.read-more:hover {
  text-decoration: underline;
}

h2 {
  color: var(--secondary);
  margin: 20px 0 10px;
  font-size: 1.5rem;
}

h3 {
  color: var(--primary);
  margin: 15px 0 8px;
  font-size: 1.2rem;
}

p {
  margin-bottom: 15px;
  text-align: justify;
}

ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

ul li {
  margin-bottom: 8px;
}

/* Quick Links Section */
.quick-links {
  margin-top: 40px;
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.quick-links h2 {
  text-align: center;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.quick-links h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.quick-links-section {
  background: var(--background);
  padding: 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.quick-links-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.quick-links-section h3 {
  color: var(--primary);
  margin-top: 0;
  padding-bottom: 8px;
  border-bottom: 2px dashed var(--border-color);
  font-size: 1.1rem;
}

.quick-links-list {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
}

.quick-links-list li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 20px;
}

.quick-links-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: var(--secondary);
  border-radius: 50%;
}

.quick-links-list a {
  color: var(--dark);
  text-decoration: none;
  display: block;
  padding: 5px 0;
  transition: all 0.3s ease;
  font-weight: 500;
}

.quick-links-list a:hover {
  color: var(--primary);
  padding-left: 5px;
}

/* Documents Grid */
.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.document-item {
  text-align: center;
}

.document-item img {
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 5px;
}

.document-item a {
  color: var(--dark);
  text-decoration: none;
  font-size: 0.9rem;
}

.document-item a:hover {
  color: var(--primary);
}

/* Footer Styles */
footer {
  background-color: #666;
  color: white;
  text-align: center;
  padding: 30px 10px;
  margin-top: 20px;
}

.footer-content {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-text {
  margin-bottom: 15px;
}

.footer-link {
  color: white;
  text-decoration: underline;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-icon {
  width: 35px;
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }
  
  .institute-name {
    padding: 10px 0;
  }
  
  .nav-menu {
    flex-direction: column;
  }
  
  .container {
    flex-direction: column;
  }
  
  .main-content, .sidebar {
    width: 100%;
  }
  
  .director-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .director-image {
    margin-bottom: 15px;
  }
  
  .swiper {
    height: 250px;
  }
}