:root {
  --primary-color: #1a237e;
  --secondary-color: #ff6f00;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --border-color: #dee2e6;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f8f9fa;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 400px;
  background: linear-gradient(135deg, #00205b 55%, transparent 45%);
  overflow: hidden;
}

.hero-content {
  position: absolute;
  left: 80px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  max-width: 500px;
  z-index: 2;
}

.hero-content h2 {
  font-size: 36px;
  margin-bottom: 30px;
  font-weight: 600;
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero-buttons .primary-btn {
  background: #f47920;
  color: white;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.3s;
}

.hero-buttons .primary-btn:hover {
  background: #e06810;
}

/* Important Note */
.important-note {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 12px 20px;
  font-size: 13px;
  line-height: 1.4;
  z-index: 3;
}

/* Main Content Layout */
.main-content {
  max-width: 1400px;
  margin: 30px auto;
  padding: 0 30px;
  margin-bottom: 0;
}

.grid-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-bottom: 60px;
}

/* About Section */
.about-section {
  background: white;
  padding: 20px 25px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.about-section h3 {
  color: #f47920;
  font-size: 20px;
  margin-bottom: 10px;
}

.about-section h2 {
  color: #00205b;
  font-size: 32px;
  margin-bottom: 15px;
  font-weight: 600;
}

.about-section p {
  color: #555;
  line-height: 1.6;
  font-size: 16px;
  max-width: 1000px;
}

/* Medical Authority Section */
.medical-authority-section {
  background: #00205b;
  color: white;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
}

.medical-authority-section h2 {
  font-size: 24px;
  margin-bottom: 25px;
}

.india-map {
  margin: 20px 0;
}

.india-map img {
  max-width: 200px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.authority-btn {
  display: inline-block;
  background: #f47920;
  color: white;
  padding: 12px 25px;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 20px;
  transition: background 0.3s;
}

.authority-btn:hover {
  background: #e06810;
}

/* News Section */
.news-section {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.news-header {
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #eee;
}

.news-header h2 {
  color: #00205b;
  font-size: 24px;
  font-weight: 600;
}

.view-all {
  color: #f47920;
  text-decoration: none;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 4px;
  transition: all 0.3s;
}

.view-all span {
  font-size: 18px;
}

.view-all:hover {
  background: rgba(244, 121, 32, 0.1);
}

.news-list {
  padding: 15px 25px;
}

.news-item {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.news-item:last-child {
  border-bottom: none;
}

.date {
  color: #f47920;
  font-size: 14px;
  font-weight: 500;
  display: block;
  margin-bottom: 5px;
}

.news-item p {
  color: #333;
  font-size: 14px;
  line-height: 1.6;
}

/* Gallery Section */
.gallery-section {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gallery-header {
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #eee;
}

.tabs {
  display: flex;
  gap: 15px;
}

.tab {
  background: none;
  border: none;
  padding: 0;
  color: #666;
  font-size: 17px;
  cursor: pointer;
  font-weight: 500;
  padding: 0 15px;
}

.tab.active {
  color: #00205b;
  position: relative;
}

.tab.active::after {
  content: "";
  position: absolute;
  bottom: -22px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #00205b;
}

/* Top Bar Styles */
.top-bar {
  background: #f5f5f5;
  padding: 5px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Main Header */
.main-header {
  position: relative;
  padding: 15px 30px;
  padding-top: 35px;
  background: white;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.emblem-logo {
  width: 60px;
  height: auto;
}

.ddrc-logo {
  width: 80px;
  height: auto;
}

.header-text {
  flex: 1;
}

.header-text h1 {
  color: #00205b;
  font-size: 24px;
  margin-bottom: 5px;
}

.header-text p {
  color: #333;
  font-size: 13px;
  margin: 0;
  line-height: 1.3;
}

/* Slideshow Styles */
.slideshow-container {
  position: relative;
  height: 400px;
  overflow: hidden;
  background: linear-gradient(135deg, #00205b 55%, transparent 45%);
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slide.active {
  display: block;
  opacity: 1;
}

.slide-content {
  position: absolute;
  left: 80px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  max-width: 500px;
  z-index: 2;
}

.slide-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
  font-weight: 600;
}

.slide-content p {
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.6;
  opacity: 0.9;
}

.slide-image {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
}

.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

/* Slide Controls */
.slide-controls {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  padding: 0 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}

.slide-buttons {
  display: flex;
  gap: 10px;
}

.prev,
.next,
.pause-play {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background-color 0.3s;
}

.prev:hover,
.next:hover,
.pause-play:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero-buttons .primary-btn {
  background: #f47920;
  color: white;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.3s;
}

.hero-buttons .primary-btn:hover {
  background: #e06810;
}

/* Important Note */
.important-note {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 12px 20px;
  font-size: 13px;
  line-height: 1.4;
}

/* Fade Animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

/* Remove all login section related styles */
.login-section,
.separator {
  display: none;
}

/* Navigation Styles */
.main-nav {
  display: flex;
  align-items: center;
  background: #00205b;
  padding: 8px 30px;
}

.main-nav a {
  color: white;
  text-decoration: none;
  padding: 8px 15px;
  font-size: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-icon {
  padding: 8px 20px 8px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-icon img {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

/* Push login buttons to the right */
.nav-spacer {
  flex: 1;
  border-right: none !important;
}

/* Style for login links in navigation */
.nav-login-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  margin-left: 5px;
  border-right: none !important;
  transition: background 0.2s;
}

.nav-login-btn:hover {
  background: rgba(244, 121, 32, 0.9) !important;
}

.nav-login-btn:first-of-type {
  background: #f47920;
}

.nav-login-btn:last-of-type {
  background: #e06810;
}

.nav-login-btn img {
  width: 16px;
  height: 16px;
}

/* Update News Section */
.news-section.wide {
  background: #00205b;
  color: white;
  padding: 0;
  margin-top: 40px;
}

.news-section.wide .news-header {
  background: rgba(255, 255, 255, 0.1);
  border-bottom: none;
  padding: 20px 30px;
}

.news-section.wide .news-header h2 {
  color: white;
  font-size: 20px;
}

.news-section.wide .news-list {
  padding: 20px 30px;
  max-height: 350px;
}

.news-section.wide .news-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 0;
}

.news-section.wide .news-item:last-child {
  border-bottom: none;
}

.news-section.wide .date {
  color: #f47920;
}

.news-section.wide p {
  color: white;
  opacity: 0.9;
}

/* FAQ Section */
.faq-section {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
  padding: 0;
}

.faq-header {
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #eee;
}

.faq-header h2 {
  color: #00205b;
  font-size: 20px;
  font-weight: 600;
}

.accordion {
  padding: 15px 25px;
  max-height: 350px;
}

.accordion-item {
  border: none;
  border-bottom: 1px solid #eee;
  margin-bottom: 10px;
}

.accordion-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.accordion-button {
  padding: 15px 0;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  background: none;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  color: #00205b;
  background: none;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333' stroke-linecap='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2300205b' stroke-linecap='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.accordion-body {
  padding: 0 0 15px 0;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

/* Update Gallery Section */
.gallery-content {
  padding: 15px 25px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gallery-item {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 4px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

/* Make sections same height but shorter */
.about-section,
.news-section.wide,
.faq-section,
.gallery-section {
  height: 350px;
  margin: 0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

/* Adjust padding for headers */
.news-section.wide .news-header,
.faq-header,
.gallery-header {
  padding: 15px 25px;
}

/* Adjust content padding */
.about-section {
  padding: 20px 25px;
}

.news-section.wide .news-list,
.accordion,
.gallery-content {
  padding: 15px 25px;
  flex: 1;
  overflow-y: auto;
}

/* Gallery adjustments */
.gallery-grid {
  gap: 12px;
}

/* Restore font sizes to original */
.about-section h3 {
  font-size: 20px;
}
.about-section h2 {
  font-size: 32px;
}
.about-section p {
  font-size: 16px;
}
.news-header h2 {
  font-size: 24px;
}
.news-item p {
  font-size: 14px;
}
.date {
  font-size: 14px;
}
.view-all {
  font-size: 15px;
}
.accordion-button {
  font-size: 16px;
}
.accordion-body {
  font-size: 14px;
}
.tab {
  font-size: 17px;
}

/* Update grid layout to not affect footer */
.grid-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-bottom: 60px;
}

/* Ensure main content styles don't leak into footer */
.main-content {
  max-width: 1400px;
  margin: 30px auto;
  padding: 0 30px;
  margin-bottom: 0;
}

/* Reset any inherited grid styles that might affect footer */
footer .footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Ensure footer sections are properly aligned */
footer .footer-section {
  display: block;
  width: 100%;
  height: auto;
}

/* Reset any margins or paddings that might be inherited */
footer .footer-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 280px;
}

footer .footer-section ul li {
  margin-bottom: 12px;
  padding: 0;
}

/* Events Section */
.events-section.wide {
  background: #00205b;
  color: white;
  padding: 0;
  margin-top: 40px;
}

.events-section.wide .events-header {
  background: rgba(255, 255, 255, 0.1);
  border-bottom: none;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.events-section.wide .events-header h2 {
  color: white;
  font-size: 20px;
  margin: 0;
}

.events-section.wide .events-list {
  padding: 20px 30px;
  max-height: 350px;
  overflow-y: auto;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.event-item:last-child {
  border-bottom: none;
}

.event-item .event-image {
  width: 120px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.event-item .event-details {
  flex: 1;
}

.event-item .date {
  color: #f47920;
  font-size: 14px;
  font-weight: 500;
  display: block;
  margin-bottom: 5px;
}

.event-item p {
  color: white;
  opacity: 0.9;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Make sections same height but shorter */
.about-section,
.news-section.wide,
.events-section.wide,
.faq-section,
.gallery-section {
  height: 350px;
  margin: 0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

/* Adjust padding for headers */
.news-section.wide .news-header,
.events-section.wide .events-header,
.faq-header,
.gallery-header {
  padding: 15px 25px;
}

/* Adjust content padding */
.about-section {
  padding: 20px 25px;
}

.news-section.wide .news-list,
.events-section.wide .events-list,
.accordion,
.gallery-content {
  padding: 15px 25px;
  flex: 1;
  overflow-y: auto;
}

/* Gallery adjustments */
.gallery-grid {
  gap: 12px;
}

/* Restore font sizes to original */
.about-section h3 {
  font-size: 20px;
}
.about-section h2 {
  font-size: 32px;
}
.about-section p {
  font-size: 16px;
}
.news-header h2 {
  font-size: 24px;
}
.news-item p {
  font-size: 14px;
}
.date {
  font-size: 14px;
}
.view-all {
  font-size: 15px;
}
.accordion-button {
  font-size: 16px;
}
.accordion-body {
  font-size: 14px;
}
.tab {
  font-size: 17px;
}

/* Update grid layout to not affect footer */
.grid-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-bottom: 60px;
}

/* Ensure main content styles don't leak into footer */
.main-content {
  max-width: 1400px;
  margin: 30px auto;
  padding: 0 30px;
  margin-bottom: 0;
}

/* Reset any inherited grid styles that might affect footer */
footer .footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Ensure footer sections are properly aligned */
footer .footer-section {
  display: block;
  width: 100%;
  height: auto;
}

/* Reset any margins or paddings that might be inherited */
footer .footer-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 280px;
}

footer .footer-section ul li {
  margin-bottom: 12px;
  padding: 0;
}
