/* ===========================================
   CORPORATE 360° VIRTUAL TOUR STYLES - UPDATED
   =========================================== */

/* CSS Variables - Enhanced */
:root {
  --primary-blue: #0d6efd;
  --primary-blue-dark: #0a58ca;
  --primary-blue-light: #3d8bfd;
  --accent-purple: #6f42c1;
  --accent-teal: #20c997;
  --accent-gold: #ffd700;
  --dark-color: #1a1d29;
  --dark-secondary: #2d3748;
  --light-color: #f8fafc;
  --light-secondary: #e9ecef;
  --text-dark: #212529;
  --text-muted: #6c757d;
  --text-light: #adb5bd;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #17a2b8;

  /* CSE Theme Colors for Navigation */
  --cse-primary: #0066cc;
  --cse-secondary: #004d99;
  --cse-light: #e6f2ff;
  --cse-dark: #003366;
  --cse-accent: #3399ff;
  --cse-gradient: linear-gradient(135deg, #0066cc 0%, #004d99 100%);

  --gradient-primary: linear-gradient(135deg, #0d6efd, #6f42c1);
  --gradient-secondary: linear-gradient(135deg, #20c997, #0d6efd);
  --gradient-dark: linear-gradient(135deg, #0a58ca, #5936a3);
  --gradient-light: linear-gradient(135deg, #f8fafc, #e9ecef);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
  --shadow-primary: 0 4px 20px rgba(13, 110, 253, 0.2);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 9999px;

  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  --header-height: 80px;
  --navbar-height: 60px;
}

/* Base Reset - Improved */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--navbar-height) + 20px);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-dark);
  background: var(--light-color);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Main content container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Ensure all sections respect container */
section {
  width: 100%;
}

/* Section inner containers */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.virtual-tour-container {
  margin-top: 0 !important;
  padding: 0 !important;
}


/* =========================================================
   TOUR NAVIGATION - UPDATED TO CSE STYLE
   ========================================================= */
.tour-navbar {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px) !important;
  z-index: 1000;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 10px rgba(0, 102, 204, 0.1) !important;
  padding: 0.5rem 0;
  position: sticky;
  top: var(--header-height);
  margin: 0 !important; /* Remove margin */
}

.tour-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.5rem 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 0 !important; /* Remove margin */
}

.tour-nav::-webkit-scrollbar {
  display: none;
}

.tour-nav-btn {
  position: relative;
  color: var(--cse-dark) !important;
  font-weight: 600 !important;
  padding: 0.5rem 1.25rem !important;
  transition: all 0.3s ease !important;
  border-radius: 20px !important;
  font-size: 0.9rem !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
  margin: 0 !important; /* Remove margin */
}

.tour-nav-btn i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  transition: all var(--transition-base);
}

.tour-nav-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--cse-accent);
  transition: all 0.3s ease;
  border-radius: 2px;
  transform: translateX(-50%);
}

.tour-nav-btn:hover,
.tour-nav-btn.active {
  color: var(--cse-primary) !important;
  background: var(--cse-light) !important;
}

.tour-nav-btn:hover::after,
.tour-nav-btn.active::after {
  width: 80%;
}

.tour-nav-btn.active {
  color: var(--cse-primary) !important;
  background: var(--cse-light) !important;
}

/* Dark Mode Variables */
@media (prefers-color-scheme: dark) {
  :root {
    --dark-color: #121212;
    --light-color: #1e1e1e;
    --text-dark: #ffffff;
    --text-muted: #adb5bd;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  }

  .tour-navbar {
    background: rgba(26, 29, 41, 0.98) !important;
  }

  .tour-nav-btn {
    color: #e6f2ff !important;
  }

  .tour-nav-btn:hover,
  .tour-nav-btn.active {
    color: var(--cse-accent) !important;
    background: rgba(0, 102, 204, 0.1) !important;
  }
}

/* Tour Hero Section - Enhanced - FIXED: Remove bottom padding/margin */
.tour-hero {
  background: linear-gradient(
      135deg,
      rgba(13, 110, 253, 0.95),
      rgba(111, 66, 193, 0.95)
    ),
    url("https://images.unsplash.com/photo-1562774053-701939374585?w=1920&auto=format&fit=crop")
      center/cover no-repeat;
  color: white;
  padding: 5rem 0 3rem !important; /* Reduced bottom padding */
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 0 !important; /* Remove margin */
}

.tour-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(255, 215, 0, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(32, 201, 151, 0.1) 0%,
      transparent 50%
    ),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: -1;
}

