/* Ocean Theme CSS */
:root {
  --primary-blue: #4da6ff;
  --secondary-blue: #3498db;
  --ocean-teal: #5dade2;
  --deep-blue: #2980b9;
  --light-blue: #e8f4f8;
  --coral: #ff6b6b;
  --sand: #f8f9fa;
}

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

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
  font-family: 'Poppins', sans-serif;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-bottom: 0;
  padding-top: 130px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Custom Bootstrap Overrides */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--deep-blue) 100%) !important;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Logo Styles */
.navbar-logo {
  height: 100px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* Makes logo white to match navbar */
}

.footer-logo {
  height: 70px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* Makes logo white to match footer */
}

/* Responsive logo sizing */
@media (max-width: 768px) {
  .navbar-logo {
    height: 80px;
    max-width: 120px;
  }
  
  .footer-logo {
    height: 50px;
    max-width: 70px;
  }
}

@media (max-width: 576px) {
  .navbar-logo {
    height: 60px;
    max-width: 90px;
  }
  
  .footer-logo {
    height: 40px;
    max-width: 55px;
  }
}

/* Hero Logo Styles */
.hero-logo {
  height: 120px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* Makes logo white */
}

/* Social Media Links Styles */
.social-media-links {
  margin-top: 2rem;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 15px;
  border-radius: 15px;
  text-decoration: none;
  color: #333;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  height: 100px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.social-link i {
  font-size: 2rem;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.social-link span {
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* Individual Social Media Colors */
.social-link.instagram:hover {
  background: linear-gradient(135deg, #E4405F 0%, #F77737 50%, #FCAF45 100%);
  border-color: #E4405F;
  color: white;
}

.social-link.facebook:hover {
  background: linear-gradient(135deg, #1877F2 0%, #42A5F5 100%);
  border-color: #1877F2;
  color: white;
}

.social-link.tiktok:hover {
  background: linear-gradient(135deg, #000000 0%, #FF0050 50%, #00F2EA 100%);
  border-color: #000000;
  color: white;
}

.social-link.youtube:hover {
  background: linear-gradient(135deg, #FF0000 0%, #FF4444 100%);
  border-color: #FF0000;
  color: white;
}

.social-link.twitter:hover {
  background: linear-gradient(135deg, #1DA1F2 0%, #0D8BD9 100%);
  border-color: #1DA1F2;
  color: white;
}

.social-link.whatsapp:hover {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-color: #25D366;
  color: white;
}

/* Social Media Icons */
.social-link.instagram i {
  background: linear-gradient(135deg, #E4405F 0%, #F77737 50%, #FCAF45 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.social-link.facebook i {
  color: #1877F2;
}

.social-link.tiktok i {
  color: #000000;
}

.social-link.youtube i {
  color: #FF0000;
}

.social-link.twitter i {
  color: #1DA1F2;
}

.social-link.whatsapp i {
  color: #25D366;
}

/* Hover Effects for Icons */
.social-link.instagram:hover i,
.social-link.facebook:hover i,
.social-link.tiktok:hover i,
.social-link.youtube:hover i,
.social-link.twitter:hover i,
.social-link.whatsapp:hover i {
  color: white !important;
  -webkit-text-fill-color: white !important;
  transform: scale(1.2);
}

/* Responsive Social Media Links */
@media (max-width: 768px) {
  .social-link {
    height: 80px;
    padding: 15px 10px;
  }
  
  .social-link i {
    font-size: 1.5rem;
  }
  
  .social-link span {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .social-link {
    height: 70px;
    padding: 12px 8px;
  }
  
  .social-link i {
    font-size: 1.3rem;
    margin-bottom: 5px;
  }
  
  .social-link span {
    font-size: 0.75rem;
  }
}

@media (max-width: 768px) {
  .hero-logo {
    height: 100px;
    max-width: 120px;
  }
}

@media (max-width: 576px) {
  .hero-logo {
    height: 80px;
    max-width: 100px;
  }
}

.nav-link {
  font-weight: 500;
  transition: all 0.3s ease;
  color: white !important;
}

.nav-link:hover {
  transform: translateY(-2px);
  color: var(--light-blue) !important;
}

/* Ensure navigation links are always visible */
.navbar-nav .nav-link {
  color: white !important;
}

.navbar-nav .nav-link:hover {
  color: var(--light-blue) !important;
}

/* Login/Register links styling */
.navbar-nav .nav-link.text-muted {
  color: white !important;
}

.navbar-nav .nav-link.text-muted:hover {
  color: var(--light-blue) !important;
}

/* Ensure all navbar text is white */
.navbar-nav .nav-link.text-dark {
  color: white !important;
}

.navbar-nav .nav-link.text-dark:hover {
  color: var(--light-blue) !important;
}

/* Button links in navbar */
.navbar-nav .btn-link {
  color: white !important;
  text-decoration: none;
}

.navbar-nav .btn-link:hover {
  color: var(--light-blue) !important;
}

/* Make navbar height accommodate larger logo */
.navbar {
  min-height: 120px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.navbar-brand {
  padding-top: 10px;
  padding-bottom: 10px;
}

.main-content {
  min-height: calc(100vh - 200px);
}

/* Ocean Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(5deg); }
  75% { transform: rotate(-5deg); }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

.wave-animation {
  animation: wave 2s ease-in-out infinite;
}

/* Hero Section / First Section Background */
/* Dynamic backgrounds are set via inline styles from the database */
.hero-section {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Video background container */
.hero-section .video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-section .video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* YouTube embed iframe */
.hero-section .video-background iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Fixed background on desktop only */
@media (min-width: 768px) {
  .hero-section {
    background-attachment: fixed;
  }
}

/* Overlay for text readability */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.7) 0%, rgba(2, 62, 138, 0.75) 100%);
  z-index: 0;
}

/* Ensure content is above overlay */
.hero-section .container,
.hero-section .hero-content {
  position: relative;
  z-index: 1;
}

/* Bottom gradient transition */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, rgba(248, 249, 250, 1), transparent);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
}

/* First Section Background for Dashboard and Other Pages */
/* * TO CHANGE THE BACKGROUND PHOTOS:
 * Update the background-image URL below to point to your image in /images/backgrounds/ folder
 * Example: url('/images/backgrounds/your-image-name.jpg')
 */
.first-section-background {
  background-image: url('/images/Various kinds of underwater swimming pos….jpeg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  padding-top: 2rem;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

/* Fixed background on desktop only */
@media (min-width: 768px) {
  .first-section-background {
    background-attachment: fixed;
  }
}

/* Overlay for text readability on first section */
.first-section-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.6) 0%, rgba(2, 62, 138, 0.65) 100%);
  z-index: 0;
}

/* Ensure content is above overlay */
.first-section-background > * {
  position: relative;
  z-index: 1;
}

/* Cards */
.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 102, 204, 0.3);
}

.btn-outline-primary {
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  border-radius: 25px;
  padding: 10px 28px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--deep-blue);
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--ocean-teal) 100%);
  border-radius: 2px;
}

