/* News Coverage Page Styles - Central University of Gujarat */

:root {
  --orange: #f57c00;
  --blue: #005cb9;
  --white: #ffffff;
  --dark: #333333;
  --light-gray: #f8f9fa;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--light-gray);
}

html {
  scroll-behavior: smooth;
}

/* Page Header Styling */
.page-header {
        background: var(--orange);
        color: var(--white);
        margin-top: 20px;
        padding: 15px 0 !important;
        text-align: center;
        position: relative;
        z-index: 999;
    }

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: rotate(45deg);
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.page-header h1 {
        font-size: 24px;
        font-weight: 700;
        color: var(--white) !important;
        margin-bottom: 8px;
    }

.page-header .icon {
  font-size: 3rem;
  margin-bottom: 20px;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

.breadcrumb {
    background: transparent;
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    margin: 0 auto;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #fff;
    font-weight: 500;
}

@media (max-width: 576px) {
    .breadcrumb {
        font-size: 0.85rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 12px 0;
        margin-top: 0 !important;
    }

    .page-header h1 {
        font-size: 20px;
        margin-bottom: 6px;
    }
}

@media (max-width: 991.98px) {
    .page-header {
        margin-top: 0 !important;
    }
}

@media (max-width: 480px) {
    .page-header {
        margin-top: 0 !important;
    }
}

/* Main Content Area */
.main-content {
  padding: 60px 0;
}

.content-wrapper {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 40px;
  margin-bottom: 40px;
  border-top: 5px solid var(--orange);
  position: relative;
  overflow: hidden;
}

.content-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, transparent 60%, rgba(245, 124, 0, 0.05) 100%);
  border-radius: 50%;
  transform: translate(50px, -50px);
}

.section-title {
  color: var(--blue);
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.section-description {
  color: var(--dark);
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

/* Tab Navigation Styling */
.nav-tabs {
  border-bottom: none;
  justify-content: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.nav-tabs::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--blue) 50%, transparent 100%);
}

.nav-tabs .nav-item {
  margin: 0 10px 20px 10px;
}

.nav-tabs .nav-link {
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  color: var(--blue);
  font-weight: 600;
  font-size: 1.1rem;
  background: rgba(0, 92, 185, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-tabs .nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.nav-tabs .nav-link:hover::before {
  left: 100%;
}

.nav-tabs .nav-link:hover {
  background: linear-gradient(135deg, var(--blue) 0%, #004494 100%);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 92, 185, 0.3);
}

.nav-tabs .nav-link.active {
  background: linear-gradient(135deg, var(--orange) 0%, #e65100 100%);
  color: var(--white);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(245, 124, 0, 0.4);
}

.nav-tabs .nav-link.active::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* Tab Content Styling */
.tab-content {
  position: relative;
  z-index: 2;
}

.tab-pane {
  background: rgba(248, 249, 250, 0.5);
  border-radius: 15px;
  padding: 30px;
  min-height: 300px;
  border: 1px solid rgba(0, 92, 185, 0.1);
}

/* PDF Button Styling */
.pdf-button {
  display: inline-flex;
  align-items: center;
  margin: 15px 10px;
  padding: 15px 25px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pdf-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.pdf-button:hover::before {
  left: 100%;
}

.pdf-button i {
  margin-right: 12px;
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.pdf-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  color: var(--white);
}

.pdf-button:hover i {
  transform: scale(1.1) rotate(5deg);
}

/* Year-specific button colors */
.pdf-button.year-2025 {
  background: linear-gradient(135deg, var(--orange) 0%, #e65100 100%);
}

.pdf-button.year-2025:hover {
  box-shadow: 0 8px 25px rgba(245, 124, 0, 0.4);
}

.pdf-button.year-2024 {
  background: linear-gradient(135deg, var(--blue) 0%, #004494 100%);
}

.pdf-button.year-2024:hover {
  box-shadow: 0 8px 25px rgba(0, 92, 185, 0.4);
}

.pdf-button.year-2023 {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.pdf-button.year-2023:hover {
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.pdf-button.year-2022 {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.pdf-button.year-2022:hover {
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

/* Statistics Section */
.news-stats {
  background: linear-gradient(135deg, var(--blue) 0%, #004494 100%);
  color: white;
  border-radius: 20px;
  padding: 40px 30px;
  margin-top: 50px;
  position: relative;
  overflow: hidden;
}

.news-stats::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: rotate(45deg);
}

.stats-title {
  color: white;
  font-weight: 700;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
  text-align: center;
}

.stat-item {
  text-align: center;
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}

.stat-label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

/* Empty State Styling */
.empty-tab {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.empty-tab i {
  font-size: 4rem;
  color: #ccc;
  margin-bottom: 20px;
}

.empty-tab h4 {
  color: var(--dark);
  margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .content-wrapper {
    padding: 25px 20px;
    margin: 0 15px 30px 15px;
    border-radius: 15px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .nav-tabs .nav-item {
    margin: 0 5px 15px 5px;
  }

  .nav-tabs .nav-link {
    padding: 10px 20px;
    font-size: 1rem;
  }

  .tab-pane {
    padding: 20px 15px;
  }

  .pdf-button {
    margin: 10px 5px;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .news-stats {
    padding: 30px 20px;
    margin: 30px 15px 0 15px;
    border-radius: 15px;
  }

  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .nav-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 10px;
  }

  .nav-tabs::-webkit-scrollbar {
    height: 4px;
  }

  .nav-tabs::-webkit-scrollbar-track {
    background: rgba(0, 92, 185, 0.1);
    border-radius: 2px;
  }

  .nav-tabs::-webkit-scrollbar-thumb {
    background: var(--orange);
    border-radius: 2px;
  }

  .nav-tabs .nav-item {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .pdf-button {
    width: 100%;
    justify-content: center;
    margin: 8px 0;
  }
}

/* Animation Enhancements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.tab-pane.show {
  animation: fadeInUp 0.5s ease-out;
}

.pdf-button {
  animation: slideInFromLeft 0.3s ease-out;
}

.pdf-button:nth-child(even) {
  animation-delay: 0.1s;
}

.pdf-button:nth-child(odd) {
  animation-delay: 0.05s;
}

/* Focus and Accessibility */
.nav-tabs .nav-link:focus,
.pdf-button:focus {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .page-header,
  .nav-tabs,
  .news-stats {
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
  }
}