.tour-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px; /* Reduced height */
  background: linear-gradient(to bottom, transparent, var(--light-color));
  z-index: -1;
}

.tour-subtitle {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
}

.tour-hero h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem !important; /* Reduced margin */
}

@media (max-width: 768px) {
  .tour-hero h1 {
    font-size: 2.5rem;
  }
}

.tour-hero .highlight {
  color: var(--accent-gold);
  position: relative;
  display: inline-block;
}

.tour-hero .highlight::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(255, 215, 0, 0.2);
  z-index: -1;
}

.hero-content .lead {
  font-size: 1.25rem;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 1.5rem !important; /* Reduced margin */
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0 !important; /* Remove margin */
}

.start-tour-btn {
  background: white;
  color: var(--primary-blue);
  border: none;
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-md);
}

.start-tour-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.vr-toggle {
  border: 2px solid white;
  background: transparent;
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.vr-toggle:hover {
  background: white;
  color: var(--primary-blue);
  transform: translateY(-3px);
}

/* Hero Stats Card - Enhanced */
.hero-stats-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: 2rem; /* Reduced padding */
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-base);
  margin: 0 !important; /* Remove margin */
}

.hero-stats-card:hover {
  transform: translateY(-5px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem; /* Reduced gap */
  margin-bottom: 1.5rem !important; /* Reduced margin */
}

@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.stat-item {
  text-align: center;
  padding: 1.25rem; /* Reduced padding */
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  margin: 0 !important; /* Remove margin */
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.stat-number {
  font-family: "Montserrat", sans-serif;
  font-size: 2.5rem; /* Reduced size */
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-number.small {
  font-size: 2rem;
}

.stat-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
  display: block;
}

.tour-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* Reduced gap */
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem !important; /* Reduced padding */
  margin: 0 !important; /* Remove margin */
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* Reduced gap */
  font-size: 0.95rem;
  margin: 0 !important; /* Remove margin */
}

.feature i {
  font-size: 1.2rem;
  color: var(--accent-gold);
  min-width: 24px;
}

/* Interactive Viewer Section - Enhanced - FIXED: Reduce padding */
.interactive-viewer-section {
  padding: 3rem 0 !important; /* Reduced padding */
  background: white;
  margin: 0 !important; /* Remove margin */
}

@media (prefers-color-scheme: dark) {
  .interactive-viewer-section {
    background: var(--dark-color);
  }
}

.section-header {
  text-align: center;
  margin-bottom: 2rem !important; /* Reduced margin */
}

.viewer-header {
  text-align: center;
  margin-bottom: 2rem !important; /* Reduced margin */
}

.section-title {
  font-family: "Montserrat", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 0.5rem !important; /* Reduced margin */
}

@media (prefers-color-scheme: dark) {
  .section-title {
    color: white;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto !important; /* Center without extra margin */
}

.viewer-container {
  position: relative;
  background: var(--dark-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0 !important; /* Remove margin */
}

.panorama-viewer {
  position: relative;
  width: 100%;
  height: 500px; /* Reduced height */
  background: linear-gradient(45deg, var(--dark-color), var(--dark-secondary));
  overflow: hidden;
}

@media (max-width: 768px) {
  .panorama-viewer {
    height: 350px; /* Adjusted for mobile */
  }
}

.panorama-canvas {
  width: 100%;
  height: 100%;
  position: relative;
}

.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

/* Hotspots - Enhanced */
.hotspot {
  position: absolute;
  cursor: pointer;
  z-index: 100;
  transition: transform var(--transition-fast);
}

.hotspot:hover {
  transform: scale(1.1);
}

.hotspot-dot {
  width: 24px;
  height: 24px;
  background: var(--gradient-primary);
  border: 3px solid white;
  border-radius: 50%;
  animation: pulse 2s infinite;
  position: relative;
  box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
  }
}

.hotspot-label {
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: white;
  color: var(--dark-color);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  pointer-events: none;
}

.hotspot-label::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid white;
}

.hotspot:hover .hotspot-label {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Viewer Controls - Enhanced */
.viewer-controls {
  position: absolute;
  bottom: 1.5rem; /* Reduced */
  right: 1.5rem; /* Reduced */
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 101;
}

@media (max-width: 768px) {
  .viewer-controls {
    bottom: 1rem;
    right: 1rem;
  }
}

.control-btn {
  width: 45px; /* Reduced */
  height: 45px; /* Reduced */
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--dark-color);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

.control-btn:hover {
  background: white;
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

.control-btn.active {
  background: var(--gradient-primary);
  color: white;
}

/* Navigation Thumbnails - Enhanced */
.viewer-navigation {
  position: absolute;
  bottom: 1.5rem; /* Reduced */
  left: 1.5rem; /* Reduced */
  display: flex;
  gap: 0.75rem; /* Reduced */
  z-index: 101;
}

@media (max-width: 768px) {
  .viewer-navigation {
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    justify-content: center;
    flex-wrap: wrap;
  }
}

.nav-thumb {
  width: 90px; /* Reduced */
  height: 60px; /* Reduced */
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  border: 2px solid transparent;
  margin: 0 !important; /* Remove margin */
}

@media (max-width: 768px) {
  .nav-thumb {
    width: 70px; /* Reduced */
    height: 50px; /* Reduced */
  }
}

.nav-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.nav-thumb:hover img {
  transform: scale(1.1);
}

.nav-thumb span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 0.5rem;
  font-size: 0.75rem;
  text-align: center;
  font-weight: 500;
}

.nav-thumb.active {
  transform: translateY(-10px);
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-lg);
}

.nav-thumb.active span {
  background: linear-gradient(to top, rgba(13, 110, 253, 0.8), transparent);
}

/* Academic Facilities Section - FIXED: Reduce padding */
.academic-facilities-section {
  padding: 3rem 0 !important; /* Reduced padding */
  background: linear-gradient(180deg, #f8fafc 0%, white 100%);
  margin: 0 !important; /* Remove margin */
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem; /* Reduced gap */
  margin-top: 1.5rem !important; /* Reduced margin */
}

.facility-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem; /* Reduced padding */
  text-align: center;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
  margin: 0 !important; /* Remove margin */
}

.facility-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.facility-icon {
  width: 60px; /* Reduced */
  height: 60px; /* Reduced */
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem !important; /* Reduced margin */
}

.facility-icon i {
  font-size: 1.5rem; /* Reduced */
  color: white;
}

.facility-card h4 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem; /* Reduced */
  font-weight: 600;
  margin-bottom: 0.75rem !important; /* Reduced margin */
  color: var(--dark-color);
}