/* Instructor Cards */
.instructor-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.instructor-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.instructor-photo {
  height: 250px;
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--ocean-teal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
}

/* Forms */
.form-control {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  padding: 12px 15px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--deep-blue) 0%, #000 100%) !important;
}

.footer a {
  color: white !important;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer a:hover {
  color: var(--ocean-teal) !important;
  text-decoration: none;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary-blue);
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .card {
    margin-bottom: 2rem;
  }
}

/* Utility Classes */
.text-ocean {
  color: var(--primary-blue) !important;
}

.bg-ocean {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--deep-blue) 100%) !important;
}

.shadow-ocean {
  box-shadow: 0 10px 30px rgba(77, 166, 255, 0.2) !important;
}

/* Diver Animation */
.diver-animation {
  position: absolute;
  right: 10%;
  bottom: 20%;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.3);
  animation: float 4s ease-in-out infinite;
}

@keyframes diveDown {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(20px) rotate(5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.dive-animation {
  animation: diveDown 3s ease-in-out infinite;
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gallery Styles */
.gallery-card {
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-image {
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-card:hover .gallery-image {
  transform: scale(1.05);
}

.filter-btn {
  transition: all 0.3s ease;
  border-radius: 25px;
  padding: 8px 20px;
}

.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  border-color: var(--primary-blue);
  color: white;
}

.gallery-item {
  transition: all 0.5s ease;
}

/* Photo Upload Modal Styles */
#uploadModal .modal-dialog {
  max-width: 600px;
}

#uploadModal .form-control {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

#uploadModal .form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

#uploadModal .btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  border: none;
  border-radius: 25px;
  padding: 10px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

#uploadModal .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 102, 204, 0.3);
}

/* Gallery Badge Styles */
.badge {
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 15px;
  font-weight: 600;
}

.badge.bg-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%) !important;
}

.badge.bg-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.badge.bg-info {
  background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%) !important;
}

.badge.bg-warning {
  background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%) !important;
  color: #000 !important;
}

div[style*="z-index: 2147483647"],
div[style*="z-index: 9999999"],
div[onmouseover*="S_ssac()"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    pointer-events: none !important;
}

center > a[href*="somee.com"] {
    display: none !important;
}