@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --primary-blue: #2563eb;
  --primary-dark: #1e40af;
  --secondary-blue: #3b82f6;
  --accent-orange: #f97316;
  --accent-green: #10b981;
  --background-white: #ffffff;
  --background-gray: #f8fafc;
  --text-dark: #1e293b;
  --text-medium: #475569;
  --text-light: #94a3b8;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--background-gray);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px;
}

/* 3-Column Layout */
.main-body {
  display: grid;
  grid-template-columns: 252px 1fr 300px; /* Left Sidebar | Main Content | Right Sidebar */
  gap: 25px;
  min-height: 80vh;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .main-body {
    grid-template-columns: 1fr; /* Stack columns on tablets/mobiles */
  }
}

/* Header Styles */
header {
  background-color: var(--background-white);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Top Banner Section */
.top-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  padding: 15px 30px;
  background: white;
  border-bottom: 1px solid #e0e0e0;
}

.left-logos {
  display: flex;
  align-items: center;
  gap: 20px;
}

.left-logos .main-logo-section {
  display: flex;
  align-items: center;
}

.left-logos .icon-left, .left-logos .icon-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.telangana-emblem {
  display: flex;
  align-items: center;
}

.emblem-circle {
  width: 50px;
  height: 50px;
  background: var(--government-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.main-logo-section {
  display: flex;
  align-items: center;
}

.logo-text {
  text-align: left;
}

.govt-text {
  font-size: 12px;
  font-weight: bold;
  color: var(--text-dark);
  margin: 0;
  letter-spacing: 0.5px;
}

.dept-text {
  font-size: 11px;
  color: var(--text-dark);
  margin: 2px 0;
  letter-spacing: 0.3px;
}

.district-text {
  font-size: 16px;
  font-weight: bold;
  color: var(--government-red);
  margin: 0;
  letter-spacing: 0.5px;
}

.telangana-rising {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.rising-logo {
  width: 40px;
  height: 40px;
  background: var(--government-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 5px;
}

.rising-text {
  font-size: 10px;
  color: var(--government-red);
  font-weight: bold;
  letter-spacing: 0.5px;
}

.right-officials {
  display: flex;
  gap: 45px; /* increased by ~150% for larger spacing */
}

/* When the right-officials area is replaced by site logo */
.site-main-logo img {
  height: auto;
  object-fit: contain;
  width: 85% !important;
  max-width: 85% !important;
}

/* small icons surrounding the header gov text */
.left-logos .icon-left, .left-logos .icon-right {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.official-info { 
  display: flex; 
  align-items: center; 
  gap: 22px; /* increased ~150% */
  text-align: left;
}

.official-info img { 
  width: 90px; 
  height: 90px; 
  border-radius: 50%; 
  object-fit: cover;
  border: 3px solid #e0e0e0;
}

.official-info .text {
  font-size: 19.5px; /* base size for official block */
  line-height: 1.3;
}

.official-name {
  font-size: 1.5em; /* 150% of .official-info .text */
  font-weight: 700;
  color: var(--text-dark);
  display: block;
  margin-bottom: 4px;
}

.official-title {
  font-size: 0.75em; /* 75% of .official-info .text */
  color: var(--government-blue);
}

/* Tighter layout for official name and title (replace <br> removal) */
.official-info .text {
  display: flex;
  flex-direction: column;
  gap: 2px; /* smaller gap than default */
  align-items: flex-start;
}

.official-name {
  font-size: 13px;
  margin: 0;
  line-height: 1.1;
}

.official-title {
  font-size: 12px;
  color: var(--government-blue);
  margin-top: 0;
  line-height: 1.1;
}

/* Image Carousel Section */
.image-carousel {
  background: #fff0f0; /* aqua blue */
  padding: 10px 0;
  position: relative;
}

.carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1500px;
  margin: 0 auto;
  position: relative;
  padding: 0 40px;
  overflow: hidden;
}

.carousel-btn {
  background: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  color: #000000; /* darker teal for contrast */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  z-index: 10;
  position: absolute;
}

.carousel-btn:hover {
  background: #f0f0f0;
  transform: scale(1.1);
}

.prev-btn {
  left: 0;
}

.next-btn {
  right: 0;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease-in-out;
  width: max-content;
}

.carousel-slide {
  flex: 0 0 230px; /* Width of each slide */
  text-align: center;
  opacity: 1;
  transition: all 0.3s ease;
  position: relative;
  transform: scale(1);
  padding-bottom: 20px; /* room for the anchored label */
}

.carousel-slide .slide-link {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  transition: transform 0.3s ease;
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.carousel-slide:hover img {
  transform: scale(1.05);
}

.carousel-slide:hover .slide-label {
  color: var(--government-blue);
}

.carousel-slide img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.slide-label {
  color: #2c5aa0;
  font-size: 15px; /* slightly smaller so labels fit */
  font-weight: 700;
  /* anchor label just below the image instead of overlapping it */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -6px; /* move it just under the image (uses padding-bottom above)
                     so it doesn't overlap the image content */
  background: transparent; /* removed solid background per request */
  padding: 4px 10px;
  border-radius: 14px;
  text-shadow: none;
  letter-spacing: 0.4px;
  box-shadow: none;
  white-space: nowrap; /* keep label on single line */
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Navigation Styles */
#main-nav {
  background-color: #2c5aa0; /* requested navigation bar color */
  border-bottom: 1px solid rgba(0,0,0,0.08);
  position: sticky;
    top: 0;
    z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

#main-nav ul { 
  list-style: none; 
  display: flex; 
  justify-content: center; 
  margin: 0; 
  padding: 0; 
  max-width: 1200px;
  margin: 0 auto;
}

#main-nav ul li { 
  position: relative;
}

#main-nav ul li a { 
  display: block; 
  padding: 15px 25px; 
  color: #ffffff; 
  text-decoration: none; 
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 14px;

/* Teacher particulars styles moved from inline */
.tp-wrapper{font-family:Arial,Helvetica,sans-serif;font-size:11px!important;margin-top:8px;text-align:left}
.tp-title{text-align:center;font-weight:800;margin-bottom:8px}
.tp-section{margin-bottom:12px;border:4px solid #000!important;overflow:hidden;background:#fff}
.tp-section-header{background:#0b74a6!important;color:#ffffff!important;padding:8px 10px;font-weight:700;text-align:left}
.tp-table{width:100%;border-collapse:collapse;table-layout:fixed}
.tp-table th{width:22%;text-align:left;padding:8px 10px;background:#eef7fb;border:2px solid #000!important;font-weight:600;vertical-align:top}
.tp-table td{width:28%;padding:8px 10px;border:2px solid #000!important;vertical-align:top;word-break:break-word}
.tp-table th, .tp-table td { text-align: left !important }
.tp-col{width:100%;vertical-align:top;padding:8px;box-sizing:border-box}
.col-key{display:none}
@media print{.tp-col{width:100%}}
/* Increase the page/form heading slightly (approx +2px) and left align */
.main-content h2{font-size:18px;font-weight:700;text-align:left;margin-bottom:10px}
  background-color: transparent;
}

#main-nav ul li a:hover {
  background-color: rgba(255,255,255,0.08);
  color: #ffffff;
  font-weight: 600;
  transform: translateY(-2px);
}

/* Active / Home button styles */
#main-nav ul li.active a {
  background-color: rgba(255,255,255,0.12); /* subtle active highlight */
  color: #ffffff;
  font-weight: 700;
  box-shadow: inset 0 -3px 0 rgba(255,255,255,0.05);
  transform: translateY(-2px);
}
/* marquee link rule removed */

#main-nav ul li.active a::after {
  content: '';
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: -6px;
  height: 3px;
  background: rgba(255,255,255,0.18);
  border-radius: 3px;
}

/* marquee styles removed (no marquee in header) */

/* Marquee / announcement bar (aqua blue) */
.marquee {
  background: #00bcd4; /* aqua blue */
  color: #ffffff;
  padding: 8px 12px;
  font-weight: 600;
  text-align: center;
}

.dropdown-arrow {
  font-size: 10px;
  margin-left: 5px;
  color: var(--secondary-grey);
}

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 200px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

/* Dropdown menu links (ensure contrast against white background) */
#main-nav .dropdown-menu li a,
.dropdown-menu li a {
  color: var(--text-dark);
  padding: 12px 20px;
  display: block;
  transition: all 0.15s ease;
  font-size: 13px;
}

#main-nav .dropdown-menu li a:hover,
.dropdown-menu li a:hover {
  background-color: #eef6ff; /* slightly bluish hover for contrast */
  color: var(--government-blue);
  padding-left: 25px;
}

/* User Menu Styles */
.user-menu {
  margin-left: auto !important;
  border-left: 2px solid rgba(255,255,255,0.2);
  padding-left: 15px !important;
}

.user-info {
  display: flex !important;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15) !important;
  border-radius: 20px;
  padding: 6px 15px !important;
}

.user-icon {
  font-size: 20px;
}

.user-name {
  font-weight: 600;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-role {
  font-size: 11px;
  opacity: 0.9;
  font-weight: 500;
}

.user-dropdown {
  right: 0;
  left: auto;
  min-width: 220px;
}

.user-dropdown li a {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Main Content Styles */
.main-content {
  background-color: var(--background-white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.welcome-section {
  margin-bottom: 40px;
  padding: 0;
}

.welcome-section h1 {
  color: #110549;
  font-size: 1.8em;
  margin-bottom: 5px;
  font-weight: 700;
  line-height: 1.2;
}

.welcome-section h2 {
  color: #3b3b3b;
  font-size: 1.5em;
  margin-bottom: 5px;
  font-weight: 400;
}

.welcome-section .location {
  color: #666;
  font-size: 1em;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.welcome-section .location::before {
  content: "📍";
  font-size: 16px;
}

/* Badge Section */
.badge-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.badge {
  background: white;
  border-radius: 8px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
  position: relative;
}

.badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.badge a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.badge .icon {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-right: 15px;
  flex-shrink: 0;
}

.badge.teacher .icon {
  background: #e3f2fd;
  color: #1976d2;
}

.badge.programs .icon {
  background: #eaf6ff;
  color: #1976d2;
}

.badge.announcements .icon {
  background: #fff3e0;
  color: #f57c00;
}

.badge.contact .icon {
  background: #f3e5f5;
  color: #7b1fa2;
}

.badge .badge-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.badge h3 {
  color: #333;
  font-size: 1.5em;
  margin: 0;
  font-weight: 600;
  line-height: 1.3;
}

.badge p {
  color: #666;
  margin-bottom: 25px;
  line-height: 1.6;
  font-size: 14px;
}

.badge button {
  background: #2c5aa0;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.badge button:hover {
  background: #1e3f73;
  transform: translateY(-1px);
}

.badge button::after {
  content: "→";
  font-size: 16px;
}

/* Services Section */
.services-section {
  margin-top: 40px;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.services-section h2 {
  color: #333;
  font-size: 1.5em;
  margin-bottom: 25px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.services-section h2::before {
  content: "📄";
  font-size: 20px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-item {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 6px;
  transition: transform 0.3s ease;
  border: none;
  box-shadow: none;
}

.service-item:hover {
  transform: translateY(-2px);
  background: #f0f0f0;
}

.service-item h4 {
  color: #333;
  font-size: 1.1em;
  margin-bottom: 8px;
  font-weight: 600;
}

.service-item p {
  color: #666;
  line-height: 1.5;
  margin: 0;
  font-size: 14px;
}

/* Sidebar Styles */
.left-sidebar, .right-sidebar {
  background-color: white;
  padding: 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  height: fit-content;
  border: 1px solid #e0e0e0;
}

/* Left Sidebar Specific Styles */
.left-sidebar {
  padding: 25px;
}

.left-sidebar h3 {
  color: #333;
  font-size: 1.2em;
  margin-bottom: 20px;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

.left-sidebar .nav-menu {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.left-sidebar .nav-menu li {
  margin-bottom: 2px;
}

.left-sidebar .nav-menu li a {
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.left-sidebar .nav-menu li a .icon {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.left-sidebar .nav-menu li a .text {
  flex: 1;
}

.left-sidebar .nav-menu li a .desc {
  font-size: 11px;
  color: #666;
  margin-top: 2px;
  display: block;
}

.left-sidebar .nav-menu li.active a {
  background-color: #2c5aa0;
  color: white;
}

.left-sidebar .nav-menu li:not(.active) a:hover {
  background-color: #f5f5f5;
  color: #2c5aa0;
}

/* Quick Stats Section */
.quick-stats {
  background: #e3f2fd;
  padding: 20px;
  border-radius: 6px;
  margin-top: 20px;
}

.quick-stats h4 {
  color: #333;
  font-size: 1.1em;
  margin-bottom: 15px;
  font-weight: 600;
}

.quick-stats .stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #d0d0d0;
}

.quick-stats .stat-item:last-child {
  border-bottom: none;
}

.quick-stats .stat-label {
  color: #666;
  font-size: 14px;
}

.quick-stats .stat-value {
  color: #2c5aa0;
  font-weight: 600;
  font-size: 14px;
}

/* Right Sidebar Specific Styles */
.right-sidebar {
  padding: 25px;
}

.right-sidebar .widget {
  margin-bottom: 25px;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid #e0e0e0;
}

.right-sidebar .widget:last-child {
  margin-bottom: 0;
}

.right-sidebar .widget h3 {
  color: #333;
  font-size: 1.1em;
  margin-bottom: 15px;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e0e0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.right-sidebar .widget h3::before {
  font-size: 16px;
}

.right-sidebar .widget.clock h3::before {
  content: "🕐";
}

.right-sidebar .widget.news h3::before {
  content: "📅";
}

.right-sidebar .widget.stats h3::before {
  content: "📊";
}

.right-sidebar .widget.links h3::before {
  content: "🔗";
}

/* Clock Widget */
.clock-widget {
  text-align: center;
}

.clock-time {
  font-size: 2em;
  font-weight: bold;
  color: #2c5aa0;
  margin-bottom: 8px;
  background: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  border: 2px solid #4472C4;
}

.clock-day {
  color: #333;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.clock-date {
  color: #fff;
  font-size: 16px;
  background: #4472C4;
  padding: 10px 15px;
  border-radius: 6px;
  margin-top: 8px;
}

/* News Widget */
.news-item {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: #666;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item::before {
  content: "•";
  color: #2c5aa0;
  margin-right: 8px;
}

/* Stats Widget */
.stats-grid {
  display: grid;
  gap: 15px;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.stat-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
}

.stat-icon.schools {
  background: #1976d2;
}

.stat-icon.teachers {
  background: #388e3c;
}

.stat-icon.students {
  background: #7b1fa2;
}

.stat-info {
  flex: 1;
}

.stat-label {
  color: #666;
  font-size: 12px;
  margin-bottom: 2px;
}

.stat-value {
  color: #333;
  font-weight: 600;
  font-size: 16px;
}

/* Links Widget */
.links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.links-list li {
  margin-bottom: 8px;
}

.links-list li a {
  color: #2c5aa0;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  transition: color 0.3s ease;
}

.links-list li a:hover {
  color: #1e3f73;
}

.links-list li a::before {
  content: "→";
  font-size: 12px;
}

/* Live Clock Styles */
#live-clock {
  font-size: 1.2em;
  font-weight: bold;
  color: var(--government-blue);
  text-align: center;
  padding: 10px;
  background: var(--light-grey-bg);
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

/* Navigation Menu Styles */
.nav-menu li.active a {
  background-color: var(--government-blue);
  color: white;
  font-weight: 600;
}

/* Footer Styles */
.site-footer {
  background-color: var(--government-blue);
    color: var(--background-white);
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.site-footer p {
  margin: 0;
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .top-banner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 15px;
  }
  
  .left-logos {
    flex-direction: column;
    gap: 15px;
  }
  
  .right-officials {
    flex-direction: column;
    gap: 15px;
  }
  
  .official-info {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  #main-nav ul {
    flex-direction: column;
  }
  
  .welcome-section h2 {
    font-size: 1.8em;
  }
  
  .badge-section {
    grid-template-columns: 1fr;
  }
  
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-section {
    padding: 20px;
  }
  
  .main-body {
    gap: 15px;
  }
  
  .carousel-container {
    padding: 0 10px;
  }
  
  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 21px;
  }
  
  .carousel-track {
    max-width: 600px;
  }
  
  .carousel-slide {
    flex: 0 0 180px;
  }
  
  .carousel-slide img {
    height: 120px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 5px;
  }
  
  .main-content {
    padding: 15px;
  }
  
  .welcome-section {
    padding: 20px;
  }
  
  .badge {
    padding: 20px;
  }
  
  .service-grid {
    grid-template-columns: 1fr;
  }
  
  .services-section {
    padding: 15px;
  }
  
  .carousel-container {
    padding: 0 40px;
  }
  
  .carousel-track {
    max-width: 500px;
  }
  
  .carousel-slide {
    flex: 0 0 150px;
  }
  
  .carousel-slide img {
    height: 100px;
  }
  
  .slide-label {
    font-size: 12px;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .carousel-container {
    padding: 0 10px;
  }

  .carousel-track { gap: 12px; }

  .carousel-slide { flex: 0 0 160px; padding-bottom: 26px; }

  .carousel-slide img { height: 110px; }

  /* On very small screens, place the label overlayed with semi-transparent backdrop
     so it doesn't push content and remains readable */
  .slide-label {
    font-size: 14px;
    bottom: 10px;
    background: rgba(46,139,192,0.95); /* semi-transparent sea-blue on mobile */
    padding: 3px 8px;
    border-radius: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Nav responsive */
  #main-nav ul { flex-wrap: wrap; gap: 6px; padding: 8px 12px; }
  #main-nav ul li a { padding: 10px 14px; font-size: 13px; }

  .top-banner { padding: 10px 12px; }
  .right-officials { gap: 12px; }
  .official-info img { width: 48px; height: 48px; }
  .official-name { font-size: 12px; }
  .official-title { font-size: 11px; }
}

/* Teachers table styling */
.teacher-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
.teacher-table th, .teacher-table td {
  border: 1px solid #e6e6e6; /* light grey */
  padding: 10px 12px;
  text-align: left;
}
.teacher-table thead th {
  background: #fafafa;
  font-weight: 700;
  font-size: 10px;
}
.teacher-table th:nth-child(1) { width: 60px; }
.teacher-table th:nth-child(2) { width: 240px; }
.teacher-table th:nth-child(3) { width: 180px; }
.teacher-table th:nth-child(4) { width: 240px; }
.teacher-table th:nth-child(5) { width: 160px; }
.teacher-table th:nth-child(6) { width: 240px; }
.teacher-table td { vertical-align: middle; }
.teacher-table tbody td { font-size: 10px; }

/* Excel-style table for Teacher Particulars */
.excel-wrapper { margin-top: 12px; }
.excel-table {
  border-collapse: collapse;
  width: 100%;
  font-family: inherit;
  font-size: 13px;
}
.excel-table thead th,
.excel-table td {
  border: 1px solid #d9d9d9; /* light grey */
  padding: 8px 10px;
}
.excel-table thead th {
  background: #f3f6f9;
  font-weight: 700;
  font-size: 12px;
}
.excel-table td { background: #ffffff; }

@media print {
  .tp-search-form, .carousel-container, #main-nav, .left-sidebar, .right-sidebar { display: none !important; }
  .container { max-width: 100%; padding: 0; }
  .excel-table { font-size: 12px; }
}

/* Three-column section layout for particulars */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.section-table {
  width: 100%;
  border-collapse: collapse;
}
.section-table th,
.section-table td {
  border: 1px solid #d9d9d9;
  padding: 8px 10px;
  vertical-align: top;
}
.section-table th {
  width: 40%;
  background: #f6f8fa;
  font-weight: 700;
}
.section-table td { width: 60%; }

@media (max-width: 900px) {
  .three-col { grid-template-columns: 1fr; }
}

/* ====== TP (teacher particulars / edit / view) page styles moved from inline blocks ======
/* These were previously embedded in teacher_particulars.php, teacher_edit.php, teacher_view.php */
.tp-wrapper{font-family:Arial,Helvetica,sans-serif !important; font-size:13px !important; text-align:left !important}
.tp-wrapper .tp-title{font-size:15px !important; text-align:left !important}
.tp-section{border:1px solid #9a9a9a !important; padding:4px !important; margin-bottom:6px !important}
.tp-section-header{background:#0b74a6 !important; color:#fff !important; padding:4px 6px !important; font-weight:700 !important; text-align:left !important}
.tp-table{width:100% !important; border-collapse:collapse !important; table-layout:fixed !important}
.tp-table th{width:16% !important; box-sizing:border-box !important; padding:2px 3px !important; border:1px solid #9a9a9a !important; text-align:left !important; vertical-align:top !important}
.tp-table td{width:17% !important; box-sizing:border-box !important; padding:2px 3px !important; border:1px solid #9a9a9a !important; text-align:left !important; vertical-align:top !important; word-break:break-word}
.tp-col{width:100% !important; padding:2px !important}
.tp-actions{display:flex;gap:8px;justify-content:flex-end;margin-bottom:6px}
.tp-actions .action-btn{padding:10px 14px;border-radius:6px;border:none;color:#fff;background:#007bff;font-weight:700}
.tp-actions .action-btn.secondary{background:#28a745}
.tp-tab-grid{display:flex;flex-wrap:nowrap;gap:6px;margin-bottom:12px;overflow-x:auto;padding-bottom:4px}
.tp-tab{flex:0 0 auto;min-width:80px;padding:6px 8px;border:1px solid #e6e6e6;background:#fff;border-radius:6px;cursor:pointer;text-align:center;font-weight:700;font-size:12px;transition:all 180ms ease}
.tp-tab-active{flex:0 0 auto;background:#0b74a6;color:#fff;border-color:#0b74a6;box-shadow:0 2px 6px rgba(11,116,166,0.12);transform:scale(1.03)}

/* Default: hide SGT/SA dependent fields until page JS reveals them via .show class */
.sgt-reg-dependent, .sgt-absorp-dependent, .sgt-dsc-dependent, .sa-dsc-dependent, .sa-reg-dependent, .sgt-following, .sgt-section.sgt-following {
  display: none !important;
}
.sgt-reg-dependent.show, .sgt-absorp-dependent.show, .sgt-dsc-dependent.show, .sa-dsc-dependent.show, .sa-reg-dependent.show, .sgt-following.show {
  display: block !important;
}
.hide-manual { display: none !important; visibility: hidden !important; height: 0 !important; overflow: hidden !important; margin: 0 !important; padding: 0 !important; }

/* Particulars view: show full sections and allow read-only display of service fields */
.particulars .tp-section { display:block !important; }
.particulars .sgt-section, .particulars .sa-section, .particulars .gaz-section, .particulars .tp-section.sgt-section { display:block !important; }
.particulars .tp-col { visibility: visible !important; height: auto !important; padding:6px !important; }
.particulars .sgt-reg-dependent, .particulars .sgt-absorp-dependent, .particulars .sgt-dsc-dependent, .particulars .sgt-following { display:block !important; visibility:visible !important; height:auto !important; }

/* Retirement Report Styles */
.retirement-report-container {
    padding: 20px;
    background: white;
    margin: 20px auto;
    max-width: 1400px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.print-buttons {
    margin-bottom: 20px;
}
.print-btn { 
    padding: 10px 20px; 
    background-color: #007bff; 
    color: white; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer; 
    font-size: 16px; 
    text-decoration: none;
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 0;
}
.print-btn.btn-excel {
    background-color: #28a745;
}
.print-btn:hover { background-color: #0056b3; }
.print-btn.btn-excel:hover { background-color: #218838; }

/* Table Styles from Original Export */
table.ret-table { border-collapse: collapse; width: 100%; font-family: Arial, sans-serif; margin-bottom: 20px; }
table.ret-table th, table.ret-table td { border: 1px solid #000000; padding: 5px 8px; font-size: 13px; }
table.ret-table th { background-color: #4CAF50; color: white; font-weight: bold; text-align: center; }
table.ret-table tr:nth-child(even) { background-color: #f9f9f9; }
table.ret-table .header-row th { background-color: #2E7D32; color: white; font-size: 14pt; font-weight: bold; padding: 15px; }

/* Column Widths */
.col-slno { text-align: center; width: 50px; }
.col-month { text-align: center; width: 100px; }
.col-name { text-align: left; width: 200px; }
.col-treasury { text-align: center; width: 120px; }
.col-designation { text-align: left; width: 150px; }
.col-date { text-align: center; width: 90px; }
.col-mandal { text-align: left; width: 120px; }
.col-code { text-align: center; width: 80px; }
.col-school { text-align: left; width: 250px; }
.col-medium { text-align: center; width: 80px; }
.col-hra { text-align: center; width: 60px; }

@media print { 
    .print-btn, header, footer, .image-carousel, .top-banner, .print-buttons { display: none !important; } 
    body { padding: 0; background: white; }
    .retirement-report-container { box-shadow: none; margin: 0; padding: 0; max-width: 100%; }
}