.facility-card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 !important; /* Remove margin */
}

/* Campus Highlights Section - FIXED: Reduce padding */
.campus-highlights-section {
  padding: 3rem 0 !important; /* Reduced padding */
  background: linear-gradient(180deg, white 0%, #f8fafc 100%);
  margin: 0 !important; /* Remove margin */
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; /* Reduced gap */
  margin-top: 1.5rem !important; /* Reduced margin */
}

.highlight-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem; /* Reduced padding */
  text-align: center;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
  margin: 0 !important; /* Remove margin */
}

.highlight-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.highlight-icon {
  width: 70px; /* Reduced */
  height: 70px; /* Reduced */
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem !important; /* Reduced margin */
}

.highlight-icon i {
  font-size: 2rem; /* Reduced */
  color: white;
}

.highlight-card h4 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem; /* Reduced */
  font-weight: 600;
  margin-bottom: 0.75rem !important; /* Reduced margin */
  color: var(--dark-color);
}

.highlight-card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem !important; /* Reduced margin */
}

.highlight-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-blue);
  font-weight: 500;
  text-decoration: none;
  transition: gap 0.3s ease;
  margin: 0 !important; /* Remove margin */
}

.highlight-link:hover {
  gap: 1rem;
  color: var(--primary-blue-dark);
}

/* Campus Facilities Section - FIXED: Reduce padding */
.campus-facilities-section {
  padding: 3rem 0 !important; /* Reduced padding */
  background: linear-gradient(180deg, #f8fafc 0%, white 100%);
  margin: 0 !important; /* Remove margin */
}

/* Campus Map Section - FIXED: Reduce padding */
.campus-map-section {
  padding: 3rem 0 !important; /* Reduced padding */
  background: white;
  margin: 0 !important; /* Remove margin */
}

@media (prefers-color-scheme: dark) {
  .campus-map-section {
    background: var(--dark-color);
  }
}

.location-info {
  padding-right: 2rem; /* Reduced */
  margin: 0 !important; /* Remove margin */
}

@media (max-width: 992px) {
  .location-info {
    padding-right: 0;
    margin-bottom: 2rem !important; /* Reduced margin */
  }
}

.address-card {
  background: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 2rem; /* Reduced padding */
  box-shadow: var(--shadow-sm);
  margin: 0 !important; /* Remove margin */
}

@media (prefers-color-scheme: dark) {
  .address-card {
    background: var(--dark-secondary);
    color: white;
  }
}

.address-card h4 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem; /* Reduced */
  font-weight: 600;
  margin-bottom: 1rem !important; /* Reduced margin */
  color: var(--dark-color);
  display: flex;
  align-items: center;
}

.address {
  background: white;
  padding: 1.25rem; /* Reduced */
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-blue);
  margin-bottom: 1.5rem !important; /* Reduced margin */
  line-height: 1.6;
}

@media (prefers-color-scheme: dark) {
  .address {
    background: var(--dark-color);
    color: white;
  }
}

.contact-details {
  margin-bottom: 1.5rem !important; /* Reduced margin */
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* Reduced */
  margin-bottom: 0.75rem !important; /* Reduced margin */
  font-size: 1rem; /* Reduced */
}

.contact-item i {
  width: 35px; /* Reduced */
  height: 35px; /* Reduced */
  background: var(--primary-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-features ul {
  list-style: none;
  padding: 0;
  margin: 0 !important; /* Remove margin */
}

.location-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem !important; /* Reduced margin */
  font-size: 0.95rem; /* Reduced */
}

.map-container {
  position: relative;
  margin: 0 !important; /* Remove margin */
}

.map-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 1rem !important; /* Reduced margin */
}

.map-overlay {
  position: absolute;
  bottom: 15px; /* Reduced */
  left: 15px; /* Reduced */
}

.get-directions {
  background: white;
  color: var(--primary-blue);
  border: none;
  padding: 0.5rem 1.25rem; /* Reduced */
  font-weight: 600;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.get-directions:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.transport-info {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 1.25rem; /* Reduced */
  margin: 0 !important; /* Remove margin */
}

@media (prefers-color-scheme: dark) {
  .transport-info {
    background: var(--dark-secondary);
    color: white;
  }
}

.transport-info h5 {
  font-family: "Montserrat", sans-serif;
  margin-bottom: 0.75rem !important; /* Reduced margin */
  color: var(--dark-color);
}

@media (prefers-color-scheme: dark) {
  .transport-info h5 {
    color: white;
  }
}

.transport-options {
  display: flex;
  gap: 0.75rem; /* Reduced */
  flex-wrap: wrap;
}

.transport-badge {
  background: white;
  padding: 0.5rem 0.75rem; /* Reduced */
  border-radius: 50px;
  font-size: 0.85rem; /* Reduced */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #e2e8f0;
}

@media (prefers-color-scheme: dark) {
  .transport-badge {
    background: var(--dark-color);
    color: white;
    border-color: rgba(255, 255, 255, 0.1);
  }
}

/* Video Tour Section - FIXED: Reduce padding */
.video-tour-section {
  padding: 3rem 0 !important; /* Reduced padding */
  background: white;
  margin: 0 !important; /* Remove margin */
}

@media (prefers-color-scheme: dark) {
  .video-tour-section {
    background: var(--dark-color);
  }
}

.video-content {
  padding-right: 2rem; /* Reduced */
  margin: 0 !important; /* Remove margin */
}

@media (max-width: 992px) {
  .video-content {
    padding-right: 0;
    margin-bottom: 1.5rem !important; /* Reduced margin */
  }
}

.video-features {
  margin-top: 1.5rem !important; /* Reduced margin */
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* Reduced */
  margin-bottom: 0.75rem !important; /* Reduced margin */
  font-size: 1rem; /* Reduced */
}

.feature-item i {
  color: var(--success);
  font-size: 1.1rem; /* Reduced */
}

.video-player-container {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 0 !important; /* Remove margin */
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
  cursor: pointer;
}

.video-wrapper:hover .video-overlay {
  opacity: 1;
}

.play-btn {
  width: 70px; /* Reduced */
  height: 70px; /* Reduced */
  background: var(--primary-blue);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem; /* Reduced */
  color: white;
  cursor: pointer;
  transition: all var(--transition-base);
}

.play-btn:hover {
  transform: scale(1.1);
  background: var(--primary-blue-dark);
}

.video-controls {
  background: white;
  padding: 1.25rem; /* Reduced */
  border-top: 1px solid #e2e8f0;
  margin: 0 !important; /* Remove margin */
}

@media (prefers-color-scheme: dark) {
  .video-controls {
    background: var(--dark-secondary);
    border-top-color: rgba(255, 255, 255, 0.1);
  }
}

.time-stamps {
  display: flex;
  gap: 0.75rem; /* Reduced */
  flex-wrap: wrap;
}

.time-stamp {
  padding: 0.5rem 0.75rem; /* Reduced */
  background: #e2e8f0;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  font-size: 0.85rem; /* Reduced */
  cursor: pointer;
  transition: all var(--transition-base);
}

@media (prefers-color-scheme: dark) {
  .time-stamp {
    background: var(--dark-color);
    color: white;
  }
}

.time-stamp:hover {
  background: var(--primary-blue);
  color: white;
}

/* Student Life Section - FIXED: Reduce padding */
.student-life-section {
  padding: 3rem 0 !important; /* Reduced padding */
  background: linear-gradient(180deg, #f8fafc 0%, white 100%);
  margin: 0 !important; /* Remove margin */
}

@media (prefers-color-scheme: dark) {
  .student-life-section {
    background: linear-gradient(
      180deg,
      var(--dark-color) 0%,
      var(--dark-secondary) 100%
    );
  }
}

.life-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Reduced */
  gap: 1.5rem; /* Reduced */
  margin-top: 1.5rem !important; /* Reduced margin */
}

.life-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  margin: 0 !important; /* Remove margin */
}

@media (prefers-color-scheme: dark) {
  .life-card {
    background: var(--dark-secondary);
  }
}

.life-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.life-image {
  height: 200px; /* Reduced */
  overflow: hidden;
}

.life-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.life-card:hover .life-image img {
  transform: scale(1.1);
}

.life-content {
  padding: 1.5rem; /* Reduced */
}

.life-content h4 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem; /* Reduced */
  font-weight: 600;
  margin-bottom: 0.75rem !important; /* Reduced margin */
  color: var(--dark-color);
}

@media (prefers-color-scheme: dark) {
  .life-content h4 {
    color: white;
  }
}

.life-content p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 !important; /* Remove margin */
}

/* Testimonials Section - FIXED: Reduce padding */
.testimonials-section {
  padding: 3rem 0 !important; /* Reduced padding */
  background: white;
  margin: 0 !important; /* Remove margin */
}

@media (prefers-color-scheme: dark) {
  .testimonials-section {
    background: var(--dark-color);
  }
}

.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 1.5rem auto 0 !important; /* Reduced margin */
}

.testimonial-card {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border-radius: var(--radius-xl);
  padding: 2rem; /* Reduced */
  display: none;
}

@media (prefers-color-scheme: dark) {
  .testimonial-card {
    background: linear-gradient(
      135deg,
      var(--dark-color),
      var(--dark-secondary)
    );
    color: white;
  }
}

.testimonial-card.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonial-content {
  position: relative;
  margin: 0 !important; /* Remove margin */
}

.quote-icon {
  font-size: 2.5rem; /* Reduced */
  color: var(--primary-blue);
  opacity: 0.1;
  margin-bottom: 1rem !important; /* Reduced margin */
}

.testimonial-text {
  font-size: 1.1rem; /* Reduced */
  line-height: 1.8;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 1.5rem !important; /* Reduced margin */
}

@media (prefers-color-scheme: dark) {
  .testimonial-text {
    color: white;
  }
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem; /* Reduced */
}

.author-avatar {
  width: 60px; /* Reduced */
  height: 60px; /* Reduced */
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary-blue); /* Reduced */
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h5 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem; /* Reduced */
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.author-info p {
  color: var(--text-muted);
  font-size: 0.85rem; /* Reduced */
}

.slider-controls {
  position: absolute;
  top: 50%;
  left: -80px; /* Reduced */
  right: -80px; /* Reduced */
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  z-index: 10;
}

@media (max-width: 992px) {
  .slider-controls {
    position: relative;
    left: 0;
    right: 0;
    margin-top: 1.5rem !important; /* Reduced margin */
    justify-content: center;
    gap: 1.5rem; /* Reduced */
  }
}

.slider-prev,
.slider-next {
  width: 50px; /* Reduced */
  height: 50px; /* Reduced */
  background: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem; /* Reduced */
  color: var(--dark-color);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

.slider-prev:hover,
.slider-next:hover {
  background: var(--primary-blue);
  color: white;
  transform: scale(1.1);
}

/* CTA Section - FIXED: Reduce padding */
.tour-cta-section {
  padding: 3rem 0 !important; /* Reduced padding */
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
  margin: 0 !important; /* Remove margin */
}

.tour-cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 51-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.cta-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: 2.5rem; /* Reduced */
  text-align: center;
  color: white;
  position: relative;
  z-index: 1;
  margin: 0 !important; /* Remove margin */
}

@media (max-width: 992px) {
  .cta-card {
    padding: 2rem 1.5rem; /* Reduced */
  }
}

.cta-card h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 2rem; /* Reduced */
  font-weight: 700;
  margin-bottom: 1rem !important; /* Reduced margin */
}

@media (max-width: 768px) {
  .cta-card h2 {
    font-size: 1.75rem; /* Reduced */
  }
}

.cta-card p {
  font-size: 1.1rem; /* Reduced */
  opacity: 0.9;
  margin-bottom: 1.5rem !important; /* Reduced margin */
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 0.75rem; /* Reduced */
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 !important; /* Remove margin */
}

.cta-buttons .btn {
  padding: 0.75rem 1.5rem; /* Reduced */
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-buttons .btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.download-tour {
  background: transparent;
  border: 2px solid white;
}

/* Responsive Design - Enhanced */
@media (max-width: 1200px) {
  .tour-hero h1 {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2rem; /* Reduced */
  }
}

@media (max-width: 992px) {
  .tour-hero {
    padding: 4rem 0 2rem !important; /* Reduced */
  }

  .tour-hero h1 {
    font-size: 2rem; /* Reduced */
  }

  .section-title {
    font-size: 1.75rem; /* Reduced */
  }

  .panorama-viewer {
    height: 400px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tour-nav {
    justify-content: flex-start;
    padding-bottom: 0.5rem; /* Reduced */
  }

  .tour-nav-btn {
    min-width: 70px; /* Reduced */
    padding: 0.4rem 0.6rem !important; /* Reduced */
    font-size: 0.75rem !important; /* Reduced */
  }

  .tour-nav-btn i {
    font-size: 1rem; /* Reduced */
    margin-bottom: 0.2rem; /* Reduced */
  }

  .tour-hero h1 {
    font-size: 1.75rem; /* Reduced */
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .panorama-viewer {
    height: 300px;
  }

  .viewer-controls,
  .viewer-navigation {
    position: relative;
    left: 0;
    right: 0;
    bottom: 0;
    margin-top: 0.75rem !important; /* Reduced */
    justify-content: center;
  }

  .transport-options {
    flex-direction: column;
  }

  .transport-badge {
    width: 100%;
    justify-content: center;
  }

  .time-stamps {
    justify-content: center;
  }

  .life-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .tour-hero {
    padding: 3rem 0 1.5rem !important; /* Reduced */
  }

  .hero-stats-card {
    padding: 1.25rem; /* Reduced */
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2rem; /* Reduced */
  }

  .nav-thumb {
    width: 60px; /* Reduced */
    height: 45px; /* Reduced */
  }

  .section-title {
    font-size: 1.5rem; /* Reduced */
  }

  .highlight-card,
  .facility-card {
    padding: 1.5rem 1rem; /* Reduced */
  }

  .testimonial-card {
    padding: 1.5rem 1rem; /* Reduced */
  }

  .testimonial-text {
    font-size: 1rem; /* Reduced */
  }

  .author-avatar {
    width: 45px; /* Reduced */
    height: 45px; /* Reduced */
  }

  .tour-nav-btn {
    min-width: 60px; /* Reduced */
    padding: 0.3rem 0.5rem !important; /* Reduced */
    font-size: 0.7rem !important; /* Reduced */
  }

  .tour-nav-btn i {
    font-size: 0.9rem; /* Reduced */
  }

  /* Mobile: Further reduce padding between sections */
  .tour-hero,
  .interactive-viewer-section,
  .academic-facilities-section,
  .campus-highlights-section,
  .campus-facilities-section,
  .campus-map-section,
  .video-tour-section,
  .student-life-section,
  .testimonials-section,
  .tour-cta-section {
    padding: 2rem 0 !important; /* Even more reduced for mobile */
  }
}

/* Print Styles */
@media print {
  .tour-navbar,
  .viewer-controls,
  .viewer-navigation,
  .video-overlay,
  .slider-controls,
  .hero-actions {
    display: none !important;
  }

  .tour-hero {
    background: white !important;
    color: black !important;
    padding: 1rem 0 !important; /* Reduced for print */
  }

  .section-spacing {
    padding: 1rem 0 !important; /* Reduced for print */
  }

  .panorama-viewer {
    height: 300px !important;
  }

  .highlight-card,
  .life-card,
  .testimonial-card {
    break-inside: avoid;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus Styles for Accessibility */
:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .tour-nav-btn.active {
    outline: 2px solid currentColor;
  }

  .hotspot-dot {
    border: 2px solid black;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .tour-nav-btn {
    padding: 0.75rem; /* Reduced */
    min-width: 85px; /* Reduced */
  }

  .hotspot {
    width: 35px; /* Reduced */
    height: 35px; /* Reduced */
  }

  .hotspot-dot {
    width: 28px; /* Reduced */
    height: 28px; /* Reduced */
  }

  .control-btn {
    width: 55px; /* Reduced */
    height: 55px; /* Reduced */
  }

  .nav-thumb span {
    display: none;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px; /* Reduced */
  height: 8px; /* Reduced */
}

::-webkit-scrollbar-track {
  background: var(--light-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-blue-light);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-blue);
}

/* Selection Styles */
::selection {
  background: rgba(13, 110, 253, 0.2);
  color: var(--dark-color);
}

/* Loading States */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px; /* Reduced */
  height: 20px; /* Reduced */
  border: 2px solid var(--light-secondary);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Utility Classes */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
  background: rgba(26, 29, 41, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Additional fixes for spacing issues */
.row {
  margin: 0 !important;
}

.row > * {
  padding: 0 !important;
}

.col-lg-6,
.col-lg-5,
.col-lg-7 {
  padding: 0 15px !important;
}

/* Remove any potential margin/padding from bootstrap classes */
.m-0 {
  margin: 0 !important;
}

.p-0 {
  padding: 0 !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.pt-0 {
  padding-top: 0 !important;
}

.pb-0 {
  padding-bottom: 0 !important;
}

/* Ensure no double margins */
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li {
  margin-top: 0 !important;
  margin-bottom: 0.5rem !important; /* Add minimal margin if needed */
}

/* Container-specific spacing */
.container > .row {
  margin: 0 !important;
}
